Subversion Repositories SmartDukaan

Rev

Rev 4668 | Rev 5334 | 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 deleteUser(self, userId):
94 ashish 73
    """
74
    Parameters:
75
     - userId
76
    """
77
    pass
78
 
559 chandransh 79
  def authenticateUser(self, email, password):
94 ashish 80
    """
81
    Parameters:
82
     - email
83
     - password
84
    """
85
    pass
86
 
87
  def userExists(self, email):
88
    """
89
    Parameters:
90
     - email
91
    """
92
    pass
93
 
567 rajveer 94
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 95
    """
96
    Parameters:
97
     - userId
98
     - address
513 rajveer 99
     - setDefault
94 ashish 100
    """
101
    pass
102
 
103
  def removeAddressForUser(self, userid, addressId):
104
    """
105
    Parameters:
106
     - userid
107
     - addressId
108
    """
109
    pass
110
 
111
  def setUserAsLoggedIn(self, userId, timestamp):
112
    """
113
    Parameters:
114
     - userId
115
     - timestamp
116
    """
117
    pass
118
 
119
  def setUserAsLoggedOut(self, userid, timestamp):
120
    """
121
    Parameters:
122
     - userid
123
     - timestamp
124
    """
125
    pass
126
 
504 rajveer 127
  def setDefaultAddress(self, userid, addressId):
128
    """
129
    Parameters:
130
     - userid
131
     - addressId
132
    """
133
    pass
134
 
594 rajveer 135
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 136
    """
137
    Parameters:
138
     - userid
594 rajveer 139
     - oldPassword
140
     - newPassword
94 ashish 141
    """
142
    pass
143
 
884 rajveer 144
  def forgotPassword(self, email, newPassword):
581 rajveer 145
    """
146
    Parameters:
147
     - email
884 rajveer 148
     - newPassword
581 rajveer 149
    """
150
    pass
151
 
594 rajveer 152
  def getAllAddressesForUser(self, userId):
153
    """
154
    Parameters:
155
     - userId
156
    """
157
    pass
158
 
1894 vikas 159
  def getAddressById(self, addressId):
160
    """
161
    Parameters:
162
     - addressId
163
    """
164
    pass
165
 
594 rajveer 166
  def getDefaultAddressId(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
785 rajveer 173
  def getDefaultPincode(self, userId):
174
    """
175
    Parameters:
176
     - userId
177
    """
178
    pass
179
 
1274 varun.gupt 180
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
181
    """
182
    Parameters:
183
     - userId
184
     - replyTo
185
     - communicationType
186
     - orderId
187
     - airwaybillNo
188
     - productName
189
     - subject
190
     - message
191
    """
192
    pass
193
 
1590 varun.gupt 194
  def getUserCommunicationById(self, id):
195
    """
196
    Parameters:
197
     - id
198
    """
199
    pass
200
 
201
  def getUserCommunicationByUser(self, userId):
202
    """
203
    Parameters:
204
     - userId
205
    """
206
    pass
207
 
208
  def getAllUserCommunications(self, ):
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def createCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCurrentCart(self, userId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - userId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCart(self, cartId):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - cartId
94 ashish 336
    """
337
    pass
338
 
559 chandransh 339
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 340
    """
341
    Parameters:
559 chandransh 342
     - from_time
343
     - to_time
344
     - status
94 ashish 345
    """
346
    pass
347
 
3557 rajveer 348
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 349
    """
350
    Parameters:
559 chandransh 351
     - cartId
352
     - itemId
353
     - quantity
3557 rajveer 354
     - sourceId
130 ashish 355
    """
356
    pass
357
 
559 chandransh 358
  def deleteItemFromCart(self, cartId, itemId):
359
    """
360
    Parameters:
361
     - cartId
362
     - itemId
363
    """
364
    pass
130 ashish 365
 
559 chandransh 366
  def changeItemStatus(self, cartId, itemId, status):
367
    """
368
    Parameters:
369
     - cartId
370
     - itemId
371
     - status
372
    """
373
    pass
374
 
375
  def addAddressToCart(self, cartId, addressId):
376
    """
377
    Parameters:
378
     - cartId
379
     - addressId
380
    """
381
    pass
382
 
1976 varun.gupt 383
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
384
    """
385
    Parameters:
386
     - cartId
387
     - couponCode
388
     - totalPrice
389
     - discountedPrice
390
    """
391
    pass
392
 
393
  def removeCoupon(self, cartId):
394
    """
395
    Parameters:
396
     - cartId
397
    """
398
    pass
399
 
3554 varun.gupt 400
  def deleteDiscountsFromCart(self, cartId):
401
    """
402
    Deletes all the discounts associated with the cart
403
 
404
    Parameters:
405
     - cartId
406
    """
407
    pass
408
 
409
  def saveDiscounts(self, discounts):
410
    """
411
    Accepts a list of thrift objects of Discount type and saves them
412
 
413
    Parameters:
414
     - discounts
415
    """
416
    pass
417
 
5326 rajveer 418
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 419
    """
690 chandransh 420
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 421
 
559 chandransh 422
    Parameters:
423
     - cartId
2815 vikas 424
     - sessionSource
425
     - sessionStartTime
3858 vikas 426
     - firstSource
427
     - firstSourceTime
5326 rajveer 428
     - userId
559 chandransh 429
    """
430
    pass
431
 
3557 rajveer 432
  def validateCart(self, cartId, sourceId):
559 chandransh 433
    """
690 chandransh 434
    Validates that:
435
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 436
    2. All of the lines in the cart are active items.
690 chandransh 437
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 438
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 439
 
559 chandransh 440
    Parameters:
441
     - cartId
3557 rajveer 442
     - sourceId
559 chandransh 443
    """
444
    pass
445
 
690 chandransh 446
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 447
    """
690 chandransh 448
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 449
 
575 chandransh 450
    Parameters:
690 chandransh 451
     - fromCartId
452
     - toCartId
453
    """
454
    pass
455
 
456
  def checkOut(self, cartId):
457
    """
458
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 459
 
690 chandransh 460
    Parameters:
575 chandransh 461
     - cartId
462
    """
463
    pass
464
 
690 chandransh 465
  def resetCart(self, cartId, items):
559 chandransh 466
    """
690 chandransh 467
    The second parameter is a map of item ids and their quantities which have been successfully processed.
468
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 469
 
559 chandransh 470
    Parameters:
690 chandransh 471
     - cartId
472
     - items
559 chandransh 473
    """
474
    pass
475
 
2981 rajveer 476
  def getUserCount(self, userType):
559 chandransh 477
    """
2981 rajveer 478
    Returns number of registered users.
479
    If userType = null, then it returns count of all users, including anonymous
480
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
481
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 482
 
559 chandransh 483
    Parameters:
2981 rajveer 484
     - userType
559 chandransh 485
    """
486
    pass
487
 
2981 rajveer 488
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 489
    """
2981 rajveer 490
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
491
    If any of startDate or endDate is -1, then that filter is ignored.
492
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 493
 
494
 
559 chandransh 495
    Parameters:
2981 rajveer 496
     - userType
497
     - startDate
498
     - endDate
559 chandransh 499
    """
500
    pass
501
 
2981 rajveer 502
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 503
    """
504
    Parameters:
2981 rajveer 505
     - user_id
506
     - entity_id
507
     - slide
508
     - note
559 chandransh 509
    """
510
    pass
511
 
2981 rajveer 512
  def getUserNotes(self, user_id, entity_id):
559 chandransh 513
    """
514
    Parameters:
2981 rajveer 515
     - user_id
516
     - entity_id
559 chandransh 517
    """
518
    pass
519
 
2981 rajveer 520
  def getMyResearchItems(self, userId):
559 chandransh 521
    """
2981 rajveer 522
    Returns list of item ids in myresearch for the user
3431 rajveer 523
 
559 chandransh 524
    Parameters:
525
     - userId
526
    """
527
    pass
528
 
2981 rajveer 529
  def updateMyResearch(self, userId, itemId):
559 chandransh 530
    """
2981 rajveer 531
    add item to my research for a user
3431 rajveer 532
 
559 chandransh 533
    Parameters:
2981 rajveer 534
     - userId
535
     - itemId
559 chandransh 536
    """
537
    pass
538
 
2981 rajveer 539
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 540
    """
2981 rajveer 541
    delete item from my research for a user
3431 rajveer 542
 
1596 ankur.sing 543
    Parameters:
2981 rajveer 544
     - userId
545
     - itemId
1596 ankur.sing 546
    """
547
    pass
559 chandransh 548
 
2981 rajveer 549
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 550
    """
2981 rajveer 551
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 552
 
1673 ankur.sing 553
    Parameters:
2981 rajveer 554
     - userId
1673 ankur.sing 555
    """
556
    pass
1596 ankur.sing 557
 
2981 rajveer 558
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 559
    """
2981 rajveer 560
    add item to browse history for a user
3431 rajveer 561
 
2642 varun.gupt 562
    Parameters:
2981 rajveer 563
     - userId
564
     - itemId
2642 varun.gupt 565
    """
566
    pass
1673 ankur.sing 567
 
3385 varun.gupt 568
  def getCartsWithCouponCount(self, couponCode):
569
    """
570
    Returns count of Carts with given coupon applied
3431 rajveer 571
 
3385 varun.gupt 572
    Parameters:
573
     - couponCode
574
    """
575
    pass
2642 varun.gupt 576
 
3499 mandeep.dh 577
  def increaseTrustLevel(self, userId, trustLevelDelta):
578
    """
579
    Updates COD trust level of a user
3385 varun.gupt 580
 
3499 mandeep.dh 581
    Parameters:
582
     - userId
583
     - trustLevelDelta
584
    """
585
    pass
586
 
4668 varun.gupt 587
  def showCODOption(self, cartId, sourceId, pincode):
588
    """
589
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 590
 
4668 varun.gupt 591
    Parameters:
592
     - cartId
593
     - sourceId
594
     - pincode
595
    """
596
    pass
597
 
598
 
3376 rajveer 599
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 600
  """
601
  service
602
  """
603
  def __init__(self, iprot, oprot=None):
3376 rajveer 604
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 605
 
559 chandransh 606
  def createAnonymousUser(self, jsessionId):
94 ashish 607
    """
608
    Parameters:
559 chandransh 609
     - jsessionId
94 ashish 610
    """
559 chandransh 611
    self.send_createAnonymousUser(jsessionId)
612
    return self.recv_createAnonymousUser()
94 ashish 613
 
559 chandransh 614
  def send_createAnonymousUser(self, jsessionId):
615
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
616
    args = createAnonymousUser_args()
617
    args.jsessionId = jsessionId
94 ashish 618
    args.write(self._oprot)
619
    self._oprot.writeMessageEnd()
620
    self._oprot.trans.flush()
621
 
559 chandransh 622
  def recv_createAnonymousUser(self, ):
94 ashish 623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
624
    if mtype == TMessageType.EXCEPTION:
625
      x = TApplicationException()
626
      x.read(self._iprot)
627
      self._iprot.readMessageEnd()
628
      raise x
559 chandransh 629
    result = createAnonymousUser_result()
94 ashish 630
    result.read(self._iprot)
631
    self._iprot.readMessageEnd()
3431 rajveer 632
    if result.success is not None:
94 ashish 633
      return result.success
3431 rajveer 634
    if result.ucex is not None:
559 chandransh 635
      raise result.ucex
636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 637
 
559 chandransh 638
  def getUserById(self, userId):
94 ashish 639
    """
640
    Parameters:
641
     - userId
642
    """
559 chandransh 643
    self.send_getUserById(userId)
644
    return self.recv_getUserById()
94 ashish 645
 
559 chandransh 646
  def send_getUserById(self, userId):
647
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
648
    args = getUserById_args()
94 ashish 649
    args.userId = userId
650
    args.write(self._oprot)
651
    self._oprot.writeMessageEnd()
652
    self._oprot.trans.flush()
653
 
559 chandransh 654
  def recv_getUserById(self, ):
94 ashish 655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
656
    if mtype == TMessageType.EXCEPTION:
657
      x = TApplicationException()
658
      x.read(self._iprot)
659
      self._iprot.readMessageEnd()
660
      raise x
559 chandransh 661
    result = getUserById_result()
94 ashish 662
    result.read(self._iprot)
663
    self._iprot.readMessageEnd()
3431 rajveer 664
    if result.success is not None:
94 ashish 665
      return result.success
3431 rajveer 666
    if result.ucex is not None:
559 chandransh 667
      raise result.ucex
668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 669
 
5326 rajveer 670
  def getUserByCartId(self, cartId):
671
    """
672
    Parameters:
673
     - cartId
674
    """
675
    self.send_getUserByCartId(cartId)
676
    return self.recv_getUserByCartId()
677
 
678
  def send_getUserByCartId(self, cartId):
679
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
680
    args = getUserByCartId_args()
681
    args.cartId = cartId
682
    args.write(self._oprot)
683
    self._oprot.writeMessageEnd()
684
    self._oprot.trans.flush()
685
 
686
  def recv_getUserByCartId(self, ):
687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
688
    if mtype == TMessageType.EXCEPTION:
689
      x = TApplicationException()
690
      x.read(self._iprot)
691
      self._iprot.readMessageEnd()
692
      raise x
693
    result = getUserByCartId_result()
694
    result.read(self._iprot)
695
    self._iprot.readMessageEnd()
696
    if result.success is not None:
697
      return result.success
698
    if result.ucex is not None:
699
      raise result.ucex
700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
701
 
1491 vikas 702
  def getUserByEmail(self, email):
703
    """
704
    Parameters:
705
     - email
706
    """
707
    self.send_getUserByEmail(email)
708
    return self.recv_getUserByEmail()
709
 
710
  def send_getUserByEmail(self, email):
711
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
712
    args = getUserByEmail_args()
713
    args.email = email
714
    args.write(self._oprot)
715
    self._oprot.writeMessageEnd()
716
    self._oprot.trans.flush()
717
 
718
  def recv_getUserByEmail(self, ):
719
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
720
    if mtype == TMessageType.EXCEPTION:
721
      x = TApplicationException()
722
      x.read(self._iprot)
723
      self._iprot.readMessageEnd()
724
      raise x
725
    result = getUserByEmail_result()
726
    result.read(self._iprot)
727
    self._iprot.readMessageEnd()
3431 rajveer 728
    if result.success is not None:
1491 vikas 729
      return result.success
3431 rajveer 730
    if result.ucex is not None:
1491 vikas 731
      raise result.ucex
732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
733
 
3032 mandeep.dh 734
  def getUserByMobileNumber(self, mobileNumber):
735
    """
736
    Parameters:
737
     - mobileNumber
738
    """
739
    self.send_getUserByMobileNumber(mobileNumber)
740
    return self.recv_getUserByMobileNumber()
741
 
742
  def send_getUserByMobileNumber(self, mobileNumber):
743
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
744
    args = getUserByMobileNumber_args()
745
    args.mobileNumber = mobileNumber
746
    args.write(self._oprot)
747
    self._oprot.writeMessageEnd()
748
    self._oprot.trans.flush()
749
 
750
  def recv_getUserByMobileNumber(self, ):
751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
752
    if mtype == TMessageType.EXCEPTION:
753
      x = TApplicationException()
754
      x.read(self._iprot)
755
      self._iprot.readMessageEnd()
756
      raise x
757
    result = getUserByMobileNumber_result()
758
    result.read(self._iprot)
759
    self._iprot.readMessageEnd()
3431 rajveer 760
    if result.success is not None:
3032 mandeep.dh 761
      return result.success
3431 rajveer 762
    if result.ucex is not None:
3032 mandeep.dh 763
      raise result.ucex
764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
765
 
559 chandransh 766
  def createUser(self, user):
94 ashish 767
    """
768
    Parameters:
559 chandransh 769
     - user
94 ashish 770
    """
559 chandransh 771
    self.send_createUser(user)
772
    return self.recv_createUser()
94 ashish 773
 
559 chandransh 774
  def send_createUser(self, user):
775
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
776
    args = createUser_args()
777
    args.user = user
94 ashish 778
    args.write(self._oprot)
779
    self._oprot.writeMessageEnd()
780
    self._oprot.trans.flush()
781
 
559 chandransh 782
  def recv_createUser(self, ):
94 ashish 783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
784
    if mtype == TMessageType.EXCEPTION:
785
      x = TApplicationException()
786
      x.read(self._iprot)
787
      self._iprot.readMessageEnd()
788
      raise x
559 chandransh 789
    result = createUser_result()
94 ashish 790
    result.read(self._iprot)
791
    self._iprot.readMessageEnd()
3431 rajveer 792
    if result.success is not None:
94 ashish 793
      return result.success
3431 rajveer 794
    if result.ucex is not None:
559 chandransh 795
      raise result.ucex
796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 797
 
559 chandransh 798
  def updateUser(self, user):
94 ashish 799
    """
800
    Parameters:
559 chandransh 801
     - user
94 ashish 802
    """
559 chandransh 803
    self.send_updateUser(user)
804
    return self.recv_updateUser()
94 ashish 805
 
559 chandransh 806
  def send_updateUser(self, user):
807
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
808
    args = updateUser_args()
809
    args.user = user
94 ashish 810
    args.write(self._oprot)
811
    self._oprot.writeMessageEnd()
812
    self._oprot.trans.flush()
813
 
559 chandransh 814
  def recv_updateUser(self, ):
94 ashish 815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
816
    if mtype == TMessageType.EXCEPTION:
817
      x = TApplicationException()
818
      x.read(self._iprot)
819
      self._iprot.readMessageEnd()
820
      raise x
559 chandransh 821
    result = updateUser_result()
94 ashish 822
    result.read(self._iprot)
823
    self._iprot.readMessageEnd()
3431 rajveer 824
    if result.success is not None:
94 ashish 825
      return result.success
3431 rajveer 826
    if result.ucex is not None:
559 chandransh 827
      raise result.ucex
828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 829
 
559 chandransh 830
  def deleteUser(self, userId):
94 ashish 831
    """
832
    Parameters:
833
     - userId
834
    """
559 chandransh 835
    self.send_deleteUser(userId)
836
    return self.recv_deleteUser()
94 ashish 837
 
559 chandransh 838
  def send_deleteUser(self, userId):
839
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
840
    args = deleteUser_args()
94 ashish 841
    args.userId = userId
842
    args.write(self._oprot)
843
    self._oprot.writeMessageEnd()
844
    self._oprot.trans.flush()
845
 
559 chandransh 846
  def recv_deleteUser(self, ):
94 ashish 847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
848
    if mtype == TMessageType.EXCEPTION:
849
      x = TApplicationException()
850
      x.read(self._iprot)
851
      self._iprot.readMessageEnd()
852
      raise x
559 chandransh 853
    result = deleteUser_result()
94 ashish 854
    result.read(self._iprot)
855
    self._iprot.readMessageEnd()
3431 rajveer 856
    if result.success is not None:
94 ashish 857
      return result.success
3431 rajveer 858
    if result.ucex is not None:
559 chandransh 859
      raise result.ucex
860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 861
 
559 chandransh 862
  def authenticateUser(self, email, password):
94 ashish 863
    """
864
    Parameters:
865
     - email
866
     - password
867
    """
559 chandransh 868
    self.send_authenticateUser(email, password)
122 ashish 869
    return self.recv_authenticateUser()
870
 
559 chandransh 871
  def send_authenticateUser(self, email, password):
122 ashish 872
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
873
    args = authenticateUser_args()
559 chandransh 874
    args.email = email
122 ashish 875
    args.password = password
876
    args.write(self._oprot)
877
    self._oprot.writeMessageEnd()
878
    self._oprot.trans.flush()
879
 
880
  def recv_authenticateUser(self, ):
881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
882
    if mtype == TMessageType.EXCEPTION:
883
      x = TApplicationException()
884
      x.read(self._iprot)
885
      self._iprot.readMessageEnd()
886
      raise x
887
    result = authenticateUser_result()
888
    result.read(self._iprot)
889
    self._iprot.readMessageEnd()
3431 rajveer 890
    if result.success is not None:
122 ashish 891
      return result.success
3431 rajveer 892
    if result.auex is not None:
559 chandransh 893
      raise result.auex
122 ashish 894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
895
 
94 ashish 896
  def userExists(self, email):
897
    """
898
    Parameters:
899
     - email
900
    """
901
    self.send_userExists(email)
902
    return self.recv_userExists()
903
 
904
  def send_userExists(self, email):
905
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
906
    args = userExists_args()
907
    args.email = email
908
    args.write(self._oprot)
909
    self._oprot.writeMessageEnd()
910
    self._oprot.trans.flush()
911
 
912
  def recv_userExists(self, ):
913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
914
    if mtype == TMessageType.EXCEPTION:
915
      x = TApplicationException()
916
      x.read(self._iprot)
917
      self._iprot.readMessageEnd()
918
      raise x
919
    result = userExists_result()
920
    result.read(self._iprot)
921
    self._iprot.readMessageEnd()
3431 rajveer 922
    if result.success is not None:
94 ashish 923
      return result.success
3431 rajveer 924
    if result.ucx is not None:
94 ashish 925
      raise result.ucx
926
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
927
 
567 rajveer 928
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 929
    """
930
    Parameters:
931
     - userId
932
     - address
513 rajveer 933
     - setDefault
94 ashish 934
    """
567 rajveer 935
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 936
    return self.recv_addAddressForUser()
937
 
567 rajveer 938
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 939
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
940
    args = addAddressForUser_args()
559 chandransh 941
    args.userId = userId
94 ashish 942
    args.address = address
513 rajveer 943
    args.setDefault = setDefault
94 ashish 944
    args.write(self._oprot)
945
    self._oprot.writeMessageEnd()
946
    self._oprot.trans.flush()
947
 
948
  def recv_addAddressForUser(self, ):
949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
950
    if mtype == TMessageType.EXCEPTION:
951
      x = TApplicationException()
952
      x.read(self._iprot)
953
      self._iprot.readMessageEnd()
954
      raise x
955
    result = addAddressForUser_result()
956
    result.read(self._iprot)
957
    self._iprot.readMessageEnd()
3431 rajveer 958
    if result.success is not None:
94 ashish 959
      return result.success
3431 rajveer 960
    if result.ucx is not None:
94 ashish 961
      raise result.ucx
962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
963
 
964
  def removeAddressForUser(self, userid, addressId):
965
    """
966
    Parameters:
967
     - userid
968
     - addressId
969
    """
970
    self.send_removeAddressForUser(userid, addressId)
971
    return self.recv_removeAddressForUser()
972
 
973
  def send_removeAddressForUser(self, userid, addressId):
974
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
975
    args = removeAddressForUser_args()
976
    args.userid = userid
977
    args.addressId = addressId
978
    args.write(self._oprot)
979
    self._oprot.writeMessageEnd()
980
    self._oprot.trans.flush()
981
 
982
  def recv_removeAddressForUser(self, ):
983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
984
    if mtype == TMessageType.EXCEPTION:
985
      x = TApplicationException()
986
      x.read(self._iprot)
987
      self._iprot.readMessageEnd()
988
      raise x
989
    result = removeAddressForUser_result()
990
    result.read(self._iprot)
991
    self._iprot.readMessageEnd()
3431 rajveer 992
    if result.success is not None:
94 ashish 993
      return result.success
3431 rajveer 994
    if result.ucx is not None:
94 ashish 995
      raise result.ucx
996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
997
 
998
  def setUserAsLoggedIn(self, userId, timestamp):
999
    """
1000
    Parameters:
1001
     - userId
1002
     - timestamp
1003
    """
1004
    self.send_setUserAsLoggedIn(userId, timestamp)
1005
    return self.recv_setUserAsLoggedIn()
1006
 
1007
  def send_setUserAsLoggedIn(self, userId, timestamp):
1008
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1009
    args = setUserAsLoggedIn_args()
1010
    args.userId = userId
1011
    args.timestamp = timestamp
1012
    args.write(self._oprot)
1013
    self._oprot.writeMessageEnd()
1014
    self._oprot.trans.flush()
1015
 
1016
  def recv_setUserAsLoggedIn(self, ):
1017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1018
    if mtype == TMessageType.EXCEPTION:
1019
      x = TApplicationException()
1020
      x.read(self._iprot)
1021
      self._iprot.readMessageEnd()
1022
      raise x
1023
    result = setUserAsLoggedIn_result()
1024
    result.read(self._iprot)
1025
    self._iprot.readMessageEnd()
3431 rajveer 1026
    if result.success is not None:
94 ashish 1027
      return result.success
3431 rajveer 1028
    if result.ucx is not None:
94 ashish 1029
      raise result.ucx
1030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1031
 
1032
  def setUserAsLoggedOut(self, userid, timestamp):
1033
    """
1034
    Parameters:
1035
     - userid
1036
     - timestamp
1037
    """
1038
    self.send_setUserAsLoggedOut(userid, timestamp)
1039
    return self.recv_setUserAsLoggedOut()
1040
 
1041
  def send_setUserAsLoggedOut(self, userid, timestamp):
1042
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1043
    args = setUserAsLoggedOut_args()
1044
    args.userid = userid
1045
    args.timestamp = timestamp
1046
    args.write(self._oprot)
1047
    self._oprot.writeMessageEnd()
1048
    self._oprot.trans.flush()
1049
 
1050
  def recv_setUserAsLoggedOut(self, ):
1051
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1052
    if mtype == TMessageType.EXCEPTION:
1053
      x = TApplicationException()
1054
      x.read(self._iprot)
1055
      self._iprot.readMessageEnd()
1056
      raise x
1057
    result = setUserAsLoggedOut_result()
1058
    result.read(self._iprot)
1059
    self._iprot.readMessageEnd()
3431 rajveer 1060
    if result.success is not None:
94 ashish 1061
      return result.success
3431 rajveer 1062
    if result.ucx is not None:
94 ashish 1063
      raise result.ucx
1064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1065
 
504 rajveer 1066
  def setDefaultAddress(self, userid, addressId):
1067
    """
1068
    Parameters:
1069
     - userid
1070
     - addressId
1071
    """
1072
    self.send_setDefaultAddress(userid, addressId)
1073
    return self.recv_setDefaultAddress()
1074
 
1075
  def send_setDefaultAddress(self, userid, addressId):
1076
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1077
    args = setDefaultAddress_args()
1078
    args.userid = userid
1079
    args.addressId = addressId
1080
    args.write(self._oprot)
1081
    self._oprot.writeMessageEnd()
1082
    self._oprot.trans.flush()
1083
 
1084
  def recv_setDefaultAddress(self, ):
1085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1086
    if mtype == TMessageType.EXCEPTION:
1087
      x = TApplicationException()
1088
      x.read(self._iprot)
1089
      self._iprot.readMessageEnd()
1090
      raise x
1091
    result = setDefaultAddress_result()
1092
    result.read(self._iprot)
1093
    self._iprot.readMessageEnd()
3431 rajveer 1094
    if result.success is not None:
504 rajveer 1095
      return result.success
3431 rajveer 1096
    if result.ucx is not None:
504 rajveer 1097
      raise result.ucx
1098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1099
 
594 rajveer 1100
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1101
    """
1102
    Parameters:
1103
     - userid
594 rajveer 1104
     - oldPassword
1105
     - newPassword
94 ashish 1106
    """
594 rajveer 1107
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1108
    return self.recv_updatePassword()
1109
 
594 rajveer 1110
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1111
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1112
    args = updatePassword_args()
1113
    args.userid = userid
594 rajveer 1114
    args.oldPassword = oldPassword
1115
    args.newPassword = newPassword
94 ashish 1116
    args.write(self._oprot)
1117
    self._oprot.writeMessageEnd()
1118
    self._oprot.trans.flush()
1119
 
1120
  def recv_updatePassword(self, ):
1121
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1122
    if mtype == TMessageType.EXCEPTION:
1123
      x = TApplicationException()
1124
      x.read(self._iprot)
1125
      self._iprot.readMessageEnd()
1126
      raise x
1127
    result = updatePassword_result()
1128
    result.read(self._iprot)
1129
    self._iprot.readMessageEnd()
3431 rajveer 1130
    if result.success is not None:
94 ashish 1131
      return result.success
3431 rajveer 1132
    if result.ucx is not None:
94 ashish 1133
      raise result.ucx
1134
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1135
 
884 rajveer 1136
  def forgotPassword(self, email, newPassword):
581 rajveer 1137
    """
1138
    Parameters:
1139
     - email
884 rajveer 1140
     - newPassword
581 rajveer 1141
    """
884 rajveer 1142
    self.send_forgotPassword(email, newPassword)
581 rajveer 1143
    return self.recv_forgotPassword()
1144
 
884 rajveer 1145
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1146
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1147
    args = forgotPassword_args()
1148
    args.email = email
884 rajveer 1149
    args.newPassword = newPassword
581 rajveer 1150
    args.write(self._oprot)
1151
    self._oprot.writeMessageEnd()
1152
    self._oprot.trans.flush()
1153
 
1154
  def recv_forgotPassword(self, ):
1155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1156
    if mtype == TMessageType.EXCEPTION:
1157
      x = TApplicationException()
1158
      x.read(self._iprot)
1159
      self._iprot.readMessageEnd()
1160
      raise x
1161
    result = forgotPassword_result()
1162
    result.read(self._iprot)
1163
    self._iprot.readMessageEnd()
3431 rajveer 1164
    if result.success is not None:
581 rajveer 1165
      return result.success
3431 rajveer 1166
    if result.ucx is not None:
581 rajveer 1167
      raise result.ucx
1168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1169
 
594 rajveer 1170
  def getAllAddressesForUser(self, userId):
1171
    """
1172
    Parameters:
1173
     - userId
1174
    """
1175
    self.send_getAllAddressesForUser(userId)
1176
    return self.recv_getAllAddressesForUser()
1177
 
1178
  def send_getAllAddressesForUser(self, userId):
1179
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1180
    args = getAllAddressesForUser_args()
1181
    args.userId = userId
1182
    args.write(self._oprot)
1183
    self._oprot.writeMessageEnd()
1184
    self._oprot.trans.flush()
1185
 
1186
  def recv_getAllAddressesForUser(self, ):
1187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1188
    if mtype == TMessageType.EXCEPTION:
1189
      x = TApplicationException()
1190
      x.read(self._iprot)
1191
      self._iprot.readMessageEnd()
1192
      raise x
1193
    result = getAllAddressesForUser_result()
1194
    result.read(self._iprot)
1195
    self._iprot.readMessageEnd()
3431 rajveer 1196
    if result.success is not None:
594 rajveer 1197
      return result.success
3431 rajveer 1198
    if result.ucx is not None:
594 rajveer 1199
      raise result.ucx
1200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1201
 
1894 vikas 1202
  def getAddressById(self, addressId):
1203
    """
1204
    Parameters:
1205
     - addressId
1206
    """
1207
    self.send_getAddressById(addressId)
1208
    return self.recv_getAddressById()
1209
 
1210
  def send_getAddressById(self, addressId):
1211
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1212
    args = getAddressById_args()
1213
    args.addressId = addressId
1214
    args.write(self._oprot)
1215
    self._oprot.writeMessageEnd()
1216
    self._oprot.trans.flush()
1217
 
1218
  def recv_getAddressById(self, ):
1219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1220
    if mtype == TMessageType.EXCEPTION:
1221
      x = TApplicationException()
1222
      x.read(self._iprot)
1223
      self._iprot.readMessageEnd()
1224
      raise x
1225
    result = getAddressById_result()
1226
    result.read(self._iprot)
1227
    self._iprot.readMessageEnd()
3431 rajveer 1228
    if result.success is not None:
1894 vikas 1229
      return result.success
3431 rajveer 1230
    if result.ucx is not None:
1894 vikas 1231
      raise result.ucx
1232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1233
 
594 rajveer 1234
  def getDefaultAddressId(self, userId):
1235
    """
1236
    Parameters:
1237
     - userId
1238
    """
1239
    self.send_getDefaultAddressId(userId)
1240
    return self.recv_getDefaultAddressId()
1241
 
1242
  def send_getDefaultAddressId(self, userId):
1243
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1244
    args = getDefaultAddressId_args()
1245
    args.userId = userId
1246
    args.write(self._oprot)
1247
    self._oprot.writeMessageEnd()
1248
    self._oprot.trans.flush()
1249
 
1250
  def recv_getDefaultAddressId(self, ):
1251
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1252
    if mtype == TMessageType.EXCEPTION:
1253
      x = TApplicationException()
1254
      x.read(self._iprot)
1255
      self._iprot.readMessageEnd()
1256
      raise x
1257
    result = getDefaultAddressId_result()
1258
    result.read(self._iprot)
1259
    self._iprot.readMessageEnd()
3431 rajveer 1260
    if result.success is not None:
594 rajveer 1261
      return result.success
3431 rajveer 1262
    if result.ucx is not None:
594 rajveer 1263
      raise result.ucx
1264
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1265
 
785 rajveer 1266
  def getDefaultPincode(self, userId):
1267
    """
1268
    Parameters:
1269
     - userId
1270
    """
1271
    self.send_getDefaultPincode(userId)
1272
    return self.recv_getDefaultPincode()
1273
 
1274
  def send_getDefaultPincode(self, userId):
1275
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1276
    args = getDefaultPincode_args()
1277
    args.userId = userId
1278
    args.write(self._oprot)
1279
    self._oprot.writeMessageEnd()
1280
    self._oprot.trans.flush()
1281
 
1282
  def recv_getDefaultPincode(self, ):
1283
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1284
    if mtype == TMessageType.EXCEPTION:
1285
      x = TApplicationException()
1286
      x.read(self._iprot)
1287
      self._iprot.readMessageEnd()
1288
      raise x
1289
    result = getDefaultPincode_result()
1290
    result.read(self._iprot)
1291
    self._iprot.readMessageEnd()
3431 rajveer 1292
    if result.success is not None:
785 rajveer 1293
      return result.success
3431 rajveer 1294
    if result.ucx is not None:
785 rajveer 1295
      raise result.ucx
1296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1297
 
1274 varun.gupt 1298
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1299
    """
1300
    Parameters:
1301
     - userId
1302
     - replyTo
1303
     - communicationType
1304
     - orderId
1305
     - airwaybillNo
1306
     - productName
1307
     - subject
1308
     - message
1309
    """
1310
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1311
    return self.recv_saveUserCommunication()
1312
 
1313
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1314
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1315
    args = saveUserCommunication_args()
1316
    args.userId = userId
1317
    args.replyTo = replyTo
1318
    args.communicationType = communicationType
1319
    args.orderId = orderId
1320
    args.airwaybillNo = airwaybillNo
1321
    args.productName = productName
1322
    args.subject = subject
1323
    args.message = message
1324
    args.write(self._oprot)
1325
    self._oprot.writeMessageEnd()
1326
    self._oprot.trans.flush()
1327
 
1328
  def recv_saveUserCommunication(self, ):
1329
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1330
    if mtype == TMessageType.EXCEPTION:
1331
      x = TApplicationException()
1332
      x.read(self._iprot)
1333
      self._iprot.readMessageEnd()
1334
      raise x
1335
    result = saveUserCommunication_result()
1336
    result.read(self._iprot)
1337
    self._iprot.readMessageEnd()
3431 rajveer 1338
    if result.success is not None:
1274 varun.gupt 1339
      return result.success
3431 rajveer 1340
    if result.ucx is not None:
1274 varun.gupt 1341
      raise result.ucx
1342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1343
 
1590 varun.gupt 1344
  def getUserCommunicationById(self, id):
1345
    """
1346
    Parameters:
1347
     - id
1348
    """
1349
    self.send_getUserCommunicationById(id)
1350
    return self.recv_getUserCommunicationById()
1351
 
1352
  def send_getUserCommunicationById(self, id):
1353
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1354
    args = getUserCommunicationById_args()
1355
    args.id = id
1356
    args.write(self._oprot)
1357
    self._oprot.writeMessageEnd()
1358
    self._oprot.trans.flush()
1359
 
1360
  def recv_getUserCommunicationById(self, ):
1361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1362
    if mtype == TMessageType.EXCEPTION:
1363
      x = TApplicationException()
1364
      x.read(self._iprot)
1365
      self._iprot.readMessageEnd()
1366
      raise x
1367
    result = getUserCommunicationById_result()
1368
    result.read(self._iprot)
1369
    self._iprot.readMessageEnd()
3431 rajveer 1370
    if result.success is not None:
1590 varun.gupt 1371
      return result.success
3431 rajveer 1372
    if result.ucx is not None:
1590 varun.gupt 1373
      raise result.ucx
1374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1375
 
1376
  def getUserCommunicationByUser(self, userId):
1377
    """
1378
    Parameters:
1379
     - userId
1380
    """
1381
    self.send_getUserCommunicationByUser(userId)
1382
    return self.recv_getUserCommunicationByUser()
1383
 
1384
  def send_getUserCommunicationByUser(self, userId):
1385
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1386
    args = getUserCommunicationByUser_args()
1387
    args.userId = userId
1388
    args.write(self._oprot)
1389
    self._oprot.writeMessageEnd()
1390
    self._oprot.trans.flush()
1391
 
1392
  def recv_getUserCommunicationByUser(self, ):
1393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1394
    if mtype == TMessageType.EXCEPTION:
1395
      x = TApplicationException()
1396
      x.read(self._iprot)
1397
      self._iprot.readMessageEnd()
1398
      raise x
1399
    result = getUserCommunicationByUser_result()
1400
    result.read(self._iprot)
1401
    self._iprot.readMessageEnd()
3431 rajveer 1402
    if result.success is not None:
1590 varun.gupt 1403
      return result.success
3431 rajveer 1404
    if result.ucx is not None:
1590 varun.gupt 1405
      raise result.ucx
1406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1407
 
1408
  def getAllUserCommunications(self, ):
1409
    self.send_getAllUserCommunications()
1410
    return self.recv_getAllUserCommunications()
1411
 
1412
  def send_getAllUserCommunications(self, ):
1413
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1414
    args = getAllUserCommunications_args()
1415
    args.write(self._oprot)
1416
    self._oprot.writeMessageEnd()
1417
    self._oprot.trans.flush()
1418
 
1419
  def recv_getAllUserCommunications(self, ):
1420
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1421
    if mtype == TMessageType.EXCEPTION:
1422
      x = TApplicationException()
1423
      x.read(self._iprot)
1424
      self._iprot.readMessageEnd()
1425
      raise x
1426
    result = getAllUserCommunications_result()
1427
    result.read(self._iprot)
1428
    self._iprot.readMessageEnd()
3431 rajveer 1429
    if result.success is not None:
1590 varun.gupt 1430
      return result.success
3431 rajveer 1431
    if result.ucx is not None:
1590 varun.gupt 1432
      raise result.ucx
1433
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1434
 
1859 vikas 1435
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1436
    """
1437
    Parameters:
1438
     - name
1859 vikas 1439
     - addedOn
1845 vikas 1440
    """
1859 vikas 1441
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1442
    return self.recv_createMasterAffiliate()
1443
 
1859 vikas 1444
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1445
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1446
    args = createMasterAffiliate_args()
1447
    args.name = name
1859 vikas 1448
    args.addedOn = addedOn
1845 vikas 1449
    args.write(self._oprot)
1450
    self._oprot.writeMessageEnd()
1451
    self._oprot.trans.flush()
1452
 
1453
  def recv_createMasterAffiliate(self, ):
1454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1455
    if mtype == TMessageType.EXCEPTION:
1456
      x = TApplicationException()
1457
      x.read(self._iprot)
1458
      self._iprot.readMessageEnd()
1459
      raise x
1460
    result = createMasterAffiliate_result()
1461
    result.read(self._iprot)
1462
    self._iprot.readMessageEnd()
3431 rajveer 1463
    if result.success is not None:
1845 vikas 1464
      return result.success
3431 rajveer 1465
    if result.utx is not None:
1845 vikas 1466
      raise result.utx
1467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1468
 
1899 vikas 1469
  def getAllMasterAffiliates(self, ):
1470
    self.send_getAllMasterAffiliates()
1471
    return self.recv_getAllMasterAffiliates()
1472
 
1473
  def send_getAllMasterAffiliates(self, ):
1474
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1475
    args = getAllMasterAffiliates_args()
1476
    args.write(self._oprot)
1477
    self._oprot.writeMessageEnd()
1478
    self._oprot.trans.flush()
1479
 
1480
  def recv_getAllMasterAffiliates(self, ):
1481
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1482
    if mtype == TMessageType.EXCEPTION:
1483
      x = TApplicationException()
1484
      x.read(self._iprot)
1485
      self._iprot.readMessageEnd()
1486
      raise x
1487
    result = getAllMasterAffiliates_result()
1488
    result.read(self._iprot)
1489
    self._iprot.readMessageEnd()
3431 rajveer 1490
    if result.success is not None:
1899 vikas 1491
      return result.success
3431 rajveer 1492
    if result.utx is not None:
1899 vikas 1493
      raise result.utx
1494
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1495
 
1845 vikas 1496
  def getMasterAffiliateById(self, id):
1497
    """
1498
    Parameters:
1499
     - id
1500
    """
1501
    self.send_getMasterAffiliateById(id)
1502
    return self.recv_getMasterAffiliateById()
1503
 
1504
  def send_getMasterAffiliateById(self, id):
1505
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1506
    args = getMasterAffiliateById_args()
1507
    args.id = id
1508
    args.write(self._oprot)
1509
    self._oprot.writeMessageEnd()
1510
    self._oprot.trans.flush()
1511
 
1512
  def recv_getMasterAffiliateById(self, ):
1513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1514
    if mtype == TMessageType.EXCEPTION:
1515
      x = TApplicationException()
1516
      x.read(self._iprot)
1517
      self._iprot.readMessageEnd()
1518
      raise x
1519
    result = getMasterAffiliateById_result()
1520
    result.read(self._iprot)
1521
    self._iprot.readMessageEnd()
3431 rajveer 1522
    if result.success is not None:
1845 vikas 1523
      return result.success
3431 rajveer 1524
    if result.utx is not None:
1845 vikas 1525
      raise result.utx
1526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1527
 
1528
  def getMasterAffiliateByName(self, name):
1529
    """
1530
    Parameters:
1531
     - name
1532
    """
1533
    self.send_getMasterAffiliateByName(name)
1534
    return self.recv_getMasterAffiliateByName()
1535
 
1536
  def send_getMasterAffiliateByName(self, name):
1537
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1538
    args = getMasterAffiliateByName_args()
1539
    args.name = name
1540
    args.write(self._oprot)
1541
    self._oprot.writeMessageEnd()
1542
    self._oprot.trans.flush()
1543
 
1544
  def recv_getMasterAffiliateByName(self, ):
1545
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1546
    if mtype == TMessageType.EXCEPTION:
1547
      x = TApplicationException()
1548
      x.read(self._iprot)
1549
      self._iprot.readMessageEnd()
1550
      raise x
1551
    result = getMasterAffiliateByName_result()
1552
    result.read(self._iprot)
1553
    self._iprot.readMessageEnd()
3431 rajveer 1554
    if result.success is not None:
1845 vikas 1555
      return result.success
3431 rajveer 1556
    if result.utx is not None:
1845 vikas 1557
      raise result.utx
1558
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1559
 
1859 vikas 1560
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1561
    """
1562
    Parameters:
1563
     - name
1564
     - url
1565
     - masterAffiliateId
1859 vikas 1566
     - addedOn
1845 vikas 1567
    """
1859 vikas 1568
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1569
    return self.recv_createAffiliate()
1570
 
1859 vikas 1571
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1572
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1573
    args = createAffiliate_args()
1574
    args.name = name
1575
    args.url = url
1576
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1577
    args.addedOn = addedOn
1845 vikas 1578
    args.write(self._oprot)
1579
    self._oprot.writeMessageEnd()
1580
    self._oprot.trans.flush()
1581
 
1582
  def recv_createAffiliate(self, ):
1583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1584
    if mtype == TMessageType.EXCEPTION:
1585
      x = TApplicationException()
1586
      x.read(self._iprot)
1587
      self._iprot.readMessageEnd()
1588
      raise x
1589
    result = createAffiliate_result()
1590
    result.read(self._iprot)
1591
    self._iprot.readMessageEnd()
3431 rajveer 1592
    if result.success is not None:
1845 vikas 1593
      return result.success
3431 rajveer 1594
    if result.utx is not None:
1845 vikas 1595
      raise result.utx
1596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1597
 
1598
  def getAffiliateById(self, id):
1599
    """
1600
    Parameters:
1601
     - id
1602
    """
1603
    self.send_getAffiliateById(id)
1604
    return self.recv_getAffiliateById()
1605
 
1606
  def send_getAffiliateById(self, id):
1607
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1608
    args = getAffiliateById_args()
1609
    args.id = id
1610
    args.write(self._oprot)
1611
    self._oprot.writeMessageEnd()
1612
    self._oprot.trans.flush()
1613
 
1614
  def recv_getAffiliateById(self, ):
1615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1616
    if mtype == TMessageType.EXCEPTION:
1617
      x = TApplicationException()
1618
      x.read(self._iprot)
1619
      self._iprot.readMessageEnd()
1620
      raise x
1621
    result = getAffiliateById_result()
1622
    result.read(self._iprot)
1623
    self._iprot.readMessageEnd()
3431 rajveer 1624
    if result.success is not None:
1845 vikas 1625
      return result.success
3431 rajveer 1626
    if result.utx is not None:
1845 vikas 1627
      raise result.utx
1628
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1629
 
1630
  def getAffiliateByName(self, name):
1631
    """
1632
    Parameters:
1633
     - name
1634
    """
1635
    self.send_getAffiliateByName(name)
1636
    return self.recv_getAffiliateByName()
1637
 
1638
  def send_getAffiliateByName(self, name):
1639
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1640
    args = getAffiliateByName_args()
1641
    args.name = name
1642
    args.write(self._oprot)
1643
    self._oprot.writeMessageEnd()
1644
    self._oprot.trans.flush()
1645
 
1646
  def recv_getAffiliateByName(self, ):
1647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1648
    if mtype == TMessageType.EXCEPTION:
1649
      x = TApplicationException()
1650
      x.read(self._iprot)
1651
      self._iprot.readMessageEnd()
1652
      raise x
1653
    result = getAffiliateByName_result()
1654
    result.read(self._iprot)
1655
    self._iprot.readMessageEnd()
3431 rajveer 1656
    if result.success is not None:
1845 vikas 1657
      return result.success
3431 rajveer 1658
    if result.utx is not None:
1845 vikas 1659
      raise result.utx
1660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1661
 
1996 vikas 1662
  def getTrackerById(self, id):
1845 vikas 1663
    """
1664
    Parameters:
1665
     - id
1666
    """
1996 vikas 1667
    self.send_getTrackerById(id)
1845 vikas 1668
    return self.recv_getTrackerById()
1669
 
1996 vikas 1670
  def send_getTrackerById(self, id):
1845 vikas 1671
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1672
    args = getTrackerById_args()
1996 vikas 1673
    args.id = id
1845 vikas 1674
    args.write(self._oprot)
1675
    self._oprot.writeMessageEnd()
1676
    self._oprot.trans.flush()
1677
 
1678
  def recv_getTrackerById(self, ):
1679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1680
    if mtype == TMessageType.EXCEPTION:
1681
      x = TApplicationException()
1682
      x.read(self._iprot)
1683
      self._iprot.readMessageEnd()
1684
      raise x
1685
    result = getTrackerById_result()
1686
    result.read(self._iprot)
1687
    self._iprot.readMessageEnd()
3431 rajveer 1688
    if result.success is not None:
1845 vikas 1689
      return result.success
3431 rajveer 1690
    if result.utx is not None:
1845 vikas 1691
      raise result.utx
1692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1693
 
1996 vikas 1694
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1695
    """
1696
    Parameters:
1996 vikas 1697
     - id
1845 vikas 1698
    """
1996 vikas 1699
    self.send_getAffiliatesByMasterAffiliate(id)
1700
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1701
 
1996 vikas 1702
  def send_getAffiliatesByMasterAffiliate(self, id):
1703
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1704
    args = getAffiliatesByMasterAffiliate_args()
1705
    args.id = id
1845 vikas 1706
    args.write(self._oprot)
1707
    self._oprot.writeMessageEnd()
1708
    self._oprot.trans.flush()
1709
 
1996 vikas 1710
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1711
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1712
    if mtype == TMessageType.EXCEPTION:
1713
      x = TApplicationException()
1714
      x.read(self._iprot)
1715
      self._iprot.readMessageEnd()
1716
      raise x
1996 vikas 1717
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1718
    result.read(self._iprot)
1719
    self._iprot.readMessageEnd()
3431 rajveer 1720
    if result.success is not None:
1845 vikas 1721
      return result.success
3431 rajveer 1722
    if result.utx is not None:
1845 vikas 1723
      raise result.utx
1996 vikas 1724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1725
 
1996 vikas 1726
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1727
    """
1728
    Parameters:
1996 vikas 1729
     - affiliateId
1845 vikas 1730
     - userId
1731
     - event
1732
     - url
1733
     - data
1859 vikas 1734
     - addedOn
1845 vikas 1735
    """
1996 vikas 1736
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1737
    return self.recv_addTrackLog()
1738
 
1996 vikas 1739
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1740
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1741
    args = addTrackLog_args()
1996 vikas 1742
    args.affiliateId = affiliateId
1845 vikas 1743
    args.userId = userId
1744
    args.event = event
1745
    args.url = url
1746
    args.data = data
1859 vikas 1747
    args.addedOn = addedOn
1845 vikas 1748
    args.write(self._oprot)
1749
    self._oprot.writeMessageEnd()
1750
    self._oprot.trans.flush()
1751
 
1752
  def recv_addTrackLog(self, ):
1753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1754
    if mtype == TMessageType.EXCEPTION:
1755
      x = TApplicationException()
1756
      x.read(self._iprot)
1757
      self._iprot.readMessageEnd()
1758
      raise x
1759
    result = addTrackLog_result()
1760
    result.read(self._iprot)
1761
    self._iprot.readMessageEnd()
3431 rajveer 1762
    if result.success is not None:
1845 vikas 1763
      return result.success
3431 rajveer 1764
    if result.utx is not None:
1845 vikas 1765
      raise result.utx
1766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1767
 
1768
  def getTrackLogById(self, id):
1769
    """
1770
    Parameters:
1771
     - id
1772
    """
1773
    self.send_getTrackLogById(id)
1774
    return self.recv_getTrackLogById()
1775
 
1776
  def send_getTrackLogById(self, id):
1777
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1778
    args = getTrackLogById_args()
1779
    args.id = id
1780
    args.write(self._oprot)
1781
    self._oprot.writeMessageEnd()
1782
    self._oprot.trans.flush()
1783
 
1784
  def recv_getTrackLogById(self, ):
1785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1786
    if mtype == TMessageType.EXCEPTION:
1787
      x = TApplicationException()
1788
      x.read(self._iprot)
1789
      self._iprot.readMessageEnd()
1790
      raise x
1791
    result = getTrackLogById_result()
1792
    result.read(self._iprot)
1793
    self._iprot.readMessageEnd()
3431 rajveer 1794
    if result.success is not None:
1845 vikas 1795
      return result.success
3431 rajveer 1796
    if result.utx is not None:
1845 vikas 1797
      raise result.utx
1798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1799
 
3293 vikas 1800
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1801
    """
1802
    Parameters:
1996 vikas 1803
     - affiliateId
3293 vikas 1804
     - startDate
1805
     - endDate
1845 vikas 1806
    """
3293 vikas 1807
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1808
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1809
 
3293 vikas 1810
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1811
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1812
    args = getTrackLogsByAffiliate_args()
1813
    args.affiliateId = affiliateId
3293 vikas 1814
    args.startDate = startDate
1815
    args.endDate = endDate
1845 vikas 1816
    args.write(self._oprot)
1817
    self._oprot.writeMessageEnd()
1818
    self._oprot.trans.flush()
1819
 
1996 vikas 1820
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1822
    if mtype == TMessageType.EXCEPTION:
1823
      x = TApplicationException()
1824
      x.read(self._iprot)
1825
      self._iprot.readMessageEnd()
1826
      raise x
1996 vikas 1827
    result = getTrackLogsByAffiliate_result()
1845 vikas 1828
    result.read(self._iprot)
1829
    self._iprot.readMessageEnd()
3431 rajveer 1830
    if result.success is not None:
1845 vikas 1831
      return result.success
3431 rajveer 1832
    if result.utx is not None:
1845 vikas 1833
      raise result.utx
1996 vikas 1834
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1835
 
1836
  def getTrackLogsByUser(self, userId):
1837
    """
1838
    Parameters:
1839
     - userId
1840
    """
1841
    self.send_getTrackLogsByUser(userId)
1842
    return self.recv_getTrackLogsByUser()
1843
 
1844
  def send_getTrackLogsByUser(self, userId):
1845
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1846
    args = getTrackLogsByUser_args()
1847
    args.userId = userId
1848
    args.write(self._oprot)
1849
    self._oprot.writeMessageEnd()
1850
    self._oprot.trans.flush()
1851
 
1852
  def recv_getTrackLogsByUser(self, ):
1853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1854
    if mtype == TMessageType.EXCEPTION:
1855
      x = TApplicationException()
1856
      x.read(self._iprot)
1857
      self._iprot.readMessageEnd()
1858
      raise x
1859
    result = getTrackLogsByUser_result()
1860
    result.read(self._iprot)
1861
    self._iprot.readMessageEnd()
3431 rajveer 1862
    if result.success is not None:
1845 vikas 1863
      return result.success
3431 rajveer 1864
    if result.utx is not None:
1845 vikas 1865
      raise result.utx
1866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1867
 
1996 vikas 1868
  def getTrackLogs(self, userId, event, url):
1845 vikas 1869
    """
1870
    Parameters:
1871
     - userId
1872
     - event
1873
     - url
1874
    """
1996 vikas 1875
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1876
    return self.recv_getTrackLogs()
1877
 
1996 vikas 1878
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1879
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1880
    args = getTrackLogs_args()
1881
    args.userId = userId
1882
    args.event = event
1883
    args.url = url
1884
    args.write(self._oprot)
1885
    self._oprot.writeMessageEnd()
1886
    self._oprot.trans.flush()
1887
 
1888
  def recv_getTrackLogs(self, ):
1889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1890
    if mtype == TMessageType.EXCEPTION:
1891
      x = TApplicationException()
1892
      x.read(self._iprot)
1893
      self._iprot.readMessageEnd()
1894
      raise x
1895
    result = getTrackLogs_result()
1896
    result.read(self._iprot)
1897
    self._iprot.readMessageEnd()
3431 rajveer 1898
    if result.success is not None:
1845 vikas 1899
      return result.success
3431 rajveer 1900
    if result.utx is not None:
1845 vikas 1901
      raise result.utx
1902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1903
 
559 chandransh 1904
  def createCart(self, userId):
94 ashish 1905
    """
1906
    Parameters:
559 chandransh 1907
     - userId
94 ashish 1908
    """
559 chandransh 1909
    self.send_createCart(userId)
1910
    return self.recv_createCart()
94 ashish 1911
 
559 chandransh 1912
  def send_createCart(self, userId):
1913
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1914
    args = createCart_args()
1915
    args.userId = userId
94 ashish 1916
    args.write(self._oprot)
1917
    self._oprot.writeMessageEnd()
1918
    self._oprot.trans.flush()
1919
 
559 chandransh 1920
  def recv_createCart(self, ):
94 ashish 1921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1922
    if mtype == TMessageType.EXCEPTION:
1923
      x = TApplicationException()
1924
      x.read(self._iprot)
1925
      self._iprot.readMessageEnd()
1926
      raise x
559 chandransh 1927
    result = createCart_result()
94 ashish 1928
    result.read(self._iprot)
1929
    self._iprot.readMessageEnd()
3431 rajveer 1930
    if result.success is not None:
94 ashish 1931
      return result.success
3431 rajveer 1932
    if result.scx is not None:
559 chandransh 1933
      raise result.scx
1934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1935
 
559 chandransh 1936
  def getCurrentCart(self, userId):
94 ashish 1937
    """
1938
    Parameters:
559 chandransh 1939
     - userId
94 ashish 1940
    """
559 chandransh 1941
    self.send_getCurrentCart(userId)
1942
    return self.recv_getCurrentCart()
94 ashish 1943
 
559 chandransh 1944
  def send_getCurrentCart(self, userId):
1945
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1946
    args = getCurrentCart_args()
1947
    args.userId = userId
94 ashish 1948
    args.write(self._oprot)
1949
    self._oprot.writeMessageEnd()
1950
    self._oprot.trans.flush()
1951
 
559 chandransh 1952
  def recv_getCurrentCart(self, ):
94 ashish 1953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1954
    if mtype == TMessageType.EXCEPTION:
1955
      x = TApplicationException()
1956
      x.read(self._iprot)
1957
      self._iprot.readMessageEnd()
1958
      raise x
559 chandransh 1959
    result = getCurrentCart_result()
94 ashish 1960
    result.read(self._iprot)
1961
    self._iprot.readMessageEnd()
3431 rajveer 1962
    if result.success is not None:
94 ashish 1963
      return result.success
3431 rajveer 1964
    if result.scx is not None:
559 chandransh 1965
      raise result.scx
1966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1967
 
559 chandransh 1968
  def getCart(self, cartId):
94 ashish 1969
    """
1970
    Parameters:
559 chandransh 1971
     - cartId
94 ashish 1972
    """
559 chandransh 1973
    self.send_getCart(cartId)
1974
    return self.recv_getCart()
94 ashish 1975
 
559 chandransh 1976
  def send_getCart(self, cartId):
1977
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1978
    args = getCart_args()
1979
    args.cartId = cartId
94 ashish 1980
    args.write(self._oprot)
1981
    self._oprot.writeMessageEnd()
1982
    self._oprot.trans.flush()
1983
 
559 chandransh 1984
  def recv_getCart(self, ):
94 ashish 1985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1986
    if mtype == TMessageType.EXCEPTION:
1987
      x = TApplicationException()
1988
      x.read(self._iprot)
1989
      self._iprot.readMessageEnd()
1990
      raise x
559 chandransh 1991
    result = getCart_result()
94 ashish 1992
    result.read(self._iprot)
1993
    self._iprot.readMessageEnd()
3431 rajveer 1994
    if result.success is not None:
94 ashish 1995
      return result.success
3431 rajveer 1996
    if result.scx is not None:
559 chandransh 1997
      raise result.scx
1998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1999
 
559 chandransh 2000
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2001
    """
2002
    Parameters:
559 chandransh 2003
     - from_time
2004
     - to_time
2005
     - status
94 ashish 2006
    """
559 chandransh 2007
    self.send_getCartsByTime(from_time, to_time, status)
2008
    return self.recv_getCartsByTime()
94 ashish 2009
 
559 chandransh 2010
  def send_getCartsByTime(self, from_time, to_time, status):
2011
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2012
    args = getCartsByTime_args()
2013
    args.from_time = from_time
2014
    args.to_time = to_time
2015
    args.status = status
94 ashish 2016
    args.write(self._oprot)
2017
    self._oprot.writeMessageEnd()
2018
    self._oprot.trans.flush()
2019
 
559 chandransh 2020
  def recv_getCartsByTime(self, ):
94 ashish 2021
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2022
    if mtype == TMessageType.EXCEPTION:
2023
      x = TApplicationException()
2024
      x.read(self._iprot)
2025
      self._iprot.readMessageEnd()
2026
      raise x
559 chandransh 2027
    result = getCartsByTime_result()
94 ashish 2028
    result.read(self._iprot)
2029
    self._iprot.readMessageEnd()
3431 rajveer 2030
    if result.success is not None:
94 ashish 2031
      return result.success
3431 rajveer 2032
    if result.scx is not None:
559 chandransh 2033
      raise result.scx
2034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2035
 
3557 rajveer 2036
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2037
    """
2038
    Parameters:
2039
     - cartId
2040
     - itemId
2041
     - quantity
3557 rajveer 2042
     - sourceId
559 chandransh 2043
    """
3557 rajveer 2044
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2045
    return self.recv_addItemToCart()
559 chandransh 2046
 
3557 rajveer 2047
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2048
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2049
    args = addItemToCart_args()
2050
    args.cartId = cartId
2051
    args.itemId = itemId
2052
    args.quantity = quantity
3557 rajveer 2053
    args.sourceId = sourceId
559 chandransh 2054
    args.write(self._oprot)
2055
    self._oprot.writeMessageEnd()
2056
    self._oprot.trans.flush()
2057
 
2058
  def recv_addItemToCart(self, ):
2059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2060
    if mtype == TMessageType.EXCEPTION:
2061
      x = TApplicationException()
2062
      x.read(self._iprot)
2063
      self._iprot.readMessageEnd()
2064
      raise x
2065
    result = addItemToCart_result()
2066
    result.read(self._iprot)
2067
    self._iprot.readMessageEnd()
3431 rajveer 2068
    if result.success is not None:
2035 rajveer 2069
      return result.success
3431 rajveer 2070
    if result.scx is not None:
559 chandransh 2071
      raise result.scx
2035 rajveer 2072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2073
 
2074
  def deleteItemFromCart(self, cartId, itemId):
2075
    """
2076
    Parameters:
2077
     - cartId
2078
     - itemId
2079
    """
2080
    self.send_deleteItemFromCart(cartId, itemId)
2081
    self.recv_deleteItemFromCart()
2082
 
2083
  def send_deleteItemFromCart(self, cartId, itemId):
2084
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2085
    args = deleteItemFromCart_args()
2086
    args.cartId = cartId
2087
    args.itemId = itemId
2088
    args.write(self._oprot)
2089
    self._oprot.writeMessageEnd()
2090
    self._oprot.trans.flush()
2091
 
2092
  def recv_deleteItemFromCart(self, ):
2093
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2094
    if mtype == TMessageType.EXCEPTION:
2095
      x = TApplicationException()
2096
      x.read(self._iprot)
2097
      self._iprot.readMessageEnd()
2098
      raise x
2099
    result = deleteItemFromCart_result()
2100
    result.read(self._iprot)
2101
    self._iprot.readMessageEnd()
3431 rajveer 2102
    if result.scx is not None:
559 chandransh 2103
      raise result.scx
2104
    return
2105
 
2106
  def changeItemStatus(self, cartId, itemId, status):
2107
    """
2108
    Parameters:
2109
     - cartId
2110
     - itemId
2111
     - status
2112
    """
2113
    self.send_changeItemStatus(cartId, itemId, status)
2114
    self.recv_changeItemStatus()
2115
 
2116
  def send_changeItemStatus(self, cartId, itemId, status):
2117
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2118
    args = changeItemStatus_args()
2119
    args.cartId = cartId
2120
    args.itemId = itemId
2121
    args.status = status
2122
    args.write(self._oprot)
2123
    self._oprot.writeMessageEnd()
2124
    self._oprot.trans.flush()
2125
 
2126
  def recv_changeItemStatus(self, ):
2127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2128
    if mtype == TMessageType.EXCEPTION:
2129
      x = TApplicationException()
2130
      x.read(self._iprot)
2131
      self._iprot.readMessageEnd()
2132
      raise x
2133
    result = changeItemStatus_result()
2134
    result.read(self._iprot)
2135
    self._iprot.readMessageEnd()
3431 rajveer 2136
    if result.scx is not None:
559 chandransh 2137
      raise result.scx
2138
    return
2139
 
2140
  def addAddressToCart(self, cartId, addressId):
2141
    """
2142
    Parameters:
2143
     - cartId
2144
     - addressId
2145
    """
2146
    self.send_addAddressToCart(cartId, addressId)
2147
    self.recv_addAddressToCart()
2148
 
2149
  def send_addAddressToCart(self, cartId, addressId):
2150
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2151
    args = addAddressToCart_args()
2152
    args.cartId = cartId
2153
    args.addressId = addressId
2154
    args.write(self._oprot)
2155
    self._oprot.writeMessageEnd()
2156
    self._oprot.trans.flush()
2157
 
2158
  def recv_addAddressToCart(self, ):
2159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2160
    if mtype == TMessageType.EXCEPTION:
2161
      x = TApplicationException()
2162
      x.read(self._iprot)
2163
      self._iprot.readMessageEnd()
2164
      raise x
2165
    result = addAddressToCart_result()
2166
    result.read(self._iprot)
2167
    self._iprot.readMessageEnd()
3431 rajveer 2168
    if result.scx is not None:
575 chandransh 2169
      raise result.scx
559 chandransh 2170
    return
2171
 
1976 varun.gupt 2172
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2173
    """
2174
    Parameters:
2175
     - cartId
2176
     - couponCode
2177
     - totalPrice
2178
     - discountedPrice
2179
    """
2180
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2181
    self.recv_applyCouponToCart()
2182
 
2183
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2184
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2185
    args = applyCouponToCart_args()
2186
    args.cartId = cartId
2187
    args.couponCode = couponCode
2188
    args.totalPrice = totalPrice
2189
    args.discountedPrice = discountedPrice
2190
    args.write(self._oprot)
2191
    self._oprot.writeMessageEnd()
2192
    self._oprot.trans.flush()
2193
 
2194
  def recv_applyCouponToCart(self, ):
2195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2196
    if mtype == TMessageType.EXCEPTION:
2197
      x = TApplicationException()
2198
      x.read(self._iprot)
2199
      self._iprot.readMessageEnd()
2200
      raise x
2201
    result = applyCouponToCart_result()
2202
    result.read(self._iprot)
2203
    self._iprot.readMessageEnd()
3431 rajveer 2204
    if result.scx is not None:
1976 varun.gupt 2205
      raise result.scx
2206
    return
2207
 
2208
  def removeCoupon(self, cartId):
2209
    """
2210
    Parameters:
2211
     - cartId
2212
    """
2213
    self.send_removeCoupon(cartId)
2214
    self.recv_removeCoupon()
2215
 
2216
  def send_removeCoupon(self, cartId):
2217
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2218
    args = removeCoupon_args()
2219
    args.cartId = cartId
2220
    args.write(self._oprot)
2221
    self._oprot.writeMessageEnd()
2222
    self._oprot.trans.flush()
2223
 
2224
  def recv_removeCoupon(self, ):
2225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2226
    if mtype == TMessageType.EXCEPTION:
2227
      x = TApplicationException()
2228
      x.read(self._iprot)
2229
      self._iprot.readMessageEnd()
2230
      raise x
2231
    result = removeCoupon_result()
2232
    result.read(self._iprot)
2233
    self._iprot.readMessageEnd()
3431 rajveer 2234
    if result.scx is not None:
1976 varun.gupt 2235
      raise result.scx
2236
    return
2237
 
3554 varun.gupt 2238
  def deleteDiscountsFromCart(self, cartId):
2239
    """
2240
    Deletes all the discounts associated with the cart
2241
 
2242
    Parameters:
2243
     - cartId
2244
    """
2245
    self.send_deleteDiscountsFromCart(cartId)
2246
    self.recv_deleteDiscountsFromCart()
2247
 
2248
  def send_deleteDiscountsFromCart(self, cartId):
2249
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2250
    args = deleteDiscountsFromCart_args()
2251
    args.cartId = cartId
2252
    args.write(self._oprot)
2253
    self._oprot.writeMessageEnd()
2254
    self._oprot.trans.flush()
2255
 
2256
  def recv_deleteDiscountsFromCart(self, ):
2257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2258
    if mtype == TMessageType.EXCEPTION:
2259
      x = TApplicationException()
2260
      x.read(self._iprot)
2261
      self._iprot.readMessageEnd()
2262
      raise x
2263
    result = deleteDiscountsFromCart_result()
2264
    result.read(self._iprot)
2265
    self._iprot.readMessageEnd()
2266
    if result.scx is not None:
2267
      raise result.scx
2268
    return
2269
 
2270
  def saveDiscounts(self, discounts):
2271
    """
2272
    Accepts a list of thrift objects of Discount type and saves them
2273
 
2274
    Parameters:
2275
     - discounts
2276
    """
2277
    self.send_saveDiscounts(discounts)
2278
    self.recv_saveDiscounts()
2279
 
2280
  def send_saveDiscounts(self, discounts):
2281
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2282
    args = saveDiscounts_args()
2283
    args.discounts = discounts
2284
    args.write(self._oprot)
2285
    self._oprot.writeMessageEnd()
2286
    self._oprot.trans.flush()
2287
 
2288
  def recv_saveDiscounts(self, ):
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
2295
    result = saveDiscounts_result()
2296
    result.read(self._iprot)
2297
    self._iprot.readMessageEnd()
2298
    if result.scx is not None:
2299
      raise result.scx
2300
    return
2301
 
5326 rajveer 2302
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2303
    """
690 chandransh 2304
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2305
 
559 chandransh 2306
    Parameters:
2307
     - cartId
2815 vikas 2308
     - sessionSource
2309
     - sessionStartTime
3858 vikas 2310
     - firstSource
2311
     - firstSourceTime
5326 rajveer 2312
     - userId
559 chandransh 2313
    """
5326 rajveer 2314
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2315
    return self.recv_createOrders()
559 chandransh 2316
 
5326 rajveer 2317
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2318
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2319
    args = createOrders_args()
559 chandransh 2320
    args.cartId = cartId
2815 vikas 2321
    args.sessionSource = sessionSource
2322
    args.sessionStartTime = sessionStartTime
3858 vikas 2323
    args.firstSource = firstSource
2324
    args.firstSourceTime = firstSourceTime
5326 rajveer 2325
    args.userId = userId
559 chandransh 2326
    args.write(self._oprot)
2327
    self._oprot.writeMessageEnd()
2328
    self._oprot.trans.flush()
2329
 
690 chandransh 2330
  def recv_createOrders(self, ):
559 chandransh 2331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2332
    if mtype == TMessageType.EXCEPTION:
2333
      x = TApplicationException()
2334
      x.read(self._iprot)
2335
      self._iprot.readMessageEnd()
2336
      raise x
690 chandransh 2337
    result = createOrders_result()
559 chandransh 2338
    result.read(self._iprot)
2339
    self._iprot.readMessageEnd()
3431 rajveer 2340
    if result.success is not None:
130 ashish 2341
      return result.success
3431 rajveer 2342
    if result.scx is not None:
559 chandransh 2343
      raise result.scx
690 chandransh 2344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2345
 
3557 rajveer 2346
  def validateCart(self, cartId, sourceId):
130 ashish 2347
    """
690 chandransh 2348
    Validates that:
2349
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2350
    2. All of the lines in the cart are active items.
690 chandransh 2351
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2352
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2353
 
130 ashish 2354
    Parameters:
559 chandransh 2355
     - cartId
3557 rajveer 2356
     - sourceId
130 ashish 2357
    """
3557 rajveer 2358
    self.send_validateCart(cartId, sourceId)
559 chandransh 2359
    return self.recv_validateCart()
130 ashish 2360
 
3557 rajveer 2361
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2362
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2363
    args = validateCart_args()
2364
    args.cartId = cartId
3557 rajveer 2365
    args.sourceId = sourceId
130 ashish 2366
    args.write(self._oprot)
2367
    self._oprot.writeMessageEnd()
2368
    self._oprot.trans.flush()
2369
 
559 chandransh 2370
  def recv_validateCart(self, ):
130 ashish 2371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2372
    if mtype == TMessageType.EXCEPTION:
2373
      x = TApplicationException()
2374
      x.read(self._iprot)
2375
      self._iprot.readMessageEnd()
2376
      raise x
559 chandransh 2377
    result = validateCart_result()
130 ashish 2378
    result.read(self._iprot)
2379
    self._iprot.readMessageEnd()
3431 rajveer 2380
    if result.success is not None:
130 ashish 2381
      return result.success
3431 rajveer 2382
    if result.scex is not None:
575 chandransh 2383
      raise result.scex
559 chandransh 2384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2385
 
690 chandransh 2386
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2387
    """
690 chandransh 2388
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2389
 
575 chandransh 2390
    Parameters:
690 chandransh 2391
     - fromCartId
2392
     - toCartId
2393
    """
2394
    self.send_mergeCart(fromCartId, toCartId)
2395
    self.recv_mergeCart()
2396
 
2397
  def send_mergeCart(self, fromCartId, toCartId):
2398
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2399
    args = mergeCart_args()
2400
    args.fromCartId = fromCartId
2401
    args.toCartId = toCartId
2402
    args.write(self._oprot)
2403
    self._oprot.writeMessageEnd()
2404
    self._oprot.trans.flush()
2405
 
2406
  def recv_mergeCart(self, ):
2407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2408
    if mtype == TMessageType.EXCEPTION:
2409
      x = TApplicationException()
2410
      x.read(self._iprot)
2411
      self._iprot.readMessageEnd()
2412
      raise x
2413
    result = mergeCart_result()
2414
    result.read(self._iprot)
2415
    self._iprot.readMessageEnd()
2416
    return
2417
 
2418
  def checkOut(self, cartId):
2419
    """
2420
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2421
 
690 chandransh 2422
    Parameters:
575 chandransh 2423
     - cartId
2424
    """
690 chandransh 2425
    self.send_checkOut(cartId)
2426
    return self.recv_checkOut()
575 chandransh 2427
 
690 chandransh 2428
  def send_checkOut(self, cartId):
2429
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2430
    args = checkOut_args()
575 chandransh 2431
    args.cartId = cartId
2432
    args.write(self._oprot)
2433
    self._oprot.writeMessageEnd()
2434
    self._oprot.trans.flush()
2435
 
690 chandransh 2436
  def recv_checkOut(self, ):
575 chandransh 2437
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2438
    if mtype == TMessageType.EXCEPTION:
2439
      x = TApplicationException()
2440
      x.read(self._iprot)
2441
      self._iprot.readMessageEnd()
2442
      raise x
690 chandransh 2443
    result = checkOut_result()
575 chandransh 2444
    result.read(self._iprot)
2445
    self._iprot.readMessageEnd()
3431 rajveer 2446
    if result.success is not None:
575 chandransh 2447
      return result.success
3431 rajveer 2448
    if result.scex is not None:
575 chandransh 2449
      raise result.scex
690 chandransh 2450
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2451
 
690 chandransh 2452
  def resetCart(self, cartId, items):
559 chandransh 2453
    """
690 chandransh 2454
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2455
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2456
 
559 chandransh 2457
    Parameters:
690 chandransh 2458
     - cartId
2459
     - items
559 chandransh 2460
    """
690 chandransh 2461
    self.send_resetCart(cartId, items)
2462
    return self.recv_resetCart()
130 ashish 2463
 
690 chandransh 2464
  def send_resetCart(self, cartId, items):
2465
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2466
    args = resetCart_args()
2467
    args.cartId = cartId
2468
    args.items = items
559 chandransh 2469
    args.write(self._oprot)
2470
    self._oprot.writeMessageEnd()
2471
    self._oprot.trans.flush()
2472
 
690 chandransh 2473
  def recv_resetCart(self, ):
559 chandransh 2474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2475
    if mtype == TMessageType.EXCEPTION:
2476
      x = TApplicationException()
2477
      x.read(self._iprot)
2478
      self._iprot.readMessageEnd()
2479
      raise x
690 chandransh 2480
    result = resetCart_result()
559 chandransh 2481
    result.read(self._iprot)
2482
    self._iprot.readMessageEnd()
3431 rajveer 2483
    if result.success is not None:
690 chandransh 2484
      return result.success
3431 rajveer 2485
    if result.scex is not None:
690 chandransh 2486
      raise result.scex
2487
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2488
 
2981 rajveer 2489
  def getUserCount(self, userType):
559 chandransh 2490
    """
2981 rajveer 2491
    Returns number of registered users.
2492
    If userType = null, then it returns count of all users, including anonymous
2493
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2494
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2495
 
559 chandransh 2496
    Parameters:
2981 rajveer 2497
     - userType
559 chandransh 2498
    """
2981 rajveer 2499
    self.send_getUserCount(userType)
2500
    return self.recv_getUserCount()
559 chandransh 2501
 
2981 rajveer 2502
  def send_getUserCount(self, userType):
2503
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2504
    args = getUserCount_args()
2505
    args.userType = userType
559 chandransh 2506
    args.write(self._oprot)
2507
    self._oprot.writeMessageEnd()
2508
    self._oprot.trans.flush()
2509
 
2981 rajveer 2510
  def recv_getUserCount(self, ):
559 chandransh 2511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2512
    if mtype == TMessageType.EXCEPTION:
2513
      x = TApplicationException()
2514
      x.read(self._iprot)
2515
      self._iprot.readMessageEnd()
2516
      raise x
2981 rajveer 2517
    result = getUserCount_result()
559 chandransh 2518
    result.read(self._iprot)
2519
    self._iprot.readMessageEnd()
3431 rajveer 2520
    if result.success is not None:
559 chandransh 2521
      return result.success
2981 rajveer 2522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2523
 
2981 rajveer 2524
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2525
    """
2981 rajveer 2526
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2527
    If any of startDate or endDate is -1, then that filter is ignored.
2528
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2529
 
2530
 
559 chandransh 2531
    Parameters:
2981 rajveer 2532
     - userType
2533
     - startDate
2534
     - endDate
559 chandransh 2535
    """
2981 rajveer 2536
    self.send_getAllUsers(userType, startDate, endDate)
2537
    return self.recv_getAllUsers()
559 chandransh 2538
 
2981 rajveer 2539
  def send_getAllUsers(self, userType, startDate, endDate):
2540
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2541
    args = getAllUsers_args()
2542
    args.userType = userType
2543
    args.startDate = startDate
2544
    args.endDate = endDate
559 chandransh 2545
    args.write(self._oprot)
2546
    self._oprot.writeMessageEnd()
2547
    self._oprot.trans.flush()
2548
 
2981 rajveer 2549
  def recv_getAllUsers(self, ):
559 chandransh 2550
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2551
    if mtype == TMessageType.EXCEPTION:
2552
      x = TApplicationException()
2553
      x.read(self._iprot)
2554
      self._iprot.readMessageEnd()
2555
      raise x
2981 rajveer 2556
    result = getAllUsers_result()
559 chandransh 2557
    result.read(self._iprot)
2558
    self._iprot.readMessageEnd()
3431 rajveer 2559
    if result.success is not None:
559 chandransh 2560
      return result.success
2981 rajveer 2561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2562
 
2981 rajveer 2563
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2564
    """
2565
    Parameters:
2981 rajveer 2566
     - user_id
2567
     - entity_id
2568
     - slide
2569
     - note
559 chandransh 2570
    """
2981 rajveer 2571
    self.send_putUserNote(user_id, entity_id, slide, note)
2572
    self.recv_putUserNote()
559 chandransh 2573
 
2981 rajveer 2574
  def send_putUserNote(self, user_id, entity_id, slide, note):
2575
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2576
    args = putUserNote_args()
2577
    args.user_id = user_id
2578
    args.entity_id = entity_id
2579
    args.slide = slide
2580
    args.note = note
559 chandransh 2581
    args.write(self._oprot)
2582
    self._oprot.writeMessageEnd()
2583
    self._oprot.trans.flush()
2584
 
2981 rajveer 2585
  def recv_putUserNote(self, ):
559 chandransh 2586
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2587
    if mtype == TMessageType.EXCEPTION:
2588
      x = TApplicationException()
2589
      x.read(self._iprot)
2590
      self._iprot.readMessageEnd()
2591
      raise x
2981 rajveer 2592
    result = putUserNote_result()
559 chandransh 2593
    result.read(self._iprot)
2594
    self._iprot.readMessageEnd()
2595
    return
2596
 
2981 rajveer 2597
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2598
    """
2599
    Parameters:
2981 rajveer 2600
     - user_id
2601
     - entity_id
559 chandransh 2602
    """
2981 rajveer 2603
    self.send_getUserNotes(user_id, entity_id)
2604
    return self.recv_getUserNotes()
559 chandransh 2605
 
2981 rajveer 2606
  def send_getUserNotes(self, user_id, entity_id):
2607
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2608
    args = getUserNotes_args()
2609
    args.user_id = user_id
2610
    args.entity_id = entity_id
559 chandransh 2611
    args.write(self._oprot)
2612
    self._oprot.writeMessageEnd()
2613
    self._oprot.trans.flush()
2614
 
2981 rajveer 2615
  def recv_getUserNotes(self, ):
559 chandransh 2616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2617
    if mtype == TMessageType.EXCEPTION:
2618
      x = TApplicationException()
2619
      x.read(self._iprot)
2620
      self._iprot.readMessageEnd()
2621
      raise x
2981 rajveer 2622
    result = getUserNotes_result()
559 chandransh 2623
    result.read(self._iprot)
2624
    self._iprot.readMessageEnd()
3431 rajveer 2625
    if result.success is not None:
2981 rajveer 2626
      return result.success
2627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2628
 
2981 rajveer 2629
  def getMyResearchItems(self, userId):
559 chandransh 2630
    """
2981 rajveer 2631
    Returns list of item ids in myresearch for the user
3431 rajveer 2632
 
559 chandransh 2633
    Parameters:
772 rajveer 2634
     - userId
559 chandransh 2635
    """
2981 rajveer 2636
    self.send_getMyResearchItems(userId)
2637
    return self.recv_getMyResearchItems()
559 chandransh 2638
 
2981 rajveer 2639
  def send_getMyResearchItems(self, userId):
2640
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2641
    args = getMyResearchItems_args()
772 rajveer 2642
    args.userId = userId
559 chandransh 2643
    args.write(self._oprot)
2644
    self._oprot.writeMessageEnd()
2645
    self._oprot.trans.flush()
2646
 
2981 rajveer 2647
  def recv_getMyResearchItems(self, ):
559 chandransh 2648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2649
    if mtype == TMessageType.EXCEPTION:
2650
      x = TApplicationException()
2651
      x.read(self._iprot)
2652
      self._iprot.readMessageEnd()
2653
      raise x
2981 rajveer 2654
    result = getMyResearchItems_result()
559 chandransh 2655
    result.read(self._iprot)
2656
    self._iprot.readMessageEnd()
3431 rajveer 2657
    if result.success is not None:
559 chandransh 2658
      return result.success
3431 rajveer 2659
    if result.scx is not None:
559 chandransh 2660
      raise result.scx
2981 rajveer 2661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2662
 
2981 rajveer 2663
  def updateMyResearch(self, userId, itemId):
559 chandransh 2664
    """
2981 rajveer 2665
    add item to my research for a user
3431 rajveer 2666
 
559 chandransh 2667
    Parameters:
2981 rajveer 2668
     - userId
2669
     - itemId
559 chandransh 2670
    """
2981 rajveer 2671
    self.send_updateMyResearch(userId, itemId)
2672
    return self.recv_updateMyResearch()
559 chandransh 2673
 
2981 rajveer 2674
  def send_updateMyResearch(self, userId, itemId):
2675
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2676
    args = updateMyResearch_args()
2677
    args.userId = userId
2678
    args.itemId = itemId
559 chandransh 2679
    args.write(self._oprot)
2680
    self._oprot.writeMessageEnd()
2681
    self._oprot.trans.flush()
2682
 
2981 rajveer 2683
  def recv_updateMyResearch(self, ):
559 chandransh 2684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2685
    if mtype == TMessageType.EXCEPTION:
2686
      x = TApplicationException()
2687
      x.read(self._iprot)
2688
      self._iprot.readMessageEnd()
2689
      raise x
2981 rajveer 2690
    result = updateMyResearch_result()
559 chandransh 2691
    result.read(self._iprot)
2692
    self._iprot.readMessageEnd()
3431 rajveer 2693
    if result.success is not None:
2981 rajveer 2694
      return result.success
3431 rajveer 2695
    if result.scx is not None:
2981 rajveer 2696
      raise result.scx
2697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2698
 
2981 rajveer 2699
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2700
    """
2981 rajveer 2701
    delete item from my research for a user
3431 rajveer 2702
 
1596 ankur.sing 2703
    Parameters:
2981 rajveer 2704
     - userId
2705
     - itemId
1596 ankur.sing 2706
    """
2981 rajveer 2707
    self.send_deleteItemFromMyResearch(userId, itemId)
2708
    self.recv_deleteItemFromMyResearch()
559 chandransh 2709
 
2981 rajveer 2710
  def send_deleteItemFromMyResearch(self, userId, itemId):
2711
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2712
    args = deleteItemFromMyResearch_args()
2713
    args.userId = userId
2714
    args.itemId = itemId
1596 ankur.sing 2715
    args.write(self._oprot)
2716
    self._oprot.writeMessageEnd()
2717
    self._oprot.trans.flush()
2718
 
2981 rajveer 2719
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2721
    if mtype == TMessageType.EXCEPTION:
2722
      x = TApplicationException()
2723
      x.read(self._iprot)
2724
      self._iprot.readMessageEnd()
2725
      raise x
2981 rajveer 2726
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2727
    result.read(self._iprot)
2728
    self._iprot.readMessageEnd()
3431 rajveer 2729
    if result.scx is not None:
2981 rajveer 2730
      raise result.scx
2731
    return
1596 ankur.sing 2732
 
2981 rajveer 2733
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2734
    """
2981 rajveer 2735
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2736
 
1673 ankur.sing 2737
    Parameters:
2981 rajveer 2738
     - userId
1673 ankur.sing 2739
    """
2981 rajveer 2740
    self.send_getBrowseHistoryItems(userId)
2741
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2742
 
2981 rajveer 2743
  def send_getBrowseHistoryItems(self, userId):
2744
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2745
    args = getBrowseHistoryItems_args()
2746
    args.userId = userId
1673 ankur.sing 2747
    args.write(self._oprot)
2748
    self._oprot.writeMessageEnd()
2749
    self._oprot.trans.flush()
2750
 
2981 rajveer 2751
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2753
    if mtype == TMessageType.EXCEPTION:
2754
      x = TApplicationException()
2755
      x.read(self._iprot)
2756
      self._iprot.readMessageEnd()
2757
      raise x
2981 rajveer 2758
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2759
    result.read(self._iprot)
2760
    self._iprot.readMessageEnd()
3431 rajveer 2761
    if result.success is not None:
1673 ankur.sing 2762
      return result.success
3431 rajveer 2763
    if result.scx is not None:
2981 rajveer 2764
      raise result.scx
2765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2766
 
2981 rajveer 2767
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2768
    """
2981 rajveer 2769
    add item to browse history for a user
3431 rajveer 2770
 
2642 varun.gupt 2771
    Parameters:
2981 rajveer 2772
     - userId
2773
     - itemId
2642 varun.gupt 2774
    """
2981 rajveer 2775
    self.send_updateBrowseHistory(userId, itemId)
2776
    self.recv_updateBrowseHistory()
1673 ankur.sing 2777
 
2981 rajveer 2778
  def send_updateBrowseHistory(self, userId, itemId):
2779
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2780
    args = updateBrowseHistory_args()
2781
    args.userId = userId
2782
    args.itemId = itemId
2642 varun.gupt 2783
    args.write(self._oprot)
2784
    self._oprot.writeMessageEnd()
2785
    self._oprot.trans.flush()
2786
 
2981 rajveer 2787
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2789
    if mtype == TMessageType.EXCEPTION:
2790
      x = TApplicationException()
2791
      x.read(self._iprot)
2792
      self._iprot.readMessageEnd()
2793
      raise x
2981 rajveer 2794
    result = updateBrowseHistory_result()
2642 varun.gupt 2795
    result.read(self._iprot)
2796
    self._iprot.readMessageEnd()
2797
    return
2798
 
3385 varun.gupt 2799
  def getCartsWithCouponCount(self, couponCode):
2800
    """
2801
    Returns count of Carts with given coupon applied
3431 rajveer 2802
 
3385 varun.gupt 2803
    Parameters:
2804
     - couponCode
2805
    """
2806
    self.send_getCartsWithCouponCount(couponCode)
2807
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2808
 
3385 varun.gupt 2809
  def send_getCartsWithCouponCount(self, couponCode):
2810
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2811
    args = getCartsWithCouponCount_args()
2812
    args.couponCode = couponCode
2813
    args.write(self._oprot)
2814
    self._oprot.writeMessageEnd()
2815
    self._oprot.trans.flush()
2816
 
2817
  def recv_getCartsWithCouponCount(self, ):
2818
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2819
    if mtype == TMessageType.EXCEPTION:
2820
      x = TApplicationException()
2821
      x.read(self._iprot)
2822
      self._iprot.readMessageEnd()
2823
      raise x
2824
    result = getCartsWithCouponCount_result()
2825
    result.read(self._iprot)
2826
    self._iprot.readMessageEnd()
3431 rajveer 2827
    if result.success is not None:
3385 varun.gupt 2828
      return result.success
2829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2830
 
3499 mandeep.dh 2831
  def increaseTrustLevel(self, userId, trustLevelDelta):
2832
    """
2833
    Updates COD trust level of a user
3385 varun.gupt 2834
 
3499 mandeep.dh 2835
    Parameters:
2836
     - userId
2837
     - trustLevelDelta
2838
    """
2839
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2840
 
2841
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2842
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2843
    args = increaseTrustLevel_args()
2844
    args.userId = userId
2845
    args.trustLevelDelta = trustLevelDelta
2846
    args.write(self._oprot)
2847
    self._oprot.writeMessageEnd()
2848
    self._oprot.trans.flush()
4668 varun.gupt 2849
  def showCODOption(self, cartId, sourceId, pincode):
2850
    """
2851
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2852
 
4668 varun.gupt 2853
    Parameters:
2854
     - cartId
2855
     - sourceId
2856
     - pincode
2857
    """
2858
    self.send_showCODOption(cartId, sourceId, pincode)
2859
    return self.recv_showCODOption()
2860
 
2861
  def send_showCODOption(self, cartId, sourceId, pincode):
2862
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2863
    args = showCODOption_args()
2864
    args.cartId = cartId
2865
    args.sourceId = sourceId
2866
    args.pincode = pincode
2867
    args.write(self._oprot)
2868
    self._oprot.writeMessageEnd()
2869
    self._oprot.trans.flush()
2870
 
2871
  def recv_showCODOption(self, ):
2872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2873
    if mtype == TMessageType.EXCEPTION:
2874
      x = TApplicationException()
2875
      x.read(self._iprot)
2876
      self._iprot.readMessageEnd()
2877
      raise x
2878
    result = showCODOption_result()
2879
    result.read(self._iprot)
2880
    self._iprot.readMessageEnd()
2881
    if result.success is not None:
2882
      return result.success
2883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2884
 
2885
 
3376 rajveer 2886
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2887
  def __init__(self, handler):
3376 rajveer 2888
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2889
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2890
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2891
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2892
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2893
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2894
    self._processMap["createUser"] = Processor.process_createUser
2895
    self._processMap["updateUser"] = Processor.process_updateUser
2896
    self._processMap["deleteUser"] = Processor.process_deleteUser
122 ashish 2897
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2898
    self._processMap["userExists"] = Processor.process_userExists
2899
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2900
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2901
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2902
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2903
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2904
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2905
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2906
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2907
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2908
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2909
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2910
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2911
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2912
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2913
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2914
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2915
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2916
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2917
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2918
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2919
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2920
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2921
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2922
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2923
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2924
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2925
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2926
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2927
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2928
    self._processMap["createCart"] = Processor.process_createCart
2929
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2930
    self._processMap["getCart"] = Processor.process_getCart
2931
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2932
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2933
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2934
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2935
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2936
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2937
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2938
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2939
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2940
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2941
    self._processMap["validateCart"] = Processor.process_validateCart
2942
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2943
    self._processMap["checkOut"] = Processor.process_checkOut
2944
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2945
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2946
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2947
    self._processMap["putUserNote"] = Processor.process_putUserNote
2948
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2949
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2950
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2951
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2952
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2953
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2954
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2955
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
4668 varun.gupt 2956
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 2957
 
2958
  def process(self, iprot, oprot):
2959
    (name, type, seqid) = iprot.readMessageBegin()
2960
    if name not in self._processMap:
2961
      iprot.skip(TType.STRUCT)
2962
      iprot.readMessageEnd()
2963
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2964
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2965
      x.write(oprot)
2966
      oprot.writeMessageEnd()
2967
      oprot.trans.flush()
2968
      return
2969
    else:
2970
      self._processMap[name](self, seqid, iprot, oprot)
2971
    return True
2972
 
559 chandransh 2973
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2974
    args = createAnonymousUser_args()
94 ashish 2975
    args.read(iprot)
2976
    iprot.readMessageEnd()
559 chandransh 2977
    result = createAnonymousUser_result()
94 ashish 2978
    try:
559 chandransh 2979
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2980
    except UserContextException, ucex:
2981
      result.ucex = ucex
2982
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2983
    result.write(oprot)
2984
    oprot.writeMessageEnd()
2985
    oprot.trans.flush()
2986
 
559 chandransh 2987
  def process_getUserById(self, seqid, iprot, oprot):
2988
    args = getUserById_args()
94 ashish 2989
    args.read(iprot)
2990
    iprot.readMessageEnd()
559 chandransh 2991
    result = getUserById_result()
94 ashish 2992
    try:
559 chandransh 2993
      result.success = self._handler.getUserById(args.userId)
2994
    except UserContextException, ucex:
2995
      result.ucex = ucex
2996
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2997
    result.write(oprot)
2998
    oprot.writeMessageEnd()
2999
    oprot.trans.flush()
3000
 
5326 rajveer 3001
  def process_getUserByCartId(self, seqid, iprot, oprot):
3002
    args = getUserByCartId_args()
3003
    args.read(iprot)
3004
    iprot.readMessageEnd()
3005
    result = getUserByCartId_result()
3006
    try:
3007
      result.success = self._handler.getUserByCartId(args.cartId)
3008
    except UserContextException, ucex:
3009
      result.ucex = ucex
3010
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3011
    result.write(oprot)
3012
    oprot.writeMessageEnd()
3013
    oprot.trans.flush()
3014
 
1491 vikas 3015
  def process_getUserByEmail(self, seqid, iprot, oprot):
3016
    args = getUserByEmail_args()
3017
    args.read(iprot)
3018
    iprot.readMessageEnd()
3019
    result = getUserByEmail_result()
3020
    try:
3021
      result.success = self._handler.getUserByEmail(args.email)
3022
    except UserContextException, ucex:
3023
      result.ucex = ucex
3024
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3025
    result.write(oprot)
3026
    oprot.writeMessageEnd()
3027
    oprot.trans.flush()
3028
 
3032 mandeep.dh 3029
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3030
    args = getUserByMobileNumber_args()
3031
    args.read(iprot)
3032
    iprot.readMessageEnd()
3033
    result = getUserByMobileNumber_result()
3034
    try:
3035
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3036
    except UserContextException, ucex:
3037
      result.ucex = ucex
3038
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3039
    result.write(oprot)
3040
    oprot.writeMessageEnd()
3041
    oprot.trans.flush()
3042
 
559 chandransh 3043
  def process_createUser(self, seqid, iprot, oprot):
3044
    args = createUser_args()
94 ashish 3045
    args.read(iprot)
3046
    iprot.readMessageEnd()
559 chandransh 3047
    result = createUser_result()
94 ashish 3048
    try:
559 chandransh 3049
      result.success = self._handler.createUser(args.user)
3050
    except UserContextException, ucex:
3051
      result.ucex = ucex
3052
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3053
    result.write(oprot)
3054
    oprot.writeMessageEnd()
3055
    oprot.trans.flush()
3056
 
559 chandransh 3057
  def process_updateUser(self, seqid, iprot, oprot):
3058
    args = updateUser_args()
94 ashish 3059
    args.read(iprot)
3060
    iprot.readMessageEnd()
559 chandransh 3061
    result = updateUser_result()
94 ashish 3062
    try:
559 chandransh 3063
      result.success = self._handler.updateUser(args.user)
3064
    except UserContextException, ucex:
3065
      result.ucex = ucex
3066
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3067
    result.write(oprot)
3068
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
3070
 
559 chandransh 3071
  def process_deleteUser(self, seqid, iprot, oprot):
3072
    args = deleteUser_args()
94 ashish 3073
    args.read(iprot)
3074
    iprot.readMessageEnd()
559 chandransh 3075
    result = deleteUser_result()
94 ashish 3076
    try:
559 chandransh 3077
      result.success = self._handler.deleteUser(args.userId)
3078
    except UserContextException, ucex:
3079
      result.ucex = ucex
3080
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
3084
 
122 ashish 3085
  def process_authenticateUser(self, seqid, iprot, oprot):
3086
    args = authenticateUser_args()
3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
3089
    result = authenticateUser_result()
3090
    try:
559 chandransh 3091
      result.success = self._handler.authenticateUser(args.email, args.password)
3092
    except AuthenticationException, auex:
3093
      result.auex = auex
122 ashish 3094
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
3098
 
94 ashish 3099
  def process_userExists(self, seqid, iprot, oprot):
3100
    args = userExists_args()
3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
3103
    result = userExists_result()
3104
    try:
3105
      result.success = self._handler.userExists(args.email)
3106
    except UserContextException, ucx:
3107
      result.ucx = ucx
3108
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
3112
 
3113
  def process_addAddressForUser(self, seqid, iprot, oprot):
3114
    args = addAddressForUser_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = addAddressForUser_result()
3118
    try:
567 rajveer 3119
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3120
    except UserContextException, ucx:
3121
      result.ucx = ucx
3122
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
3127
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3128
    args = removeAddressForUser_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = removeAddressForUser_result()
3132
    try:
3133
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3134
    except UserContextException, ucx:
3135
      result.ucx = ucx
3136
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3137
    result.write(oprot)
3138
    oprot.writeMessageEnd()
3139
    oprot.trans.flush()
3140
 
3141
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3142
    args = setUserAsLoggedIn_args()
3143
    args.read(iprot)
3144
    iprot.readMessageEnd()
3145
    result = setUserAsLoggedIn_result()
3146
    try:
3147
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3148
    except UserContextException, ucx:
3149
      result.ucx = ucx
3150
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3151
    result.write(oprot)
3152
    oprot.writeMessageEnd()
3153
    oprot.trans.flush()
3154
 
3155
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3156
    args = setUserAsLoggedOut_args()
3157
    args.read(iprot)
3158
    iprot.readMessageEnd()
3159
    result = setUserAsLoggedOut_result()
3160
    try:
3161
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3162
    except UserContextException, ucx:
3163
      result.ucx = ucx
3164
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3165
    result.write(oprot)
3166
    oprot.writeMessageEnd()
3167
    oprot.trans.flush()
3168
 
504 rajveer 3169
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3170
    args = setDefaultAddress_args()
3171
    args.read(iprot)
3172
    iprot.readMessageEnd()
3173
    result = setDefaultAddress_result()
3174
    try:
3175
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3176
    except UserContextException, ucx:
3177
      result.ucx = ucx
3178
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3179
    result.write(oprot)
3180
    oprot.writeMessageEnd()
3181
    oprot.trans.flush()
3182
 
94 ashish 3183
  def process_updatePassword(self, seqid, iprot, oprot):
3184
    args = updatePassword_args()
3185
    args.read(iprot)
3186
    iprot.readMessageEnd()
3187
    result = updatePassword_result()
3188
    try:
594 rajveer 3189
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3190
    except UserContextException, ucx:
3191
      result.ucx = ucx
3192
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
581 rajveer 3197
  def process_forgotPassword(self, seqid, iprot, oprot):
3198
    args = forgotPassword_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = forgotPassword_result()
3202
    try:
884 rajveer 3203
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3204
    except UserContextException, ucx:
3205
      result.ucx = ucx
3206
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
594 rajveer 3211
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3212
    args = getAllAddressesForUser_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = getAllAddressesForUser_result()
3216
    try:
3217
      result.success = self._handler.getAllAddressesForUser(args.userId)
3218
    except UserContextException, ucx:
3219
      result.ucx = ucx
3220
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
1894 vikas 3225
  def process_getAddressById(self, seqid, iprot, oprot):
3226
    args = getAddressById_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = getAddressById_result()
3230
    try:
3231
      result.success = self._handler.getAddressById(args.addressId)
3232
    except UserContextException, ucx:
3233
      result.ucx = ucx
3234
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
594 rajveer 3239
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3240
    args = getDefaultAddressId_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = getDefaultAddressId_result()
3244
    try:
3245
      result.success = self._handler.getDefaultAddressId(args.userId)
3246
    except UserContextException, ucx:
3247
      result.ucx = ucx
3248
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
785 rajveer 3253
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3254
    args = getDefaultPincode_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = getDefaultPincode_result()
3258
    try:
3259
      result.success = self._handler.getDefaultPincode(args.userId)
3260
    except UserContextException, ucx:
3261
      result.ucx = ucx
3262
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
1274 varun.gupt 3267
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3268
    args = saveUserCommunication_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = saveUserCommunication_result()
3272
    try:
3273
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3274
    except UserCommunicationException, ucx:
3275
      result.ucx = ucx
3276
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3277
    result.write(oprot)
3278
    oprot.writeMessageEnd()
3279
    oprot.trans.flush()
3280
 
1590 varun.gupt 3281
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3282
    args = getUserCommunicationById_args()
3283
    args.read(iprot)
3284
    iprot.readMessageEnd()
3285
    result = getUserCommunicationById_result()
3286
    try:
3287
      result.success = self._handler.getUserCommunicationById(args.id)
3288
    except UserCommunicationException, ucx:
3289
      result.ucx = ucx
3290
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3291
    result.write(oprot)
3292
    oprot.writeMessageEnd()
3293
    oprot.trans.flush()
3294
 
3295
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3296
    args = getUserCommunicationByUser_args()
3297
    args.read(iprot)
3298
    iprot.readMessageEnd()
3299
    result = getUserCommunicationByUser_result()
3300
    try:
3301
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3302
    except UserCommunicationException, ucx:
3303
      result.ucx = ucx
3304
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
3309
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3310
    args = getAllUserCommunications_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getAllUserCommunications_result()
3314
    try:
3315
      result.success = self._handler.getAllUserCommunications()
3316
    except UserCommunicationException, ucx:
3317
      result.ucx = ucx
3318
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
1845 vikas 3323
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3324
    args = createMasterAffiliate_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = createMasterAffiliate_result()
3328
    try:
1859 vikas 3329
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3330
    except UserAffiliateException, utx:
1845 vikas 3331
      result.utx = utx
3332
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3333
    result.write(oprot)
3334
    oprot.writeMessageEnd()
3335
    oprot.trans.flush()
3336
 
1899 vikas 3337
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3338
    args = getAllMasterAffiliates_args()
3339
    args.read(iprot)
3340
    iprot.readMessageEnd()
3341
    result = getAllMasterAffiliates_result()
3342
    try:
3343
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3344
    except UserAffiliateException, utx:
1899 vikas 3345
      result.utx = utx
3346
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
1845 vikas 3351
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3352
    args = getMasterAffiliateById_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = getMasterAffiliateById_result()
3356
    try:
3357
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3358
    except UserAffiliateException, utx:
1845 vikas 3359
      result.utx = utx
3360
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3361
    result.write(oprot)
3362
    oprot.writeMessageEnd()
3363
    oprot.trans.flush()
3364
 
3365
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3366
    args = getMasterAffiliateByName_args()
3367
    args.read(iprot)
3368
    iprot.readMessageEnd()
3369
    result = getMasterAffiliateByName_result()
3370
    try:
3371
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3372
    except UserAffiliateException, utx:
1845 vikas 3373
      result.utx = utx
3374
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3375
    result.write(oprot)
3376
    oprot.writeMessageEnd()
3377
    oprot.trans.flush()
3378
 
3379
  def process_createAffiliate(self, seqid, iprot, oprot):
3380
    args = createAffiliate_args()
3381
    args.read(iprot)
3382
    iprot.readMessageEnd()
3383
    result = createAffiliate_result()
3384
    try:
1859 vikas 3385
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3386
    except UserAffiliateException, utx:
1845 vikas 3387
      result.utx = utx
3388
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3389
    result.write(oprot)
3390
    oprot.writeMessageEnd()
3391
    oprot.trans.flush()
3392
 
3393
  def process_getAffiliateById(self, seqid, iprot, oprot):
3394
    args = getAffiliateById_args()
3395
    args.read(iprot)
3396
    iprot.readMessageEnd()
3397
    result = getAffiliateById_result()
3398
    try:
3399
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3400
    except UserAffiliateException, utx:
1845 vikas 3401
      result.utx = utx
3402
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3403
    result.write(oprot)
3404
    oprot.writeMessageEnd()
3405
    oprot.trans.flush()
3406
 
3407
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3408
    args = getAffiliateByName_args()
3409
    args.read(iprot)
3410
    iprot.readMessageEnd()
3411
    result = getAffiliateByName_result()
3412
    try:
3413
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3414
    except UserAffiliateException, utx:
1845 vikas 3415
      result.utx = utx
3416
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3417
    result.write(oprot)
3418
    oprot.writeMessageEnd()
3419
    oprot.trans.flush()
3420
 
3421
  def process_getTrackerById(self, seqid, iprot, oprot):
3422
    args = getTrackerById_args()
3423
    args.read(iprot)
3424
    iprot.readMessageEnd()
3425
    result = getTrackerById_result()
3426
    try:
1996 vikas 3427
      result.success = self._handler.getTrackerById(args.id)
3428
    except UserAffiliateException, utx:
1845 vikas 3429
      result.utx = utx
3430
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3431
    result.write(oprot)
3432
    oprot.writeMessageEnd()
3433
    oprot.trans.flush()
3434
 
1996 vikas 3435
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3436
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3437
    args.read(iprot)
3438
    iprot.readMessageEnd()
1996 vikas 3439
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3440
    try:
1996 vikas 3441
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3442
    except UserAffiliateException, utx:
1845 vikas 3443
      result.utx = utx
1996 vikas 3444
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
3449
  def process_addTrackLog(self, seqid, iprot, oprot):
3450
    args = addTrackLog_args()
3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
3453
    result = addTrackLog_result()
3454
    try:
1996 vikas 3455
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3456
    except UserAffiliateException, utx:
1845 vikas 3457
      result.utx = utx
3458
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
3462
 
3463
  def process_getTrackLogById(self, seqid, iprot, oprot):
3464
    args = getTrackLogById_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = getTrackLogById_result()
3468
    try:
3469
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3470
    except UserAffiliateException, utx:
1845 vikas 3471
      result.utx = utx
3472
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3473
    result.write(oprot)
3474
    oprot.writeMessageEnd()
3475
    oprot.trans.flush()
3476
 
1996 vikas 3477
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3478
    args = getTrackLogsByAffiliate_args()
1845 vikas 3479
    args.read(iprot)
3480
    iprot.readMessageEnd()
1996 vikas 3481
    result = getTrackLogsByAffiliate_result()
1845 vikas 3482
    try:
3293 vikas 3483
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3484
    except UserAffiliateException, utx:
1845 vikas 3485
      result.utx = utx
1996 vikas 3486
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3487
    result.write(oprot)
3488
    oprot.writeMessageEnd()
3489
    oprot.trans.flush()
3490
 
3491
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3492
    args = getTrackLogsByUser_args()
3493
    args.read(iprot)
3494
    iprot.readMessageEnd()
3495
    result = getTrackLogsByUser_result()
3496
    try:
3497
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3498
    except UserAffiliateException, utx:
1845 vikas 3499
      result.utx = utx
3500
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3501
    result.write(oprot)
3502
    oprot.writeMessageEnd()
3503
    oprot.trans.flush()
3504
 
3505
  def process_getTrackLogs(self, seqid, iprot, oprot):
3506
    args = getTrackLogs_args()
3507
    args.read(iprot)
3508
    iprot.readMessageEnd()
3509
    result = getTrackLogs_result()
3510
    try:
1996 vikas 3511
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3512
    except UserAffiliateException, utx:
1845 vikas 3513
      result.utx = utx
3514
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3515
    result.write(oprot)
3516
    oprot.writeMessageEnd()
3517
    oprot.trans.flush()
3518
 
559 chandransh 3519
  def process_createCart(self, seqid, iprot, oprot):
3520
    args = createCart_args()
94 ashish 3521
    args.read(iprot)
3522
    iprot.readMessageEnd()
559 chandransh 3523
    result = createCart_result()
94 ashish 3524
    try:
559 chandransh 3525
      result.success = self._handler.createCart(args.userId)
3526
    except ShoppingCartException, scx:
3527
      result.scx = scx
3528
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3529
    result.write(oprot)
3530
    oprot.writeMessageEnd()
3531
    oprot.trans.flush()
3532
 
559 chandransh 3533
  def process_getCurrentCart(self, seqid, iprot, oprot):
3534
    args = getCurrentCart_args()
94 ashish 3535
    args.read(iprot)
3536
    iprot.readMessageEnd()
559 chandransh 3537
    result = getCurrentCart_result()
94 ashish 3538
    try:
559 chandransh 3539
      result.success = self._handler.getCurrentCart(args.userId)
3540
    except ShoppingCartException, scx:
3541
      result.scx = scx
3542
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
559 chandransh 3547
  def process_getCart(self, seqid, iprot, oprot):
3548
    args = getCart_args()
94 ashish 3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
559 chandransh 3551
    result = getCart_result()
94 ashish 3552
    try:
559 chandransh 3553
      result.success = self._handler.getCart(args.cartId)
3554
    except ShoppingCartException, scx:
3555
      result.scx = scx
3556
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
559 chandransh 3561
  def process_getCartsByTime(self, seqid, iprot, oprot):
3562
    args = getCartsByTime_args()
94 ashish 3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
559 chandransh 3565
    result = getCartsByTime_result()
94 ashish 3566
    try:
559 chandransh 3567
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3568
    except ShoppingCartException, scx:
3569
      result.scx = scx
3570
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3571
    result.write(oprot)
3572
    oprot.writeMessageEnd()
3573
    oprot.trans.flush()
3574
 
559 chandransh 3575
  def process_addItemToCart(self, seqid, iprot, oprot):
3576
    args = addItemToCart_args()
130 ashish 3577
    args.read(iprot)
3578
    iprot.readMessageEnd()
559 chandransh 3579
    result = addItemToCart_result()
130 ashish 3580
    try:
3557 rajveer 3581
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3582
    except ShoppingCartException, scx:
3583
      result.scx = scx
3584
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3585
    result.write(oprot)
3586
    oprot.writeMessageEnd()
3587
    oprot.trans.flush()
3588
 
559 chandransh 3589
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3590
    args = deleteItemFromCart_args()
3591
    args.read(iprot)
3592
    iprot.readMessageEnd()
3593
    result = deleteItemFromCart_result()
3594
    try:
3595
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3596
    except ShoppingCartException, scx:
3597
      result.scx = scx
3598
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3599
    result.write(oprot)
3600
    oprot.writeMessageEnd()
3601
    oprot.trans.flush()
130 ashish 3602
 
559 chandransh 3603
  def process_changeItemStatus(self, seqid, iprot, oprot):
3604
    args = changeItemStatus_args()
3605
    args.read(iprot)
3606
    iprot.readMessageEnd()
3607
    result = changeItemStatus_result()
3608
    try:
3609
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3610
    except ShoppingCartException, scx:
3611
      result.scx = scx
3612
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3613
    result.write(oprot)
3614
    oprot.writeMessageEnd()
3615
    oprot.trans.flush()
3616
 
3617
  def process_addAddressToCart(self, seqid, iprot, oprot):
3618
    args = addAddressToCart_args()
3619
    args.read(iprot)
3620
    iprot.readMessageEnd()
3621
    result = addAddressToCart_result()
575 chandransh 3622
    try:
3623
      self._handler.addAddressToCart(args.cartId, args.addressId)
3624
    except ShoppingCartException, scx:
3625
      result.scx = scx
559 chandransh 3626
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3627
    result.write(oprot)
3628
    oprot.writeMessageEnd()
3629
    oprot.trans.flush()
3630
 
1976 varun.gupt 3631
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3632
    args = applyCouponToCart_args()
3633
    args.read(iprot)
3634
    iprot.readMessageEnd()
3635
    result = applyCouponToCart_result()
3636
    try:
3637
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3638
    except ShoppingCartException, scx:
3639
      result.scx = scx
3640
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3641
    result.write(oprot)
3642
    oprot.writeMessageEnd()
3643
    oprot.trans.flush()
3644
 
3645
  def process_removeCoupon(self, seqid, iprot, oprot):
3646
    args = removeCoupon_args()
3647
    args.read(iprot)
3648
    iprot.readMessageEnd()
3649
    result = removeCoupon_result()
3650
    try:
3651
      self._handler.removeCoupon(args.cartId)
3652
    except ShoppingCartException, scx:
3653
      result.scx = scx
3654
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3655
    result.write(oprot)
3656
    oprot.writeMessageEnd()
3657
    oprot.trans.flush()
3658
 
3554 varun.gupt 3659
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3660
    args = deleteDiscountsFromCart_args()
3661
    args.read(iprot)
3662
    iprot.readMessageEnd()
3663
    result = deleteDiscountsFromCart_result()
3664
    try:
3665
      self._handler.deleteDiscountsFromCart(args.cartId)
3666
    except ShoppingCartException, scx:
3667
      result.scx = scx
3668
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3669
    result.write(oprot)
3670
    oprot.writeMessageEnd()
3671
    oprot.trans.flush()
3672
 
3673
  def process_saveDiscounts(self, seqid, iprot, oprot):
3674
    args = saveDiscounts_args()
3675
    args.read(iprot)
3676
    iprot.readMessageEnd()
3677
    result = saveDiscounts_result()
3678
    try:
3679
      self._handler.saveDiscounts(args.discounts)
3680
    except ShoppingCartException, scx:
3681
      result.scx = scx
3682
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3683
    result.write(oprot)
3684
    oprot.writeMessageEnd()
3685
    oprot.trans.flush()
3686
 
690 chandransh 3687
  def process_createOrders(self, seqid, iprot, oprot):
3688
    args = createOrders_args()
559 chandransh 3689
    args.read(iprot)
3690
    iprot.readMessageEnd()
690 chandransh 3691
    result = createOrders_result()
559 chandransh 3692
    try:
5326 rajveer 3693
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3694
    except ShoppingCartException, scx:
3695
      result.scx = scx
690 chandransh 3696
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3697
    result.write(oprot)
3698
    oprot.writeMessageEnd()
3699
    oprot.trans.flush()
3700
 
3701
  def process_validateCart(self, seqid, iprot, oprot):
3702
    args = validateCart_args()
3703
    args.read(iprot)
3704
    iprot.readMessageEnd()
3705
    result = validateCart_result()
575 chandransh 3706
    try:
3557 rajveer 3707
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3708
    except ShoppingCartException, scex:
3709
      result.scex = scex
559 chandransh 3710
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3711
    result.write(oprot)
3712
    oprot.writeMessageEnd()
3713
    oprot.trans.flush()
3714
 
690 chandransh 3715
  def process_mergeCart(self, seqid, iprot, oprot):
3716
    args = mergeCart_args()
575 chandransh 3717
    args.read(iprot)
3718
    iprot.readMessageEnd()
690 chandransh 3719
    result = mergeCart_result()
3720
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3721
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3722
    result.write(oprot)
3723
    oprot.writeMessageEnd()
3724
    oprot.trans.flush()
3725
 
3726
  def process_checkOut(self, seqid, iprot, oprot):
3727
    args = checkOut_args()
3728
    args.read(iprot)
3729
    iprot.readMessageEnd()
3730
    result = checkOut_result()
575 chandransh 3731
    try:
690 chandransh 3732
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3733
    except ShoppingCartException, scex:
3734
      result.scex = scex
690 chandransh 3735
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3736
    result.write(oprot)
3737
    oprot.writeMessageEnd()
3738
    oprot.trans.flush()
3739
 
690 chandransh 3740
  def process_resetCart(self, seqid, iprot, oprot):
3741
    args = resetCart_args()
559 chandransh 3742
    args.read(iprot)
3743
    iprot.readMessageEnd()
690 chandransh 3744
    result = resetCart_result()
3745
    try:
3746
      result.success = self._handler.resetCart(args.cartId, args.items)
3747
    except ShoppingCartException, scex:
3748
      result.scex = scex
3749
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
3753
 
2981 rajveer 3754
  def process_getUserCount(self, seqid, iprot, oprot):
3755
    args = getUserCount_args()
559 chandransh 3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
2981 rajveer 3758
    result = getUserCount_result()
3759
    result.success = self._handler.getUserCount(args.userType)
3760
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3761
    result.write(oprot)
3762
    oprot.writeMessageEnd()
3763
    oprot.trans.flush()
3764
 
2981 rajveer 3765
  def process_getAllUsers(self, seqid, iprot, oprot):
3766
    args = getAllUsers_args()
559 chandransh 3767
    args.read(iprot)
3768
    iprot.readMessageEnd()
2981 rajveer 3769
    result = getAllUsers_result()
3770
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3771
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3772
    result.write(oprot)
3773
    oprot.writeMessageEnd()
3774
    oprot.trans.flush()
3775
 
2981 rajveer 3776
  def process_putUserNote(self, seqid, iprot, oprot):
3777
    args = putUserNote_args()
559 chandransh 3778
    args.read(iprot)
3779
    iprot.readMessageEnd()
2981 rajveer 3780
    result = putUserNote_result()
3781
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3782
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3783
    result.write(oprot)
3784
    oprot.writeMessageEnd()
3785
    oprot.trans.flush()
3786
 
2981 rajveer 3787
  def process_getUserNotes(self, seqid, iprot, oprot):
3788
    args = getUserNotes_args()
559 chandransh 3789
    args.read(iprot)
3790
    iprot.readMessageEnd()
2981 rajveer 3791
    result = getUserNotes_result()
3792
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3793
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3794
    result.write(oprot)
3795
    oprot.writeMessageEnd()
3796
    oprot.trans.flush()
3797
 
2981 rajveer 3798
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3799
    args = getMyResearchItems_args()
559 chandransh 3800
    args.read(iprot)
3801
    iprot.readMessageEnd()
2981 rajveer 3802
    result = getMyResearchItems_result()
559 chandransh 3803
    try:
2981 rajveer 3804
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3805
    except WidgetException, scx:
3806
      result.scx = scx
2981 rajveer 3807
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3808
    result.write(oprot)
3809
    oprot.writeMessageEnd()
3810
    oprot.trans.flush()
3811
 
2981 rajveer 3812
  def process_updateMyResearch(self, seqid, iprot, oprot):
3813
    args = updateMyResearch_args()
772 rajveer 3814
    args.read(iprot)
3815
    iprot.readMessageEnd()
2981 rajveer 3816
    result = updateMyResearch_result()
3817
    try:
3818
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3819
    except WidgetException, scx:
3820
      result.scx = scx
3821
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
559 chandransh 3825
 
2981 rajveer 3826
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3827
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
2981 rajveer 3830
    result = deleteItemFromMyResearch_result()
3831
    try:
3832
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3833
    except WidgetException, scx:
3834
      result.scx = scx
3835
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3836
    result.write(oprot)
3837
    oprot.writeMessageEnd()
3838
    oprot.trans.flush()
772 rajveer 3839
 
2981 rajveer 3840
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3841
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3842
    args.read(iprot)
3843
    iprot.readMessageEnd()
2981 rajveer 3844
    result = getBrowseHistoryItems_result()
3845
    try:
3846
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3847
    except WidgetException, scx:
3848
      result.scx = scx
3849
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3850
    result.write(oprot)
3851
    oprot.writeMessageEnd()
3852
    oprot.trans.flush()
1596 ankur.sing 3853
 
2981 rajveer 3854
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3855
    args = updateBrowseHistory_args()
2642 varun.gupt 3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
2981 rajveer 3858
    result = updateBrowseHistory_result()
3859
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3860
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3861
    result.write(oprot)
3862
    oprot.writeMessageEnd()
3863
    oprot.trans.flush()
1673 ankur.sing 3864
 
3385 varun.gupt 3865
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3866
    args = getCartsWithCouponCount_args()
3867
    args.read(iprot)
3868
    iprot.readMessageEnd()
3869
    result = getCartsWithCouponCount_result()
3870
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3871
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
2642 varun.gupt 3875
 
3499 mandeep.dh 3876
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3877
    args = increaseTrustLevel_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3881
    return
3385 varun.gupt 3882
 
4668 varun.gupt 3883
  def process_showCODOption(self, seqid, iprot, oprot):
3884
    args = showCODOption_args()
3885
    args.read(iprot)
3886
    iprot.readMessageEnd()
3887
    result = showCODOption_result()
3888
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3889
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3890
    result.write(oprot)
3891
    oprot.writeMessageEnd()
3892
    oprot.trans.flush()
3499 mandeep.dh 3893
 
4668 varun.gupt 3894
 
94 ashish 3895
# HELPER FUNCTIONS AND STRUCTURES
3896
 
559 chandransh 3897
class createAnonymousUser_args:
94 ashish 3898
  """
3899
  Attributes:
559 chandransh 3900
   - jsessionId
94 ashish 3901
  """
3902
 
3903
  thrift_spec = (
3904
    None, # 0
559 chandransh 3905
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3906
  )
3907
 
559 chandransh 3908
  def __init__(self, jsessionId=None,):
3909
    self.jsessionId = jsessionId
94 ashish 3910
 
3911
  def read(self, iprot):
3912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3914
      return
3915
    iprot.readStructBegin()
3916
    while True:
3917
      (fname, ftype, fid) = iprot.readFieldBegin()
3918
      if ftype == TType.STOP:
3919
        break
3920
      if fid == 1:
559 chandransh 3921
        if ftype == TType.STRING:
3922
          self.jsessionId = iprot.readString();
94 ashish 3923
        else:
3924
          iprot.skip(ftype)
3925
      else:
3926
        iprot.skip(ftype)
3927
      iprot.readFieldEnd()
3928
    iprot.readStructEnd()
3929
 
3930
  def write(self, oprot):
3931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3933
      return
559 chandransh 3934
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3935
    if self.jsessionId is not None:
559 chandransh 3936
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3937
      oprot.writeString(self.jsessionId)
94 ashish 3938
      oprot.writeFieldEnd()
3939
    oprot.writeFieldStop()
3940
    oprot.writeStructEnd()
3941
 
3431 rajveer 3942
  def validate(self):
3943
    return
3944
 
3945
 
94 ashish 3946
  def __repr__(self):
3947
    L = ['%s=%r' % (key, value)
3948
      for key, value in self.__dict__.iteritems()]
3949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3950
 
3951
  def __eq__(self, other):
3952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3953
 
3954
  def __ne__(self, other):
3955
    return not (self == other)
3956
 
559 chandransh 3957
class createAnonymousUser_result:
94 ashish 3958
  """
3959
  Attributes:
3960
   - success
559 chandransh 3961
   - ucex
94 ashish 3962
  """
3963
 
3964
  thrift_spec = (
559 chandransh 3965
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3966
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3967
  )
3968
 
559 chandransh 3969
  def __init__(self, success=None, ucex=None,):
94 ashish 3970
    self.success = success
559 chandransh 3971
    self.ucex = ucex
94 ashish 3972
 
3973
  def read(self, iprot):
3974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3976
      return
3977
    iprot.readStructBegin()
3978
    while True:
3979
      (fname, ftype, fid) = iprot.readFieldBegin()
3980
      if ftype == TType.STOP:
3981
        break
3982
      if fid == 0:
3983
        if ftype == TType.STRUCT:
559 chandransh 3984
          self.success = User()
94 ashish 3985
          self.success.read(iprot)
3986
        else:
3987
          iprot.skip(ftype)
3988
      elif fid == 1:
3989
        if ftype == TType.STRUCT:
559 chandransh 3990
          self.ucex = UserContextException()
3991
          self.ucex.read(iprot)
94 ashish 3992
        else:
3993
          iprot.skip(ftype)
3994
      else:
3995
        iprot.skip(ftype)
3996
      iprot.readFieldEnd()
3997
    iprot.readStructEnd()
3998
 
3999
  def write(self, oprot):
4000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4002
      return
559 chandransh 4003
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4004
    if self.success is not None:
94 ashish 4005
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4006
      self.success.write(oprot)
4007
      oprot.writeFieldEnd()
3431 rajveer 4008
    if self.ucex is not None:
559 chandransh 4009
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4010
      self.ucex.write(oprot)
94 ashish 4011
      oprot.writeFieldEnd()
4012
    oprot.writeFieldStop()
4013
    oprot.writeStructEnd()
4014
 
3431 rajveer 4015
  def validate(self):
4016
    return
4017
 
4018
 
94 ashish 4019
  def __repr__(self):
4020
    L = ['%s=%r' % (key, value)
4021
      for key, value in self.__dict__.iteritems()]
4022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4023
 
4024
  def __eq__(self, other):
4025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4026
 
4027
  def __ne__(self, other):
4028
    return not (self == other)
4029
 
559 chandransh 4030
class getUserById_args:
94 ashish 4031
  """
4032
  Attributes:
4033
   - userId
4034
  """
4035
 
4036
  thrift_spec = (
4037
    None, # 0
4038
    (1, TType.I64, 'userId', None, None, ), # 1
4039
  )
4040
 
559 chandransh 4041
  def __init__(self, userId=None,):
94 ashish 4042
    self.userId = userId
4043
 
4044
  def read(self, iprot):
4045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4047
      return
4048
    iprot.readStructBegin()
4049
    while True:
4050
      (fname, ftype, fid) = iprot.readFieldBegin()
4051
      if ftype == TType.STOP:
4052
        break
4053
      if fid == 1:
4054
        if ftype == TType.I64:
4055
          self.userId = iprot.readI64();
4056
        else:
4057
          iprot.skip(ftype)
4058
      else:
4059
        iprot.skip(ftype)
4060
      iprot.readFieldEnd()
4061
    iprot.readStructEnd()
4062
 
4063
  def write(self, oprot):
4064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4066
      return
559 chandransh 4067
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4068
    if self.userId is not None:
94 ashish 4069
      oprot.writeFieldBegin('userId', TType.I64, 1)
4070
      oprot.writeI64(self.userId)
4071
      oprot.writeFieldEnd()
4072
    oprot.writeFieldStop()
4073
    oprot.writeStructEnd()
4074
 
3431 rajveer 4075
  def validate(self):
4076
    return
4077
 
4078
 
94 ashish 4079
  def __repr__(self):
4080
    L = ['%s=%r' % (key, value)
4081
      for key, value in self.__dict__.iteritems()]
4082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4083
 
4084
  def __eq__(self, other):
4085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4086
 
4087
  def __ne__(self, other):
4088
    return not (self == other)
4089
 
559 chandransh 4090
class getUserById_result:
94 ashish 4091
  """
4092
  Attributes:
4093
   - success
559 chandransh 4094
   - ucex
94 ashish 4095
  """
4096
 
4097
  thrift_spec = (
559 chandransh 4098
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4099
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4100
  )
4101
 
559 chandransh 4102
  def __init__(self, success=None, ucex=None,):
94 ashish 4103
    self.success = success
559 chandransh 4104
    self.ucex = ucex
94 ashish 4105
 
4106
  def read(self, iprot):
4107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4109
      return
4110
    iprot.readStructBegin()
4111
    while True:
4112
      (fname, ftype, fid) = iprot.readFieldBegin()
4113
      if ftype == TType.STOP:
4114
        break
4115
      if fid == 0:
4116
        if ftype == TType.STRUCT:
559 chandransh 4117
          self.success = User()
94 ashish 4118
          self.success.read(iprot)
4119
        else:
4120
          iprot.skip(ftype)
4121
      elif fid == 1:
4122
        if ftype == TType.STRUCT:
559 chandransh 4123
          self.ucex = UserContextException()
4124
          self.ucex.read(iprot)
94 ashish 4125
        else:
4126
          iprot.skip(ftype)
4127
      else:
4128
        iprot.skip(ftype)
4129
      iprot.readFieldEnd()
4130
    iprot.readStructEnd()
4131
 
4132
  def write(self, oprot):
4133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4135
      return
559 chandransh 4136
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4137
    if self.success is not None:
94 ashish 4138
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4139
      self.success.write(oprot)
4140
      oprot.writeFieldEnd()
3431 rajveer 4141
    if self.ucex is not None:
559 chandransh 4142
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4143
      self.ucex.write(oprot)
94 ashish 4144
      oprot.writeFieldEnd()
4145
    oprot.writeFieldStop()
4146
    oprot.writeStructEnd()
4147
 
3431 rajveer 4148
  def validate(self):
4149
    return
4150
 
4151
 
94 ashish 4152
  def __repr__(self):
4153
    L = ['%s=%r' % (key, value)
4154
      for key, value in self.__dict__.iteritems()]
4155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4156
 
4157
  def __eq__(self, other):
4158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4159
 
4160
  def __ne__(self, other):
4161
    return not (self == other)
4162
 
5326 rajveer 4163
class getUserByCartId_args:
1491 vikas 4164
  """
4165
  Attributes:
5326 rajveer 4166
   - cartId
1491 vikas 4167
  """
4168
 
4169
  thrift_spec = (
4170
    None, # 0
5326 rajveer 4171
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4172
  )
4173
 
5326 rajveer 4174
  def __init__(self, cartId=None,):
4175
    self.cartId = cartId
1491 vikas 4176
 
4177
  def read(self, iprot):
4178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4180
      return
4181
    iprot.readStructBegin()
4182
    while True:
4183
      (fname, ftype, fid) = iprot.readFieldBegin()
4184
      if ftype == TType.STOP:
4185
        break
4186
      if fid == 1:
5326 rajveer 4187
        if ftype == TType.I64:
4188
          self.cartId = iprot.readI64();
1491 vikas 4189
        else:
4190
          iprot.skip(ftype)
4191
      else:
4192
        iprot.skip(ftype)
4193
      iprot.readFieldEnd()
4194
    iprot.readStructEnd()
4195
 
4196
  def write(self, oprot):
4197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4199
      return
5326 rajveer 4200
    oprot.writeStructBegin('getUserByCartId_args')
4201
    if self.cartId is not None:
4202
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4203
      oprot.writeI64(self.cartId)
1491 vikas 4204
      oprot.writeFieldEnd()
4205
    oprot.writeFieldStop()
4206
    oprot.writeStructEnd()
4207
 
3431 rajveer 4208
  def validate(self):
4209
    return
4210
 
4211
 
1491 vikas 4212
  def __repr__(self):
4213
    L = ['%s=%r' % (key, value)
4214
      for key, value in self.__dict__.iteritems()]
4215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4216
 
4217
  def __eq__(self, other):
4218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4219
 
4220
  def __ne__(self, other):
4221
    return not (self == other)
4222
 
5326 rajveer 4223
class getUserByCartId_result:
1491 vikas 4224
  """
4225
  Attributes:
4226
   - success
4227
   - ucex
4228
  """
4229
 
4230
  thrift_spec = (
4231
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4232
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4233
  )
4234
 
4235
  def __init__(self, success=None, ucex=None,):
4236
    self.success = success
4237
    self.ucex = ucex
4238
 
4239
  def read(self, iprot):
4240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4242
      return
4243
    iprot.readStructBegin()
4244
    while True:
4245
      (fname, ftype, fid) = iprot.readFieldBegin()
4246
      if ftype == TType.STOP:
4247
        break
4248
      if fid == 0:
4249
        if ftype == TType.STRUCT:
4250
          self.success = User()
4251
          self.success.read(iprot)
4252
        else:
4253
          iprot.skip(ftype)
4254
      elif fid == 1:
4255
        if ftype == TType.STRUCT:
4256
          self.ucex = UserContextException()
4257
          self.ucex.read(iprot)
4258
        else:
4259
          iprot.skip(ftype)
4260
      else:
4261
        iprot.skip(ftype)
4262
      iprot.readFieldEnd()
4263
    iprot.readStructEnd()
4264
 
4265
  def write(self, oprot):
4266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4268
      return
5326 rajveer 4269
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4270
    if self.success is not None:
1491 vikas 4271
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4272
      self.success.write(oprot)
4273
      oprot.writeFieldEnd()
3431 rajveer 4274
    if self.ucex is not None:
1491 vikas 4275
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4276
      self.ucex.write(oprot)
4277
      oprot.writeFieldEnd()
4278
    oprot.writeFieldStop()
4279
    oprot.writeStructEnd()
4280
 
3431 rajveer 4281
  def validate(self):
4282
    return
4283
 
4284
 
1491 vikas 4285
  def __repr__(self):
4286
    L = ['%s=%r' % (key, value)
4287
      for key, value in self.__dict__.iteritems()]
4288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4289
 
4290
  def __eq__(self, other):
4291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4292
 
4293
  def __ne__(self, other):
4294
    return not (self == other)
4295
 
5326 rajveer 4296
class getUserByEmail_args:
3032 mandeep.dh 4297
  """
4298
  Attributes:
5326 rajveer 4299
   - email
3032 mandeep.dh 4300
  """
4301
 
4302
  thrift_spec = (
4303
    None, # 0
5326 rajveer 4304
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4305
  )
4306
 
5326 rajveer 4307
  def __init__(self, email=None,):
4308
    self.email = email
3032 mandeep.dh 4309
 
4310
  def read(self, iprot):
4311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4313
      return
4314
    iprot.readStructBegin()
4315
    while True:
4316
      (fname, ftype, fid) = iprot.readFieldBegin()
4317
      if ftype == TType.STOP:
4318
        break
4319
      if fid == 1:
5326 rajveer 4320
        if ftype == TType.STRING:
4321
          self.email = iprot.readString();
3032 mandeep.dh 4322
        else:
4323
          iprot.skip(ftype)
4324
      else:
4325
        iprot.skip(ftype)
4326
      iprot.readFieldEnd()
4327
    iprot.readStructEnd()
4328
 
4329
  def write(self, oprot):
4330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4332
      return
5326 rajveer 4333
    oprot.writeStructBegin('getUserByEmail_args')
4334
    if self.email is not None:
4335
      oprot.writeFieldBegin('email', TType.STRING, 1)
4336
      oprot.writeString(self.email)
3032 mandeep.dh 4337
      oprot.writeFieldEnd()
4338
    oprot.writeFieldStop()
4339
    oprot.writeStructEnd()
4340
 
3431 rajveer 4341
  def validate(self):
4342
    return
4343
 
4344
 
3032 mandeep.dh 4345
  def __repr__(self):
4346
    L = ['%s=%r' % (key, value)
4347
      for key, value in self.__dict__.iteritems()]
4348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4349
 
4350
  def __eq__(self, other):
4351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4352
 
4353
  def __ne__(self, other):
4354
    return not (self == other)
4355
 
5326 rajveer 4356
class getUserByEmail_result:
3032 mandeep.dh 4357
  """
4358
  Attributes:
4359
   - success
4360
   - ucex
4361
  """
4362
 
4363
  thrift_spec = (
4364
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4365
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4366
  )
4367
 
4368
  def __init__(self, success=None, ucex=None,):
4369
    self.success = success
4370
    self.ucex = ucex
4371
 
4372
  def read(self, iprot):
4373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4375
      return
4376
    iprot.readStructBegin()
4377
    while True:
4378
      (fname, ftype, fid) = iprot.readFieldBegin()
4379
      if ftype == TType.STOP:
4380
        break
4381
      if fid == 0:
4382
        if ftype == TType.STRUCT:
4383
          self.success = User()
4384
          self.success.read(iprot)
4385
        else:
4386
          iprot.skip(ftype)
4387
      elif fid == 1:
4388
        if ftype == TType.STRUCT:
4389
          self.ucex = UserContextException()
4390
          self.ucex.read(iprot)
4391
        else:
4392
          iprot.skip(ftype)
4393
      else:
4394
        iprot.skip(ftype)
4395
      iprot.readFieldEnd()
4396
    iprot.readStructEnd()
4397
 
4398
  def write(self, oprot):
4399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4401
      return
5326 rajveer 4402
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4403
    if self.success is not None:
3032 mandeep.dh 4404
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4405
      self.success.write(oprot)
4406
      oprot.writeFieldEnd()
3431 rajveer 4407
    if self.ucex is not None:
3032 mandeep.dh 4408
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4409
      self.ucex.write(oprot)
4410
      oprot.writeFieldEnd()
4411
    oprot.writeFieldStop()
4412
    oprot.writeStructEnd()
4413
 
3431 rajveer 4414
  def validate(self):
4415
    return
4416
 
4417
 
3032 mandeep.dh 4418
  def __repr__(self):
4419
    L = ['%s=%r' % (key, value)
4420
      for key, value in self.__dict__.iteritems()]
4421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4422
 
4423
  def __eq__(self, other):
4424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4425
 
4426
  def __ne__(self, other):
4427
    return not (self == other)
4428
 
5326 rajveer 4429
class getUserByMobileNumber_args:
94 ashish 4430
  """
4431
  Attributes:
5326 rajveer 4432
   - mobileNumber
94 ashish 4433
  """
4434
 
4435
  thrift_spec = (
4436
    None, # 0
5326 rajveer 4437
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4438
  )
4439
 
5326 rajveer 4440
  def __init__(self, mobileNumber=None,):
4441
    self.mobileNumber = mobileNumber
94 ashish 4442
 
4443
  def read(self, iprot):
4444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4446
      return
4447
    iprot.readStructBegin()
4448
    while True:
4449
      (fname, ftype, fid) = iprot.readFieldBegin()
4450
      if ftype == TType.STOP:
4451
        break
4452
      if fid == 1:
5326 rajveer 4453
        if ftype == TType.I64:
4454
          self.mobileNumber = iprot.readI64();
94 ashish 4455
        else:
4456
          iprot.skip(ftype)
4457
      else:
4458
        iprot.skip(ftype)
4459
      iprot.readFieldEnd()
4460
    iprot.readStructEnd()
4461
 
4462
  def write(self, oprot):
4463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4465
      return
5326 rajveer 4466
    oprot.writeStructBegin('getUserByMobileNumber_args')
4467
    if self.mobileNumber is not None:
4468
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4469
      oprot.writeI64(self.mobileNumber)
94 ashish 4470
      oprot.writeFieldEnd()
4471
    oprot.writeFieldStop()
4472
    oprot.writeStructEnd()
4473
 
3431 rajveer 4474
  def validate(self):
4475
    return
4476
 
4477
 
94 ashish 4478
  def __repr__(self):
4479
    L = ['%s=%r' % (key, value)
4480
      for key, value in self.__dict__.iteritems()]
4481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4482
 
4483
  def __eq__(self, other):
4484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4485
 
4486
  def __ne__(self, other):
4487
    return not (self == other)
4488
 
5326 rajveer 4489
class getUserByMobileNumber_result:
94 ashish 4490
  """
4491
  Attributes:
4492
   - success
559 chandransh 4493
   - ucex
94 ashish 4494
  """
4495
 
4496
  thrift_spec = (
559 chandransh 4497
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4498
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4499
  )
4500
 
559 chandransh 4501
  def __init__(self, success=None, ucex=None,):
94 ashish 4502
    self.success = success
559 chandransh 4503
    self.ucex = ucex
94 ashish 4504
 
4505
  def read(self, iprot):
4506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4508
      return
4509
    iprot.readStructBegin()
4510
    while True:
4511
      (fname, ftype, fid) = iprot.readFieldBegin()
4512
      if ftype == TType.STOP:
4513
        break
4514
      if fid == 0:
4515
        if ftype == TType.STRUCT:
559 chandransh 4516
          self.success = User()
94 ashish 4517
          self.success.read(iprot)
4518
        else:
4519
          iprot.skip(ftype)
4520
      elif fid == 1:
4521
        if ftype == TType.STRUCT:
559 chandransh 4522
          self.ucex = UserContextException()
4523
          self.ucex.read(iprot)
94 ashish 4524
        else:
4525
          iprot.skip(ftype)
4526
      else:
4527
        iprot.skip(ftype)
4528
      iprot.readFieldEnd()
4529
    iprot.readStructEnd()
4530
 
4531
  def write(self, oprot):
4532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4534
      return
5326 rajveer 4535
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4536
    if self.success is not None:
94 ashish 4537
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4538
      self.success.write(oprot)
4539
      oprot.writeFieldEnd()
3431 rajveer 4540
    if self.ucex is not None:
559 chandransh 4541
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4542
      self.ucex.write(oprot)
94 ashish 4543
      oprot.writeFieldEnd()
4544
    oprot.writeFieldStop()
4545
    oprot.writeStructEnd()
4546
 
3431 rajveer 4547
  def validate(self):
4548
    return
4549
 
4550
 
94 ashish 4551
  def __repr__(self):
4552
    L = ['%s=%r' % (key, value)
4553
      for key, value in self.__dict__.iteritems()]
4554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4555
 
4556
  def __eq__(self, other):
4557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4558
 
4559
  def __ne__(self, other):
4560
    return not (self == other)
4561
 
5326 rajveer 4562
class createUser_args:
94 ashish 4563
  """
4564
  Attributes:
559 chandransh 4565
   - user
94 ashish 4566
  """
4567
 
4568
  thrift_spec = (
4569
    None, # 0
559 chandransh 4570
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4571
  )
4572
 
559 chandransh 4573
  def __init__(self, user=None,):
4574
    self.user = user
94 ashish 4575
 
4576
  def read(self, iprot):
4577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4579
      return
4580
    iprot.readStructBegin()
4581
    while True:
4582
      (fname, ftype, fid) = iprot.readFieldBegin()
4583
      if ftype == TType.STOP:
4584
        break
4585
      if fid == 1:
559 chandransh 4586
        if ftype == TType.STRUCT:
4587
          self.user = User()
4588
          self.user.read(iprot)
94 ashish 4589
        else:
4590
          iprot.skip(ftype)
4591
      else:
4592
        iprot.skip(ftype)
4593
      iprot.readFieldEnd()
4594
    iprot.readStructEnd()
4595
 
4596
  def write(self, oprot):
4597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4599
      return
5326 rajveer 4600
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4601
    if self.user is not None:
559 chandransh 4602
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4603
      self.user.write(oprot)
94 ashish 4604
      oprot.writeFieldEnd()
4605
    oprot.writeFieldStop()
4606
    oprot.writeStructEnd()
4607
 
3431 rajveer 4608
  def validate(self):
4609
    return
4610
 
4611
 
94 ashish 4612
  def __repr__(self):
4613
    L = ['%s=%r' % (key, value)
4614
      for key, value in self.__dict__.iteritems()]
4615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4616
 
4617
  def __eq__(self, other):
4618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4619
 
4620
  def __ne__(self, other):
4621
    return not (self == other)
4622
 
5326 rajveer 4623
class createUser_result:
94 ashish 4624
  """
4625
  Attributes:
4626
   - success
559 chandransh 4627
   - ucex
94 ashish 4628
  """
4629
 
4630
  thrift_spec = (
559 chandransh 4631
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4632
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4633
  )
4634
 
559 chandransh 4635
  def __init__(self, success=None, ucex=None,):
94 ashish 4636
    self.success = success
559 chandransh 4637
    self.ucex = ucex
94 ashish 4638
 
4639
  def read(self, iprot):
4640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4642
      return
4643
    iprot.readStructBegin()
4644
    while True:
4645
      (fname, ftype, fid) = iprot.readFieldBegin()
4646
      if ftype == TType.STOP:
4647
        break
4648
      if fid == 0:
4649
        if ftype == TType.STRUCT:
559 chandransh 4650
          self.success = User()
94 ashish 4651
          self.success.read(iprot)
4652
        else:
4653
          iprot.skip(ftype)
4654
      elif fid == 1:
4655
        if ftype == TType.STRUCT:
559 chandransh 4656
          self.ucex = UserContextException()
4657
          self.ucex.read(iprot)
94 ashish 4658
        else:
4659
          iprot.skip(ftype)
4660
      else:
4661
        iprot.skip(ftype)
4662
      iprot.readFieldEnd()
4663
    iprot.readStructEnd()
4664
 
4665
  def write(self, oprot):
4666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4668
      return
5326 rajveer 4669
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4670
    if self.success is not None:
94 ashish 4671
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4672
      self.success.write(oprot)
4673
      oprot.writeFieldEnd()
3431 rajveer 4674
    if self.ucex is not None:
559 chandransh 4675
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4676
      self.ucex.write(oprot)
94 ashish 4677
      oprot.writeFieldEnd()
4678
    oprot.writeFieldStop()
4679
    oprot.writeStructEnd()
4680
 
3431 rajveer 4681
  def validate(self):
4682
    return
4683
 
4684
 
94 ashish 4685
  def __repr__(self):
4686
    L = ['%s=%r' % (key, value)
4687
      for key, value in self.__dict__.iteritems()]
4688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4689
 
4690
  def __eq__(self, other):
4691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4692
 
4693
  def __ne__(self, other):
4694
    return not (self == other)
4695
 
5326 rajveer 4696
class updateUser_args:
94 ashish 4697
  """
4698
  Attributes:
5326 rajveer 4699
   - user
94 ashish 4700
  """
4701
 
4702
  thrift_spec = (
4703
    None, # 0
5326 rajveer 4704
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4705
  )
4706
 
5326 rajveer 4707
  def __init__(self, user=None,):
4708
    self.user = user
94 ashish 4709
 
4710
  def read(self, iprot):
4711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4713
      return
4714
    iprot.readStructBegin()
4715
    while True:
4716
      (fname, ftype, fid) = iprot.readFieldBegin()
4717
      if ftype == TType.STOP:
4718
        break
4719
      if fid == 1:
5326 rajveer 4720
        if ftype == TType.STRUCT:
4721
          self.user = User()
4722
          self.user.read(iprot)
94 ashish 4723
        else:
4724
          iprot.skip(ftype)
4725
      else:
4726
        iprot.skip(ftype)
4727
      iprot.readFieldEnd()
4728
    iprot.readStructEnd()
4729
 
4730
  def write(self, oprot):
4731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4733
      return
5326 rajveer 4734
    oprot.writeStructBegin('updateUser_args')
4735
    if self.user is not None:
4736
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4737
      self.user.write(oprot)
94 ashish 4738
      oprot.writeFieldEnd()
4739
    oprot.writeFieldStop()
4740
    oprot.writeStructEnd()
4741
 
3431 rajveer 4742
  def validate(self):
4743
    return
4744
 
4745
 
94 ashish 4746
  def __repr__(self):
4747
    L = ['%s=%r' % (key, value)
4748
      for key, value in self.__dict__.iteritems()]
4749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4750
 
4751
  def __eq__(self, other):
4752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4753
 
4754
  def __ne__(self, other):
4755
    return not (self == other)
4756
 
5326 rajveer 4757
class updateUser_result:
94 ashish 4758
  """
4759
  Attributes:
4760
   - success
559 chandransh 4761
   - ucex
94 ashish 4762
  """
4763
 
4764
  thrift_spec = (
5326 rajveer 4765
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4766
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4767
  )
4768
 
559 chandransh 4769
  def __init__(self, success=None, ucex=None,):
94 ashish 4770
    self.success = success
559 chandransh 4771
    self.ucex = ucex
94 ashish 4772
 
4773
  def read(self, iprot):
4774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4776
      return
4777
    iprot.readStructBegin()
4778
    while True:
4779
      (fname, ftype, fid) = iprot.readFieldBegin()
4780
      if ftype == TType.STOP:
4781
        break
4782
      if fid == 0:
5326 rajveer 4783
        if ftype == TType.STRUCT:
4784
          self.success = User()
4785
          self.success.read(iprot)
94 ashish 4786
        else:
4787
          iprot.skip(ftype)
4788
      elif fid == 1:
4789
        if ftype == TType.STRUCT:
559 chandransh 4790
          self.ucex = UserContextException()
4791
          self.ucex.read(iprot)
94 ashish 4792
        else:
4793
          iprot.skip(ftype)
4794
      else:
4795
        iprot.skip(ftype)
4796
      iprot.readFieldEnd()
4797
    iprot.readStructEnd()
4798
 
4799
  def write(self, oprot):
4800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4802
      return
5326 rajveer 4803
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4804
    if self.success is not None:
5326 rajveer 4805
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4806
      self.success.write(oprot)
94 ashish 4807
      oprot.writeFieldEnd()
3431 rajveer 4808
    if self.ucex is not None:
559 chandransh 4809
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4810
      self.ucex.write(oprot)
94 ashish 4811
      oprot.writeFieldEnd()
4812
    oprot.writeFieldStop()
4813
    oprot.writeStructEnd()
4814
 
3431 rajveer 4815
  def validate(self):
4816
    return
4817
 
4818
 
94 ashish 4819
  def __repr__(self):
4820
    L = ['%s=%r' % (key, value)
4821
      for key, value in self.__dict__.iteritems()]
4822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4823
 
4824
  def __eq__(self, other):
4825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4826
 
4827
  def __ne__(self, other):
4828
    return not (self == other)
4829
 
5326 rajveer 4830
class deleteUser_args:
94 ashish 4831
  """
4832
  Attributes:
4833
   - userId
4834
  """
4835
 
4836
  thrift_spec = (
4837
    None, # 0
4838
    (1, TType.I64, 'userId', None, None, ), # 1
4839
  )
4840
 
559 chandransh 4841
  def __init__(self, userId=None,):
94 ashish 4842
    self.userId = userId
4843
 
4844
  def read(self, iprot):
4845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4847
      return
4848
    iprot.readStructBegin()
4849
    while True:
4850
      (fname, ftype, fid) = iprot.readFieldBegin()
4851
      if ftype == TType.STOP:
4852
        break
4853
      if fid == 1:
4854
        if ftype == TType.I64:
4855
          self.userId = iprot.readI64();
4856
        else:
4857
          iprot.skip(ftype)
4858
      else:
4859
        iprot.skip(ftype)
4860
      iprot.readFieldEnd()
4861
    iprot.readStructEnd()
4862
 
4863
  def write(self, oprot):
4864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4866
      return
5326 rajveer 4867
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4868
    if self.userId is not None:
94 ashish 4869
      oprot.writeFieldBegin('userId', TType.I64, 1)
4870
      oprot.writeI64(self.userId)
4871
      oprot.writeFieldEnd()
4872
    oprot.writeFieldStop()
4873
    oprot.writeStructEnd()
4874
 
3431 rajveer 4875
  def validate(self):
4876
    return
4877
 
4878
 
94 ashish 4879
  def __repr__(self):
4880
    L = ['%s=%r' % (key, value)
4881
      for key, value in self.__dict__.iteritems()]
4882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4883
 
4884
  def __eq__(self, other):
4885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4886
 
4887
  def __ne__(self, other):
4888
    return not (self == other)
4889
 
5326 rajveer 4890
class deleteUser_result:
94 ashish 4891
  """
4892
  Attributes:
4893
   - success
559 chandransh 4894
   - ucex
94 ashish 4895
  """
4896
 
4897
  thrift_spec = (
5326 rajveer 4898
    (0, TType.BOOL, 'success', None, None, ), # 0
559 chandransh 4899
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4900
  )
4901
 
559 chandransh 4902
  def __init__(self, success=None, ucex=None,):
94 ashish 4903
    self.success = success
559 chandransh 4904
    self.ucex = ucex
94 ashish 4905
 
4906
  def read(self, iprot):
4907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4909
      return
4910
    iprot.readStructBegin()
4911
    while True:
4912
      (fname, ftype, fid) = iprot.readFieldBegin()
4913
      if ftype == TType.STOP:
4914
        break
4915
      if fid == 0:
5326 rajveer 4916
        if ftype == TType.BOOL:
4917
          self.success = iprot.readBool();
94 ashish 4918
        else:
4919
          iprot.skip(ftype)
4920
      elif fid == 1:
4921
        if ftype == TType.STRUCT:
559 chandransh 4922
          self.ucex = UserContextException()
4923
          self.ucex.read(iprot)
94 ashish 4924
        else:
4925
          iprot.skip(ftype)
4926
      else:
4927
        iprot.skip(ftype)
4928
      iprot.readFieldEnd()
4929
    iprot.readStructEnd()
4930
 
4931
  def write(self, oprot):
4932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4934
      return
5326 rajveer 4935
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4936
    if self.success is not None:
5326 rajveer 4937
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4938
      oprot.writeBool(self.success)
94 ashish 4939
      oprot.writeFieldEnd()
3431 rajveer 4940
    if self.ucex is not None:
559 chandransh 4941
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4942
      self.ucex.write(oprot)
94 ashish 4943
      oprot.writeFieldEnd()
4944
    oprot.writeFieldStop()
4945
    oprot.writeStructEnd()
4946
 
3431 rajveer 4947
  def validate(self):
4948
    return
4949
 
4950
 
94 ashish 4951
  def __repr__(self):
4952
    L = ['%s=%r' % (key, value)
4953
      for key, value in self.__dict__.iteritems()]
4954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4955
 
4956
  def __eq__(self, other):
4957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4958
 
4959
  def __ne__(self, other):
4960
    return not (self == other)
4961
 
559 chandransh 4962
class authenticateUser_args:
94 ashish 4963
  """
4964
  Attributes:
4965
   - email
4966
   - password
4967
  """
4968
 
4969
  thrift_spec = (
4970
    None, # 0
4971
    (1, TType.STRING, 'email', None, None, ), # 1
4972
    (2, TType.STRING, 'password', None, None, ), # 2
4973
  )
4974
 
4975
  def __init__(self, email=None, password=None,):
4976
    self.email = email
4977
    self.password = password
4978
 
4979
  def read(self, iprot):
4980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4982
      return
4983
    iprot.readStructBegin()
4984
    while True:
4985
      (fname, ftype, fid) = iprot.readFieldBegin()
4986
      if ftype == TType.STOP:
4987
        break
4988
      if fid == 1:
4989
        if ftype == TType.STRING:
4990
          self.email = iprot.readString();
4991
        else:
4992
          iprot.skip(ftype)
4993
      elif fid == 2:
4994
        if ftype == TType.STRING:
4995
          self.password = iprot.readString();
4996
        else:
4997
          iprot.skip(ftype)
4998
      else:
4999
        iprot.skip(ftype)
5000
      iprot.readFieldEnd()
5001
    iprot.readStructEnd()
5002
 
5003
  def write(self, oprot):
5004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5006
      return
559 chandransh 5007
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5008
    if self.email is not None:
94 ashish 5009
      oprot.writeFieldBegin('email', TType.STRING, 1)
5010
      oprot.writeString(self.email)
5011
      oprot.writeFieldEnd()
3431 rajveer 5012
    if self.password is not None:
94 ashish 5013
      oprot.writeFieldBegin('password', TType.STRING, 2)
5014
      oprot.writeString(self.password)
5015
      oprot.writeFieldEnd()
5016
    oprot.writeFieldStop()
5017
    oprot.writeStructEnd()
5018
 
3431 rajveer 5019
  def validate(self):
5020
    return
5021
 
5022
 
94 ashish 5023
  def __repr__(self):
5024
    L = ['%s=%r' % (key, value)
5025
      for key, value in self.__dict__.iteritems()]
5026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5027
 
5028
  def __eq__(self, other):
5029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5030
 
5031
  def __ne__(self, other):
5032
    return not (self == other)
5033
 
559 chandransh 5034
class authenticateUser_result:
94 ashish 5035
  """
5036
  Attributes:
5037
   - success
559 chandransh 5038
   - auex
94 ashish 5039
  """
5040
 
5041
  thrift_spec = (
559 chandransh 5042
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5043
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5044
  )
5045
 
559 chandransh 5046
  def __init__(self, success=None, auex=None,):
94 ashish 5047
    self.success = success
559 chandransh 5048
    self.auex = auex
94 ashish 5049
 
5050
  def read(self, iprot):
5051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5053
      return
5054
    iprot.readStructBegin()
5055
    while True:
5056
      (fname, ftype, fid) = iprot.readFieldBegin()
5057
      if ftype == TType.STOP:
5058
        break
5059
      if fid == 0:
5060
        if ftype == TType.STRUCT:
559 chandransh 5061
          self.success = User()
94 ashish 5062
          self.success.read(iprot)
5063
        else:
5064
          iprot.skip(ftype)
5065
      elif fid == 1:
5066
        if ftype == TType.STRUCT:
559 chandransh 5067
          self.auex = AuthenticationException()
5068
          self.auex.read(iprot)
94 ashish 5069
        else:
5070
          iprot.skip(ftype)
5071
      else:
5072
        iprot.skip(ftype)
5073
      iprot.readFieldEnd()
5074
    iprot.readStructEnd()
5075
 
5076
  def write(self, oprot):
5077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5079
      return
559 chandransh 5080
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5081
    if self.success is not None:
94 ashish 5082
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5083
      self.success.write(oprot)
5084
      oprot.writeFieldEnd()
3431 rajveer 5085
    if self.auex is not None:
559 chandransh 5086
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5087
      self.auex.write(oprot)
94 ashish 5088
      oprot.writeFieldEnd()
5089
    oprot.writeFieldStop()
5090
    oprot.writeStructEnd()
5091
 
3431 rajveer 5092
  def validate(self):
5093
    return
5094
 
5095
 
94 ashish 5096
  def __repr__(self):
5097
    L = ['%s=%r' % (key, value)
5098
      for key, value in self.__dict__.iteritems()]
5099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5100
 
5101
  def __eq__(self, other):
5102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5103
 
5104
  def __ne__(self, other):
5105
    return not (self == other)
5106
 
559 chandransh 5107
class userExists_args:
122 ashish 5108
  """
5109
  Attributes:
559 chandransh 5110
   - email
122 ashish 5111
  """
5112
 
5113
  thrift_spec = (
5114
    None, # 0
559 chandransh 5115
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5116
  )
5117
 
559 chandransh 5118
  def __init__(self, email=None,):
5119
    self.email = email
122 ashish 5120
 
5121
  def read(self, iprot):
5122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5124
      return
5125
    iprot.readStructBegin()
5126
    while True:
5127
      (fname, ftype, fid) = iprot.readFieldBegin()
5128
      if ftype == TType.STOP:
5129
        break
5130
      if fid == 1:
5131
        if ftype == TType.STRING:
559 chandransh 5132
          self.email = iprot.readString();
122 ashish 5133
        else:
5134
          iprot.skip(ftype)
559 chandransh 5135
      else:
5136
        iprot.skip(ftype)
5137
      iprot.readFieldEnd()
5138
    iprot.readStructEnd()
5139
 
5140
  def write(self, oprot):
5141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5143
      return
5144
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5145
    if self.email is not None:
559 chandransh 5146
      oprot.writeFieldBegin('email', TType.STRING, 1)
5147
      oprot.writeString(self.email)
5148
      oprot.writeFieldEnd()
5149
    oprot.writeFieldStop()
5150
    oprot.writeStructEnd()
5151
 
3431 rajveer 5152
  def validate(self):
5153
    return
5154
 
5155
 
559 chandransh 5156
  def __repr__(self):
5157
    L = ['%s=%r' % (key, value)
5158
      for key, value in self.__dict__.iteritems()]
5159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5160
 
5161
  def __eq__(self, other):
5162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5163
 
5164
  def __ne__(self, other):
5165
    return not (self == other)
5166
 
5167
class userExists_result:
5168
  """
5169
  Attributes:
5170
   - success
5171
   - ucx
5172
  """
5173
 
5174
  thrift_spec = (
5175
    (0, TType.BOOL, 'success', None, None, ), # 0
5176
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5177
  )
5178
 
5179
  def __init__(self, success=None, ucx=None,):
5180
    self.success = success
5181
    self.ucx = ucx
5182
 
5183
  def read(self, iprot):
5184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5186
      return
5187
    iprot.readStructBegin()
5188
    while True:
5189
      (fname, ftype, fid) = iprot.readFieldBegin()
5190
      if ftype == TType.STOP:
5191
        break
5192
      if fid == 0:
5193
        if ftype == TType.BOOL:
5194
          self.success = iprot.readBool();
5195
        else:
5196
          iprot.skip(ftype)
5197
      elif fid == 1:
5198
        if ftype == TType.STRUCT:
5199
          self.ucx = UserContextException()
5200
          self.ucx.read(iprot)
5201
        else:
5202
          iprot.skip(ftype)
5203
      else:
5204
        iprot.skip(ftype)
5205
      iprot.readFieldEnd()
5206
    iprot.readStructEnd()
5207
 
5208
  def write(self, oprot):
5209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5211
      return
5212
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5213
    if self.success is not None:
559 chandransh 5214
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5215
      oprot.writeBool(self.success)
5216
      oprot.writeFieldEnd()
3431 rajveer 5217
    if self.ucx is not None:
559 chandransh 5218
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5219
      self.ucx.write(oprot)
5220
      oprot.writeFieldEnd()
5221
    oprot.writeFieldStop()
5222
    oprot.writeStructEnd()
5223
 
3431 rajveer 5224
  def validate(self):
5225
    return
5226
 
5227
 
559 chandransh 5228
  def __repr__(self):
5229
    L = ['%s=%r' % (key, value)
5230
      for key, value in self.__dict__.iteritems()]
5231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5232
 
5233
  def __eq__(self, other):
5234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5235
 
5236
  def __ne__(self, other):
5237
    return not (self == other)
5238
 
5239
class addAddressForUser_args:
5240
  """
5241
  Attributes:
5242
   - userId
5243
   - address
5244
   - setDefault
5245
  """
5246
 
5247
  thrift_spec = (
5248
    None, # 0
5249
    (1, TType.I64, 'userId', None, None, ), # 1
5250
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5251
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5252
  )
5253
 
567 rajveer 5254
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5255
    self.userId = userId
5256
    self.address = address
5257
    self.setDefault = setDefault
5258
 
5259
  def read(self, iprot):
5260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5262
      return
5263
    iprot.readStructBegin()
5264
    while True:
5265
      (fname, ftype, fid) = iprot.readFieldBegin()
5266
      if ftype == TType.STOP:
5267
        break
5268
      if fid == 1:
5269
        if ftype == TType.I64:
5270
          self.userId = iprot.readI64();
5271
        else:
5272
          iprot.skip(ftype)
122 ashish 5273
      elif fid == 2:
559 chandransh 5274
        if ftype == TType.STRUCT:
5275
          self.address = Address()
5276
          self.address.read(iprot)
122 ashish 5277
        else:
5278
          iprot.skip(ftype)
5279
      elif fid == 3:
5280
        if ftype == TType.BOOL:
559 chandransh 5281
          self.setDefault = iprot.readBool();
122 ashish 5282
        else:
5283
          iprot.skip(ftype)
5284
      else:
5285
        iprot.skip(ftype)
5286
      iprot.readFieldEnd()
5287
    iprot.readStructEnd()
5288
 
5289
  def write(self, oprot):
5290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5292
      return
559 chandransh 5293
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5294
    if self.userId is not None:
559 chandransh 5295
      oprot.writeFieldBegin('userId', TType.I64, 1)
5296
      oprot.writeI64(self.userId)
122 ashish 5297
      oprot.writeFieldEnd()
3431 rajveer 5298
    if self.address is not None:
559 chandransh 5299
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5300
      self.address.write(oprot)
122 ashish 5301
      oprot.writeFieldEnd()
3431 rajveer 5302
    if self.setDefault is not None:
567 rajveer 5303
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5304
      oprot.writeBool(self.setDefault)
5305
      oprot.writeFieldEnd()
122 ashish 5306
    oprot.writeFieldStop()
5307
    oprot.writeStructEnd()
5308
 
3431 rajveer 5309
  def validate(self):
5310
    return
5311
 
5312
 
122 ashish 5313
  def __repr__(self):
5314
    L = ['%s=%r' % (key, value)
5315
      for key, value in self.__dict__.iteritems()]
5316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5317
 
5318
  def __eq__(self, other):
5319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5320
 
5321
  def __ne__(self, other):
5322
    return not (self == other)
5323
 
559 chandransh 5324
class addAddressForUser_result:
122 ashish 5325
  """
5326
  Attributes:
5327
   - success
559 chandransh 5328
   - ucx
122 ashish 5329
  """
5330
 
5331
  thrift_spec = (
567 rajveer 5332
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5333
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5334
  )
5335
 
559 chandransh 5336
  def __init__(self, success=None, ucx=None,):
122 ashish 5337
    self.success = success
559 chandransh 5338
    self.ucx = ucx
122 ashish 5339
 
5340
  def read(self, iprot):
5341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5343
      return
5344
    iprot.readStructBegin()
5345
    while True:
5346
      (fname, ftype, fid) = iprot.readFieldBegin()
5347
      if ftype == TType.STOP:
5348
        break
5349
      if fid == 0:
567 rajveer 5350
        if ftype == TType.I64:
5351
          self.success = iprot.readI64();
122 ashish 5352
        else:
5353
          iprot.skip(ftype)
5354
      elif fid == 1:
5355
        if ftype == TType.STRUCT:
559 chandransh 5356
          self.ucx = UserContextException()
5357
          self.ucx.read(iprot)
122 ashish 5358
        else:
5359
          iprot.skip(ftype)
5360
      else:
5361
        iprot.skip(ftype)
5362
      iprot.readFieldEnd()
5363
    iprot.readStructEnd()
5364
 
5365
  def write(self, oprot):
5366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5368
      return
559 chandransh 5369
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5370
    if self.success is not None:
567 rajveer 5371
      oprot.writeFieldBegin('success', TType.I64, 0)
5372
      oprot.writeI64(self.success)
122 ashish 5373
      oprot.writeFieldEnd()
3431 rajveer 5374
    if self.ucx is not None:
559 chandransh 5375
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5376
      self.ucx.write(oprot)
122 ashish 5377
      oprot.writeFieldEnd()
5378
    oprot.writeFieldStop()
5379
    oprot.writeStructEnd()
5380
 
3431 rajveer 5381
  def validate(self):
5382
    return
5383
 
5384
 
122 ashish 5385
  def __repr__(self):
5386
    L = ['%s=%r' % (key, value)
5387
      for key, value in self.__dict__.iteritems()]
5388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5389
 
5390
  def __eq__(self, other):
5391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5392
 
5393
  def __ne__(self, other):
5394
    return not (self == other)
5395
 
559 chandransh 5396
class removeAddressForUser_args:
94 ashish 5397
  """
5398
  Attributes:
559 chandransh 5399
   - userid
5400
   - addressId
94 ashish 5401
  """
5402
 
5403
  thrift_spec = (
5404
    None, # 0
559 chandransh 5405
    (1, TType.I64, 'userid', None, None, ), # 1
5406
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5407
  )
5408
 
559 chandransh 5409
  def __init__(self, userid=None, addressId=None,):
5410
    self.userid = userid
5411
    self.addressId = addressId
94 ashish 5412
 
5413
  def read(self, iprot):
5414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5416
      return
5417
    iprot.readStructBegin()
5418
    while True:
5419
      (fname, ftype, fid) = iprot.readFieldBegin()
5420
      if ftype == TType.STOP:
5421
        break
5422
      if fid == 1:
559 chandransh 5423
        if ftype == TType.I64:
5424
          self.userid = iprot.readI64();
94 ashish 5425
        else:
5426
          iprot.skip(ftype)
559 chandransh 5427
      elif fid == 2:
5428
        if ftype == TType.I64:
5429
          self.addressId = iprot.readI64();
5430
        else:
5431
          iprot.skip(ftype)
94 ashish 5432
      else:
5433
        iprot.skip(ftype)
5434
      iprot.readFieldEnd()
5435
    iprot.readStructEnd()
5436
 
5437
  def write(self, oprot):
5438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5440
      return
559 chandransh 5441
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5442
    if self.userid is not None:
559 chandransh 5443
      oprot.writeFieldBegin('userid', TType.I64, 1)
5444
      oprot.writeI64(self.userid)
94 ashish 5445
      oprot.writeFieldEnd()
3431 rajveer 5446
    if self.addressId is not None:
559 chandransh 5447
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5448
      oprot.writeI64(self.addressId)
5449
      oprot.writeFieldEnd()
94 ashish 5450
    oprot.writeFieldStop()
5451
    oprot.writeStructEnd()
5452
 
3431 rajveer 5453
  def validate(self):
5454
    return
5455
 
5456
 
94 ashish 5457
  def __repr__(self):
5458
    L = ['%s=%r' % (key, value)
5459
      for key, value in self.__dict__.iteritems()]
5460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5461
 
5462
  def __eq__(self, other):
5463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5464
 
5465
  def __ne__(self, other):
5466
    return not (self == other)
5467
 
559 chandransh 5468
class removeAddressForUser_result:
94 ashish 5469
  """
5470
  Attributes:
5471
   - success
5472
   - ucx
5473
  """
5474
 
5475
  thrift_spec = (
5476
    (0, TType.BOOL, 'success', None, None, ), # 0
5477
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5478
  )
5479
 
5480
  def __init__(self, success=None, ucx=None,):
5481
    self.success = success
5482
    self.ucx = ucx
5483
 
5484
  def read(self, iprot):
5485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5487
      return
5488
    iprot.readStructBegin()
5489
    while True:
5490
      (fname, ftype, fid) = iprot.readFieldBegin()
5491
      if ftype == TType.STOP:
5492
        break
5493
      if fid == 0:
5494
        if ftype == TType.BOOL:
5495
          self.success = iprot.readBool();
5496
        else:
5497
          iprot.skip(ftype)
5498
      elif fid == 1:
5499
        if ftype == TType.STRUCT:
5500
          self.ucx = UserContextException()
5501
          self.ucx.read(iprot)
5502
        else:
5503
          iprot.skip(ftype)
5504
      else:
5505
        iprot.skip(ftype)
5506
      iprot.readFieldEnd()
5507
    iprot.readStructEnd()
5508
 
5509
  def write(self, oprot):
5510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5512
      return
559 chandransh 5513
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5514
    if self.success is not None:
94 ashish 5515
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5516
      oprot.writeBool(self.success)
5517
      oprot.writeFieldEnd()
3431 rajveer 5518
    if self.ucx is not None:
94 ashish 5519
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5520
      self.ucx.write(oprot)
5521
      oprot.writeFieldEnd()
5522
    oprot.writeFieldStop()
5523
    oprot.writeStructEnd()
5524
 
3431 rajveer 5525
  def validate(self):
5526
    return
5527
 
5528
 
94 ashish 5529
  def __repr__(self):
5530
    L = ['%s=%r' % (key, value)
5531
      for key, value in self.__dict__.iteritems()]
5532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5533
 
5534
  def __eq__(self, other):
5535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5536
 
5537
  def __ne__(self, other):
5538
    return not (self == other)
5539
 
559 chandransh 5540
class setUserAsLoggedIn_args:
94 ashish 5541
  """
5542
  Attributes:
559 chandransh 5543
   - userId
94 ashish 5544
   - timestamp
5545
  """
5546
 
5547
  thrift_spec = (
5548
    None, # 0
559 chandransh 5549
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5550
    (2, TType.I64, 'timestamp', None, None, ), # 2
5551
  )
5552
 
559 chandransh 5553
  def __init__(self, userId=None, timestamp=None,):
5554
    self.userId = userId
94 ashish 5555
    self.timestamp = timestamp
5556
 
5557
  def read(self, iprot):
5558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5560
      return
5561
    iprot.readStructBegin()
5562
    while True:
5563
      (fname, ftype, fid) = iprot.readFieldBegin()
5564
      if ftype == TType.STOP:
5565
        break
5566
      if fid == 1:
559 chandransh 5567
        if ftype == TType.I64:
5568
          self.userId = iprot.readI64();
94 ashish 5569
        else:
5570
          iprot.skip(ftype)
5571
      elif fid == 2:
5572
        if ftype == TType.I64:
5573
          self.timestamp = iprot.readI64();
5574
        else:
5575
          iprot.skip(ftype)
5576
      else:
5577
        iprot.skip(ftype)
5578
      iprot.readFieldEnd()
5579
    iprot.readStructEnd()
5580
 
5581
  def write(self, oprot):
5582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5584
      return
559 chandransh 5585
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5586
    if self.userId is not None:
559 chandransh 5587
      oprot.writeFieldBegin('userId', TType.I64, 1)
5588
      oprot.writeI64(self.userId)
94 ashish 5589
      oprot.writeFieldEnd()
3431 rajveer 5590
    if self.timestamp is not None:
94 ashish 5591
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5592
      oprot.writeI64(self.timestamp)
5593
      oprot.writeFieldEnd()
5594
    oprot.writeFieldStop()
5595
    oprot.writeStructEnd()
5596
 
3431 rajveer 5597
  def validate(self):
5598
    return
5599
 
5600
 
94 ashish 5601
  def __repr__(self):
5602
    L = ['%s=%r' % (key, value)
5603
      for key, value in self.__dict__.iteritems()]
5604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5605
 
5606
  def __eq__(self, other):
5607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5608
 
5609
  def __ne__(self, other):
5610
    return not (self == other)
5611
 
559 chandransh 5612
class setUserAsLoggedIn_result:
94 ashish 5613
  """
5614
  Attributes:
5615
   - success
5616
   - ucx
5617
  """
5618
 
5619
  thrift_spec = (
5620
    (0, TType.BOOL, 'success', None, None, ), # 0
5621
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5622
  )
5623
 
5624
  def __init__(self, success=None, ucx=None,):
5625
    self.success = success
5626
    self.ucx = ucx
5627
 
5628
  def read(self, iprot):
5629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5631
      return
5632
    iprot.readStructBegin()
5633
    while True:
5634
      (fname, ftype, fid) = iprot.readFieldBegin()
5635
      if ftype == TType.STOP:
5636
        break
5637
      if fid == 0:
5638
        if ftype == TType.BOOL:
5639
          self.success = iprot.readBool();
5640
        else:
5641
          iprot.skip(ftype)
5642
      elif fid == 1:
5643
        if ftype == TType.STRUCT:
5644
          self.ucx = UserContextException()
5645
          self.ucx.read(iprot)
5646
        else:
5647
          iprot.skip(ftype)
5648
      else:
5649
        iprot.skip(ftype)
5650
      iprot.readFieldEnd()
5651
    iprot.readStructEnd()
5652
 
5653
  def write(self, oprot):
5654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5656
      return
559 chandransh 5657
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5658
    if self.success is not None:
94 ashish 5659
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5660
      oprot.writeBool(self.success)
5661
      oprot.writeFieldEnd()
3431 rajveer 5662
    if self.ucx is not None:
94 ashish 5663
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5664
      self.ucx.write(oprot)
5665
      oprot.writeFieldEnd()
5666
    oprot.writeFieldStop()
5667
    oprot.writeStructEnd()
5668
 
3431 rajveer 5669
  def validate(self):
5670
    return
5671
 
5672
 
94 ashish 5673
  def __repr__(self):
5674
    L = ['%s=%r' % (key, value)
5675
      for key, value in self.__dict__.iteritems()]
5676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5677
 
5678
  def __eq__(self, other):
5679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5680
 
5681
  def __ne__(self, other):
5682
    return not (self == other)
5683
 
559 chandransh 5684
class setUserAsLoggedOut_args:
94 ashish 5685
  """
5686
  Attributes:
5687
   - userid
5688
   - timestamp
5689
  """
5690
 
5691
  thrift_spec = (
5692
    None, # 0
559 chandransh 5693
    (1, TType.I64, 'userid', None, None, ), # 1
5694
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5695
  )
5696
 
559 chandransh 5697
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5698
    self.userid = userid
5699
    self.timestamp = timestamp
5700
 
5701
  def read(self, iprot):
5702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5704
      return
5705
    iprot.readStructBegin()
5706
    while True:
5707
      (fname, ftype, fid) = iprot.readFieldBegin()
5708
      if ftype == TType.STOP:
5709
        break
5710
      if fid == 1:
5711
        if ftype == TType.I64:
5712
          self.userid = iprot.readI64();
5713
        else:
5714
          iprot.skip(ftype)
559 chandransh 5715
      elif fid == 2:
94 ashish 5716
        if ftype == TType.I64:
5717
          self.timestamp = iprot.readI64();
5718
        else:
5719
          iprot.skip(ftype)
5720
      else:
5721
        iprot.skip(ftype)
5722
      iprot.readFieldEnd()
5723
    iprot.readStructEnd()
5724
 
5725
  def write(self, oprot):
5726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5728
      return
559 chandransh 5729
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5730
    if self.userid is not None:
559 chandransh 5731
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5732
      oprot.writeI64(self.userid)
5733
      oprot.writeFieldEnd()
3431 rajveer 5734
    if self.timestamp is not None:
559 chandransh 5735
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5736
      oprot.writeI64(self.timestamp)
5737
      oprot.writeFieldEnd()
5738
    oprot.writeFieldStop()
5739
    oprot.writeStructEnd()
5740
 
3431 rajveer 5741
  def validate(self):
5742
    return
5743
 
5744
 
94 ashish 5745
  def __repr__(self):
5746
    L = ['%s=%r' % (key, value)
5747
      for key, value in self.__dict__.iteritems()]
5748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5749
 
5750
  def __eq__(self, other):
5751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5752
 
5753
  def __ne__(self, other):
5754
    return not (self == other)
5755
 
559 chandransh 5756
class setUserAsLoggedOut_result:
94 ashish 5757
  """
5758
  Attributes:
5759
   - success
5760
   - ucx
5761
  """
5762
 
5763
  thrift_spec = (
5764
    (0, TType.BOOL, 'success', None, None, ), # 0
5765
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5766
  )
5767
 
5768
  def __init__(self, success=None, ucx=None,):
5769
    self.success = success
5770
    self.ucx = ucx
5771
 
5772
  def read(self, iprot):
5773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5775
      return
5776
    iprot.readStructBegin()
5777
    while True:
5778
      (fname, ftype, fid) = iprot.readFieldBegin()
5779
      if ftype == TType.STOP:
5780
        break
5781
      if fid == 0:
5782
        if ftype == TType.BOOL:
5783
          self.success = iprot.readBool();
5784
        else:
5785
          iprot.skip(ftype)
5786
      elif fid == 1:
5787
        if ftype == TType.STRUCT:
5788
          self.ucx = UserContextException()
5789
          self.ucx.read(iprot)
5790
        else:
5791
          iprot.skip(ftype)
5792
      else:
5793
        iprot.skip(ftype)
5794
      iprot.readFieldEnd()
5795
    iprot.readStructEnd()
5796
 
5797
  def write(self, oprot):
5798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5800
      return
559 chandransh 5801
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5802
    if self.success is not None:
94 ashish 5803
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5804
      oprot.writeBool(self.success)
5805
      oprot.writeFieldEnd()
3431 rajveer 5806
    if self.ucx is not None:
94 ashish 5807
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5808
      self.ucx.write(oprot)
5809
      oprot.writeFieldEnd()
5810
    oprot.writeFieldStop()
5811
    oprot.writeStructEnd()
5812
 
3431 rajveer 5813
  def validate(self):
5814
    return
5815
 
5816
 
94 ashish 5817
  def __repr__(self):
5818
    L = ['%s=%r' % (key, value)
5819
      for key, value in self.__dict__.iteritems()]
5820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5821
 
5822
  def __eq__(self, other):
5823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5824
 
5825
  def __ne__(self, other):
5826
    return not (self == other)
5827
 
559 chandransh 5828
class setDefaultAddress_args:
94 ashish 5829
  """
5830
  Attributes:
5831
   - userid
5832
   - addressId
5833
  """
5834
 
5835
  thrift_spec = (
5836
    None, # 0
5837
    (1, TType.I64, 'userid', None, None, ), # 1
5838
    (2, TType.I64, 'addressId', None, None, ), # 2
5839
  )
5840
 
5841
  def __init__(self, userid=None, addressId=None,):
5842
    self.userid = userid
5843
    self.addressId = addressId
5844
 
5845
  def read(self, iprot):
5846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5848
      return
5849
    iprot.readStructBegin()
5850
    while True:
5851
      (fname, ftype, fid) = iprot.readFieldBegin()
5852
      if ftype == TType.STOP:
5853
        break
5854
      if fid == 1:
5855
        if ftype == TType.I64:
5856
          self.userid = iprot.readI64();
5857
        else:
5858
          iprot.skip(ftype)
5859
      elif fid == 2:
5860
        if ftype == TType.I64:
5861
          self.addressId = iprot.readI64();
5862
        else:
5863
          iprot.skip(ftype)
5864
      else:
5865
        iprot.skip(ftype)
5866
      iprot.readFieldEnd()
5867
    iprot.readStructEnd()
5868
 
5869
  def write(self, oprot):
5870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5872
      return
559 chandransh 5873
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5874
    if self.userid is not None:
94 ashish 5875
      oprot.writeFieldBegin('userid', TType.I64, 1)
5876
      oprot.writeI64(self.userid)
5877
      oprot.writeFieldEnd()
3431 rajveer 5878
    if self.addressId is not None:
94 ashish 5879
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5880
      oprot.writeI64(self.addressId)
5881
      oprot.writeFieldEnd()
5882
    oprot.writeFieldStop()
5883
    oprot.writeStructEnd()
5884
 
3431 rajveer 5885
  def validate(self):
5886
    return
5887
 
5888
 
94 ashish 5889
  def __repr__(self):
5890
    L = ['%s=%r' % (key, value)
5891
      for key, value in self.__dict__.iteritems()]
5892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5893
 
5894
  def __eq__(self, other):
5895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5896
 
5897
  def __ne__(self, other):
5898
    return not (self == other)
5899
 
559 chandransh 5900
class setDefaultAddress_result:
94 ashish 5901
  """
5902
  Attributes:
5903
   - success
5904
   - ucx
5905
  """
5906
 
5907
  thrift_spec = (
5908
    (0, TType.BOOL, 'success', None, None, ), # 0
5909
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5910
  )
5911
 
5912
  def __init__(self, success=None, ucx=None,):
5913
    self.success = success
5914
    self.ucx = ucx
5915
 
5916
  def read(self, iprot):
5917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5919
      return
5920
    iprot.readStructBegin()
5921
    while True:
5922
      (fname, ftype, fid) = iprot.readFieldBegin()
5923
      if ftype == TType.STOP:
5924
        break
5925
      if fid == 0:
5926
        if ftype == TType.BOOL:
5927
          self.success = iprot.readBool();
5928
        else:
5929
          iprot.skip(ftype)
5930
      elif fid == 1:
5931
        if ftype == TType.STRUCT:
5932
          self.ucx = UserContextException()
5933
          self.ucx.read(iprot)
5934
        else:
5935
          iprot.skip(ftype)
5936
      else:
5937
        iprot.skip(ftype)
5938
      iprot.readFieldEnd()
5939
    iprot.readStructEnd()
5940
 
5941
  def write(self, oprot):
5942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5944
      return
559 chandransh 5945
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5946
    if self.success is not None:
94 ashish 5947
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5948
      oprot.writeBool(self.success)
5949
      oprot.writeFieldEnd()
3431 rajveer 5950
    if self.ucx is not None:
94 ashish 5951
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5952
      self.ucx.write(oprot)
5953
      oprot.writeFieldEnd()
5954
    oprot.writeFieldStop()
5955
    oprot.writeStructEnd()
5956
 
3431 rajveer 5957
  def validate(self):
5958
    return
5959
 
5960
 
94 ashish 5961
  def __repr__(self):
5962
    L = ['%s=%r' % (key, value)
5963
      for key, value in self.__dict__.iteritems()]
5964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5965
 
5966
  def __eq__(self, other):
5967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5968
 
5969
  def __ne__(self, other):
5970
    return not (self == other)
5971
 
559 chandransh 5972
class updatePassword_args:
94 ashish 5973
  """
5974
  Attributes:
559 chandransh 5975
   - userid
594 rajveer 5976
   - oldPassword
5977
   - newPassword
94 ashish 5978
  """
5979
 
5980
  thrift_spec = (
5981
    None, # 0
559 chandransh 5982
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5983
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5984
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5985
  )
5986
 
594 rajveer 5987
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5988
    self.userid = userid
594 rajveer 5989
    self.oldPassword = oldPassword
5990
    self.newPassword = newPassword
94 ashish 5991
 
5992
  def read(self, iprot):
5993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5995
      return
5996
    iprot.readStructBegin()
5997
    while True:
5998
      (fname, ftype, fid) = iprot.readFieldBegin()
5999
      if ftype == TType.STOP:
6000
        break
6001
      if fid == 1:
6002
        if ftype == TType.I64:
559 chandransh 6003
          self.userid = iprot.readI64();
94 ashish 6004
        else:
6005
          iprot.skip(ftype)
6006
      elif fid == 2:
559 chandransh 6007
        if ftype == TType.STRING:
594 rajveer 6008
          self.oldPassword = iprot.readString();
94 ashish 6009
        else:
6010
          iprot.skip(ftype)
594 rajveer 6011
      elif fid == 3:
6012
        if ftype == TType.STRING:
6013
          self.newPassword = iprot.readString();
6014
        else:
6015
          iprot.skip(ftype)
94 ashish 6016
      else:
6017
        iprot.skip(ftype)
6018
      iprot.readFieldEnd()
6019
    iprot.readStructEnd()
6020
 
6021
  def write(self, oprot):
6022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6024
      return
559 chandransh 6025
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6026
    if self.userid is not None:
559 chandransh 6027
      oprot.writeFieldBegin('userid', TType.I64, 1)
6028
      oprot.writeI64(self.userid)
94 ashish 6029
      oprot.writeFieldEnd()
3431 rajveer 6030
    if self.oldPassword is not None:
594 rajveer 6031
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6032
      oprot.writeString(self.oldPassword)
94 ashish 6033
      oprot.writeFieldEnd()
3431 rajveer 6034
    if self.newPassword is not None:
594 rajveer 6035
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6036
      oprot.writeString(self.newPassword)
6037
      oprot.writeFieldEnd()
94 ashish 6038
    oprot.writeFieldStop()
6039
    oprot.writeStructEnd()
6040
 
3431 rajveer 6041
  def validate(self):
6042
    return
6043
 
6044
 
94 ashish 6045
  def __repr__(self):
6046
    L = ['%s=%r' % (key, value)
6047
      for key, value in self.__dict__.iteritems()]
6048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6049
 
6050
  def __eq__(self, other):
6051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6052
 
6053
  def __ne__(self, other):
6054
    return not (self == other)
6055
 
559 chandransh 6056
class updatePassword_result:
94 ashish 6057
  """
6058
  Attributes:
6059
   - success
6060
   - ucx
6061
  """
6062
 
6063
  thrift_spec = (
6064
    (0, TType.BOOL, 'success', None, None, ), # 0
6065
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6066
  )
6067
 
6068
  def __init__(self, success=None, ucx=None,):
6069
    self.success = success
6070
    self.ucx = ucx
6071
 
6072
  def read(self, iprot):
6073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6075
      return
6076
    iprot.readStructBegin()
6077
    while True:
6078
      (fname, ftype, fid) = iprot.readFieldBegin()
6079
      if ftype == TType.STOP:
6080
        break
6081
      if fid == 0:
6082
        if ftype == TType.BOOL:
6083
          self.success = iprot.readBool();
6084
        else:
6085
          iprot.skip(ftype)
6086
      elif fid == 1:
6087
        if ftype == TType.STRUCT:
6088
          self.ucx = UserContextException()
6089
          self.ucx.read(iprot)
6090
        else:
6091
          iprot.skip(ftype)
6092
      else:
6093
        iprot.skip(ftype)
6094
      iprot.readFieldEnd()
6095
    iprot.readStructEnd()
6096
 
6097
  def write(self, oprot):
6098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6100
      return
559 chandransh 6101
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6102
    if self.success is not None:
94 ashish 6103
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6104
      oprot.writeBool(self.success)
6105
      oprot.writeFieldEnd()
3431 rajveer 6106
    if self.ucx is not None:
94 ashish 6107
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6108
      self.ucx.write(oprot)
6109
      oprot.writeFieldEnd()
6110
    oprot.writeFieldStop()
6111
    oprot.writeStructEnd()
6112
 
3431 rajveer 6113
  def validate(self):
6114
    return
6115
 
6116
 
94 ashish 6117
  def __repr__(self):
6118
    L = ['%s=%r' % (key, value)
6119
      for key, value in self.__dict__.iteritems()]
6120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6121
 
6122
  def __eq__(self, other):
6123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6124
 
6125
  def __ne__(self, other):
6126
    return not (self == other)
6127
 
581 rajveer 6128
class forgotPassword_args:
6129
  """
6130
  Attributes:
6131
   - email
884 rajveer 6132
   - newPassword
581 rajveer 6133
  """
6134
 
6135
  thrift_spec = (
6136
    None, # 0
6137
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6138
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6139
  )
6140
 
884 rajveer 6141
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6142
    self.email = email
884 rajveer 6143
    self.newPassword = newPassword
581 rajveer 6144
 
6145
  def read(self, iprot):
6146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6148
      return
6149
    iprot.readStructBegin()
6150
    while True:
6151
      (fname, ftype, fid) = iprot.readFieldBegin()
6152
      if ftype == TType.STOP:
6153
        break
6154
      if fid == 1:
6155
        if ftype == TType.STRING:
6156
          self.email = iprot.readString();
6157
        else:
6158
          iprot.skip(ftype)
884 rajveer 6159
      elif fid == 2:
6160
        if ftype == TType.STRING:
6161
          self.newPassword = iprot.readString();
6162
        else:
6163
          iprot.skip(ftype)
581 rajveer 6164
      else:
6165
        iprot.skip(ftype)
6166
      iprot.readFieldEnd()
6167
    iprot.readStructEnd()
6168
 
6169
  def write(self, oprot):
6170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6172
      return
6173
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6174
    if self.email is not None:
581 rajveer 6175
      oprot.writeFieldBegin('email', TType.STRING, 1)
6176
      oprot.writeString(self.email)
6177
      oprot.writeFieldEnd()
3431 rajveer 6178
    if self.newPassword is not None:
884 rajveer 6179
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6180
      oprot.writeString(self.newPassword)
6181
      oprot.writeFieldEnd()
581 rajveer 6182
    oprot.writeFieldStop()
6183
    oprot.writeStructEnd()
6184
 
3431 rajveer 6185
  def validate(self):
6186
    return
6187
 
6188
 
581 rajveer 6189
  def __repr__(self):
6190
    L = ['%s=%r' % (key, value)
6191
      for key, value in self.__dict__.iteritems()]
6192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6193
 
6194
  def __eq__(self, other):
6195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6196
 
6197
  def __ne__(self, other):
6198
    return not (self == other)
6199
 
6200
class forgotPassword_result:
6201
  """
6202
  Attributes:
6203
   - success
6204
   - ucx
6205
  """
6206
 
6207
  thrift_spec = (
6208
    (0, TType.BOOL, 'success', None, None, ), # 0
6209
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6210
  )
6211
 
6212
  def __init__(self, success=None, ucx=None,):
6213
    self.success = success
6214
    self.ucx = ucx
6215
 
6216
  def read(self, iprot):
6217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6219
      return
6220
    iprot.readStructBegin()
6221
    while True:
6222
      (fname, ftype, fid) = iprot.readFieldBegin()
6223
      if ftype == TType.STOP:
6224
        break
6225
      if fid == 0:
6226
        if ftype == TType.BOOL:
6227
          self.success = iprot.readBool();
6228
        else:
6229
          iprot.skip(ftype)
6230
      elif fid == 1:
6231
        if ftype == TType.STRUCT:
6232
          self.ucx = UserContextException()
6233
          self.ucx.read(iprot)
6234
        else:
6235
          iprot.skip(ftype)
6236
      else:
6237
        iprot.skip(ftype)
6238
      iprot.readFieldEnd()
6239
    iprot.readStructEnd()
6240
 
6241
  def write(self, oprot):
6242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6244
      return
6245
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6246
    if self.success is not None:
581 rajveer 6247
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6248
      oprot.writeBool(self.success)
6249
      oprot.writeFieldEnd()
3431 rajveer 6250
    if self.ucx is not None:
581 rajveer 6251
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6252
      self.ucx.write(oprot)
6253
      oprot.writeFieldEnd()
6254
    oprot.writeFieldStop()
6255
    oprot.writeStructEnd()
6256
 
3431 rajveer 6257
  def validate(self):
6258
    return
6259
 
6260
 
581 rajveer 6261
  def __repr__(self):
6262
    L = ['%s=%r' % (key, value)
6263
      for key, value in self.__dict__.iteritems()]
6264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6265
 
6266
  def __eq__(self, other):
6267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6268
 
6269
  def __ne__(self, other):
6270
    return not (self == other)
6271
 
594 rajveer 6272
class getAllAddressesForUser_args:
6273
  """
6274
  Attributes:
6275
   - userId
6276
  """
6277
 
6278
  thrift_spec = (
6279
    None, # 0
6280
    (1, TType.I64, 'userId', None, None, ), # 1
6281
  )
6282
 
6283
  def __init__(self, userId=None,):
6284
    self.userId = userId
6285
 
6286
  def read(self, iprot):
6287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6289
      return
6290
    iprot.readStructBegin()
6291
    while True:
6292
      (fname, ftype, fid) = iprot.readFieldBegin()
6293
      if ftype == TType.STOP:
6294
        break
6295
      if fid == 1:
6296
        if ftype == TType.I64:
6297
          self.userId = iprot.readI64();
6298
        else:
6299
          iprot.skip(ftype)
6300
      else:
6301
        iprot.skip(ftype)
6302
      iprot.readFieldEnd()
6303
    iprot.readStructEnd()
6304
 
6305
  def write(self, oprot):
6306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6308
      return
6309
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6310
    if self.userId is not None:
594 rajveer 6311
      oprot.writeFieldBegin('userId', TType.I64, 1)
6312
      oprot.writeI64(self.userId)
6313
      oprot.writeFieldEnd()
6314
    oprot.writeFieldStop()
6315
    oprot.writeStructEnd()
6316
 
3431 rajveer 6317
  def validate(self):
6318
    return
6319
 
6320
 
594 rajveer 6321
  def __repr__(self):
6322
    L = ['%s=%r' % (key, value)
6323
      for key, value in self.__dict__.iteritems()]
6324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6325
 
6326
  def __eq__(self, other):
6327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6328
 
6329
  def __ne__(self, other):
6330
    return not (self == other)
6331
 
6332
class getAllAddressesForUser_result:
6333
  """
6334
  Attributes:
6335
   - success
6336
   - ucx
6337
  """
6338
 
6339
  thrift_spec = (
6340
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6341
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6342
  )
6343
 
6344
  def __init__(self, success=None, ucx=None,):
6345
    self.success = success
6346
    self.ucx = ucx
6347
 
6348
  def read(self, iprot):
6349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6351
      return
6352
    iprot.readStructBegin()
6353
    while True:
6354
      (fname, ftype, fid) = iprot.readFieldBegin()
6355
      if ftype == TType.STOP:
6356
        break
6357
      if fid == 0:
6358
        if ftype == TType.LIST:
6359
          self.success = []
5326 rajveer 6360
          (_etype61, _size58) = iprot.readListBegin()
6361
          for _i62 in xrange(_size58):
6362
            _elem63 = Address()
6363
            _elem63.read(iprot)
6364
            self.success.append(_elem63)
594 rajveer 6365
          iprot.readListEnd()
6366
        else:
6367
          iprot.skip(ftype)
6368
      elif fid == 1:
6369
        if ftype == TType.STRUCT:
6370
          self.ucx = UserContextException()
6371
          self.ucx.read(iprot)
6372
        else:
6373
          iprot.skip(ftype)
6374
      else:
6375
        iprot.skip(ftype)
6376
      iprot.readFieldEnd()
6377
    iprot.readStructEnd()
6378
 
6379
  def write(self, oprot):
6380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6382
      return
6383
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6384
    if self.success is not None:
594 rajveer 6385
      oprot.writeFieldBegin('success', TType.LIST, 0)
6386
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6387
      for iter64 in self.success:
6388
        iter64.write(oprot)
594 rajveer 6389
      oprot.writeListEnd()
6390
      oprot.writeFieldEnd()
3431 rajveer 6391
    if self.ucx is not None:
594 rajveer 6392
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6393
      self.ucx.write(oprot)
6394
      oprot.writeFieldEnd()
6395
    oprot.writeFieldStop()
6396
    oprot.writeStructEnd()
6397
 
3431 rajveer 6398
  def validate(self):
6399
    return
6400
 
6401
 
594 rajveer 6402
  def __repr__(self):
6403
    L = ['%s=%r' % (key, value)
6404
      for key, value in self.__dict__.iteritems()]
6405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6406
 
6407
  def __eq__(self, other):
6408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6409
 
6410
  def __ne__(self, other):
6411
    return not (self == other)
6412
 
1894 vikas 6413
class getAddressById_args:
6414
  """
6415
  Attributes:
6416
   - addressId
6417
  """
6418
 
6419
  thrift_spec = (
6420
    None, # 0
6421
    (1, TType.I64, 'addressId', None, None, ), # 1
6422
  )
6423
 
6424
  def __init__(self, addressId=None,):
6425
    self.addressId = addressId
6426
 
6427
  def read(self, iprot):
6428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6430
      return
6431
    iprot.readStructBegin()
6432
    while True:
6433
      (fname, ftype, fid) = iprot.readFieldBegin()
6434
      if ftype == TType.STOP:
6435
        break
6436
      if fid == 1:
6437
        if ftype == TType.I64:
6438
          self.addressId = iprot.readI64();
6439
        else:
6440
          iprot.skip(ftype)
6441
      else:
6442
        iprot.skip(ftype)
6443
      iprot.readFieldEnd()
6444
    iprot.readStructEnd()
6445
 
6446
  def write(self, oprot):
6447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6449
      return
6450
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6451
    if self.addressId is not None:
1894 vikas 6452
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6453
      oprot.writeI64(self.addressId)
6454
      oprot.writeFieldEnd()
6455
    oprot.writeFieldStop()
6456
    oprot.writeStructEnd()
6457
 
3431 rajveer 6458
  def validate(self):
6459
    return
6460
 
6461
 
1894 vikas 6462
  def __repr__(self):
6463
    L = ['%s=%r' % (key, value)
6464
      for key, value in self.__dict__.iteritems()]
6465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6466
 
6467
  def __eq__(self, other):
6468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6469
 
6470
  def __ne__(self, other):
6471
    return not (self == other)
6472
 
6473
class getAddressById_result:
6474
  """
6475
  Attributes:
6476
   - success
6477
   - ucx
6478
  """
6479
 
6480
  thrift_spec = (
6481
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6482
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6483
  )
6484
 
6485
  def __init__(self, success=None, ucx=None,):
6486
    self.success = success
6487
    self.ucx = ucx
6488
 
6489
  def read(self, iprot):
6490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6492
      return
6493
    iprot.readStructBegin()
6494
    while True:
6495
      (fname, ftype, fid) = iprot.readFieldBegin()
6496
      if ftype == TType.STOP:
6497
        break
6498
      if fid == 0:
6499
        if ftype == TType.STRUCT:
6500
          self.success = Address()
6501
          self.success.read(iprot)
6502
        else:
6503
          iprot.skip(ftype)
6504
      elif fid == 1:
6505
        if ftype == TType.STRUCT:
6506
          self.ucx = UserContextException()
6507
          self.ucx.read(iprot)
6508
        else:
6509
          iprot.skip(ftype)
6510
      else:
6511
        iprot.skip(ftype)
6512
      iprot.readFieldEnd()
6513
    iprot.readStructEnd()
6514
 
6515
  def write(self, oprot):
6516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6518
      return
6519
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6520
    if self.success is not None:
1894 vikas 6521
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6522
      self.success.write(oprot)
6523
      oprot.writeFieldEnd()
3431 rajveer 6524
    if self.ucx is not None:
1894 vikas 6525
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6526
      self.ucx.write(oprot)
6527
      oprot.writeFieldEnd()
6528
    oprot.writeFieldStop()
6529
    oprot.writeStructEnd()
6530
 
3431 rajveer 6531
  def validate(self):
6532
    return
6533
 
6534
 
1894 vikas 6535
  def __repr__(self):
6536
    L = ['%s=%r' % (key, value)
6537
      for key, value in self.__dict__.iteritems()]
6538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6539
 
6540
  def __eq__(self, other):
6541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6542
 
6543
  def __ne__(self, other):
6544
    return not (self == other)
6545
 
594 rajveer 6546
class getDefaultAddressId_args:
6547
  """
6548
  Attributes:
6549
   - userId
6550
  """
6551
 
6552
  thrift_spec = (
6553
    None, # 0
6554
    (1, TType.I64, 'userId', None, None, ), # 1
6555
  )
6556
 
6557
  def __init__(self, userId=None,):
6558
    self.userId = userId
6559
 
6560
  def read(self, iprot):
6561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6563
      return
6564
    iprot.readStructBegin()
6565
    while True:
6566
      (fname, ftype, fid) = iprot.readFieldBegin()
6567
      if ftype == TType.STOP:
6568
        break
6569
      if fid == 1:
6570
        if ftype == TType.I64:
6571
          self.userId = iprot.readI64();
6572
        else:
6573
          iprot.skip(ftype)
6574
      else:
6575
        iprot.skip(ftype)
6576
      iprot.readFieldEnd()
6577
    iprot.readStructEnd()
6578
 
6579
  def write(self, oprot):
6580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6582
      return
6583
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6584
    if self.userId is not None:
594 rajveer 6585
      oprot.writeFieldBegin('userId', TType.I64, 1)
6586
      oprot.writeI64(self.userId)
6587
      oprot.writeFieldEnd()
6588
    oprot.writeFieldStop()
6589
    oprot.writeStructEnd()
6590
 
3431 rajveer 6591
  def validate(self):
6592
    return
6593
 
6594
 
594 rajveer 6595
  def __repr__(self):
6596
    L = ['%s=%r' % (key, value)
6597
      for key, value in self.__dict__.iteritems()]
6598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6599
 
6600
  def __eq__(self, other):
6601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6602
 
6603
  def __ne__(self, other):
6604
    return not (self == other)
6605
 
6606
class getDefaultAddressId_result:
6607
  """
6608
  Attributes:
6609
   - success
6610
   - ucx
6611
  """
6612
 
6613
  thrift_spec = (
6614
    (0, TType.I64, 'success', None, None, ), # 0
6615
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6616
  )
6617
 
6618
  def __init__(self, success=None, ucx=None,):
6619
    self.success = success
6620
    self.ucx = ucx
6621
 
6622
  def read(self, iprot):
6623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6625
      return
6626
    iprot.readStructBegin()
6627
    while True:
6628
      (fname, ftype, fid) = iprot.readFieldBegin()
6629
      if ftype == TType.STOP:
6630
        break
6631
      if fid == 0:
6632
        if ftype == TType.I64:
6633
          self.success = iprot.readI64();
6634
        else:
6635
          iprot.skip(ftype)
6636
      elif fid == 1:
6637
        if ftype == TType.STRUCT:
6638
          self.ucx = UserContextException()
6639
          self.ucx.read(iprot)
6640
        else:
6641
          iprot.skip(ftype)
6642
      else:
6643
        iprot.skip(ftype)
6644
      iprot.readFieldEnd()
6645
    iprot.readStructEnd()
6646
 
6647
  def write(self, oprot):
6648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6650
      return
6651
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6652
    if self.success is not None:
594 rajveer 6653
      oprot.writeFieldBegin('success', TType.I64, 0)
6654
      oprot.writeI64(self.success)
6655
      oprot.writeFieldEnd()
3431 rajveer 6656
    if self.ucx is not None:
594 rajveer 6657
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6658
      self.ucx.write(oprot)
6659
      oprot.writeFieldEnd()
6660
    oprot.writeFieldStop()
6661
    oprot.writeStructEnd()
6662
 
3431 rajveer 6663
  def validate(self):
6664
    return
6665
 
6666
 
594 rajveer 6667
  def __repr__(self):
6668
    L = ['%s=%r' % (key, value)
6669
      for key, value in self.__dict__.iteritems()]
6670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6671
 
6672
  def __eq__(self, other):
6673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6674
 
6675
  def __ne__(self, other):
6676
    return not (self == other)
6677
 
785 rajveer 6678
class getDefaultPincode_args:
6679
  """
6680
  Attributes:
6681
   - userId
6682
  """
6683
 
6684
  thrift_spec = (
6685
    None, # 0
6686
    (1, TType.I64, 'userId', None, None, ), # 1
6687
  )
6688
 
6689
  def __init__(self, userId=None,):
6690
    self.userId = userId
6691
 
6692
  def read(self, iprot):
6693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6695
      return
6696
    iprot.readStructBegin()
6697
    while True:
6698
      (fname, ftype, fid) = iprot.readFieldBegin()
6699
      if ftype == TType.STOP:
6700
        break
6701
      if fid == 1:
6702
        if ftype == TType.I64:
6703
          self.userId = iprot.readI64();
6704
        else:
6705
          iprot.skip(ftype)
6706
      else:
6707
        iprot.skip(ftype)
6708
      iprot.readFieldEnd()
6709
    iprot.readStructEnd()
6710
 
6711
  def write(self, oprot):
6712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6714
      return
6715
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6716
    if self.userId is not None:
785 rajveer 6717
      oprot.writeFieldBegin('userId', TType.I64, 1)
6718
      oprot.writeI64(self.userId)
6719
      oprot.writeFieldEnd()
6720
    oprot.writeFieldStop()
6721
    oprot.writeStructEnd()
6722
 
3431 rajveer 6723
  def validate(self):
6724
    return
6725
 
6726
 
785 rajveer 6727
  def __repr__(self):
6728
    L = ['%s=%r' % (key, value)
6729
      for key, value in self.__dict__.iteritems()]
6730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6731
 
6732
  def __eq__(self, other):
6733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6734
 
6735
  def __ne__(self, other):
6736
    return not (self == other)
6737
 
6738
class getDefaultPincode_result:
6739
  """
6740
  Attributes:
6741
   - success
6742
   - ucx
6743
  """
6744
 
6745
  thrift_spec = (
6746
    (0, TType.STRING, 'success', None, None, ), # 0
6747
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6748
  )
6749
 
6750
  def __init__(self, success=None, ucx=None,):
6751
    self.success = success
6752
    self.ucx = ucx
6753
 
6754
  def read(self, iprot):
6755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6757
      return
6758
    iprot.readStructBegin()
6759
    while True:
6760
      (fname, ftype, fid) = iprot.readFieldBegin()
6761
      if ftype == TType.STOP:
6762
        break
6763
      if fid == 0:
6764
        if ftype == TType.STRING:
6765
          self.success = iprot.readString();
6766
        else:
6767
          iprot.skip(ftype)
6768
      elif fid == 1:
6769
        if ftype == TType.STRUCT:
6770
          self.ucx = UserContextException()
6771
          self.ucx.read(iprot)
6772
        else:
6773
          iprot.skip(ftype)
6774
      else:
6775
        iprot.skip(ftype)
6776
      iprot.readFieldEnd()
6777
    iprot.readStructEnd()
6778
 
6779
  def write(self, oprot):
6780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6782
      return
6783
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6784
    if self.success is not None:
785 rajveer 6785
      oprot.writeFieldBegin('success', TType.STRING, 0)
6786
      oprot.writeString(self.success)
6787
      oprot.writeFieldEnd()
3431 rajveer 6788
    if self.ucx is not None:
785 rajveer 6789
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6790
      self.ucx.write(oprot)
6791
      oprot.writeFieldEnd()
6792
    oprot.writeFieldStop()
6793
    oprot.writeStructEnd()
6794
 
3431 rajveer 6795
  def validate(self):
6796
    return
6797
 
6798
 
785 rajveer 6799
  def __repr__(self):
6800
    L = ['%s=%r' % (key, value)
6801
      for key, value in self.__dict__.iteritems()]
6802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6803
 
6804
  def __eq__(self, other):
6805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6806
 
6807
  def __ne__(self, other):
6808
    return not (self == other)
6809
 
1274 varun.gupt 6810
class saveUserCommunication_args:
6811
  """
6812
  Attributes:
6813
   - userId
6814
   - replyTo
6815
   - communicationType
6816
   - orderId
6817
   - airwaybillNo
6818
   - productName
6819
   - subject
6820
   - message
6821
  """
6822
 
6823
  thrift_spec = (
6824
    None, # 0
6825
    (1, TType.I64, 'userId', None, None, ), # 1
6826
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6827
    (3, TType.I64, 'communicationType', None, None, ), # 3
6828
    (4, TType.I64, 'orderId', None, None, ), # 4
6829
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6830
    (6, TType.STRING, 'productName', None, None, ), # 6
6831
    (7, TType.STRING, 'subject', None, None, ), # 7
6832
    (8, TType.STRING, 'message', None, None, ), # 8
6833
  )
6834
 
6835
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6836
    self.userId = userId
6837
    self.replyTo = replyTo
6838
    self.communicationType = communicationType
6839
    self.orderId = orderId
6840
    self.airwaybillNo = airwaybillNo
6841
    self.productName = productName
6842
    self.subject = subject
6843
    self.message = message
6844
 
6845
  def read(self, iprot):
6846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6848
      return
6849
    iprot.readStructBegin()
6850
    while True:
6851
      (fname, ftype, fid) = iprot.readFieldBegin()
6852
      if ftype == TType.STOP:
6853
        break
6854
      if fid == 1:
6855
        if ftype == TType.I64:
6856
          self.userId = iprot.readI64();
6857
        else:
6858
          iprot.skip(ftype)
6859
      elif fid == 2:
6860
        if ftype == TType.STRING:
6861
          self.replyTo = iprot.readString();
6862
        else:
6863
          iprot.skip(ftype)
6864
      elif fid == 3:
6865
        if ftype == TType.I64:
6866
          self.communicationType = iprot.readI64();
6867
        else:
6868
          iprot.skip(ftype)
6869
      elif fid == 4:
6870
        if ftype == TType.I64:
6871
          self.orderId = iprot.readI64();
6872
        else:
6873
          iprot.skip(ftype)
6874
      elif fid == 5:
6875
        if ftype == TType.STRING:
6876
          self.airwaybillNo = iprot.readString();
6877
        else:
6878
          iprot.skip(ftype)
6879
      elif fid == 6:
6880
        if ftype == TType.STRING:
6881
          self.productName = iprot.readString();
6882
        else:
6883
          iprot.skip(ftype)
6884
      elif fid == 7:
6885
        if ftype == TType.STRING:
6886
          self.subject = iprot.readString();
6887
        else:
6888
          iprot.skip(ftype)
6889
      elif fid == 8:
6890
        if ftype == TType.STRING:
6891
          self.message = iprot.readString();
6892
        else:
6893
          iprot.skip(ftype)
6894
      else:
6895
        iprot.skip(ftype)
6896
      iprot.readFieldEnd()
6897
    iprot.readStructEnd()
6898
 
6899
  def write(self, oprot):
6900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6902
      return
6903
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6904
    if self.userId is not None:
1274 varun.gupt 6905
      oprot.writeFieldBegin('userId', TType.I64, 1)
6906
      oprot.writeI64(self.userId)
6907
      oprot.writeFieldEnd()
3431 rajveer 6908
    if self.replyTo is not None:
1274 varun.gupt 6909
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6910
      oprot.writeString(self.replyTo)
6911
      oprot.writeFieldEnd()
3431 rajveer 6912
    if self.communicationType is not None:
1274 varun.gupt 6913
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6914
      oprot.writeI64(self.communicationType)
6915
      oprot.writeFieldEnd()
3431 rajveer 6916
    if self.orderId is not None:
1274 varun.gupt 6917
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6918
      oprot.writeI64(self.orderId)
6919
      oprot.writeFieldEnd()
3431 rajveer 6920
    if self.airwaybillNo is not None:
1274 varun.gupt 6921
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6922
      oprot.writeString(self.airwaybillNo)
6923
      oprot.writeFieldEnd()
3431 rajveer 6924
    if self.productName is not None:
1274 varun.gupt 6925
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6926
      oprot.writeString(self.productName)
6927
      oprot.writeFieldEnd()
3431 rajveer 6928
    if self.subject is not None:
1274 varun.gupt 6929
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6930
      oprot.writeString(self.subject)
6931
      oprot.writeFieldEnd()
3431 rajveer 6932
    if self.message is not None:
1274 varun.gupt 6933
      oprot.writeFieldBegin('message', TType.STRING, 8)
6934
      oprot.writeString(self.message)
6935
      oprot.writeFieldEnd()
6936
    oprot.writeFieldStop()
6937
    oprot.writeStructEnd()
6938
 
3431 rajveer 6939
  def validate(self):
6940
    return
6941
 
6942
 
1274 varun.gupt 6943
  def __repr__(self):
6944
    L = ['%s=%r' % (key, value)
6945
      for key, value in self.__dict__.iteritems()]
6946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6947
 
6948
  def __eq__(self, other):
6949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6950
 
6951
  def __ne__(self, other):
6952
    return not (self == other)
6953
 
6954
class saveUserCommunication_result:
6955
  """
6956
  Attributes:
6957
   - success
6958
   - ucx
6959
  """
6960
 
6961
  thrift_spec = (
6962
    (0, TType.BOOL, 'success', None, None, ), # 0
6963
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6964
  )
6965
 
6966
  def __init__(self, success=None, ucx=None,):
6967
    self.success = success
6968
    self.ucx = ucx
6969
 
6970
  def read(self, iprot):
6971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6973
      return
6974
    iprot.readStructBegin()
6975
    while True:
6976
      (fname, ftype, fid) = iprot.readFieldBegin()
6977
      if ftype == TType.STOP:
6978
        break
6979
      if fid == 0:
6980
        if ftype == TType.BOOL:
6981
          self.success = iprot.readBool();
6982
        else:
6983
          iprot.skip(ftype)
6984
      elif fid == 1:
6985
        if ftype == TType.STRUCT:
6986
          self.ucx = UserCommunicationException()
6987
          self.ucx.read(iprot)
6988
        else:
6989
          iprot.skip(ftype)
6990
      else:
6991
        iprot.skip(ftype)
6992
      iprot.readFieldEnd()
6993
    iprot.readStructEnd()
6994
 
6995
  def write(self, oprot):
6996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6998
      return
6999
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7000
    if self.success is not None:
1274 varun.gupt 7001
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7002
      oprot.writeBool(self.success)
7003
      oprot.writeFieldEnd()
3431 rajveer 7004
    if self.ucx is not None:
1274 varun.gupt 7005
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7006
      self.ucx.write(oprot)
7007
      oprot.writeFieldEnd()
7008
    oprot.writeFieldStop()
7009
    oprot.writeStructEnd()
7010
 
3431 rajveer 7011
  def validate(self):
7012
    return
7013
 
7014
 
1274 varun.gupt 7015
  def __repr__(self):
7016
    L = ['%s=%r' % (key, value)
7017
      for key, value in self.__dict__.iteritems()]
7018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7019
 
7020
  def __eq__(self, other):
7021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7022
 
7023
  def __ne__(self, other):
7024
    return not (self == other)
7025
 
1590 varun.gupt 7026
class getUserCommunicationById_args:
7027
  """
7028
  Attributes:
7029
   - id
7030
  """
7031
 
7032
  thrift_spec = (
7033
    None, # 0
7034
    (1, TType.I64, 'id', None, None, ), # 1
7035
  )
7036
 
7037
  def __init__(self, id=None,):
7038
    self.id = id
7039
 
7040
  def read(self, iprot):
7041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7043
      return
7044
    iprot.readStructBegin()
7045
    while True:
7046
      (fname, ftype, fid) = iprot.readFieldBegin()
7047
      if ftype == TType.STOP:
7048
        break
7049
      if fid == 1:
7050
        if ftype == TType.I64:
7051
          self.id = iprot.readI64();
7052
        else:
7053
          iprot.skip(ftype)
7054
      else:
7055
        iprot.skip(ftype)
7056
      iprot.readFieldEnd()
7057
    iprot.readStructEnd()
7058
 
7059
  def write(self, oprot):
7060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7062
      return
7063
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7064
    if self.id is not None:
1590 varun.gupt 7065
      oprot.writeFieldBegin('id', TType.I64, 1)
7066
      oprot.writeI64(self.id)
7067
      oprot.writeFieldEnd()
7068
    oprot.writeFieldStop()
7069
    oprot.writeStructEnd()
7070
 
3431 rajveer 7071
  def validate(self):
7072
    return
7073
 
7074
 
1590 varun.gupt 7075
  def __repr__(self):
7076
    L = ['%s=%r' % (key, value)
7077
      for key, value in self.__dict__.iteritems()]
7078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7079
 
7080
  def __eq__(self, other):
7081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7082
 
7083
  def __ne__(self, other):
7084
    return not (self == other)
7085
 
7086
class getUserCommunicationById_result:
7087
  """
7088
  Attributes:
7089
   - success
7090
   - ucx
7091
  """
7092
 
7093
  thrift_spec = (
7094
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7095
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7096
  )
7097
 
7098
  def __init__(self, success=None, ucx=None,):
7099
    self.success = success
7100
    self.ucx = ucx
7101
 
7102
  def read(self, iprot):
7103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7105
      return
7106
    iprot.readStructBegin()
7107
    while True:
7108
      (fname, ftype, fid) = iprot.readFieldBegin()
7109
      if ftype == TType.STOP:
7110
        break
7111
      if fid == 0:
7112
        if ftype == TType.STRUCT:
7113
          self.success = UserCommunication()
7114
          self.success.read(iprot)
7115
        else:
7116
          iprot.skip(ftype)
7117
      elif fid == 1:
7118
        if ftype == TType.STRUCT:
7119
          self.ucx = UserCommunicationException()
7120
          self.ucx.read(iprot)
7121
        else:
7122
          iprot.skip(ftype)
7123
      else:
7124
        iprot.skip(ftype)
7125
      iprot.readFieldEnd()
7126
    iprot.readStructEnd()
7127
 
7128
  def write(self, oprot):
7129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7131
      return
7132
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7133
    if self.success is not None:
1590 varun.gupt 7134
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7135
      self.success.write(oprot)
7136
      oprot.writeFieldEnd()
3431 rajveer 7137
    if self.ucx is not None:
1590 varun.gupt 7138
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7139
      self.ucx.write(oprot)
7140
      oprot.writeFieldEnd()
7141
    oprot.writeFieldStop()
7142
    oprot.writeStructEnd()
7143
 
3431 rajveer 7144
  def validate(self):
7145
    return
7146
 
7147
 
1590 varun.gupt 7148
  def __repr__(self):
7149
    L = ['%s=%r' % (key, value)
7150
      for key, value in self.__dict__.iteritems()]
7151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7152
 
7153
  def __eq__(self, other):
7154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7155
 
7156
  def __ne__(self, other):
7157
    return not (self == other)
7158
 
7159
class getUserCommunicationByUser_args:
7160
  """
7161
  Attributes:
7162
   - userId
7163
  """
7164
 
7165
  thrift_spec = (
7166
    None, # 0
7167
    (1, TType.I64, 'userId', None, None, ), # 1
7168
  )
7169
 
7170
  def __init__(self, userId=None,):
7171
    self.userId = userId
7172
 
7173
  def read(self, iprot):
7174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7176
      return
7177
    iprot.readStructBegin()
7178
    while True:
7179
      (fname, ftype, fid) = iprot.readFieldBegin()
7180
      if ftype == TType.STOP:
7181
        break
7182
      if fid == 1:
7183
        if ftype == TType.I64:
7184
          self.userId = iprot.readI64();
7185
        else:
7186
          iprot.skip(ftype)
7187
      else:
7188
        iprot.skip(ftype)
7189
      iprot.readFieldEnd()
7190
    iprot.readStructEnd()
7191
 
7192
  def write(self, oprot):
7193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7195
      return
7196
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7197
    if self.userId is not None:
1590 varun.gupt 7198
      oprot.writeFieldBegin('userId', TType.I64, 1)
7199
      oprot.writeI64(self.userId)
7200
      oprot.writeFieldEnd()
7201
    oprot.writeFieldStop()
7202
    oprot.writeStructEnd()
7203
 
3431 rajveer 7204
  def validate(self):
7205
    return
7206
 
7207
 
1590 varun.gupt 7208
  def __repr__(self):
7209
    L = ['%s=%r' % (key, value)
7210
      for key, value in self.__dict__.iteritems()]
7211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7212
 
7213
  def __eq__(self, other):
7214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7215
 
7216
  def __ne__(self, other):
7217
    return not (self == other)
7218
 
7219
class getUserCommunicationByUser_result:
7220
  """
7221
  Attributes:
7222
   - success
7223
   - ucx
7224
  """
7225
 
7226
  thrift_spec = (
7227
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7228
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7229
  )
7230
 
7231
  def __init__(self, success=None, ucx=None,):
7232
    self.success = success
7233
    self.ucx = ucx
7234
 
7235
  def read(self, iprot):
7236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7238
      return
7239
    iprot.readStructBegin()
7240
    while True:
7241
      (fname, ftype, fid) = iprot.readFieldBegin()
7242
      if ftype == TType.STOP:
7243
        break
7244
      if fid == 0:
7245
        if ftype == TType.LIST:
7246
          self.success = []
5326 rajveer 7247
          (_etype68, _size65) = iprot.readListBegin()
7248
          for _i69 in xrange(_size65):
7249
            _elem70 = UserCommunication()
7250
            _elem70.read(iprot)
7251
            self.success.append(_elem70)
1590 varun.gupt 7252
          iprot.readListEnd()
7253
        else:
7254
          iprot.skip(ftype)
7255
      elif fid == 1:
7256
        if ftype == TType.STRUCT:
7257
          self.ucx = UserCommunicationException()
7258
          self.ucx.read(iprot)
7259
        else:
7260
          iprot.skip(ftype)
7261
      else:
7262
        iprot.skip(ftype)
7263
      iprot.readFieldEnd()
7264
    iprot.readStructEnd()
7265
 
7266
  def write(self, oprot):
7267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7269
      return
7270
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7271
    if self.success is not None:
1590 varun.gupt 7272
      oprot.writeFieldBegin('success', TType.LIST, 0)
7273
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7274
      for iter71 in self.success:
7275
        iter71.write(oprot)
1590 varun.gupt 7276
      oprot.writeListEnd()
7277
      oprot.writeFieldEnd()
3431 rajveer 7278
    if self.ucx is not None:
1590 varun.gupt 7279
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7280
      self.ucx.write(oprot)
7281
      oprot.writeFieldEnd()
7282
    oprot.writeFieldStop()
7283
    oprot.writeStructEnd()
7284
 
3431 rajveer 7285
  def validate(self):
7286
    return
7287
 
7288
 
1590 varun.gupt 7289
  def __repr__(self):
7290
    L = ['%s=%r' % (key, value)
7291
      for key, value in self.__dict__.iteritems()]
7292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7293
 
7294
  def __eq__(self, other):
7295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7296
 
7297
  def __ne__(self, other):
7298
    return not (self == other)
7299
 
7300
class getAllUserCommunications_args:
7301
 
7302
  thrift_spec = (
7303
  )
7304
 
7305
  def read(self, iprot):
7306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7308
      return
7309
    iprot.readStructBegin()
7310
    while True:
7311
      (fname, ftype, fid) = iprot.readFieldBegin()
7312
      if ftype == TType.STOP:
7313
        break
7314
      else:
7315
        iprot.skip(ftype)
7316
      iprot.readFieldEnd()
7317
    iprot.readStructEnd()
7318
 
7319
  def write(self, oprot):
7320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7322
      return
7323
    oprot.writeStructBegin('getAllUserCommunications_args')
7324
    oprot.writeFieldStop()
7325
    oprot.writeStructEnd()
7326
 
3431 rajveer 7327
  def validate(self):
7328
    return
7329
 
7330
 
1590 varun.gupt 7331
  def __repr__(self):
7332
    L = ['%s=%r' % (key, value)
7333
      for key, value in self.__dict__.iteritems()]
7334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7335
 
7336
  def __eq__(self, other):
7337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7338
 
7339
  def __ne__(self, other):
7340
    return not (self == other)
7341
 
7342
class getAllUserCommunications_result:
7343
  """
7344
  Attributes:
7345
   - success
7346
   - ucx
7347
  """
7348
 
7349
  thrift_spec = (
7350
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7351
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7352
  )
7353
 
7354
  def __init__(self, success=None, ucx=None,):
7355
    self.success = success
7356
    self.ucx = ucx
7357
 
7358
  def read(self, iprot):
7359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7361
      return
7362
    iprot.readStructBegin()
7363
    while True:
7364
      (fname, ftype, fid) = iprot.readFieldBegin()
7365
      if ftype == TType.STOP:
7366
        break
7367
      if fid == 0:
7368
        if ftype == TType.LIST:
7369
          self.success = []
5326 rajveer 7370
          (_etype75, _size72) = iprot.readListBegin()
7371
          for _i76 in xrange(_size72):
7372
            _elem77 = UserCommunication()
7373
            _elem77.read(iprot)
7374
            self.success.append(_elem77)
1590 varun.gupt 7375
          iprot.readListEnd()
7376
        else:
7377
          iprot.skip(ftype)
7378
      elif fid == 1:
7379
        if ftype == TType.STRUCT:
7380
          self.ucx = UserCommunicationException()
7381
          self.ucx.read(iprot)
7382
        else:
7383
          iprot.skip(ftype)
7384
      else:
7385
        iprot.skip(ftype)
7386
      iprot.readFieldEnd()
7387
    iprot.readStructEnd()
7388
 
7389
  def write(self, oprot):
7390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7392
      return
7393
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7394
    if self.success is not None:
1590 varun.gupt 7395
      oprot.writeFieldBegin('success', TType.LIST, 0)
7396
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7397
      for iter78 in self.success:
7398
        iter78.write(oprot)
1590 varun.gupt 7399
      oprot.writeListEnd()
7400
      oprot.writeFieldEnd()
3431 rajveer 7401
    if self.ucx is not None:
1590 varun.gupt 7402
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7403
      self.ucx.write(oprot)
7404
      oprot.writeFieldEnd()
7405
    oprot.writeFieldStop()
7406
    oprot.writeStructEnd()
7407
 
3431 rajveer 7408
  def validate(self):
7409
    return
7410
 
7411
 
1590 varun.gupt 7412
  def __repr__(self):
7413
    L = ['%s=%r' % (key, value)
7414
      for key, value in self.__dict__.iteritems()]
7415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7416
 
7417
  def __eq__(self, other):
7418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7419
 
7420
  def __ne__(self, other):
7421
    return not (self == other)
7422
 
1845 vikas 7423
class createMasterAffiliate_args:
7424
  """
7425
  Attributes:
7426
   - name
1859 vikas 7427
   - addedOn
1845 vikas 7428
  """
7429
 
7430
  thrift_spec = (
7431
    None, # 0
7432
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7433
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7434
  )
7435
 
1859 vikas 7436
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7437
    self.name = name
1859 vikas 7438
    self.addedOn = addedOn
1845 vikas 7439
 
7440
  def read(self, iprot):
7441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7443
      return
7444
    iprot.readStructBegin()
7445
    while True:
7446
      (fname, ftype, fid) = iprot.readFieldBegin()
7447
      if ftype == TType.STOP:
7448
        break
7449
      if fid == 1:
7450
        if ftype == TType.STRING:
7451
          self.name = iprot.readString();
7452
        else:
7453
          iprot.skip(ftype)
1859 vikas 7454
      elif fid == 2:
7455
        if ftype == TType.I64:
7456
          self.addedOn = iprot.readI64();
7457
        else:
7458
          iprot.skip(ftype)
1845 vikas 7459
      else:
7460
        iprot.skip(ftype)
7461
      iprot.readFieldEnd()
7462
    iprot.readStructEnd()
7463
 
7464
  def write(self, oprot):
7465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7467
      return
7468
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7469
    if self.name is not None:
1845 vikas 7470
      oprot.writeFieldBegin('name', TType.STRING, 1)
7471
      oprot.writeString(self.name)
7472
      oprot.writeFieldEnd()
3431 rajveer 7473
    if self.addedOn is not None:
1859 vikas 7474
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7475
      oprot.writeI64(self.addedOn)
7476
      oprot.writeFieldEnd()
1845 vikas 7477
    oprot.writeFieldStop()
7478
    oprot.writeStructEnd()
7479
 
3431 rajveer 7480
  def validate(self):
7481
    return
7482
 
7483
 
1845 vikas 7484
  def __repr__(self):
7485
    L = ['%s=%r' % (key, value)
7486
      for key, value in self.__dict__.iteritems()]
7487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7488
 
7489
  def __eq__(self, other):
7490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7491
 
7492
  def __ne__(self, other):
7493
    return not (self == other)
7494
 
7495
class createMasterAffiliate_result:
7496
  """
7497
  Attributes:
7498
   - success
7499
   - utx
7500
  """
7501
 
7502
  thrift_spec = (
7503
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7504
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7505
  )
7506
 
7507
  def __init__(self, success=None, utx=None,):
7508
    self.success = success
7509
    self.utx = utx
7510
 
7511
  def read(self, iprot):
7512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7514
      return
7515
    iprot.readStructBegin()
7516
    while True:
7517
      (fname, ftype, fid) = iprot.readFieldBegin()
7518
      if ftype == TType.STOP:
7519
        break
7520
      if fid == 0:
7521
        if ftype == TType.STRUCT:
7522
          self.success = MasterAffiliate()
7523
          self.success.read(iprot)
7524
        else:
7525
          iprot.skip(ftype)
7526
      elif fid == 1:
7527
        if ftype == TType.STRUCT:
1996 vikas 7528
          self.utx = UserAffiliateException()
1845 vikas 7529
          self.utx.read(iprot)
7530
        else:
7531
          iprot.skip(ftype)
7532
      else:
7533
        iprot.skip(ftype)
7534
      iprot.readFieldEnd()
7535
    iprot.readStructEnd()
7536
 
7537
  def write(self, oprot):
7538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7540
      return
7541
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7542
    if self.success is not None:
1845 vikas 7543
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7544
      self.success.write(oprot)
7545
      oprot.writeFieldEnd()
3431 rajveer 7546
    if self.utx is not None:
1845 vikas 7547
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7548
      self.utx.write(oprot)
7549
      oprot.writeFieldEnd()
7550
    oprot.writeFieldStop()
7551
    oprot.writeStructEnd()
7552
 
3431 rajveer 7553
  def validate(self):
7554
    return
7555
 
7556
 
1845 vikas 7557
  def __repr__(self):
7558
    L = ['%s=%r' % (key, value)
7559
      for key, value in self.__dict__.iteritems()]
7560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7561
 
7562
  def __eq__(self, other):
7563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7564
 
7565
  def __ne__(self, other):
7566
    return not (self == other)
7567
 
1899 vikas 7568
class getAllMasterAffiliates_args:
7569
 
7570
  thrift_spec = (
7571
  )
7572
 
7573
  def read(self, iprot):
7574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7576
      return
7577
    iprot.readStructBegin()
7578
    while True:
7579
      (fname, ftype, fid) = iprot.readFieldBegin()
7580
      if ftype == TType.STOP:
7581
        break
7582
      else:
7583
        iprot.skip(ftype)
7584
      iprot.readFieldEnd()
7585
    iprot.readStructEnd()
7586
 
7587
  def write(self, oprot):
7588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7590
      return
7591
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7592
    oprot.writeFieldStop()
7593
    oprot.writeStructEnd()
7594
 
3431 rajveer 7595
  def validate(self):
7596
    return
7597
 
7598
 
1899 vikas 7599
  def __repr__(self):
7600
    L = ['%s=%r' % (key, value)
7601
      for key, value in self.__dict__.iteritems()]
7602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7603
 
7604
  def __eq__(self, other):
7605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7606
 
7607
  def __ne__(self, other):
7608
    return not (self == other)
7609
 
7610
class getAllMasterAffiliates_result:
7611
  """
7612
  Attributes:
7613
   - success
7614
   - utx
7615
  """
7616
 
7617
  thrift_spec = (
7618
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7619
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7620
  )
7621
 
7622
  def __init__(self, success=None, utx=None,):
7623
    self.success = success
7624
    self.utx = utx
7625
 
7626
  def read(self, iprot):
7627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7629
      return
7630
    iprot.readStructBegin()
7631
    while True:
7632
      (fname, ftype, fid) = iprot.readFieldBegin()
7633
      if ftype == TType.STOP:
7634
        break
7635
      if fid == 0:
7636
        if ftype == TType.LIST:
7637
          self.success = []
5326 rajveer 7638
          (_etype82, _size79) = iprot.readListBegin()
7639
          for _i83 in xrange(_size79):
7640
            _elem84 = MasterAffiliate()
7641
            _elem84.read(iprot)
7642
            self.success.append(_elem84)
1899 vikas 7643
          iprot.readListEnd()
7644
        else:
7645
          iprot.skip(ftype)
7646
      elif fid == 1:
7647
        if ftype == TType.STRUCT:
1996 vikas 7648
          self.utx = UserAffiliateException()
1899 vikas 7649
          self.utx.read(iprot)
7650
        else:
7651
          iprot.skip(ftype)
7652
      else:
7653
        iprot.skip(ftype)
7654
      iprot.readFieldEnd()
7655
    iprot.readStructEnd()
7656
 
7657
  def write(self, oprot):
7658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7660
      return
7661
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7662
    if self.success is not None:
1899 vikas 7663
      oprot.writeFieldBegin('success', TType.LIST, 0)
7664
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7665
      for iter85 in self.success:
7666
        iter85.write(oprot)
1899 vikas 7667
      oprot.writeListEnd()
7668
      oprot.writeFieldEnd()
3431 rajveer 7669
    if self.utx is not None:
1899 vikas 7670
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7671
      self.utx.write(oprot)
7672
      oprot.writeFieldEnd()
7673
    oprot.writeFieldStop()
7674
    oprot.writeStructEnd()
7675
 
3431 rajveer 7676
  def validate(self):
7677
    return
7678
 
7679
 
1899 vikas 7680
  def __repr__(self):
7681
    L = ['%s=%r' % (key, value)
7682
      for key, value in self.__dict__.iteritems()]
7683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7684
 
7685
  def __eq__(self, other):
7686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7687
 
7688
  def __ne__(self, other):
7689
    return not (self == other)
7690
 
1845 vikas 7691
class getMasterAffiliateById_args:
7692
  """
7693
  Attributes:
7694
   - id
7695
  """
7696
 
7697
  thrift_spec = (
7698
    None, # 0
7699
    (1, TType.I64, 'id', None, None, ), # 1
7700
  )
7701
 
7702
  def __init__(self, id=None,):
7703
    self.id = id
7704
 
7705
  def read(self, iprot):
7706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7708
      return
7709
    iprot.readStructBegin()
7710
    while True:
7711
      (fname, ftype, fid) = iprot.readFieldBegin()
7712
      if ftype == TType.STOP:
7713
        break
7714
      if fid == 1:
7715
        if ftype == TType.I64:
7716
          self.id = iprot.readI64();
7717
        else:
7718
          iprot.skip(ftype)
7719
      else:
7720
        iprot.skip(ftype)
7721
      iprot.readFieldEnd()
7722
    iprot.readStructEnd()
7723
 
7724
  def write(self, oprot):
7725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7727
      return
7728
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7729
    if self.id is not None:
1845 vikas 7730
      oprot.writeFieldBegin('id', TType.I64, 1)
7731
      oprot.writeI64(self.id)
7732
      oprot.writeFieldEnd()
7733
    oprot.writeFieldStop()
7734
    oprot.writeStructEnd()
7735
 
3431 rajveer 7736
  def validate(self):
7737
    return
7738
 
7739
 
1845 vikas 7740
  def __repr__(self):
7741
    L = ['%s=%r' % (key, value)
7742
      for key, value in self.__dict__.iteritems()]
7743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7744
 
7745
  def __eq__(self, other):
7746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7747
 
7748
  def __ne__(self, other):
7749
    return not (self == other)
7750
 
7751
class getMasterAffiliateById_result:
7752
  """
7753
  Attributes:
7754
   - success
7755
   - utx
7756
  """
7757
 
7758
  thrift_spec = (
7759
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7760
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7761
  )
7762
 
7763
  def __init__(self, success=None, utx=None,):
7764
    self.success = success
7765
    self.utx = utx
7766
 
7767
  def read(self, iprot):
7768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7770
      return
7771
    iprot.readStructBegin()
7772
    while True:
7773
      (fname, ftype, fid) = iprot.readFieldBegin()
7774
      if ftype == TType.STOP:
7775
        break
7776
      if fid == 0:
7777
        if ftype == TType.STRUCT:
7778
          self.success = MasterAffiliate()
7779
          self.success.read(iprot)
7780
        else:
7781
          iprot.skip(ftype)
7782
      elif fid == 1:
7783
        if ftype == TType.STRUCT:
1996 vikas 7784
          self.utx = UserAffiliateException()
1845 vikas 7785
          self.utx.read(iprot)
7786
        else:
7787
          iprot.skip(ftype)
7788
      else:
7789
        iprot.skip(ftype)
7790
      iprot.readFieldEnd()
7791
    iprot.readStructEnd()
7792
 
7793
  def write(self, oprot):
7794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7796
      return
7797
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7798
    if self.success is not None:
1845 vikas 7799
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7800
      self.success.write(oprot)
7801
      oprot.writeFieldEnd()
3431 rajveer 7802
    if self.utx is not None:
1845 vikas 7803
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7804
      self.utx.write(oprot)
7805
      oprot.writeFieldEnd()
7806
    oprot.writeFieldStop()
7807
    oprot.writeStructEnd()
7808
 
3431 rajveer 7809
  def validate(self):
7810
    return
7811
 
7812
 
1845 vikas 7813
  def __repr__(self):
7814
    L = ['%s=%r' % (key, value)
7815
      for key, value in self.__dict__.iteritems()]
7816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7817
 
7818
  def __eq__(self, other):
7819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7820
 
7821
  def __ne__(self, other):
7822
    return not (self == other)
7823
 
7824
class getMasterAffiliateByName_args:
7825
  """
7826
  Attributes:
7827
   - name
7828
  """
7829
 
7830
  thrift_spec = (
7831
    None, # 0
7832
    (1, TType.STRING, 'name', None, None, ), # 1
7833
  )
7834
 
7835
  def __init__(self, name=None,):
7836
    self.name = name
7837
 
7838
  def read(self, iprot):
7839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7841
      return
7842
    iprot.readStructBegin()
7843
    while True:
7844
      (fname, ftype, fid) = iprot.readFieldBegin()
7845
      if ftype == TType.STOP:
7846
        break
7847
      if fid == 1:
7848
        if ftype == TType.STRING:
7849
          self.name = iprot.readString();
7850
        else:
7851
          iprot.skip(ftype)
7852
      else:
7853
        iprot.skip(ftype)
7854
      iprot.readFieldEnd()
7855
    iprot.readStructEnd()
7856
 
7857
  def write(self, oprot):
7858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7860
      return
7861
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7862
    if self.name is not None:
1845 vikas 7863
      oprot.writeFieldBegin('name', TType.STRING, 1)
7864
      oprot.writeString(self.name)
7865
      oprot.writeFieldEnd()
7866
    oprot.writeFieldStop()
7867
    oprot.writeStructEnd()
7868
 
3431 rajveer 7869
  def validate(self):
7870
    return
7871
 
7872
 
1845 vikas 7873
  def __repr__(self):
7874
    L = ['%s=%r' % (key, value)
7875
      for key, value in self.__dict__.iteritems()]
7876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7877
 
7878
  def __eq__(self, other):
7879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7880
 
7881
  def __ne__(self, other):
7882
    return not (self == other)
7883
 
7884
class getMasterAffiliateByName_result:
7885
  """
7886
  Attributes:
7887
   - success
7888
   - utx
7889
  """
7890
 
7891
  thrift_spec = (
7892
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7893
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7894
  )
7895
 
7896
  def __init__(self, success=None, utx=None,):
7897
    self.success = success
7898
    self.utx = utx
7899
 
7900
  def read(self, iprot):
7901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7903
      return
7904
    iprot.readStructBegin()
7905
    while True:
7906
      (fname, ftype, fid) = iprot.readFieldBegin()
7907
      if ftype == TType.STOP:
7908
        break
7909
      if fid == 0:
7910
        if ftype == TType.STRUCT:
7911
          self.success = MasterAffiliate()
7912
          self.success.read(iprot)
7913
        else:
7914
          iprot.skip(ftype)
7915
      elif fid == 1:
7916
        if ftype == TType.STRUCT:
1996 vikas 7917
          self.utx = UserAffiliateException()
1845 vikas 7918
          self.utx.read(iprot)
7919
        else:
7920
          iprot.skip(ftype)
7921
      else:
7922
        iprot.skip(ftype)
7923
      iprot.readFieldEnd()
7924
    iprot.readStructEnd()
7925
 
7926
  def write(self, oprot):
7927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7929
      return
7930
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7931
    if self.success is not None:
1845 vikas 7932
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7933
      self.success.write(oprot)
7934
      oprot.writeFieldEnd()
3431 rajveer 7935
    if self.utx is not None:
1845 vikas 7936
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7937
      self.utx.write(oprot)
7938
      oprot.writeFieldEnd()
7939
    oprot.writeFieldStop()
7940
    oprot.writeStructEnd()
7941
 
3431 rajveer 7942
  def validate(self):
7943
    return
7944
 
7945
 
1845 vikas 7946
  def __repr__(self):
7947
    L = ['%s=%r' % (key, value)
7948
      for key, value in self.__dict__.iteritems()]
7949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7950
 
7951
  def __eq__(self, other):
7952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7953
 
7954
  def __ne__(self, other):
7955
    return not (self == other)
7956
 
7957
class createAffiliate_args:
7958
  """
7959
  Attributes:
7960
   - name
7961
   - url
7962
   - masterAffiliateId
1859 vikas 7963
   - addedOn
1845 vikas 7964
  """
7965
 
7966
  thrift_spec = (
7967
    None, # 0
7968
    (1, TType.STRING, 'name', None, None, ), # 1
7969
    (2, TType.STRING, 'url', None, None, ), # 2
7970
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7971
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7972
  )
7973
 
1859 vikas 7974
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7975
    self.name = name
7976
    self.url = url
7977
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7978
    self.addedOn = addedOn
1845 vikas 7979
 
7980
  def read(self, iprot):
7981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7983
      return
7984
    iprot.readStructBegin()
7985
    while True:
7986
      (fname, ftype, fid) = iprot.readFieldBegin()
7987
      if ftype == TType.STOP:
7988
        break
7989
      if fid == 1:
7990
        if ftype == TType.STRING:
7991
          self.name = iprot.readString();
7992
        else:
7993
          iprot.skip(ftype)
7994
      elif fid == 2:
7995
        if ftype == TType.STRING:
7996
          self.url = iprot.readString();
7997
        else:
7998
          iprot.skip(ftype)
7999
      elif fid == 3:
8000
        if ftype == TType.I64:
8001
          self.masterAffiliateId = iprot.readI64();
8002
        else:
8003
          iprot.skip(ftype)
1859 vikas 8004
      elif fid == 4:
8005
        if ftype == TType.I64:
8006
          self.addedOn = iprot.readI64();
8007
        else:
8008
          iprot.skip(ftype)
1845 vikas 8009
      else:
8010
        iprot.skip(ftype)
8011
      iprot.readFieldEnd()
8012
    iprot.readStructEnd()
8013
 
8014
  def write(self, oprot):
8015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8017
      return
8018
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8019
    if self.name is not None:
1845 vikas 8020
      oprot.writeFieldBegin('name', TType.STRING, 1)
8021
      oprot.writeString(self.name)
8022
      oprot.writeFieldEnd()
3431 rajveer 8023
    if self.url is not None:
1845 vikas 8024
      oprot.writeFieldBegin('url', TType.STRING, 2)
8025
      oprot.writeString(self.url)
8026
      oprot.writeFieldEnd()
3431 rajveer 8027
    if self.masterAffiliateId is not None:
1845 vikas 8028
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8029
      oprot.writeI64(self.masterAffiliateId)
8030
      oprot.writeFieldEnd()
3431 rajveer 8031
    if self.addedOn is not None:
1859 vikas 8032
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8033
      oprot.writeI64(self.addedOn)
8034
      oprot.writeFieldEnd()
1845 vikas 8035
    oprot.writeFieldStop()
8036
    oprot.writeStructEnd()
8037
 
3431 rajveer 8038
  def validate(self):
8039
    return
8040
 
8041
 
1845 vikas 8042
  def __repr__(self):
8043
    L = ['%s=%r' % (key, value)
8044
      for key, value in self.__dict__.iteritems()]
8045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8046
 
8047
  def __eq__(self, other):
8048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8049
 
8050
  def __ne__(self, other):
8051
    return not (self == other)
8052
 
8053
class createAffiliate_result:
8054
  """
8055
  Attributes:
8056
   - success
8057
   - utx
8058
  """
8059
 
8060
  thrift_spec = (
8061
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8062
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8063
  )
8064
 
8065
  def __init__(self, success=None, utx=None,):
8066
    self.success = success
8067
    self.utx = utx
8068
 
8069
  def read(self, iprot):
8070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8072
      return
8073
    iprot.readStructBegin()
8074
    while True:
8075
      (fname, ftype, fid) = iprot.readFieldBegin()
8076
      if ftype == TType.STOP:
8077
        break
8078
      if fid == 0:
8079
        if ftype == TType.STRUCT:
8080
          self.success = Affiliate()
8081
          self.success.read(iprot)
8082
        else:
8083
          iprot.skip(ftype)
8084
      elif fid == 1:
8085
        if ftype == TType.STRUCT:
1996 vikas 8086
          self.utx = UserAffiliateException()
1845 vikas 8087
          self.utx.read(iprot)
8088
        else:
8089
          iprot.skip(ftype)
8090
      else:
8091
        iprot.skip(ftype)
8092
      iprot.readFieldEnd()
8093
    iprot.readStructEnd()
8094
 
8095
  def write(self, oprot):
8096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8098
      return
8099
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8100
    if self.success is not None:
1845 vikas 8101
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8102
      self.success.write(oprot)
8103
      oprot.writeFieldEnd()
3431 rajveer 8104
    if self.utx is not None:
1845 vikas 8105
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8106
      self.utx.write(oprot)
8107
      oprot.writeFieldEnd()
8108
    oprot.writeFieldStop()
8109
    oprot.writeStructEnd()
8110
 
3431 rajveer 8111
  def validate(self):
8112
    return
8113
 
8114
 
1845 vikas 8115
  def __repr__(self):
8116
    L = ['%s=%r' % (key, value)
8117
      for key, value in self.__dict__.iteritems()]
8118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8119
 
8120
  def __eq__(self, other):
8121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8122
 
8123
  def __ne__(self, other):
8124
    return not (self == other)
8125
 
8126
class getAffiliateById_args:
8127
  """
8128
  Attributes:
8129
   - id
8130
  """
8131
 
8132
  thrift_spec = (
8133
    None, # 0
8134
    (1, TType.I64, 'id', None, None, ), # 1
8135
  )
8136
 
8137
  def __init__(self, id=None,):
8138
    self.id = id
8139
 
8140
  def read(self, iprot):
8141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8143
      return
8144
    iprot.readStructBegin()
8145
    while True:
8146
      (fname, ftype, fid) = iprot.readFieldBegin()
8147
      if ftype == TType.STOP:
8148
        break
8149
      if fid == 1:
8150
        if ftype == TType.I64:
8151
          self.id = iprot.readI64();
8152
        else:
8153
          iprot.skip(ftype)
8154
      else:
8155
        iprot.skip(ftype)
8156
      iprot.readFieldEnd()
8157
    iprot.readStructEnd()
8158
 
8159
  def write(self, oprot):
8160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8162
      return
8163
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8164
    if self.id is not None:
1845 vikas 8165
      oprot.writeFieldBegin('id', TType.I64, 1)
8166
      oprot.writeI64(self.id)
8167
      oprot.writeFieldEnd()
8168
    oprot.writeFieldStop()
8169
    oprot.writeStructEnd()
8170
 
3431 rajveer 8171
  def validate(self):
8172
    return
8173
 
8174
 
1845 vikas 8175
  def __repr__(self):
8176
    L = ['%s=%r' % (key, value)
8177
      for key, value in self.__dict__.iteritems()]
8178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8179
 
8180
  def __eq__(self, other):
8181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8182
 
8183
  def __ne__(self, other):
8184
    return not (self == other)
8185
 
8186
class getAffiliateById_result:
8187
  """
8188
  Attributes:
8189
   - success
8190
   - utx
8191
  """
8192
 
8193
  thrift_spec = (
8194
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8195
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8196
  )
8197
 
8198
  def __init__(self, success=None, utx=None,):
8199
    self.success = success
8200
    self.utx = utx
8201
 
8202
  def read(self, iprot):
8203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8205
      return
8206
    iprot.readStructBegin()
8207
    while True:
8208
      (fname, ftype, fid) = iprot.readFieldBegin()
8209
      if ftype == TType.STOP:
8210
        break
8211
      if fid == 0:
8212
        if ftype == TType.STRUCT:
8213
          self.success = Affiliate()
8214
          self.success.read(iprot)
8215
        else:
8216
          iprot.skip(ftype)
8217
      elif fid == 1:
8218
        if ftype == TType.STRUCT:
1996 vikas 8219
          self.utx = UserAffiliateException()
1845 vikas 8220
          self.utx.read(iprot)
8221
        else:
8222
          iprot.skip(ftype)
8223
      else:
8224
        iprot.skip(ftype)
8225
      iprot.readFieldEnd()
8226
    iprot.readStructEnd()
8227
 
8228
  def write(self, oprot):
8229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8231
      return
8232
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8233
    if self.success is not None:
1845 vikas 8234
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8235
      self.success.write(oprot)
8236
      oprot.writeFieldEnd()
3431 rajveer 8237
    if self.utx is not None:
1845 vikas 8238
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8239
      self.utx.write(oprot)
8240
      oprot.writeFieldEnd()
8241
    oprot.writeFieldStop()
8242
    oprot.writeStructEnd()
8243
 
3431 rajveer 8244
  def validate(self):
8245
    return
8246
 
8247
 
1845 vikas 8248
  def __repr__(self):
8249
    L = ['%s=%r' % (key, value)
8250
      for key, value in self.__dict__.iteritems()]
8251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8252
 
8253
  def __eq__(self, other):
8254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8255
 
8256
  def __ne__(self, other):
8257
    return not (self == other)
8258
 
8259
class getAffiliateByName_args:
8260
  """
8261
  Attributes:
8262
   - name
8263
  """
8264
 
8265
  thrift_spec = (
8266
    None, # 0
8267
    (1, TType.STRING, 'name', None, None, ), # 1
8268
  )
8269
 
8270
  def __init__(self, name=None,):
8271
    self.name = name
8272
 
8273
  def read(self, iprot):
8274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8276
      return
8277
    iprot.readStructBegin()
8278
    while True:
8279
      (fname, ftype, fid) = iprot.readFieldBegin()
8280
      if ftype == TType.STOP:
8281
        break
8282
      if fid == 1:
8283
        if ftype == TType.STRING:
8284
          self.name = iprot.readString();
8285
        else:
8286
          iprot.skip(ftype)
8287
      else:
8288
        iprot.skip(ftype)
8289
      iprot.readFieldEnd()
8290
    iprot.readStructEnd()
8291
 
8292
  def write(self, oprot):
8293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8295
      return
8296
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8297
    if self.name is not None:
1845 vikas 8298
      oprot.writeFieldBegin('name', TType.STRING, 1)
8299
      oprot.writeString(self.name)
8300
      oprot.writeFieldEnd()
8301
    oprot.writeFieldStop()
8302
    oprot.writeStructEnd()
8303
 
3431 rajveer 8304
  def validate(self):
8305
    return
8306
 
8307
 
1845 vikas 8308
  def __repr__(self):
8309
    L = ['%s=%r' % (key, value)
8310
      for key, value in self.__dict__.iteritems()]
8311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8312
 
8313
  def __eq__(self, other):
8314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8315
 
8316
  def __ne__(self, other):
8317
    return not (self == other)
8318
 
8319
class getAffiliateByName_result:
8320
  """
8321
  Attributes:
8322
   - success
8323
   - utx
8324
  """
8325
 
8326
  thrift_spec = (
8327
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8328
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8329
  )
8330
 
8331
  def __init__(self, success=None, utx=None,):
8332
    self.success = success
8333
    self.utx = utx
8334
 
8335
  def read(self, iprot):
8336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8338
      return
8339
    iprot.readStructBegin()
8340
    while True:
8341
      (fname, ftype, fid) = iprot.readFieldBegin()
8342
      if ftype == TType.STOP:
8343
        break
8344
      if fid == 0:
8345
        if ftype == TType.STRUCT:
8346
          self.success = Affiliate()
8347
          self.success.read(iprot)
8348
        else:
8349
          iprot.skip(ftype)
8350
      elif fid == 1:
8351
        if ftype == TType.STRUCT:
1996 vikas 8352
          self.utx = UserAffiliateException()
1845 vikas 8353
          self.utx.read(iprot)
8354
        else:
8355
          iprot.skip(ftype)
8356
      else:
8357
        iprot.skip(ftype)
8358
      iprot.readFieldEnd()
8359
    iprot.readStructEnd()
8360
 
8361
  def write(self, oprot):
8362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8364
      return
8365
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8366
    if self.success is not None:
1845 vikas 8367
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8368
      self.success.write(oprot)
8369
      oprot.writeFieldEnd()
3431 rajveer 8370
    if self.utx is not None:
1845 vikas 8371
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8372
      self.utx.write(oprot)
8373
      oprot.writeFieldEnd()
8374
    oprot.writeFieldStop()
8375
    oprot.writeStructEnd()
8376
 
3431 rajveer 8377
  def validate(self):
8378
    return
8379
 
8380
 
1845 vikas 8381
  def __repr__(self):
8382
    L = ['%s=%r' % (key, value)
8383
      for key, value in self.__dict__.iteritems()]
8384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8385
 
8386
  def __eq__(self, other):
8387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8388
 
8389
  def __ne__(self, other):
8390
    return not (self == other)
8391
 
1996 vikas 8392
class getTrackerById_args:
1845 vikas 8393
  """
8394
  Attributes:
8395
   - id
8396
  """
8397
 
8398
  thrift_spec = (
8399
    None, # 0
8400
    (1, TType.I64, 'id', None, None, ), # 1
8401
  )
8402
 
8403
  def __init__(self, id=None,):
8404
    self.id = id
8405
 
8406
  def read(self, iprot):
8407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8409
      return
8410
    iprot.readStructBegin()
8411
    while True:
8412
      (fname, ftype, fid) = iprot.readFieldBegin()
8413
      if ftype == TType.STOP:
8414
        break
8415
      if fid == 1:
8416
        if ftype == TType.I64:
8417
          self.id = iprot.readI64();
8418
        else:
8419
          iprot.skip(ftype)
8420
      else:
8421
        iprot.skip(ftype)
8422
      iprot.readFieldEnd()
8423
    iprot.readStructEnd()
8424
 
8425
  def write(self, oprot):
8426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8428
      return
1996 vikas 8429
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8430
    if self.id is not None:
1845 vikas 8431
      oprot.writeFieldBegin('id', TType.I64, 1)
8432
      oprot.writeI64(self.id)
8433
      oprot.writeFieldEnd()
8434
    oprot.writeFieldStop()
8435
    oprot.writeStructEnd()
8436
 
3431 rajveer 8437
  def validate(self):
8438
    return
8439
 
8440
 
1845 vikas 8441
  def __repr__(self):
8442
    L = ['%s=%r' % (key, value)
8443
      for key, value in self.__dict__.iteritems()]
8444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8445
 
8446
  def __eq__(self, other):
8447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8448
 
8449
  def __ne__(self, other):
8450
    return not (self == other)
8451
 
8452
class getTrackerById_result:
8453
  """
8454
  Attributes:
8455
   - success
8456
   - utx
8457
  """
8458
 
8459
  thrift_spec = (
8460
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8461
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8462
  )
8463
 
8464
  def __init__(self, success=None, utx=None,):
8465
    self.success = success
8466
    self.utx = utx
8467
 
8468
  def read(self, iprot):
8469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8471
      return
8472
    iprot.readStructBegin()
8473
    while True:
8474
      (fname, ftype, fid) = iprot.readFieldBegin()
8475
      if ftype == TType.STOP:
8476
        break
8477
      if fid == 0:
8478
        if ftype == TType.STRUCT:
8479
          self.success = Tracker()
8480
          self.success.read(iprot)
8481
        else:
8482
          iprot.skip(ftype)
8483
      elif fid == 1:
8484
        if ftype == TType.STRUCT:
1996 vikas 8485
          self.utx = UserAffiliateException()
1845 vikas 8486
          self.utx.read(iprot)
8487
        else:
8488
          iprot.skip(ftype)
8489
      else:
8490
        iprot.skip(ftype)
8491
      iprot.readFieldEnd()
8492
    iprot.readStructEnd()
8493
 
8494
  def write(self, oprot):
8495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8497
      return
8498
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8499
    if self.success is not None:
1845 vikas 8500
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8501
      self.success.write(oprot)
8502
      oprot.writeFieldEnd()
3431 rajveer 8503
    if self.utx is not None:
1845 vikas 8504
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8505
      self.utx.write(oprot)
8506
      oprot.writeFieldEnd()
8507
    oprot.writeFieldStop()
8508
    oprot.writeStructEnd()
8509
 
3431 rajveer 8510
  def validate(self):
8511
    return
8512
 
8513
 
1845 vikas 8514
  def __repr__(self):
8515
    L = ['%s=%r' % (key, value)
8516
      for key, value in self.__dict__.iteritems()]
8517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8518
 
8519
  def __eq__(self, other):
8520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8521
 
8522
  def __ne__(self, other):
8523
    return not (self == other)
8524
 
1996 vikas 8525
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8526
  """
8527
  Attributes:
1996 vikas 8528
   - id
1845 vikas 8529
  """
8530
 
8531
  thrift_spec = (
8532
    None, # 0
1996 vikas 8533
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8534
  )
8535
 
1996 vikas 8536
  def __init__(self, id=None,):
8537
    self.id = id
1845 vikas 8538
 
8539
  def read(self, iprot):
8540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8542
      return
8543
    iprot.readStructBegin()
8544
    while True:
8545
      (fname, ftype, fid) = iprot.readFieldBegin()
8546
      if ftype == TType.STOP:
8547
        break
8548
      if fid == 1:
8549
        if ftype == TType.I64:
1996 vikas 8550
          self.id = iprot.readI64();
1845 vikas 8551
        else:
8552
          iprot.skip(ftype)
8553
      else:
8554
        iprot.skip(ftype)
8555
      iprot.readFieldEnd()
8556
    iprot.readStructEnd()
8557
 
8558
  def write(self, oprot):
8559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8561
      return
1996 vikas 8562
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8563
    if self.id is not None:
1996 vikas 8564
      oprot.writeFieldBegin('id', TType.I64, 1)
8565
      oprot.writeI64(self.id)
1845 vikas 8566
      oprot.writeFieldEnd()
8567
    oprot.writeFieldStop()
8568
    oprot.writeStructEnd()
8569
 
3431 rajveer 8570
  def validate(self):
8571
    return
8572
 
8573
 
1845 vikas 8574
  def __repr__(self):
8575
    L = ['%s=%r' % (key, value)
8576
      for key, value in self.__dict__.iteritems()]
8577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8578
 
8579
  def __eq__(self, other):
8580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8581
 
8582
  def __ne__(self, other):
8583
    return not (self == other)
8584
 
1996 vikas 8585
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8586
  """
8587
  Attributes:
8588
   - success
8589
   - utx
8590
  """
8591
 
8592
  thrift_spec = (
1996 vikas 8593
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8594
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8595
  )
8596
 
8597
  def __init__(self, success=None, utx=None,):
8598
    self.success = success
8599
    self.utx = utx
8600
 
8601
  def read(self, iprot):
8602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8604
      return
8605
    iprot.readStructBegin()
8606
    while True:
8607
      (fname, ftype, fid) = iprot.readFieldBegin()
8608
      if ftype == TType.STOP:
8609
        break
8610
      if fid == 0:
8611
        if ftype == TType.LIST:
8612
          self.success = []
5326 rajveer 8613
          (_etype89, _size86) = iprot.readListBegin()
8614
          for _i90 in xrange(_size86):
8615
            _elem91 = Affiliate()
8616
            _elem91.read(iprot)
8617
            self.success.append(_elem91)
1845 vikas 8618
          iprot.readListEnd()
8619
        else:
8620
          iprot.skip(ftype)
8621
      elif fid == 1:
8622
        if ftype == TType.STRUCT:
1996 vikas 8623
          self.utx = UserAffiliateException()
1845 vikas 8624
          self.utx.read(iprot)
8625
        else:
8626
          iprot.skip(ftype)
8627
      else:
8628
        iprot.skip(ftype)
8629
      iprot.readFieldEnd()
8630
    iprot.readStructEnd()
8631
 
8632
  def write(self, oprot):
8633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8635
      return
1996 vikas 8636
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8637
    if self.success is not None:
1845 vikas 8638
      oprot.writeFieldBegin('success', TType.LIST, 0)
8639
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8640
      for iter92 in self.success:
8641
        iter92.write(oprot)
1845 vikas 8642
      oprot.writeListEnd()
8643
      oprot.writeFieldEnd()
3431 rajveer 8644
    if self.utx is not None:
1845 vikas 8645
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8646
      self.utx.write(oprot)
8647
      oprot.writeFieldEnd()
8648
    oprot.writeFieldStop()
8649
    oprot.writeStructEnd()
8650
 
3431 rajveer 8651
  def validate(self):
8652
    return
8653
 
8654
 
1845 vikas 8655
  def __repr__(self):
8656
    L = ['%s=%r' % (key, value)
8657
      for key, value in self.__dict__.iteritems()]
8658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8659
 
8660
  def __eq__(self, other):
8661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8662
 
8663
  def __ne__(self, other):
8664
    return not (self == other)
8665
 
8666
class addTrackLog_args:
8667
  """
8668
  Attributes:
1996 vikas 8669
   - affiliateId
1845 vikas 8670
   - userId
8671
   - event
8672
   - url
8673
   - data
1859 vikas 8674
   - addedOn
1845 vikas 8675
  """
8676
 
8677
  thrift_spec = (
8678
    None, # 0
1996 vikas 8679
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8680
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8681
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8682
    (4, TType.STRING, 'url', None, None, ), # 4
8683
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8684
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8685
  )
8686
 
1996 vikas 8687
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8688
    self.affiliateId = affiliateId
1845 vikas 8689
    self.userId = userId
8690
    self.event = event
8691
    self.url = url
8692
    self.data = data
1859 vikas 8693
    self.addedOn = addedOn
1845 vikas 8694
 
8695
  def read(self, iprot):
8696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8698
      return
8699
    iprot.readStructBegin()
8700
    while True:
8701
      (fname, ftype, fid) = iprot.readFieldBegin()
8702
      if ftype == TType.STOP:
8703
        break
8704
      if fid == 1:
8705
        if ftype == TType.I64:
1996 vikas 8706
          self.affiliateId = iprot.readI64();
1845 vikas 8707
        else:
8708
          iprot.skip(ftype)
8709
      elif fid == 2:
8710
        if ftype == TType.I64:
8711
          self.userId = iprot.readI64();
8712
        else:
8713
          iprot.skip(ftype)
8714
      elif fid == 3:
3378 vikas 8715
        if ftype == TType.I32:
8716
          self.event = iprot.readI32();
1845 vikas 8717
        else:
8718
          iprot.skip(ftype)
8719
      elif fid == 4:
8720
        if ftype == TType.STRING:
8721
          self.url = iprot.readString();
8722
        else:
8723
          iprot.skip(ftype)
8724
      elif fid == 5:
8725
        if ftype == TType.STRING:
8726
          self.data = iprot.readString();
8727
        else:
8728
          iprot.skip(ftype)
1859 vikas 8729
      elif fid == 6:
8730
        if ftype == TType.I64:
8731
          self.addedOn = iprot.readI64();
8732
        else:
8733
          iprot.skip(ftype)
1845 vikas 8734
      else:
8735
        iprot.skip(ftype)
8736
      iprot.readFieldEnd()
8737
    iprot.readStructEnd()
8738
 
8739
  def write(self, oprot):
8740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8742
      return
8743
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8744
    if self.affiliateId is not None:
1996 vikas 8745
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8746
      oprot.writeI64(self.affiliateId)
1845 vikas 8747
      oprot.writeFieldEnd()
3431 rajveer 8748
    if self.userId is not None:
1845 vikas 8749
      oprot.writeFieldBegin('userId', TType.I64, 2)
8750
      oprot.writeI64(self.userId)
8751
      oprot.writeFieldEnd()
3431 rajveer 8752
    if self.event is not None:
3378 vikas 8753
      oprot.writeFieldBegin('event', TType.I32, 3)
8754
      oprot.writeI32(self.event)
1845 vikas 8755
      oprot.writeFieldEnd()
3431 rajveer 8756
    if self.url is not None:
1845 vikas 8757
      oprot.writeFieldBegin('url', TType.STRING, 4)
8758
      oprot.writeString(self.url)
8759
      oprot.writeFieldEnd()
3431 rajveer 8760
    if self.data is not None:
1845 vikas 8761
      oprot.writeFieldBegin('data', TType.STRING, 5)
8762
      oprot.writeString(self.data)
8763
      oprot.writeFieldEnd()
3431 rajveer 8764
    if self.addedOn is not None:
1859 vikas 8765
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8766
      oprot.writeI64(self.addedOn)
8767
      oprot.writeFieldEnd()
1845 vikas 8768
    oprot.writeFieldStop()
8769
    oprot.writeStructEnd()
8770
 
3431 rajveer 8771
  def validate(self):
8772
    return
8773
 
8774
 
1845 vikas 8775
  def __repr__(self):
8776
    L = ['%s=%r' % (key, value)
8777
      for key, value in self.__dict__.iteritems()]
8778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8779
 
8780
  def __eq__(self, other):
8781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8782
 
8783
  def __ne__(self, other):
8784
    return not (self == other)
8785
 
8786
class addTrackLog_result:
8787
  """
8788
  Attributes:
8789
   - success
8790
   - utx
8791
  """
8792
 
8793
  thrift_spec = (
8794
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8795
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8796
  )
8797
 
8798
  def __init__(self, success=None, utx=None,):
8799
    self.success = success
8800
    self.utx = utx
8801
 
8802
  def read(self, iprot):
8803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8805
      return
8806
    iprot.readStructBegin()
8807
    while True:
8808
      (fname, ftype, fid) = iprot.readFieldBegin()
8809
      if ftype == TType.STOP:
8810
        break
8811
      if fid == 0:
8812
        if ftype == TType.I64:
8813
          self.success = iprot.readI64();
8814
        else:
8815
          iprot.skip(ftype)
8816
      elif fid == 1:
8817
        if ftype == TType.STRUCT:
1996 vikas 8818
          self.utx = UserAffiliateException()
1845 vikas 8819
          self.utx.read(iprot)
8820
        else:
8821
          iprot.skip(ftype)
8822
      else:
8823
        iprot.skip(ftype)
8824
      iprot.readFieldEnd()
8825
    iprot.readStructEnd()
8826
 
8827
  def write(self, oprot):
8828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8830
      return
8831
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8832
    if self.success is not None:
1845 vikas 8833
      oprot.writeFieldBegin('success', TType.I64, 0)
8834
      oprot.writeI64(self.success)
8835
      oprot.writeFieldEnd()
3431 rajveer 8836
    if self.utx is not None:
1845 vikas 8837
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8838
      self.utx.write(oprot)
8839
      oprot.writeFieldEnd()
8840
    oprot.writeFieldStop()
8841
    oprot.writeStructEnd()
8842
 
3431 rajveer 8843
  def validate(self):
8844
    return
8845
 
8846
 
1845 vikas 8847
  def __repr__(self):
8848
    L = ['%s=%r' % (key, value)
8849
      for key, value in self.__dict__.iteritems()]
8850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8851
 
8852
  def __eq__(self, other):
8853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8854
 
8855
  def __ne__(self, other):
8856
    return not (self == other)
8857
 
8858
class getTrackLogById_args:
8859
  """
8860
  Attributes:
8861
   - id
8862
  """
8863
 
8864
  thrift_spec = (
8865
    None, # 0
8866
    (1, TType.I64, 'id', None, None, ), # 1
8867
  )
8868
 
8869
  def __init__(self, id=None,):
8870
    self.id = id
8871
 
8872
  def read(self, iprot):
8873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8875
      return
8876
    iprot.readStructBegin()
8877
    while True:
8878
      (fname, ftype, fid) = iprot.readFieldBegin()
8879
      if ftype == TType.STOP:
8880
        break
8881
      if fid == 1:
8882
        if ftype == TType.I64:
8883
          self.id = iprot.readI64();
8884
        else:
8885
          iprot.skip(ftype)
8886
      else:
8887
        iprot.skip(ftype)
8888
      iprot.readFieldEnd()
8889
    iprot.readStructEnd()
8890
 
8891
  def write(self, oprot):
8892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8894
      return
8895
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8896
    if self.id is not None:
1845 vikas 8897
      oprot.writeFieldBegin('id', TType.I64, 1)
8898
      oprot.writeI64(self.id)
8899
      oprot.writeFieldEnd()
8900
    oprot.writeFieldStop()
8901
    oprot.writeStructEnd()
8902
 
3431 rajveer 8903
  def validate(self):
8904
    return
8905
 
8906
 
1845 vikas 8907
  def __repr__(self):
8908
    L = ['%s=%r' % (key, value)
8909
      for key, value in self.__dict__.iteritems()]
8910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8911
 
8912
  def __eq__(self, other):
8913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8914
 
8915
  def __ne__(self, other):
8916
    return not (self == other)
8917
 
8918
class getTrackLogById_result:
8919
  """
8920
  Attributes:
8921
   - success
8922
   - utx
8923
  """
8924
 
8925
  thrift_spec = (
8926
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8927
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8928
  )
8929
 
8930
  def __init__(self, success=None, utx=None,):
8931
    self.success = success
8932
    self.utx = utx
8933
 
8934
  def read(self, iprot):
8935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8937
      return
8938
    iprot.readStructBegin()
8939
    while True:
8940
      (fname, ftype, fid) = iprot.readFieldBegin()
8941
      if ftype == TType.STOP:
8942
        break
8943
      if fid == 0:
8944
        if ftype == TType.STRUCT:
8945
          self.success = TrackLog()
8946
          self.success.read(iprot)
8947
        else:
8948
          iprot.skip(ftype)
8949
      elif fid == 1:
8950
        if ftype == TType.STRUCT:
1996 vikas 8951
          self.utx = UserAffiliateException()
1845 vikas 8952
          self.utx.read(iprot)
8953
        else:
8954
          iprot.skip(ftype)
8955
      else:
8956
        iprot.skip(ftype)
8957
      iprot.readFieldEnd()
8958
    iprot.readStructEnd()
8959
 
8960
  def write(self, oprot):
8961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8963
      return
8964
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8965
    if self.success is not None:
1845 vikas 8966
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8967
      self.success.write(oprot)
8968
      oprot.writeFieldEnd()
3431 rajveer 8969
    if self.utx is not None:
1845 vikas 8970
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8971
      self.utx.write(oprot)
8972
      oprot.writeFieldEnd()
8973
    oprot.writeFieldStop()
8974
    oprot.writeStructEnd()
8975
 
3431 rajveer 8976
  def validate(self):
8977
    return
8978
 
8979
 
1845 vikas 8980
  def __repr__(self):
8981
    L = ['%s=%r' % (key, value)
8982
      for key, value in self.__dict__.iteritems()]
8983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8984
 
8985
  def __eq__(self, other):
8986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8987
 
8988
  def __ne__(self, other):
8989
    return not (self == other)
8990
 
1996 vikas 8991
class getTrackLogsByAffiliate_args:
1845 vikas 8992
  """
8993
  Attributes:
1996 vikas 8994
   - affiliateId
3293 vikas 8995
   - startDate
8996
   - endDate
1845 vikas 8997
  """
8998
 
8999
  thrift_spec = (
9000
    None, # 0
1996 vikas 9001
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9002
    (2, TType.I64, 'startDate', None, None, ), # 2
9003
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9004
  )
9005
 
3293 vikas 9006
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9007
    self.affiliateId = affiliateId
3293 vikas 9008
    self.startDate = startDate
9009
    self.endDate = endDate
1845 vikas 9010
 
9011
  def read(self, iprot):
9012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9014
      return
9015
    iprot.readStructBegin()
9016
    while True:
9017
      (fname, ftype, fid) = iprot.readFieldBegin()
9018
      if ftype == TType.STOP:
9019
        break
9020
      if fid == 1:
9021
        if ftype == TType.I64:
1996 vikas 9022
          self.affiliateId = iprot.readI64();
1845 vikas 9023
        else:
9024
          iprot.skip(ftype)
3293 vikas 9025
      elif fid == 2:
9026
        if ftype == TType.I64:
9027
          self.startDate = iprot.readI64();
9028
        else:
9029
          iprot.skip(ftype)
9030
      elif fid == 3:
9031
        if ftype == TType.I64:
9032
          self.endDate = iprot.readI64();
9033
        else:
9034
          iprot.skip(ftype)
1845 vikas 9035
      else:
9036
        iprot.skip(ftype)
9037
      iprot.readFieldEnd()
9038
    iprot.readStructEnd()
9039
 
9040
  def write(self, oprot):
9041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9043
      return
1996 vikas 9044
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9045
    if self.affiliateId is not None:
1996 vikas 9046
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9047
      oprot.writeI64(self.affiliateId)
1845 vikas 9048
      oprot.writeFieldEnd()
3431 rajveer 9049
    if self.startDate is not None:
3293 vikas 9050
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9051
      oprot.writeI64(self.startDate)
9052
      oprot.writeFieldEnd()
3431 rajveer 9053
    if self.endDate is not None:
3293 vikas 9054
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9055
      oprot.writeI64(self.endDate)
9056
      oprot.writeFieldEnd()
1845 vikas 9057
    oprot.writeFieldStop()
9058
    oprot.writeStructEnd()
9059
 
3431 rajveer 9060
  def validate(self):
9061
    return
9062
 
9063
 
1845 vikas 9064
  def __repr__(self):
9065
    L = ['%s=%r' % (key, value)
9066
      for key, value in self.__dict__.iteritems()]
9067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9068
 
9069
  def __eq__(self, other):
9070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9071
 
9072
  def __ne__(self, other):
9073
    return not (self == other)
9074
 
1996 vikas 9075
class getTrackLogsByAffiliate_result:
1845 vikas 9076
  """
9077
  Attributes:
9078
   - success
9079
   - utx
9080
  """
9081
 
9082
  thrift_spec = (
9083
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9084
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9085
  )
9086
 
9087
  def __init__(self, success=None, utx=None,):
9088
    self.success = success
9089
    self.utx = utx
9090
 
9091
  def read(self, iprot):
9092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9094
      return
9095
    iprot.readStructBegin()
9096
    while True:
9097
      (fname, ftype, fid) = iprot.readFieldBegin()
9098
      if ftype == TType.STOP:
9099
        break
9100
      if fid == 0:
9101
        if ftype == TType.LIST:
9102
          self.success = []
5326 rajveer 9103
          (_etype96, _size93) = iprot.readListBegin()
9104
          for _i97 in xrange(_size93):
9105
            _elem98 = TrackLog()
9106
            _elem98.read(iprot)
9107
            self.success.append(_elem98)
1845 vikas 9108
          iprot.readListEnd()
9109
        else:
9110
          iprot.skip(ftype)
9111
      elif fid == 1:
9112
        if ftype == TType.STRUCT:
1996 vikas 9113
          self.utx = UserAffiliateException()
1845 vikas 9114
          self.utx.read(iprot)
9115
        else:
9116
          iprot.skip(ftype)
9117
      else:
9118
        iprot.skip(ftype)
9119
      iprot.readFieldEnd()
9120
    iprot.readStructEnd()
9121
 
9122
  def write(self, oprot):
9123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9125
      return
1996 vikas 9126
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9127
    if self.success is not None:
1845 vikas 9128
      oprot.writeFieldBegin('success', TType.LIST, 0)
9129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9130
      for iter99 in self.success:
9131
        iter99.write(oprot)
1845 vikas 9132
      oprot.writeListEnd()
9133
      oprot.writeFieldEnd()
3431 rajveer 9134
    if self.utx is not None:
1845 vikas 9135
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9136
      self.utx.write(oprot)
9137
      oprot.writeFieldEnd()
9138
    oprot.writeFieldStop()
9139
    oprot.writeStructEnd()
9140
 
3431 rajveer 9141
  def validate(self):
9142
    return
9143
 
9144
 
1845 vikas 9145
  def __repr__(self):
9146
    L = ['%s=%r' % (key, value)
9147
      for key, value in self.__dict__.iteritems()]
9148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9149
 
9150
  def __eq__(self, other):
9151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9152
 
9153
  def __ne__(self, other):
9154
    return not (self == other)
9155
 
9156
class getTrackLogsByUser_args:
9157
  """
9158
  Attributes:
9159
   - userId
9160
  """
9161
 
9162
  thrift_spec = (
9163
    None, # 0
9164
    (1, TType.I64, 'userId', None, None, ), # 1
9165
  )
9166
 
9167
  def __init__(self, userId=None,):
9168
    self.userId = userId
9169
 
9170
  def read(self, iprot):
9171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9173
      return
9174
    iprot.readStructBegin()
9175
    while True:
9176
      (fname, ftype, fid) = iprot.readFieldBegin()
9177
      if ftype == TType.STOP:
9178
        break
9179
      if fid == 1:
9180
        if ftype == TType.I64:
9181
          self.userId = iprot.readI64();
9182
        else:
9183
          iprot.skip(ftype)
9184
      else:
9185
        iprot.skip(ftype)
9186
      iprot.readFieldEnd()
9187
    iprot.readStructEnd()
9188
 
9189
  def write(self, oprot):
9190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9192
      return
9193
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9194
    if self.userId is not None:
1845 vikas 9195
      oprot.writeFieldBegin('userId', TType.I64, 1)
9196
      oprot.writeI64(self.userId)
9197
      oprot.writeFieldEnd()
9198
    oprot.writeFieldStop()
9199
    oprot.writeStructEnd()
9200
 
3431 rajveer 9201
  def validate(self):
9202
    return
9203
 
9204
 
1845 vikas 9205
  def __repr__(self):
9206
    L = ['%s=%r' % (key, value)
9207
      for key, value in self.__dict__.iteritems()]
9208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9209
 
9210
  def __eq__(self, other):
9211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9212
 
9213
  def __ne__(self, other):
9214
    return not (self == other)
9215
 
9216
class getTrackLogsByUser_result:
9217
  """
9218
  Attributes:
9219
   - success
9220
   - utx
9221
  """
9222
 
9223
  thrift_spec = (
9224
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9225
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9226
  )
9227
 
9228
  def __init__(self, success=None, utx=None,):
9229
    self.success = success
9230
    self.utx = utx
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 == 0:
9242
        if ftype == TType.LIST:
9243
          self.success = []
5326 rajveer 9244
          (_etype103, _size100) = iprot.readListBegin()
9245
          for _i104 in xrange(_size100):
9246
            _elem105 = TrackLog()
9247
            _elem105.read(iprot)
9248
            self.success.append(_elem105)
1845 vikas 9249
          iprot.readListEnd()
9250
        else:
9251
          iprot.skip(ftype)
9252
      elif fid == 1:
9253
        if ftype == TType.STRUCT:
1996 vikas 9254
          self.utx = UserAffiliateException()
1845 vikas 9255
          self.utx.read(iprot)
9256
        else:
9257
          iprot.skip(ftype)
9258
      else:
9259
        iprot.skip(ftype)
9260
      iprot.readFieldEnd()
9261
    iprot.readStructEnd()
9262
 
9263
  def write(self, oprot):
9264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9266
      return
9267
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9268
    if self.success is not None:
1845 vikas 9269
      oprot.writeFieldBegin('success', TType.LIST, 0)
9270
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9271
      for iter106 in self.success:
9272
        iter106.write(oprot)
1845 vikas 9273
      oprot.writeListEnd()
9274
      oprot.writeFieldEnd()
3431 rajveer 9275
    if self.utx is not None:
1845 vikas 9276
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9277
      self.utx.write(oprot)
9278
      oprot.writeFieldEnd()
9279
    oprot.writeFieldStop()
9280
    oprot.writeStructEnd()
9281
 
3431 rajveer 9282
  def validate(self):
9283
    return
9284
 
9285
 
1845 vikas 9286
  def __repr__(self):
9287
    L = ['%s=%r' % (key, value)
9288
      for key, value in self.__dict__.iteritems()]
9289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9290
 
9291
  def __eq__(self, other):
9292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9293
 
9294
  def __ne__(self, other):
9295
    return not (self == other)
9296
 
9297
class getTrackLogs_args:
9298
  """
9299
  Attributes:
9300
   - userId
9301
   - event
9302
   - url
9303
  """
9304
 
9305
  thrift_spec = (
9306
    None, # 0
1996 vikas 9307
    (1, TType.I64, 'userId', None, None, ), # 1
9308
    (2, TType.STRING, 'event', None, None, ), # 2
9309
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9310
  )
9311
 
1996 vikas 9312
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9313
    self.userId = userId
9314
    self.event = event
9315
    self.url = url
9316
 
9317
  def read(self, iprot):
9318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9320
      return
9321
    iprot.readStructBegin()
9322
    while True:
9323
      (fname, ftype, fid) = iprot.readFieldBegin()
9324
      if ftype == TType.STOP:
9325
        break
9326
      if fid == 1:
9327
        if ftype == TType.I64:
1996 vikas 9328
          self.userId = iprot.readI64();
1845 vikas 9329
        else:
9330
          iprot.skip(ftype)
9331
      elif fid == 2:
9332
        if ftype == TType.STRING:
9333
          self.event = iprot.readString();
9334
        else:
9335
          iprot.skip(ftype)
1996 vikas 9336
      elif fid == 3:
1845 vikas 9337
        if ftype == TType.STRING:
9338
          self.url = iprot.readString();
9339
        else:
9340
          iprot.skip(ftype)
9341
      else:
9342
        iprot.skip(ftype)
9343
      iprot.readFieldEnd()
9344
    iprot.readStructEnd()
9345
 
9346
  def write(self, oprot):
9347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9349
      return
9350
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9351
    if self.userId is not None:
1996 vikas 9352
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9353
      oprot.writeI64(self.userId)
9354
      oprot.writeFieldEnd()
3431 rajveer 9355
    if self.event is not None:
1996 vikas 9356
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9357
      oprot.writeString(self.event)
9358
      oprot.writeFieldEnd()
3431 rajveer 9359
    if self.url is not None:
1996 vikas 9360
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9361
      oprot.writeString(self.url)
9362
      oprot.writeFieldEnd()
9363
    oprot.writeFieldStop()
9364
    oprot.writeStructEnd()
9365
 
3431 rajveer 9366
  def validate(self):
9367
    return
9368
 
9369
 
1845 vikas 9370
  def __repr__(self):
9371
    L = ['%s=%r' % (key, value)
9372
      for key, value in self.__dict__.iteritems()]
9373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9374
 
9375
  def __eq__(self, other):
9376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9377
 
9378
  def __ne__(self, other):
9379
    return not (self == other)
9380
 
9381
class getTrackLogs_result:
9382
  """
9383
  Attributes:
9384
   - success
9385
   - utx
9386
  """
9387
 
9388
  thrift_spec = (
9389
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9390
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9391
  )
9392
 
9393
  def __init__(self, success=None, utx=None,):
9394
    self.success = success
9395
    self.utx = utx
9396
 
9397
  def read(self, iprot):
9398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9400
      return
9401
    iprot.readStructBegin()
9402
    while True:
9403
      (fname, ftype, fid) = iprot.readFieldBegin()
9404
      if ftype == TType.STOP:
9405
        break
9406
      if fid == 0:
9407
        if ftype == TType.LIST:
9408
          self.success = []
5326 rajveer 9409
          (_etype110, _size107) = iprot.readListBegin()
9410
          for _i111 in xrange(_size107):
9411
            _elem112 = TrackLog()
9412
            _elem112.read(iprot)
9413
            self.success.append(_elem112)
1845 vikas 9414
          iprot.readListEnd()
9415
        else:
9416
          iprot.skip(ftype)
9417
      elif fid == 1:
9418
        if ftype == TType.STRUCT:
1996 vikas 9419
          self.utx = UserAffiliateException()
1845 vikas 9420
          self.utx.read(iprot)
9421
        else:
9422
          iprot.skip(ftype)
9423
      else:
9424
        iprot.skip(ftype)
9425
      iprot.readFieldEnd()
9426
    iprot.readStructEnd()
9427
 
9428
  def write(self, oprot):
9429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9431
      return
9432
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9433
    if self.success is not None:
1845 vikas 9434
      oprot.writeFieldBegin('success', TType.LIST, 0)
9435
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9436
      for iter113 in self.success:
9437
        iter113.write(oprot)
1845 vikas 9438
      oprot.writeListEnd()
9439
      oprot.writeFieldEnd()
3431 rajveer 9440
    if self.utx is not None:
1845 vikas 9441
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9442
      self.utx.write(oprot)
9443
      oprot.writeFieldEnd()
9444
    oprot.writeFieldStop()
9445
    oprot.writeStructEnd()
9446
 
3431 rajveer 9447
  def validate(self):
9448
    return
9449
 
9450
 
1845 vikas 9451
  def __repr__(self):
9452
    L = ['%s=%r' % (key, value)
9453
      for key, value in self.__dict__.iteritems()]
9454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9455
 
9456
  def __eq__(self, other):
9457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9458
 
9459
  def __ne__(self, other):
9460
    return not (self == other)
9461
 
559 chandransh 9462
class createCart_args:
94 ashish 9463
  """
9464
  Attributes:
559 chandransh 9465
   - userId
94 ashish 9466
  """
9467
 
9468
  thrift_spec = (
9469
    None, # 0
559 chandransh 9470
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9471
  )
9472
 
559 chandransh 9473
  def __init__(self, userId=None,):
9474
    self.userId = userId
94 ashish 9475
 
9476
  def read(self, iprot):
9477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9479
      return
9480
    iprot.readStructBegin()
9481
    while True:
9482
      (fname, ftype, fid) = iprot.readFieldBegin()
9483
      if ftype == TType.STOP:
9484
        break
9485
      if fid == 1:
9486
        if ftype == TType.I64:
559 chandransh 9487
          self.userId = iprot.readI64();
94 ashish 9488
        else:
9489
          iprot.skip(ftype)
559 chandransh 9490
      else:
9491
        iprot.skip(ftype)
9492
      iprot.readFieldEnd()
9493
    iprot.readStructEnd()
9494
 
9495
  def write(self, oprot):
9496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9498
      return
9499
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9500
    if self.userId is not None:
559 chandransh 9501
      oprot.writeFieldBegin('userId', TType.I64, 1)
9502
      oprot.writeI64(self.userId)
9503
      oprot.writeFieldEnd()
9504
    oprot.writeFieldStop()
9505
    oprot.writeStructEnd()
9506
 
3431 rajveer 9507
  def validate(self):
9508
    return
9509
 
9510
 
559 chandransh 9511
  def __repr__(self):
9512
    L = ['%s=%r' % (key, value)
9513
      for key, value in self.__dict__.iteritems()]
9514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9515
 
9516
  def __eq__(self, other):
9517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9518
 
9519
  def __ne__(self, other):
9520
    return not (self == other)
9521
 
9522
class createCart_result:
9523
  """
9524
  Attributes:
9525
   - success
9526
   - scx
9527
  """
9528
 
9529
  thrift_spec = (
9530
    (0, TType.I64, 'success', None, None, ), # 0
9531
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9532
  )
9533
 
9534
  def __init__(self, success=None, scx=None,):
9535
    self.success = success
9536
    self.scx = scx
9537
 
9538
  def read(self, iprot):
9539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9541
      return
9542
    iprot.readStructBegin()
9543
    while True:
9544
      (fname, ftype, fid) = iprot.readFieldBegin()
9545
      if ftype == TType.STOP:
9546
        break
9547
      if fid == 0:
94 ashish 9548
        if ftype == TType.I64:
559 chandransh 9549
          self.success = iprot.readI64();
94 ashish 9550
        else:
9551
          iprot.skip(ftype)
559 chandransh 9552
      elif fid == 1:
9553
        if ftype == TType.STRUCT:
9554
          self.scx = ShoppingCartException()
9555
          self.scx.read(iprot)
9556
        else:
9557
          iprot.skip(ftype)
94 ashish 9558
      else:
9559
        iprot.skip(ftype)
9560
      iprot.readFieldEnd()
9561
    iprot.readStructEnd()
9562
 
9563
  def write(self, oprot):
9564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9566
      return
559 chandransh 9567
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9568
    if self.success is not None:
559 chandransh 9569
      oprot.writeFieldBegin('success', TType.I64, 0)
9570
      oprot.writeI64(self.success)
94 ashish 9571
      oprot.writeFieldEnd()
3431 rajveer 9572
    if self.scx is not None:
559 chandransh 9573
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9574
      self.scx.write(oprot)
94 ashish 9575
      oprot.writeFieldEnd()
9576
    oprot.writeFieldStop()
9577
    oprot.writeStructEnd()
9578
 
3431 rajveer 9579
  def validate(self):
9580
    return
9581
 
9582
 
94 ashish 9583
  def __repr__(self):
9584
    L = ['%s=%r' % (key, value)
9585
      for key, value in self.__dict__.iteritems()]
9586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9587
 
9588
  def __eq__(self, other):
9589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9590
 
9591
  def __ne__(self, other):
9592
    return not (self == other)
9593
 
559 chandransh 9594
class getCurrentCart_args:
94 ashish 9595
  """
9596
  Attributes:
559 chandransh 9597
   - userId
9598
  """
9599
 
9600
  thrift_spec = (
9601
    None, # 0
9602
    (1, TType.I64, 'userId', None, None, ), # 1
9603
  )
9604
 
9605
  def __init__(self, userId=None,):
9606
    self.userId = userId
9607
 
9608
  def read(self, iprot):
9609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9611
      return
9612
    iprot.readStructBegin()
9613
    while True:
9614
      (fname, ftype, fid) = iprot.readFieldBegin()
9615
      if ftype == TType.STOP:
9616
        break
9617
      if fid == 1:
9618
        if ftype == TType.I64:
9619
          self.userId = iprot.readI64();
9620
        else:
9621
          iprot.skip(ftype)
9622
      else:
9623
        iprot.skip(ftype)
9624
      iprot.readFieldEnd()
9625
    iprot.readStructEnd()
9626
 
9627
  def write(self, oprot):
9628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9630
      return
9631
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9632
    if self.userId is not None:
559 chandransh 9633
      oprot.writeFieldBegin('userId', TType.I64, 1)
9634
      oprot.writeI64(self.userId)
9635
      oprot.writeFieldEnd()
9636
    oprot.writeFieldStop()
9637
    oprot.writeStructEnd()
9638
 
3431 rajveer 9639
  def validate(self):
9640
    return
9641
 
9642
 
559 chandransh 9643
  def __repr__(self):
9644
    L = ['%s=%r' % (key, value)
9645
      for key, value in self.__dict__.iteritems()]
9646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9647
 
9648
  def __eq__(self, other):
9649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9650
 
9651
  def __ne__(self, other):
9652
    return not (self == other)
9653
 
9654
class getCurrentCart_result:
9655
  """
9656
  Attributes:
94 ashish 9657
   - success
559 chandransh 9658
   - scx
94 ashish 9659
  """
9660
 
9661
  thrift_spec = (
559 chandransh 9662
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9663
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9664
  )
9665
 
559 chandransh 9666
  def __init__(self, success=None, scx=None,):
94 ashish 9667
    self.success = success
559 chandransh 9668
    self.scx = scx
94 ashish 9669
 
9670
  def read(self, iprot):
9671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9673
      return
9674
    iprot.readStructBegin()
9675
    while True:
9676
      (fname, ftype, fid) = iprot.readFieldBegin()
9677
      if ftype == TType.STOP:
9678
        break
9679
      if fid == 0:
559 chandransh 9680
        if ftype == TType.STRUCT:
9681
          self.success = Cart()
9682
          self.success.read(iprot)
94 ashish 9683
        else:
9684
          iprot.skip(ftype)
9685
      elif fid == 1:
9686
        if ftype == TType.STRUCT:
559 chandransh 9687
          self.scx = ShoppingCartException()
9688
          self.scx.read(iprot)
94 ashish 9689
        else:
9690
          iprot.skip(ftype)
9691
      else:
9692
        iprot.skip(ftype)
9693
      iprot.readFieldEnd()
9694
    iprot.readStructEnd()
9695
 
9696
  def write(self, oprot):
9697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9699
      return
559 chandransh 9700
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9701
    if self.success is not None:
559 chandransh 9702
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9703
      self.success.write(oprot)
94 ashish 9704
      oprot.writeFieldEnd()
3431 rajveer 9705
    if self.scx is not None:
559 chandransh 9706
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9707
      self.scx.write(oprot)
94 ashish 9708
      oprot.writeFieldEnd()
9709
    oprot.writeFieldStop()
9710
    oprot.writeStructEnd()
9711
 
3431 rajveer 9712
  def validate(self):
9713
    return
9714
 
9715
 
94 ashish 9716
  def __repr__(self):
9717
    L = ['%s=%r' % (key, value)
9718
      for key, value in self.__dict__.iteritems()]
9719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9720
 
9721
  def __eq__(self, other):
9722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9723
 
9724
  def __ne__(self, other):
9725
    return not (self == other)
9726
 
559 chandransh 9727
class getCart_args:
504 rajveer 9728
  """
9729
  Attributes:
559 chandransh 9730
   - cartId
504 rajveer 9731
  """
9732
 
9733
  thrift_spec = (
9734
    None, # 0
559 chandransh 9735
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9736
  )
9737
 
559 chandransh 9738
  def __init__(self, cartId=None,):
9739
    self.cartId = cartId
504 rajveer 9740
 
9741
  def read(self, iprot):
9742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9744
      return
9745
    iprot.readStructBegin()
9746
    while True:
9747
      (fname, ftype, fid) = iprot.readFieldBegin()
9748
      if ftype == TType.STOP:
9749
        break
9750
      if fid == 1:
9751
        if ftype == TType.I64:
559 chandransh 9752
          self.cartId = iprot.readI64();
504 rajveer 9753
        else:
9754
          iprot.skip(ftype)
9755
      else:
9756
        iprot.skip(ftype)
9757
      iprot.readFieldEnd()
9758
    iprot.readStructEnd()
9759
 
9760
  def write(self, oprot):
9761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9763
      return
559 chandransh 9764
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9765
    if self.cartId is not None:
559 chandransh 9766
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9767
      oprot.writeI64(self.cartId)
504 rajveer 9768
      oprot.writeFieldEnd()
9769
    oprot.writeFieldStop()
9770
    oprot.writeStructEnd()
9771
 
3431 rajveer 9772
  def validate(self):
9773
    return
9774
 
9775
 
504 rajveer 9776
  def __repr__(self):
9777
    L = ['%s=%r' % (key, value)
9778
      for key, value in self.__dict__.iteritems()]
9779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9780
 
9781
  def __eq__(self, other):
9782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9783
 
9784
  def __ne__(self, other):
9785
    return not (self == other)
9786
 
559 chandransh 9787
class getCart_result:
504 rajveer 9788
  """
9789
  Attributes:
9790
   - success
559 chandransh 9791
   - scx
504 rajveer 9792
  """
9793
 
9794
  thrift_spec = (
559 chandransh 9795
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9796
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9797
  )
9798
 
559 chandransh 9799
  def __init__(self, success=None, scx=None,):
504 rajveer 9800
    self.success = success
559 chandransh 9801
    self.scx = scx
504 rajveer 9802
 
9803
  def read(self, iprot):
9804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9806
      return
9807
    iprot.readStructBegin()
9808
    while True:
9809
      (fname, ftype, fid) = iprot.readFieldBegin()
9810
      if ftype == TType.STOP:
9811
        break
9812
      if fid == 0:
559 chandransh 9813
        if ftype == TType.STRUCT:
9814
          self.success = Cart()
9815
          self.success.read(iprot)
504 rajveer 9816
        else:
9817
          iprot.skip(ftype)
9818
      elif fid == 1:
9819
        if ftype == TType.STRUCT:
559 chandransh 9820
          self.scx = ShoppingCartException()
9821
          self.scx.read(iprot)
504 rajveer 9822
        else:
9823
          iprot.skip(ftype)
9824
      else:
9825
        iprot.skip(ftype)
9826
      iprot.readFieldEnd()
9827
    iprot.readStructEnd()
9828
 
9829
  def write(self, oprot):
9830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9832
      return
559 chandransh 9833
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9834
    if self.success is not None:
559 chandransh 9835
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9836
      self.success.write(oprot)
504 rajveer 9837
      oprot.writeFieldEnd()
3431 rajveer 9838
    if self.scx is not None:
559 chandransh 9839
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9840
      self.scx.write(oprot)
504 rajveer 9841
      oprot.writeFieldEnd()
9842
    oprot.writeFieldStop()
9843
    oprot.writeStructEnd()
9844
 
3431 rajveer 9845
  def validate(self):
9846
    return
9847
 
9848
 
504 rajveer 9849
  def __repr__(self):
9850
    L = ['%s=%r' % (key, value)
9851
      for key, value in self.__dict__.iteritems()]
9852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9853
 
9854
  def __eq__(self, other):
9855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9856
 
9857
  def __ne__(self, other):
9858
    return not (self == other)
9859
 
559 chandransh 9860
class getCartsByTime_args:
9861
  """
9862
  Attributes:
9863
   - from_time
9864
   - to_time
9865
   - status
9866
  """
9867
 
9868
  thrift_spec = (
9869
    None, # 0
9870
    (1, TType.I64, 'from_time', None, None, ), # 1
9871
    (2, TType.I64, 'to_time', None, None, ), # 2
9872
    (3, TType.I32, 'status', None, None, ), # 3
9873
  )
9874
 
9875
  def __init__(self, from_time=None, to_time=None, status=None,):
9876
    self.from_time = from_time
9877
    self.to_time = to_time
9878
    self.status = status
9879
 
9880
  def read(self, iprot):
9881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9883
      return
9884
    iprot.readStructBegin()
9885
    while True:
9886
      (fname, ftype, fid) = iprot.readFieldBegin()
9887
      if ftype == TType.STOP:
9888
        break
9889
      if fid == 1:
94 ashish 9890
        if ftype == TType.I64:
559 chandransh 9891
          self.from_time = iprot.readI64();
94 ashish 9892
        else:
9893
          iprot.skip(ftype)
122 ashish 9894
      elif fid == 2:
559 chandransh 9895
        if ftype == TType.I64:
9896
          self.to_time = iprot.readI64();
122 ashish 9897
        else:
9898
          iprot.skip(ftype)
559 chandransh 9899
      elif fid == 3:
9900
        if ftype == TType.I32:
9901
          self.status = iprot.readI32();
9902
        else:
9903
          iprot.skip(ftype)
94 ashish 9904
      else:
9905
        iprot.skip(ftype)
9906
      iprot.readFieldEnd()
9907
    iprot.readStructEnd()
9908
 
9909
  def write(self, oprot):
9910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9912
      return
559 chandransh 9913
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9914
    if self.from_time is not None:
559 chandransh 9915
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9916
      oprot.writeI64(self.from_time)
94 ashish 9917
      oprot.writeFieldEnd()
3431 rajveer 9918
    if self.to_time is not None:
559 chandransh 9919
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9920
      oprot.writeI64(self.to_time)
122 ashish 9921
      oprot.writeFieldEnd()
3431 rajveer 9922
    if self.status is not None:
559 chandransh 9923
      oprot.writeFieldBegin('status', TType.I32, 3)
9924
      oprot.writeI32(self.status)
9925
      oprot.writeFieldEnd()
94 ashish 9926
    oprot.writeFieldStop()
9927
    oprot.writeStructEnd()
9928
 
3431 rajveer 9929
  def validate(self):
9930
    return
9931
 
9932
 
94 ashish 9933
  def __repr__(self):
9934
    L = ['%s=%r' % (key, value)
9935
      for key, value in self.__dict__.iteritems()]
9936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9937
 
9938
  def __eq__(self, other):
9939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9940
 
9941
  def __ne__(self, other):
9942
    return not (self == other)
9943
 
559 chandransh 9944
class getCartsByTime_result:
94 ashish 9945
  """
9946
  Attributes:
9947
   - success
559 chandransh 9948
   - scx
94 ashish 9949
  """
9950
 
9951
  thrift_spec = (
559 chandransh 9952
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9953
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9954
  )
9955
 
559 chandransh 9956
  def __init__(self, success=None, scx=None,):
94 ashish 9957
    self.success = success
559 chandransh 9958
    self.scx = scx
94 ashish 9959
 
9960
  def read(self, iprot):
9961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9963
      return
9964
    iprot.readStructBegin()
9965
    while True:
9966
      (fname, ftype, fid) = iprot.readFieldBegin()
9967
      if ftype == TType.STOP:
9968
        break
9969
      if fid == 0:
559 chandransh 9970
        if ftype == TType.LIST:
9971
          self.success = []
5326 rajveer 9972
          (_etype117, _size114) = iprot.readListBegin()
9973
          for _i118 in xrange(_size114):
9974
            _elem119 = Cart()
9975
            _elem119.read(iprot)
9976
            self.success.append(_elem119)
559 chandransh 9977
          iprot.readListEnd()
94 ashish 9978
        else:
9979
          iprot.skip(ftype)
9980
      elif fid == 1:
9981
        if ftype == TType.STRUCT:
559 chandransh 9982
          self.scx = ShoppingCartException()
9983
          self.scx.read(iprot)
94 ashish 9984
        else:
9985
          iprot.skip(ftype)
9986
      else:
9987
        iprot.skip(ftype)
9988
      iprot.readFieldEnd()
9989
    iprot.readStructEnd()
9990
 
9991
  def write(self, oprot):
9992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9994
      return
559 chandransh 9995
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9996
    if self.success is not None:
559 chandransh 9997
      oprot.writeFieldBegin('success', TType.LIST, 0)
9998
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9999
      for iter120 in self.success:
10000
        iter120.write(oprot)
559 chandransh 10001
      oprot.writeListEnd()
94 ashish 10002
      oprot.writeFieldEnd()
3431 rajveer 10003
    if self.scx is not None:
559 chandransh 10004
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10005
      self.scx.write(oprot)
94 ashish 10006
      oprot.writeFieldEnd()
10007
    oprot.writeFieldStop()
10008
    oprot.writeStructEnd()
10009
 
3431 rajveer 10010
  def validate(self):
10011
    return
10012
 
10013
 
94 ashish 10014
  def __repr__(self):
10015
    L = ['%s=%r' % (key, value)
10016
      for key, value in self.__dict__.iteritems()]
10017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10018
 
10019
  def __eq__(self, other):
10020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10021
 
10022
  def __ne__(self, other):
10023
    return not (self == other)
10024
 
559 chandransh 10025
class addItemToCart_args:
10026
  """
10027
  Attributes:
10028
   - cartId
10029
   - itemId
10030
   - quantity
3557 rajveer 10031
   - sourceId
559 chandransh 10032
  """
10033
 
10034
  thrift_spec = (
10035
    None, # 0
10036
    (1, TType.I64, 'cartId', None, None, ), # 1
10037
    (2, TType.I64, 'itemId', None, None, ), # 2
10038
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10039
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10040
  )
10041
 
3557 rajveer 10042
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10043
    self.cartId = cartId
10044
    self.itemId = itemId
10045
    self.quantity = quantity
3557 rajveer 10046
    self.sourceId = sourceId
559 chandransh 10047
 
10048
  def read(self, iprot):
10049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10051
      return
10052
    iprot.readStructBegin()
10053
    while True:
10054
      (fname, ftype, fid) = iprot.readFieldBegin()
10055
      if ftype == TType.STOP:
10056
        break
10057
      if fid == 1:
10058
        if ftype == TType.I64:
10059
          self.cartId = iprot.readI64();
10060
        else:
10061
          iprot.skip(ftype)
10062
      elif fid == 2:
10063
        if ftype == TType.I64:
10064
          self.itemId = iprot.readI64();
10065
        else:
10066
          iprot.skip(ftype)
10067
      elif fid == 3:
10068
        if ftype == TType.I64:
10069
          self.quantity = iprot.readI64();
10070
        else:
10071
          iprot.skip(ftype)
3557 rajveer 10072
      elif fid == 4:
10073
        if ftype == TType.I64:
10074
          self.sourceId = iprot.readI64();
10075
        else:
10076
          iprot.skip(ftype)
559 chandransh 10077
      else:
10078
        iprot.skip(ftype)
10079
      iprot.readFieldEnd()
10080
    iprot.readStructEnd()
10081
 
10082
  def write(self, oprot):
10083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10085
      return
10086
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10087
    if self.cartId is not None:
559 chandransh 10088
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10089
      oprot.writeI64(self.cartId)
10090
      oprot.writeFieldEnd()
3431 rajveer 10091
    if self.itemId is not None:
559 chandransh 10092
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10093
      oprot.writeI64(self.itemId)
10094
      oprot.writeFieldEnd()
3431 rajveer 10095
    if self.quantity is not None:
559 chandransh 10096
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10097
      oprot.writeI64(self.quantity)
10098
      oprot.writeFieldEnd()
3557 rajveer 10099
    if self.sourceId is not None:
10100
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10101
      oprot.writeI64(self.sourceId)
10102
      oprot.writeFieldEnd()
559 chandransh 10103
    oprot.writeFieldStop()
10104
    oprot.writeStructEnd()
10105
 
3431 rajveer 10106
  def validate(self):
10107
    return
10108
 
10109
 
559 chandransh 10110
  def __repr__(self):
10111
    L = ['%s=%r' % (key, value)
10112
      for key, value in self.__dict__.iteritems()]
10113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10114
 
10115
  def __eq__(self, other):
10116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10117
 
10118
  def __ne__(self, other):
10119
    return not (self == other)
10120
 
10121
class addItemToCart_result:
10122
  """
10123
  Attributes:
2035 rajveer 10124
   - success
559 chandransh 10125
   - scx
10126
  """
10127
 
10128
  thrift_spec = (
2035 rajveer 10129
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10130
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10131
  )
10132
 
2035 rajveer 10133
  def __init__(self, success=None, scx=None,):
10134
    self.success = success
559 chandransh 10135
    self.scx = scx
10136
 
10137
  def read(self, iprot):
10138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10140
      return
10141
    iprot.readStructBegin()
10142
    while True:
10143
      (fname, ftype, fid) = iprot.readFieldBegin()
10144
      if ftype == TType.STOP:
10145
        break
2035 rajveer 10146
      if fid == 0:
10147
        if ftype == TType.STRING:
10148
          self.success = iprot.readString();
10149
        else:
10150
          iprot.skip(ftype)
10151
      elif fid == 1:
559 chandransh 10152
        if ftype == TType.STRUCT:
10153
          self.scx = ShoppingCartException()
10154
          self.scx.read(iprot)
10155
        else:
10156
          iprot.skip(ftype)
10157
      else:
10158
        iprot.skip(ftype)
10159
      iprot.readFieldEnd()
10160
    iprot.readStructEnd()
10161
 
10162
  def write(self, oprot):
10163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10165
      return
10166
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10167
    if self.success is not None:
2035 rajveer 10168
      oprot.writeFieldBegin('success', TType.STRING, 0)
10169
      oprot.writeString(self.success)
10170
      oprot.writeFieldEnd()
3431 rajveer 10171
    if self.scx is not None:
559 chandransh 10172
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10173
      self.scx.write(oprot)
10174
      oprot.writeFieldEnd()
10175
    oprot.writeFieldStop()
10176
    oprot.writeStructEnd()
10177
 
3431 rajveer 10178
  def validate(self):
10179
    return
10180
 
10181
 
559 chandransh 10182
  def __repr__(self):
10183
    L = ['%s=%r' % (key, value)
10184
      for key, value in self.__dict__.iteritems()]
10185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10186
 
10187
  def __eq__(self, other):
10188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10189
 
10190
  def __ne__(self, other):
10191
    return not (self == other)
10192
 
10193
class deleteItemFromCart_args:
10194
  """
10195
  Attributes:
10196
   - cartId
10197
   - itemId
10198
  """
10199
 
10200
  thrift_spec = (
10201
    None, # 0
10202
    (1, TType.I64, 'cartId', None, None, ), # 1
10203
    (2, TType.I64, 'itemId', None, None, ), # 2
10204
  )
10205
 
10206
  def __init__(self, cartId=None, itemId=None,):
10207
    self.cartId = cartId
10208
    self.itemId = itemId
10209
 
10210
  def read(self, iprot):
10211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10213
      return
10214
    iprot.readStructBegin()
10215
    while True:
10216
      (fname, ftype, fid) = iprot.readFieldBegin()
10217
      if ftype == TType.STOP:
10218
        break
10219
      if fid == 1:
10220
        if ftype == TType.I64:
10221
          self.cartId = iprot.readI64();
10222
        else:
10223
          iprot.skip(ftype)
10224
      elif fid == 2:
10225
        if ftype == TType.I64:
10226
          self.itemId = iprot.readI64();
10227
        else:
10228
          iprot.skip(ftype)
10229
      else:
10230
        iprot.skip(ftype)
10231
      iprot.readFieldEnd()
10232
    iprot.readStructEnd()
10233
 
10234
  def write(self, oprot):
10235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10237
      return
10238
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10239
    if self.cartId is not None:
559 chandransh 10240
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10241
      oprot.writeI64(self.cartId)
10242
      oprot.writeFieldEnd()
3431 rajveer 10243
    if self.itemId is not None:
559 chandransh 10244
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10245
      oprot.writeI64(self.itemId)
10246
      oprot.writeFieldEnd()
10247
    oprot.writeFieldStop()
10248
    oprot.writeStructEnd()
10249
 
3431 rajveer 10250
  def validate(self):
10251
    return
10252
 
10253
 
559 chandransh 10254
  def __repr__(self):
10255
    L = ['%s=%r' % (key, value)
10256
      for key, value in self.__dict__.iteritems()]
10257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10258
 
10259
  def __eq__(self, other):
10260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10261
 
10262
  def __ne__(self, other):
10263
    return not (self == other)
10264
 
10265
class deleteItemFromCart_result:
10266
  """
10267
  Attributes:
10268
   - scx
10269
  """
10270
 
10271
  thrift_spec = (
10272
    None, # 0
10273
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10274
  )
10275
 
10276
  def __init__(self, scx=None,):
10277
    self.scx = scx
10278
 
10279
  def read(self, iprot):
10280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10282
      return
10283
    iprot.readStructBegin()
10284
    while True:
10285
      (fname, ftype, fid) = iprot.readFieldBegin()
10286
      if ftype == TType.STOP:
10287
        break
10288
      if fid == 1:
10289
        if ftype == TType.STRUCT:
10290
          self.scx = ShoppingCartException()
10291
          self.scx.read(iprot)
10292
        else:
10293
          iprot.skip(ftype)
10294
      else:
10295
        iprot.skip(ftype)
10296
      iprot.readFieldEnd()
10297
    iprot.readStructEnd()
10298
 
10299
  def write(self, oprot):
10300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10302
      return
10303
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10304
    if self.scx is not None:
559 chandransh 10305
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10306
      self.scx.write(oprot)
10307
      oprot.writeFieldEnd()
10308
    oprot.writeFieldStop()
10309
    oprot.writeStructEnd()
10310
 
3431 rajveer 10311
  def validate(self):
10312
    return
10313
 
10314
 
559 chandransh 10315
  def __repr__(self):
10316
    L = ['%s=%r' % (key, value)
10317
      for key, value in self.__dict__.iteritems()]
10318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10319
 
10320
  def __eq__(self, other):
10321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10322
 
10323
  def __ne__(self, other):
10324
    return not (self == other)
10325
 
10326
class changeItemStatus_args:
10327
  """
10328
  Attributes:
10329
   - cartId
10330
   - itemId
10331
   - status
10332
  """
10333
 
10334
  thrift_spec = (
10335
    None, # 0
10336
    (1, TType.I64, 'cartId', None, None, ), # 1
10337
    (2, TType.I64, 'itemId', None, None, ), # 2
10338
    (3, TType.I32, 'status', None, None, ), # 3
10339
  )
10340
 
10341
  def __init__(self, cartId=None, itemId=None, status=None,):
10342
    self.cartId = cartId
10343
    self.itemId = itemId
10344
    self.status = status
10345
 
10346
  def read(self, iprot):
10347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10349
      return
10350
    iprot.readStructBegin()
10351
    while True:
10352
      (fname, ftype, fid) = iprot.readFieldBegin()
10353
      if ftype == TType.STOP:
10354
        break
10355
      if fid == 1:
10356
        if ftype == TType.I64:
10357
          self.cartId = iprot.readI64();
10358
        else:
10359
          iprot.skip(ftype)
10360
      elif fid == 2:
10361
        if ftype == TType.I64:
10362
          self.itemId = iprot.readI64();
10363
        else:
10364
          iprot.skip(ftype)
10365
      elif fid == 3:
10366
        if ftype == TType.I32:
10367
          self.status = iprot.readI32();
10368
        else:
10369
          iprot.skip(ftype)
10370
      else:
10371
        iprot.skip(ftype)
10372
      iprot.readFieldEnd()
10373
    iprot.readStructEnd()
10374
 
10375
  def write(self, oprot):
10376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10378
      return
10379
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10380
    if self.cartId is not None:
559 chandransh 10381
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10382
      oprot.writeI64(self.cartId)
10383
      oprot.writeFieldEnd()
3431 rajveer 10384
    if self.itemId is not None:
559 chandransh 10385
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10386
      oprot.writeI64(self.itemId)
10387
      oprot.writeFieldEnd()
3431 rajveer 10388
    if self.status is not None:
559 chandransh 10389
      oprot.writeFieldBegin('status', TType.I32, 3)
10390
      oprot.writeI32(self.status)
10391
      oprot.writeFieldEnd()
10392
    oprot.writeFieldStop()
10393
    oprot.writeStructEnd()
10394
 
3431 rajveer 10395
  def validate(self):
10396
    return
10397
 
10398
 
559 chandransh 10399
  def __repr__(self):
10400
    L = ['%s=%r' % (key, value)
10401
      for key, value in self.__dict__.iteritems()]
10402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10403
 
10404
  def __eq__(self, other):
10405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10406
 
10407
  def __ne__(self, other):
10408
    return not (self == other)
10409
 
10410
class changeItemStatus_result:
10411
  """
10412
  Attributes:
10413
   - scx
10414
  """
10415
 
10416
  thrift_spec = (
10417
    None, # 0
10418
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10419
  )
10420
 
10421
  def __init__(self, scx=None,):
10422
    self.scx = scx
10423
 
10424
  def read(self, iprot):
10425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10427
      return
10428
    iprot.readStructBegin()
10429
    while True:
10430
      (fname, ftype, fid) = iprot.readFieldBegin()
10431
      if ftype == TType.STOP:
10432
        break
10433
      if fid == 1:
10434
        if ftype == TType.STRUCT:
10435
          self.scx = ShoppingCartException()
10436
          self.scx.read(iprot)
10437
        else:
10438
          iprot.skip(ftype)
10439
      else:
10440
        iprot.skip(ftype)
10441
      iprot.readFieldEnd()
10442
    iprot.readStructEnd()
10443
 
10444
  def write(self, oprot):
10445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10447
      return
10448
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 10449
    if self.scx is not None:
559 chandransh 10450
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10451
      self.scx.write(oprot)
10452
      oprot.writeFieldEnd()
10453
    oprot.writeFieldStop()
10454
    oprot.writeStructEnd()
10455
 
3431 rajveer 10456
  def validate(self):
10457
    return
10458
 
10459
 
559 chandransh 10460
  def __repr__(self):
10461
    L = ['%s=%r' % (key, value)
10462
      for key, value in self.__dict__.iteritems()]
10463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10464
 
10465
  def __eq__(self, other):
10466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10467
 
10468
  def __ne__(self, other):
10469
    return not (self == other)
10470
 
10471
class addAddressToCart_args:
10472
  """
10473
  Attributes:
10474
   - cartId
10475
   - addressId
10476
  """
10477
 
10478
  thrift_spec = (
10479
    None, # 0
10480
    (1, TType.I64, 'cartId', None, None, ), # 1
10481
    (2, TType.I64, 'addressId', None, None, ), # 2
10482
  )
10483
 
10484
  def __init__(self, cartId=None, addressId=None,):
10485
    self.cartId = cartId
10486
    self.addressId = addressId
10487
 
10488
  def read(self, iprot):
10489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10491
      return
10492
    iprot.readStructBegin()
10493
    while True:
10494
      (fname, ftype, fid) = iprot.readFieldBegin()
10495
      if ftype == TType.STOP:
10496
        break
10497
      if fid == 1:
10498
        if ftype == TType.I64:
10499
          self.cartId = iprot.readI64();
10500
        else:
10501
          iprot.skip(ftype)
10502
      elif fid == 2:
10503
        if ftype == TType.I64:
10504
          self.addressId = iprot.readI64();
10505
        else:
10506
          iprot.skip(ftype)
10507
      else:
10508
        iprot.skip(ftype)
10509
      iprot.readFieldEnd()
10510
    iprot.readStructEnd()
10511
 
10512
  def write(self, oprot):
10513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10515
      return
10516
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10517
    if self.cartId is not None:
559 chandransh 10518
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10519
      oprot.writeI64(self.cartId)
10520
      oprot.writeFieldEnd()
3431 rajveer 10521
    if self.addressId is not None:
559 chandransh 10522
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10523
      oprot.writeI64(self.addressId)
10524
      oprot.writeFieldEnd()
10525
    oprot.writeFieldStop()
10526
    oprot.writeStructEnd()
10527
 
3431 rajveer 10528
  def validate(self):
10529
    return
10530
 
10531
 
559 chandransh 10532
  def __repr__(self):
10533
    L = ['%s=%r' % (key, value)
10534
      for key, value in self.__dict__.iteritems()]
10535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10536
 
10537
  def __eq__(self, other):
10538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10539
 
10540
  def __ne__(self, other):
10541
    return not (self == other)
10542
 
10543
class addAddressToCart_result:
575 chandransh 10544
  """
10545
  Attributes:
10546
   - scx
10547
  """
559 chandransh 10548
 
10549
  thrift_spec = (
575 chandransh 10550
    None, # 0
10551
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10552
  )
10553
 
575 chandransh 10554
  def __init__(self, scx=None,):
10555
    self.scx = scx
10556
 
559 chandransh 10557
  def read(self, iprot):
10558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10560
      return
10561
    iprot.readStructBegin()
10562
    while True:
10563
      (fname, ftype, fid) = iprot.readFieldBegin()
10564
      if ftype == TType.STOP:
10565
        break
575 chandransh 10566
      if fid == 1:
10567
        if ftype == TType.STRUCT:
10568
          self.scx = ShoppingCartException()
10569
          self.scx.read(iprot)
10570
        else:
10571
          iprot.skip(ftype)
559 chandransh 10572
      else:
10573
        iprot.skip(ftype)
10574
      iprot.readFieldEnd()
10575
    iprot.readStructEnd()
10576
 
10577
  def write(self, oprot):
10578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10580
      return
10581
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10582
    if self.scx is not None:
575 chandransh 10583
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10584
      self.scx.write(oprot)
10585
      oprot.writeFieldEnd()
559 chandransh 10586
    oprot.writeFieldStop()
10587
    oprot.writeStructEnd()
10588
 
3431 rajveer 10589
  def validate(self):
10590
    return
10591
 
10592
 
559 chandransh 10593
  def __repr__(self):
10594
    L = ['%s=%r' % (key, value)
10595
      for key, value in self.__dict__.iteritems()]
10596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10597
 
10598
  def __eq__(self, other):
10599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10600
 
10601
  def __ne__(self, other):
10602
    return not (self == other)
10603
 
1976 varun.gupt 10604
class applyCouponToCart_args:
10605
  """
10606
  Attributes:
10607
   - cartId
10608
   - couponCode
10609
   - totalPrice
10610
   - discountedPrice
10611
  """
10612
 
10613
  thrift_spec = (
10614
    None, # 0
10615
    (1, TType.I64, 'cartId', None, None, ), # 1
10616
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10617
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10618
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10619
  )
10620
 
10621
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10622
    self.cartId = cartId
10623
    self.couponCode = couponCode
10624
    self.totalPrice = totalPrice
10625
    self.discountedPrice = discountedPrice
10626
 
10627
  def read(self, iprot):
10628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10630
      return
10631
    iprot.readStructBegin()
10632
    while True:
10633
      (fname, ftype, fid) = iprot.readFieldBegin()
10634
      if ftype == TType.STOP:
10635
        break
10636
      if fid == 1:
10637
        if ftype == TType.I64:
10638
          self.cartId = iprot.readI64();
10639
        else:
10640
          iprot.skip(ftype)
10641
      elif fid == 2:
10642
        if ftype == TType.STRING:
10643
          self.couponCode = iprot.readString();
10644
        else:
10645
          iprot.skip(ftype)
10646
      elif fid == 3:
10647
        if ftype == TType.DOUBLE:
10648
          self.totalPrice = iprot.readDouble();
10649
        else:
10650
          iprot.skip(ftype)
10651
      elif fid == 4:
10652
        if ftype == TType.DOUBLE:
10653
          self.discountedPrice = iprot.readDouble();
10654
        else:
10655
          iprot.skip(ftype)
10656
      else:
10657
        iprot.skip(ftype)
10658
      iprot.readFieldEnd()
10659
    iprot.readStructEnd()
10660
 
10661
  def write(self, oprot):
10662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10664
      return
10665
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10666
    if self.cartId is not None:
1976 varun.gupt 10667
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10668
      oprot.writeI64(self.cartId)
10669
      oprot.writeFieldEnd()
3431 rajveer 10670
    if self.couponCode is not None:
1976 varun.gupt 10671
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10672
      oprot.writeString(self.couponCode)
10673
      oprot.writeFieldEnd()
3431 rajveer 10674
    if self.totalPrice is not None:
1976 varun.gupt 10675
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10676
      oprot.writeDouble(self.totalPrice)
10677
      oprot.writeFieldEnd()
3431 rajveer 10678
    if self.discountedPrice is not None:
1976 varun.gupt 10679
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10680
      oprot.writeDouble(self.discountedPrice)
10681
      oprot.writeFieldEnd()
10682
    oprot.writeFieldStop()
10683
    oprot.writeStructEnd()
10684
 
3431 rajveer 10685
  def validate(self):
10686
    return
10687
 
10688
 
1976 varun.gupt 10689
  def __repr__(self):
10690
    L = ['%s=%r' % (key, value)
10691
      for key, value in self.__dict__.iteritems()]
10692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10693
 
10694
  def __eq__(self, other):
10695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10696
 
10697
  def __ne__(self, other):
10698
    return not (self == other)
10699
 
10700
class applyCouponToCart_result:
10701
  """
10702
  Attributes:
10703
   - scx
10704
  """
10705
 
10706
  thrift_spec = (
10707
    None, # 0
10708
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10709
  )
10710
 
10711
  def __init__(self, scx=None,):
10712
    self.scx = scx
10713
 
10714
  def read(self, iprot):
10715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10717
      return
10718
    iprot.readStructBegin()
10719
    while True:
10720
      (fname, ftype, fid) = iprot.readFieldBegin()
10721
      if ftype == TType.STOP:
10722
        break
10723
      if fid == 1:
10724
        if ftype == TType.STRUCT:
10725
          self.scx = ShoppingCartException()
10726
          self.scx.read(iprot)
10727
        else:
10728
          iprot.skip(ftype)
10729
      else:
10730
        iprot.skip(ftype)
10731
      iprot.readFieldEnd()
10732
    iprot.readStructEnd()
10733
 
10734
  def write(self, oprot):
10735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10737
      return
10738
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10739
    if self.scx is not None:
1976 varun.gupt 10740
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10741
      self.scx.write(oprot)
10742
      oprot.writeFieldEnd()
10743
    oprot.writeFieldStop()
10744
    oprot.writeStructEnd()
10745
 
3431 rajveer 10746
  def validate(self):
10747
    return
10748
 
10749
 
1976 varun.gupt 10750
  def __repr__(self):
10751
    L = ['%s=%r' % (key, value)
10752
      for key, value in self.__dict__.iteritems()]
10753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10754
 
10755
  def __eq__(self, other):
10756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10757
 
10758
  def __ne__(self, other):
10759
    return not (self == other)
10760
 
10761
class removeCoupon_args:
10762
  """
10763
  Attributes:
10764
   - cartId
10765
  """
10766
 
10767
  thrift_spec = (
10768
    None, # 0
10769
    (1, TType.I64, 'cartId', None, None, ), # 1
10770
  )
10771
 
10772
  def __init__(self, cartId=None,):
10773
    self.cartId = cartId
10774
 
10775
  def read(self, iprot):
10776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10778
      return
10779
    iprot.readStructBegin()
10780
    while True:
10781
      (fname, ftype, fid) = iprot.readFieldBegin()
10782
      if ftype == TType.STOP:
10783
        break
10784
      if fid == 1:
10785
        if ftype == TType.I64:
10786
          self.cartId = iprot.readI64();
10787
        else:
10788
          iprot.skip(ftype)
10789
      else:
10790
        iprot.skip(ftype)
10791
      iprot.readFieldEnd()
10792
    iprot.readStructEnd()
10793
 
10794
  def write(self, oprot):
10795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10797
      return
10798
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10799
    if self.cartId is not None:
1976 varun.gupt 10800
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10801
      oprot.writeI64(self.cartId)
10802
      oprot.writeFieldEnd()
10803
    oprot.writeFieldStop()
10804
    oprot.writeStructEnd()
10805
 
3431 rajveer 10806
  def validate(self):
10807
    return
10808
 
10809
 
1976 varun.gupt 10810
  def __repr__(self):
10811
    L = ['%s=%r' % (key, value)
10812
      for key, value in self.__dict__.iteritems()]
10813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10814
 
10815
  def __eq__(self, other):
10816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10817
 
10818
  def __ne__(self, other):
10819
    return not (self == other)
10820
 
10821
class removeCoupon_result:
10822
  """
10823
  Attributes:
10824
   - scx
10825
  """
10826
 
10827
  thrift_spec = (
10828
    None, # 0
10829
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10830
  )
10831
 
10832
  def __init__(self, scx=None,):
10833
    self.scx = scx
10834
 
10835
  def read(self, iprot):
10836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10838
      return
10839
    iprot.readStructBegin()
10840
    while True:
10841
      (fname, ftype, fid) = iprot.readFieldBegin()
10842
      if ftype == TType.STOP:
10843
        break
10844
      if fid == 1:
10845
        if ftype == TType.STRUCT:
10846
          self.scx = ShoppingCartException()
10847
          self.scx.read(iprot)
10848
        else:
10849
          iprot.skip(ftype)
10850
      else:
10851
        iprot.skip(ftype)
10852
      iprot.readFieldEnd()
10853
    iprot.readStructEnd()
10854
 
10855
  def write(self, oprot):
10856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10858
      return
10859
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10860
    if self.scx is not None:
1976 varun.gupt 10861
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10862
      self.scx.write(oprot)
10863
      oprot.writeFieldEnd()
10864
    oprot.writeFieldStop()
10865
    oprot.writeStructEnd()
10866
 
3431 rajveer 10867
  def validate(self):
10868
    return
10869
 
10870
 
1976 varun.gupt 10871
  def __repr__(self):
10872
    L = ['%s=%r' % (key, value)
10873
      for key, value in self.__dict__.iteritems()]
10874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10875
 
10876
  def __eq__(self, other):
10877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10878
 
10879
  def __ne__(self, other):
10880
    return not (self == other)
10881
 
3554 varun.gupt 10882
class deleteDiscountsFromCart_args:
10883
  """
10884
  Attributes:
10885
   - cartId
10886
  """
10887
 
10888
  thrift_spec = (
10889
    None, # 0
10890
    (1, TType.I64, 'cartId', None, None, ), # 1
10891
  )
10892
 
10893
  def __init__(self, cartId=None,):
10894
    self.cartId = cartId
10895
 
10896
  def read(self, iprot):
10897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10899
      return
10900
    iprot.readStructBegin()
10901
    while True:
10902
      (fname, ftype, fid) = iprot.readFieldBegin()
10903
      if ftype == TType.STOP:
10904
        break
10905
      if fid == 1:
10906
        if ftype == TType.I64:
10907
          self.cartId = iprot.readI64();
10908
        else:
10909
          iprot.skip(ftype)
10910
      else:
10911
        iprot.skip(ftype)
10912
      iprot.readFieldEnd()
10913
    iprot.readStructEnd()
10914
 
10915
  def write(self, oprot):
10916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10918
      return
10919
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10920
    if self.cartId is not None:
10921
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10922
      oprot.writeI64(self.cartId)
10923
      oprot.writeFieldEnd()
10924
    oprot.writeFieldStop()
10925
    oprot.writeStructEnd()
10926
 
10927
  def validate(self):
10928
    return
10929
 
10930
 
10931
  def __repr__(self):
10932
    L = ['%s=%r' % (key, value)
10933
      for key, value in self.__dict__.iteritems()]
10934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10935
 
10936
  def __eq__(self, other):
10937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10938
 
10939
  def __ne__(self, other):
10940
    return not (self == other)
10941
 
10942
class deleteDiscountsFromCart_result:
10943
  """
10944
  Attributes:
10945
   - scx
10946
  """
10947
 
10948
  thrift_spec = (
10949
    None, # 0
10950
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10951
  )
10952
 
10953
  def __init__(self, scx=None,):
10954
    self.scx = scx
10955
 
10956
  def read(self, iprot):
10957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10959
      return
10960
    iprot.readStructBegin()
10961
    while True:
10962
      (fname, ftype, fid) = iprot.readFieldBegin()
10963
      if ftype == TType.STOP:
10964
        break
10965
      if fid == 1:
10966
        if ftype == TType.STRUCT:
10967
          self.scx = ShoppingCartException()
10968
          self.scx.read(iprot)
10969
        else:
10970
          iprot.skip(ftype)
10971
      else:
10972
        iprot.skip(ftype)
10973
      iprot.readFieldEnd()
10974
    iprot.readStructEnd()
10975
 
10976
  def write(self, oprot):
10977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10979
      return
10980
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10981
    if self.scx is not None:
10982
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10983
      self.scx.write(oprot)
10984
      oprot.writeFieldEnd()
10985
    oprot.writeFieldStop()
10986
    oprot.writeStructEnd()
10987
 
10988
  def validate(self):
10989
    return
10990
 
10991
 
10992
  def __repr__(self):
10993
    L = ['%s=%r' % (key, value)
10994
      for key, value in self.__dict__.iteritems()]
10995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10996
 
10997
  def __eq__(self, other):
10998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10999
 
11000
  def __ne__(self, other):
11001
    return not (self == other)
11002
 
11003
class saveDiscounts_args:
11004
  """
11005
  Attributes:
11006
   - discounts
11007
  """
11008
 
11009
  thrift_spec = (
11010
    None, # 0
11011
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11012
  )
11013
 
11014
  def __init__(self, discounts=None,):
11015
    self.discounts = discounts
11016
 
11017
  def read(self, iprot):
11018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11020
      return
11021
    iprot.readStructBegin()
11022
    while True:
11023
      (fname, ftype, fid) = iprot.readFieldBegin()
11024
      if ftype == TType.STOP:
11025
        break
11026
      if fid == 1:
11027
        if ftype == TType.LIST:
11028
          self.discounts = []
5326 rajveer 11029
          (_etype124, _size121) = iprot.readListBegin()
11030
          for _i125 in xrange(_size121):
11031
            _elem126 = Discount()
11032
            _elem126.read(iprot)
11033
            self.discounts.append(_elem126)
3554 varun.gupt 11034
          iprot.readListEnd()
11035
        else:
11036
          iprot.skip(ftype)
11037
      else:
11038
        iprot.skip(ftype)
11039
      iprot.readFieldEnd()
11040
    iprot.readStructEnd()
11041
 
11042
  def write(self, oprot):
11043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11045
      return
11046
    oprot.writeStructBegin('saveDiscounts_args')
11047
    if self.discounts is not None:
11048
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11049
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 11050
      for iter127 in self.discounts:
11051
        iter127.write(oprot)
3554 varun.gupt 11052
      oprot.writeListEnd()
11053
      oprot.writeFieldEnd()
11054
    oprot.writeFieldStop()
11055
    oprot.writeStructEnd()
11056
 
11057
  def validate(self):
11058
    return
11059
 
11060
 
11061
  def __repr__(self):
11062
    L = ['%s=%r' % (key, value)
11063
      for key, value in self.__dict__.iteritems()]
11064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11065
 
11066
  def __eq__(self, other):
11067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11068
 
11069
  def __ne__(self, other):
11070
    return not (self == other)
11071
 
11072
class saveDiscounts_result:
11073
  """
11074
  Attributes:
11075
   - scx
11076
  """
11077
 
11078
  thrift_spec = (
11079
    None, # 0
11080
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11081
  )
11082
 
11083
  def __init__(self, scx=None,):
11084
    self.scx = scx
11085
 
11086
  def read(self, iprot):
11087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11089
      return
11090
    iprot.readStructBegin()
11091
    while True:
11092
      (fname, ftype, fid) = iprot.readFieldBegin()
11093
      if ftype == TType.STOP:
11094
        break
11095
      if fid == 1:
11096
        if ftype == TType.STRUCT:
11097
          self.scx = ShoppingCartException()
11098
          self.scx.read(iprot)
11099
        else:
11100
          iprot.skip(ftype)
11101
      else:
11102
        iprot.skip(ftype)
11103
      iprot.readFieldEnd()
11104
    iprot.readStructEnd()
11105
 
11106
  def write(self, oprot):
11107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11109
      return
11110
    oprot.writeStructBegin('saveDiscounts_result')
11111
    if self.scx is not None:
11112
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11113
      self.scx.write(oprot)
11114
      oprot.writeFieldEnd()
11115
    oprot.writeFieldStop()
11116
    oprot.writeStructEnd()
11117
 
11118
  def validate(self):
11119
    return
11120
 
11121
 
11122
  def __repr__(self):
11123
    L = ['%s=%r' % (key, value)
11124
      for key, value in self.__dict__.iteritems()]
11125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11126
 
11127
  def __eq__(self, other):
11128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11129
 
11130
  def __ne__(self, other):
11131
    return not (self == other)
11132
 
690 chandransh 11133
class createOrders_args:
559 chandransh 11134
  """
11135
  Attributes:
11136
   - cartId
2815 vikas 11137
   - sessionSource
11138
   - sessionStartTime
3858 vikas 11139
   - firstSource
11140
   - firstSourceTime
5326 rajveer 11141
   - userId
559 chandransh 11142
  """
11143
 
11144
  thrift_spec = (
11145
    None, # 0
11146
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11147
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11148
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11149
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11150
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11151
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 11152
  )
11153
 
5326 rajveer 11154
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 11155
    self.cartId = cartId
2815 vikas 11156
    self.sessionSource = sessionSource
11157
    self.sessionStartTime = sessionStartTime
3858 vikas 11158
    self.firstSource = firstSource
11159
    self.firstSourceTime = firstSourceTime
5326 rajveer 11160
    self.userId = userId
559 chandransh 11161
 
11162
  def read(self, iprot):
11163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11165
      return
11166
    iprot.readStructBegin()
11167
    while True:
11168
      (fname, ftype, fid) = iprot.readFieldBegin()
11169
      if ftype == TType.STOP:
11170
        break
11171
      if fid == 1:
11172
        if ftype == TType.I64:
11173
          self.cartId = iprot.readI64();
11174
        else:
11175
          iprot.skip(ftype)
2815 vikas 11176
      elif fid == 2:
11177
        if ftype == TType.STRING:
11178
          self.sessionSource = iprot.readString();
11179
        else:
11180
          iprot.skip(ftype)
11181
      elif fid == 3:
11182
        if ftype == TType.I64:
11183
          self.sessionStartTime = iprot.readI64();
11184
        else:
11185
          iprot.skip(ftype)
3858 vikas 11186
      elif fid == 4:
11187
        if ftype == TType.STRING:
11188
          self.firstSource = iprot.readString();
11189
        else:
11190
          iprot.skip(ftype)
11191
      elif fid == 5:
11192
        if ftype == TType.I64:
11193
          self.firstSourceTime = iprot.readI64();
11194
        else:
11195
          iprot.skip(ftype)
5326 rajveer 11196
      elif fid == 6:
11197
        if ftype == TType.I64:
11198
          self.userId = iprot.readI64();
11199
        else:
11200
          iprot.skip(ftype)
559 chandransh 11201
      else:
11202
        iprot.skip(ftype)
11203
      iprot.readFieldEnd()
11204
    iprot.readStructEnd()
11205
 
11206
  def write(self, oprot):
11207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11209
      return
690 chandransh 11210
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11211
    if self.cartId is not None:
559 chandransh 11212
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11213
      oprot.writeI64(self.cartId)
11214
      oprot.writeFieldEnd()
3431 rajveer 11215
    if self.sessionSource is not None:
2815 vikas 11216
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11217
      oprot.writeString(self.sessionSource)
11218
      oprot.writeFieldEnd()
3431 rajveer 11219
    if self.sessionStartTime is not None:
2815 vikas 11220
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11221
      oprot.writeI64(self.sessionStartTime)
11222
      oprot.writeFieldEnd()
3858 vikas 11223
    if self.firstSource is not None:
11224
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11225
      oprot.writeString(self.firstSource)
11226
      oprot.writeFieldEnd()
11227
    if self.firstSourceTime is not None:
11228
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11229
      oprot.writeI64(self.firstSourceTime)
11230
      oprot.writeFieldEnd()
5326 rajveer 11231
    if self.userId is not None:
11232
      oprot.writeFieldBegin('userId', TType.I64, 6)
11233
      oprot.writeI64(self.userId)
11234
      oprot.writeFieldEnd()
559 chandransh 11235
    oprot.writeFieldStop()
11236
    oprot.writeStructEnd()
11237
 
3431 rajveer 11238
  def validate(self):
11239
    return
11240
 
11241
 
559 chandransh 11242
  def __repr__(self):
11243
    L = ['%s=%r' % (key, value)
11244
      for key, value in self.__dict__.iteritems()]
11245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11246
 
11247
  def __eq__(self, other):
11248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11249
 
11250
  def __ne__(self, other):
11251
    return not (self == other)
11252
 
690 chandransh 11253
class createOrders_result:
559 chandransh 11254
  """
11255
  Attributes:
94 ashish 11256
   - success
559 chandransh 11257
   - scx
94 ashish 11258
  """
11259
 
11260
  thrift_spec = (
575 chandransh 11261
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11262
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11263
  )
11264
 
559 chandransh 11265
  def __init__(self, success=None, scx=None,):
94 ashish 11266
    self.success = success
559 chandransh 11267
    self.scx = scx
94 ashish 11268
 
11269
  def read(self, iprot):
11270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11272
      return
11273
    iprot.readStructBegin()
11274
    while True:
11275
      (fname, ftype, fid) = iprot.readFieldBegin()
11276
      if ftype == TType.STOP:
11277
        break
11278
      if fid == 0:
575 chandransh 11279
        if ftype == TType.I64:
11280
          self.success = iprot.readI64();
94 ashish 11281
        else:
11282
          iprot.skip(ftype)
11283
      elif fid == 1:
11284
        if ftype == TType.STRUCT:
559 chandransh 11285
          self.scx = ShoppingCartException()
11286
          self.scx.read(iprot)
94 ashish 11287
        else:
11288
          iprot.skip(ftype)
11289
      else:
11290
        iprot.skip(ftype)
11291
      iprot.readFieldEnd()
11292
    iprot.readStructEnd()
11293
 
11294
  def write(self, oprot):
11295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11297
      return
690 chandransh 11298
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11299
    if self.success is not None:
575 chandransh 11300
      oprot.writeFieldBegin('success', TType.I64, 0)
11301
      oprot.writeI64(self.success)
94 ashish 11302
      oprot.writeFieldEnd()
3431 rajveer 11303
    if self.scx is not None:
559 chandransh 11304
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11305
      self.scx.write(oprot)
94 ashish 11306
      oprot.writeFieldEnd()
11307
    oprot.writeFieldStop()
11308
    oprot.writeStructEnd()
11309
 
3431 rajveer 11310
  def validate(self):
11311
    return
11312
 
11313
 
94 ashish 11314
  def __repr__(self):
11315
    L = ['%s=%r' % (key, value)
11316
      for key, value in self.__dict__.iteritems()]
11317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11318
 
11319
  def __eq__(self, other):
11320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11321
 
11322
  def __ne__(self, other):
11323
    return not (self == other)
11324
 
559 chandransh 11325
class validateCart_args:
94 ashish 11326
  """
11327
  Attributes:
559 chandransh 11328
   - cartId
3557 rajveer 11329
   - sourceId
94 ashish 11330
  """
11331
 
11332
  thrift_spec = (
11333
    None, # 0
559 chandransh 11334
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11335
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11336
  )
11337
 
3557 rajveer 11338
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11339
    self.cartId = cartId
3557 rajveer 11340
    self.sourceId = sourceId
94 ashish 11341
 
11342
  def read(self, iprot):
11343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11345
      return
11346
    iprot.readStructBegin()
11347
    while True:
11348
      (fname, ftype, fid) = iprot.readFieldBegin()
11349
      if ftype == TType.STOP:
11350
        break
11351
      if fid == 1:
11352
        if ftype == TType.I64:
559 chandransh 11353
          self.cartId = iprot.readI64();
94 ashish 11354
        else:
11355
          iprot.skip(ftype)
3557 rajveer 11356
      elif fid == 2:
11357
        if ftype == TType.I64:
11358
          self.sourceId = iprot.readI64();
11359
        else:
11360
          iprot.skip(ftype)
94 ashish 11361
      else:
11362
        iprot.skip(ftype)
11363
      iprot.readFieldEnd()
11364
    iprot.readStructEnd()
11365
 
11366
  def write(self, oprot):
11367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11369
      return
559 chandransh 11370
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11371
    if self.cartId is not None:
559 chandransh 11372
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11373
      oprot.writeI64(self.cartId)
94 ashish 11374
      oprot.writeFieldEnd()
3557 rajveer 11375
    if self.sourceId is not None:
11376
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11377
      oprot.writeI64(self.sourceId)
11378
      oprot.writeFieldEnd()
94 ashish 11379
    oprot.writeFieldStop()
11380
    oprot.writeStructEnd()
11381
 
3431 rajveer 11382
  def validate(self):
11383
    return
11384
 
11385
 
94 ashish 11386
  def __repr__(self):
11387
    L = ['%s=%r' % (key, value)
11388
      for key, value in self.__dict__.iteritems()]
11389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11390
 
11391
  def __eq__(self, other):
11392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11393
 
11394
  def __ne__(self, other):
11395
    return not (self == other)
11396
 
559 chandransh 11397
class validateCart_result:
94 ashish 11398
  """
11399
  Attributes:
11400
   - success
575 chandransh 11401
   - scex
94 ashish 11402
  """
11403
 
11404
  thrift_spec = (
1466 ankur.sing 11405
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11406
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11407
  )
11408
 
575 chandransh 11409
  def __init__(self, success=None, scex=None,):
94 ashish 11410
    self.success = success
575 chandransh 11411
    self.scex = scex
94 ashish 11412
 
11413
  def read(self, iprot):
11414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11416
      return
11417
    iprot.readStructBegin()
11418
    while True:
11419
      (fname, ftype, fid) = iprot.readFieldBegin()
11420
      if ftype == TType.STOP:
11421
        break
11422
      if fid == 0:
1466 ankur.sing 11423
        if ftype == TType.STRING:
11424
          self.success = iprot.readString();
94 ashish 11425
        else:
11426
          iprot.skip(ftype)
575 chandransh 11427
      elif fid == 1:
11428
        if ftype == TType.STRUCT:
11429
          self.scex = ShoppingCartException()
11430
          self.scex.read(iprot)
11431
        else:
11432
          iprot.skip(ftype)
94 ashish 11433
      else:
11434
        iprot.skip(ftype)
11435
      iprot.readFieldEnd()
11436
    iprot.readStructEnd()
11437
 
11438
  def write(self, oprot):
11439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11441
      return
559 chandransh 11442
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11443
    if self.success is not None:
1466 ankur.sing 11444
      oprot.writeFieldBegin('success', TType.STRING, 0)
11445
      oprot.writeString(self.success)
94 ashish 11446
      oprot.writeFieldEnd()
3431 rajveer 11447
    if self.scex is not None:
575 chandransh 11448
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11449
      self.scex.write(oprot)
11450
      oprot.writeFieldEnd()
559 chandransh 11451
    oprot.writeFieldStop()
11452
    oprot.writeStructEnd()
11453
 
3431 rajveer 11454
  def validate(self):
11455
    return
11456
 
11457
 
559 chandransh 11458
  def __repr__(self):
11459
    L = ['%s=%r' % (key, value)
11460
      for key, value in self.__dict__.iteritems()]
11461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11462
 
11463
  def __eq__(self, other):
11464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11465
 
11466
  def __ne__(self, other):
11467
    return not (self == other)
11468
 
690 chandransh 11469
class mergeCart_args:
575 chandransh 11470
  """
11471
  Attributes:
690 chandransh 11472
   - fromCartId
11473
   - toCartId
11474
  """
11475
 
11476
  thrift_spec = (
11477
    None, # 0
11478
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11479
    (2, TType.I64, 'toCartId', None, None, ), # 2
11480
  )
11481
 
11482
  def __init__(self, fromCartId=None, toCartId=None,):
11483
    self.fromCartId = fromCartId
11484
    self.toCartId = toCartId
11485
 
11486
  def read(self, iprot):
11487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11489
      return
11490
    iprot.readStructBegin()
11491
    while True:
11492
      (fname, ftype, fid) = iprot.readFieldBegin()
11493
      if ftype == TType.STOP:
11494
        break
11495
      if fid == 1:
11496
        if ftype == TType.I64:
11497
          self.fromCartId = iprot.readI64();
11498
        else:
11499
          iprot.skip(ftype)
11500
      elif fid == 2:
11501
        if ftype == TType.I64:
11502
          self.toCartId = iprot.readI64();
11503
        else:
11504
          iprot.skip(ftype)
11505
      else:
11506
        iprot.skip(ftype)
11507
      iprot.readFieldEnd()
11508
    iprot.readStructEnd()
11509
 
11510
  def write(self, oprot):
11511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11513
      return
11514
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11515
    if self.fromCartId is not None:
690 chandransh 11516
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11517
      oprot.writeI64(self.fromCartId)
11518
      oprot.writeFieldEnd()
3431 rajveer 11519
    if self.toCartId is not None:
690 chandransh 11520
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11521
      oprot.writeI64(self.toCartId)
11522
      oprot.writeFieldEnd()
11523
    oprot.writeFieldStop()
11524
    oprot.writeStructEnd()
11525
 
3431 rajveer 11526
  def validate(self):
11527
    return
11528
 
11529
 
690 chandransh 11530
  def __repr__(self):
11531
    L = ['%s=%r' % (key, value)
11532
      for key, value in self.__dict__.iteritems()]
11533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11534
 
11535
  def __eq__(self, other):
11536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11537
 
11538
  def __ne__(self, other):
11539
    return not (self == other)
11540
 
11541
class mergeCart_result:
11542
 
11543
  thrift_spec = (
11544
  )
11545
 
11546
  def read(self, iprot):
11547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11549
      return
11550
    iprot.readStructBegin()
11551
    while True:
11552
      (fname, ftype, fid) = iprot.readFieldBegin()
11553
      if ftype == TType.STOP:
11554
        break
11555
      else:
11556
        iprot.skip(ftype)
11557
      iprot.readFieldEnd()
11558
    iprot.readStructEnd()
11559
 
11560
  def write(self, oprot):
11561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11563
      return
11564
    oprot.writeStructBegin('mergeCart_result')
11565
    oprot.writeFieldStop()
11566
    oprot.writeStructEnd()
11567
 
3431 rajveer 11568
  def validate(self):
11569
    return
11570
 
11571
 
690 chandransh 11572
  def __repr__(self):
11573
    L = ['%s=%r' % (key, value)
11574
      for key, value in self.__dict__.iteritems()]
11575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11576
 
11577
  def __eq__(self, other):
11578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11579
 
11580
  def __ne__(self, other):
11581
    return not (self == other)
11582
 
11583
class checkOut_args:
11584
  """
11585
  Attributes:
575 chandransh 11586
   - cartId
11587
  """
11588
 
11589
  thrift_spec = (
11590
    None, # 0
11591
    (1, TType.I64, 'cartId', None, None, ), # 1
11592
  )
11593
 
11594
  def __init__(self, cartId=None,):
11595
    self.cartId = cartId
11596
 
11597
  def read(self, iprot):
11598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11600
      return
11601
    iprot.readStructBegin()
11602
    while True:
11603
      (fname, ftype, fid) = iprot.readFieldBegin()
11604
      if ftype == TType.STOP:
11605
        break
11606
      if fid == 1:
11607
        if ftype == TType.I64:
11608
          self.cartId = iprot.readI64();
11609
        else:
11610
          iprot.skip(ftype)
11611
      else:
11612
        iprot.skip(ftype)
11613
      iprot.readFieldEnd()
11614
    iprot.readStructEnd()
11615
 
11616
  def write(self, oprot):
11617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11619
      return
690 chandransh 11620
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11621
    if self.cartId is not None:
575 chandransh 11622
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11623
      oprot.writeI64(self.cartId)
11624
      oprot.writeFieldEnd()
11625
    oprot.writeFieldStop()
11626
    oprot.writeStructEnd()
11627
 
3431 rajveer 11628
  def validate(self):
11629
    return
11630
 
11631
 
575 chandransh 11632
  def __repr__(self):
11633
    L = ['%s=%r' % (key, value)
11634
      for key, value in self.__dict__.iteritems()]
11635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11636
 
11637
  def __eq__(self, other):
11638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11639
 
11640
  def __ne__(self, other):
11641
    return not (self == other)
11642
 
690 chandransh 11643
class checkOut_result:
575 chandransh 11644
  """
11645
  Attributes:
11646
   - success
11647
   - scex
11648
  """
11649
 
11650
  thrift_spec = (
11651
    (0, TType.BOOL, 'success', None, None, ), # 0
11652
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11653
  )
11654
 
11655
  def __init__(self, success=None, scex=None,):
11656
    self.success = success
11657
    self.scex = scex
11658
 
11659
  def read(self, iprot):
11660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11662
      return
11663
    iprot.readStructBegin()
11664
    while True:
11665
      (fname, ftype, fid) = iprot.readFieldBegin()
11666
      if ftype == TType.STOP:
11667
        break
11668
      if fid == 0:
11669
        if ftype == TType.BOOL:
11670
          self.success = iprot.readBool();
11671
        else:
11672
          iprot.skip(ftype)
11673
      elif fid == 1:
11674
        if ftype == TType.STRUCT:
11675
          self.scex = ShoppingCartException()
11676
          self.scex.read(iprot)
11677
        else:
11678
          iprot.skip(ftype)
11679
      else:
11680
        iprot.skip(ftype)
11681
      iprot.readFieldEnd()
11682
    iprot.readStructEnd()
11683
 
11684
  def write(self, oprot):
11685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11687
      return
690 chandransh 11688
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11689
    if self.success is not None:
575 chandransh 11690
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11691
      oprot.writeBool(self.success)
11692
      oprot.writeFieldEnd()
3431 rajveer 11693
    if self.scex is not None:
575 chandransh 11694
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11695
      self.scex.write(oprot)
11696
      oprot.writeFieldEnd()
11697
    oprot.writeFieldStop()
11698
    oprot.writeStructEnd()
11699
 
3431 rajveer 11700
  def validate(self):
11701
    return
11702
 
11703
 
575 chandransh 11704
  def __repr__(self):
11705
    L = ['%s=%r' % (key, value)
11706
      for key, value in self.__dict__.iteritems()]
11707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11708
 
11709
  def __eq__(self, other):
11710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11711
 
11712
  def __ne__(self, other):
11713
    return not (self == other)
11714
 
690 chandransh 11715
class resetCart_args:
559 chandransh 11716
  """
11717
  Attributes:
690 chandransh 11718
   - cartId
11719
   - items
559 chandransh 11720
  """
11721
 
11722
  thrift_spec = (
11723
    None, # 0
690 chandransh 11724
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11725
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11726
  )
11727
 
690 chandransh 11728
  def __init__(self, cartId=None, items=None,):
11729
    self.cartId = cartId
11730
    self.items = items
559 chandransh 11731
 
11732
  def read(self, iprot):
11733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11735
      return
11736
    iprot.readStructBegin()
11737
    while True:
11738
      (fname, ftype, fid) = iprot.readFieldBegin()
11739
      if ftype == TType.STOP:
11740
        break
11741
      if fid == 1:
11742
        if ftype == TType.I64:
690 chandransh 11743
          self.cartId = iprot.readI64();
559 chandransh 11744
        else:
11745
          iprot.skip(ftype)
11746
      elif fid == 2:
690 chandransh 11747
        if ftype == TType.MAP:
11748
          self.items = {}
5326 rajveer 11749
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11750
          for _i132 in xrange(_size128):
11751
            _key133 = iprot.readI64();
11752
            _val134 = iprot.readDouble();
11753
            self.items[_key133] = _val134
690 chandransh 11754
          iprot.readMapEnd()
559 chandransh 11755
        else:
11756
          iprot.skip(ftype)
11757
      else:
11758
        iprot.skip(ftype)
11759
      iprot.readFieldEnd()
11760
    iprot.readStructEnd()
11761
 
11762
  def write(self, oprot):
11763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11765
      return
690 chandransh 11766
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11767
    if self.cartId is not None:
690 chandransh 11768
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11769
      oprot.writeI64(self.cartId)
94 ashish 11770
      oprot.writeFieldEnd()
3431 rajveer 11771
    if self.items is not None:
690 chandransh 11772
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11773
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11774
      for kiter135,viter136 in self.items.items():
11775
        oprot.writeI64(kiter135)
11776
        oprot.writeDouble(viter136)
690 chandransh 11777
      oprot.writeMapEnd()
559 chandransh 11778
      oprot.writeFieldEnd()
94 ashish 11779
    oprot.writeFieldStop()
11780
    oprot.writeStructEnd()
11781
 
3431 rajveer 11782
  def validate(self):
11783
    return
11784
 
11785
 
94 ashish 11786
  def __repr__(self):
11787
    L = ['%s=%r' % (key, value)
11788
      for key, value in self.__dict__.iteritems()]
11789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11790
 
11791
  def __eq__(self, other):
11792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11793
 
11794
  def __ne__(self, other):
11795
    return not (self == other)
11796
 
690 chandransh 11797
class resetCart_result:
11798
  """
11799
  Attributes:
11800
   - success
11801
   - scex
11802
  """
559 chandransh 11803
 
11804
  thrift_spec = (
690 chandransh 11805
    (0, TType.BOOL, 'success', None, None, ), # 0
11806
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11807
  )
11808
 
690 chandransh 11809
  def __init__(self, success=None, scex=None,):
11810
    self.success = success
11811
    self.scex = scex
11812
 
559 chandransh 11813
  def read(self, iprot):
11814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11816
      return
11817
    iprot.readStructBegin()
11818
    while True:
11819
      (fname, ftype, fid) = iprot.readFieldBegin()
11820
      if ftype == TType.STOP:
11821
        break
690 chandransh 11822
      if fid == 0:
11823
        if ftype == TType.BOOL:
11824
          self.success = iprot.readBool();
11825
        else:
11826
          iprot.skip(ftype)
11827
      elif fid == 1:
11828
        if ftype == TType.STRUCT:
11829
          self.scex = ShoppingCartException()
11830
          self.scex.read(iprot)
11831
        else:
11832
          iprot.skip(ftype)
559 chandransh 11833
      else:
11834
        iprot.skip(ftype)
11835
      iprot.readFieldEnd()
11836
    iprot.readStructEnd()
11837
 
11838
  def write(self, oprot):
11839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11841
      return
690 chandransh 11842
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11843
    if self.success is not None:
690 chandransh 11844
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11845
      oprot.writeBool(self.success)
11846
      oprot.writeFieldEnd()
3431 rajveer 11847
    if self.scex is not None:
690 chandransh 11848
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11849
      self.scex.write(oprot)
11850
      oprot.writeFieldEnd()
559 chandransh 11851
    oprot.writeFieldStop()
11852
    oprot.writeStructEnd()
11853
 
3431 rajveer 11854
  def validate(self):
11855
    return
11856
 
11857
 
559 chandransh 11858
  def __repr__(self):
11859
    L = ['%s=%r' % (key, value)
11860
      for key, value in self.__dict__.iteritems()]
11861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11862
 
11863
  def __eq__(self, other):
11864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11865
 
11866
  def __ne__(self, other):
11867
    return not (self == other)
11868
 
2981 rajveer 11869
class getUserCount_args:
94 ashish 11870
  """
11871
  Attributes:
2981 rajveer 11872
   - userType
559 chandransh 11873
  """
11874
 
11875
  thrift_spec = (
11876
    None, # 0
2981 rajveer 11877
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11878
  )
11879
 
2981 rajveer 11880
  def __init__(self, userType=None,):
11881
    self.userType = userType
559 chandransh 11882
 
11883
  def read(self, iprot):
11884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11886
      return
11887
    iprot.readStructBegin()
11888
    while True:
11889
      (fname, ftype, fid) = iprot.readFieldBegin()
11890
      if ftype == TType.STOP:
11891
        break
11892
      if fid == 1:
2981 rajveer 11893
        if ftype == TType.I32:
11894
          self.userType = iprot.readI32();
559 chandransh 11895
        else:
11896
          iprot.skip(ftype)
11897
      else:
11898
        iprot.skip(ftype)
11899
      iprot.readFieldEnd()
11900
    iprot.readStructEnd()
11901
 
11902
  def write(self, oprot):
11903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11905
      return
2981 rajveer 11906
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11907
    if self.userType is not None:
2981 rajveer 11908
      oprot.writeFieldBegin('userType', TType.I32, 1)
11909
      oprot.writeI32(self.userType)
559 chandransh 11910
      oprot.writeFieldEnd()
11911
    oprot.writeFieldStop()
11912
    oprot.writeStructEnd()
11913
 
3431 rajveer 11914
  def validate(self):
11915
    return
11916
 
11917
 
559 chandransh 11918
  def __repr__(self):
11919
    L = ['%s=%r' % (key, value)
11920
      for key, value in self.__dict__.iteritems()]
11921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11922
 
11923
  def __eq__(self, other):
11924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11925
 
11926
  def __ne__(self, other):
11927
    return not (self == other)
11928
 
2981 rajveer 11929
class getUserCount_result:
94 ashish 11930
  """
11931
  Attributes:
11932
   - success
11933
  """
11934
 
11935
  thrift_spec = (
2981 rajveer 11936
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11937
  )
11938
 
2981 rajveer 11939
  def __init__(self, success=None,):
94 ashish 11940
    self.success = success
11941
 
11942
  def read(self, iprot):
11943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11945
      return
11946
    iprot.readStructBegin()
11947
    while True:
11948
      (fname, ftype, fid) = iprot.readFieldBegin()
11949
      if ftype == TType.STOP:
11950
        break
11951
      if fid == 0:
2981 rajveer 11952
        if ftype == TType.I64:
11953
          self.success = iprot.readI64();
94 ashish 11954
        else:
11955
          iprot.skip(ftype)
11956
      else:
11957
        iprot.skip(ftype)
11958
      iprot.readFieldEnd()
11959
    iprot.readStructEnd()
11960
 
11961
  def write(self, oprot):
11962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11964
      return
2981 rajveer 11965
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11966
    if self.success is not None:
2981 rajveer 11967
      oprot.writeFieldBegin('success', TType.I64, 0)
11968
      oprot.writeI64(self.success)
94 ashish 11969
      oprot.writeFieldEnd()
11970
    oprot.writeFieldStop()
11971
    oprot.writeStructEnd()
11972
 
3431 rajveer 11973
  def validate(self):
11974
    return
11975
 
11976
 
94 ashish 11977
  def __repr__(self):
11978
    L = ['%s=%r' % (key, value)
11979
      for key, value in self.__dict__.iteritems()]
11980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11981
 
11982
  def __eq__(self, other):
11983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11984
 
11985
  def __ne__(self, other):
11986
    return not (self == other)
11987
 
2981 rajveer 11988
class getAllUsers_args:
94 ashish 11989
  """
11990
  Attributes:
2981 rajveer 11991
   - userType
11992
   - startDate
11993
   - endDate
94 ashish 11994
  """
11995
 
11996
  thrift_spec = (
11997
    None, # 0
2981 rajveer 11998
    (1, TType.I32, 'userType', None, None, ), # 1
11999
    (2, TType.I64, 'startDate', None, None, ), # 2
12000
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12001
  )
12002
 
2981 rajveer 12003
  def __init__(self, userType=None, startDate=None, endDate=None,):
12004
    self.userType = userType
12005
    self.startDate = startDate
12006
    self.endDate = endDate
94 ashish 12007
 
12008
  def read(self, iprot):
12009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12011
      return
12012
    iprot.readStructBegin()
12013
    while True:
12014
      (fname, ftype, fid) = iprot.readFieldBegin()
12015
      if ftype == TType.STOP:
12016
        break
12017
      if fid == 1:
2981 rajveer 12018
        if ftype == TType.I32:
12019
          self.userType = iprot.readI32();
94 ashish 12020
        else:
12021
          iprot.skip(ftype)
12022
      elif fid == 2:
559 chandransh 12023
        if ftype == TType.I64:
2981 rajveer 12024
          self.startDate = iprot.readI64();
94 ashish 12025
        else:
12026
          iprot.skip(ftype)
2981 rajveer 12027
      elif fid == 3:
12028
        if ftype == TType.I64:
12029
          self.endDate = iprot.readI64();
12030
        else:
12031
          iprot.skip(ftype)
94 ashish 12032
      else:
12033
        iprot.skip(ftype)
12034
      iprot.readFieldEnd()
12035
    iprot.readStructEnd()
12036
 
12037
  def write(self, oprot):
12038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12040
      return
2981 rajveer 12041
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12042
    if self.userType is not None:
2981 rajveer 12043
      oprot.writeFieldBegin('userType', TType.I32, 1)
12044
      oprot.writeI32(self.userType)
94 ashish 12045
      oprot.writeFieldEnd()
3431 rajveer 12046
    if self.startDate is not None:
2981 rajveer 12047
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12048
      oprot.writeI64(self.startDate)
94 ashish 12049
      oprot.writeFieldEnd()
3431 rajveer 12050
    if self.endDate is not None:
2981 rajveer 12051
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12052
      oprot.writeI64(self.endDate)
12053
      oprot.writeFieldEnd()
94 ashish 12054
    oprot.writeFieldStop()
12055
    oprot.writeStructEnd()
12056
 
3431 rajveer 12057
  def validate(self):
12058
    return
12059
 
12060
 
94 ashish 12061
  def __repr__(self):
12062
    L = ['%s=%r' % (key, value)
12063
      for key, value in self.__dict__.iteritems()]
12064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12065
 
12066
  def __eq__(self, other):
12067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12068
 
12069
  def __ne__(self, other):
12070
    return not (self == other)
12071
 
2981 rajveer 12072
class getAllUsers_result:
94 ashish 12073
  """
12074
  Attributes:
12075
   - success
12076
  """
12077
 
12078
  thrift_spec = (
2981 rajveer 12079
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12080
  )
12081
 
2981 rajveer 12082
  def __init__(self, success=None,):
94 ashish 12083
    self.success = success
12084
 
12085
  def read(self, iprot):
12086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12088
      return
12089
    iprot.readStructBegin()
12090
    while True:
12091
      (fname, ftype, fid) = iprot.readFieldBegin()
12092
      if ftype == TType.STOP:
12093
        break
12094
      if fid == 0:
2981 rajveer 12095
        if ftype == TType.LIST:
12096
          self.success = []
5326 rajveer 12097
          (_etype140, _size137) = iprot.readListBegin()
12098
          for _i141 in xrange(_size137):
12099
            _elem142 = User()
12100
            _elem142.read(iprot)
12101
            self.success.append(_elem142)
2981 rajveer 12102
          iprot.readListEnd()
94 ashish 12103
        else:
12104
          iprot.skip(ftype)
12105
      else:
12106
        iprot.skip(ftype)
12107
      iprot.readFieldEnd()
12108
    iprot.readStructEnd()
12109
 
12110
  def write(self, oprot):
12111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12113
      return
2981 rajveer 12114
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12115
    if self.success is not None:
2981 rajveer 12116
      oprot.writeFieldBegin('success', TType.LIST, 0)
12117
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12118
      for iter143 in self.success:
12119
        iter143.write(oprot)
2981 rajveer 12120
      oprot.writeListEnd()
94 ashish 12121
      oprot.writeFieldEnd()
12122
    oprot.writeFieldStop()
12123
    oprot.writeStructEnd()
12124
 
3431 rajveer 12125
  def validate(self):
12126
    return
12127
 
12128
 
94 ashish 12129
  def __repr__(self):
12130
    L = ['%s=%r' % (key, value)
12131
      for key, value in self.__dict__.iteritems()]
12132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12133
 
12134
  def __eq__(self, other):
12135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12136
 
12137
  def __ne__(self, other):
12138
    return not (self == other)
12139
 
2981 rajveer 12140
class putUserNote_args:
130 ashish 12141
  """
12142
  Attributes:
2981 rajveer 12143
   - user_id
12144
   - entity_id
12145
   - slide
12146
   - note
130 ashish 12147
  """
94 ashish 12148
 
130 ashish 12149
  thrift_spec = (
12150
    None, # 0
2981 rajveer 12151
    (1, TType.I64, 'user_id', None, None, ), # 1
12152
    (2, TType.I64, 'entity_id', None, None, ), # 2
12153
    (3, TType.STRING, 'slide', None, None, ), # 3
12154
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12155
  )
12156
 
2981 rajveer 12157
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12158
    self.user_id = user_id
12159
    self.entity_id = entity_id
12160
    self.slide = slide
12161
    self.note = note
130 ashish 12162
 
12163
  def read(self, iprot):
12164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12166
      return
12167
    iprot.readStructBegin()
12168
    while True:
12169
      (fname, ftype, fid) = iprot.readFieldBegin()
12170
      if ftype == TType.STOP:
12171
        break
12172
      if fid == 1:
12173
        if ftype == TType.I64:
2981 rajveer 12174
          self.user_id = iprot.readI64();
130 ashish 12175
        else:
12176
          iprot.skip(ftype)
559 chandransh 12177
      elif fid == 2:
12178
        if ftype == TType.I64:
2981 rajveer 12179
          self.entity_id = iprot.readI64();
559 chandransh 12180
        else:
12181
          iprot.skip(ftype)
2981 rajveer 12182
      elif fid == 3:
12183
        if ftype == TType.STRING:
12184
          self.slide = iprot.readString();
12185
        else:
12186
          iprot.skip(ftype)
12187
      elif fid == 4:
12188
        if ftype == TType.STRING:
12189
          self.note = iprot.readString();
12190
        else:
12191
          iprot.skip(ftype)
130 ashish 12192
      else:
12193
        iprot.skip(ftype)
12194
      iprot.readFieldEnd()
12195
    iprot.readStructEnd()
12196
 
12197
  def write(self, oprot):
12198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12200
      return
2981 rajveer 12201
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12202
    if self.user_id is not None:
2981 rajveer 12203
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12204
      oprot.writeI64(self.user_id)
130 ashish 12205
      oprot.writeFieldEnd()
3431 rajveer 12206
    if self.entity_id is not None:
2981 rajveer 12207
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12208
      oprot.writeI64(self.entity_id)
559 chandransh 12209
      oprot.writeFieldEnd()
3431 rajveer 12210
    if self.slide is not None:
2981 rajveer 12211
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12212
      oprot.writeString(self.slide)
12213
      oprot.writeFieldEnd()
3431 rajveer 12214
    if self.note is not None:
2981 rajveer 12215
      oprot.writeFieldBegin('note', TType.STRING, 4)
12216
      oprot.writeString(self.note)
12217
      oprot.writeFieldEnd()
130 ashish 12218
    oprot.writeFieldStop()
12219
    oprot.writeStructEnd()
12220
 
3431 rajveer 12221
  def validate(self):
12222
    return
12223
 
12224
 
130 ashish 12225
  def __repr__(self):
12226
    L = ['%s=%r' % (key, value)
12227
      for key, value in self.__dict__.iteritems()]
12228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12229
 
12230
  def __eq__(self, other):
12231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12232
 
12233
  def __ne__(self, other):
12234
    return not (self == other)
12235
 
2981 rajveer 12236
class putUserNote_result:
559 chandransh 12237
 
12238
  thrift_spec = (
12239
  )
12240
 
12241
  def read(self, iprot):
12242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12244
      return
12245
    iprot.readStructBegin()
12246
    while True:
12247
      (fname, ftype, fid) = iprot.readFieldBegin()
12248
      if ftype == TType.STOP:
12249
        break
12250
      else:
12251
        iprot.skip(ftype)
12252
      iprot.readFieldEnd()
12253
    iprot.readStructEnd()
12254
 
12255
  def write(self, oprot):
12256
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12257
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12258
      return
2981 rajveer 12259
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12260
    oprot.writeFieldStop()
12261
    oprot.writeStructEnd()
12262
 
3431 rajveer 12263
  def validate(self):
12264
    return
12265
 
12266
 
559 chandransh 12267
  def __repr__(self):
12268
    L = ['%s=%r' % (key, value)
12269
      for key, value in self.__dict__.iteritems()]
12270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12271
 
12272
  def __eq__(self, other):
12273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12274
 
12275
  def __ne__(self, other):
12276
    return not (self == other)
12277
 
2981 rajveer 12278
class getUserNotes_args:
559 chandransh 12279
  """
12280
  Attributes:
2981 rajveer 12281
   - user_id
12282
   - entity_id
559 chandransh 12283
  """
12284
 
12285
  thrift_spec = (
12286
    None, # 0
2981 rajveer 12287
    (1, TType.I64, 'user_id', None, None, ), # 1
12288
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12289
  )
12290
 
2981 rajveer 12291
  def __init__(self, user_id=None, entity_id=None,):
12292
    self.user_id = user_id
12293
    self.entity_id = entity_id
559 chandransh 12294
 
12295
  def read(self, iprot):
12296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12298
      return
12299
    iprot.readStructBegin()
12300
    while True:
12301
      (fname, ftype, fid) = iprot.readFieldBegin()
12302
      if ftype == TType.STOP:
12303
        break
12304
      if fid == 1:
12305
        if ftype == TType.I64:
2981 rajveer 12306
          self.user_id = iprot.readI64();
559 chandransh 12307
        else:
12308
          iprot.skip(ftype)
12309
      elif fid == 2:
12310
        if ftype == TType.I64:
2981 rajveer 12311
          self.entity_id = iprot.readI64();
559 chandransh 12312
        else:
12313
          iprot.skip(ftype)
12314
      else:
12315
        iprot.skip(ftype)
12316
      iprot.readFieldEnd()
12317
    iprot.readStructEnd()
12318
 
12319
  def write(self, oprot):
12320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12322
      return
2981 rajveer 12323
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12324
    if self.user_id is not None:
2981 rajveer 12325
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12326
      oprot.writeI64(self.user_id)
559 chandransh 12327
      oprot.writeFieldEnd()
3431 rajveer 12328
    if self.entity_id is not None:
2981 rajveer 12329
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12330
      oprot.writeI64(self.entity_id)
559 chandransh 12331
      oprot.writeFieldEnd()
12332
    oprot.writeFieldStop()
12333
    oprot.writeStructEnd()
12334
 
3431 rajveer 12335
  def validate(self):
12336
    return
12337
 
12338
 
559 chandransh 12339
  def __repr__(self):
12340
    L = ['%s=%r' % (key, value)
12341
      for key, value in self.__dict__.iteritems()]
12342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12343
 
12344
  def __eq__(self, other):
12345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12346
 
12347
  def __ne__(self, other):
12348
    return not (self == other)
12349
 
2981 rajveer 12350
class getUserNotes_result:
12351
  """
12352
  Attributes:
12353
   - success
12354
  """
559 chandransh 12355
 
12356
  thrift_spec = (
2981 rajveer 12357
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12358
  )
12359
 
2981 rajveer 12360
  def __init__(self, success=None,):
12361
    self.success = success
12362
 
559 chandransh 12363
  def read(self, iprot):
12364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12366
      return
12367
    iprot.readStructBegin()
12368
    while True:
12369
      (fname, ftype, fid) = iprot.readFieldBegin()
12370
      if ftype == TType.STOP:
12371
        break
2981 rajveer 12372
      if fid == 0:
12373
        if ftype == TType.LIST:
12374
          self.success = []
5326 rajveer 12375
          (_etype147, _size144) = iprot.readListBegin()
12376
          for _i148 in xrange(_size144):
12377
            _elem149 = UserNote()
12378
            _elem149.read(iprot)
12379
            self.success.append(_elem149)
2981 rajveer 12380
          iprot.readListEnd()
12381
        else:
12382
          iprot.skip(ftype)
559 chandransh 12383
      else:
12384
        iprot.skip(ftype)
12385
      iprot.readFieldEnd()
12386
    iprot.readStructEnd()
12387
 
12388
  def write(self, oprot):
12389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12391
      return
2981 rajveer 12392
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12393
    if self.success is not None:
2981 rajveer 12394
      oprot.writeFieldBegin('success', TType.LIST, 0)
12395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12396
      for iter150 in self.success:
12397
        iter150.write(oprot)
2981 rajveer 12398
      oprot.writeListEnd()
12399
      oprot.writeFieldEnd()
559 chandransh 12400
    oprot.writeFieldStop()
12401
    oprot.writeStructEnd()
12402
 
3431 rajveer 12403
  def validate(self):
12404
    return
12405
 
12406
 
559 chandransh 12407
  def __repr__(self):
12408
    L = ['%s=%r' % (key, value)
12409
      for key, value in self.__dict__.iteritems()]
12410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12411
 
12412
  def __eq__(self, other):
12413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12414
 
12415
  def __ne__(self, other):
12416
    return not (self == other)
12417
 
2981 rajveer 12418
class getMyResearchItems_args:
559 chandransh 12419
  """
12420
  Attributes:
772 rajveer 12421
   - userId
559 chandransh 12422
  """
12423
 
12424
  thrift_spec = (
12425
    None, # 0
772 rajveer 12426
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12427
  )
12428
 
772 rajveer 12429
  def __init__(self, userId=None,):
12430
    self.userId = userId
559 chandransh 12431
 
12432
  def read(self, iprot):
12433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12435
      return
12436
    iprot.readStructBegin()
12437
    while True:
12438
      (fname, ftype, fid) = iprot.readFieldBegin()
12439
      if ftype == TType.STOP:
12440
        break
12441
      if fid == 1:
12442
        if ftype == TType.I64:
772 rajveer 12443
          self.userId = iprot.readI64();
559 chandransh 12444
        else:
12445
          iprot.skip(ftype)
12446
      else:
12447
        iprot.skip(ftype)
12448
      iprot.readFieldEnd()
12449
    iprot.readStructEnd()
12450
 
12451
  def write(self, oprot):
12452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12454
      return
2981 rajveer 12455
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12456
    if self.userId is not None:
772 rajveer 12457
      oprot.writeFieldBegin('userId', TType.I64, 1)
12458
      oprot.writeI64(self.userId)
559 chandransh 12459
      oprot.writeFieldEnd()
12460
    oprot.writeFieldStop()
12461
    oprot.writeStructEnd()
12462
 
3431 rajveer 12463
  def validate(self):
12464
    return
12465
 
12466
 
559 chandransh 12467
  def __repr__(self):
12468
    L = ['%s=%r' % (key, value)
12469
      for key, value in self.__dict__.iteritems()]
12470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12471
 
12472
  def __eq__(self, other):
12473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12474
 
12475
  def __ne__(self, other):
12476
    return not (self == other)
12477
 
2981 rajveer 12478
class getMyResearchItems_result:
559 chandransh 12479
  """
12480
  Attributes:
130 ashish 12481
   - success
559 chandransh 12482
   - scx
130 ashish 12483
  """
12484
 
12485
  thrift_spec = (
2981 rajveer 12486
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12487
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12488
  )
12489
 
559 chandransh 12490
  def __init__(self, success=None, scx=None,):
130 ashish 12491
    self.success = success
559 chandransh 12492
    self.scx = scx
130 ashish 12493
 
12494
  def read(self, iprot):
12495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12497
      return
12498
    iprot.readStructBegin()
12499
    while True:
12500
      (fname, ftype, fid) = iprot.readFieldBegin()
12501
      if ftype == TType.STOP:
12502
        break
12503
      if fid == 0:
2981 rajveer 12504
        if ftype == TType.LIST:
12505
          self.success = []
5326 rajveer 12506
          (_etype154, _size151) = iprot.readListBegin()
12507
          for _i155 in xrange(_size151):
12508
            _elem156 = iprot.readI64();
12509
            self.success.append(_elem156)
2981 rajveer 12510
          iprot.readListEnd()
130 ashish 12511
        else:
12512
          iprot.skip(ftype)
12513
      elif fid == 1:
12514
        if ftype == TType.STRUCT:
559 chandransh 12515
          self.scx = WidgetException()
12516
          self.scx.read(iprot)
130 ashish 12517
        else:
12518
          iprot.skip(ftype)
12519
      else:
12520
        iprot.skip(ftype)
12521
      iprot.readFieldEnd()
12522
    iprot.readStructEnd()
12523
 
12524
  def write(self, oprot):
12525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12527
      return
2981 rajveer 12528
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12529
    if self.success is not None:
2981 rajveer 12530
      oprot.writeFieldBegin('success', TType.LIST, 0)
12531
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12532
      for iter157 in self.success:
12533
        oprot.writeI64(iter157)
2981 rajveer 12534
      oprot.writeListEnd()
130 ashish 12535
      oprot.writeFieldEnd()
3431 rajveer 12536
    if self.scx is not None:
559 chandransh 12537
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12538
      self.scx.write(oprot)
130 ashish 12539
      oprot.writeFieldEnd()
12540
    oprot.writeFieldStop()
12541
    oprot.writeStructEnd()
12542
 
3431 rajveer 12543
  def validate(self):
12544
    return
12545
 
12546
 
130 ashish 12547
  def __repr__(self):
12548
    L = ['%s=%r' % (key, value)
12549
      for key, value in self.__dict__.iteritems()]
12550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12551
 
12552
  def __eq__(self, other):
12553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12554
 
12555
  def __ne__(self, other):
12556
    return not (self == other)
12557
 
2981 rajveer 12558
class updateMyResearch_args:
130 ashish 12559
  """
12560
  Attributes:
2981 rajveer 12561
   - userId
12562
   - itemId
130 ashish 12563
  """
12564
 
12565
  thrift_spec = (
12566
    None, # 0
2981 rajveer 12567
    (1, TType.I64, 'userId', None, None, ), # 1
12568
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12569
  )
12570
 
2981 rajveer 12571
  def __init__(self, userId=None, itemId=None,):
12572
    self.userId = userId
12573
    self.itemId = itemId
130 ashish 12574
 
12575
  def read(self, iprot):
12576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12578
      return
12579
    iprot.readStructBegin()
12580
    while True:
12581
      (fname, ftype, fid) = iprot.readFieldBegin()
12582
      if ftype == TType.STOP:
12583
        break
12584
      if fid == 1:
559 chandransh 12585
        if ftype == TType.I64:
2981 rajveer 12586
          self.userId = iprot.readI64();
130 ashish 12587
        else:
12588
          iprot.skip(ftype)
12589
      elif fid == 2:
559 chandransh 12590
        if ftype == TType.I64:
2981 rajveer 12591
          self.itemId = iprot.readI64();
559 chandransh 12592
        else:
12593
          iprot.skip(ftype)
130 ashish 12594
      else:
12595
        iprot.skip(ftype)
12596
      iprot.readFieldEnd()
12597
    iprot.readStructEnd()
12598
 
12599
  def write(self, oprot):
12600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12602
      return
2981 rajveer 12603
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12604
    if self.userId is not None:
2981 rajveer 12605
      oprot.writeFieldBegin('userId', TType.I64, 1)
12606
      oprot.writeI64(self.userId)
130 ashish 12607
      oprot.writeFieldEnd()
3431 rajveer 12608
    if self.itemId is not None:
2981 rajveer 12609
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12610
      oprot.writeI64(self.itemId)
130 ashish 12611
      oprot.writeFieldEnd()
12612
    oprot.writeFieldStop()
12613
    oprot.writeStructEnd()
12614
 
3431 rajveer 12615
  def validate(self):
12616
    return
12617
 
12618
 
130 ashish 12619
  def __repr__(self):
12620
    L = ['%s=%r' % (key, value)
12621
      for key, value in self.__dict__.iteritems()]
12622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12623
 
12624
  def __eq__(self, other):
12625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12626
 
12627
  def __ne__(self, other):
12628
    return not (self == other)
12629
 
2981 rajveer 12630
class updateMyResearch_result:
12631
  """
12632
  Attributes:
12633
   - success
12634
   - scx
12635
  """
559 chandransh 12636
 
12637
  thrift_spec = (
2981 rajveer 12638
    (0, TType.BOOL, 'success', None, None, ), # 0
12639
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12640
  )
12641
 
2981 rajveer 12642
  def __init__(self, success=None, scx=None,):
12643
    self.success = success
12644
    self.scx = scx
12645
 
559 chandransh 12646
  def read(self, iprot):
12647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12649
      return
12650
    iprot.readStructBegin()
12651
    while True:
12652
      (fname, ftype, fid) = iprot.readFieldBegin()
12653
      if ftype == TType.STOP:
12654
        break
2981 rajveer 12655
      if fid == 0:
12656
        if ftype == TType.BOOL:
12657
          self.success = iprot.readBool();
12658
        else:
12659
          iprot.skip(ftype)
12660
      elif fid == 1:
12661
        if ftype == TType.STRUCT:
12662
          self.scx = WidgetException()
12663
          self.scx.read(iprot)
12664
        else:
12665
          iprot.skip(ftype)
559 chandransh 12666
      else:
12667
        iprot.skip(ftype)
12668
      iprot.readFieldEnd()
12669
    iprot.readStructEnd()
12670
 
12671
  def write(self, oprot):
12672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12674
      return
2981 rajveer 12675
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12676
    if self.success is not None:
2981 rajveer 12677
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12678
      oprot.writeBool(self.success)
12679
      oprot.writeFieldEnd()
3431 rajveer 12680
    if self.scx is not None:
2981 rajveer 12681
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12682
      self.scx.write(oprot)
12683
      oprot.writeFieldEnd()
559 chandransh 12684
    oprot.writeFieldStop()
12685
    oprot.writeStructEnd()
12686
 
3431 rajveer 12687
  def validate(self):
12688
    return
12689
 
12690
 
559 chandransh 12691
  def __repr__(self):
12692
    L = ['%s=%r' % (key, value)
12693
      for key, value in self.__dict__.iteritems()]
12694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12695
 
12696
  def __eq__(self, other):
12697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12698
 
12699
  def __ne__(self, other):
12700
    return not (self == other)
12701
 
2981 rajveer 12702
class deleteItemFromMyResearch_args:
1596 ankur.sing 12703
  """
12704
  Attributes:
2981 rajveer 12705
   - userId
12706
   - itemId
1596 ankur.sing 12707
  """
559 chandransh 12708
 
1596 ankur.sing 12709
  thrift_spec = (
12710
    None, # 0
2981 rajveer 12711
    (1, TType.I64, 'userId', None, None, ), # 1
12712
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12713
  )
12714
 
2981 rajveer 12715
  def __init__(self, userId=None, itemId=None,):
12716
    self.userId = userId
12717
    self.itemId = itemId
1596 ankur.sing 12718
 
12719
  def read(self, iprot):
12720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12722
      return
12723
    iprot.readStructBegin()
12724
    while True:
12725
      (fname, ftype, fid) = iprot.readFieldBegin()
12726
      if ftype == TType.STOP:
12727
        break
12728
      if fid == 1:
2981 rajveer 12729
        if ftype == TType.I64:
12730
          self.userId = iprot.readI64();
1596 ankur.sing 12731
        else:
12732
          iprot.skip(ftype)
2981 rajveer 12733
      elif fid == 2:
12734
        if ftype == TType.I64:
12735
          self.itemId = iprot.readI64();
12736
        else:
12737
          iprot.skip(ftype)
1596 ankur.sing 12738
      else:
12739
        iprot.skip(ftype)
12740
      iprot.readFieldEnd()
12741
    iprot.readStructEnd()
12742
 
12743
  def write(self, oprot):
12744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12746
      return
2981 rajveer 12747
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12748
    if self.userId is not None:
2981 rajveer 12749
      oprot.writeFieldBegin('userId', TType.I64, 1)
12750
      oprot.writeI64(self.userId)
1596 ankur.sing 12751
      oprot.writeFieldEnd()
3431 rajveer 12752
    if self.itemId is not None:
2981 rajveer 12753
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12754
      oprot.writeI64(self.itemId)
12755
      oprot.writeFieldEnd()
1596 ankur.sing 12756
    oprot.writeFieldStop()
12757
    oprot.writeStructEnd()
12758
 
3431 rajveer 12759
  def validate(self):
12760
    return
12761
 
12762
 
1596 ankur.sing 12763
  def __repr__(self):
12764
    L = ['%s=%r' % (key, value)
12765
      for key, value in self.__dict__.iteritems()]
12766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12767
 
12768
  def __eq__(self, other):
12769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12770
 
12771
  def __ne__(self, other):
12772
    return not (self == other)
12773
 
2981 rajveer 12774
class deleteItemFromMyResearch_result:
1596 ankur.sing 12775
  """
12776
  Attributes:
2981 rajveer 12777
   - scx
1596 ankur.sing 12778
  """
12779
 
12780
  thrift_spec = (
2981 rajveer 12781
    None, # 0
12782
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12783
  )
12784
 
2981 rajveer 12785
  def __init__(self, scx=None,):
12786
    self.scx = scx
1596 ankur.sing 12787
 
12788
  def read(self, iprot):
12789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12791
      return
12792
    iprot.readStructBegin()
12793
    while True:
12794
      (fname, ftype, fid) = iprot.readFieldBegin()
12795
      if ftype == TType.STOP:
12796
        break
2981 rajveer 12797
      if fid == 1:
12798
        if ftype == TType.STRUCT:
12799
          self.scx = WidgetException()
12800
          self.scx.read(iprot)
1596 ankur.sing 12801
        else:
12802
          iprot.skip(ftype)
12803
      else:
12804
        iprot.skip(ftype)
12805
      iprot.readFieldEnd()
12806
    iprot.readStructEnd()
12807
 
12808
  def write(self, oprot):
12809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12811
      return
2981 rajveer 12812
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12813
    if self.scx is not None:
2981 rajveer 12814
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12815
      self.scx.write(oprot)
1596 ankur.sing 12816
      oprot.writeFieldEnd()
12817
    oprot.writeFieldStop()
12818
    oprot.writeStructEnd()
12819
 
3431 rajveer 12820
  def validate(self):
12821
    return
12822
 
12823
 
1596 ankur.sing 12824
  def __repr__(self):
12825
    L = ['%s=%r' % (key, value)
12826
      for key, value in self.__dict__.iteritems()]
12827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12828
 
12829
  def __eq__(self, other):
12830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12831
 
12832
  def __ne__(self, other):
12833
    return not (self == other)
12834
 
2981 rajveer 12835
class getBrowseHistoryItems_args:
1673 ankur.sing 12836
  """
12837
  Attributes:
2981 rajveer 12838
   - userId
1673 ankur.sing 12839
  """
1596 ankur.sing 12840
 
1673 ankur.sing 12841
  thrift_spec = (
12842
    None, # 0
2981 rajveer 12843
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12844
  )
12845
 
2981 rajveer 12846
  def __init__(self, userId=None,):
12847
    self.userId = userId
1673 ankur.sing 12848
 
12849
  def read(self, iprot):
12850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12852
      return
12853
    iprot.readStructBegin()
12854
    while True:
12855
      (fname, ftype, fid) = iprot.readFieldBegin()
12856
      if ftype == TType.STOP:
12857
        break
12858
      if fid == 1:
1891 ankur.sing 12859
        if ftype == TType.I64:
2981 rajveer 12860
          self.userId = iprot.readI64();
1891 ankur.sing 12861
        else:
12862
          iprot.skip(ftype)
1673 ankur.sing 12863
      else:
12864
        iprot.skip(ftype)
12865
      iprot.readFieldEnd()
12866
    iprot.readStructEnd()
12867
 
12868
  def write(self, oprot):
12869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12871
      return
2981 rajveer 12872
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12873
    if self.userId is not None:
2981 rajveer 12874
      oprot.writeFieldBegin('userId', TType.I64, 1)
12875
      oprot.writeI64(self.userId)
1673 ankur.sing 12876
      oprot.writeFieldEnd()
12877
    oprot.writeFieldStop()
12878
    oprot.writeStructEnd()
12879
 
3431 rajveer 12880
  def validate(self):
12881
    return
12882
 
12883
 
1673 ankur.sing 12884
  def __repr__(self):
12885
    L = ['%s=%r' % (key, value)
12886
      for key, value in self.__dict__.iteritems()]
12887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12888
 
12889
  def __eq__(self, other):
12890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12891
 
12892
  def __ne__(self, other):
12893
    return not (self == other)
12894
 
2981 rajveer 12895
class getBrowseHistoryItems_result:
1673 ankur.sing 12896
  """
12897
  Attributes:
12898
   - success
2981 rajveer 12899
   - scx
1673 ankur.sing 12900
  """
12901
 
12902
  thrift_spec = (
2981 rajveer 12903
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12904
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12905
  )
12906
 
2981 rajveer 12907
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12908
    self.success = success
2981 rajveer 12909
    self.scx = scx
1673 ankur.sing 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 == 0:
12921
        if ftype == TType.LIST:
12922
          self.success = []
5326 rajveer 12923
          (_etype161, _size158) = iprot.readListBegin()
12924
          for _i162 in xrange(_size158):
12925
            _elem163 = iprot.readI64();
12926
            self.success.append(_elem163)
1673 ankur.sing 12927
          iprot.readListEnd()
12928
        else:
12929
          iprot.skip(ftype)
2981 rajveer 12930
      elif fid == 1:
12931
        if ftype == TType.STRUCT:
12932
          self.scx = WidgetException()
12933
          self.scx.read(iprot)
12934
        else:
12935
          iprot.skip(ftype)
1673 ankur.sing 12936
      else:
12937
        iprot.skip(ftype)
12938
      iprot.readFieldEnd()
12939
    iprot.readStructEnd()
12940
 
12941
  def write(self, oprot):
12942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12944
      return
2981 rajveer 12945
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12946
    if self.success is not None:
1673 ankur.sing 12947
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12948
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12949
      for iter164 in self.success:
12950
        oprot.writeI64(iter164)
1673 ankur.sing 12951
      oprot.writeListEnd()
12952
      oprot.writeFieldEnd()
3431 rajveer 12953
    if self.scx is not None:
2981 rajveer 12954
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12955
      self.scx.write(oprot)
2642 varun.gupt 12956
      oprot.writeFieldEnd()
12957
    oprot.writeFieldStop()
12958
    oprot.writeStructEnd()
12959
 
3431 rajveer 12960
  def validate(self):
12961
    return
12962
 
12963
 
2642 varun.gupt 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
 
2981 rajveer 12975
class updateBrowseHistory_args:
2642 varun.gupt 12976
  """
12977
  Attributes:
2981 rajveer 12978
   - userId
12979
   - itemId
2642 varun.gupt 12980
  """
12981
 
12982
  thrift_spec = (
12983
    None, # 0
2981 rajveer 12984
    (1, TType.I64, 'userId', None, None, ), # 1
12985
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12986
  )
12987
 
2981 rajveer 12988
  def __init__(self, userId=None, itemId=None,):
12989
    self.userId = userId
12990
    self.itemId = itemId
2642 varun.gupt 12991
 
12992
  def read(self, iprot):
12993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12995
      return
12996
    iprot.readStructBegin()
12997
    while True:
12998
      (fname, ftype, fid) = iprot.readFieldBegin()
12999
      if ftype == TType.STOP:
13000
        break
13001
      if fid == 1:
13002
        if ftype == TType.I64:
2981 rajveer 13003
          self.userId = iprot.readI64();
2642 varun.gupt 13004
        else:
13005
          iprot.skip(ftype)
13006
      elif fid == 2:
13007
        if ftype == TType.I64:
2981 rajveer 13008
          self.itemId = iprot.readI64();
2642 varun.gupt 13009
        else:
13010
          iprot.skip(ftype)
13011
      else:
13012
        iprot.skip(ftype)
13013
      iprot.readFieldEnd()
13014
    iprot.readStructEnd()
13015
 
13016
  def write(self, oprot):
13017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13019
      return
2981 rajveer 13020
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13021
    if self.userId is not None:
2981 rajveer 13022
      oprot.writeFieldBegin('userId', TType.I64, 1)
13023
      oprot.writeI64(self.userId)
2642 varun.gupt 13024
      oprot.writeFieldEnd()
3431 rajveer 13025
    if self.itemId is not None:
2981 rajveer 13026
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13027
      oprot.writeI64(self.itemId)
2642 varun.gupt 13028
      oprot.writeFieldEnd()
13029
    oprot.writeFieldStop()
13030
    oprot.writeStructEnd()
13031
 
3431 rajveer 13032
  def validate(self):
13033
    return
13034
 
13035
 
2642 varun.gupt 13036
  def __repr__(self):
13037
    L = ['%s=%r' % (key, value)
13038
      for key, value in self.__dict__.iteritems()]
13039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13040
 
13041
  def __eq__(self, other):
13042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13043
 
13044
  def __ne__(self, other):
13045
    return not (self == other)
13046
 
2981 rajveer 13047
class updateBrowseHistory_result:
2642 varun.gupt 13048
 
13049
  thrift_spec = (
13050
  )
13051
 
13052
  def read(self, iprot):
13053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13055
      return
13056
    iprot.readStructBegin()
13057
    while True:
13058
      (fname, ftype, fid) = iprot.readFieldBegin()
13059
      if ftype == TType.STOP:
13060
        break
13061
      else:
13062
        iprot.skip(ftype)
13063
      iprot.readFieldEnd()
13064
    iprot.readStructEnd()
13065
 
13066
  def write(self, oprot):
13067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13069
      return
2981 rajveer 13070
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13071
    oprot.writeFieldStop()
13072
    oprot.writeStructEnd()
13073
 
3431 rajveer 13074
  def validate(self):
13075
    return
13076
 
13077
 
2642 varun.gupt 13078
  def __repr__(self):
13079
    L = ['%s=%r' % (key, value)
13080
      for key, value in self.__dict__.iteritems()]
13081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13082
 
13083
  def __eq__(self, other):
13084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13085
 
13086
  def __ne__(self, other):
13087
    return not (self == other)
13088
 
3385 varun.gupt 13089
class getCartsWithCouponCount_args:
13090
  """
13091
  Attributes:
13092
   - couponCode
13093
  """
2642 varun.gupt 13094
 
3385 varun.gupt 13095
  thrift_spec = (
13096
    None, # 0
13097
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13098
  )
13099
 
13100
  def __init__(self, couponCode=None,):
13101
    self.couponCode = couponCode
13102
 
13103
  def read(self, iprot):
13104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13106
      return
13107
    iprot.readStructBegin()
13108
    while True:
13109
      (fname, ftype, fid) = iprot.readFieldBegin()
13110
      if ftype == TType.STOP:
13111
        break
13112
      if fid == 1:
13113
        if ftype == TType.STRING:
13114
          self.couponCode = iprot.readString();
13115
        else:
13116
          iprot.skip(ftype)
13117
      else:
13118
        iprot.skip(ftype)
13119
      iprot.readFieldEnd()
13120
    iprot.readStructEnd()
13121
 
13122
  def write(self, oprot):
13123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13125
      return
13126
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13127
    if self.couponCode is not None:
3385 varun.gupt 13128
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13129
      oprot.writeString(self.couponCode)
13130
      oprot.writeFieldEnd()
13131
    oprot.writeFieldStop()
13132
    oprot.writeStructEnd()
13133
 
3431 rajveer 13134
  def validate(self):
13135
    return
13136
 
13137
 
3385 varun.gupt 13138
  def __repr__(self):
13139
    L = ['%s=%r' % (key, value)
13140
      for key, value in self.__dict__.iteritems()]
13141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13142
 
13143
  def __eq__(self, other):
13144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13145
 
13146
  def __ne__(self, other):
13147
    return not (self == other)
13148
 
13149
class getCartsWithCouponCount_result:
13150
  """
13151
  Attributes:
13152
   - success
13153
  """
13154
 
13155
  thrift_spec = (
13156
    (0, TType.I64, 'success', None, None, ), # 0
13157
  )
13158
 
13159
  def __init__(self, success=None,):
13160
    self.success = success
13161
 
13162
  def read(self, iprot):
13163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13165
      return
13166
    iprot.readStructBegin()
13167
    while True:
13168
      (fname, ftype, fid) = iprot.readFieldBegin()
13169
      if ftype == TType.STOP:
13170
        break
13171
      if fid == 0:
13172
        if ftype == TType.I64:
13173
          self.success = iprot.readI64();
13174
        else:
13175
          iprot.skip(ftype)
13176
      else:
13177
        iprot.skip(ftype)
13178
      iprot.readFieldEnd()
13179
    iprot.readStructEnd()
13180
 
13181
  def write(self, oprot):
13182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13184
      return
13185
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13186
    if self.success is not None:
3385 varun.gupt 13187
      oprot.writeFieldBegin('success', TType.I64, 0)
13188
      oprot.writeI64(self.success)
13189
      oprot.writeFieldEnd()
13190
    oprot.writeFieldStop()
13191
    oprot.writeStructEnd()
13192
 
3431 rajveer 13193
  def validate(self):
13194
    return
13195
 
13196
 
3385 varun.gupt 13197
  def __repr__(self):
13198
    L = ['%s=%r' % (key, value)
13199
      for key, value in self.__dict__.iteritems()]
13200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13201
 
13202
  def __eq__(self, other):
13203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13204
 
13205
  def __ne__(self, other):
13206
    return not (self == other)
3499 mandeep.dh 13207
 
13208
class increaseTrustLevel_args:
13209
  """
13210
  Attributes:
13211
   - userId
13212
   - trustLevelDelta
13213
  """
13214
 
13215
  thrift_spec = (
13216
    None, # 0
13217
    (1, TType.I64, 'userId', None, None, ), # 1
13218
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13219
  )
13220
 
13221
  def __init__(self, userId=None, trustLevelDelta=None,):
13222
    self.userId = userId
13223
    self.trustLevelDelta = trustLevelDelta
13224
 
13225
  def read(self, iprot):
13226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13228
      return
13229
    iprot.readStructBegin()
13230
    while True:
13231
      (fname, ftype, fid) = iprot.readFieldBegin()
13232
      if ftype == TType.STOP:
13233
        break
13234
      if fid == 1:
13235
        if ftype == TType.I64:
13236
          self.userId = iprot.readI64();
13237
        else:
13238
          iprot.skip(ftype)
13239
      elif fid == 2:
13240
        if ftype == TType.DOUBLE:
13241
          self.trustLevelDelta = iprot.readDouble();
13242
        else:
13243
          iprot.skip(ftype)
13244
      else:
13245
        iprot.skip(ftype)
13246
      iprot.readFieldEnd()
13247
    iprot.readStructEnd()
13248
 
13249
  def write(self, oprot):
13250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13252
      return
13253
    oprot.writeStructBegin('increaseTrustLevel_args')
13254
    if self.userId is not None:
13255
      oprot.writeFieldBegin('userId', TType.I64, 1)
13256
      oprot.writeI64(self.userId)
13257
      oprot.writeFieldEnd()
13258
    if self.trustLevelDelta is not None:
13259
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13260
      oprot.writeDouble(self.trustLevelDelta)
13261
      oprot.writeFieldEnd()
13262
    oprot.writeFieldStop()
13263
    oprot.writeStructEnd()
13264
 
13265
  def validate(self):
13266
    return
13267
 
13268
 
13269
  def __repr__(self):
13270
    L = ['%s=%r' % (key, value)
13271
      for key, value in self.__dict__.iteritems()]
13272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13273
 
13274
  def __eq__(self, other):
13275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13276
 
13277
  def __ne__(self, other):
13278
    return not (self == other)
4668 varun.gupt 13279
 
13280
class showCODOption_args:
13281
  """
13282
  Attributes:
13283
   - cartId
13284
   - sourceId
13285
   - pincode
13286
  """
13287
 
13288
  thrift_spec = (
13289
    None, # 0
13290
    (1, TType.I64, 'cartId', None, None, ), # 1
13291
    (2, TType.I64, 'sourceId', None, None, ), # 2
13292
    (3, TType.STRING, 'pincode', None, None, ), # 3
13293
  )
13294
 
13295
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13296
    self.cartId = cartId
13297
    self.sourceId = sourceId
13298
    self.pincode = pincode
13299
 
13300
  def read(self, iprot):
13301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13303
      return
13304
    iprot.readStructBegin()
13305
    while True:
13306
      (fname, ftype, fid) = iprot.readFieldBegin()
13307
      if ftype == TType.STOP:
13308
        break
13309
      if fid == 1:
13310
        if ftype == TType.I64:
13311
          self.cartId = iprot.readI64();
13312
        else:
13313
          iprot.skip(ftype)
13314
      elif fid == 2:
13315
        if ftype == TType.I64:
13316
          self.sourceId = iprot.readI64();
13317
        else:
13318
          iprot.skip(ftype)
13319
      elif fid == 3:
13320
        if ftype == TType.STRING:
13321
          self.pincode = iprot.readString();
13322
        else:
13323
          iprot.skip(ftype)
13324
      else:
13325
        iprot.skip(ftype)
13326
      iprot.readFieldEnd()
13327
    iprot.readStructEnd()
13328
 
13329
  def write(self, oprot):
13330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13332
      return
13333
    oprot.writeStructBegin('showCODOption_args')
13334
    if self.cartId is not None:
13335
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13336
      oprot.writeI64(self.cartId)
13337
      oprot.writeFieldEnd()
13338
    if self.sourceId is not None:
13339
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13340
      oprot.writeI64(self.sourceId)
13341
      oprot.writeFieldEnd()
13342
    if self.pincode is not None:
13343
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13344
      oprot.writeString(self.pincode)
13345
      oprot.writeFieldEnd()
13346
    oprot.writeFieldStop()
13347
    oprot.writeStructEnd()
13348
 
13349
  def validate(self):
13350
    return
13351
 
13352
 
13353
  def __repr__(self):
13354
    L = ['%s=%r' % (key, value)
13355
      for key, value in self.__dict__.iteritems()]
13356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13357
 
13358
  def __eq__(self, other):
13359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13360
 
13361
  def __ne__(self, other):
13362
    return not (self == other)
13363
 
13364
class showCODOption_result:
13365
  """
13366
  Attributes:
13367
   - success
13368
  """
13369
 
13370
  thrift_spec = (
13371
    (0, TType.BOOL, 'success', None, None, ), # 0
13372
  )
13373
 
13374
  def __init__(self, success=None,):
13375
    self.success = success
13376
 
13377
  def read(self, iprot):
13378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13380
      return
13381
    iprot.readStructBegin()
13382
    while True:
13383
      (fname, ftype, fid) = iprot.readFieldBegin()
13384
      if ftype == TType.STOP:
13385
        break
13386
      if fid == 0:
13387
        if ftype == TType.BOOL:
13388
          self.success = iprot.readBool();
13389
        else:
13390
          iprot.skip(ftype)
13391
      else:
13392
        iprot.skip(ftype)
13393
      iprot.readFieldEnd()
13394
    iprot.readStructEnd()
13395
 
13396
  def write(self, oprot):
13397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13399
      return
13400
    oprot.writeStructBegin('showCODOption_result')
13401
    if self.success is not None:
13402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13403
      oprot.writeBool(self.success)
13404
      oprot.writeFieldEnd()
13405
    oprot.writeFieldStop()
13406
    oprot.writeStructEnd()
13407
 
13408
  def validate(self):
13409
    return
13410
 
13411
 
13412
  def __repr__(self):
13413
    L = ['%s=%r' % (key, value)
13414
      for key, value in self.__dict__.iteritems()]
13415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13416
 
13417
  def __eq__(self, other):
13418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13419
 
13420
  def __ne__(self, other):
13421
    return not (self == other)