Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
5407 amar.kumar 204
  def removeUserCommunication(self, id):
205
    """
206
    Parameters:
207
     - id
208
    """
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 getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
5553 rajveer 367
  def addStoreToCart(self, cartId, storeId):
368
    """
369
    Parameters:
370
     - cartId
371
     - storeId
372
    """
373
    pass
374
 
1976 varun.gupt 375
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
376
    """
377
    Parameters:
378
     - cartId
379
     - couponCode
380
     - totalPrice
381
     - discountedPrice
382
    """
383
    pass
384
 
385
  def removeCoupon(self, cartId):
386
    """
387
    Parameters:
388
     - cartId
389
    """
390
    pass
391
 
3554 varun.gupt 392
  def deleteDiscountsFromCart(self, cartId):
393
    """
394
    Deletes all the discounts associated with the cart
395
 
396
    Parameters:
397
     - cartId
398
    """
399
    pass
400
 
401
  def saveDiscounts(self, discounts):
402
    """
403
    Accepts a list of thrift objects of Discount type and saves them
404
 
405
    Parameters:
406
     - discounts
407
    """
408
    pass
409
 
5326 rajveer 410
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 411
    """
690 chandransh 412
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 413
 
559 chandransh 414
    Parameters:
415
     - cartId
2815 vikas 416
     - sessionSource
417
     - sessionStartTime
3858 vikas 418
     - firstSource
419
     - firstSourceTime
5326 rajveer 420
     - userId
559 chandransh 421
    """
422
    pass
423
 
3557 rajveer 424
  def validateCart(self, cartId, sourceId):
559 chandransh 425
    """
690 chandransh 426
    Validates that:
427
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 428
    2. All of the lines in the cart are active items.
690 chandransh 429
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 430
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 431
 
559 chandransh 432
    Parameters:
433
     - cartId
3557 rajveer 434
     - sourceId
559 chandransh 435
    """
436
    pass
437
 
690 chandransh 438
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 439
    """
690 chandransh 440
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 441
 
575 chandransh 442
    Parameters:
690 chandransh 443
     - fromCartId
444
     - toCartId
445
    """
446
    pass
447
 
448
  def checkOut(self, cartId):
449
    """
450
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 451
 
690 chandransh 452
    Parameters:
575 chandransh 453
     - cartId
454
    """
455
    pass
456
 
690 chandransh 457
  def resetCart(self, cartId, items):
559 chandransh 458
    """
690 chandransh 459
    The second parameter is a map of item ids and their quantities which have been successfully processed.
460
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 461
 
559 chandransh 462
    Parameters:
690 chandransh 463
     - cartId
464
     - items
559 chandransh 465
    """
466
    pass
467
 
2981 rajveer 468
  def getUserCount(self, userType):
559 chandransh 469
    """
2981 rajveer 470
    Returns number of registered users.
471
    If userType = null, then it returns count of all users, including anonymous
472
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
473
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 474
 
559 chandransh 475
    Parameters:
2981 rajveer 476
     - userType
559 chandransh 477
    """
478
    pass
479
 
2981 rajveer 480
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 481
    """
2981 rajveer 482
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
483
    If any of startDate or endDate is -1, then that filter is ignored.
484
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 485
 
486
 
559 chandransh 487
    Parameters:
2981 rajveer 488
     - userType
489
     - startDate
490
     - endDate
559 chandransh 491
    """
492
    pass
493
 
2981 rajveer 494
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 495
    """
496
    Parameters:
2981 rajveer 497
     - user_id
498
     - entity_id
499
     - slide
500
     - note
559 chandransh 501
    """
502
    pass
503
 
2981 rajveer 504
  def getUserNotes(self, user_id, entity_id):
559 chandransh 505
    """
506
    Parameters:
2981 rajveer 507
     - user_id
508
     - entity_id
559 chandransh 509
    """
510
    pass
511
 
2981 rajveer 512
  def getMyResearchItems(self, userId):
559 chandransh 513
    """
2981 rajveer 514
    Returns list of item ids in myresearch for the user
3431 rajveer 515
 
559 chandransh 516
    Parameters:
517
     - userId
518
    """
519
    pass
520
 
2981 rajveer 521
  def updateMyResearch(self, userId, itemId):
559 chandransh 522
    """
2981 rajveer 523
    add item to my research for a user
3431 rajveer 524
 
559 chandransh 525
    Parameters:
2981 rajveer 526
     - userId
527
     - itemId
559 chandransh 528
    """
529
    pass
530
 
2981 rajveer 531
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 532
    """
2981 rajveer 533
    delete item from my research for a user
3431 rajveer 534
 
1596 ankur.sing 535
    Parameters:
2981 rajveer 536
     - userId
537
     - itemId
1596 ankur.sing 538
    """
539
    pass
559 chandransh 540
 
2981 rajveer 541
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 542
    """
2981 rajveer 543
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 544
 
1673 ankur.sing 545
    Parameters:
2981 rajveer 546
     - userId
1673 ankur.sing 547
    """
548
    pass
1596 ankur.sing 549
 
2981 rajveer 550
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 551
    """
2981 rajveer 552
    add item to browse history for a user
3431 rajveer 553
 
2642 varun.gupt 554
    Parameters:
2981 rajveer 555
     - userId
556
     - itemId
2642 varun.gupt 557
    """
558
    pass
1673 ankur.sing 559
 
3385 varun.gupt 560
  def getCartsWithCouponCount(self, couponCode):
561
    """
562
    Returns count of Carts with given coupon applied
3431 rajveer 563
 
3385 varun.gupt 564
    Parameters:
565
     - couponCode
566
    """
567
    pass
2642 varun.gupt 568
 
3499 mandeep.dh 569
  def increaseTrustLevel(self, userId, trustLevelDelta):
570
    """
571
    Updates COD trust level of a user
3385 varun.gupt 572
 
3499 mandeep.dh 573
    Parameters:
574
     - userId
575
     - trustLevelDelta
576
    """
577
    pass
578
 
5407 amar.kumar 579
  def getTrustLevel(self, userId):
580
    """
581
    Get trust level of a user
582
 
583
    Parameters:
584
     - userId
585
    """
586
    pass
587
 
4668 varun.gupt 588
  def showCODOption(self, cartId, sourceId, pincode):
589
    """
590
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 591
 
4668 varun.gupt 592
    Parameters:
593
     - cartId
594
     - sourceId
595
     - pincode
596
    """
597
    pass
598
 
5623 anupam.sin 599
  def getUserEmails(self, startDate, endDate):
600
    """
601
    Get email addresses for users activated within a given date range
4668 varun.gupt 602
 
5623 anupam.sin 603
    Parameters:
604
     - startDate
605
     - endDate
606
    """
607
    pass
608
 
609
 
3376 rajveer 610
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 611
  """
612
  service
613
  """
614
  def __init__(self, iprot, oprot=None):
3376 rajveer 615
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 616
 
559 chandransh 617
  def createAnonymousUser(self, jsessionId):
94 ashish 618
    """
619
    Parameters:
559 chandransh 620
     - jsessionId
94 ashish 621
    """
559 chandransh 622
    self.send_createAnonymousUser(jsessionId)
623
    return self.recv_createAnonymousUser()
94 ashish 624
 
559 chandransh 625
  def send_createAnonymousUser(self, jsessionId):
626
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
627
    args = createAnonymousUser_args()
628
    args.jsessionId = jsessionId
94 ashish 629
    args.write(self._oprot)
630
    self._oprot.writeMessageEnd()
631
    self._oprot.trans.flush()
632
 
559 chandransh 633
  def recv_createAnonymousUser(self, ):
94 ashish 634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
635
    if mtype == TMessageType.EXCEPTION:
636
      x = TApplicationException()
637
      x.read(self._iprot)
638
      self._iprot.readMessageEnd()
639
      raise x
559 chandransh 640
    result = createAnonymousUser_result()
94 ashish 641
    result.read(self._iprot)
642
    self._iprot.readMessageEnd()
3431 rajveer 643
    if result.success is not None:
94 ashish 644
      return result.success
3431 rajveer 645
    if result.ucex is not None:
559 chandransh 646
      raise result.ucex
647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 648
 
559 chandransh 649
  def getUserById(self, userId):
94 ashish 650
    """
651
    Parameters:
652
     - userId
653
    """
559 chandransh 654
    self.send_getUserById(userId)
655
    return self.recv_getUserById()
94 ashish 656
 
559 chandransh 657
  def send_getUserById(self, userId):
658
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
659
    args = getUserById_args()
94 ashish 660
    args.userId = userId
661
    args.write(self._oprot)
662
    self._oprot.writeMessageEnd()
663
    self._oprot.trans.flush()
664
 
559 chandransh 665
  def recv_getUserById(self, ):
94 ashish 666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
667
    if mtype == TMessageType.EXCEPTION:
668
      x = TApplicationException()
669
      x.read(self._iprot)
670
      self._iprot.readMessageEnd()
671
      raise x
559 chandransh 672
    result = getUserById_result()
94 ashish 673
    result.read(self._iprot)
674
    self._iprot.readMessageEnd()
3431 rajveer 675
    if result.success is not None:
94 ashish 676
      return result.success
3431 rajveer 677
    if result.ucex is not None:
559 chandransh 678
      raise result.ucex
679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 680
 
5326 rajveer 681
  def getUserByCartId(self, cartId):
682
    """
683
    Parameters:
684
     - cartId
685
    """
686
    self.send_getUserByCartId(cartId)
687
    return self.recv_getUserByCartId()
688
 
689
  def send_getUserByCartId(self, cartId):
690
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
691
    args = getUserByCartId_args()
692
    args.cartId = cartId
693
    args.write(self._oprot)
694
    self._oprot.writeMessageEnd()
695
    self._oprot.trans.flush()
696
 
697
  def recv_getUserByCartId(self, ):
698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
699
    if mtype == TMessageType.EXCEPTION:
700
      x = TApplicationException()
701
      x.read(self._iprot)
702
      self._iprot.readMessageEnd()
703
      raise x
704
    result = getUserByCartId_result()
705
    result.read(self._iprot)
706
    self._iprot.readMessageEnd()
707
    if result.success is not None:
708
      return result.success
709
    if result.ucex is not None:
710
      raise result.ucex
711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
712
 
1491 vikas 713
  def getUserByEmail(self, email):
714
    """
715
    Parameters:
716
     - email
717
    """
718
    self.send_getUserByEmail(email)
719
    return self.recv_getUserByEmail()
720
 
721
  def send_getUserByEmail(self, email):
722
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
723
    args = getUserByEmail_args()
724
    args.email = email
725
    args.write(self._oprot)
726
    self._oprot.writeMessageEnd()
727
    self._oprot.trans.flush()
728
 
729
  def recv_getUserByEmail(self, ):
730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
731
    if mtype == TMessageType.EXCEPTION:
732
      x = TApplicationException()
733
      x.read(self._iprot)
734
      self._iprot.readMessageEnd()
735
      raise x
736
    result = getUserByEmail_result()
737
    result.read(self._iprot)
738
    self._iprot.readMessageEnd()
3431 rajveer 739
    if result.success is not None:
1491 vikas 740
      return result.success
3431 rajveer 741
    if result.ucex is not None:
1491 vikas 742
      raise result.ucex
743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
744
 
3032 mandeep.dh 745
  def getUserByMobileNumber(self, mobileNumber):
746
    """
747
    Parameters:
748
     - mobileNumber
749
    """
750
    self.send_getUserByMobileNumber(mobileNumber)
751
    return self.recv_getUserByMobileNumber()
752
 
753
  def send_getUserByMobileNumber(self, mobileNumber):
754
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
755
    args = getUserByMobileNumber_args()
756
    args.mobileNumber = mobileNumber
757
    args.write(self._oprot)
758
    self._oprot.writeMessageEnd()
759
    self._oprot.trans.flush()
760
 
761
  def recv_getUserByMobileNumber(self, ):
762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
763
    if mtype == TMessageType.EXCEPTION:
764
      x = TApplicationException()
765
      x.read(self._iprot)
766
      self._iprot.readMessageEnd()
767
      raise x
768
    result = getUserByMobileNumber_result()
769
    result.read(self._iprot)
770
    self._iprot.readMessageEnd()
3431 rajveer 771
    if result.success is not None:
3032 mandeep.dh 772
      return result.success
3431 rajveer 773
    if result.ucex is not None:
3032 mandeep.dh 774
      raise result.ucex
775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
776
 
559 chandransh 777
  def createUser(self, user):
94 ashish 778
    """
779
    Parameters:
559 chandransh 780
     - user
94 ashish 781
    """
559 chandransh 782
    self.send_createUser(user)
783
    return self.recv_createUser()
94 ashish 784
 
559 chandransh 785
  def send_createUser(self, user):
786
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
787
    args = createUser_args()
788
    args.user = user
94 ashish 789
    args.write(self._oprot)
790
    self._oprot.writeMessageEnd()
791
    self._oprot.trans.flush()
792
 
559 chandransh 793
  def recv_createUser(self, ):
94 ashish 794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
795
    if mtype == TMessageType.EXCEPTION:
796
      x = TApplicationException()
797
      x.read(self._iprot)
798
      self._iprot.readMessageEnd()
799
      raise x
559 chandransh 800
    result = createUser_result()
94 ashish 801
    result.read(self._iprot)
802
    self._iprot.readMessageEnd()
3431 rajveer 803
    if result.success is not None:
94 ashish 804
      return result.success
3431 rajveer 805
    if result.ucex is not None:
559 chandransh 806
      raise result.ucex
807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 808
 
559 chandransh 809
  def updateUser(self, user):
94 ashish 810
    """
811
    Parameters:
559 chandransh 812
     - user
94 ashish 813
    """
559 chandransh 814
    self.send_updateUser(user)
815
    return self.recv_updateUser()
94 ashish 816
 
559 chandransh 817
  def send_updateUser(self, user):
818
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
819
    args = updateUser_args()
820
    args.user = user
94 ashish 821
    args.write(self._oprot)
822
    self._oprot.writeMessageEnd()
823
    self._oprot.trans.flush()
824
 
559 chandransh 825
  def recv_updateUser(self, ):
94 ashish 826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
827
    if mtype == TMessageType.EXCEPTION:
828
      x = TApplicationException()
829
      x.read(self._iprot)
830
      self._iprot.readMessageEnd()
831
      raise x
559 chandransh 832
    result = updateUser_result()
94 ashish 833
    result.read(self._iprot)
834
    self._iprot.readMessageEnd()
3431 rajveer 835
    if result.success is not None:
94 ashish 836
      return result.success
3431 rajveer 837
    if result.ucex is not None:
559 chandransh 838
      raise result.ucex
839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 840
 
559 chandransh 841
  def authenticateUser(self, email, password):
94 ashish 842
    """
843
    Parameters:
844
     - email
845
     - password
846
    """
559 chandransh 847
    self.send_authenticateUser(email, password)
122 ashish 848
    return self.recv_authenticateUser()
849
 
559 chandransh 850
  def send_authenticateUser(self, email, password):
122 ashish 851
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
852
    args = authenticateUser_args()
559 chandransh 853
    args.email = email
122 ashish 854
    args.password = password
855
    args.write(self._oprot)
856
    self._oprot.writeMessageEnd()
857
    self._oprot.trans.flush()
858
 
859
  def recv_authenticateUser(self, ):
860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
861
    if mtype == TMessageType.EXCEPTION:
862
      x = TApplicationException()
863
      x.read(self._iprot)
864
      self._iprot.readMessageEnd()
865
      raise x
866
    result = authenticateUser_result()
867
    result.read(self._iprot)
868
    self._iprot.readMessageEnd()
3431 rajveer 869
    if result.success is not None:
122 ashish 870
      return result.success
3431 rajveer 871
    if result.auex is not None:
559 chandransh 872
      raise result.auex
122 ashish 873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
874
 
94 ashish 875
  def userExists(self, email):
876
    """
877
    Parameters:
878
     - email
879
    """
880
    self.send_userExists(email)
881
    return self.recv_userExists()
882
 
883
  def send_userExists(self, email):
884
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
885
    args = userExists_args()
886
    args.email = email
887
    args.write(self._oprot)
888
    self._oprot.writeMessageEnd()
889
    self._oprot.trans.flush()
890
 
891
  def recv_userExists(self, ):
892
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
893
    if mtype == TMessageType.EXCEPTION:
894
      x = TApplicationException()
895
      x.read(self._iprot)
896
      self._iprot.readMessageEnd()
897
      raise x
898
    result = userExists_result()
899
    result.read(self._iprot)
900
    self._iprot.readMessageEnd()
3431 rajveer 901
    if result.success is not None:
94 ashish 902
      return result.success
3431 rajveer 903
    if result.ucx is not None:
94 ashish 904
      raise result.ucx
905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
906
 
567 rajveer 907
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 908
    """
909
    Parameters:
910
     - userId
911
     - address
513 rajveer 912
     - setDefault
94 ashish 913
    """
567 rajveer 914
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 915
    return self.recv_addAddressForUser()
916
 
567 rajveer 917
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 918
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
919
    args = addAddressForUser_args()
559 chandransh 920
    args.userId = userId
94 ashish 921
    args.address = address
513 rajveer 922
    args.setDefault = setDefault
94 ashish 923
    args.write(self._oprot)
924
    self._oprot.writeMessageEnd()
925
    self._oprot.trans.flush()
926
 
927
  def recv_addAddressForUser(self, ):
928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
929
    if mtype == TMessageType.EXCEPTION:
930
      x = TApplicationException()
931
      x.read(self._iprot)
932
      self._iprot.readMessageEnd()
933
      raise x
934
    result = addAddressForUser_result()
935
    result.read(self._iprot)
936
    self._iprot.readMessageEnd()
3431 rajveer 937
    if result.success is not None:
94 ashish 938
      return result.success
3431 rajveer 939
    if result.ucx is not None:
94 ashish 940
      raise result.ucx
941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
942
 
943
  def removeAddressForUser(self, userid, addressId):
944
    """
945
    Parameters:
946
     - userid
947
     - addressId
948
    """
949
    self.send_removeAddressForUser(userid, addressId)
950
    return self.recv_removeAddressForUser()
951
 
952
  def send_removeAddressForUser(self, userid, addressId):
953
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
954
    args = removeAddressForUser_args()
955
    args.userid = userid
956
    args.addressId = addressId
957
    args.write(self._oprot)
958
    self._oprot.writeMessageEnd()
959
    self._oprot.trans.flush()
960
 
961
  def recv_removeAddressForUser(self, ):
962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
963
    if mtype == TMessageType.EXCEPTION:
964
      x = TApplicationException()
965
      x.read(self._iprot)
966
      self._iprot.readMessageEnd()
967
      raise x
968
    result = removeAddressForUser_result()
969
    result.read(self._iprot)
970
    self._iprot.readMessageEnd()
3431 rajveer 971
    if result.success is not None:
94 ashish 972
      return result.success
3431 rajveer 973
    if result.ucx is not None:
94 ashish 974
      raise result.ucx
975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
976
 
977
  def setUserAsLoggedIn(self, userId, timestamp):
978
    """
979
    Parameters:
980
     - userId
981
     - timestamp
982
    """
983
    self.send_setUserAsLoggedIn(userId, timestamp)
984
    return self.recv_setUserAsLoggedIn()
985
 
986
  def send_setUserAsLoggedIn(self, userId, timestamp):
987
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
988
    args = setUserAsLoggedIn_args()
989
    args.userId = userId
990
    args.timestamp = timestamp
991
    args.write(self._oprot)
992
    self._oprot.writeMessageEnd()
993
    self._oprot.trans.flush()
994
 
995
  def recv_setUserAsLoggedIn(self, ):
996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
997
    if mtype == TMessageType.EXCEPTION:
998
      x = TApplicationException()
999
      x.read(self._iprot)
1000
      self._iprot.readMessageEnd()
1001
      raise x
1002
    result = setUserAsLoggedIn_result()
1003
    result.read(self._iprot)
1004
    self._iprot.readMessageEnd()
3431 rajveer 1005
    if result.success is not None:
94 ashish 1006
      return result.success
3431 rajveer 1007
    if result.ucx is not None:
94 ashish 1008
      raise result.ucx
1009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1010
 
1011
  def setUserAsLoggedOut(self, userid, timestamp):
1012
    """
1013
    Parameters:
1014
     - userid
1015
     - timestamp
1016
    """
1017
    self.send_setUserAsLoggedOut(userid, timestamp)
1018
    return self.recv_setUserAsLoggedOut()
1019
 
1020
  def send_setUserAsLoggedOut(self, userid, timestamp):
1021
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1022
    args = setUserAsLoggedOut_args()
1023
    args.userid = userid
1024
    args.timestamp = timestamp
1025
    args.write(self._oprot)
1026
    self._oprot.writeMessageEnd()
1027
    self._oprot.trans.flush()
1028
 
1029
  def recv_setUserAsLoggedOut(self, ):
1030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1031
    if mtype == TMessageType.EXCEPTION:
1032
      x = TApplicationException()
1033
      x.read(self._iprot)
1034
      self._iprot.readMessageEnd()
1035
      raise x
1036
    result = setUserAsLoggedOut_result()
1037
    result.read(self._iprot)
1038
    self._iprot.readMessageEnd()
3431 rajveer 1039
    if result.success is not None:
94 ashish 1040
      return result.success
3431 rajveer 1041
    if result.ucx is not None:
94 ashish 1042
      raise result.ucx
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1044
 
504 rajveer 1045
  def setDefaultAddress(self, userid, addressId):
1046
    """
1047
    Parameters:
1048
     - userid
1049
     - addressId
1050
    """
1051
    self.send_setDefaultAddress(userid, addressId)
1052
    return self.recv_setDefaultAddress()
1053
 
1054
  def send_setDefaultAddress(self, userid, addressId):
1055
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1056
    args = setDefaultAddress_args()
1057
    args.userid = userid
1058
    args.addressId = addressId
1059
    args.write(self._oprot)
1060
    self._oprot.writeMessageEnd()
1061
    self._oprot.trans.flush()
1062
 
1063
  def recv_setDefaultAddress(self, ):
1064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1065
    if mtype == TMessageType.EXCEPTION:
1066
      x = TApplicationException()
1067
      x.read(self._iprot)
1068
      self._iprot.readMessageEnd()
1069
      raise x
1070
    result = setDefaultAddress_result()
1071
    result.read(self._iprot)
1072
    self._iprot.readMessageEnd()
3431 rajveer 1073
    if result.success is not None:
504 rajveer 1074
      return result.success
3431 rajveer 1075
    if result.ucx is not None:
504 rajveer 1076
      raise result.ucx
1077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1078
 
594 rajveer 1079
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1080
    """
1081
    Parameters:
1082
     - userid
594 rajveer 1083
     - oldPassword
1084
     - newPassword
94 ashish 1085
    """
594 rajveer 1086
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1087
    return self.recv_updatePassword()
1088
 
594 rajveer 1089
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1090
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1091
    args = updatePassword_args()
1092
    args.userid = userid
594 rajveer 1093
    args.oldPassword = oldPassword
1094
    args.newPassword = newPassword
94 ashish 1095
    args.write(self._oprot)
1096
    self._oprot.writeMessageEnd()
1097
    self._oprot.trans.flush()
1098
 
1099
  def recv_updatePassword(self, ):
1100
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1101
    if mtype == TMessageType.EXCEPTION:
1102
      x = TApplicationException()
1103
      x.read(self._iprot)
1104
      self._iprot.readMessageEnd()
1105
      raise x
1106
    result = updatePassword_result()
1107
    result.read(self._iprot)
1108
    self._iprot.readMessageEnd()
3431 rajveer 1109
    if result.success is not None:
94 ashish 1110
      return result.success
3431 rajveer 1111
    if result.ucx is not None:
94 ashish 1112
      raise result.ucx
1113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1114
 
884 rajveer 1115
  def forgotPassword(self, email, newPassword):
581 rajveer 1116
    """
1117
    Parameters:
1118
     - email
884 rajveer 1119
     - newPassword
581 rajveer 1120
    """
884 rajveer 1121
    self.send_forgotPassword(email, newPassword)
581 rajveer 1122
    return self.recv_forgotPassword()
1123
 
884 rajveer 1124
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1125
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1126
    args = forgotPassword_args()
1127
    args.email = email
884 rajveer 1128
    args.newPassword = newPassword
581 rajveer 1129
    args.write(self._oprot)
1130
    self._oprot.writeMessageEnd()
1131
    self._oprot.trans.flush()
1132
 
1133
  def recv_forgotPassword(self, ):
1134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1135
    if mtype == TMessageType.EXCEPTION:
1136
      x = TApplicationException()
1137
      x.read(self._iprot)
1138
      self._iprot.readMessageEnd()
1139
      raise x
1140
    result = forgotPassword_result()
1141
    result.read(self._iprot)
1142
    self._iprot.readMessageEnd()
3431 rajveer 1143
    if result.success is not None:
581 rajveer 1144
      return result.success
3431 rajveer 1145
    if result.ucx is not None:
581 rajveer 1146
      raise result.ucx
1147
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1148
 
594 rajveer 1149
  def getAllAddressesForUser(self, userId):
1150
    """
1151
    Parameters:
1152
     - userId
1153
    """
1154
    self.send_getAllAddressesForUser(userId)
1155
    return self.recv_getAllAddressesForUser()
1156
 
1157
  def send_getAllAddressesForUser(self, userId):
1158
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1159
    args = getAllAddressesForUser_args()
1160
    args.userId = userId
1161
    args.write(self._oprot)
1162
    self._oprot.writeMessageEnd()
1163
    self._oprot.trans.flush()
1164
 
1165
  def recv_getAllAddressesForUser(self, ):
1166
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1167
    if mtype == TMessageType.EXCEPTION:
1168
      x = TApplicationException()
1169
      x.read(self._iprot)
1170
      self._iprot.readMessageEnd()
1171
      raise x
1172
    result = getAllAddressesForUser_result()
1173
    result.read(self._iprot)
1174
    self._iprot.readMessageEnd()
3431 rajveer 1175
    if result.success is not None:
594 rajveer 1176
      return result.success
3431 rajveer 1177
    if result.ucx is not None:
594 rajveer 1178
      raise result.ucx
1179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1180
 
1894 vikas 1181
  def getAddressById(self, addressId):
1182
    """
1183
    Parameters:
1184
     - addressId
1185
    """
1186
    self.send_getAddressById(addressId)
1187
    return self.recv_getAddressById()
1188
 
1189
  def send_getAddressById(self, addressId):
1190
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1191
    args = getAddressById_args()
1192
    args.addressId = addressId
1193
    args.write(self._oprot)
1194
    self._oprot.writeMessageEnd()
1195
    self._oprot.trans.flush()
1196
 
1197
  def recv_getAddressById(self, ):
1198
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1199
    if mtype == TMessageType.EXCEPTION:
1200
      x = TApplicationException()
1201
      x.read(self._iprot)
1202
      self._iprot.readMessageEnd()
1203
      raise x
1204
    result = getAddressById_result()
1205
    result.read(self._iprot)
1206
    self._iprot.readMessageEnd()
3431 rajveer 1207
    if result.success is not None:
1894 vikas 1208
      return result.success
3431 rajveer 1209
    if result.ucx is not None:
1894 vikas 1210
      raise result.ucx
1211
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1212
 
594 rajveer 1213
  def getDefaultAddressId(self, userId):
1214
    """
1215
    Parameters:
1216
     - userId
1217
    """
1218
    self.send_getDefaultAddressId(userId)
1219
    return self.recv_getDefaultAddressId()
1220
 
1221
  def send_getDefaultAddressId(self, userId):
1222
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1223
    args = getDefaultAddressId_args()
1224
    args.userId = userId
1225
    args.write(self._oprot)
1226
    self._oprot.writeMessageEnd()
1227
    self._oprot.trans.flush()
1228
 
1229
  def recv_getDefaultAddressId(self, ):
1230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1231
    if mtype == TMessageType.EXCEPTION:
1232
      x = TApplicationException()
1233
      x.read(self._iprot)
1234
      self._iprot.readMessageEnd()
1235
      raise x
1236
    result = getDefaultAddressId_result()
1237
    result.read(self._iprot)
1238
    self._iprot.readMessageEnd()
3431 rajveer 1239
    if result.success is not None:
594 rajveer 1240
      return result.success
3431 rajveer 1241
    if result.ucx is not None:
594 rajveer 1242
      raise result.ucx
1243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1244
 
785 rajveer 1245
  def getDefaultPincode(self, userId):
1246
    """
1247
    Parameters:
1248
     - userId
1249
    """
1250
    self.send_getDefaultPincode(userId)
1251
    return self.recv_getDefaultPincode()
1252
 
1253
  def send_getDefaultPincode(self, userId):
1254
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1255
    args = getDefaultPincode_args()
1256
    args.userId = userId
1257
    args.write(self._oprot)
1258
    self._oprot.writeMessageEnd()
1259
    self._oprot.trans.flush()
1260
 
1261
  def recv_getDefaultPincode(self, ):
1262
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1263
    if mtype == TMessageType.EXCEPTION:
1264
      x = TApplicationException()
1265
      x.read(self._iprot)
1266
      self._iprot.readMessageEnd()
1267
      raise x
1268
    result = getDefaultPincode_result()
1269
    result.read(self._iprot)
1270
    self._iprot.readMessageEnd()
3431 rajveer 1271
    if result.success is not None:
785 rajveer 1272
      return result.success
3431 rajveer 1273
    if result.ucx is not None:
785 rajveer 1274
      raise result.ucx
1275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1276
 
1274 varun.gupt 1277
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1278
    """
1279
    Parameters:
1280
     - userId
1281
     - replyTo
1282
     - communicationType
1283
     - orderId
1284
     - airwaybillNo
1285
     - productName
1286
     - subject
1287
     - message
1288
    """
1289
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1290
    return self.recv_saveUserCommunication()
1291
 
1292
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1293
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1294
    args = saveUserCommunication_args()
1295
    args.userId = userId
1296
    args.replyTo = replyTo
1297
    args.communicationType = communicationType
1298
    args.orderId = orderId
1299
    args.airwaybillNo = airwaybillNo
1300
    args.productName = productName
1301
    args.subject = subject
1302
    args.message = message
1303
    args.write(self._oprot)
1304
    self._oprot.writeMessageEnd()
1305
    self._oprot.trans.flush()
1306
 
1307
  def recv_saveUserCommunication(self, ):
1308
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1309
    if mtype == TMessageType.EXCEPTION:
1310
      x = TApplicationException()
1311
      x.read(self._iprot)
1312
      self._iprot.readMessageEnd()
1313
      raise x
1314
    result = saveUserCommunication_result()
1315
    result.read(self._iprot)
1316
    self._iprot.readMessageEnd()
3431 rajveer 1317
    if result.success is not None:
1274 varun.gupt 1318
      return result.success
3431 rajveer 1319
    if result.ucx is not None:
1274 varun.gupt 1320
      raise result.ucx
1321
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1322
 
1590 varun.gupt 1323
  def getUserCommunicationById(self, id):
1324
    """
1325
    Parameters:
1326
     - id
1327
    """
1328
    self.send_getUserCommunicationById(id)
1329
    return self.recv_getUserCommunicationById()
1330
 
1331
  def send_getUserCommunicationById(self, id):
1332
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1333
    args = getUserCommunicationById_args()
1334
    args.id = id
1335
    args.write(self._oprot)
1336
    self._oprot.writeMessageEnd()
1337
    self._oprot.trans.flush()
1338
 
1339
  def recv_getUserCommunicationById(self, ):
1340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1341
    if mtype == TMessageType.EXCEPTION:
1342
      x = TApplicationException()
1343
      x.read(self._iprot)
1344
      self._iprot.readMessageEnd()
1345
      raise x
1346
    result = getUserCommunicationById_result()
1347
    result.read(self._iprot)
1348
    self._iprot.readMessageEnd()
3431 rajveer 1349
    if result.success is not None:
1590 varun.gupt 1350
      return result.success
3431 rajveer 1351
    if result.ucx is not None:
1590 varun.gupt 1352
      raise result.ucx
1353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1354
 
1355
  def getUserCommunicationByUser(self, userId):
1356
    """
1357
    Parameters:
1358
     - userId
1359
    """
1360
    self.send_getUserCommunicationByUser(userId)
1361
    return self.recv_getUserCommunicationByUser()
1362
 
1363
  def send_getUserCommunicationByUser(self, userId):
1364
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1365
    args = getUserCommunicationByUser_args()
1366
    args.userId = userId
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getUserCommunicationByUser(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getUserCommunicationByUser_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
3431 rajveer 1381
    if result.success is not None:
1590 varun.gupt 1382
      return result.success
3431 rajveer 1383
    if result.ucx is not None:
1590 varun.gupt 1384
      raise result.ucx
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1386
 
1387
  def getAllUserCommunications(self, ):
1388
    self.send_getAllUserCommunications()
1389
    return self.recv_getAllUserCommunications()
1390
 
1391
  def send_getAllUserCommunications(self, ):
1392
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1393
    args = getAllUserCommunications_args()
1394
    args.write(self._oprot)
1395
    self._oprot.writeMessageEnd()
1396
    self._oprot.trans.flush()
1397
 
1398
  def recv_getAllUserCommunications(self, ):
1399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1400
    if mtype == TMessageType.EXCEPTION:
1401
      x = TApplicationException()
1402
      x.read(self._iprot)
1403
      self._iprot.readMessageEnd()
1404
      raise x
1405
    result = getAllUserCommunications_result()
1406
    result.read(self._iprot)
1407
    self._iprot.readMessageEnd()
3431 rajveer 1408
    if result.success is not None:
1590 varun.gupt 1409
      return result.success
3431 rajveer 1410
    if result.ucx is not None:
1590 varun.gupt 1411
      raise result.ucx
1412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1413
 
5407 amar.kumar 1414
  def removeUserCommunication(self, id):
1415
    """
1416
    Parameters:
1417
     - id
1418
    """
1419
    self.send_removeUserCommunication(id)
1420
    self.recv_removeUserCommunication()
1421
 
1422
  def send_removeUserCommunication(self, id):
1423
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1424
    args = removeUserCommunication_args()
1425
    args.id = id
1426
    args.write(self._oprot)
1427
    self._oprot.writeMessageEnd()
1428
    self._oprot.trans.flush()
1429
 
1430
  def recv_removeUserCommunication(self, ):
1431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1432
    if mtype == TMessageType.EXCEPTION:
1433
      x = TApplicationException()
1434
      x.read(self._iprot)
1435
      self._iprot.readMessageEnd()
1436
      raise x
1437
    result = removeUserCommunication_result()
1438
    result.read(self._iprot)
1439
    self._iprot.readMessageEnd()
1440
    if result.ucx is not None:
1441
      raise result.ucx
1442
    return
1443
 
1859 vikas 1444
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1445
    """
1446
    Parameters:
1447
     - name
1859 vikas 1448
     - addedOn
1845 vikas 1449
    """
1859 vikas 1450
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1451
    return self.recv_createMasterAffiliate()
1452
 
1859 vikas 1453
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1454
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1455
    args = createMasterAffiliate_args()
1456
    args.name = name
1859 vikas 1457
    args.addedOn = addedOn
1845 vikas 1458
    args.write(self._oprot)
1459
    self._oprot.writeMessageEnd()
1460
    self._oprot.trans.flush()
1461
 
1462
  def recv_createMasterAffiliate(self, ):
1463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1464
    if mtype == TMessageType.EXCEPTION:
1465
      x = TApplicationException()
1466
      x.read(self._iprot)
1467
      self._iprot.readMessageEnd()
1468
      raise x
1469
    result = createMasterAffiliate_result()
1470
    result.read(self._iprot)
1471
    self._iprot.readMessageEnd()
3431 rajveer 1472
    if result.success is not None:
1845 vikas 1473
      return result.success
3431 rajveer 1474
    if result.utx is not None:
1845 vikas 1475
      raise result.utx
1476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1477
 
1899 vikas 1478
  def getAllMasterAffiliates(self, ):
1479
    self.send_getAllMasterAffiliates()
1480
    return self.recv_getAllMasterAffiliates()
1481
 
1482
  def send_getAllMasterAffiliates(self, ):
1483
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1484
    args = getAllMasterAffiliates_args()
1485
    args.write(self._oprot)
1486
    self._oprot.writeMessageEnd()
1487
    self._oprot.trans.flush()
1488
 
1489
  def recv_getAllMasterAffiliates(self, ):
1490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1491
    if mtype == TMessageType.EXCEPTION:
1492
      x = TApplicationException()
1493
      x.read(self._iprot)
1494
      self._iprot.readMessageEnd()
1495
      raise x
1496
    result = getAllMasterAffiliates_result()
1497
    result.read(self._iprot)
1498
    self._iprot.readMessageEnd()
3431 rajveer 1499
    if result.success is not None:
1899 vikas 1500
      return result.success
3431 rajveer 1501
    if result.utx is not None:
1899 vikas 1502
      raise result.utx
1503
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1504
 
1845 vikas 1505
  def getMasterAffiliateById(self, id):
1506
    """
1507
    Parameters:
1508
     - id
1509
    """
1510
    self.send_getMasterAffiliateById(id)
1511
    return self.recv_getMasterAffiliateById()
1512
 
1513
  def send_getMasterAffiliateById(self, id):
1514
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1515
    args = getMasterAffiliateById_args()
1516
    args.id = id
1517
    args.write(self._oprot)
1518
    self._oprot.writeMessageEnd()
1519
    self._oprot.trans.flush()
1520
 
1521
  def recv_getMasterAffiliateById(self, ):
1522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1523
    if mtype == TMessageType.EXCEPTION:
1524
      x = TApplicationException()
1525
      x.read(self._iprot)
1526
      self._iprot.readMessageEnd()
1527
      raise x
1528
    result = getMasterAffiliateById_result()
1529
    result.read(self._iprot)
1530
    self._iprot.readMessageEnd()
3431 rajveer 1531
    if result.success is not None:
1845 vikas 1532
      return result.success
3431 rajveer 1533
    if result.utx is not None:
1845 vikas 1534
      raise result.utx
1535
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1536
 
1537
  def getMasterAffiliateByName(self, name):
1538
    """
1539
    Parameters:
1540
     - name
1541
    """
1542
    self.send_getMasterAffiliateByName(name)
1543
    return self.recv_getMasterAffiliateByName()
1544
 
1545
  def send_getMasterAffiliateByName(self, name):
1546
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1547
    args = getMasterAffiliateByName_args()
1548
    args.name = name
1549
    args.write(self._oprot)
1550
    self._oprot.writeMessageEnd()
1551
    self._oprot.trans.flush()
1552
 
1553
  def recv_getMasterAffiliateByName(self, ):
1554
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1555
    if mtype == TMessageType.EXCEPTION:
1556
      x = TApplicationException()
1557
      x.read(self._iprot)
1558
      self._iprot.readMessageEnd()
1559
      raise x
1560
    result = getMasterAffiliateByName_result()
1561
    result.read(self._iprot)
1562
    self._iprot.readMessageEnd()
3431 rajveer 1563
    if result.success is not None:
1845 vikas 1564
      return result.success
3431 rajveer 1565
    if result.utx is not None:
1845 vikas 1566
      raise result.utx
1567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1568
 
1859 vikas 1569
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1570
    """
1571
    Parameters:
1572
     - name
1573
     - url
1574
     - masterAffiliateId
1859 vikas 1575
     - addedOn
1845 vikas 1576
    """
1859 vikas 1577
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1578
    return self.recv_createAffiliate()
1579
 
1859 vikas 1580
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1581
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1582
    args = createAffiliate_args()
1583
    args.name = name
1584
    args.url = url
1585
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1586
    args.addedOn = addedOn
1845 vikas 1587
    args.write(self._oprot)
1588
    self._oprot.writeMessageEnd()
1589
    self._oprot.trans.flush()
1590
 
1591
  def recv_createAffiliate(self, ):
1592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1593
    if mtype == TMessageType.EXCEPTION:
1594
      x = TApplicationException()
1595
      x.read(self._iprot)
1596
      self._iprot.readMessageEnd()
1597
      raise x
1598
    result = createAffiliate_result()
1599
    result.read(self._iprot)
1600
    self._iprot.readMessageEnd()
3431 rajveer 1601
    if result.success is not None:
1845 vikas 1602
      return result.success
3431 rajveer 1603
    if result.utx is not None:
1845 vikas 1604
      raise result.utx
1605
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1606
 
1607
  def getAffiliateById(self, id):
1608
    """
1609
    Parameters:
1610
     - id
1611
    """
1612
    self.send_getAffiliateById(id)
1613
    return self.recv_getAffiliateById()
1614
 
1615
  def send_getAffiliateById(self, id):
1616
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1617
    args = getAffiliateById_args()
1618
    args.id = id
1619
    args.write(self._oprot)
1620
    self._oprot.writeMessageEnd()
1621
    self._oprot.trans.flush()
1622
 
1623
  def recv_getAffiliateById(self, ):
1624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1625
    if mtype == TMessageType.EXCEPTION:
1626
      x = TApplicationException()
1627
      x.read(self._iprot)
1628
      self._iprot.readMessageEnd()
1629
      raise x
1630
    result = getAffiliateById_result()
1631
    result.read(self._iprot)
1632
    self._iprot.readMessageEnd()
3431 rajveer 1633
    if result.success is not None:
1845 vikas 1634
      return result.success
3431 rajveer 1635
    if result.utx is not None:
1845 vikas 1636
      raise result.utx
1637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1638
 
1639
  def getAffiliateByName(self, name):
1640
    """
1641
    Parameters:
1642
     - name
1643
    """
1644
    self.send_getAffiliateByName(name)
1645
    return self.recv_getAffiliateByName()
1646
 
1647
  def send_getAffiliateByName(self, name):
1648
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1649
    args = getAffiliateByName_args()
1650
    args.name = name
1651
    args.write(self._oprot)
1652
    self._oprot.writeMessageEnd()
1653
    self._oprot.trans.flush()
1654
 
1655
  def recv_getAffiliateByName(self, ):
1656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1657
    if mtype == TMessageType.EXCEPTION:
1658
      x = TApplicationException()
1659
      x.read(self._iprot)
1660
      self._iprot.readMessageEnd()
1661
      raise x
1662
    result = getAffiliateByName_result()
1663
    result.read(self._iprot)
1664
    self._iprot.readMessageEnd()
3431 rajveer 1665
    if result.success is not None:
1845 vikas 1666
      return result.success
3431 rajveer 1667
    if result.utx is not None:
1845 vikas 1668
      raise result.utx
1669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1670
 
1996 vikas 1671
  def getTrackerById(self, id):
1845 vikas 1672
    """
1673
    Parameters:
1674
     - id
1675
    """
1996 vikas 1676
    self.send_getTrackerById(id)
1845 vikas 1677
    return self.recv_getTrackerById()
1678
 
1996 vikas 1679
  def send_getTrackerById(self, id):
1845 vikas 1680
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1681
    args = getTrackerById_args()
1996 vikas 1682
    args.id = id
1845 vikas 1683
    args.write(self._oprot)
1684
    self._oprot.writeMessageEnd()
1685
    self._oprot.trans.flush()
1686
 
1687
  def recv_getTrackerById(self, ):
1688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1689
    if mtype == TMessageType.EXCEPTION:
1690
      x = TApplicationException()
1691
      x.read(self._iprot)
1692
      self._iprot.readMessageEnd()
1693
      raise x
1694
    result = getTrackerById_result()
1695
    result.read(self._iprot)
1696
    self._iprot.readMessageEnd()
3431 rajveer 1697
    if result.success is not None:
1845 vikas 1698
      return result.success
3431 rajveer 1699
    if result.utx is not None:
1845 vikas 1700
      raise result.utx
1701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1702
 
1996 vikas 1703
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1704
    """
1705
    Parameters:
1996 vikas 1706
     - id
1845 vikas 1707
    """
1996 vikas 1708
    self.send_getAffiliatesByMasterAffiliate(id)
1709
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1710
 
1996 vikas 1711
  def send_getAffiliatesByMasterAffiliate(self, id):
1712
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1713
    args = getAffiliatesByMasterAffiliate_args()
1714
    args.id = id
1845 vikas 1715
    args.write(self._oprot)
1716
    self._oprot.writeMessageEnd()
1717
    self._oprot.trans.flush()
1718
 
1996 vikas 1719
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1721
    if mtype == TMessageType.EXCEPTION:
1722
      x = TApplicationException()
1723
      x.read(self._iprot)
1724
      self._iprot.readMessageEnd()
1725
      raise x
1996 vikas 1726
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1727
    result.read(self._iprot)
1728
    self._iprot.readMessageEnd()
3431 rajveer 1729
    if result.success is not None:
1845 vikas 1730
      return result.success
3431 rajveer 1731
    if result.utx is not None:
1845 vikas 1732
      raise result.utx
1996 vikas 1733
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1734
 
1996 vikas 1735
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1736
    """
1737
    Parameters:
1996 vikas 1738
     - affiliateId
1845 vikas 1739
     - userId
1740
     - event
1741
     - url
1742
     - data
1859 vikas 1743
     - addedOn
1845 vikas 1744
    """
1996 vikas 1745
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1746
    return self.recv_addTrackLog()
1747
 
1996 vikas 1748
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1749
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1750
    args = addTrackLog_args()
1996 vikas 1751
    args.affiliateId = affiliateId
1845 vikas 1752
    args.userId = userId
1753
    args.event = event
1754
    args.url = url
1755
    args.data = data
1859 vikas 1756
    args.addedOn = addedOn
1845 vikas 1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_addTrackLog(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = addTrackLog_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
3431 rajveer 1771
    if result.success is not None:
1845 vikas 1772
      return result.success
3431 rajveer 1773
    if result.utx is not None:
1845 vikas 1774
      raise result.utx
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1776
 
1777
  def getTrackLogById(self, id):
1778
    """
1779
    Parameters:
1780
     - id
1781
    """
1782
    self.send_getTrackLogById(id)
1783
    return self.recv_getTrackLogById()
1784
 
1785
  def send_getTrackLogById(self, id):
1786
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1787
    args = getTrackLogById_args()
1788
    args.id = id
1789
    args.write(self._oprot)
1790
    self._oprot.writeMessageEnd()
1791
    self._oprot.trans.flush()
1792
 
1793
  def recv_getTrackLogById(self, ):
1794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1795
    if mtype == TMessageType.EXCEPTION:
1796
      x = TApplicationException()
1797
      x.read(self._iprot)
1798
      self._iprot.readMessageEnd()
1799
      raise x
1800
    result = getTrackLogById_result()
1801
    result.read(self._iprot)
1802
    self._iprot.readMessageEnd()
3431 rajveer 1803
    if result.success is not None:
1845 vikas 1804
      return result.success
3431 rajveer 1805
    if result.utx is not None:
1845 vikas 1806
      raise result.utx
1807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1808
 
3293 vikas 1809
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1810
    """
1811
    Parameters:
1996 vikas 1812
     - affiliateId
3293 vikas 1813
     - startDate
1814
     - endDate
1845 vikas 1815
    """
3293 vikas 1816
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1817
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1818
 
3293 vikas 1819
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1820
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1821
    args = getTrackLogsByAffiliate_args()
1822
    args.affiliateId = affiliateId
3293 vikas 1823
    args.startDate = startDate
1824
    args.endDate = endDate
1845 vikas 1825
    args.write(self._oprot)
1826
    self._oprot.writeMessageEnd()
1827
    self._oprot.trans.flush()
1828
 
1996 vikas 1829
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1831
    if mtype == TMessageType.EXCEPTION:
1832
      x = TApplicationException()
1833
      x.read(self._iprot)
1834
      self._iprot.readMessageEnd()
1835
      raise x
1996 vikas 1836
    result = getTrackLogsByAffiliate_result()
1845 vikas 1837
    result.read(self._iprot)
1838
    self._iprot.readMessageEnd()
3431 rajveer 1839
    if result.success is not None:
1845 vikas 1840
      return result.success
3431 rajveer 1841
    if result.utx is not None:
1845 vikas 1842
      raise result.utx
1996 vikas 1843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1844
 
1845
  def getTrackLogsByUser(self, userId):
1846
    """
1847
    Parameters:
1848
     - userId
1849
    """
1850
    self.send_getTrackLogsByUser(userId)
1851
    return self.recv_getTrackLogsByUser()
1852
 
1853
  def send_getTrackLogsByUser(self, userId):
1854
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1855
    args = getTrackLogsByUser_args()
1856
    args.userId = userId
1857
    args.write(self._oprot)
1858
    self._oprot.writeMessageEnd()
1859
    self._oprot.trans.flush()
1860
 
1861
  def recv_getTrackLogsByUser(self, ):
1862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1863
    if mtype == TMessageType.EXCEPTION:
1864
      x = TApplicationException()
1865
      x.read(self._iprot)
1866
      self._iprot.readMessageEnd()
1867
      raise x
1868
    result = getTrackLogsByUser_result()
1869
    result.read(self._iprot)
1870
    self._iprot.readMessageEnd()
3431 rajveer 1871
    if result.success is not None:
1845 vikas 1872
      return result.success
3431 rajveer 1873
    if result.utx is not None:
1845 vikas 1874
      raise result.utx
1875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1876
 
1996 vikas 1877
  def getTrackLogs(self, userId, event, url):
1845 vikas 1878
    """
1879
    Parameters:
1880
     - userId
1881
     - event
1882
     - url
1883
    """
1996 vikas 1884
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1885
    return self.recv_getTrackLogs()
1886
 
1996 vikas 1887
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1888
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1889
    args = getTrackLogs_args()
1890
    args.userId = userId
1891
    args.event = event
1892
    args.url = url
1893
    args.write(self._oprot)
1894
    self._oprot.writeMessageEnd()
1895
    self._oprot.trans.flush()
1896
 
1897
  def recv_getTrackLogs(self, ):
1898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1899
    if mtype == TMessageType.EXCEPTION:
1900
      x = TApplicationException()
1901
      x.read(self._iprot)
1902
      self._iprot.readMessageEnd()
1903
      raise x
1904
    result = getTrackLogs_result()
1905
    result.read(self._iprot)
1906
    self._iprot.readMessageEnd()
3431 rajveer 1907
    if result.success is not None:
1845 vikas 1908
      return result.success
3431 rajveer 1909
    if result.utx is not None:
1845 vikas 1910
      raise result.utx
1911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1912
 
559 chandransh 1913
  def getCurrentCart(self, userId):
94 ashish 1914
    """
1915
    Parameters:
559 chandransh 1916
     - userId
94 ashish 1917
    """
559 chandransh 1918
    self.send_getCurrentCart(userId)
1919
    return self.recv_getCurrentCart()
94 ashish 1920
 
559 chandransh 1921
  def send_getCurrentCart(self, userId):
1922
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1923
    args = getCurrentCart_args()
1924
    args.userId = userId
94 ashish 1925
    args.write(self._oprot)
1926
    self._oprot.writeMessageEnd()
1927
    self._oprot.trans.flush()
1928
 
559 chandransh 1929
  def recv_getCurrentCart(self, ):
94 ashish 1930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1931
    if mtype == TMessageType.EXCEPTION:
1932
      x = TApplicationException()
1933
      x.read(self._iprot)
1934
      self._iprot.readMessageEnd()
1935
      raise x
559 chandransh 1936
    result = getCurrentCart_result()
94 ashish 1937
    result.read(self._iprot)
1938
    self._iprot.readMessageEnd()
3431 rajveer 1939
    if result.success is not None:
94 ashish 1940
      return result.success
3431 rajveer 1941
    if result.scx is not None:
559 chandransh 1942
      raise result.scx
1943
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1944
 
559 chandransh 1945
  def getCart(self, cartId):
94 ashish 1946
    """
1947
    Parameters:
559 chandransh 1948
     - cartId
94 ashish 1949
    """
559 chandransh 1950
    self.send_getCart(cartId)
1951
    return self.recv_getCart()
94 ashish 1952
 
559 chandransh 1953
  def send_getCart(self, cartId):
1954
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1955
    args = getCart_args()
1956
    args.cartId = cartId
94 ashish 1957
    args.write(self._oprot)
1958
    self._oprot.writeMessageEnd()
1959
    self._oprot.trans.flush()
1960
 
559 chandransh 1961
  def recv_getCart(self, ):
94 ashish 1962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1963
    if mtype == TMessageType.EXCEPTION:
1964
      x = TApplicationException()
1965
      x.read(self._iprot)
1966
      self._iprot.readMessageEnd()
1967
      raise x
559 chandransh 1968
    result = getCart_result()
94 ashish 1969
    result.read(self._iprot)
1970
    self._iprot.readMessageEnd()
3431 rajveer 1971
    if result.success is not None:
94 ashish 1972
      return result.success
3431 rajveer 1973
    if result.scx is not None:
559 chandransh 1974
      raise result.scx
1975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1976
 
559 chandransh 1977
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1978
    """
1979
    Parameters:
559 chandransh 1980
     - from_time
1981
     - to_time
1982
     - status
94 ashish 1983
    """
559 chandransh 1984
    self.send_getCartsByTime(from_time, to_time, status)
1985
    return self.recv_getCartsByTime()
94 ashish 1986
 
559 chandransh 1987
  def send_getCartsByTime(self, from_time, to_time, status):
1988
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1989
    args = getCartsByTime_args()
1990
    args.from_time = from_time
1991
    args.to_time = to_time
1992
    args.status = status
94 ashish 1993
    args.write(self._oprot)
1994
    self._oprot.writeMessageEnd()
1995
    self._oprot.trans.flush()
1996
 
559 chandransh 1997
  def recv_getCartsByTime(self, ):
94 ashish 1998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1999
    if mtype == TMessageType.EXCEPTION:
2000
      x = TApplicationException()
2001
      x.read(self._iprot)
2002
      self._iprot.readMessageEnd()
2003
      raise x
559 chandransh 2004
    result = getCartsByTime_result()
94 ashish 2005
    result.read(self._iprot)
2006
    self._iprot.readMessageEnd()
3431 rajveer 2007
    if result.success is not None:
94 ashish 2008
      return result.success
3431 rajveer 2009
    if result.scx is not None:
559 chandransh 2010
      raise result.scx
2011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2012
 
3557 rajveer 2013
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2014
    """
2015
    Parameters:
2016
     - cartId
2017
     - itemId
2018
     - quantity
3557 rajveer 2019
     - sourceId
559 chandransh 2020
    """
3557 rajveer 2021
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2022
    return self.recv_addItemToCart()
559 chandransh 2023
 
3557 rajveer 2024
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2025
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2026
    args = addItemToCart_args()
2027
    args.cartId = cartId
2028
    args.itemId = itemId
2029
    args.quantity = quantity
3557 rajveer 2030
    args.sourceId = sourceId
559 chandransh 2031
    args.write(self._oprot)
2032
    self._oprot.writeMessageEnd()
2033
    self._oprot.trans.flush()
2034
 
2035
  def recv_addItemToCart(self, ):
2036
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2037
    if mtype == TMessageType.EXCEPTION:
2038
      x = TApplicationException()
2039
      x.read(self._iprot)
2040
      self._iprot.readMessageEnd()
2041
      raise x
2042
    result = addItemToCart_result()
2043
    result.read(self._iprot)
2044
    self._iprot.readMessageEnd()
3431 rajveer 2045
    if result.success is not None:
2035 rajveer 2046
      return result.success
3431 rajveer 2047
    if result.scx is not None:
559 chandransh 2048
      raise result.scx
2035 rajveer 2049
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2050
 
2051
  def deleteItemFromCart(self, cartId, itemId):
2052
    """
2053
    Parameters:
2054
     - cartId
2055
     - itemId
2056
    """
2057
    self.send_deleteItemFromCart(cartId, itemId)
2058
    self.recv_deleteItemFromCart()
2059
 
2060
  def send_deleteItemFromCart(self, cartId, itemId):
2061
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2062
    args = deleteItemFromCart_args()
2063
    args.cartId = cartId
2064
    args.itemId = itemId
2065
    args.write(self._oprot)
2066
    self._oprot.writeMessageEnd()
2067
    self._oprot.trans.flush()
2068
 
2069
  def recv_deleteItemFromCart(self, ):
2070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2071
    if mtype == TMessageType.EXCEPTION:
2072
      x = TApplicationException()
2073
      x.read(self._iprot)
2074
      self._iprot.readMessageEnd()
2075
      raise x
2076
    result = deleteItemFromCart_result()
2077
    result.read(self._iprot)
2078
    self._iprot.readMessageEnd()
3431 rajveer 2079
    if result.scx is not None:
559 chandransh 2080
      raise result.scx
2081
    return
2082
 
2083
  def addAddressToCart(self, cartId, addressId):
2084
    """
2085
    Parameters:
2086
     - cartId
2087
     - addressId
2088
    """
2089
    self.send_addAddressToCart(cartId, addressId)
2090
    self.recv_addAddressToCart()
2091
 
2092
  def send_addAddressToCart(self, cartId, addressId):
2093
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2094
    args = addAddressToCart_args()
2095
    args.cartId = cartId
2096
    args.addressId = addressId
2097
    args.write(self._oprot)
2098
    self._oprot.writeMessageEnd()
2099
    self._oprot.trans.flush()
2100
 
2101
  def recv_addAddressToCart(self, ):
2102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2103
    if mtype == TMessageType.EXCEPTION:
2104
      x = TApplicationException()
2105
      x.read(self._iprot)
2106
      self._iprot.readMessageEnd()
2107
      raise x
2108
    result = addAddressToCart_result()
2109
    result.read(self._iprot)
2110
    self._iprot.readMessageEnd()
3431 rajveer 2111
    if result.scx is not None:
575 chandransh 2112
      raise result.scx
559 chandransh 2113
    return
2114
 
5553 rajveer 2115
  def addStoreToCart(self, cartId, storeId):
2116
    """
2117
    Parameters:
2118
     - cartId
2119
     - storeId
2120
    """
2121
    self.send_addStoreToCart(cartId, storeId)
2122
    self.recv_addStoreToCart()
2123
 
2124
  def send_addStoreToCart(self, cartId, storeId):
2125
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2126
    args = addStoreToCart_args()
2127
    args.cartId = cartId
2128
    args.storeId = storeId
2129
    args.write(self._oprot)
2130
    self._oprot.writeMessageEnd()
2131
    self._oprot.trans.flush()
2132
 
2133
  def recv_addStoreToCart(self, ):
2134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2135
    if mtype == TMessageType.EXCEPTION:
2136
      x = TApplicationException()
2137
      x.read(self._iprot)
2138
      self._iprot.readMessageEnd()
2139
      raise x
2140
    result = addStoreToCart_result()
2141
    result.read(self._iprot)
2142
    self._iprot.readMessageEnd()
2143
    if result.scx is not None:
2144
      raise result.scx
2145
    return
2146
 
1976 varun.gupt 2147
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2148
    """
2149
    Parameters:
2150
     - cartId
2151
     - couponCode
2152
     - totalPrice
2153
     - discountedPrice
2154
    """
2155
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2156
    self.recv_applyCouponToCart()
2157
 
2158
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2159
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2160
    args = applyCouponToCart_args()
2161
    args.cartId = cartId
2162
    args.couponCode = couponCode
2163
    args.totalPrice = totalPrice
2164
    args.discountedPrice = discountedPrice
2165
    args.write(self._oprot)
2166
    self._oprot.writeMessageEnd()
2167
    self._oprot.trans.flush()
2168
 
2169
  def recv_applyCouponToCart(self, ):
2170
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2171
    if mtype == TMessageType.EXCEPTION:
2172
      x = TApplicationException()
2173
      x.read(self._iprot)
2174
      self._iprot.readMessageEnd()
2175
      raise x
2176
    result = applyCouponToCart_result()
2177
    result.read(self._iprot)
2178
    self._iprot.readMessageEnd()
3431 rajveer 2179
    if result.scx is not None:
1976 varun.gupt 2180
      raise result.scx
2181
    return
2182
 
2183
  def removeCoupon(self, cartId):
2184
    """
2185
    Parameters:
2186
     - cartId
2187
    """
2188
    self.send_removeCoupon(cartId)
2189
    self.recv_removeCoupon()
2190
 
2191
  def send_removeCoupon(self, cartId):
2192
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2193
    args = removeCoupon_args()
2194
    args.cartId = cartId
2195
    args.write(self._oprot)
2196
    self._oprot.writeMessageEnd()
2197
    self._oprot.trans.flush()
2198
 
2199
  def recv_removeCoupon(self, ):
2200
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2201
    if mtype == TMessageType.EXCEPTION:
2202
      x = TApplicationException()
2203
      x.read(self._iprot)
2204
      self._iprot.readMessageEnd()
2205
      raise x
2206
    result = removeCoupon_result()
2207
    result.read(self._iprot)
2208
    self._iprot.readMessageEnd()
3431 rajveer 2209
    if result.scx is not None:
1976 varun.gupt 2210
      raise result.scx
2211
    return
2212
 
3554 varun.gupt 2213
  def deleteDiscountsFromCart(self, cartId):
2214
    """
2215
    Deletes all the discounts associated with the cart
2216
 
2217
    Parameters:
2218
     - cartId
2219
    """
2220
    self.send_deleteDiscountsFromCart(cartId)
2221
    self.recv_deleteDiscountsFromCart()
2222
 
2223
  def send_deleteDiscountsFromCart(self, cartId):
2224
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2225
    args = deleteDiscountsFromCart_args()
2226
    args.cartId = cartId
2227
    args.write(self._oprot)
2228
    self._oprot.writeMessageEnd()
2229
    self._oprot.trans.flush()
2230
 
2231
  def recv_deleteDiscountsFromCart(self, ):
2232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2233
    if mtype == TMessageType.EXCEPTION:
2234
      x = TApplicationException()
2235
      x.read(self._iprot)
2236
      self._iprot.readMessageEnd()
2237
      raise x
2238
    result = deleteDiscountsFromCart_result()
2239
    result.read(self._iprot)
2240
    self._iprot.readMessageEnd()
2241
    if result.scx is not None:
2242
      raise result.scx
2243
    return
2244
 
2245
  def saveDiscounts(self, discounts):
2246
    """
2247
    Accepts a list of thrift objects of Discount type and saves them
2248
 
2249
    Parameters:
2250
     - discounts
2251
    """
2252
    self.send_saveDiscounts(discounts)
2253
    self.recv_saveDiscounts()
2254
 
2255
  def send_saveDiscounts(self, discounts):
2256
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2257
    args = saveDiscounts_args()
2258
    args.discounts = discounts
2259
    args.write(self._oprot)
2260
    self._oprot.writeMessageEnd()
2261
    self._oprot.trans.flush()
2262
 
2263
  def recv_saveDiscounts(self, ):
2264
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2265
    if mtype == TMessageType.EXCEPTION:
2266
      x = TApplicationException()
2267
      x.read(self._iprot)
2268
      self._iprot.readMessageEnd()
2269
      raise x
2270
    result = saveDiscounts_result()
2271
    result.read(self._iprot)
2272
    self._iprot.readMessageEnd()
2273
    if result.scx is not None:
2274
      raise result.scx
2275
    return
2276
 
5326 rajveer 2277
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2278
    """
690 chandransh 2279
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2280
 
559 chandransh 2281
    Parameters:
2282
     - cartId
2815 vikas 2283
     - sessionSource
2284
     - sessionStartTime
3858 vikas 2285
     - firstSource
2286
     - firstSourceTime
5326 rajveer 2287
     - userId
559 chandransh 2288
    """
5326 rajveer 2289
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2290
    return self.recv_createOrders()
559 chandransh 2291
 
5326 rajveer 2292
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2293
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2294
    args = createOrders_args()
559 chandransh 2295
    args.cartId = cartId
2815 vikas 2296
    args.sessionSource = sessionSource
2297
    args.sessionStartTime = sessionStartTime
3858 vikas 2298
    args.firstSource = firstSource
2299
    args.firstSourceTime = firstSourceTime
5326 rajveer 2300
    args.userId = userId
559 chandransh 2301
    args.write(self._oprot)
2302
    self._oprot.writeMessageEnd()
2303
    self._oprot.trans.flush()
2304
 
690 chandransh 2305
  def recv_createOrders(self, ):
559 chandransh 2306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2307
    if mtype == TMessageType.EXCEPTION:
2308
      x = TApplicationException()
2309
      x.read(self._iprot)
2310
      self._iprot.readMessageEnd()
2311
      raise x
690 chandransh 2312
    result = createOrders_result()
559 chandransh 2313
    result.read(self._iprot)
2314
    self._iprot.readMessageEnd()
3431 rajveer 2315
    if result.success is not None:
130 ashish 2316
      return result.success
3431 rajveer 2317
    if result.scx is not None:
559 chandransh 2318
      raise result.scx
690 chandransh 2319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2320
 
3557 rajveer 2321
  def validateCart(self, cartId, sourceId):
130 ashish 2322
    """
690 chandransh 2323
    Validates that:
2324
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2325
    2. All of the lines in the cart are active items.
690 chandransh 2326
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2327
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2328
 
130 ashish 2329
    Parameters:
559 chandransh 2330
     - cartId
3557 rajveer 2331
     - sourceId
130 ashish 2332
    """
3557 rajveer 2333
    self.send_validateCart(cartId, sourceId)
559 chandransh 2334
    return self.recv_validateCart()
130 ashish 2335
 
3557 rajveer 2336
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2337
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2338
    args = validateCart_args()
2339
    args.cartId = cartId
3557 rajveer 2340
    args.sourceId = sourceId
130 ashish 2341
    args.write(self._oprot)
2342
    self._oprot.writeMessageEnd()
2343
    self._oprot.trans.flush()
2344
 
559 chandransh 2345
  def recv_validateCart(self, ):
130 ashish 2346
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2347
    if mtype == TMessageType.EXCEPTION:
2348
      x = TApplicationException()
2349
      x.read(self._iprot)
2350
      self._iprot.readMessageEnd()
2351
      raise x
559 chandransh 2352
    result = validateCart_result()
130 ashish 2353
    result.read(self._iprot)
2354
    self._iprot.readMessageEnd()
3431 rajveer 2355
    if result.success is not None:
130 ashish 2356
      return result.success
3431 rajveer 2357
    if result.scex is not None:
575 chandransh 2358
      raise result.scex
559 chandransh 2359
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2360
 
690 chandransh 2361
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2362
    """
690 chandransh 2363
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2364
 
575 chandransh 2365
    Parameters:
690 chandransh 2366
     - fromCartId
2367
     - toCartId
2368
    """
2369
    self.send_mergeCart(fromCartId, toCartId)
2370
    self.recv_mergeCart()
2371
 
2372
  def send_mergeCart(self, fromCartId, toCartId):
2373
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2374
    args = mergeCart_args()
2375
    args.fromCartId = fromCartId
2376
    args.toCartId = toCartId
2377
    args.write(self._oprot)
2378
    self._oprot.writeMessageEnd()
2379
    self._oprot.trans.flush()
2380
 
2381
  def recv_mergeCart(self, ):
2382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2383
    if mtype == TMessageType.EXCEPTION:
2384
      x = TApplicationException()
2385
      x.read(self._iprot)
2386
      self._iprot.readMessageEnd()
2387
      raise x
2388
    result = mergeCart_result()
2389
    result.read(self._iprot)
2390
    self._iprot.readMessageEnd()
2391
    return
2392
 
2393
  def checkOut(self, cartId):
2394
    """
2395
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2396
 
690 chandransh 2397
    Parameters:
575 chandransh 2398
     - cartId
2399
    """
690 chandransh 2400
    self.send_checkOut(cartId)
2401
    return self.recv_checkOut()
575 chandransh 2402
 
690 chandransh 2403
  def send_checkOut(self, cartId):
2404
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2405
    args = checkOut_args()
575 chandransh 2406
    args.cartId = cartId
2407
    args.write(self._oprot)
2408
    self._oprot.writeMessageEnd()
2409
    self._oprot.trans.flush()
2410
 
690 chandransh 2411
  def recv_checkOut(self, ):
575 chandransh 2412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2413
    if mtype == TMessageType.EXCEPTION:
2414
      x = TApplicationException()
2415
      x.read(self._iprot)
2416
      self._iprot.readMessageEnd()
2417
      raise x
690 chandransh 2418
    result = checkOut_result()
575 chandransh 2419
    result.read(self._iprot)
2420
    self._iprot.readMessageEnd()
3431 rajveer 2421
    if result.success is not None:
575 chandransh 2422
      return result.success
3431 rajveer 2423
    if result.scex is not None:
575 chandransh 2424
      raise result.scex
690 chandransh 2425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2426
 
690 chandransh 2427
  def resetCart(self, cartId, items):
559 chandransh 2428
    """
690 chandransh 2429
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2430
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2431
 
559 chandransh 2432
    Parameters:
690 chandransh 2433
     - cartId
2434
     - items
559 chandransh 2435
    """
690 chandransh 2436
    self.send_resetCart(cartId, items)
2437
    return self.recv_resetCart()
130 ashish 2438
 
690 chandransh 2439
  def send_resetCart(self, cartId, items):
2440
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2441
    args = resetCart_args()
2442
    args.cartId = cartId
2443
    args.items = items
559 chandransh 2444
    args.write(self._oprot)
2445
    self._oprot.writeMessageEnd()
2446
    self._oprot.trans.flush()
2447
 
690 chandransh 2448
  def recv_resetCart(self, ):
559 chandransh 2449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2450
    if mtype == TMessageType.EXCEPTION:
2451
      x = TApplicationException()
2452
      x.read(self._iprot)
2453
      self._iprot.readMessageEnd()
2454
      raise x
690 chandransh 2455
    result = resetCart_result()
559 chandransh 2456
    result.read(self._iprot)
2457
    self._iprot.readMessageEnd()
3431 rajveer 2458
    if result.success is not None:
690 chandransh 2459
      return result.success
3431 rajveer 2460
    if result.scex is not None:
690 chandransh 2461
      raise result.scex
2462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2463
 
2981 rajveer 2464
  def getUserCount(self, userType):
559 chandransh 2465
    """
2981 rajveer 2466
    Returns number of registered users.
2467
    If userType = null, then it returns count of all users, including anonymous
2468
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2469
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2470
 
559 chandransh 2471
    Parameters:
2981 rajveer 2472
     - userType
559 chandransh 2473
    """
2981 rajveer 2474
    self.send_getUserCount(userType)
2475
    return self.recv_getUserCount()
559 chandransh 2476
 
2981 rajveer 2477
  def send_getUserCount(self, userType):
2478
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2479
    args = getUserCount_args()
2480
    args.userType = userType
559 chandransh 2481
    args.write(self._oprot)
2482
    self._oprot.writeMessageEnd()
2483
    self._oprot.trans.flush()
2484
 
2981 rajveer 2485
  def recv_getUserCount(self, ):
559 chandransh 2486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2487
    if mtype == TMessageType.EXCEPTION:
2488
      x = TApplicationException()
2489
      x.read(self._iprot)
2490
      self._iprot.readMessageEnd()
2491
      raise x
2981 rajveer 2492
    result = getUserCount_result()
559 chandransh 2493
    result.read(self._iprot)
2494
    self._iprot.readMessageEnd()
3431 rajveer 2495
    if result.success is not None:
559 chandransh 2496
      return result.success
2981 rajveer 2497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2498
 
2981 rajveer 2499
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2500
    """
2981 rajveer 2501
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2502
    If any of startDate or endDate is -1, then that filter is ignored.
2503
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2504
 
2505
 
559 chandransh 2506
    Parameters:
2981 rajveer 2507
     - userType
2508
     - startDate
2509
     - endDate
559 chandransh 2510
    """
2981 rajveer 2511
    self.send_getAllUsers(userType, startDate, endDate)
2512
    return self.recv_getAllUsers()
559 chandransh 2513
 
2981 rajveer 2514
  def send_getAllUsers(self, userType, startDate, endDate):
2515
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2516
    args = getAllUsers_args()
2517
    args.userType = userType
2518
    args.startDate = startDate
2519
    args.endDate = endDate
559 chandransh 2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2981 rajveer 2524
  def recv_getAllUsers(self, ):
559 chandransh 2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2981 rajveer 2531
    result = getAllUsers_result()
559 chandransh 2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
3431 rajveer 2534
    if result.success is not None:
559 chandransh 2535
      return result.success
2981 rajveer 2536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2537
 
2981 rajveer 2538
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2539
    """
2540
    Parameters:
2981 rajveer 2541
     - user_id
2542
     - entity_id
2543
     - slide
2544
     - note
559 chandransh 2545
    """
2981 rajveer 2546
    self.send_putUserNote(user_id, entity_id, slide, note)
2547
    self.recv_putUserNote()
559 chandransh 2548
 
2981 rajveer 2549
  def send_putUserNote(self, user_id, entity_id, slide, note):
2550
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2551
    args = putUserNote_args()
2552
    args.user_id = user_id
2553
    args.entity_id = entity_id
2554
    args.slide = slide
2555
    args.note = note
559 chandransh 2556
    args.write(self._oprot)
2557
    self._oprot.writeMessageEnd()
2558
    self._oprot.trans.flush()
2559
 
2981 rajveer 2560
  def recv_putUserNote(self, ):
559 chandransh 2561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2562
    if mtype == TMessageType.EXCEPTION:
2563
      x = TApplicationException()
2564
      x.read(self._iprot)
2565
      self._iprot.readMessageEnd()
2566
      raise x
2981 rajveer 2567
    result = putUserNote_result()
559 chandransh 2568
    result.read(self._iprot)
2569
    self._iprot.readMessageEnd()
2570
    return
2571
 
2981 rajveer 2572
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2573
    """
2574
    Parameters:
2981 rajveer 2575
     - user_id
2576
     - entity_id
559 chandransh 2577
    """
2981 rajveer 2578
    self.send_getUserNotes(user_id, entity_id)
2579
    return self.recv_getUserNotes()
559 chandransh 2580
 
2981 rajveer 2581
  def send_getUserNotes(self, user_id, entity_id):
2582
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2583
    args = getUserNotes_args()
2584
    args.user_id = user_id
2585
    args.entity_id = entity_id
559 chandransh 2586
    args.write(self._oprot)
2587
    self._oprot.writeMessageEnd()
2588
    self._oprot.trans.flush()
2589
 
2981 rajveer 2590
  def recv_getUserNotes(self, ):
559 chandransh 2591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2592
    if mtype == TMessageType.EXCEPTION:
2593
      x = TApplicationException()
2594
      x.read(self._iprot)
2595
      self._iprot.readMessageEnd()
2596
      raise x
2981 rajveer 2597
    result = getUserNotes_result()
559 chandransh 2598
    result.read(self._iprot)
2599
    self._iprot.readMessageEnd()
3431 rajveer 2600
    if result.success is not None:
2981 rajveer 2601
      return result.success
2602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2603
 
2981 rajveer 2604
  def getMyResearchItems(self, userId):
559 chandransh 2605
    """
2981 rajveer 2606
    Returns list of item ids in myresearch for the user
3431 rajveer 2607
 
559 chandransh 2608
    Parameters:
772 rajveer 2609
     - userId
559 chandransh 2610
    """
2981 rajveer 2611
    self.send_getMyResearchItems(userId)
2612
    return self.recv_getMyResearchItems()
559 chandransh 2613
 
2981 rajveer 2614
  def send_getMyResearchItems(self, userId):
2615
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2616
    args = getMyResearchItems_args()
772 rajveer 2617
    args.userId = userId
559 chandransh 2618
    args.write(self._oprot)
2619
    self._oprot.writeMessageEnd()
2620
    self._oprot.trans.flush()
2621
 
2981 rajveer 2622
  def recv_getMyResearchItems(self, ):
559 chandransh 2623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2624
    if mtype == TMessageType.EXCEPTION:
2625
      x = TApplicationException()
2626
      x.read(self._iprot)
2627
      self._iprot.readMessageEnd()
2628
      raise x
2981 rajveer 2629
    result = getMyResearchItems_result()
559 chandransh 2630
    result.read(self._iprot)
2631
    self._iprot.readMessageEnd()
3431 rajveer 2632
    if result.success is not None:
559 chandransh 2633
      return result.success
3431 rajveer 2634
    if result.scx is not None:
559 chandransh 2635
      raise result.scx
2981 rajveer 2636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2637
 
2981 rajveer 2638
  def updateMyResearch(self, userId, itemId):
559 chandransh 2639
    """
2981 rajveer 2640
    add item to my research for a user
3431 rajveer 2641
 
559 chandransh 2642
    Parameters:
2981 rajveer 2643
     - userId
2644
     - itemId
559 chandransh 2645
    """
2981 rajveer 2646
    self.send_updateMyResearch(userId, itemId)
2647
    return self.recv_updateMyResearch()
559 chandransh 2648
 
2981 rajveer 2649
  def send_updateMyResearch(self, userId, itemId):
2650
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2651
    args = updateMyResearch_args()
2652
    args.userId = userId
2653
    args.itemId = itemId
559 chandransh 2654
    args.write(self._oprot)
2655
    self._oprot.writeMessageEnd()
2656
    self._oprot.trans.flush()
2657
 
2981 rajveer 2658
  def recv_updateMyResearch(self, ):
559 chandransh 2659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2660
    if mtype == TMessageType.EXCEPTION:
2661
      x = TApplicationException()
2662
      x.read(self._iprot)
2663
      self._iprot.readMessageEnd()
2664
      raise x
2981 rajveer 2665
    result = updateMyResearch_result()
559 chandransh 2666
    result.read(self._iprot)
2667
    self._iprot.readMessageEnd()
3431 rajveer 2668
    if result.success is not None:
2981 rajveer 2669
      return result.success
3431 rajveer 2670
    if result.scx is not None:
2981 rajveer 2671
      raise result.scx
2672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2673
 
2981 rajveer 2674
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2675
    """
2981 rajveer 2676
    delete item from my research for a user
3431 rajveer 2677
 
1596 ankur.sing 2678
    Parameters:
2981 rajveer 2679
     - userId
2680
     - itemId
1596 ankur.sing 2681
    """
2981 rajveer 2682
    self.send_deleteItemFromMyResearch(userId, itemId)
2683
    self.recv_deleteItemFromMyResearch()
559 chandransh 2684
 
2981 rajveer 2685
  def send_deleteItemFromMyResearch(self, userId, itemId):
2686
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2687
    args = deleteItemFromMyResearch_args()
2688
    args.userId = userId
2689
    args.itemId = itemId
1596 ankur.sing 2690
    args.write(self._oprot)
2691
    self._oprot.writeMessageEnd()
2692
    self._oprot.trans.flush()
2693
 
2981 rajveer 2694
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2696
    if mtype == TMessageType.EXCEPTION:
2697
      x = TApplicationException()
2698
      x.read(self._iprot)
2699
      self._iprot.readMessageEnd()
2700
      raise x
2981 rajveer 2701
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2702
    result.read(self._iprot)
2703
    self._iprot.readMessageEnd()
3431 rajveer 2704
    if result.scx is not None:
2981 rajveer 2705
      raise result.scx
2706
    return
1596 ankur.sing 2707
 
2981 rajveer 2708
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2709
    """
2981 rajveer 2710
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2711
 
1673 ankur.sing 2712
    Parameters:
2981 rajveer 2713
     - userId
1673 ankur.sing 2714
    """
2981 rajveer 2715
    self.send_getBrowseHistoryItems(userId)
2716
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2717
 
2981 rajveer 2718
  def send_getBrowseHistoryItems(self, userId):
2719
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2720
    args = getBrowseHistoryItems_args()
2721
    args.userId = userId
1673 ankur.sing 2722
    args.write(self._oprot)
2723
    self._oprot.writeMessageEnd()
2724
    self._oprot.trans.flush()
2725
 
2981 rajveer 2726
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2728
    if mtype == TMessageType.EXCEPTION:
2729
      x = TApplicationException()
2730
      x.read(self._iprot)
2731
      self._iprot.readMessageEnd()
2732
      raise x
2981 rajveer 2733
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2734
    result.read(self._iprot)
2735
    self._iprot.readMessageEnd()
3431 rajveer 2736
    if result.success is not None:
1673 ankur.sing 2737
      return result.success
3431 rajveer 2738
    if result.scx is not None:
2981 rajveer 2739
      raise result.scx
2740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2741
 
2981 rajveer 2742
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2743
    """
2981 rajveer 2744
    add item to browse history for a user
3431 rajveer 2745
 
2642 varun.gupt 2746
    Parameters:
2981 rajveer 2747
     - userId
2748
     - itemId
2642 varun.gupt 2749
    """
2981 rajveer 2750
    self.send_updateBrowseHistory(userId, itemId)
2751
    self.recv_updateBrowseHistory()
1673 ankur.sing 2752
 
2981 rajveer 2753
  def send_updateBrowseHistory(self, userId, itemId):
2754
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2755
    args = updateBrowseHistory_args()
2756
    args.userId = userId
2757
    args.itemId = itemId
2642 varun.gupt 2758
    args.write(self._oprot)
2759
    self._oprot.writeMessageEnd()
2760
    self._oprot.trans.flush()
2761
 
2981 rajveer 2762
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2764
    if mtype == TMessageType.EXCEPTION:
2765
      x = TApplicationException()
2766
      x.read(self._iprot)
2767
      self._iprot.readMessageEnd()
2768
      raise x
2981 rajveer 2769
    result = updateBrowseHistory_result()
2642 varun.gupt 2770
    result.read(self._iprot)
2771
    self._iprot.readMessageEnd()
2772
    return
2773
 
3385 varun.gupt 2774
  def getCartsWithCouponCount(self, couponCode):
2775
    """
2776
    Returns count of Carts with given coupon applied
3431 rajveer 2777
 
3385 varun.gupt 2778
    Parameters:
2779
     - couponCode
2780
    """
2781
    self.send_getCartsWithCouponCount(couponCode)
2782
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2783
 
3385 varun.gupt 2784
  def send_getCartsWithCouponCount(self, couponCode):
2785
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2786
    args = getCartsWithCouponCount_args()
2787
    args.couponCode = couponCode
2788
    args.write(self._oprot)
2789
    self._oprot.writeMessageEnd()
2790
    self._oprot.trans.flush()
2791
 
2792
  def recv_getCartsWithCouponCount(self, ):
2793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2794
    if mtype == TMessageType.EXCEPTION:
2795
      x = TApplicationException()
2796
      x.read(self._iprot)
2797
      self._iprot.readMessageEnd()
2798
      raise x
2799
    result = getCartsWithCouponCount_result()
2800
    result.read(self._iprot)
2801
    self._iprot.readMessageEnd()
3431 rajveer 2802
    if result.success is not None:
3385 varun.gupt 2803
      return result.success
2804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2805
 
3499 mandeep.dh 2806
  def increaseTrustLevel(self, userId, trustLevelDelta):
2807
    """
2808
    Updates COD trust level of a user
3385 varun.gupt 2809
 
3499 mandeep.dh 2810
    Parameters:
2811
     - userId
2812
     - trustLevelDelta
2813
    """
2814
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2815
 
2816
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2817
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2818
    args = increaseTrustLevel_args()
2819
    args.userId = userId
2820
    args.trustLevelDelta = trustLevelDelta
2821
    args.write(self._oprot)
2822
    self._oprot.writeMessageEnd()
2823
    self._oprot.trans.flush()
5407 amar.kumar 2824
  def getTrustLevel(self, userId):
2825
    """
2826
    Get trust level of a user
2827
 
2828
    Parameters:
2829
     - userId
2830
    """
2831
    self.send_getTrustLevel(userId)
2832
    return self.recv_getTrustLevel()
2833
 
2834
  def send_getTrustLevel(self, userId):
2835
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2836
    args = getTrustLevel_args()
2837
    args.userId = userId
2838
    args.write(self._oprot)
2839
    self._oprot.writeMessageEnd()
2840
    self._oprot.trans.flush()
2841
 
2842
  def recv_getTrustLevel(self, ):
2843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2844
    if mtype == TMessageType.EXCEPTION:
2845
      x = TApplicationException()
2846
      x.read(self._iprot)
2847
      self._iprot.readMessageEnd()
2848
      raise x
2849
    result = getTrustLevel_result()
2850
    result.read(self._iprot)
2851
    self._iprot.readMessageEnd()
2852
    if result.success is not None:
2853
      return result.success
2854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2855
 
4668 varun.gupt 2856
  def showCODOption(self, cartId, sourceId, pincode):
2857
    """
2858
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2859
 
4668 varun.gupt 2860
    Parameters:
2861
     - cartId
2862
     - sourceId
2863
     - pincode
2864
    """
2865
    self.send_showCODOption(cartId, sourceId, pincode)
2866
    return self.recv_showCODOption()
2867
 
2868
  def send_showCODOption(self, cartId, sourceId, pincode):
2869
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2870
    args = showCODOption_args()
2871
    args.cartId = cartId
2872
    args.sourceId = sourceId
2873
    args.pincode = pincode
2874
    args.write(self._oprot)
2875
    self._oprot.writeMessageEnd()
2876
    self._oprot.trans.flush()
2877
 
2878
  def recv_showCODOption(self, ):
2879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2880
    if mtype == TMessageType.EXCEPTION:
2881
      x = TApplicationException()
2882
      x.read(self._iprot)
2883
      self._iprot.readMessageEnd()
2884
      raise x
2885
    result = showCODOption_result()
2886
    result.read(self._iprot)
2887
    self._iprot.readMessageEnd()
2888
    if result.success is not None:
2889
      return result.success
2890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2891
 
5623 anupam.sin 2892
  def getUserEmails(self, startDate, endDate):
2893
    """
2894
    Get email addresses for users activated within a given date range
4668 varun.gupt 2895
 
5623 anupam.sin 2896
    Parameters:
2897
     - startDate
2898
     - endDate
2899
    """
2900
    self.send_getUserEmails(startDate, endDate)
2901
    return self.recv_getUserEmails()
2902
 
2903
  def send_getUserEmails(self, startDate, endDate):
2904
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2905
    args = getUserEmails_args()
2906
    args.startDate = startDate
2907
    args.endDate = endDate
2908
    args.write(self._oprot)
2909
    self._oprot.writeMessageEnd()
2910
    self._oprot.trans.flush()
2911
 
2912
  def recv_getUserEmails(self, ):
2913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2914
    if mtype == TMessageType.EXCEPTION:
2915
      x = TApplicationException()
2916
      x.read(self._iprot)
2917
      self._iprot.readMessageEnd()
2918
      raise x
2919
    result = getUserEmails_result()
2920
    result.read(self._iprot)
2921
    self._iprot.readMessageEnd()
2922
    if result.success is not None:
2923
      return result.success
2924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2925
 
2926
 
3376 rajveer 2927
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2928
  def __init__(self, handler):
3376 rajveer 2929
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2930
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2931
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2932
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2933
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2934
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2935
    self._processMap["createUser"] = Processor.process_createUser
2936
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2937
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2938
    self._processMap["userExists"] = Processor.process_userExists
2939
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2940
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2941
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2942
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2943
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2944
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2945
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2946
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2947
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2948
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2949
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2950
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2951
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2952
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2953
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 2954
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 2955
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2956
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2957
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2958
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2959
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2960
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2961
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2962
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2963
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2964
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2965
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2966
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2967
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2968
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2969
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2970
    self._processMap["getCart"] = Processor.process_getCart
2971
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2972
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2973
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2974
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 2975
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 2976
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2977
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2978
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2979
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2980
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2981
    self._processMap["validateCart"] = Processor.process_validateCart
2982
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2983
    self._processMap["checkOut"] = Processor.process_checkOut
2984
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2985
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2986
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2987
    self._processMap["putUserNote"] = Processor.process_putUserNote
2988
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2989
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2990
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2991
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2992
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2993
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2994
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2995
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 2996
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 2997
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 2998
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
94 ashish 2999
 
3000
  def process(self, iprot, oprot):
3001
    (name, type, seqid) = iprot.readMessageBegin()
3002
    if name not in self._processMap:
3003
      iprot.skip(TType.STRUCT)
3004
      iprot.readMessageEnd()
3005
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3006
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3007
      x.write(oprot)
3008
      oprot.writeMessageEnd()
3009
      oprot.trans.flush()
3010
      return
3011
    else:
3012
      self._processMap[name](self, seqid, iprot, oprot)
3013
    return True
3014
 
559 chandransh 3015
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3016
    args = createAnonymousUser_args()
94 ashish 3017
    args.read(iprot)
3018
    iprot.readMessageEnd()
559 chandransh 3019
    result = createAnonymousUser_result()
94 ashish 3020
    try:
559 chandransh 3021
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3022
    except UserContextException, ucex:
3023
      result.ucex = ucex
3024
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3025
    result.write(oprot)
3026
    oprot.writeMessageEnd()
3027
    oprot.trans.flush()
3028
 
559 chandransh 3029
  def process_getUserById(self, seqid, iprot, oprot):
3030
    args = getUserById_args()
94 ashish 3031
    args.read(iprot)
3032
    iprot.readMessageEnd()
559 chandransh 3033
    result = getUserById_result()
94 ashish 3034
    try:
559 chandransh 3035
      result.success = self._handler.getUserById(args.userId)
3036
    except UserContextException, ucex:
3037
      result.ucex = ucex
3038
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3039
    result.write(oprot)
3040
    oprot.writeMessageEnd()
3041
    oprot.trans.flush()
3042
 
5326 rajveer 3043
  def process_getUserByCartId(self, seqid, iprot, oprot):
3044
    args = getUserByCartId_args()
3045
    args.read(iprot)
3046
    iprot.readMessageEnd()
3047
    result = getUserByCartId_result()
3048
    try:
3049
      result.success = self._handler.getUserByCartId(args.cartId)
3050
    except UserContextException, ucex:
3051
      result.ucex = ucex
3052
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3053
    result.write(oprot)
3054
    oprot.writeMessageEnd()
3055
    oprot.trans.flush()
3056
 
1491 vikas 3057
  def process_getUserByEmail(self, seqid, iprot, oprot):
3058
    args = getUserByEmail_args()
3059
    args.read(iprot)
3060
    iprot.readMessageEnd()
3061
    result = getUserByEmail_result()
3062
    try:
3063
      result.success = self._handler.getUserByEmail(args.email)
3064
    except UserContextException, ucex:
3065
      result.ucex = ucex
3066
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3067
    result.write(oprot)
3068
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
3070
 
3032 mandeep.dh 3071
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3072
    args = getUserByMobileNumber_args()
3073
    args.read(iprot)
3074
    iprot.readMessageEnd()
3075
    result = getUserByMobileNumber_result()
3076
    try:
3077
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3078
    except UserContextException, ucex:
3079
      result.ucex = ucex
3080
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
3084
 
559 chandransh 3085
  def process_createUser(self, seqid, iprot, oprot):
3086
    args = createUser_args()
94 ashish 3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
559 chandransh 3089
    result = createUser_result()
94 ashish 3090
    try:
559 chandransh 3091
      result.success = self._handler.createUser(args.user)
3092
    except UserContextException, ucex:
3093
      result.ucex = ucex
3094
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
3098
 
559 chandransh 3099
  def process_updateUser(self, seqid, iprot, oprot):
3100
    args = updateUser_args()
94 ashish 3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
559 chandransh 3103
    result = updateUser_result()
94 ashish 3104
    try:
559 chandransh 3105
      result.success = self._handler.updateUser(args.user)
3106
    except UserContextException, ucex:
3107
      result.ucex = ucex
3108
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
3112
 
122 ashish 3113
  def process_authenticateUser(self, seqid, iprot, oprot):
3114
    args = authenticateUser_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = authenticateUser_result()
3118
    try:
559 chandransh 3119
      result.success = self._handler.authenticateUser(args.email, args.password)
3120
    except AuthenticationException, auex:
3121
      result.auex = auex
122 ashish 3122
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
94 ashish 3127
  def process_userExists(self, seqid, iprot, oprot):
3128
    args = userExists_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = userExists_result()
3132
    try:
3133
      result.success = self._handler.userExists(args.email)
3134
    except UserContextException, ucx:
3135
      result.ucx = ucx
3136
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3137
    result.write(oprot)
3138
    oprot.writeMessageEnd()
3139
    oprot.trans.flush()
3140
 
3141
  def process_addAddressForUser(self, seqid, iprot, oprot):
3142
    args = addAddressForUser_args()
3143
    args.read(iprot)
3144
    iprot.readMessageEnd()
3145
    result = addAddressForUser_result()
3146
    try:
567 rajveer 3147
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3148
    except UserContextException, ucx:
3149
      result.ucx = ucx
3150
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3151
    result.write(oprot)
3152
    oprot.writeMessageEnd()
3153
    oprot.trans.flush()
3154
 
3155
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3156
    args = removeAddressForUser_args()
3157
    args.read(iprot)
3158
    iprot.readMessageEnd()
3159
    result = removeAddressForUser_result()
3160
    try:
3161
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3162
    except UserContextException, ucx:
3163
      result.ucx = ucx
3164
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3165
    result.write(oprot)
3166
    oprot.writeMessageEnd()
3167
    oprot.trans.flush()
3168
 
3169
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3170
    args = setUserAsLoggedIn_args()
3171
    args.read(iprot)
3172
    iprot.readMessageEnd()
3173
    result = setUserAsLoggedIn_result()
3174
    try:
3175
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3176
    except UserContextException, ucx:
3177
      result.ucx = ucx
3178
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3179
    result.write(oprot)
3180
    oprot.writeMessageEnd()
3181
    oprot.trans.flush()
3182
 
3183
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3184
    args = setUserAsLoggedOut_args()
3185
    args.read(iprot)
3186
    iprot.readMessageEnd()
3187
    result = setUserAsLoggedOut_result()
3188
    try:
3189
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3190
    except UserContextException, ucx:
3191
      result.ucx = ucx
3192
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
504 rajveer 3197
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3198
    args = setDefaultAddress_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = setDefaultAddress_result()
3202
    try:
3203
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3204
    except UserContextException, ucx:
3205
      result.ucx = ucx
3206
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
94 ashish 3211
  def process_updatePassword(self, seqid, iprot, oprot):
3212
    args = updatePassword_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = updatePassword_result()
3216
    try:
594 rajveer 3217
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3218
    except UserContextException, ucx:
3219
      result.ucx = ucx
3220
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
581 rajveer 3225
  def process_forgotPassword(self, seqid, iprot, oprot):
3226
    args = forgotPassword_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = forgotPassword_result()
3230
    try:
884 rajveer 3231
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3232
    except UserContextException, ucx:
3233
      result.ucx = ucx
3234
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
594 rajveer 3239
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3240
    args = getAllAddressesForUser_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = getAllAddressesForUser_result()
3244
    try:
3245
      result.success = self._handler.getAllAddressesForUser(args.userId)
3246
    except UserContextException, ucx:
3247
      result.ucx = ucx
3248
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
1894 vikas 3253
  def process_getAddressById(self, seqid, iprot, oprot):
3254
    args = getAddressById_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = getAddressById_result()
3258
    try:
3259
      result.success = self._handler.getAddressById(args.addressId)
3260
    except UserContextException, ucx:
3261
      result.ucx = ucx
3262
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
594 rajveer 3267
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3268
    args = getDefaultAddressId_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = getDefaultAddressId_result()
3272
    try:
3273
      result.success = self._handler.getDefaultAddressId(args.userId)
3274
    except UserContextException, ucx:
3275
      result.ucx = ucx
3276
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3277
    result.write(oprot)
3278
    oprot.writeMessageEnd()
3279
    oprot.trans.flush()
3280
 
785 rajveer 3281
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3282
    args = getDefaultPincode_args()
3283
    args.read(iprot)
3284
    iprot.readMessageEnd()
3285
    result = getDefaultPincode_result()
3286
    try:
3287
      result.success = self._handler.getDefaultPincode(args.userId)
3288
    except UserContextException, ucx:
3289
      result.ucx = ucx
3290
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3291
    result.write(oprot)
3292
    oprot.writeMessageEnd()
3293
    oprot.trans.flush()
3294
 
1274 varun.gupt 3295
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3296
    args = saveUserCommunication_args()
3297
    args.read(iprot)
3298
    iprot.readMessageEnd()
3299
    result = saveUserCommunication_result()
3300
    try:
3301
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3302
    except UserCommunicationException, ucx:
3303
      result.ucx = ucx
3304
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
1590 varun.gupt 3309
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3310
    args = getUserCommunicationById_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getUserCommunicationById_result()
3314
    try:
3315
      result.success = self._handler.getUserCommunicationById(args.id)
3316
    except UserCommunicationException, ucx:
3317
      result.ucx = ucx
3318
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3324
    args = getUserCommunicationByUser_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = getUserCommunicationByUser_result()
3328
    try:
3329
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3330
    except UserCommunicationException, ucx:
3331
      result.ucx = ucx
3332
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3333
    result.write(oprot)
3334
    oprot.writeMessageEnd()
3335
    oprot.trans.flush()
3336
 
3337
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3338
    args = getAllUserCommunications_args()
3339
    args.read(iprot)
3340
    iprot.readMessageEnd()
3341
    result = getAllUserCommunications_result()
3342
    try:
3343
      result.success = self._handler.getAllUserCommunications()
3344
    except UserCommunicationException, ucx:
3345
      result.ucx = ucx
3346
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
5407 amar.kumar 3351
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3352
    args = removeUserCommunication_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = removeUserCommunication_result()
3356
    try:
3357
      self._handler.removeUserCommunication(args.id)
3358
    except UserCommunicationException, ucx:
3359
      result.ucx = ucx
3360
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3361
    result.write(oprot)
3362
    oprot.writeMessageEnd()
3363
    oprot.trans.flush()
3364
 
1845 vikas 3365
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3366
    args = createMasterAffiliate_args()
3367
    args.read(iprot)
3368
    iprot.readMessageEnd()
3369
    result = createMasterAffiliate_result()
3370
    try:
1859 vikas 3371
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3372
    except UserAffiliateException, utx:
1845 vikas 3373
      result.utx = utx
3374
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3375
    result.write(oprot)
3376
    oprot.writeMessageEnd()
3377
    oprot.trans.flush()
3378
 
1899 vikas 3379
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3380
    args = getAllMasterAffiliates_args()
3381
    args.read(iprot)
3382
    iprot.readMessageEnd()
3383
    result = getAllMasterAffiliates_result()
3384
    try:
3385
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3386
    except UserAffiliateException, utx:
1899 vikas 3387
      result.utx = utx
3388
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3389
    result.write(oprot)
3390
    oprot.writeMessageEnd()
3391
    oprot.trans.flush()
3392
 
1845 vikas 3393
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3394
    args = getMasterAffiliateById_args()
3395
    args.read(iprot)
3396
    iprot.readMessageEnd()
3397
    result = getMasterAffiliateById_result()
3398
    try:
3399
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3400
    except UserAffiliateException, utx:
1845 vikas 3401
      result.utx = utx
3402
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3403
    result.write(oprot)
3404
    oprot.writeMessageEnd()
3405
    oprot.trans.flush()
3406
 
3407
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3408
    args = getMasterAffiliateByName_args()
3409
    args.read(iprot)
3410
    iprot.readMessageEnd()
3411
    result = getMasterAffiliateByName_result()
3412
    try:
3413
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3414
    except UserAffiliateException, utx:
1845 vikas 3415
      result.utx = utx
3416
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3417
    result.write(oprot)
3418
    oprot.writeMessageEnd()
3419
    oprot.trans.flush()
3420
 
3421
  def process_createAffiliate(self, seqid, iprot, oprot):
3422
    args = createAffiliate_args()
3423
    args.read(iprot)
3424
    iprot.readMessageEnd()
3425
    result = createAffiliate_result()
3426
    try:
1859 vikas 3427
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3428
    except UserAffiliateException, utx:
1845 vikas 3429
      result.utx = utx
3430
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3431
    result.write(oprot)
3432
    oprot.writeMessageEnd()
3433
    oprot.trans.flush()
3434
 
3435
  def process_getAffiliateById(self, seqid, iprot, oprot):
3436
    args = getAffiliateById_args()
3437
    args.read(iprot)
3438
    iprot.readMessageEnd()
3439
    result = getAffiliateById_result()
3440
    try:
3441
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3442
    except UserAffiliateException, utx:
1845 vikas 3443
      result.utx = utx
3444
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
3449
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3450
    args = getAffiliateByName_args()
3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
3453
    result = getAffiliateByName_result()
3454
    try:
3455
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3456
    except UserAffiliateException, utx:
1845 vikas 3457
      result.utx = utx
3458
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
3462
 
3463
  def process_getTrackerById(self, seqid, iprot, oprot):
3464
    args = getTrackerById_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = getTrackerById_result()
3468
    try:
1996 vikas 3469
      result.success = self._handler.getTrackerById(args.id)
3470
    except UserAffiliateException, utx:
1845 vikas 3471
      result.utx = utx
3472
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3473
    result.write(oprot)
3474
    oprot.writeMessageEnd()
3475
    oprot.trans.flush()
3476
 
1996 vikas 3477
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3478
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3479
    args.read(iprot)
3480
    iprot.readMessageEnd()
1996 vikas 3481
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3482
    try:
1996 vikas 3483
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3484
    except UserAffiliateException, utx:
1845 vikas 3485
      result.utx = utx
1996 vikas 3486
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3487
    result.write(oprot)
3488
    oprot.writeMessageEnd()
3489
    oprot.trans.flush()
3490
 
3491
  def process_addTrackLog(self, seqid, iprot, oprot):
3492
    args = addTrackLog_args()
3493
    args.read(iprot)
3494
    iprot.readMessageEnd()
3495
    result = addTrackLog_result()
3496
    try:
1996 vikas 3497
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3498
    except UserAffiliateException, utx:
1845 vikas 3499
      result.utx = utx
3500
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3501
    result.write(oprot)
3502
    oprot.writeMessageEnd()
3503
    oprot.trans.flush()
3504
 
3505
  def process_getTrackLogById(self, seqid, iprot, oprot):
3506
    args = getTrackLogById_args()
3507
    args.read(iprot)
3508
    iprot.readMessageEnd()
3509
    result = getTrackLogById_result()
3510
    try:
3511
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3512
    except UserAffiliateException, utx:
1845 vikas 3513
      result.utx = utx
3514
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3515
    result.write(oprot)
3516
    oprot.writeMessageEnd()
3517
    oprot.trans.flush()
3518
 
1996 vikas 3519
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3520
    args = getTrackLogsByAffiliate_args()
1845 vikas 3521
    args.read(iprot)
3522
    iprot.readMessageEnd()
1996 vikas 3523
    result = getTrackLogsByAffiliate_result()
1845 vikas 3524
    try:
3293 vikas 3525
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3526
    except UserAffiliateException, utx:
1845 vikas 3527
      result.utx = utx
1996 vikas 3528
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3529
    result.write(oprot)
3530
    oprot.writeMessageEnd()
3531
    oprot.trans.flush()
3532
 
3533
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3534
    args = getTrackLogsByUser_args()
3535
    args.read(iprot)
3536
    iprot.readMessageEnd()
3537
    result = getTrackLogsByUser_result()
3538
    try:
3539
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3540
    except UserAffiliateException, utx:
1845 vikas 3541
      result.utx = utx
3542
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
3547
  def process_getTrackLogs(self, seqid, iprot, oprot):
3548
    args = getTrackLogs_args()
3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
3551
    result = getTrackLogs_result()
3552
    try:
1996 vikas 3553
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3554
    except UserAffiliateException, utx:
1845 vikas 3555
      result.utx = utx
3556
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
559 chandransh 3561
  def process_getCurrentCart(self, seqid, iprot, oprot):
3562
    args = getCurrentCart_args()
94 ashish 3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
559 chandransh 3565
    result = getCurrentCart_result()
94 ashish 3566
    try:
559 chandransh 3567
      result.success = self._handler.getCurrentCart(args.userId)
3568
    except ShoppingCartException, scx:
3569
      result.scx = scx
3570
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3571
    result.write(oprot)
3572
    oprot.writeMessageEnd()
3573
    oprot.trans.flush()
3574
 
559 chandransh 3575
  def process_getCart(self, seqid, iprot, oprot):
3576
    args = getCart_args()
94 ashish 3577
    args.read(iprot)
3578
    iprot.readMessageEnd()
559 chandransh 3579
    result = getCart_result()
94 ashish 3580
    try:
559 chandransh 3581
      result.success = self._handler.getCart(args.cartId)
3582
    except ShoppingCartException, scx:
3583
      result.scx = scx
3584
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3585
    result.write(oprot)
3586
    oprot.writeMessageEnd()
3587
    oprot.trans.flush()
3588
 
559 chandransh 3589
  def process_getCartsByTime(self, seqid, iprot, oprot):
3590
    args = getCartsByTime_args()
94 ashish 3591
    args.read(iprot)
3592
    iprot.readMessageEnd()
559 chandransh 3593
    result = getCartsByTime_result()
94 ashish 3594
    try:
559 chandransh 3595
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3596
    except ShoppingCartException, scx:
3597
      result.scx = scx
3598
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3599
    result.write(oprot)
3600
    oprot.writeMessageEnd()
3601
    oprot.trans.flush()
3602
 
559 chandransh 3603
  def process_addItemToCart(self, seqid, iprot, oprot):
3604
    args = addItemToCart_args()
130 ashish 3605
    args.read(iprot)
3606
    iprot.readMessageEnd()
559 chandransh 3607
    result = addItemToCart_result()
130 ashish 3608
    try:
3557 rajveer 3609
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3610
    except ShoppingCartException, scx:
3611
      result.scx = scx
3612
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3613
    result.write(oprot)
3614
    oprot.writeMessageEnd()
3615
    oprot.trans.flush()
3616
 
559 chandransh 3617
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3618
    args = deleteItemFromCart_args()
3619
    args.read(iprot)
3620
    iprot.readMessageEnd()
3621
    result = deleteItemFromCart_result()
3622
    try:
3623
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3624
    except ShoppingCartException, scx:
3625
      result.scx = scx
3626
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3627
    result.write(oprot)
3628
    oprot.writeMessageEnd()
3629
    oprot.trans.flush()
130 ashish 3630
 
559 chandransh 3631
  def process_addAddressToCart(self, seqid, iprot, oprot):
3632
    args = addAddressToCart_args()
3633
    args.read(iprot)
3634
    iprot.readMessageEnd()
3635
    result = addAddressToCart_result()
575 chandransh 3636
    try:
3637
      self._handler.addAddressToCart(args.cartId, args.addressId)
3638
    except ShoppingCartException, scx:
3639
      result.scx = scx
559 chandransh 3640
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3641
    result.write(oprot)
3642
    oprot.writeMessageEnd()
3643
    oprot.trans.flush()
3644
 
5553 rajveer 3645
  def process_addStoreToCart(self, seqid, iprot, oprot):
3646
    args = addStoreToCart_args()
3647
    args.read(iprot)
3648
    iprot.readMessageEnd()
3649
    result = addStoreToCart_result()
3650
    try:
3651
      self._handler.addStoreToCart(args.cartId, args.storeId)
3652
    except ShoppingCartException, scx:
3653
      result.scx = scx
3654
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3655
    result.write(oprot)
3656
    oprot.writeMessageEnd()
3657
    oprot.trans.flush()
3658
 
1976 varun.gupt 3659
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3660
    args = applyCouponToCart_args()
3661
    args.read(iprot)
3662
    iprot.readMessageEnd()
3663
    result = applyCouponToCart_result()
3664
    try:
3665
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3666
    except ShoppingCartException, scx:
3667
      result.scx = scx
3668
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3669
    result.write(oprot)
3670
    oprot.writeMessageEnd()
3671
    oprot.trans.flush()
3672
 
3673
  def process_removeCoupon(self, seqid, iprot, oprot):
3674
    args = removeCoupon_args()
3675
    args.read(iprot)
3676
    iprot.readMessageEnd()
3677
    result = removeCoupon_result()
3678
    try:
3679
      self._handler.removeCoupon(args.cartId)
3680
    except ShoppingCartException, scx:
3681
      result.scx = scx
3682
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3683
    result.write(oprot)
3684
    oprot.writeMessageEnd()
3685
    oprot.trans.flush()
3686
 
3554 varun.gupt 3687
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3688
    args = deleteDiscountsFromCart_args()
3689
    args.read(iprot)
3690
    iprot.readMessageEnd()
3691
    result = deleteDiscountsFromCart_result()
3692
    try:
3693
      self._handler.deleteDiscountsFromCart(args.cartId)
3694
    except ShoppingCartException, scx:
3695
      result.scx = scx
3696
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3697
    result.write(oprot)
3698
    oprot.writeMessageEnd()
3699
    oprot.trans.flush()
3700
 
3701
  def process_saveDiscounts(self, seqid, iprot, oprot):
3702
    args = saveDiscounts_args()
3703
    args.read(iprot)
3704
    iprot.readMessageEnd()
3705
    result = saveDiscounts_result()
3706
    try:
3707
      self._handler.saveDiscounts(args.discounts)
3708
    except ShoppingCartException, scx:
3709
      result.scx = scx
3710
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3711
    result.write(oprot)
3712
    oprot.writeMessageEnd()
3713
    oprot.trans.flush()
3714
 
690 chandransh 3715
  def process_createOrders(self, seqid, iprot, oprot):
3716
    args = createOrders_args()
559 chandransh 3717
    args.read(iprot)
3718
    iprot.readMessageEnd()
690 chandransh 3719
    result = createOrders_result()
559 chandransh 3720
    try:
5326 rajveer 3721
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3722
    except ShoppingCartException, scx:
3723
      result.scx = scx
690 chandransh 3724
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3725
    result.write(oprot)
3726
    oprot.writeMessageEnd()
3727
    oprot.trans.flush()
3728
 
3729
  def process_validateCart(self, seqid, iprot, oprot):
3730
    args = validateCart_args()
3731
    args.read(iprot)
3732
    iprot.readMessageEnd()
3733
    result = validateCart_result()
575 chandransh 3734
    try:
3557 rajveer 3735
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3736
    except ShoppingCartException, scex:
3737
      result.scex = scex
559 chandransh 3738
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3739
    result.write(oprot)
3740
    oprot.writeMessageEnd()
3741
    oprot.trans.flush()
3742
 
690 chandransh 3743
  def process_mergeCart(self, seqid, iprot, oprot):
3744
    args = mergeCart_args()
575 chandransh 3745
    args.read(iprot)
3746
    iprot.readMessageEnd()
690 chandransh 3747
    result = mergeCart_result()
3748
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3749
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
3753
 
3754
  def process_checkOut(self, seqid, iprot, oprot):
3755
    args = checkOut_args()
3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
3758
    result = checkOut_result()
575 chandransh 3759
    try:
690 chandransh 3760
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3761
    except ShoppingCartException, scex:
3762
      result.scex = scex
690 chandransh 3763
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3764
    result.write(oprot)
3765
    oprot.writeMessageEnd()
3766
    oprot.trans.flush()
3767
 
690 chandransh 3768
  def process_resetCart(self, seqid, iprot, oprot):
3769
    args = resetCart_args()
559 chandransh 3770
    args.read(iprot)
3771
    iprot.readMessageEnd()
690 chandransh 3772
    result = resetCart_result()
3773
    try:
3774
      result.success = self._handler.resetCart(args.cartId, args.items)
3775
    except ShoppingCartException, scex:
3776
      result.scex = scex
3777
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
3781
 
2981 rajveer 3782
  def process_getUserCount(self, seqid, iprot, oprot):
3783
    args = getUserCount_args()
559 chandransh 3784
    args.read(iprot)
3785
    iprot.readMessageEnd()
2981 rajveer 3786
    result = getUserCount_result()
3787
    result.success = self._handler.getUserCount(args.userType)
3788
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3789
    result.write(oprot)
3790
    oprot.writeMessageEnd()
3791
    oprot.trans.flush()
3792
 
2981 rajveer 3793
  def process_getAllUsers(self, seqid, iprot, oprot):
3794
    args = getAllUsers_args()
559 chandransh 3795
    args.read(iprot)
3796
    iprot.readMessageEnd()
2981 rajveer 3797
    result = getAllUsers_result()
3798
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3799
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3803
 
2981 rajveer 3804
  def process_putUserNote(self, seqid, iprot, oprot):
3805
    args = putUserNote_args()
559 chandransh 3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
2981 rajveer 3808
    result = putUserNote_result()
3809
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3810
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3814
 
2981 rajveer 3815
  def process_getUserNotes(self, seqid, iprot, oprot):
3816
    args = getUserNotes_args()
559 chandransh 3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
2981 rajveer 3819
    result = getUserNotes_result()
3820
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3821
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
3825
 
2981 rajveer 3826
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3827
    args = getMyResearchItems_args()
559 chandransh 3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
2981 rajveer 3830
    result = getMyResearchItems_result()
559 chandransh 3831
    try:
2981 rajveer 3832
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3833
    except WidgetException, scx:
3834
      result.scx = scx
2981 rajveer 3835
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3836
    result.write(oprot)
3837
    oprot.writeMessageEnd()
3838
    oprot.trans.flush()
3839
 
2981 rajveer 3840
  def process_updateMyResearch(self, seqid, iprot, oprot):
3841
    args = updateMyResearch_args()
772 rajveer 3842
    args.read(iprot)
3843
    iprot.readMessageEnd()
2981 rajveer 3844
    result = updateMyResearch_result()
3845
    try:
3846
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3847
    except WidgetException, scx:
3848
      result.scx = scx
3849
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3850
    result.write(oprot)
3851
    oprot.writeMessageEnd()
3852
    oprot.trans.flush()
559 chandransh 3853
 
2981 rajveer 3854
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3855
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
2981 rajveer 3858
    result = deleteItemFromMyResearch_result()
3859
    try:
3860
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3861
    except WidgetException, scx:
3862
      result.scx = scx
3863
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3864
    result.write(oprot)
3865
    oprot.writeMessageEnd()
3866
    oprot.trans.flush()
772 rajveer 3867
 
2981 rajveer 3868
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3869
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3870
    args.read(iprot)
3871
    iprot.readMessageEnd()
2981 rajveer 3872
    result = getBrowseHistoryItems_result()
3873
    try:
3874
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3875
    except WidgetException, scx:
3876
      result.scx = scx
3877
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3878
    result.write(oprot)
3879
    oprot.writeMessageEnd()
3880
    oprot.trans.flush()
1596 ankur.sing 3881
 
2981 rajveer 3882
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3883
    args = updateBrowseHistory_args()
2642 varun.gupt 3884
    args.read(iprot)
3885
    iprot.readMessageEnd()
2981 rajveer 3886
    result = updateBrowseHistory_result()
3887
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3888
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3889
    result.write(oprot)
3890
    oprot.writeMessageEnd()
3891
    oprot.trans.flush()
1673 ankur.sing 3892
 
3385 varun.gupt 3893
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3894
    args = getCartsWithCouponCount_args()
3895
    args.read(iprot)
3896
    iprot.readMessageEnd()
3897
    result = getCartsWithCouponCount_result()
3898
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3899
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
2642 varun.gupt 3903
 
3499 mandeep.dh 3904
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3905
    args = increaseTrustLevel_args()
3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
3908
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3909
    return
3385 varun.gupt 3910
 
5407 amar.kumar 3911
  def process_getTrustLevel(self, seqid, iprot, oprot):
3912
    args = getTrustLevel_args()
3913
    args.read(iprot)
3914
    iprot.readMessageEnd()
3915
    result = getTrustLevel_result()
3916
    result.success = self._handler.getTrustLevel(args.userId)
3917
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
3918
    result.write(oprot)
3919
    oprot.writeMessageEnd()
3920
    oprot.trans.flush()
3921
 
4668 varun.gupt 3922
  def process_showCODOption(self, seqid, iprot, oprot):
3923
    args = showCODOption_args()
3924
    args.read(iprot)
3925
    iprot.readMessageEnd()
3926
    result = showCODOption_result()
3927
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3928
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3929
    result.write(oprot)
3930
    oprot.writeMessageEnd()
3931
    oprot.trans.flush()
3499 mandeep.dh 3932
 
5623 anupam.sin 3933
  def process_getUserEmails(self, seqid, iprot, oprot):
3934
    args = getUserEmails_args()
3935
    args.read(iprot)
3936
    iprot.readMessageEnd()
3937
    result = getUserEmails_result()
3938
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
3939
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
3940
    result.write(oprot)
3941
    oprot.writeMessageEnd()
3942
    oprot.trans.flush()
4668 varun.gupt 3943
 
5623 anupam.sin 3944
 
94 ashish 3945
# HELPER FUNCTIONS AND STRUCTURES
3946
 
559 chandransh 3947
class createAnonymousUser_args:
94 ashish 3948
  """
3949
  Attributes:
559 chandransh 3950
   - jsessionId
94 ashish 3951
  """
3952
 
3953
  thrift_spec = (
3954
    None, # 0
559 chandransh 3955
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3956
  )
3957
 
559 chandransh 3958
  def __init__(self, jsessionId=None,):
3959
    self.jsessionId = jsessionId
94 ashish 3960
 
3961
  def read(self, iprot):
3962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3964
      return
3965
    iprot.readStructBegin()
3966
    while True:
3967
      (fname, ftype, fid) = iprot.readFieldBegin()
3968
      if ftype == TType.STOP:
3969
        break
3970
      if fid == 1:
559 chandransh 3971
        if ftype == TType.STRING:
3972
          self.jsessionId = iprot.readString();
94 ashish 3973
        else:
3974
          iprot.skip(ftype)
3975
      else:
3976
        iprot.skip(ftype)
3977
      iprot.readFieldEnd()
3978
    iprot.readStructEnd()
3979
 
3980
  def write(self, oprot):
3981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3983
      return
559 chandransh 3984
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3985
    if self.jsessionId is not None:
559 chandransh 3986
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3987
      oprot.writeString(self.jsessionId)
94 ashish 3988
      oprot.writeFieldEnd()
3989
    oprot.writeFieldStop()
3990
    oprot.writeStructEnd()
3991
 
3431 rajveer 3992
  def validate(self):
3993
    return
3994
 
3995
 
94 ashish 3996
  def __repr__(self):
3997
    L = ['%s=%r' % (key, value)
3998
      for key, value in self.__dict__.iteritems()]
3999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4000
 
4001
  def __eq__(self, other):
4002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4003
 
4004
  def __ne__(self, other):
4005
    return not (self == other)
4006
 
559 chandransh 4007
class createAnonymousUser_result:
94 ashish 4008
  """
4009
  Attributes:
4010
   - success
559 chandransh 4011
   - ucex
94 ashish 4012
  """
4013
 
4014
  thrift_spec = (
559 chandransh 4015
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4016
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4017
  )
4018
 
559 chandransh 4019
  def __init__(self, success=None, ucex=None,):
94 ashish 4020
    self.success = success
559 chandransh 4021
    self.ucex = ucex
94 ashish 4022
 
4023
  def read(self, iprot):
4024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4026
      return
4027
    iprot.readStructBegin()
4028
    while True:
4029
      (fname, ftype, fid) = iprot.readFieldBegin()
4030
      if ftype == TType.STOP:
4031
        break
4032
      if fid == 0:
4033
        if ftype == TType.STRUCT:
559 chandransh 4034
          self.success = User()
94 ashish 4035
          self.success.read(iprot)
4036
        else:
4037
          iprot.skip(ftype)
4038
      elif fid == 1:
4039
        if ftype == TType.STRUCT:
559 chandransh 4040
          self.ucex = UserContextException()
4041
          self.ucex.read(iprot)
94 ashish 4042
        else:
4043
          iprot.skip(ftype)
4044
      else:
4045
        iprot.skip(ftype)
4046
      iprot.readFieldEnd()
4047
    iprot.readStructEnd()
4048
 
4049
  def write(self, oprot):
4050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4052
      return
559 chandransh 4053
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4054
    if self.success is not None:
94 ashish 4055
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4056
      self.success.write(oprot)
4057
      oprot.writeFieldEnd()
3431 rajveer 4058
    if self.ucex is not None:
559 chandransh 4059
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4060
      self.ucex.write(oprot)
94 ashish 4061
      oprot.writeFieldEnd()
4062
    oprot.writeFieldStop()
4063
    oprot.writeStructEnd()
4064
 
3431 rajveer 4065
  def validate(self):
4066
    return
4067
 
4068
 
94 ashish 4069
  def __repr__(self):
4070
    L = ['%s=%r' % (key, value)
4071
      for key, value in self.__dict__.iteritems()]
4072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4073
 
4074
  def __eq__(self, other):
4075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4076
 
4077
  def __ne__(self, other):
4078
    return not (self == other)
4079
 
559 chandransh 4080
class getUserById_args:
94 ashish 4081
  """
4082
  Attributes:
4083
   - userId
4084
  """
4085
 
4086
  thrift_spec = (
4087
    None, # 0
4088
    (1, TType.I64, 'userId', None, None, ), # 1
4089
  )
4090
 
559 chandransh 4091
  def __init__(self, userId=None,):
94 ashish 4092
    self.userId = userId
4093
 
4094
  def read(self, iprot):
4095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4097
      return
4098
    iprot.readStructBegin()
4099
    while True:
4100
      (fname, ftype, fid) = iprot.readFieldBegin()
4101
      if ftype == TType.STOP:
4102
        break
4103
      if fid == 1:
4104
        if ftype == TType.I64:
4105
          self.userId = iprot.readI64();
4106
        else:
4107
          iprot.skip(ftype)
4108
      else:
4109
        iprot.skip(ftype)
4110
      iprot.readFieldEnd()
4111
    iprot.readStructEnd()
4112
 
4113
  def write(self, oprot):
4114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4116
      return
559 chandransh 4117
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4118
    if self.userId is not None:
94 ashish 4119
      oprot.writeFieldBegin('userId', TType.I64, 1)
4120
      oprot.writeI64(self.userId)
4121
      oprot.writeFieldEnd()
4122
    oprot.writeFieldStop()
4123
    oprot.writeStructEnd()
4124
 
3431 rajveer 4125
  def validate(self):
4126
    return
4127
 
4128
 
94 ashish 4129
  def __repr__(self):
4130
    L = ['%s=%r' % (key, value)
4131
      for key, value in self.__dict__.iteritems()]
4132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4133
 
4134
  def __eq__(self, other):
4135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4136
 
4137
  def __ne__(self, other):
4138
    return not (self == other)
4139
 
559 chandransh 4140
class getUserById_result:
94 ashish 4141
  """
4142
  Attributes:
4143
   - success
559 chandransh 4144
   - ucex
94 ashish 4145
  """
4146
 
4147
  thrift_spec = (
559 chandransh 4148
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4149
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4150
  )
4151
 
559 chandransh 4152
  def __init__(self, success=None, ucex=None,):
94 ashish 4153
    self.success = success
559 chandransh 4154
    self.ucex = ucex
94 ashish 4155
 
4156
  def read(self, iprot):
4157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4159
      return
4160
    iprot.readStructBegin()
4161
    while True:
4162
      (fname, ftype, fid) = iprot.readFieldBegin()
4163
      if ftype == TType.STOP:
4164
        break
4165
      if fid == 0:
4166
        if ftype == TType.STRUCT:
559 chandransh 4167
          self.success = User()
94 ashish 4168
          self.success.read(iprot)
4169
        else:
4170
          iprot.skip(ftype)
4171
      elif fid == 1:
4172
        if ftype == TType.STRUCT:
559 chandransh 4173
          self.ucex = UserContextException()
4174
          self.ucex.read(iprot)
94 ashish 4175
        else:
4176
          iprot.skip(ftype)
4177
      else:
4178
        iprot.skip(ftype)
4179
      iprot.readFieldEnd()
4180
    iprot.readStructEnd()
4181
 
4182
  def write(self, oprot):
4183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4185
      return
559 chandransh 4186
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4187
    if self.success is not None:
94 ashish 4188
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4189
      self.success.write(oprot)
4190
      oprot.writeFieldEnd()
3431 rajveer 4191
    if self.ucex is not None:
559 chandransh 4192
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4193
      self.ucex.write(oprot)
94 ashish 4194
      oprot.writeFieldEnd()
4195
    oprot.writeFieldStop()
4196
    oprot.writeStructEnd()
4197
 
3431 rajveer 4198
  def validate(self):
4199
    return
4200
 
4201
 
94 ashish 4202
  def __repr__(self):
4203
    L = ['%s=%r' % (key, value)
4204
      for key, value in self.__dict__.iteritems()]
4205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4206
 
4207
  def __eq__(self, other):
4208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4209
 
4210
  def __ne__(self, other):
4211
    return not (self == other)
4212
 
5326 rajveer 4213
class getUserByCartId_args:
1491 vikas 4214
  """
4215
  Attributes:
5326 rajveer 4216
   - cartId
1491 vikas 4217
  """
4218
 
4219
  thrift_spec = (
4220
    None, # 0
5326 rajveer 4221
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4222
  )
4223
 
5326 rajveer 4224
  def __init__(self, cartId=None,):
4225
    self.cartId = cartId
1491 vikas 4226
 
4227
  def read(self, iprot):
4228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4230
      return
4231
    iprot.readStructBegin()
4232
    while True:
4233
      (fname, ftype, fid) = iprot.readFieldBegin()
4234
      if ftype == TType.STOP:
4235
        break
4236
      if fid == 1:
5326 rajveer 4237
        if ftype == TType.I64:
4238
          self.cartId = iprot.readI64();
1491 vikas 4239
        else:
4240
          iprot.skip(ftype)
4241
      else:
4242
        iprot.skip(ftype)
4243
      iprot.readFieldEnd()
4244
    iprot.readStructEnd()
4245
 
4246
  def write(self, oprot):
4247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4249
      return
5326 rajveer 4250
    oprot.writeStructBegin('getUserByCartId_args')
4251
    if self.cartId is not None:
4252
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4253
      oprot.writeI64(self.cartId)
1491 vikas 4254
      oprot.writeFieldEnd()
4255
    oprot.writeFieldStop()
4256
    oprot.writeStructEnd()
4257
 
3431 rajveer 4258
  def validate(self):
4259
    return
4260
 
4261
 
1491 vikas 4262
  def __repr__(self):
4263
    L = ['%s=%r' % (key, value)
4264
      for key, value in self.__dict__.iteritems()]
4265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4266
 
4267
  def __eq__(self, other):
4268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4269
 
4270
  def __ne__(self, other):
4271
    return not (self == other)
4272
 
5326 rajveer 4273
class getUserByCartId_result:
1491 vikas 4274
  """
4275
  Attributes:
4276
   - success
4277
   - ucex
4278
  """
4279
 
4280
  thrift_spec = (
4281
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4282
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4283
  )
4284
 
4285
  def __init__(self, success=None, ucex=None,):
4286
    self.success = success
4287
    self.ucex = ucex
4288
 
4289
  def read(self, iprot):
4290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4292
      return
4293
    iprot.readStructBegin()
4294
    while True:
4295
      (fname, ftype, fid) = iprot.readFieldBegin()
4296
      if ftype == TType.STOP:
4297
        break
4298
      if fid == 0:
4299
        if ftype == TType.STRUCT:
4300
          self.success = User()
4301
          self.success.read(iprot)
4302
        else:
4303
          iprot.skip(ftype)
4304
      elif fid == 1:
4305
        if ftype == TType.STRUCT:
4306
          self.ucex = UserContextException()
4307
          self.ucex.read(iprot)
4308
        else:
4309
          iprot.skip(ftype)
4310
      else:
4311
        iprot.skip(ftype)
4312
      iprot.readFieldEnd()
4313
    iprot.readStructEnd()
4314
 
4315
  def write(self, oprot):
4316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4318
      return
5326 rajveer 4319
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4320
    if self.success is not None:
1491 vikas 4321
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4322
      self.success.write(oprot)
4323
      oprot.writeFieldEnd()
3431 rajveer 4324
    if self.ucex is not None:
1491 vikas 4325
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4326
      self.ucex.write(oprot)
4327
      oprot.writeFieldEnd()
4328
    oprot.writeFieldStop()
4329
    oprot.writeStructEnd()
4330
 
3431 rajveer 4331
  def validate(self):
4332
    return
4333
 
4334
 
1491 vikas 4335
  def __repr__(self):
4336
    L = ['%s=%r' % (key, value)
4337
      for key, value in self.__dict__.iteritems()]
4338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4339
 
4340
  def __eq__(self, other):
4341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4342
 
4343
  def __ne__(self, other):
4344
    return not (self == other)
4345
 
5326 rajveer 4346
class getUserByEmail_args:
3032 mandeep.dh 4347
  """
4348
  Attributes:
5326 rajveer 4349
   - email
3032 mandeep.dh 4350
  """
4351
 
4352
  thrift_spec = (
4353
    None, # 0
5326 rajveer 4354
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4355
  )
4356
 
5326 rajveer 4357
  def __init__(self, email=None,):
4358
    self.email = email
3032 mandeep.dh 4359
 
4360
  def read(self, iprot):
4361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4363
      return
4364
    iprot.readStructBegin()
4365
    while True:
4366
      (fname, ftype, fid) = iprot.readFieldBegin()
4367
      if ftype == TType.STOP:
4368
        break
4369
      if fid == 1:
5326 rajveer 4370
        if ftype == TType.STRING:
4371
          self.email = iprot.readString();
3032 mandeep.dh 4372
        else:
4373
          iprot.skip(ftype)
4374
      else:
4375
        iprot.skip(ftype)
4376
      iprot.readFieldEnd()
4377
    iprot.readStructEnd()
4378
 
4379
  def write(self, oprot):
4380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4382
      return
5326 rajveer 4383
    oprot.writeStructBegin('getUserByEmail_args')
4384
    if self.email is not None:
4385
      oprot.writeFieldBegin('email', TType.STRING, 1)
4386
      oprot.writeString(self.email)
3032 mandeep.dh 4387
      oprot.writeFieldEnd()
4388
    oprot.writeFieldStop()
4389
    oprot.writeStructEnd()
4390
 
3431 rajveer 4391
  def validate(self):
4392
    return
4393
 
4394
 
3032 mandeep.dh 4395
  def __repr__(self):
4396
    L = ['%s=%r' % (key, value)
4397
      for key, value in self.__dict__.iteritems()]
4398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4399
 
4400
  def __eq__(self, other):
4401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4402
 
4403
  def __ne__(self, other):
4404
    return not (self == other)
4405
 
5326 rajveer 4406
class getUserByEmail_result:
3032 mandeep.dh 4407
  """
4408
  Attributes:
4409
   - success
4410
   - ucex
4411
  """
4412
 
4413
  thrift_spec = (
4414
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4415
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4416
  )
4417
 
4418
  def __init__(self, success=None, ucex=None,):
4419
    self.success = success
4420
    self.ucex = ucex
4421
 
4422
  def read(self, iprot):
4423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4425
      return
4426
    iprot.readStructBegin()
4427
    while True:
4428
      (fname, ftype, fid) = iprot.readFieldBegin()
4429
      if ftype == TType.STOP:
4430
        break
4431
      if fid == 0:
4432
        if ftype == TType.STRUCT:
4433
          self.success = User()
4434
          self.success.read(iprot)
4435
        else:
4436
          iprot.skip(ftype)
4437
      elif fid == 1:
4438
        if ftype == TType.STRUCT:
4439
          self.ucex = UserContextException()
4440
          self.ucex.read(iprot)
4441
        else:
4442
          iprot.skip(ftype)
4443
      else:
4444
        iprot.skip(ftype)
4445
      iprot.readFieldEnd()
4446
    iprot.readStructEnd()
4447
 
4448
  def write(self, oprot):
4449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4451
      return
5326 rajveer 4452
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4453
    if self.success is not None:
3032 mandeep.dh 4454
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4455
      self.success.write(oprot)
4456
      oprot.writeFieldEnd()
3431 rajveer 4457
    if self.ucex is not None:
3032 mandeep.dh 4458
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4459
      self.ucex.write(oprot)
4460
      oprot.writeFieldEnd()
4461
    oprot.writeFieldStop()
4462
    oprot.writeStructEnd()
4463
 
3431 rajveer 4464
  def validate(self):
4465
    return
4466
 
4467
 
3032 mandeep.dh 4468
  def __repr__(self):
4469
    L = ['%s=%r' % (key, value)
4470
      for key, value in self.__dict__.iteritems()]
4471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4472
 
4473
  def __eq__(self, other):
4474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4475
 
4476
  def __ne__(self, other):
4477
    return not (self == other)
4478
 
5326 rajveer 4479
class getUserByMobileNumber_args:
94 ashish 4480
  """
4481
  Attributes:
5326 rajveer 4482
   - mobileNumber
94 ashish 4483
  """
4484
 
4485
  thrift_spec = (
4486
    None, # 0
5326 rajveer 4487
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4488
  )
4489
 
5326 rajveer 4490
  def __init__(self, mobileNumber=None,):
4491
    self.mobileNumber = mobileNumber
94 ashish 4492
 
4493
  def read(self, iprot):
4494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4496
      return
4497
    iprot.readStructBegin()
4498
    while True:
4499
      (fname, ftype, fid) = iprot.readFieldBegin()
4500
      if ftype == TType.STOP:
4501
        break
4502
      if fid == 1:
5326 rajveer 4503
        if ftype == TType.I64:
4504
          self.mobileNumber = iprot.readI64();
94 ashish 4505
        else:
4506
          iprot.skip(ftype)
4507
      else:
4508
        iprot.skip(ftype)
4509
      iprot.readFieldEnd()
4510
    iprot.readStructEnd()
4511
 
4512
  def write(self, oprot):
4513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4515
      return
5326 rajveer 4516
    oprot.writeStructBegin('getUserByMobileNumber_args')
4517
    if self.mobileNumber is not None:
4518
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4519
      oprot.writeI64(self.mobileNumber)
94 ashish 4520
      oprot.writeFieldEnd()
4521
    oprot.writeFieldStop()
4522
    oprot.writeStructEnd()
4523
 
3431 rajveer 4524
  def validate(self):
4525
    return
4526
 
4527
 
94 ashish 4528
  def __repr__(self):
4529
    L = ['%s=%r' % (key, value)
4530
      for key, value in self.__dict__.iteritems()]
4531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4532
 
4533
  def __eq__(self, other):
4534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4535
 
4536
  def __ne__(self, other):
4537
    return not (self == other)
4538
 
5326 rajveer 4539
class getUserByMobileNumber_result:
94 ashish 4540
  """
4541
  Attributes:
4542
   - success
559 chandransh 4543
   - ucex
94 ashish 4544
  """
4545
 
4546
  thrift_spec = (
559 chandransh 4547
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4548
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4549
  )
4550
 
559 chandransh 4551
  def __init__(self, success=None, ucex=None,):
94 ashish 4552
    self.success = success
559 chandransh 4553
    self.ucex = ucex
94 ashish 4554
 
4555
  def read(self, iprot):
4556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4558
      return
4559
    iprot.readStructBegin()
4560
    while True:
4561
      (fname, ftype, fid) = iprot.readFieldBegin()
4562
      if ftype == TType.STOP:
4563
        break
4564
      if fid == 0:
4565
        if ftype == TType.STRUCT:
559 chandransh 4566
          self.success = User()
94 ashish 4567
          self.success.read(iprot)
4568
        else:
4569
          iprot.skip(ftype)
4570
      elif fid == 1:
4571
        if ftype == TType.STRUCT:
559 chandransh 4572
          self.ucex = UserContextException()
4573
          self.ucex.read(iprot)
94 ashish 4574
        else:
4575
          iprot.skip(ftype)
4576
      else:
4577
        iprot.skip(ftype)
4578
      iprot.readFieldEnd()
4579
    iprot.readStructEnd()
4580
 
4581
  def write(self, oprot):
4582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4584
      return
5326 rajveer 4585
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4586
    if self.success is not None:
94 ashish 4587
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4588
      self.success.write(oprot)
4589
      oprot.writeFieldEnd()
3431 rajveer 4590
    if self.ucex is not None:
559 chandransh 4591
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4592
      self.ucex.write(oprot)
94 ashish 4593
      oprot.writeFieldEnd()
4594
    oprot.writeFieldStop()
4595
    oprot.writeStructEnd()
4596
 
3431 rajveer 4597
  def validate(self):
4598
    return
4599
 
4600
 
94 ashish 4601
  def __repr__(self):
4602
    L = ['%s=%r' % (key, value)
4603
      for key, value in self.__dict__.iteritems()]
4604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4605
 
4606
  def __eq__(self, other):
4607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4608
 
4609
  def __ne__(self, other):
4610
    return not (self == other)
4611
 
5326 rajveer 4612
class createUser_args:
94 ashish 4613
  """
4614
  Attributes:
559 chandransh 4615
   - user
94 ashish 4616
  """
4617
 
4618
  thrift_spec = (
4619
    None, # 0
559 chandransh 4620
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4621
  )
4622
 
559 chandransh 4623
  def __init__(self, user=None,):
4624
    self.user = user
94 ashish 4625
 
4626
  def read(self, iprot):
4627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4629
      return
4630
    iprot.readStructBegin()
4631
    while True:
4632
      (fname, ftype, fid) = iprot.readFieldBegin()
4633
      if ftype == TType.STOP:
4634
        break
4635
      if fid == 1:
559 chandransh 4636
        if ftype == TType.STRUCT:
4637
          self.user = User()
4638
          self.user.read(iprot)
94 ashish 4639
        else:
4640
          iprot.skip(ftype)
4641
      else:
4642
        iprot.skip(ftype)
4643
      iprot.readFieldEnd()
4644
    iprot.readStructEnd()
4645
 
4646
  def write(self, oprot):
4647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4649
      return
5326 rajveer 4650
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4651
    if self.user is not None:
559 chandransh 4652
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4653
      self.user.write(oprot)
94 ashish 4654
      oprot.writeFieldEnd()
4655
    oprot.writeFieldStop()
4656
    oprot.writeStructEnd()
4657
 
3431 rajveer 4658
  def validate(self):
4659
    return
4660
 
4661
 
94 ashish 4662
  def __repr__(self):
4663
    L = ['%s=%r' % (key, value)
4664
      for key, value in self.__dict__.iteritems()]
4665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4666
 
4667
  def __eq__(self, other):
4668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4669
 
4670
  def __ne__(self, other):
4671
    return not (self == other)
4672
 
5326 rajveer 4673
class createUser_result:
94 ashish 4674
  """
4675
  Attributes:
4676
   - success
559 chandransh 4677
   - ucex
94 ashish 4678
  """
4679
 
4680
  thrift_spec = (
559 chandransh 4681
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4682
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4683
  )
4684
 
559 chandransh 4685
  def __init__(self, success=None, ucex=None,):
94 ashish 4686
    self.success = success
559 chandransh 4687
    self.ucex = ucex
94 ashish 4688
 
4689
  def read(self, iprot):
4690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4692
      return
4693
    iprot.readStructBegin()
4694
    while True:
4695
      (fname, ftype, fid) = iprot.readFieldBegin()
4696
      if ftype == TType.STOP:
4697
        break
4698
      if fid == 0:
4699
        if ftype == TType.STRUCT:
559 chandransh 4700
          self.success = User()
94 ashish 4701
          self.success.read(iprot)
4702
        else:
4703
          iprot.skip(ftype)
4704
      elif fid == 1:
4705
        if ftype == TType.STRUCT:
559 chandransh 4706
          self.ucex = UserContextException()
4707
          self.ucex.read(iprot)
94 ashish 4708
        else:
4709
          iprot.skip(ftype)
4710
      else:
4711
        iprot.skip(ftype)
4712
      iprot.readFieldEnd()
4713
    iprot.readStructEnd()
4714
 
4715
  def write(self, oprot):
4716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4718
      return
5326 rajveer 4719
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4720
    if self.success is not None:
94 ashish 4721
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4722
      self.success.write(oprot)
4723
      oprot.writeFieldEnd()
3431 rajveer 4724
    if self.ucex is not None:
559 chandransh 4725
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4726
      self.ucex.write(oprot)
94 ashish 4727
      oprot.writeFieldEnd()
4728
    oprot.writeFieldStop()
4729
    oprot.writeStructEnd()
4730
 
3431 rajveer 4731
  def validate(self):
4732
    return
4733
 
4734
 
94 ashish 4735
  def __repr__(self):
4736
    L = ['%s=%r' % (key, value)
4737
      for key, value in self.__dict__.iteritems()]
4738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4739
 
4740
  def __eq__(self, other):
4741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4742
 
4743
  def __ne__(self, other):
4744
    return not (self == other)
4745
 
5326 rajveer 4746
class updateUser_args:
94 ashish 4747
  """
4748
  Attributes:
5326 rajveer 4749
   - user
94 ashish 4750
  """
4751
 
4752
  thrift_spec = (
4753
    None, # 0
5326 rajveer 4754
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4755
  )
4756
 
5326 rajveer 4757
  def __init__(self, user=None,):
4758
    self.user = user
94 ashish 4759
 
4760
  def read(self, iprot):
4761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4763
      return
4764
    iprot.readStructBegin()
4765
    while True:
4766
      (fname, ftype, fid) = iprot.readFieldBegin()
4767
      if ftype == TType.STOP:
4768
        break
4769
      if fid == 1:
5326 rajveer 4770
        if ftype == TType.STRUCT:
4771
          self.user = User()
4772
          self.user.read(iprot)
94 ashish 4773
        else:
4774
          iprot.skip(ftype)
4775
      else:
4776
        iprot.skip(ftype)
4777
      iprot.readFieldEnd()
4778
    iprot.readStructEnd()
4779
 
4780
  def write(self, oprot):
4781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4783
      return
5326 rajveer 4784
    oprot.writeStructBegin('updateUser_args')
4785
    if self.user is not None:
4786
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4787
      self.user.write(oprot)
94 ashish 4788
      oprot.writeFieldEnd()
4789
    oprot.writeFieldStop()
4790
    oprot.writeStructEnd()
4791
 
3431 rajveer 4792
  def validate(self):
4793
    return
4794
 
4795
 
94 ashish 4796
  def __repr__(self):
4797
    L = ['%s=%r' % (key, value)
4798
      for key, value in self.__dict__.iteritems()]
4799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4800
 
4801
  def __eq__(self, other):
4802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4803
 
4804
  def __ne__(self, other):
4805
    return not (self == other)
4806
 
5326 rajveer 4807
class updateUser_result:
94 ashish 4808
  """
4809
  Attributes:
4810
   - success
559 chandransh 4811
   - ucex
94 ashish 4812
  """
4813
 
4814
  thrift_spec = (
5326 rajveer 4815
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4816
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4817
  )
4818
 
559 chandransh 4819
  def __init__(self, success=None, ucex=None,):
94 ashish 4820
    self.success = success
559 chandransh 4821
    self.ucex = ucex
94 ashish 4822
 
4823
  def read(self, iprot):
4824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4826
      return
4827
    iprot.readStructBegin()
4828
    while True:
4829
      (fname, ftype, fid) = iprot.readFieldBegin()
4830
      if ftype == TType.STOP:
4831
        break
4832
      if fid == 0:
5326 rajveer 4833
        if ftype == TType.STRUCT:
4834
          self.success = User()
4835
          self.success.read(iprot)
94 ashish 4836
        else:
4837
          iprot.skip(ftype)
4838
      elif fid == 1:
4839
        if ftype == TType.STRUCT:
559 chandransh 4840
          self.ucex = UserContextException()
4841
          self.ucex.read(iprot)
94 ashish 4842
        else:
4843
          iprot.skip(ftype)
4844
      else:
4845
        iprot.skip(ftype)
4846
      iprot.readFieldEnd()
4847
    iprot.readStructEnd()
4848
 
4849
  def write(self, oprot):
4850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4852
      return
5326 rajveer 4853
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4854
    if self.success is not None:
5326 rajveer 4855
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4856
      self.success.write(oprot)
94 ashish 4857
      oprot.writeFieldEnd()
3431 rajveer 4858
    if self.ucex is not None:
559 chandransh 4859
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4860
      self.ucex.write(oprot)
94 ashish 4861
      oprot.writeFieldEnd()
4862
    oprot.writeFieldStop()
4863
    oprot.writeStructEnd()
4864
 
3431 rajveer 4865
  def validate(self):
4866
    return
4867
 
4868
 
94 ashish 4869
  def __repr__(self):
4870
    L = ['%s=%r' % (key, value)
4871
      for key, value in self.__dict__.iteritems()]
4872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4873
 
4874
  def __eq__(self, other):
4875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4876
 
4877
  def __ne__(self, other):
4878
    return not (self == other)
4879
 
559 chandransh 4880
class authenticateUser_args:
94 ashish 4881
  """
4882
  Attributes:
4883
   - email
4884
   - password
4885
  """
4886
 
4887
  thrift_spec = (
4888
    None, # 0
4889
    (1, TType.STRING, 'email', None, None, ), # 1
4890
    (2, TType.STRING, 'password', None, None, ), # 2
4891
  )
4892
 
4893
  def __init__(self, email=None, password=None,):
4894
    self.email = email
4895
    self.password = password
4896
 
4897
  def read(self, iprot):
4898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4900
      return
4901
    iprot.readStructBegin()
4902
    while True:
4903
      (fname, ftype, fid) = iprot.readFieldBegin()
4904
      if ftype == TType.STOP:
4905
        break
4906
      if fid == 1:
4907
        if ftype == TType.STRING:
4908
          self.email = iprot.readString();
4909
        else:
4910
          iprot.skip(ftype)
4911
      elif fid == 2:
4912
        if ftype == TType.STRING:
4913
          self.password = iprot.readString();
4914
        else:
4915
          iprot.skip(ftype)
4916
      else:
4917
        iprot.skip(ftype)
4918
      iprot.readFieldEnd()
4919
    iprot.readStructEnd()
4920
 
4921
  def write(self, oprot):
4922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4924
      return
559 chandransh 4925
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4926
    if self.email is not None:
94 ashish 4927
      oprot.writeFieldBegin('email', TType.STRING, 1)
4928
      oprot.writeString(self.email)
4929
      oprot.writeFieldEnd()
3431 rajveer 4930
    if self.password is not None:
94 ashish 4931
      oprot.writeFieldBegin('password', TType.STRING, 2)
4932
      oprot.writeString(self.password)
4933
      oprot.writeFieldEnd()
4934
    oprot.writeFieldStop()
4935
    oprot.writeStructEnd()
4936
 
3431 rajveer 4937
  def validate(self):
4938
    return
4939
 
4940
 
94 ashish 4941
  def __repr__(self):
4942
    L = ['%s=%r' % (key, value)
4943
      for key, value in self.__dict__.iteritems()]
4944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4945
 
4946
  def __eq__(self, other):
4947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4948
 
4949
  def __ne__(self, other):
4950
    return not (self == other)
4951
 
559 chandransh 4952
class authenticateUser_result:
94 ashish 4953
  """
4954
  Attributes:
4955
   - success
559 chandransh 4956
   - auex
94 ashish 4957
  """
4958
 
4959
  thrift_spec = (
559 chandransh 4960
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4961
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4962
  )
4963
 
559 chandransh 4964
  def __init__(self, success=None, auex=None,):
94 ashish 4965
    self.success = success
559 chandransh 4966
    self.auex = auex
94 ashish 4967
 
4968
  def read(self, iprot):
4969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4971
      return
4972
    iprot.readStructBegin()
4973
    while True:
4974
      (fname, ftype, fid) = iprot.readFieldBegin()
4975
      if ftype == TType.STOP:
4976
        break
4977
      if fid == 0:
4978
        if ftype == TType.STRUCT:
559 chandransh 4979
          self.success = User()
94 ashish 4980
          self.success.read(iprot)
4981
        else:
4982
          iprot.skip(ftype)
4983
      elif fid == 1:
4984
        if ftype == TType.STRUCT:
559 chandransh 4985
          self.auex = AuthenticationException()
4986
          self.auex.read(iprot)
94 ashish 4987
        else:
4988
          iprot.skip(ftype)
4989
      else:
4990
        iprot.skip(ftype)
4991
      iprot.readFieldEnd()
4992
    iprot.readStructEnd()
4993
 
4994
  def write(self, oprot):
4995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4997
      return
559 chandransh 4998
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4999
    if self.success is not None:
94 ashish 5000
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5001
      self.success.write(oprot)
5002
      oprot.writeFieldEnd()
3431 rajveer 5003
    if self.auex is not None:
559 chandransh 5004
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5005
      self.auex.write(oprot)
94 ashish 5006
      oprot.writeFieldEnd()
5007
    oprot.writeFieldStop()
5008
    oprot.writeStructEnd()
5009
 
3431 rajveer 5010
  def validate(self):
5011
    return
5012
 
5013
 
94 ashish 5014
  def __repr__(self):
5015
    L = ['%s=%r' % (key, value)
5016
      for key, value in self.__dict__.iteritems()]
5017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5018
 
5019
  def __eq__(self, other):
5020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5021
 
5022
  def __ne__(self, other):
5023
    return not (self == other)
5024
 
559 chandransh 5025
class userExists_args:
122 ashish 5026
  """
5027
  Attributes:
559 chandransh 5028
   - email
122 ashish 5029
  """
5030
 
5031
  thrift_spec = (
5032
    None, # 0
559 chandransh 5033
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5034
  )
5035
 
559 chandransh 5036
  def __init__(self, email=None,):
5037
    self.email = email
122 ashish 5038
 
5039
  def read(self, iprot):
5040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5042
      return
5043
    iprot.readStructBegin()
5044
    while True:
5045
      (fname, ftype, fid) = iprot.readFieldBegin()
5046
      if ftype == TType.STOP:
5047
        break
5048
      if fid == 1:
5049
        if ftype == TType.STRING:
559 chandransh 5050
          self.email = iprot.readString();
122 ashish 5051
        else:
5052
          iprot.skip(ftype)
559 chandransh 5053
      else:
5054
        iprot.skip(ftype)
5055
      iprot.readFieldEnd()
5056
    iprot.readStructEnd()
5057
 
5058
  def write(self, oprot):
5059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5061
      return
5062
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5063
    if self.email is not None:
559 chandransh 5064
      oprot.writeFieldBegin('email', TType.STRING, 1)
5065
      oprot.writeString(self.email)
5066
      oprot.writeFieldEnd()
5067
    oprot.writeFieldStop()
5068
    oprot.writeStructEnd()
5069
 
3431 rajveer 5070
  def validate(self):
5071
    return
5072
 
5073
 
559 chandransh 5074
  def __repr__(self):
5075
    L = ['%s=%r' % (key, value)
5076
      for key, value in self.__dict__.iteritems()]
5077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5078
 
5079
  def __eq__(self, other):
5080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5081
 
5082
  def __ne__(self, other):
5083
    return not (self == other)
5084
 
5085
class userExists_result:
5086
  """
5087
  Attributes:
5088
   - success
5089
   - ucx
5090
  """
5091
 
5092
  thrift_spec = (
5093
    (0, TType.BOOL, 'success', None, None, ), # 0
5094
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5095
  )
5096
 
5097
  def __init__(self, success=None, ucx=None,):
5098
    self.success = success
5099
    self.ucx = ucx
5100
 
5101
  def read(self, iprot):
5102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5104
      return
5105
    iprot.readStructBegin()
5106
    while True:
5107
      (fname, ftype, fid) = iprot.readFieldBegin()
5108
      if ftype == TType.STOP:
5109
        break
5110
      if fid == 0:
5111
        if ftype == TType.BOOL:
5112
          self.success = iprot.readBool();
5113
        else:
5114
          iprot.skip(ftype)
5115
      elif fid == 1:
5116
        if ftype == TType.STRUCT:
5117
          self.ucx = UserContextException()
5118
          self.ucx.read(iprot)
5119
        else:
5120
          iprot.skip(ftype)
5121
      else:
5122
        iprot.skip(ftype)
5123
      iprot.readFieldEnd()
5124
    iprot.readStructEnd()
5125
 
5126
  def write(self, oprot):
5127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5129
      return
5130
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5131
    if self.success is not None:
559 chandransh 5132
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5133
      oprot.writeBool(self.success)
5134
      oprot.writeFieldEnd()
3431 rajveer 5135
    if self.ucx is not None:
559 chandransh 5136
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5137
      self.ucx.write(oprot)
5138
      oprot.writeFieldEnd()
5139
    oprot.writeFieldStop()
5140
    oprot.writeStructEnd()
5141
 
3431 rajveer 5142
  def validate(self):
5143
    return
5144
 
5145
 
559 chandransh 5146
  def __repr__(self):
5147
    L = ['%s=%r' % (key, value)
5148
      for key, value in self.__dict__.iteritems()]
5149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5150
 
5151
  def __eq__(self, other):
5152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5153
 
5154
  def __ne__(self, other):
5155
    return not (self == other)
5156
 
5157
class addAddressForUser_args:
5158
  """
5159
  Attributes:
5160
   - userId
5161
   - address
5162
   - setDefault
5163
  """
5164
 
5165
  thrift_spec = (
5166
    None, # 0
5167
    (1, TType.I64, 'userId', None, None, ), # 1
5168
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5169
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5170
  )
5171
 
567 rajveer 5172
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5173
    self.userId = userId
5174
    self.address = address
5175
    self.setDefault = setDefault
5176
 
5177
  def read(self, iprot):
5178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5180
      return
5181
    iprot.readStructBegin()
5182
    while True:
5183
      (fname, ftype, fid) = iprot.readFieldBegin()
5184
      if ftype == TType.STOP:
5185
        break
5186
      if fid == 1:
5187
        if ftype == TType.I64:
5188
          self.userId = iprot.readI64();
5189
        else:
5190
          iprot.skip(ftype)
122 ashish 5191
      elif fid == 2:
559 chandransh 5192
        if ftype == TType.STRUCT:
5193
          self.address = Address()
5194
          self.address.read(iprot)
122 ashish 5195
        else:
5196
          iprot.skip(ftype)
5197
      elif fid == 3:
5198
        if ftype == TType.BOOL:
559 chandransh 5199
          self.setDefault = iprot.readBool();
122 ashish 5200
        else:
5201
          iprot.skip(ftype)
5202
      else:
5203
        iprot.skip(ftype)
5204
      iprot.readFieldEnd()
5205
    iprot.readStructEnd()
5206
 
5207
  def write(self, oprot):
5208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5210
      return
559 chandransh 5211
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5212
    if self.userId is not None:
559 chandransh 5213
      oprot.writeFieldBegin('userId', TType.I64, 1)
5214
      oprot.writeI64(self.userId)
122 ashish 5215
      oprot.writeFieldEnd()
3431 rajveer 5216
    if self.address is not None:
559 chandransh 5217
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5218
      self.address.write(oprot)
122 ashish 5219
      oprot.writeFieldEnd()
3431 rajveer 5220
    if self.setDefault is not None:
567 rajveer 5221
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5222
      oprot.writeBool(self.setDefault)
5223
      oprot.writeFieldEnd()
122 ashish 5224
    oprot.writeFieldStop()
5225
    oprot.writeStructEnd()
5226
 
3431 rajveer 5227
  def validate(self):
5228
    return
5229
 
5230
 
122 ashish 5231
  def __repr__(self):
5232
    L = ['%s=%r' % (key, value)
5233
      for key, value in self.__dict__.iteritems()]
5234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5235
 
5236
  def __eq__(self, other):
5237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5238
 
5239
  def __ne__(self, other):
5240
    return not (self == other)
5241
 
559 chandransh 5242
class addAddressForUser_result:
122 ashish 5243
  """
5244
  Attributes:
5245
   - success
559 chandransh 5246
   - ucx
122 ashish 5247
  """
5248
 
5249
  thrift_spec = (
567 rajveer 5250
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5251
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5252
  )
5253
 
559 chandransh 5254
  def __init__(self, success=None, ucx=None,):
122 ashish 5255
    self.success = success
559 chandransh 5256
    self.ucx = ucx
122 ashish 5257
 
5258
  def read(self, iprot):
5259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5261
      return
5262
    iprot.readStructBegin()
5263
    while True:
5264
      (fname, ftype, fid) = iprot.readFieldBegin()
5265
      if ftype == TType.STOP:
5266
        break
5267
      if fid == 0:
567 rajveer 5268
        if ftype == TType.I64:
5269
          self.success = iprot.readI64();
122 ashish 5270
        else:
5271
          iprot.skip(ftype)
5272
      elif fid == 1:
5273
        if ftype == TType.STRUCT:
559 chandransh 5274
          self.ucx = UserContextException()
5275
          self.ucx.read(iprot)
122 ashish 5276
        else:
5277
          iprot.skip(ftype)
5278
      else:
5279
        iprot.skip(ftype)
5280
      iprot.readFieldEnd()
5281
    iprot.readStructEnd()
5282
 
5283
  def write(self, oprot):
5284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5286
      return
559 chandransh 5287
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5288
    if self.success is not None:
567 rajveer 5289
      oprot.writeFieldBegin('success', TType.I64, 0)
5290
      oprot.writeI64(self.success)
122 ashish 5291
      oprot.writeFieldEnd()
3431 rajveer 5292
    if self.ucx is not None:
559 chandransh 5293
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5294
      self.ucx.write(oprot)
122 ashish 5295
      oprot.writeFieldEnd()
5296
    oprot.writeFieldStop()
5297
    oprot.writeStructEnd()
5298
 
3431 rajveer 5299
  def validate(self):
5300
    return
5301
 
5302
 
122 ashish 5303
  def __repr__(self):
5304
    L = ['%s=%r' % (key, value)
5305
      for key, value in self.__dict__.iteritems()]
5306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5307
 
5308
  def __eq__(self, other):
5309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5310
 
5311
  def __ne__(self, other):
5312
    return not (self == other)
5313
 
559 chandransh 5314
class removeAddressForUser_args:
94 ashish 5315
  """
5316
  Attributes:
559 chandransh 5317
   - userid
5318
   - addressId
94 ashish 5319
  """
5320
 
5321
  thrift_spec = (
5322
    None, # 0
559 chandransh 5323
    (1, TType.I64, 'userid', None, None, ), # 1
5324
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5325
  )
5326
 
559 chandransh 5327
  def __init__(self, userid=None, addressId=None,):
5328
    self.userid = userid
5329
    self.addressId = addressId
94 ashish 5330
 
5331
  def read(self, iprot):
5332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5334
      return
5335
    iprot.readStructBegin()
5336
    while True:
5337
      (fname, ftype, fid) = iprot.readFieldBegin()
5338
      if ftype == TType.STOP:
5339
        break
5340
      if fid == 1:
559 chandransh 5341
        if ftype == TType.I64:
5342
          self.userid = iprot.readI64();
94 ashish 5343
        else:
5344
          iprot.skip(ftype)
559 chandransh 5345
      elif fid == 2:
5346
        if ftype == TType.I64:
5347
          self.addressId = iprot.readI64();
5348
        else:
5349
          iprot.skip(ftype)
94 ashish 5350
      else:
5351
        iprot.skip(ftype)
5352
      iprot.readFieldEnd()
5353
    iprot.readStructEnd()
5354
 
5355
  def write(self, oprot):
5356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5358
      return
559 chandransh 5359
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5360
    if self.userid is not None:
559 chandransh 5361
      oprot.writeFieldBegin('userid', TType.I64, 1)
5362
      oprot.writeI64(self.userid)
94 ashish 5363
      oprot.writeFieldEnd()
3431 rajveer 5364
    if self.addressId is not None:
559 chandransh 5365
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5366
      oprot.writeI64(self.addressId)
5367
      oprot.writeFieldEnd()
94 ashish 5368
    oprot.writeFieldStop()
5369
    oprot.writeStructEnd()
5370
 
3431 rajveer 5371
  def validate(self):
5372
    return
5373
 
5374
 
94 ashish 5375
  def __repr__(self):
5376
    L = ['%s=%r' % (key, value)
5377
      for key, value in self.__dict__.iteritems()]
5378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5379
 
5380
  def __eq__(self, other):
5381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5382
 
5383
  def __ne__(self, other):
5384
    return not (self == other)
5385
 
559 chandransh 5386
class removeAddressForUser_result:
94 ashish 5387
  """
5388
  Attributes:
5389
   - success
5390
   - ucx
5391
  """
5392
 
5393
  thrift_spec = (
5394
    (0, TType.BOOL, 'success', None, None, ), # 0
5395
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5396
  )
5397
 
5398
  def __init__(self, success=None, ucx=None,):
5399
    self.success = success
5400
    self.ucx = ucx
5401
 
5402
  def read(self, iprot):
5403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5405
      return
5406
    iprot.readStructBegin()
5407
    while True:
5408
      (fname, ftype, fid) = iprot.readFieldBegin()
5409
      if ftype == TType.STOP:
5410
        break
5411
      if fid == 0:
5412
        if ftype == TType.BOOL:
5413
          self.success = iprot.readBool();
5414
        else:
5415
          iprot.skip(ftype)
5416
      elif fid == 1:
5417
        if ftype == TType.STRUCT:
5418
          self.ucx = UserContextException()
5419
          self.ucx.read(iprot)
5420
        else:
5421
          iprot.skip(ftype)
5422
      else:
5423
        iprot.skip(ftype)
5424
      iprot.readFieldEnd()
5425
    iprot.readStructEnd()
5426
 
5427
  def write(self, oprot):
5428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5430
      return
559 chandransh 5431
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5432
    if self.success is not None:
94 ashish 5433
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5434
      oprot.writeBool(self.success)
5435
      oprot.writeFieldEnd()
3431 rajveer 5436
    if self.ucx is not None:
94 ashish 5437
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5438
      self.ucx.write(oprot)
5439
      oprot.writeFieldEnd()
5440
    oprot.writeFieldStop()
5441
    oprot.writeStructEnd()
5442
 
3431 rajveer 5443
  def validate(self):
5444
    return
5445
 
5446
 
94 ashish 5447
  def __repr__(self):
5448
    L = ['%s=%r' % (key, value)
5449
      for key, value in self.__dict__.iteritems()]
5450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5451
 
5452
  def __eq__(self, other):
5453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5454
 
5455
  def __ne__(self, other):
5456
    return not (self == other)
5457
 
559 chandransh 5458
class setUserAsLoggedIn_args:
94 ashish 5459
  """
5460
  Attributes:
559 chandransh 5461
   - userId
94 ashish 5462
   - timestamp
5463
  """
5464
 
5465
  thrift_spec = (
5466
    None, # 0
559 chandransh 5467
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5468
    (2, TType.I64, 'timestamp', None, None, ), # 2
5469
  )
5470
 
559 chandransh 5471
  def __init__(self, userId=None, timestamp=None,):
5472
    self.userId = userId
94 ashish 5473
    self.timestamp = timestamp
5474
 
5475
  def read(self, iprot):
5476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5478
      return
5479
    iprot.readStructBegin()
5480
    while True:
5481
      (fname, ftype, fid) = iprot.readFieldBegin()
5482
      if ftype == TType.STOP:
5483
        break
5484
      if fid == 1:
559 chandransh 5485
        if ftype == TType.I64:
5486
          self.userId = iprot.readI64();
94 ashish 5487
        else:
5488
          iprot.skip(ftype)
5489
      elif fid == 2:
5490
        if ftype == TType.I64:
5491
          self.timestamp = iprot.readI64();
5492
        else:
5493
          iprot.skip(ftype)
5494
      else:
5495
        iprot.skip(ftype)
5496
      iprot.readFieldEnd()
5497
    iprot.readStructEnd()
5498
 
5499
  def write(self, oprot):
5500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5502
      return
559 chandransh 5503
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5504
    if self.userId is not None:
559 chandransh 5505
      oprot.writeFieldBegin('userId', TType.I64, 1)
5506
      oprot.writeI64(self.userId)
94 ashish 5507
      oprot.writeFieldEnd()
3431 rajveer 5508
    if self.timestamp is not None:
94 ashish 5509
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5510
      oprot.writeI64(self.timestamp)
5511
      oprot.writeFieldEnd()
5512
    oprot.writeFieldStop()
5513
    oprot.writeStructEnd()
5514
 
3431 rajveer 5515
  def validate(self):
5516
    return
5517
 
5518
 
94 ashish 5519
  def __repr__(self):
5520
    L = ['%s=%r' % (key, value)
5521
      for key, value in self.__dict__.iteritems()]
5522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5523
 
5524
  def __eq__(self, other):
5525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5526
 
5527
  def __ne__(self, other):
5528
    return not (self == other)
5529
 
559 chandransh 5530
class setUserAsLoggedIn_result:
94 ashish 5531
  """
5532
  Attributes:
5533
   - success
5534
   - ucx
5535
  """
5536
 
5537
  thrift_spec = (
5538
    (0, TType.BOOL, 'success', None, None, ), # 0
5539
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5540
  )
5541
 
5542
  def __init__(self, success=None, ucx=None,):
5543
    self.success = success
5544
    self.ucx = ucx
5545
 
5546
  def read(self, iprot):
5547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5549
      return
5550
    iprot.readStructBegin()
5551
    while True:
5552
      (fname, ftype, fid) = iprot.readFieldBegin()
5553
      if ftype == TType.STOP:
5554
        break
5555
      if fid == 0:
5556
        if ftype == TType.BOOL:
5557
          self.success = iprot.readBool();
5558
        else:
5559
          iprot.skip(ftype)
5560
      elif fid == 1:
5561
        if ftype == TType.STRUCT:
5562
          self.ucx = UserContextException()
5563
          self.ucx.read(iprot)
5564
        else:
5565
          iprot.skip(ftype)
5566
      else:
5567
        iprot.skip(ftype)
5568
      iprot.readFieldEnd()
5569
    iprot.readStructEnd()
5570
 
5571
  def write(self, oprot):
5572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5574
      return
559 chandransh 5575
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5576
    if self.success is not None:
94 ashish 5577
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5578
      oprot.writeBool(self.success)
5579
      oprot.writeFieldEnd()
3431 rajveer 5580
    if self.ucx is not None:
94 ashish 5581
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5582
      self.ucx.write(oprot)
5583
      oprot.writeFieldEnd()
5584
    oprot.writeFieldStop()
5585
    oprot.writeStructEnd()
5586
 
3431 rajveer 5587
  def validate(self):
5588
    return
5589
 
5590
 
94 ashish 5591
  def __repr__(self):
5592
    L = ['%s=%r' % (key, value)
5593
      for key, value in self.__dict__.iteritems()]
5594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5595
 
5596
  def __eq__(self, other):
5597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5598
 
5599
  def __ne__(self, other):
5600
    return not (self == other)
5601
 
559 chandransh 5602
class setUserAsLoggedOut_args:
94 ashish 5603
  """
5604
  Attributes:
5605
   - userid
5606
   - timestamp
5607
  """
5608
 
5609
  thrift_spec = (
5610
    None, # 0
559 chandransh 5611
    (1, TType.I64, 'userid', None, None, ), # 1
5612
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5613
  )
5614
 
559 chandransh 5615
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5616
    self.userid = userid
5617
    self.timestamp = timestamp
5618
 
5619
  def read(self, iprot):
5620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5622
      return
5623
    iprot.readStructBegin()
5624
    while True:
5625
      (fname, ftype, fid) = iprot.readFieldBegin()
5626
      if ftype == TType.STOP:
5627
        break
5628
      if fid == 1:
5629
        if ftype == TType.I64:
5630
          self.userid = iprot.readI64();
5631
        else:
5632
          iprot.skip(ftype)
559 chandransh 5633
      elif fid == 2:
94 ashish 5634
        if ftype == TType.I64:
5635
          self.timestamp = iprot.readI64();
5636
        else:
5637
          iprot.skip(ftype)
5638
      else:
5639
        iprot.skip(ftype)
5640
      iprot.readFieldEnd()
5641
    iprot.readStructEnd()
5642
 
5643
  def write(self, oprot):
5644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5646
      return
559 chandransh 5647
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5648
    if self.userid is not None:
559 chandransh 5649
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5650
      oprot.writeI64(self.userid)
5651
      oprot.writeFieldEnd()
3431 rajveer 5652
    if self.timestamp is not None:
559 chandransh 5653
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5654
      oprot.writeI64(self.timestamp)
5655
      oprot.writeFieldEnd()
5656
    oprot.writeFieldStop()
5657
    oprot.writeStructEnd()
5658
 
3431 rajveer 5659
  def validate(self):
5660
    return
5661
 
5662
 
94 ashish 5663
  def __repr__(self):
5664
    L = ['%s=%r' % (key, value)
5665
      for key, value in self.__dict__.iteritems()]
5666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5667
 
5668
  def __eq__(self, other):
5669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5670
 
5671
  def __ne__(self, other):
5672
    return not (self == other)
5673
 
559 chandransh 5674
class setUserAsLoggedOut_result:
94 ashish 5675
  """
5676
  Attributes:
5677
   - success
5678
   - ucx
5679
  """
5680
 
5681
  thrift_spec = (
5682
    (0, TType.BOOL, 'success', None, None, ), # 0
5683
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5684
  )
5685
 
5686
  def __init__(self, success=None, ucx=None,):
5687
    self.success = success
5688
    self.ucx = ucx
5689
 
5690
  def read(self, iprot):
5691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5693
      return
5694
    iprot.readStructBegin()
5695
    while True:
5696
      (fname, ftype, fid) = iprot.readFieldBegin()
5697
      if ftype == TType.STOP:
5698
        break
5699
      if fid == 0:
5700
        if ftype == TType.BOOL:
5701
          self.success = iprot.readBool();
5702
        else:
5703
          iprot.skip(ftype)
5704
      elif fid == 1:
5705
        if ftype == TType.STRUCT:
5706
          self.ucx = UserContextException()
5707
          self.ucx.read(iprot)
5708
        else:
5709
          iprot.skip(ftype)
5710
      else:
5711
        iprot.skip(ftype)
5712
      iprot.readFieldEnd()
5713
    iprot.readStructEnd()
5714
 
5715
  def write(self, oprot):
5716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5718
      return
559 chandransh 5719
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5720
    if self.success is not None:
94 ashish 5721
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5722
      oprot.writeBool(self.success)
5723
      oprot.writeFieldEnd()
3431 rajveer 5724
    if self.ucx is not None:
94 ashish 5725
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5726
      self.ucx.write(oprot)
5727
      oprot.writeFieldEnd()
5728
    oprot.writeFieldStop()
5729
    oprot.writeStructEnd()
5730
 
3431 rajveer 5731
  def validate(self):
5732
    return
5733
 
5734
 
94 ashish 5735
  def __repr__(self):
5736
    L = ['%s=%r' % (key, value)
5737
      for key, value in self.__dict__.iteritems()]
5738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5739
 
5740
  def __eq__(self, other):
5741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5742
 
5743
  def __ne__(self, other):
5744
    return not (self == other)
5745
 
559 chandransh 5746
class setDefaultAddress_args:
94 ashish 5747
  """
5748
  Attributes:
5749
   - userid
5750
   - addressId
5751
  """
5752
 
5753
  thrift_spec = (
5754
    None, # 0
5755
    (1, TType.I64, 'userid', None, None, ), # 1
5756
    (2, TType.I64, 'addressId', None, None, ), # 2
5757
  )
5758
 
5759
  def __init__(self, userid=None, addressId=None,):
5760
    self.userid = userid
5761
    self.addressId = addressId
5762
 
5763
  def read(self, iprot):
5764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5766
      return
5767
    iprot.readStructBegin()
5768
    while True:
5769
      (fname, ftype, fid) = iprot.readFieldBegin()
5770
      if ftype == TType.STOP:
5771
        break
5772
      if fid == 1:
5773
        if ftype == TType.I64:
5774
          self.userid = iprot.readI64();
5775
        else:
5776
          iprot.skip(ftype)
5777
      elif fid == 2:
5778
        if ftype == TType.I64:
5779
          self.addressId = iprot.readI64();
5780
        else:
5781
          iprot.skip(ftype)
5782
      else:
5783
        iprot.skip(ftype)
5784
      iprot.readFieldEnd()
5785
    iprot.readStructEnd()
5786
 
5787
  def write(self, oprot):
5788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5790
      return
559 chandransh 5791
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5792
    if self.userid is not None:
94 ashish 5793
      oprot.writeFieldBegin('userid', TType.I64, 1)
5794
      oprot.writeI64(self.userid)
5795
      oprot.writeFieldEnd()
3431 rajveer 5796
    if self.addressId is not None:
94 ashish 5797
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5798
      oprot.writeI64(self.addressId)
5799
      oprot.writeFieldEnd()
5800
    oprot.writeFieldStop()
5801
    oprot.writeStructEnd()
5802
 
3431 rajveer 5803
  def validate(self):
5804
    return
5805
 
5806
 
94 ashish 5807
  def __repr__(self):
5808
    L = ['%s=%r' % (key, value)
5809
      for key, value in self.__dict__.iteritems()]
5810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5811
 
5812
  def __eq__(self, other):
5813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5814
 
5815
  def __ne__(self, other):
5816
    return not (self == other)
5817
 
559 chandransh 5818
class setDefaultAddress_result:
94 ashish 5819
  """
5820
  Attributes:
5821
   - success
5822
   - ucx
5823
  """
5824
 
5825
  thrift_spec = (
5826
    (0, TType.BOOL, 'success', None, None, ), # 0
5827
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5828
  )
5829
 
5830
  def __init__(self, success=None, ucx=None,):
5831
    self.success = success
5832
    self.ucx = ucx
5833
 
5834
  def read(self, iprot):
5835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5837
      return
5838
    iprot.readStructBegin()
5839
    while True:
5840
      (fname, ftype, fid) = iprot.readFieldBegin()
5841
      if ftype == TType.STOP:
5842
        break
5843
      if fid == 0:
5844
        if ftype == TType.BOOL:
5845
          self.success = iprot.readBool();
5846
        else:
5847
          iprot.skip(ftype)
5848
      elif fid == 1:
5849
        if ftype == TType.STRUCT:
5850
          self.ucx = UserContextException()
5851
          self.ucx.read(iprot)
5852
        else:
5853
          iprot.skip(ftype)
5854
      else:
5855
        iprot.skip(ftype)
5856
      iprot.readFieldEnd()
5857
    iprot.readStructEnd()
5858
 
5859
  def write(self, oprot):
5860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5862
      return
559 chandransh 5863
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5864
    if self.success is not None:
94 ashish 5865
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5866
      oprot.writeBool(self.success)
5867
      oprot.writeFieldEnd()
3431 rajveer 5868
    if self.ucx is not None:
94 ashish 5869
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5870
      self.ucx.write(oprot)
5871
      oprot.writeFieldEnd()
5872
    oprot.writeFieldStop()
5873
    oprot.writeStructEnd()
5874
 
3431 rajveer 5875
  def validate(self):
5876
    return
5877
 
5878
 
94 ashish 5879
  def __repr__(self):
5880
    L = ['%s=%r' % (key, value)
5881
      for key, value in self.__dict__.iteritems()]
5882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5883
 
5884
  def __eq__(self, other):
5885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5886
 
5887
  def __ne__(self, other):
5888
    return not (self == other)
5889
 
559 chandransh 5890
class updatePassword_args:
94 ashish 5891
  """
5892
  Attributes:
559 chandransh 5893
   - userid
594 rajveer 5894
   - oldPassword
5895
   - newPassword
94 ashish 5896
  """
5897
 
5898
  thrift_spec = (
5899
    None, # 0
559 chandransh 5900
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5901
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5902
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5903
  )
5904
 
594 rajveer 5905
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5906
    self.userid = userid
594 rajveer 5907
    self.oldPassword = oldPassword
5908
    self.newPassword = newPassword
94 ashish 5909
 
5910
  def read(self, iprot):
5911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5913
      return
5914
    iprot.readStructBegin()
5915
    while True:
5916
      (fname, ftype, fid) = iprot.readFieldBegin()
5917
      if ftype == TType.STOP:
5918
        break
5919
      if fid == 1:
5920
        if ftype == TType.I64:
559 chandransh 5921
          self.userid = iprot.readI64();
94 ashish 5922
        else:
5923
          iprot.skip(ftype)
5924
      elif fid == 2:
559 chandransh 5925
        if ftype == TType.STRING:
594 rajveer 5926
          self.oldPassword = iprot.readString();
94 ashish 5927
        else:
5928
          iprot.skip(ftype)
594 rajveer 5929
      elif fid == 3:
5930
        if ftype == TType.STRING:
5931
          self.newPassword = iprot.readString();
5932
        else:
5933
          iprot.skip(ftype)
94 ashish 5934
      else:
5935
        iprot.skip(ftype)
5936
      iprot.readFieldEnd()
5937
    iprot.readStructEnd()
5938
 
5939
  def write(self, oprot):
5940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5942
      return
559 chandransh 5943
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5944
    if self.userid is not None:
559 chandransh 5945
      oprot.writeFieldBegin('userid', TType.I64, 1)
5946
      oprot.writeI64(self.userid)
94 ashish 5947
      oprot.writeFieldEnd()
3431 rajveer 5948
    if self.oldPassword is not None:
594 rajveer 5949
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5950
      oprot.writeString(self.oldPassword)
94 ashish 5951
      oprot.writeFieldEnd()
3431 rajveer 5952
    if self.newPassword is not None:
594 rajveer 5953
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5954
      oprot.writeString(self.newPassword)
5955
      oprot.writeFieldEnd()
94 ashish 5956
    oprot.writeFieldStop()
5957
    oprot.writeStructEnd()
5958
 
3431 rajveer 5959
  def validate(self):
5960
    return
5961
 
5962
 
94 ashish 5963
  def __repr__(self):
5964
    L = ['%s=%r' % (key, value)
5965
      for key, value in self.__dict__.iteritems()]
5966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5967
 
5968
  def __eq__(self, other):
5969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5970
 
5971
  def __ne__(self, other):
5972
    return not (self == other)
5973
 
559 chandransh 5974
class updatePassword_result:
94 ashish 5975
  """
5976
  Attributes:
5977
   - success
5978
   - ucx
5979
  """
5980
 
5981
  thrift_spec = (
5982
    (0, TType.BOOL, 'success', None, None, ), # 0
5983
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5984
  )
5985
 
5986
  def __init__(self, success=None, ucx=None,):
5987
    self.success = success
5988
    self.ucx = ucx
5989
 
5990
  def read(self, iprot):
5991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5993
      return
5994
    iprot.readStructBegin()
5995
    while True:
5996
      (fname, ftype, fid) = iprot.readFieldBegin()
5997
      if ftype == TType.STOP:
5998
        break
5999
      if fid == 0:
6000
        if ftype == TType.BOOL:
6001
          self.success = iprot.readBool();
6002
        else:
6003
          iprot.skip(ftype)
6004
      elif fid == 1:
6005
        if ftype == TType.STRUCT:
6006
          self.ucx = UserContextException()
6007
          self.ucx.read(iprot)
6008
        else:
6009
          iprot.skip(ftype)
6010
      else:
6011
        iprot.skip(ftype)
6012
      iprot.readFieldEnd()
6013
    iprot.readStructEnd()
6014
 
6015
  def write(self, oprot):
6016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6018
      return
559 chandransh 6019
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6020
    if self.success is not None:
94 ashish 6021
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6022
      oprot.writeBool(self.success)
6023
      oprot.writeFieldEnd()
3431 rajveer 6024
    if self.ucx is not None:
94 ashish 6025
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6026
      self.ucx.write(oprot)
6027
      oprot.writeFieldEnd()
6028
    oprot.writeFieldStop()
6029
    oprot.writeStructEnd()
6030
 
3431 rajveer 6031
  def validate(self):
6032
    return
6033
 
6034
 
94 ashish 6035
  def __repr__(self):
6036
    L = ['%s=%r' % (key, value)
6037
      for key, value in self.__dict__.iteritems()]
6038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6039
 
6040
  def __eq__(self, other):
6041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6042
 
6043
  def __ne__(self, other):
6044
    return not (self == other)
6045
 
581 rajveer 6046
class forgotPassword_args:
6047
  """
6048
  Attributes:
6049
   - email
884 rajveer 6050
   - newPassword
581 rajveer 6051
  """
6052
 
6053
  thrift_spec = (
6054
    None, # 0
6055
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6056
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6057
  )
6058
 
884 rajveer 6059
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6060
    self.email = email
884 rajveer 6061
    self.newPassword = newPassword
581 rajveer 6062
 
6063
  def read(self, iprot):
6064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6066
      return
6067
    iprot.readStructBegin()
6068
    while True:
6069
      (fname, ftype, fid) = iprot.readFieldBegin()
6070
      if ftype == TType.STOP:
6071
        break
6072
      if fid == 1:
6073
        if ftype == TType.STRING:
6074
          self.email = iprot.readString();
6075
        else:
6076
          iprot.skip(ftype)
884 rajveer 6077
      elif fid == 2:
6078
        if ftype == TType.STRING:
6079
          self.newPassword = iprot.readString();
6080
        else:
6081
          iprot.skip(ftype)
581 rajveer 6082
      else:
6083
        iprot.skip(ftype)
6084
      iprot.readFieldEnd()
6085
    iprot.readStructEnd()
6086
 
6087
  def write(self, oprot):
6088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6090
      return
6091
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6092
    if self.email is not None:
581 rajveer 6093
      oprot.writeFieldBegin('email', TType.STRING, 1)
6094
      oprot.writeString(self.email)
6095
      oprot.writeFieldEnd()
3431 rajveer 6096
    if self.newPassword is not None:
884 rajveer 6097
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6098
      oprot.writeString(self.newPassword)
6099
      oprot.writeFieldEnd()
581 rajveer 6100
    oprot.writeFieldStop()
6101
    oprot.writeStructEnd()
6102
 
3431 rajveer 6103
  def validate(self):
6104
    return
6105
 
6106
 
581 rajveer 6107
  def __repr__(self):
6108
    L = ['%s=%r' % (key, value)
6109
      for key, value in self.__dict__.iteritems()]
6110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6111
 
6112
  def __eq__(self, other):
6113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6114
 
6115
  def __ne__(self, other):
6116
    return not (self == other)
6117
 
6118
class forgotPassword_result:
6119
  """
6120
  Attributes:
6121
   - success
6122
   - ucx
6123
  """
6124
 
6125
  thrift_spec = (
6126
    (0, TType.BOOL, 'success', None, None, ), # 0
6127
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6128
  )
6129
 
6130
  def __init__(self, success=None, ucx=None,):
6131
    self.success = success
6132
    self.ucx = ucx
6133
 
6134
  def read(self, iprot):
6135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6137
      return
6138
    iprot.readStructBegin()
6139
    while True:
6140
      (fname, ftype, fid) = iprot.readFieldBegin()
6141
      if ftype == TType.STOP:
6142
        break
6143
      if fid == 0:
6144
        if ftype == TType.BOOL:
6145
          self.success = iprot.readBool();
6146
        else:
6147
          iprot.skip(ftype)
6148
      elif fid == 1:
6149
        if ftype == TType.STRUCT:
6150
          self.ucx = UserContextException()
6151
          self.ucx.read(iprot)
6152
        else:
6153
          iprot.skip(ftype)
6154
      else:
6155
        iprot.skip(ftype)
6156
      iprot.readFieldEnd()
6157
    iprot.readStructEnd()
6158
 
6159
  def write(self, oprot):
6160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6162
      return
6163
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6164
    if self.success is not None:
581 rajveer 6165
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6166
      oprot.writeBool(self.success)
6167
      oprot.writeFieldEnd()
3431 rajveer 6168
    if self.ucx is not None:
581 rajveer 6169
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6170
      self.ucx.write(oprot)
6171
      oprot.writeFieldEnd()
6172
    oprot.writeFieldStop()
6173
    oprot.writeStructEnd()
6174
 
3431 rajveer 6175
  def validate(self):
6176
    return
6177
 
6178
 
581 rajveer 6179
  def __repr__(self):
6180
    L = ['%s=%r' % (key, value)
6181
      for key, value in self.__dict__.iteritems()]
6182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6183
 
6184
  def __eq__(self, other):
6185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6186
 
6187
  def __ne__(self, other):
6188
    return not (self == other)
6189
 
594 rajveer 6190
class getAllAddressesForUser_args:
6191
  """
6192
  Attributes:
6193
   - userId
6194
  """
6195
 
6196
  thrift_spec = (
6197
    None, # 0
6198
    (1, TType.I64, 'userId', None, None, ), # 1
6199
  )
6200
 
6201
  def __init__(self, userId=None,):
6202
    self.userId = userId
6203
 
6204
  def read(self, iprot):
6205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6207
      return
6208
    iprot.readStructBegin()
6209
    while True:
6210
      (fname, ftype, fid) = iprot.readFieldBegin()
6211
      if ftype == TType.STOP:
6212
        break
6213
      if fid == 1:
6214
        if ftype == TType.I64:
6215
          self.userId = iprot.readI64();
6216
        else:
6217
          iprot.skip(ftype)
6218
      else:
6219
        iprot.skip(ftype)
6220
      iprot.readFieldEnd()
6221
    iprot.readStructEnd()
6222
 
6223
  def write(self, oprot):
6224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6226
      return
6227
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6228
    if self.userId is not None:
594 rajveer 6229
      oprot.writeFieldBegin('userId', TType.I64, 1)
6230
      oprot.writeI64(self.userId)
6231
      oprot.writeFieldEnd()
6232
    oprot.writeFieldStop()
6233
    oprot.writeStructEnd()
6234
 
3431 rajveer 6235
  def validate(self):
6236
    return
6237
 
6238
 
594 rajveer 6239
  def __repr__(self):
6240
    L = ['%s=%r' % (key, value)
6241
      for key, value in self.__dict__.iteritems()]
6242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6243
 
6244
  def __eq__(self, other):
6245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6246
 
6247
  def __ne__(self, other):
6248
    return not (self == other)
6249
 
6250
class getAllAddressesForUser_result:
6251
  """
6252
  Attributes:
6253
   - success
6254
   - ucx
6255
  """
6256
 
6257
  thrift_spec = (
6258
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6259
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6260
  )
6261
 
6262
  def __init__(self, success=None, ucx=None,):
6263
    self.success = success
6264
    self.ucx = ucx
6265
 
6266
  def read(self, iprot):
6267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6269
      return
6270
    iprot.readStructBegin()
6271
    while True:
6272
      (fname, ftype, fid) = iprot.readFieldBegin()
6273
      if ftype == TType.STOP:
6274
        break
6275
      if fid == 0:
6276
        if ftype == TType.LIST:
6277
          self.success = []
5326 rajveer 6278
          (_etype61, _size58) = iprot.readListBegin()
6279
          for _i62 in xrange(_size58):
6280
            _elem63 = Address()
6281
            _elem63.read(iprot)
6282
            self.success.append(_elem63)
594 rajveer 6283
          iprot.readListEnd()
6284
        else:
6285
          iprot.skip(ftype)
6286
      elif fid == 1:
6287
        if ftype == TType.STRUCT:
6288
          self.ucx = UserContextException()
6289
          self.ucx.read(iprot)
6290
        else:
6291
          iprot.skip(ftype)
6292
      else:
6293
        iprot.skip(ftype)
6294
      iprot.readFieldEnd()
6295
    iprot.readStructEnd()
6296
 
6297
  def write(self, oprot):
6298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6300
      return
6301
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6302
    if self.success is not None:
594 rajveer 6303
      oprot.writeFieldBegin('success', TType.LIST, 0)
6304
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6305
      for iter64 in self.success:
6306
        iter64.write(oprot)
594 rajveer 6307
      oprot.writeListEnd()
6308
      oprot.writeFieldEnd()
3431 rajveer 6309
    if self.ucx is not None:
594 rajveer 6310
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6311
      self.ucx.write(oprot)
6312
      oprot.writeFieldEnd()
6313
    oprot.writeFieldStop()
6314
    oprot.writeStructEnd()
6315
 
3431 rajveer 6316
  def validate(self):
6317
    return
6318
 
6319
 
594 rajveer 6320
  def __repr__(self):
6321
    L = ['%s=%r' % (key, value)
6322
      for key, value in self.__dict__.iteritems()]
6323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6324
 
6325
  def __eq__(self, other):
6326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6327
 
6328
  def __ne__(self, other):
6329
    return not (self == other)
6330
 
1894 vikas 6331
class getAddressById_args:
6332
  """
6333
  Attributes:
6334
   - addressId
6335
  """
6336
 
6337
  thrift_spec = (
6338
    None, # 0
6339
    (1, TType.I64, 'addressId', None, None, ), # 1
6340
  )
6341
 
6342
  def __init__(self, addressId=None,):
6343
    self.addressId = addressId
6344
 
6345
  def read(self, iprot):
6346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6348
      return
6349
    iprot.readStructBegin()
6350
    while True:
6351
      (fname, ftype, fid) = iprot.readFieldBegin()
6352
      if ftype == TType.STOP:
6353
        break
6354
      if fid == 1:
6355
        if ftype == TType.I64:
6356
          self.addressId = iprot.readI64();
6357
        else:
6358
          iprot.skip(ftype)
6359
      else:
6360
        iprot.skip(ftype)
6361
      iprot.readFieldEnd()
6362
    iprot.readStructEnd()
6363
 
6364
  def write(self, oprot):
6365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6367
      return
6368
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6369
    if self.addressId is not None:
1894 vikas 6370
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6371
      oprot.writeI64(self.addressId)
6372
      oprot.writeFieldEnd()
6373
    oprot.writeFieldStop()
6374
    oprot.writeStructEnd()
6375
 
3431 rajveer 6376
  def validate(self):
6377
    return
6378
 
6379
 
1894 vikas 6380
  def __repr__(self):
6381
    L = ['%s=%r' % (key, value)
6382
      for key, value in self.__dict__.iteritems()]
6383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6384
 
6385
  def __eq__(self, other):
6386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6387
 
6388
  def __ne__(self, other):
6389
    return not (self == other)
6390
 
6391
class getAddressById_result:
6392
  """
6393
  Attributes:
6394
   - success
6395
   - ucx
6396
  """
6397
 
6398
  thrift_spec = (
6399
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6400
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6401
  )
6402
 
6403
  def __init__(self, success=None, ucx=None,):
6404
    self.success = success
6405
    self.ucx = ucx
6406
 
6407
  def read(self, iprot):
6408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6410
      return
6411
    iprot.readStructBegin()
6412
    while True:
6413
      (fname, ftype, fid) = iprot.readFieldBegin()
6414
      if ftype == TType.STOP:
6415
        break
6416
      if fid == 0:
6417
        if ftype == TType.STRUCT:
6418
          self.success = Address()
6419
          self.success.read(iprot)
6420
        else:
6421
          iprot.skip(ftype)
6422
      elif fid == 1:
6423
        if ftype == TType.STRUCT:
6424
          self.ucx = UserContextException()
6425
          self.ucx.read(iprot)
6426
        else:
6427
          iprot.skip(ftype)
6428
      else:
6429
        iprot.skip(ftype)
6430
      iprot.readFieldEnd()
6431
    iprot.readStructEnd()
6432
 
6433
  def write(self, oprot):
6434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6436
      return
6437
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6438
    if self.success is not None:
1894 vikas 6439
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6440
      self.success.write(oprot)
6441
      oprot.writeFieldEnd()
3431 rajveer 6442
    if self.ucx is not None:
1894 vikas 6443
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6444
      self.ucx.write(oprot)
6445
      oprot.writeFieldEnd()
6446
    oprot.writeFieldStop()
6447
    oprot.writeStructEnd()
6448
 
3431 rajveer 6449
  def validate(self):
6450
    return
6451
 
6452
 
1894 vikas 6453
  def __repr__(self):
6454
    L = ['%s=%r' % (key, value)
6455
      for key, value in self.__dict__.iteritems()]
6456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6457
 
6458
  def __eq__(self, other):
6459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6460
 
6461
  def __ne__(self, other):
6462
    return not (self == other)
6463
 
594 rajveer 6464
class getDefaultAddressId_args:
6465
  """
6466
  Attributes:
6467
   - userId
6468
  """
6469
 
6470
  thrift_spec = (
6471
    None, # 0
6472
    (1, TType.I64, 'userId', None, None, ), # 1
6473
  )
6474
 
6475
  def __init__(self, userId=None,):
6476
    self.userId = userId
6477
 
6478
  def read(self, iprot):
6479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6481
      return
6482
    iprot.readStructBegin()
6483
    while True:
6484
      (fname, ftype, fid) = iprot.readFieldBegin()
6485
      if ftype == TType.STOP:
6486
        break
6487
      if fid == 1:
6488
        if ftype == TType.I64:
6489
          self.userId = iprot.readI64();
6490
        else:
6491
          iprot.skip(ftype)
6492
      else:
6493
        iprot.skip(ftype)
6494
      iprot.readFieldEnd()
6495
    iprot.readStructEnd()
6496
 
6497
  def write(self, oprot):
6498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6500
      return
6501
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6502
    if self.userId is not None:
594 rajveer 6503
      oprot.writeFieldBegin('userId', TType.I64, 1)
6504
      oprot.writeI64(self.userId)
6505
      oprot.writeFieldEnd()
6506
    oprot.writeFieldStop()
6507
    oprot.writeStructEnd()
6508
 
3431 rajveer 6509
  def validate(self):
6510
    return
6511
 
6512
 
594 rajveer 6513
  def __repr__(self):
6514
    L = ['%s=%r' % (key, value)
6515
      for key, value in self.__dict__.iteritems()]
6516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6517
 
6518
  def __eq__(self, other):
6519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6520
 
6521
  def __ne__(self, other):
6522
    return not (self == other)
6523
 
6524
class getDefaultAddressId_result:
6525
  """
6526
  Attributes:
6527
   - success
6528
   - ucx
6529
  """
6530
 
6531
  thrift_spec = (
6532
    (0, TType.I64, 'success', None, None, ), # 0
6533
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6534
  )
6535
 
6536
  def __init__(self, success=None, ucx=None,):
6537
    self.success = success
6538
    self.ucx = ucx
6539
 
6540
  def read(self, iprot):
6541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6543
      return
6544
    iprot.readStructBegin()
6545
    while True:
6546
      (fname, ftype, fid) = iprot.readFieldBegin()
6547
      if ftype == TType.STOP:
6548
        break
6549
      if fid == 0:
6550
        if ftype == TType.I64:
6551
          self.success = iprot.readI64();
6552
        else:
6553
          iprot.skip(ftype)
6554
      elif fid == 1:
6555
        if ftype == TType.STRUCT:
6556
          self.ucx = UserContextException()
6557
          self.ucx.read(iprot)
6558
        else:
6559
          iprot.skip(ftype)
6560
      else:
6561
        iprot.skip(ftype)
6562
      iprot.readFieldEnd()
6563
    iprot.readStructEnd()
6564
 
6565
  def write(self, oprot):
6566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6568
      return
6569
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6570
    if self.success is not None:
594 rajveer 6571
      oprot.writeFieldBegin('success', TType.I64, 0)
6572
      oprot.writeI64(self.success)
6573
      oprot.writeFieldEnd()
3431 rajveer 6574
    if self.ucx is not None:
594 rajveer 6575
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6576
      self.ucx.write(oprot)
6577
      oprot.writeFieldEnd()
6578
    oprot.writeFieldStop()
6579
    oprot.writeStructEnd()
6580
 
3431 rajveer 6581
  def validate(self):
6582
    return
6583
 
6584
 
594 rajveer 6585
  def __repr__(self):
6586
    L = ['%s=%r' % (key, value)
6587
      for key, value in self.__dict__.iteritems()]
6588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6589
 
6590
  def __eq__(self, other):
6591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6592
 
6593
  def __ne__(self, other):
6594
    return not (self == other)
6595
 
785 rajveer 6596
class getDefaultPincode_args:
6597
  """
6598
  Attributes:
6599
   - userId
6600
  """
6601
 
6602
  thrift_spec = (
6603
    None, # 0
6604
    (1, TType.I64, 'userId', None, None, ), # 1
6605
  )
6606
 
6607
  def __init__(self, userId=None,):
6608
    self.userId = userId
6609
 
6610
  def read(self, iprot):
6611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6613
      return
6614
    iprot.readStructBegin()
6615
    while True:
6616
      (fname, ftype, fid) = iprot.readFieldBegin()
6617
      if ftype == TType.STOP:
6618
        break
6619
      if fid == 1:
6620
        if ftype == TType.I64:
6621
          self.userId = iprot.readI64();
6622
        else:
6623
          iprot.skip(ftype)
6624
      else:
6625
        iprot.skip(ftype)
6626
      iprot.readFieldEnd()
6627
    iprot.readStructEnd()
6628
 
6629
  def write(self, oprot):
6630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6632
      return
6633
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6634
    if self.userId is not None:
785 rajveer 6635
      oprot.writeFieldBegin('userId', TType.I64, 1)
6636
      oprot.writeI64(self.userId)
6637
      oprot.writeFieldEnd()
6638
    oprot.writeFieldStop()
6639
    oprot.writeStructEnd()
6640
 
3431 rajveer 6641
  def validate(self):
6642
    return
6643
 
6644
 
785 rajveer 6645
  def __repr__(self):
6646
    L = ['%s=%r' % (key, value)
6647
      for key, value in self.__dict__.iteritems()]
6648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6649
 
6650
  def __eq__(self, other):
6651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6652
 
6653
  def __ne__(self, other):
6654
    return not (self == other)
6655
 
6656
class getDefaultPincode_result:
6657
  """
6658
  Attributes:
6659
   - success
6660
   - ucx
6661
  """
6662
 
6663
  thrift_spec = (
6664
    (0, TType.STRING, 'success', None, None, ), # 0
6665
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6666
  )
6667
 
6668
  def __init__(self, success=None, ucx=None,):
6669
    self.success = success
6670
    self.ucx = ucx
6671
 
6672
  def read(self, iprot):
6673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6675
      return
6676
    iprot.readStructBegin()
6677
    while True:
6678
      (fname, ftype, fid) = iprot.readFieldBegin()
6679
      if ftype == TType.STOP:
6680
        break
6681
      if fid == 0:
6682
        if ftype == TType.STRING:
6683
          self.success = iprot.readString();
6684
        else:
6685
          iprot.skip(ftype)
6686
      elif fid == 1:
6687
        if ftype == TType.STRUCT:
6688
          self.ucx = UserContextException()
6689
          self.ucx.read(iprot)
6690
        else:
6691
          iprot.skip(ftype)
6692
      else:
6693
        iprot.skip(ftype)
6694
      iprot.readFieldEnd()
6695
    iprot.readStructEnd()
6696
 
6697
  def write(self, oprot):
6698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6700
      return
6701
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6702
    if self.success is not None:
785 rajveer 6703
      oprot.writeFieldBegin('success', TType.STRING, 0)
6704
      oprot.writeString(self.success)
6705
      oprot.writeFieldEnd()
3431 rajveer 6706
    if self.ucx is not None:
785 rajveer 6707
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6708
      self.ucx.write(oprot)
6709
      oprot.writeFieldEnd()
6710
    oprot.writeFieldStop()
6711
    oprot.writeStructEnd()
6712
 
3431 rajveer 6713
  def validate(self):
6714
    return
6715
 
6716
 
785 rajveer 6717
  def __repr__(self):
6718
    L = ['%s=%r' % (key, value)
6719
      for key, value in self.__dict__.iteritems()]
6720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6721
 
6722
  def __eq__(self, other):
6723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6724
 
6725
  def __ne__(self, other):
6726
    return not (self == other)
6727
 
1274 varun.gupt 6728
class saveUserCommunication_args:
6729
  """
6730
  Attributes:
6731
   - userId
6732
   - replyTo
6733
   - communicationType
6734
   - orderId
6735
   - airwaybillNo
6736
   - productName
6737
   - subject
6738
   - message
6739
  """
6740
 
6741
  thrift_spec = (
6742
    None, # 0
6743
    (1, TType.I64, 'userId', None, None, ), # 1
6744
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6745
    (3, TType.I64, 'communicationType', None, None, ), # 3
6746
    (4, TType.I64, 'orderId', None, None, ), # 4
6747
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6748
    (6, TType.STRING, 'productName', None, None, ), # 6
6749
    (7, TType.STRING, 'subject', None, None, ), # 7
6750
    (8, TType.STRING, 'message', None, None, ), # 8
6751
  )
6752
 
6753
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6754
    self.userId = userId
6755
    self.replyTo = replyTo
6756
    self.communicationType = communicationType
6757
    self.orderId = orderId
6758
    self.airwaybillNo = airwaybillNo
6759
    self.productName = productName
6760
    self.subject = subject
6761
    self.message = message
6762
 
6763
  def read(self, iprot):
6764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6766
      return
6767
    iprot.readStructBegin()
6768
    while True:
6769
      (fname, ftype, fid) = iprot.readFieldBegin()
6770
      if ftype == TType.STOP:
6771
        break
6772
      if fid == 1:
6773
        if ftype == TType.I64:
6774
          self.userId = iprot.readI64();
6775
        else:
6776
          iprot.skip(ftype)
6777
      elif fid == 2:
6778
        if ftype == TType.STRING:
6779
          self.replyTo = iprot.readString();
6780
        else:
6781
          iprot.skip(ftype)
6782
      elif fid == 3:
6783
        if ftype == TType.I64:
6784
          self.communicationType = iprot.readI64();
6785
        else:
6786
          iprot.skip(ftype)
6787
      elif fid == 4:
6788
        if ftype == TType.I64:
6789
          self.orderId = iprot.readI64();
6790
        else:
6791
          iprot.skip(ftype)
6792
      elif fid == 5:
6793
        if ftype == TType.STRING:
6794
          self.airwaybillNo = iprot.readString();
6795
        else:
6796
          iprot.skip(ftype)
6797
      elif fid == 6:
6798
        if ftype == TType.STRING:
6799
          self.productName = iprot.readString();
6800
        else:
6801
          iprot.skip(ftype)
6802
      elif fid == 7:
6803
        if ftype == TType.STRING:
6804
          self.subject = iprot.readString();
6805
        else:
6806
          iprot.skip(ftype)
6807
      elif fid == 8:
6808
        if ftype == TType.STRING:
6809
          self.message = iprot.readString();
6810
        else:
6811
          iprot.skip(ftype)
6812
      else:
6813
        iprot.skip(ftype)
6814
      iprot.readFieldEnd()
6815
    iprot.readStructEnd()
6816
 
6817
  def write(self, oprot):
6818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6820
      return
6821
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6822
    if self.userId is not None:
1274 varun.gupt 6823
      oprot.writeFieldBegin('userId', TType.I64, 1)
6824
      oprot.writeI64(self.userId)
6825
      oprot.writeFieldEnd()
3431 rajveer 6826
    if self.replyTo is not None:
1274 varun.gupt 6827
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6828
      oprot.writeString(self.replyTo)
6829
      oprot.writeFieldEnd()
3431 rajveer 6830
    if self.communicationType is not None:
1274 varun.gupt 6831
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6832
      oprot.writeI64(self.communicationType)
6833
      oprot.writeFieldEnd()
3431 rajveer 6834
    if self.orderId is not None:
1274 varun.gupt 6835
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6836
      oprot.writeI64(self.orderId)
6837
      oprot.writeFieldEnd()
3431 rajveer 6838
    if self.airwaybillNo is not None:
1274 varun.gupt 6839
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6840
      oprot.writeString(self.airwaybillNo)
6841
      oprot.writeFieldEnd()
3431 rajveer 6842
    if self.productName is not None:
1274 varun.gupt 6843
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6844
      oprot.writeString(self.productName)
6845
      oprot.writeFieldEnd()
3431 rajveer 6846
    if self.subject is not None:
1274 varun.gupt 6847
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6848
      oprot.writeString(self.subject)
6849
      oprot.writeFieldEnd()
3431 rajveer 6850
    if self.message is not None:
1274 varun.gupt 6851
      oprot.writeFieldBegin('message', TType.STRING, 8)
6852
      oprot.writeString(self.message)
6853
      oprot.writeFieldEnd()
6854
    oprot.writeFieldStop()
6855
    oprot.writeStructEnd()
6856
 
3431 rajveer 6857
  def validate(self):
6858
    return
6859
 
6860
 
1274 varun.gupt 6861
  def __repr__(self):
6862
    L = ['%s=%r' % (key, value)
6863
      for key, value in self.__dict__.iteritems()]
6864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6865
 
6866
  def __eq__(self, other):
6867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6868
 
6869
  def __ne__(self, other):
6870
    return not (self == other)
6871
 
6872
class saveUserCommunication_result:
6873
  """
6874
  Attributes:
6875
   - success
6876
   - ucx
6877
  """
6878
 
6879
  thrift_spec = (
6880
    (0, TType.BOOL, 'success', None, None, ), # 0
6881
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6882
  )
6883
 
6884
  def __init__(self, success=None, ucx=None,):
6885
    self.success = success
6886
    self.ucx = ucx
6887
 
6888
  def read(self, iprot):
6889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6891
      return
6892
    iprot.readStructBegin()
6893
    while True:
6894
      (fname, ftype, fid) = iprot.readFieldBegin()
6895
      if ftype == TType.STOP:
6896
        break
6897
      if fid == 0:
6898
        if ftype == TType.BOOL:
6899
          self.success = iprot.readBool();
6900
        else:
6901
          iprot.skip(ftype)
6902
      elif fid == 1:
6903
        if ftype == TType.STRUCT:
6904
          self.ucx = UserCommunicationException()
6905
          self.ucx.read(iprot)
6906
        else:
6907
          iprot.skip(ftype)
6908
      else:
6909
        iprot.skip(ftype)
6910
      iprot.readFieldEnd()
6911
    iprot.readStructEnd()
6912
 
6913
  def write(self, oprot):
6914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6916
      return
6917
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6918
    if self.success is not None:
1274 varun.gupt 6919
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6920
      oprot.writeBool(self.success)
6921
      oprot.writeFieldEnd()
3431 rajveer 6922
    if self.ucx is not None:
1274 varun.gupt 6923
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6924
      self.ucx.write(oprot)
6925
      oprot.writeFieldEnd()
6926
    oprot.writeFieldStop()
6927
    oprot.writeStructEnd()
6928
 
3431 rajveer 6929
  def validate(self):
6930
    return
6931
 
6932
 
1274 varun.gupt 6933
  def __repr__(self):
6934
    L = ['%s=%r' % (key, value)
6935
      for key, value in self.__dict__.iteritems()]
6936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6937
 
6938
  def __eq__(self, other):
6939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6940
 
6941
  def __ne__(self, other):
6942
    return not (self == other)
6943
 
1590 varun.gupt 6944
class getUserCommunicationById_args:
6945
  """
6946
  Attributes:
6947
   - id
6948
  """
6949
 
6950
  thrift_spec = (
6951
    None, # 0
6952
    (1, TType.I64, 'id', None, None, ), # 1
6953
  )
6954
 
6955
  def __init__(self, id=None,):
6956
    self.id = id
6957
 
6958
  def read(self, iprot):
6959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6961
      return
6962
    iprot.readStructBegin()
6963
    while True:
6964
      (fname, ftype, fid) = iprot.readFieldBegin()
6965
      if ftype == TType.STOP:
6966
        break
6967
      if fid == 1:
6968
        if ftype == TType.I64:
6969
          self.id = iprot.readI64();
6970
        else:
6971
          iprot.skip(ftype)
6972
      else:
6973
        iprot.skip(ftype)
6974
      iprot.readFieldEnd()
6975
    iprot.readStructEnd()
6976
 
6977
  def write(self, oprot):
6978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6980
      return
6981
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6982
    if self.id is not None:
1590 varun.gupt 6983
      oprot.writeFieldBegin('id', TType.I64, 1)
6984
      oprot.writeI64(self.id)
6985
      oprot.writeFieldEnd()
6986
    oprot.writeFieldStop()
6987
    oprot.writeStructEnd()
6988
 
3431 rajveer 6989
  def validate(self):
6990
    return
6991
 
6992
 
1590 varun.gupt 6993
  def __repr__(self):
6994
    L = ['%s=%r' % (key, value)
6995
      for key, value in self.__dict__.iteritems()]
6996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6997
 
6998
  def __eq__(self, other):
6999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7000
 
7001
  def __ne__(self, other):
7002
    return not (self == other)
7003
 
7004
class getUserCommunicationById_result:
7005
  """
7006
  Attributes:
7007
   - success
7008
   - ucx
7009
  """
7010
 
7011
  thrift_spec = (
7012
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7013
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7014
  )
7015
 
7016
  def __init__(self, success=None, ucx=None,):
7017
    self.success = success
7018
    self.ucx = ucx
7019
 
7020
  def read(self, iprot):
7021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7023
      return
7024
    iprot.readStructBegin()
7025
    while True:
7026
      (fname, ftype, fid) = iprot.readFieldBegin()
7027
      if ftype == TType.STOP:
7028
        break
7029
      if fid == 0:
7030
        if ftype == TType.STRUCT:
7031
          self.success = UserCommunication()
7032
          self.success.read(iprot)
7033
        else:
7034
          iprot.skip(ftype)
7035
      elif fid == 1:
7036
        if ftype == TType.STRUCT:
7037
          self.ucx = UserCommunicationException()
7038
          self.ucx.read(iprot)
7039
        else:
7040
          iprot.skip(ftype)
7041
      else:
7042
        iprot.skip(ftype)
7043
      iprot.readFieldEnd()
7044
    iprot.readStructEnd()
7045
 
7046
  def write(self, oprot):
7047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7049
      return
7050
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7051
    if self.success is not None:
1590 varun.gupt 7052
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7053
      self.success.write(oprot)
7054
      oprot.writeFieldEnd()
3431 rajveer 7055
    if self.ucx is not None:
1590 varun.gupt 7056
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7057
      self.ucx.write(oprot)
7058
      oprot.writeFieldEnd()
7059
    oprot.writeFieldStop()
7060
    oprot.writeStructEnd()
7061
 
3431 rajveer 7062
  def validate(self):
7063
    return
7064
 
7065
 
1590 varun.gupt 7066
  def __repr__(self):
7067
    L = ['%s=%r' % (key, value)
7068
      for key, value in self.__dict__.iteritems()]
7069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7070
 
7071
  def __eq__(self, other):
7072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7073
 
7074
  def __ne__(self, other):
7075
    return not (self == other)
7076
 
7077
class getUserCommunicationByUser_args:
7078
  """
7079
  Attributes:
7080
   - userId
7081
  """
7082
 
7083
  thrift_spec = (
7084
    None, # 0
7085
    (1, TType.I64, 'userId', None, None, ), # 1
7086
  )
7087
 
7088
  def __init__(self, userId=None,):
7089
    self.userId = userId
7090
 
7091
  def read(self, iprot):
7092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7094
      return
7095
    iprot.readStructBegin()
7096
    while True:
7097
      (fname, ftype, fid) = iprot.readFieldBegin()
7098
      if ftype == TType.STOP:
7099
        break
7100
      if fid == 1:
7101
        if ftype == TType.I64:
7102
          self.userId = iprot.readI64();
7103
        else:
7104
          iprot.skip(ftype)
7105
      else:
7106
        iprot.skip(ftype)
7107
      iprot.readFieldEnd()
7108
    iprot.readStructEnd()
7109
 
7110
  def write(self, oprot):
7111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7113
      return
7114
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7115
    if self.userId is not None:
1590 varun.gupt 7116
      oprot.writeFieldBegin('userId', TType.I64, 1)
7117
      oprot.writeI64(self.userId)
7118
      oprot.writeFieldEnd()
7119
    oprot.writeFieldStop()
7120
    oprot.writeStructEnd()
7121
 
3431 rajveer 7122
  def validate(self):
7123
    return
7124
 
7125
 
1590 varun.gupt 7126
  def __repr__(self):
7127
    L = ['%s=%r' % (key, value)
7128
      for key, value in self.__dict__.iteritems()]
7129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7130
 
7131
  def __eq__(self, other):
7132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7133
 
7134
  def __ne__(self, other):
7135
    return not (self == other)
7136
 
7137
class getUserCommunicationByUser_result:
7138
  """
7139
  Attributes:
7140
   - success
7141
   - ucx
7142
  """
7143
 
7144
  thrift_spec = (
7145
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7146
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7147
  )
7148
 
7149
  def __init__(self, success=None, ucx=None,):
7150
    self.success = success
7151
    self.ucx = ucx
7152
 
7153
  def read(self, iprot):
7154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7156
      return
7157
    iprot.readStructBegin()
7158
    while True:
7159
      (fname, ftype, fid) = iprot.readFieldBegin()
7160
      if ftype == TType.STOP:
7161
        break
7162
      if fid == 0:
7163
        if ftype == TType.LIST:
7164
          self.success = []
5326 rajveer 7165
          (_etype68, _size65) = iprot.readListBegin()
7166
          for _i69 in xrange(_size65):
7167
            _elem70 = UserCommunication()
7168
            _elem70.read(iprot)
7169
            self.success.append(_elem70)
1590 varun.gupt 7170
          iprot.readListEnd()
7171
        else:
7172
          iprot.skip(ftype)
7173
      elif fid == 1:
7174
        if ftype == TType.STRUCT:
7175
          self.ucx = UserCommunicationException()
7176
          self.ucx.read(iprot)
7177
        else:
7178
          iprot.skip(ftype)
7179
      else:
7180
        iprot.skip(ftype)
7181
      iprot.readFieldEnd()
7182
    iprot.readStructEnd()
7183
 
7184
  def write(self, oprot):
7185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7187
      return
7188
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7189
    if self.success is not None:
1590 varun.gupt 7190
      oprot.writeFieldBegin('success', TType.LIST, 0)
7191
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7192
      for iter71 in self.success:
7193
        iter71.write(oprot)
1590 varun.gupt 7194
      oprot.writeListEnd()
7195
      oprot.writeFieldEnd()
3431 rajveer 7196
    if self.ucx is not None:
1590 varun.gupt 7197
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7198
      self.ucx.write(oprot)
7199
      oprot.writeFieldEnd()
7200
    oprot.writeFieldStop()
7201
    oprot.writeStructEnd()
7202
 
3431 rajveer 7203
  def validate(self):
7204
    return
7205
 
7206
 
1590 varun.gupt 7207
  def __repr__(self):
7208
    L = ['%s=%r' % (key, value)
7209
      for key, value in self.__dict__.iteritems()]
7210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7211
 
7212
  def __eq__(self, other):
7213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7214
 
7215
  def __ne__(self, other):
7216
    return not (self == other)
7217
 
7218
class getAllUserCommunications_args:
7219
 
7220
  thrift_spec = (
7221
  )
7222
 
7223
  def read(self, iprot):
7224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7226
      return
7227
    iprot.readStructBegin()
7228
    while True:
7229
      (fname, ftype, fid) = iprot.readFieldBegin()
7230
      if ftype == TType.STOP:
7231
        break
7232
      else:
7233
        iprot.skip(ftype)
7234
      iprot.readFieldEnd()
7235
    iprot.readStructEnd()
7236
 
7237
  def write(self, oprot):
7238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7240
      return
7241
    oprot.writeStructBegin('getAllUserCommunications_args')
7242
    oprot.writeFieldStop()
7243
    oprot.writeStructEnd()
7244
 
3431 rajveer 7245
  def validate(self):
7246
    return
7247
 
7248
 
1590 varun.gupt 7249
  def __repr__(self):
7250
    L = ['%s=%r' % (key, value)
7251
      for key, value in self.__dict__.iteritems()]
7252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7253
 
7254
  def __eq__(self, other):
7255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7256
 
7257
  def __ne__(self, other):
7258
    return not (self == other)
7259
 
7260
class getAllUserCommunications_result:
7261
  """
7262
  Attributes:
7263
   - success
7264
   - ucx
7265
  """
7266
 
7267
  thrift_spec = (
7268
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7269
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7270
  )
7271
 
7272
  def __init__(self, success=None, ucx=None,):
7273
    self.success = success
7274
    self.ucx = ucx
7275
 
7276
  def read(self, iprot):
7277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7279
      return
7280
    iprot.readStructBegin()
7281
    while True:
7282
      (fname, ftype, fid) = iprot.readFieldBegin()
7283
      if ftype == TType.STOP:
7284
        break
7285
      if fid == 0:
7286
        if ftype == TType.LIST:
7287
          self.success = []
5326 rajveer 7288
          (_etype75, _size72) = iprot.readListBegin()
7289
          for _i76 in xrange(_size72):
7290
            _elem77 = UserCommunication()
7291
            _elem77.read(iprot)
7292
            self.success.append(_elem77)
1590 varun.gupt 7293
          iprot.readListEnd()
7294
        else:
7295
          iprot.skip(ftype)
7296
      elif fid == 1:
7297
        if ftype == TType.STRUCT:
7298
          self.ucx = UserCommunicationException()
7299
          self.ucx.read(iprot)
7300
        else:
7301
          iprot.skip(ftype)
7302
      else:
7303
        iprot.skip(ftype)
7304
      iprot.readFieldEnd()
7305
    iprot.readStructEnd()
7306
 
7307
  def write(self, oprot):
7308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7310
      return
7311
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7312
    if self.success is not None:
1590 varun.gupt 7313
      oprot.writeFieldBegin('success', TType.LIST, 0)
7314
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7315
      for iter78 in self.success:
7316
        iter78.write(oprot)
1590 varun.gupt 7317
      oprot.writeListEnd()
7318
      oprot.writeFieldEnd()
3431 rajveer 7319
    if self.ucx is not None:
1590 varun.gupt 7320
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7321
      self.ucx.write(oprot)
7322
      oprot.writeFieldEnd()
7323
    oprot.writeFieldStop()
7324
    oprot.writeStructEnd()
7325
 
3431 rajveer 7326
  def validate(self):
7327
    return
7328
 
7329
 
1590 varun.gupt 7330
  def __repr__(self):
7331
    L = ['%s=%r' % (key, value)
7332
      for key, value in self.__dict__.iteritems()]
7333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7334
 
7335
  def __eq__(self, other):
7336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7337
 
7338
  def __ne__(self, other):
7339
    return not (self == other)
7340
 
5407 amar.kumar 7341
class removeUserCommunication_args:
7342
  """
7343
  Attributes:
7344
   - id
7345
  """
7346
 
7347
  thrift_spec = (
7348
    None, # 0
7349
    (1, TType.I64, 'id', None, None, ), # 1
7350
  )
7351
 
7352
  def __init__(self, id=None,):
7353
    self.id = id
7354
 
7355
  def read(self, iprot):
7356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7358
      return
7359
    iprot.readStructBegin()
7360
    while True:
7361
      (fname, ftype, fid) = iprot.readFieldBegin()
7362
      if ftype == TType.STOP:
7363
        break
7364
      if fid == 1:
7365
        if ftype == TType.I64:
7366
          self.id = iprot.readI64();
7367
        else:
7368
          iprot.skip(ftype)
7369
      else:
7370
        iprot.skip(ftype)
7371
      iprot.readFieldEnd()
7372
    iprot.readStructEnd()
7373
 
7374
  def write(self, oprot):
7375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7377
      return
7378
    oprot.writeStructBegin('removeUserCommunication_args')
7379
    if self.id is not None:
7380
      oprot.writeFieldBegin('id', TType.I64, 1)
7381
      oprot.writeI64(self.id)
7382
      oprot.writeFieldEnd()
7383
    oprot.writeFieldStop()
7384
    oprot.writeStructEnd()
7385
 
7386
  def validate(self):
7387
    return
7388
 
7389
 
7390
  def __repr__(self):
7391
    L = ['%s=%r' % (key, value)
7392
      for key, value in self.__dict__.iteritems()]
7393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7394
 
7395
  def __eq__(self, other):
7396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7397
 
7398
  def __ne__(self, other):
7399
    return not (self == other)
7400
 
7401
class removeUserCommunication_result:
7402
  """
7403
  Attributes:
7404
   - ucx
7405
  """
7406
 
7407
  thrift_spec = (
7408
    None, # 0
7409
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7410
  )
7411
 
7412
  def __init__(self, ucx=None,):
7413
    self.ucx = ucx
7414
 
7415
  def read(self, iprot):
7416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7418
      return
7419
    iprot.readStructBegin()
7420
    while True:
7421
      (fname, ftype, fid) = iprot.readFieldBegin()
7422
      if ftype == TType.STOP:
7423
        break
7424
      if fid == 1:
7425
        if ftype == TType.STRUCT:
7426
          self.ucx = UserCommunicationException()
7427
          self.ucx.read(iprot)
7428
        else:
7429
          iprot.skip(ftype)
7430
      else:
7431
        iprot.skip(ftype)
7432
      iprot.readFieldEnd()
7433
    iprot.readStructEnd()
7434
 
7435
  def write(self, oprot):
7436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7438
      return
7439
    oprot.writeStructBegin('removeUserCommunication_result')
7440
    if self.ucx is not None:
7441
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7442
      self.ucx.write(oprot)
7443
      oprot.writeFieldEnd()
7444
    oprot.writeFieldStop()
7445
    oprot.writeStructEnd()
7446
 
7447
  def validate(self):
7448
    return
7449
 
7450
 
7451
  def __repr__(self):
7452
    L = ['%s=%r' % (key, value)
7453
      for key, value in self.__dict__.iteritems()]
7454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7455
 
7456
  def __eq__(self, other):
7457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7458
 
7459
  def __ne__(self, other):
7460
    return not (self == other)
7461
 
1845 vikas 7462
class createMasterAffiliate_args:
7463
  """
7464
  Attributes:
7465
   - name
1859 vikas 7466
   - addedOn
1845 vikas 7467
  """
7468
 
7469
  thrift_spec = (
7470
    None, # 0
7471
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7472
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7473
  )
7474
 
1859 vikas 7475
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7476
    self.name = name
1859 vikas 7477
    self.addedOn = addedOn
1845 vikas 7478
 
7479
  def read(self, iprot):
7480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7482
      return
7483
    iprot.readStructBegin()
7484
    while True:
7485
      (fname, ftype, fid) = iprot.readFieldBegin()
7486
      if ftype == TType.STOP:
7487
        break
7488
      if fid == 1:
7489
        if ftype == TType.STRING:
7490
          self.name = iprot.readString();
7491
        else:
7492
          iprot.skip(ftype)
1859 vikas 7493
      elif fid == 2:
7494
        if ftype == TType.I64:
7495
          self.addedOn = iprot.readI64();
7496
        else:
7497
          iprot.skip(ftype)
1845 vikas 7498
      else:
7499
        iprot.skip(ftype)
7500
      iprot.readFieldEnd()
7501
    iprot.readStructEnd()
7502
 
7503
  def write(self, oprot):
7504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7506
      return
7507
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7508
    if self.name is not None:
1845 vikas 7509
      oprot.writeFieldBegin('name', TType.STRING, 1)
7510
      oprot.writeString(self.name)
7511
      oprot.writeFieldEnd()
3431 rajveer 7512
    if self.addedOn is not None:
1859 vikas 7513
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7514
      oprot.writeI64(self.addedOn)
7515
      oprot.writeFieldEnd()
1845 vikas 7516
    oprot.writeFieldStop()
7517
    oprot.writeStructEnd()
7518
 
3431 rajveer 7519
  def validate(self):
7520
    return
7521
 
7522
 
1845 vikas 7523
  def __repr__(self):
7524
    L = ['%s=%r' % (key, value)
7525
      for key, value in self.__dict__.iteritems()]
7526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7527
 
7528
  def __eq__(self, other):
7529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7530
 
7531
  def __ne__(self, other):
7532
    return not (self == other)
7533
 
7534
class createMasterAffiliate_result:
7535
  """
7536
  Attributes:
7537
   - success
7538
   - utx
7539
  """
7540
 
7541
  thrift_spec = (
7542
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7543
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7544
  )
7545
 
7546
  def __init__(self, success=None, utx=None,):
7547
    self.success = success
7548
    self.utx = utx
7549
 
7550
  def read(self, iprot):
7551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7553
      return
7554
    iprot.readStructBegin()
7555
    while True:
7556
      (fname, ftype, fid) = iprot.readFieldBegin()
7557
      if ftype == TType.STOP:
7558
        break
7559
      if fid == 0:
7560
        if ftype == TType.STRUCT:
7561
          self.success = MasterAffiliate()
7562
          self.success.read(iprot)
7563
        else:
7564
          iprot.skip(ftype)
7565
      elif fid == 1:
7566
        if ftype == TType.STRUCT:
1996 vikas 7567
          self.utx = UserAffiliateException()
1845 vikas 7568
          self.utx.read(iprot)
7569
        else:
7570
          iprot.skip(ftype)
7571
      else:
7572
        iprot.skip(ftype)
7573
      iprot.readFieldEnd()
7574
    iprot.readStructEnd()
7575
 
7576
  def write(self, oprot):
7577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7579
      return
7580
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7581
    if self.success is not None:
1845 vikas 7582
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7583
      self.success.write(oprot)
7584
      oprot.writeFieldEnd()
3431 rajveer 7585
    if self.utx is not None:
1845 vikas 7586
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7587
      self.utx.write(oprot)
7588
      oprot.writeFieldEnd()
7589
    oprot.writeFieldStop()
7590
    oprot.writeStructEnd()
7591
 
3431 rajveer 7592
  def validate(self):
7593
    return
7594
 
7595
 
1845 vikas 7596
  def __repr__(self):
7597
    L = ['%s=%r' % (key, value)
7598
      for key, value in self.__dict__.iteritems()]
7599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7600
 
7601
  def __eq__(self, other):
7602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7603
 
7604
  def __ne__(self, other):
7605
    return not (self == other)
7606
 
1899 vikas 7607
class getAllMasterAffiliates_args:
7608
 
7609
  thrift_spec = (
7610
  )
7611
 
7612
  def read(self, iprot):
7613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7615
      return
7616
    iprot.readStructBegin()
7617
    while True:
7618
      (fname, ftype, fid) = iprot.readFieldBegin()
7619
      if ftype == TType.STOP:
7620
        break
7621
      else:
7622
        iprot.skip(ftype)
7623
      iprot.readFieldEnd()
7624
    iprot.readStructEnd()
7625
 
7626
  def write(self, oprot):
7627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7629
      return
7630
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7631
    oprot.writeFieldStop()
7632
    oprot.writeStructEnd()
7633
 
3431 rajveer 7634
  def validate(self):
7635
    return
7636
 
7637
 
1899 vikas 7638
  def __repr__(self):
7639
    L = ['%s=%r' % (key, value)
7640
      for key, value in self.__dict__.iteritems()]
7641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7642
 
7643
  def __eq__(self, other):
7644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7645
 
7646
  def __ne__(self, other):
7647
    return not (self == other)
7648
 
7649
class getAllMasterAffiliates_result:
7650
  """
7651
  Attributes:
7652
   - success
7653
   - utx
7654
  """
7655
 
7656
  thrift_spec = (
7657
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7658
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7659
  )
7660
 
7661
  def __init__(self, success=None, utx=None,):
7662
    self.success = success
7663
    self.utx = utx
7664
 
7665
  def read(self, iprot):
7666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7668
      return
7669
    iprot.readStructBegin()
7670
    while True:
7671
      (fname, ftype, fid) = iprot.readFieldBegin()
7672
      if ftype == TType.STOP:
7673
        break
7674
      if fid == 0:
7675
        if ftype == TType.LIST:
7676
          self.success = []
5326 rajveer 7677
          (_etype82, _size79) = iprot.readListBegin()
7678
          for _i83 in xrange(_size79):
7679
            _elem84 = MasterAffiliate()
7680
            _elem84.read(iprot)
7681
            self.success.append(_elem84)
1899 vikas 7682
          iprot.readListEnd()
7683
        else:
7684
          iprot.skip(ftype)
7685
      elif fid == 1:
7686
        if ftype == TType.STRUCT:
1996 vikas 7687
          self.utx = UserAffiliateException()
1899 vikas 7688
          self.utx.read(iprot)
7689
        else:
7690
          iprot.skip(ftype)
7691
      else:
7692
        iprot.skip(ftype)
7693
      iprot.readFieldEnd()
7694
    iprot.readStructEnd()
7695
 
7696
  def write(self, oprot):
7697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7699
      return
7700
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7701
    if self.success is not None:
1899 vikas 7702
      oprot.writeFieldBegin('success', TType.LIST, 0)
7703
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7704
      for iter85 in self.success:
7705
        iter85.write(oprot)
1899 vikas 7706
      oprot.writeListEnd()
7707
      oprot.writeFieldEnd()
3431 rajveer 7708
    if self.utx is not None:
1899 vikas 7709
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7710
      self.utx.write(oprot)
7711
      oprot.writeFieldEnd()
7712
    oprot.writeFieldStop()
7713
    oprot.writeStructEnd()
7714
 
3431 rajveer 7715
  def validate(self):
7716
    return
7717
 
7718
 
1899 vikas 7719
  def __repr__(self):
7720
    L = ['%s=%r' % (key, value)
7721
      for key, value in self.__dict__.iteritems()]
7722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7723
 
7724
  def __eq__(self, other):
7725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7726
 
7727
  def __ne__(self, other):
7728
    return not (self == other)
7729
 
1845 vikas 7730
class getMasterAffiliateById_args:
7731
  """
7732
  Attributes:
7733
   - id
7734
  """
7735
 
7736
  thrift_spec = (
7737
    None, # 0
7738
    (1, TType.I64, 'id', None, None, ), # 1
7739
  )
7740
 
7741
  def __init__(self, id=None,):
7742
    self.id = id
7743
 
7744
  def read(self, iprot):
7745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7747
      return
7748
    iprot.readStructBegin()
7749
    while True:
7750
      (fname, ftype, fid) = iprot.readFieldBegin()
7751
      if ftype == TType.STOP:
7752
        break
7753
      if fid == 1:
7754
        if ftype == TType.I64:
7755
          self.id = iprot.readI64();
7756
        else:
7757
          iprot.skip(ftype)
7758
      else:
7759
        iprot.skip(ftype)
7760
      iprot.readFieldEnd()
7761
    iprot.readStructEnd()
7762
 
7763
  def write(self, oprot):
7764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7766
      return
7767
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7768
    if self.id is not None:
1845 vikas 7769
      oprot.writeFieldBegin('id', TType.I64, 1)
7770
      oprot.writeI64(self.id)
7771
      oprot.writeFieldEnd()
7772
    oprot.writeFieldStop()
7773
    oprot.writeStructEnd()
7774
 
3431 rajveer 7775
  def validate(self):
7776
    return
7777
 
7778
 
1845 vikas 7779
  def __repr__(self):
7780
    L = ['%s=%r' % (key, value)
7781
      for key, value in self.__dict__.iteritems()]
7782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7783
 
7784
  def __eq__(self, other):
7785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7786
 
7787
  def __ne__(self, other):
7788
    return not (self == other)
7789
 
7790
class getMasterAffiliateById_result:
7791
  """
7792
  Attributes:
7793
   - success
7794
   - utx
7795
  """
7796
 
7797
  thrift_spec = (
7798
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7799
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7800
  )
7801
 
7802
  def __init__(self, success=None, utx=None,):
7803
    self.success = success
7804
    self.utx = utx
7805
 
7806
  def read(self, iprot):
7807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7809
      return
7810
    iprot.readStructBegin()
7811
    while True:
7812
      (fname, ftype, fid) = iprot.readFieldBegin()
7813
      if ftype == TType.STOP:
7814
        break
7815
      if fid == 0:
7816
        if ftype == TType.STRUCT:
7817
          self.success = MasterAffiliate()
7818
          self.success.read(iprot)
7819
        else:
7820
          iprot.skip(ftype)
7821
      elif fid == 1:
7822
        if ftype == TType.STRUCT:
1996 vikas 7823
          self.utx = UserAffiliateException()
1845 vikas 7824
          self.utx.read(iprot)
7825
        else:
7826
          iprot.skip(ftype)
7827
      else:
7828
        iprot.skip(ftype)
7829
      iprot.readFieldEnd()
7830
    iprot.readStructEnd()
7831
 
7832
  def write(self, oprot):
7833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7835
      return
7836
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7837
    if self.success is not None:
1845 vikas 7838
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7839
      self.success.write(oprot)
7840
      oprot.writeFieldEnd()
3431 rajveer 7841
    if self.utx is not None:
1845 vikas 7842
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7843
      self.utx.write(oprot)
7844
      oprot.writeFieldEnd()
7845
    oprot.writeFieldStop()
7846
    oprot.writeStructEnd()
7847
 
3431 rajveer 7848
  def validate(self):
7849
    return
7850
 
7851
 
1845 vikas 7852
  def __repr__(self):
7853
    L = ['%s=%r' % (key, value)
7854
      for key, value in self.__dict__.iteritems()]
7855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7856
 
7857
  def __eq__(self, other):
7858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7859
 
7860
  def __ne__(self, other):
7861
    return not (self == other)
7862
 
7863
class getMasterAffiliateByName_args:
7864
  """
7865
  Attributes:
7866
   - name
7867
  """
7868
 
7869
  thrift_spec = (
7870
    None, # 0
7871
    (1, TType.STRING, 'name', None, None, ), # 1
7872
  )
7873
 
7874
  def __init__(self, name=None,):
7875
    self.name = name
7876
 
7877
  def read(self, iprot):
7878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7880
      return
7881
    iprot.readStructBegin()
7882
    while True:
7883
      (fname, ftype, fid) = iprot.readFieldBegin()
7884
      if ftype == TType.STOP:
7885
        break
7886
      if fid == 1:
7887
        if ftype == TType.STRING:
7888
          self.name = iprot.readString();
7889
        else:
7890
          iprot.skip(ftype)
7891
      else:
7892
        iprot.skip(ftype)
7893
      iprot.readFieldEnd()
7894
    iprot.readStructEnd()
7895
 
7896
  def write(self, oprot):
7897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7899
      return
7900
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7901
    if self.name is not None:
1845 vikas 7902
      oprot.writeFieldBegin('name', TType.STRING, 1)
7903
      oprot.writeString(self.name)
7904
      oprot.writeFieldEnd()
7905
    oprot.writeFieldStop()
7906
    oprot.writeStructEnd()
7907
 
3431 rajveer 7908
  def validate(self):
7909
    return
7910
 
7911
 
1845 vikas 7912
  def __repr__(self):
7913
    L = ['%s=%r' % (key, value)
7914
      for key, value in self.__dict__.iteritems()]
7915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7916
 
7917
  def __eq__(self, other):
7918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7919
 
7920
  def __ne__(self, other):
7921
    return not (self == other)
7922
 
7923
class getMasterAffiliateByName_result:
7924
  """
7925
  Attributes:
7926
   - success
7927
   - utx
7928
  """
7929
 
7930
  thrift_spec = (
7931
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7932
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7933
  )
7934
 
7935
  def __init__(self, success=None, utx=None,):
7936
    self.success = success
7937
    self.utx = utx
7938
 
7939
  def read(self, iprot):
7940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7942
      return
7943
    iprot.readStructBegin()
7944
    while True:
7945
      (fname, ftype, fid) = iprot.readFieldBegin()
7946
      if ftype == TType.STOP:
7947
        break
7948
      if fid == 0:
7949
        if ftype == TType.STRUCT:
7950
          self.success = MasterAffiliate()
7951
          self.success.read(iprot)
7952
        else:
7953
          iprot.skip(ftype)
7954
      elif fid == 1:
7955
        if ftype == TType.STRUCT:
1996 vikas 7956
          self.utx = UserAffiliateException()
1845 vikas 7957
          self.utx.read(iprot)
7958
        else:
7959
          iprot.skip(ftype)
7960
      else:
7961
        iprot.skip(ftype)
7962
      iprot.readFieldEnd()
7963
    iprot.readStructEnd()
7964
 
7965
  def write(self, oprot):
7966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7968
      return
7969
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7970
    if self.success is not None:
1845 vikas 7971
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7972
      self.success.write(oprot)
7973
      oprot.writeFieldEnd()
3431 rajveer 7974
    if self.utx is not None:
1845 vikas 7975
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7976
      self.utx.write(oprot)
7977
      oprot.writeFieldEnd()
7978
    oprot.writeFieldStop()
7979
    oprot.writeStructEnd()
7980
 
3431 rajveer 7981
  def validate(self):
7982
    return
7983
 
7984
 
1845 vikas 7985
  def __repr__(self):
7986
    L = ['%s=%r' % (key, value)
7987
      for key, value in self.__dict__.iteritems()]
7988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7989
 
7990
  def __eq__(self, other):
7991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7992
 
7993
  def __ne__(self, other):
7994
    return not (self == other)
7995
 
7996
class createAffiliate_args:
7997
  """
7998
  Attributes:
7999
   - name
8000
   - url
8001
   - masterAffiliateId
1859 vikas 8002
   - addedOn
1845 vikas 8003
  """
8004
 
8005
  thrift_spec = (
8006
    None, # 0
8007
    (1, TType.STRING, 'name', None, None, ), # 1
8008
    (2, TType.STRING, 'url', None, None, ), # 2
8009
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8010
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8011
  )
8012
 
1859 vikas 8013
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8014
    self.name = name
8015
    self.url = url
8016
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8017
    self.addedOn = addedOn
1845 vikas 8018
 
8019
  def read(self, iprot):
8020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8022
      return
8023
    iprot.readStructBegin()
8024
    while True:
8025
      (fname, ftype, fid) = iprot.readFieldBegin()
8026
      if ftype == TType.STOP:
8027
        break
8028
      if fid == 1:
8029
        if ftype == TType.STRING:
8030
          self.name = iprot.readString();
8031
        else:
8032
          iprot.skip(ftype)
8033
      elif fid == 2:
8034
        if ftype == TType.STRING:
8035
          self.url = iprot.readString();
8036
        else:
8037
          iprot.skip(ftype)
8038
      elif fid == 3:
8039
        if ftype == TType.I64:
8040
          self.masterAffiliateId = iprot.readI64();
8041
        else:
8042
          iprot.skip(ftype)
1859 vikas 8043
      elif fid == 4:
8044
        if ftype == TType.I64:
8045
          self.addedOn = iprot.readI64();
8046
        else:
8047
          iprot.skip(ftype)
1845 vikas 8048
      else:
8049
        iprot.skip(ftype)
8050
      iprot.readFieldEnd()
8051
    iprot.readStructEnd()
8052
 
8053
  def write(self, oprot):
8054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8056
      return
8057
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8058
    if self.name is not None:
1845 vikas 8059
      oprot.writeFieldBegin('name', TType.STRING, 1)
8060
      oprot.writeString(self.name)
8061
      oprot.writeFieldEnd()
3431 rajveer 8062
    if self.url is not None:
1845 vikas 8063
      oprot.writeFieldBegin('url', TType.STRING, 2)
8064
      oprot.writeString(self.url)
8065
      oprot.writeFieldEnd()
3431 rajveer 8066
    if self.masterAffiliateId is not None:
1845 vikas 8067
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8068
      oprot.writeI64(self.masterAffiliateId)
8069
      oprot.writeFieldEnd()
3431 rajveer 8070
    if self.addedOn is not None:
1859 vikas 8071
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8072
      oprot.writeI64(self.addedOn)
8073
      oprot.writeFieldEnd()
1845 vikas 8074
    oprot.writeFieldStop()
8075
    oprot.writeStructEnd()
8076
 
3431 rajveer 8077
  def validate(self):
8078
    return
8079
 
8080
 
1845 vikas 8081
  def __repr__(self):
8082
    L = ['%s=%r' % (key, value)
8083
      for key, value in self.__dict__.iteritems()]
8084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8085
 
8086
  def __eq__(self, other):
8087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8088
 
8089
  def __ne__(self, other):
8090
    return not (self == other)
8091
 
8092
class createAffiliate_result:
8093
  """
8094
  Attributes:
8095
   - success
8096
   - utx
8097
  """
8098
 
8099
  thrift_spec = (
8100
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8101
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8102
  )
8103
 
8104
  def __init__(self, success=None, utx=None,):
8105
    self.success = success
8106
    self.utx = utx
8107
 
8108
  def read(self, iprot):
8109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8111
      return
8112
    iprot.readStructBegin()
8113
    while True:
8114
      (fname, ftype, fid) = iprot.readFieldBegin()
8115
      if ftype == TType.STOP:
8116
        break
8117
      if fid == 0:
8118
        if ftype == TType.STRUCT:
8119
          self.success = Affiliate()
8120
          self.success.read(iprot)
8121
        else:
8122
          iprot.skip(ftype)
8123
      elif fid == 1:
8124
        if ftype == TType.STRUCT:
1996 vikas 8125
          self.utx = UserAffiliateException()
1845 vikas 8126
          self.utx.read(iprot)
8127
        else:
8128
          iprot.skip(ftype)
8129
      else:
8130
        iprot.skip(ftype)
8131
      iprot.readFieldEnd()
8132
    iprot.readStructEnd()
8133
 
8134
  def write(self, oprot):
8135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8137
      return
8138
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8139
    if self.success is not None:
1845 vikas 8140
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8141
      self.success.write(oprot)
8142
      oprot.writeFieldEnd()
3431 rajveer 8143
    if self.utx is not None:
1845 vikas 8144
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8145
      self.utx.write(oprot)
8146
      oprot.writeFieldEnd()
8147
    oprot.writeFieldStop()
8148
    oprot.writeStructEnd()
8149
 
3431 rajveer 8150
  def validate(self):
8151
    return
8152
 
8153
 
1845 vikas 8154
  def __repr__(self):
8155
    L = ['%s=%r' % (key, value)
8156
      for key, value in self.__dict__.iteritems()]
8157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8158
 
8159
  def __eq__(self, other):
8160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8161
 
8162
  def __ne__(self, other):
8163
    return not (self == other)
8164
 
8165
class getAffiliateById_args:
8166
  """
8167
  Attributes:
8168
   - id
8169
  """
8170
 
8171
  thrift_spec = (
8172
    None, # 0
8173
    (1, TType.I64, 'id', None, None, ), # 1
8174
  )
8175
 
8176
  def __init__(self, id=None,):
8177
    self.id = id
8178
 
8179
  def read(self, iprot):
8180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8182
      return
8183
    iprot.readStructBegin()
8184
    while True:
8185
      (fname, ftype, fid) = iprot.readFieldBegin()
8186
      if ftype == TType.STOP:
8187
        break
8188
      if fid == 1:
8189
        if ftype == TType.I64:
8190
          self.id = iprot.readI64();
8191
        else:
8192
          iprot.skip(ftype)
8193
      else:
8194
        iprot.skip(ftype)
8195
      iprot.readFieldEnd()
8196
    iprot.readStructEnd()
8197
 
8198
  def write(self, oprot):
8199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8201
      return
8202
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8203
    if self.id is not None:
1845 vikas 8204
      oprot.writeFieldBegin('id', TType.I64, 1)
8205
      oprot.writeI64(self.id)
8206
      oprot.writeFieldEnd()
8207
    oprot.writeFieldStop()
8208
    oprot.writeStructEnd()
8209
 
3431 rajveer 8210
  def validate(self):
8211
    return
8212
 
8213
 
1845 vikas 8214
  def __repr__(self):
8215
    L = ['%s=%r' % (key, value)
8216
      for key, value in self.__dict__.iteritems()]
8217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8218
 
8219
  def __eq__(self, other):
8220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8221
 
8222
  def __ne__(self, other):
8223
    return not (self == other)
8224
 
8225
class getAffiliateById_result:
8226
  """
8227
  Attributes:
8228
   - success
8229
   - utx
8230
  """
8231
 
8232
  thrift_spec = (
8233
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8234
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8235
  )
8236
 
8237
  def __init__(self, success=None, utx=None,):
8238
    self.success = success
8239
    self.utx = utx
8240
 
8241
  def read(self, iprot):
8242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8244
      return
8245
    iprot.readStructBegin()
8246
    while True:
8247
      (fname, ftype, fid) = iprot.readFieldBegin()
8248
      if ftype == TType.STOP:
8249
        break
8250
      if fid == 0:
8251
        if ftype == TType.STRUCT:
8252
          self.success = Affiliate()
8253
          self.success.read(iprot)
8254
        else:
8255
          iprot.skip(ftype)
8256
      elif fid == 1:
8257
        if ftype == TType.STRUCT:
1996 vikas 8258
          self.utx = UserAffiliateException()
1845 vikas 8259
          self.utx.read(iprot)
8260
        else:
8261
          iprot.skip(ftype)
8262
      else:
8263
        iprot.skip(ftype)
8264
      iprot.readFieldEnd()
8265
    iprot.readStructEnd()
8266
 
8267
  def write(self, oprot):
8268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8270
      return
8271
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8272
    if self.success is not None:
1845 vikas 8273
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8274
      self.success.write(oprot)
8275
      oprot.writeFieldEnd()
3431 rajveer 8276
    if self.utx is not None:
1845 vikas 8277
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8278
      self.utx.write(oprot)
8279
      oprot.writeFieldEnd()
8280
    oprot.writeFieldStop()
8281
    oprot.writeStructEnd()
8282
 
3431 rajveer 8283
  def validate(self):
8284
    return
8285
 
8286
 
1845 vikas 8287
  def __repr__(self):
8288
    L = ['%s=%r' % (key, value)
8289
      for key, value in self.__dict__.iteritems()]
8290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8291
 
8292
  def __eq__(self, other):
8293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8294
 
8295
  def __ne__(self, other):
8296
    return not (self == other)
8297
 
8298
class getAffiliateByName_args:
8299
  """
8300
  Attributes:
8301
   - name
8302
  """
8303
 
8304
  thrift_spec = (
8305
    None, # 0
8306
    (1, TType.STRING, 'name', None, None, ), # 1
8307
  )
8308
 
8309
  def __init__(self, name=None,):
8310
    self.name = name
8311
 
8312
  def read(self, iprot):
8313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8315
      return
8316
    iprot.readStructBegin()
8317
    while True:
8318
      (fname, ftype, fid) = iprot.readFieldBegin()
8319
      if ftype == TType.STOP:
8320
        break
8321
      if fid == 1:
8322
        if ftype == TType.STRING:
8323
          self.name = iprot.readString();
8324
        else:
8325
          iprot.skip(ftype)
8326
      else:
8327
        iprot.skip(ftype)
8328
      iprot.readFieldEnd()
8329
    iprot.readStructEnd()
8330
 
8331
  def write(self, oprot):
8332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8334
      return
8335
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8336
    if self.name is not None:
1845 vikas 8337
      oprot.writeFieldBegin('name', TType.STRING, 1)
8338
      oprot.writeString(self.name)
8339
      oprot.writeFieldEnd()
8340
    oprot.writeFieldStop()
8341
    oprot.writeStructEnd()
8342
 
3431 rajveer 8343
  def validate(self):
8344
    return
8345
 
8346
 
1845 vikas 8347
  def __repr__(self):
8348
    L = ['%s=%r' % (key, value)
8349
      for key, value in self.__dict__.iteritems()]
8350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8351
 
8352
  def __eq__(self, other):
8353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8354
 
8355
  def __ne__(self, other):
8356
    return not (self == other)
8357
 
8358
class getAffiliateByName_result:
8359
  """
8360
  Attributes:
8361
   - success
8362
   - utx
8363
  """
8364
 
8365
  thrift_spec = (
8366
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8367
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8368
  )
8369
 
8370
  def __init__(self, success=None, utx=None,):
8371
    self.success = success
8372
    self.utx = utx
8373
 
8374
  def read(self, iprot):
8375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8377
      return
8378
    iprot.readStructBegin()
8379
    while True:
8380
      (fname, ftype, fid) = iprot.readFieldBegin()
8381
      if ftype == TType.STOP:
8382
        break
8383
      if fid == 0:
8384
        if ftype == TType.STRUCT:
8385
          self.success = Affiliate()
8386
          self.success.read(iprot)
8387
        else:
8388
          iprot.skip(ftype)
8389
      elif fid == 1:
8390
        if ftype == TType.STRUCT:
1996 vikas 8391
          self.utx = UserAffiliateException()
1845 vikas 8392
          self.utx.read(iprot)
8393
        else:
8394
          iprot.skip(ftype)
8395
      else:
8396
        iprot.skip(ftype)
8397
      iprot.readFieldEnd()
8398
    iprot.readStructEnd()
8399
 
8400
  def write(self, oprot):
8401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8403
      return
8404
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8405
    if self.success is not None:
1845 vikas 8406
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8407
      self.success.write(oprot)
8408
      oprot.writeFieldEnd()
3431 rajveer 8409
    if self.utx is not None:
1845 vikas 8410
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8411
      self.utx.write(oprot)
8412
      oprot.writeFieldEnd()
8413
    oprot.writeFieldStop()
8414
    oprot.writeStructEnd()
8415
 
3431 rajveer 8416
  def validate(self):
8417
    return
8418
 
8419
 
1845 vikas 8420
  def __repr__(self):
8421
    L = ['%s=%r' % (key, value)
8422
      for key, value in self.__dict__.iteritems()]
8423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8424
 
8425
  def __eq__(self, other):
8426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8427
 
8428
  def __ne__(self, other):
8429
    return not (self == other)
8430
 
1996 vikas 8431
class getTrackerById_args:
1845 vikas 8432
  """
8433
  Attributes:
8434
   - id
8435
  """
8436
 
8437
  thrift_spec = (
8438
    None, # 0
8439
    (1, TType.I64, 'id', None, None, ), # 1
8440
  )
8441
 
8442
  def __init__(self, id=None,):
8443
    self.id = id
8444
 
8445
  def read(self, iprot):
8446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8448
      return
8449
    iprot.readStructBegin()
8450
    while True:
8451
      (fname, ftype, fid) = iprot.readFieldBegin()
8452
      if ftype == TType.STOP:
8453
        break
8454
      if fid == 1:
8455
        if ftype == TType.I64:
8456
          self.id = iprot.readI64();
8457
        else:
8458
          iprot.skip(ftype)
8459
      else:
8460
        iprot.skip(ftype)
8461
      iprot.readFieldEnd()
8462
    iprot.readStructEnd()
8463
 
8464
  def write(self, oprot):
8465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8467
      return
1996 vikas 8468
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8469
    if self.id is not None:
1845 vikas 8470
      oprot.writeFieldBegin('id', TType.I64, 1)
8471
      oprot.writeI64(self.id)
8472
      oprot.writeFieldEnd()
8473
    oprot.writeFieldStop()
8474
    oprot.writeStructEnd()
8475
 
3431 rajveer 8476
  def validate(self):
8477
    return
8478
 
8479
 
1845 vikas 8480
  def __repr__(self):
8481
    L = ['%s=%r' % (key, value)
8482
      for key, value in self.__dict__.iteritems()]
8483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8484
 
8485
  def __eq__(self, other):
8486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8487
 
8488
  def __ne__(self, other):
8489
    return not (self == other)
8490
 
8491
class getTrackerById_result:
8492
  """
8493
  Attributes:
8494
   - success
8495
   - utx
8496
  """
8497
 
8498
  thrift_spec = (
8499
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8500
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8501
  )
8502
 
8503
  def __init__(self, success=None, utx=None,):
8504
    self.success = success
8505
    self.utx = utx
8506
 
8507
  def read(self, iprot):
8508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8510
      return
8511
    iprot.readStructBegin()
8512
    while True:
8513
      (fname, ftype, fid) = iprot.readFieldBegin()
8514
      if ftype == TType.STOP:
8515
        break
8516
      if fid == 0:
8517
        if ftype == TType.STRUCT:
8518
          self.success = Tracker()
8519
          self.success.read(iprot)
8520
        else:
8521
          iprot.skip(ftype)
8522
      elif fid == 1:
8523
        if ftype == TType.STRUCT:
1996 vikas 8524
          self.utx = UserAffiliateException()
1845 vikas 8525
          self.utx.read(iprot)
8526
        else:
8527
          iprot.skip(ftype)
8528
      else:
8529
        iprot.skip(ftype)
8530
      iprot.readFieldEnd()
8531
    iprot.readStructEnd()
8532
 
8533
  def write(self, oprot):
8534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8536
      return
8537
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8538
    if self.success is not None:
1845 vikas 8539
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8540
      self.success.write(oprot)
8541
      oprot.writeFieldEnd()
3431 rajveer 8542
    if self.utx is not None:
1845 vikas 8543
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8544
      self.utx.write(oprot)
8545
      oprot.writeFieldEnd()
8546
    oprot.writeFieldStop()
8547
    oprot.writeStructEnd()
8548
 
3431 rajveer 8549
  def validate(self):
8550
    return
8551
 
8552
 
1845 vikas 8553
  def __repr__(self):
8554
    L = ['%s=%r' % (key, value)
8555
      for key, value in self.__dict__.iteritems()]
8556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8557
 
8558
  def __eq__(self, other):
8559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8560
 
8561
  def __ne__(self, other):
8562
    return not (self == other)
8563
 
1996 vikas 8564
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8565
  """
8566
  Attributes:
1996 vikas 8567
   - id
1845 vikas 8568
  """
8569
 
8570
  thrift_spec = (
8571
    None, # 0
1996 vikas 8572
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8573
  )
8574
 
1996 vikas 8575
  def __init__(self, id=None,):
8576
    self.id = id
1845 vikas 8577
 
8578
  def read(self, iprot):
8579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8581
      return
8582
    iprot.readStructBegin()
8583
    while True:
8584
      (fname, ftype, fid) = iprot.readFieldBegin()
8585
      if ftype == TType.STOP:
8586
        break
8587
      if fid == 1:
8588
        if ftype == TType.I64:
1996 vikas 8589
          self.id = iprot.readI64();
1845 vikas 8590
        else:
8591
          iprot.skip(ftype)
8592
      else:
8593
        iprot.skip(ftype)
8594
      iprot.readFieldEnd()
8595
    iprot.readStructEnd()
8596
 
8597
  def write(self, oprot):
8598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8600
      return
1996 vikas 8601
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8602
    if self.id is not None:
1996 vikas 8603
      oprot.writeFieldBegin('id', TType.I64, 1)
8604
      oprot.writeI64(self.id)
1845 vikas 8605
      oprot.writeFieldEnd()
8606
    oprot.writeFieldStop()
8607
    oprot.writeStructEnd()
8608
 
3431 rajveer 8609
  def validate(self):
8610
    return
8611
 
8612
 
1845 vikas 8613
  def __repr__(self):
8614
    L = ['%s=%r' % (key, value)
8615
      for key, value in self.__dict__.iteritems()]
8616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8617
 
8618
  def __eq__(self, other):
8619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8620
 
8621
  def __ne__(self, other):
8622
    return not (self == other)
8623
 
1996 vikas 8624
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8625
  """
8626
  Attributes:
8627
   - success
8628
   - utx
8629
  """
8630
 
8631
  thrift_spec = (
1996 vikas 8632
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8633
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8634
  )
8635
 
8636
  def __init__(self, success=None, utx=None,):
8637
    self.success = success
8638
    self.utx = utx
8639
 
8640
  def read(self, iprot):
8641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8643
      return
8644
    iprot.readStructBegin()
8645
    while True:
8646
      (fname, ftype, fid) = iprot.readFieldBegin()
8647
      if ftype == TType.STOP:
8648
        break
8649
      if fid == 0:
8650
        if ftype == TType.LIST:
8651
          self.success = []
5326 rajveer 8652
          (_etype89, _size86) = iprot.readListBegin()
8653
          for _i90 in xrange(_size86):
8654
            _elem91 = Affiliate()
8655
            _elem91.read(iprot)
8656
            self.success.append(_elem91)
1845 vikas 8657
          iprot.readListEnd()
8658
        else:
8659
          iprot.skip(ftype)
8660
      elif fid == 1:
8661
        if ftype == TType.STRUCT:
1996 vikas 8662
          self.utx = UserAffiliateException()
1845 vikas 8663
          self.utx.read(iprot)
8664
        else:
8665
          iprot.skip(ftype)
8666
      else:
8667
        iprot.skip(ftype)
8668
      iprot.readFieldEnd()
8669
    iprot.readStructEnd()
8670
 
8671
  def write(self, oprot):
8672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8674
      return
1996 vikas 8675
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8676
    if self.success is not None:
1845 vikas 8677
      oprot.writeFieldBegin('success', TType.LIST, 0)
8678
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8679
      for iter92 in self.success:
8680
        iter92.write(oprot)
1845 vikas 8681
      oprot.writeListEnd()
8682
      oprot.writeFieldEnd()
3431 rajveer 8683
    if self.utx is not None:
1845 vikas 8684
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8685
      self.utx.write(oprot)
8686
      oprot.writeFieldEnd()
8687
    oprot.writeFieldStop()
8688
    oprot.writeStructEnd()
8689
 
3431 rajveer 8690
  def validate(self):
8691
    return
8692
 
8693
 
1845 vikas 8694
  def __repr__(self):
8695
    L = ['%s=%r' % (key, value)
8696
      for key, value in self.__dict__.iteritems()]
8697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8698
 
8699
  def __eq__(self, other):
8700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8701
 
8702
  def __ne__(self, other):
8703
    return not (self == other)
8704
 
8705
class addTrackLog_args:
8706
  """
8707
  Attributes:
1996 vikas 8708
   - affiliateId
1845 vikas 8709
   - userId
8710
   - event
8711
   - url
8712
   - data
1859 vikas 8713
   - addedOn
1845 vikas 8714
  """
8715
 
8716
  thrift_spec = (
8717
    None, # 0
1996 vikas 8718
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8719
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8720
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8721
    (4, TType.STRING, 'url', None, None, ), # 4
8722
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8723
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8724
  )
8725
 
1996 vikas 8726
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8727
    self.affiliateId = affiliateId
1845 vikas 8728
    self.userId = userId
8729
    self.event = event
8730
    self.url = url
8731
    self.data = data
1859 vikas 8732
    self.addedOn = addedOn
1845 vikas 8733
 
8734
  def read(self, iprot):
8735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8737
      return
8738
    iprot.readStructBegin()
8739
    while True:
8740
      (fname, ftype, fid) = iprot.readFieldBegin()
8741
      if ftype == TType.STOP:
8742
        break
8743
      if fid == 1:
8744
        if ftype == TType.I64:
1996 vikas 8745
          self.affiliateId = iprot.readI64();
1845 vikas 8746
        else:
8747
          iprot.skip(ftype)
8748
      elif fid == 2:
8749
        if ftype == TType.I64:
8750
          self.userId = iprot.readI64();
8751
        else:
8752
          iprot.skip(ftype)
8753
      elif fid == 3:
3378 vikas 8754
        if ftype == TType.I32:
8755
          self.event = iprot.readI32();
1845 vikas 8756
        else:
8757
          iprot.skip(ftype)
8758
      elif fid == 4:
8759
        if ftype == TType.STRING:
8760
          self.url = iprot.readString();
8761
        else:
8762
          iprot.skip(ftype)
8763
      elif fid == 5:
8764
        if ftype == TType.STRING:
8765
          self.data = iprot.readString();
8766
        else:
8767
          iprot.skip(ftype)
1859 vikas 8768
      elif fid == 6:
8769
        if ftype == TType.I64:
8770
          self.addedOn = iprot.readI64();
8771
        else:
8772
          iprot.skip(ftype)
1845 vikas 8773
      else:
8774
        iprot.skip(ftype)
8775
      iprot.readFieldEnd()
8776
    iprot.readStructEnd()
8777
 
8778
  def write(self, oprot):
8779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8781
      return
8782
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8783
    if self.affiliateId is not None:
1996 vikas 8784
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8785
      oprot.writeI64(self.affiliateId)
1845 vikas 8786
      oprot.writeFieldEnd()
3431 rajveer 8787
    if self.userId is not None:
1845 vikas 8788
      oprot.writeFieldBegin('userId', TType.I64, 2)
8789
      oprot.writeI64(self.userId)
8790
      oprot.writeFieldEnd()
3431 rajveer 8791
    if self.event is not None:
3378 vikas 8792
      oprot.writeFieldBegin('event', TType.I32, 3)
8793
      oprot.writeI32(self.event)
1845 vikas 8794
      oprot.writeFieldEnd()
3431 rajveer 8795
    if self.url is not None:
1845 vikas 8796
      oprot.writeFieldBegin('url', TType.STRING, 4)
8797
      oprot.writeString(self.url)
8798
      oprot.writeFieldEnd()
3431 rajveer 8799
    if self.data is not None:
1845 vikas 8800
      oprot.writeFieldBegin('data', TType.STRING, 5)
8801
      oprot.writeString(self.data)
8802
      oprot.writeFieldEnd()
3431 rajveer 8803
    if self.addedOn is not None:
1859 vikas 8804
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8805
      oprot.writeI64(self.addedOn)
8806
      oprot.writeFieldEnd()
1845 vikas 8807
    oprot.writeFieldStop()
8808
    oprot.writeStructEnd()
8809
 
3431 rajveer 8810
  def validate(self):
8811
    return
8812
 
8813
 
1845 vikas 8814
  def __repr__(self):
8815
    L = ['%s=%r' % (key, value)
8816
      for key, value in self.__dict__.iteritems()]
8817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8818
 
8819
  def __eq__(self, other):
8820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8821
 
8822
  def __ne__(self, other):
8823
    return not (self == other)
8824
 
8825
class addTrackLog_result:
8826
  """
8827
  Attributes:
8828
   - success
8829
   - utx
8830
  """
8831
 
8832
  thrift_spec = (
8833
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8834
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8835
  )
8836
 
8837
  def __init__(self, success=None, utx=None,):
8838
    self.success = success
8839
    self.utx = utx
8840
 
8841
  def read(self, iprot):
8842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8844
      return
8845
    iprot.readStructBegin()
8846
    while True:
8847
      (fname, ftype, fid) = iprot.readFieldBegin()
8848
      if ftype == TType.STOP:
8849
        break
8850
      if fid == 0:
8851
        if ftype == TType.I64:
8852
          self.success = iprot.readI64();
8853
        else:
8854
          iprot.skip(ftype)
8855
      elif fid == 1:
8856
        if ftype == TType.STRUCT:
1996 vikas 8857
          self.utx = UserAffiliateException()
1845 vikas 8858
          self.utx.read(iprot)
8859
        else:
8860
          iprot.skip(ftype)
8861
      else:
8862
        iprot.skip(ftype)
8863
      iprot.readFieldEnd()
8864
    iprot.readStructEnd()
8865
 
8866
  def write(self, oprot):
8867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8869
      return
8870
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8871
    if self.success is not None:
1845 vikas 8872
      oprot.writeFieldBegin('success', TType.I64, 0)
8873
      oprot.writeI64(self.success)
8874
      oprot.writeFieldEnd()
3431 rajveer 8875
    if self.utx is not None:
1845 vikas 8876
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8877
      self.utx.write(oprot)
8878
      oprot.writeFieldEnd()
8879
    oprot.writeFieldStop()
8880
    oprot.writeStructEnd()
8881
 
3431 rajveer 8882
  def validate(self):
8883
    return
8884
 
8885
 
1845 vikas 8886
  def __repr__(self):
8887
    L = ['%s=%r' % (key, value)
8888
      for key, value in self.__dict__.iteritems()]
8889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8890
 
8891
  def __eq__(self, other):
8892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8893
 
8894
  def __ne__(self, other):
8895
    return not (self == other)
8896
 
8897
class getTrackLogById_args:
8898
  """
8899
  Attributes:
8900
   - id
8901
  """
8902
 
8903
  thrift_spec = (
8904
    None, # 0
8905
    (1, TType.I64, 'id', None, None, ), # 1
8906
  )
8907
 
8908
  def __init__(self, id=None,):
8909
    self.id = id
8910
 
8911
  def read(self, iprot):
8912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8914
      return
8915
    iprot.readStructBegin()
8916
    while True:
8917
      (fname, ftype, fid) = iprot.readFieldBegin()
8918
      if ftype == TType.STOP:
8919
        break
8920
      if fid == 1:
8921
        if ftype == TType.I64:
8922
          self.id = iprot.readI64();
8923
        else:
8924
          iprot.skip(ftype)
8925
      else:
8926
        iprot.skip(ftype)
8927
      iprot.readFieldEnd()
8928
    iprot.readStructEnd()
8929
 
8930
  def write(self, oprot):
8931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8933
      return
8934
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8935
    if self.id is not None:
1845 vikas 8936
      oprot.writeFieldBegin('id', TType.I64, 1)
8937
      oprot.writeI64(self.id)
8938
      oprot.writeFieldEnd()
8939
    oprot.writeFieldStop()
8940
    oprot.writeStructEnd()
8941
 
3431 rajveer 8942
  def validate(self):
8943
    return
8944
 
8945
 
1845 vikas 8946
  def __repr__(self):
8947
    L = ['%s=%r' % (key, value)
8948
      for key, value in self.__dict__.iteritems()]
8949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8950
 
8951
  def __eq__(self, other):
8952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8953
 
8954
  def __ne__(self, other):
8955
    return not (self == other)
8956
 
8957
class getTrackLogById_result:
8958
  """
8959
  Attributes:
8960
   - success
8961
   - utx
8962
  """
8963
 
8964
  thrift_spec = (
8965
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8966
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8967
  )
8968
 
8969
  def __init__(self, success=None, utx=None,):
8970
    self.success = success
8971
    self.utx = utx
8972
 
8973
  def read(self, iprot):
8974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8976
      return
8977
    iprot.readStructBegin()
8978
    while True:
8979
      (fname, ftype, fid) = iprot.readFieldBegin()
8980
      if ftype == TType.STOP:
8981
        break
8982
      if fid == 0:
8983
        if ftype == TType.STRUCT:
8984
          self.success = TrackLog()
8985
          self.success.read(iprot)
8986
        else:
8987
          iprot.skip(ftype)
8988
      elif fid == 1:
8989
        if ftype == TType.STRUCT:
1996 vikas 8990
          self.utx = UserAffiliateException()
1845 vikas 8991
          self.utx.read(iprot)
8992
        else:
8993
          iprot.skip(ftype)
8994
      else:
8995
        iprot.skip(ftype)
8996
      iprot.readFieldEnd()
8997
    iprot.readStructEnd()
8998
 
8999
  def write(self, oprot):
9000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9002
      return
9003
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9004
    if self.success is not None:
1845 vikas 9005
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9006
      self.success.write(oprot)
9007
      oprot.writeFieldEnd()
3431 rajveer 9008
    if self.utx is not None:
1845 vikas 9009
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9010
      self.utx.write(oprot)
9011
      oprot.writeFieldEnd()
9012
    oprot.writeFieldStop()
9013
    oprot.writeStructEnd()
9014
 
3431 rajveer 9015
  def validate(self):
9016
    return
9017
 
9018
 
1845 vikas 9019
  def __repr__(self):
9020
    L = ['%s=%r' % (key, value)
9021
      for key, value in self.__dict__.iteritems()]
9022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9023
 
9024
  def __eq__(self, other):
9025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9026
 
9027
  def __ne__(self, other):
9028
    return not (self == other)
9029
 
1996 vikas 9030
class getTrackLogsByAffiliate_args:
1845 vikas 9031
  """
9032
  Attributes:
1996 vikas 9033
   - affiliateId
3293 vikas 9034
   - startDate
9035
   - endDate
1845 vikas 9036
  """
9037
 
9038
  thrift_spec = (
9039
    None, # 0
1996 vikas 9040
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9041
    (2, TType.I64, 'startDate', None, None, ), # 2
9042
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9043
  )
9044
 
3293 vikas 9045
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9046
    self.affiliateId = affiliateId
3293 vikas 9047
    self.startDate = startDate
9048
    self.endDate = endDate
1845 vikas 9049
 
9050
  def read(self, iprot):
9051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9053
      return
9054
    iprot.readStructBegin()
9055
    while True:
9056
      (fname, ftype, fid) = iprot.readFieldBegin()
9057
      if ftype == TType.STOP:
9058
        break
9059
      if fid == 1:
9060
        if ftype == TType.I64:
1996 vikas 9061
          self.affiliateId = iprot.readI64();
1845 vikas 9062
        else:
9063
          iprot.skip(ftype)
3293 vikas 9064
      elif fid == 2:
9065
        if ftype == TType.I64:
9066
          self.startDate = iprot.readI64();
9067
        else:
9068
          iprot.skip(ftype)
9069
      elif fid == 3:
9070
        if ftype == TType.I64:
9071
          self.endDate = iprot.readI64();
9072
        else:
9073
          iprot.skip(ftype)
1845 vikas 9074
      else:
9075
        iprot.skip(ftype)
9076
      iprot.readFieldEnd()
9077
    iprot.readStructEnd()
9078
 
9079
  def write(self, oprot):
9080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9082
      return
1996 vikas 9083
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9084
    if self.affiliateId is not None:
1996 vikas 9085
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9086
      oprot.writeI64(self.affiliateId)
1845 vikas 9087
      oprot.writeFieldEnd()
3431 rajveer 9088
    if self.startDate is not None:
3293 vikas 9089
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9090
      oprot.writeI64(self.startDate)
9091
      oprot.writeFieldEnd()
3431 rajveer 9092
    if self.endDate is not None:
3293 vikas 9093
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9094
      oprot.writeI64(self.endDate)
9095
      oprot.writeFieldEnd()
1845 vikas 9096
    oprot.writeFieldStop()
9097
    oprot.writeStructEnd()
9098
 
3431 rajveer 9099
  def validate(self):
9100
    return
9101
 
9102
 
1845 vikas 9103
  def __repr__(self):
9104
    L = ['%s=%r' % (key, value)
9105
      for key, value in self.__dict__.iteritems()]
9106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9107
 
9108
  def __eq__(self, other):
9109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9110
 
9111
  def __ne__(self, other):
9112
    return not (self == other)
9113
 
1996 vikas 9114
class getTrackLogsByAffiliate_result:
1845 vikas 9115
  """
9116
  Attributes:
9117
   - success
9118
   - utx
9119
  """
9120
 
9121
  thrift_spec = (
9122
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9123
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9124
  )
9125
 
9126
  def __init__(self, success=None, utx=None,):
9127
    self.success = success
9128
    self.utx = utx
9129
 
9130
  def read(self, iprot):
9131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9133
      return
9134
    iprot.readStructBegin()
9135
    while True:
9136
      (fname, ftype, fid) = iprot.readFieldBegin()
9137
      if ftype == TType.STOP:
9138
        break
9139
      if fid == 0:
9140
        if ftype == TType.LIST:
9141
          self.success = []
5326 rajveer 9142
          (_etype96, _size93) = iprot.readListBegin()
9143
          for _i97 in xrange(_size93):
9144
            _elem98 = TrackLog()
9145
            _elem98.read(iprot)
9146
            self.success.append(_elem98)
1845 vikas 9147
          iprot.readListEnd()
9148
        else:
9149
          iprot.skip(ftype)
9150
      elif fid == 1:
9151
        if ftype == TType.STRUCT:
1996 vikas 9152
          self.utx = UserAffiliateException()
1845 vikas 9153
          self.utx.read(iprot)
9154
        else:
9155
          iprot.skip(ftype)
9156
      else:
9157
        iprot.skip(ftype)
9158
      iprot.readFieldEnd()
9159
    iprot.readStructEnd()
9160
 
9161
  def write(self, oprot):
9162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9164
      return
1996 vikas 9165
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9166
    if self.success is not None:
1845 vikas 9167
      oprot.writeFieldBegin('success', TType.LIST, 0)
9168
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9169
      for iter99 in self.success:
9170
        iter99.write(oprot)
1845 vikas 9171
      oprot.writeListEnd()
9172
      oprot.writeFieldEnd()
3431 rajveer 9173
    if self.utx is not None:
1845 vikas 9174
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9175
      self.utx.write(oprot)
9176
      oprot.writeFieldEnd()
9177
    oprot.writeFieldStop()
9178
    oprot.writeStructEnd()
9179
 
3431 rajveer 9180
  def validate(self):
9181
    return
9182
 
9183
 
1845 vikas 9184
  def __repr__(self):
9185
    L = ['%s=%r' % (key, value)
9186
      for key, value in self.__dict__.iteritems()]
9187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9188
 
9189
  def __eq__(self, other):
9190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9191
 
9192
  def __ne__(self, other):
9193
    return not (self == other)
9194
 
9195
class getTrackLogsByUser_args:
9196
  """
9197
  Attributes:
9198
   - userId
9199
  """
9200
 
9201
  thrift_spec = (
9202
    None, # 0
9203
    (1, TType.I64, 'userId', None, None, ), # 1
9204
  )
9205
 
9206
  def __init__(self, userId=None,):
9207
    self.userId = userId
9208
 
9209
  def read(self, iprot):
9210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9212
      return
9213
    iprot.readStructBegin()
9214
    while True:
9215
      (fname, ftype, fid) = iprot.readFieldBegin()
9216
      if ftype == TType.STOP:
9217
        break
9218
      if fid == 1:
9219
        if ftype == TType.I64:
9220
          self.userId = iprot.readI64();
9221
        else:
9222
          iprot.skip(ftype)
9223
      else:
9224
        iprot.skip(ftype)
9225
      iprot.readFieldEnd()
9226
    iprot.readStructEnd()
9227
 
9228
  def write(self, oprot):
9229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9231
      return
9232
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9233
    if self.userId is not None:
1845 vikas 9234
      oprot.writeFieldBegin('userId', TType.I64, 1)
9235
      oprot.writeI64(self.userId)
9236
      oprot.writeFieldEnd()
9237
    oprot.writeFieldStop()
9238
    oprot.writeStructEnd()
9239
 
3431 rajveer 9240
  def validate(self):
9241
    return
9242
 
9243
 
1845 vikas 9244
  def __repr__(self):
9245
    L = ['%s=%r' % (key, value)
9246
      for key, value in self.__dict__.iteritems()]
9247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9248
 
9249
  def __eq__(self, other):
9250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9251
 
9252
  def __ne__(self, other):
9253
    return not (self == other)
9254
 
9255
class getTrackLogsByUser_result:
9256
  """
9257
  Attributes:
9258
   - success
9259
   - utx
9260
  """
9261
 
9262
  thrift_spec = (
9263
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9264
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9265
  )
9266
 
9267
  def __init__(self, success=None, utx=None,):
9268
    self.success = success
9269
    self.utx = utx
9270
 
9271
  def read(self, iprot):
9272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9274
      return
9275
    iprot.readStructBegin()
9276
    while True:
9277
      (fname, ftype, fid) = iprot.readFieldBegin()
9278
      if ftype == TType.STOP:
9279
        break
9280
      if fid == 0:
9281
        if ftype == TType.LIST:
9282
          self.success = []
5326 rajveer 9283
          (_etype103, _size100) = iprot.readListBegin()
9284
          for _i104 in xrange(_size100):
9285
            _elem105 = TrackLog()
9286
            _elem105.read(iprot)
9287
            self.success.append(_elem105)
1845 vikas 9288
          iprot.readListEnd()
9289
        else:
9290
          iprot.skip(ftype)
9291
      elif fid == 1:
9292
        if ftype == TType.STRUCT:
1996 vikas 9293
          self.utx = UserAffiliateException()
1845 vikas 9294
          self.utx.read(iprot)
9295
        else:
9296
          iprot.skip(ftype)
9297
      else:
9298
        iprot.skip(ftype)
9299
      iprot.readFieldEnd()
9300
    iprot.readStructEnd()
9301
 
9302
  def write(self, oprot):
9303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9305
      return
9306
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9307
    if self.success is not None:
1845 vikas 9308
      oprot.writeFieldBegin('success', TType.LIST, 0)
9309
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9310
      for iter106 in self.success:
9311
        iter106.write(oprot)
1845 vikas 9312
      oprot.writeListEnd()
9313
      oprot.writeFieldEnd()
3431 rajveer 9314
    if self.utx is not None:
1845 vikas 9315
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9316
      self.utx.write(oprot)
9317
      oprot.writeFieldEnd()
9318
    oprot.writeFieldStop()
9319
    oprot.writeStructEnd()
9320
 
3431 rajveer 9321
  def validate(self):
9322
    return
9323
 
9324
 
1845 vikas 9325
  def __repr__(self):
9326
    L = ['%s=%r' % (key, value)
9327
      for key, value in self.__dict__.iteritems()]
9328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9329
 
9330
  def __eq__(self, other):
9331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9332
 
9333
  def __ne__(self, other):
9334
    return not (self == other)
9335
 
9336
class getTrackLogs_args:
9337
  """
9338
  Attributes:
9339
   - userId
9340
   - event
9341
   - url
9342
  """
9343
 
9344
  thrift_spec = (
9345
    None, # 0
1996 vikas 9346
    (1, TType.I64, 'userId', None, None, ), # 1
9347
    (2, TType.STRING, 'event', None, None, ), # 2
9348
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9349
  )
9350
 
1996 vikas 9351
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9352
    self.userId = userId
9353
    self.event = event
9354
    self.url = url
9355
 
9356
  def read(self, iprot):
9357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9359
      return
9360
    iprot.readStructBegin()
9361
    while True:
9362
      (fname, ftype, fid) = iprot.readFieldBegin()
9363
      if ftype == TType.STOP:
9364
        break
9365
      if fid == 1:
9366
        if ftype == TType.I64:
1996 vikas 9367
          self.userId = iprot.readI64();
1845 vikas 9368
        else:
9369
          iprot.skip(ftype)
9370
      elif fid == 2:
9371
        if ftype == TType.STRING:
9372
          self.event = iprot.readString();
9373
        else:
9374
          iprot.skip(ftype)
1996 vikas 9375
      elif fid == 3:
1845 vikas 9376
        if ftype == TType.STRING:
9377
          self.url = iprot.readString();
9378
        else:
9379
          iprot.skip(ftype)
9380
      else:
9381
        iprot.skip(ftype)
9382
      iprot.readFieldEnd()
9383
    iprot.readStructEnd()
9384
 
9385
  def write(self, oprot):
9386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9388
      return
9389
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9390
    if self.userId is not None:
1996 vikas 9391
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9392
      oprot.writeI64(self.userId)
9393
      oprot.writeFieldEnd()
3431 rajveer 9394
    if self.event is not None:
1996 vikas 9395
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9396
      oprot.writeString(self.event)
9397
      oprot.writeFieldEnd()
3431 rajveer 9398
    if self.url is not None:
1996 vikas 9399
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9400
      oprot.writeString(self.url)
9401
      oprot.writeFieldEnd()
9402
    oprot.writeFieldStop()
9403
    oprot.writeStructEnd()
9404
 
3431 rajveer 9405
  def validate(self):
9406
    return
9407
 
9408
 
1845 vikas 9409
  def __repr__(self):
9410
    L = ['%s=%r' % (key, value)
9411
      for key, value in self.__dict__.iteritems()]
9412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9413
 
9414
  def __eq__(self, other):
9415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9416
 
9417
  def __ne__(self, other):
9418
    return not (self == other)
9419
 
9420
class getTrackLogs_result:
9421
  """
9422
  Attributes:
9423
   - success
9424
   - utx
9425
  """
9426
 
9427
  thrift_spec = (
9428
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9429
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9430
  )
9431
 
9432
  def __init__(self, success=None, utx=None,):
9433
    self.success = success
9434
    self.utx = utx
9435
 
9436
  def read(self, iprot):
9437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9439
      return
9440
    iprot.readStructBegin()
9441
    while True:
9442
      (fname, ftype, fid) = iprot.readFieldBegin()
9443
      if ftype == TType.STOP:
9444
        break
9445
      if fid == 0:
9446
        if ftype == TType.LIST:
9447
          self.success = []
5326 rajveer 9448
          (_etype110, _size107) = iprot.readListBegin()
9449
          for _i111 in xrange(_size107):
9450
            _elem112 = TrackLog()
9451
            _elem112.read(iprot)
9452
            self.success.append(_elem112)
1845 vikas 9453
          iprot.readListEnd()
9454
        else:
9455
          iprot.skip(ftype)
9456
      elif fid == 1:
9457
        if ftype == TType.STRUCT:
1996 vikas 9458
          self.utx = UserAffiliateException()
1845 vikas 9459
          self.utx.read(iprot)
9460
        else:
9461
          iprot.skip(ftype)
9462
      else:
9463
        iprot.skip(ftype)
9464
      iprot.readFieldEnd()
9465
    iprot.readStructEnd()
9466
 
9467
  def write(self, oprot):
9468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9470
      return
9471
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9472
    if self.success is not None:
1845 vikas 9473
      oprot.writeFieldBegin('success', TType.LIST, 0)
9474
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9475
      for iter113 in self.success:
9476
        iter113.write(oprot)
1845 vikas 9477
      oprot.writeListEnd()
9478
      oprot.writeFieldEnd()
3431 rajveer 9479
    if self.utx is not None:
1845 vikas 9480
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9481
      self.utx.write(oprot)
9482
      oprot.writeFieldEnd()
9483
    oprot.writeFieldStop()
9484
    oprot.writeStructEnd()
9485
 
3431 rajveer 9486
  def validate(self):
9487
    return
9488
 
9489
 
1845 vikas 9490
  def __repr__(self):
9491
    L = ['%s=%r' % (key, value)
9492
      for key, value in self.__dict__.iteritems()]
9493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9494
 
9495
  def __eq__(self, other):
9496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9497
 
9498
  def __ne__(self, other):
9499
    return not (self == other)
9500
 
559 chandransh 9501
class getCurrentCart_args:
94 ashish 9502
  """
9503
  Attributes:
559 chandransh 9504
   - userId
9505
  """
9506
 
9507
  thrift_spec = (
9508
    None, # 0
9509
    (1, TType.I64, 'userId', None, None, ), # 1
9510
  )
9511
 
9512
  def __init__(self, userId=None,):
9513
    self.userId = userId
9514
 
9515
  def read(self, iprot):
9516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9518
      return
9519
    iprot.readStructBegin()
9520
    while True:
9521
      (fname, ftype, fid) = iprot.readFieldBegin()
9522
      if ftype == TType.STOP:
9523
        break
9524
      if fid == 1:
9525
        if ftype == TType.I64:
9526
          self.userId = iprot.readI64();
9527
        else:
9528
          iprot.skip(ftype)
9529
      else:
9530
        iprot.skip(ftype)
9531
      iprot.readFieldEnd()
9532
    iprot.readStructEnd()
9533
 
9534
  def write(self, oprot):
9535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9537
      return
9538
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9539
    if self.userId is not None:
559 chandransh 9540
      oprot.writeFieldBegin('userId', TType.I64, 1)
9541
      oprot.writeI64(self.userId)
9542
      oprot.writeFieldEnd()
9543
    oprot.writeFieldStop()
9544
    oprot.writeStructEnd()
9545
 
3431 rajveer 9546
  def validate(self):
9547
    return
9548
 
9549
 
559 chandransh 9550
  def __repr__(self):
9551
    L = ['%s=%r' % (key, value)
9552
      for key, value in self.__dict__.iteritems()]
9553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9554
 
9555
  def __eq__(self, other):
9556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9557
 
9558
  def __ne__(self, other):
9559
    return not (self == other)
9560
 
9561
class getCurrentCart_result:
9562
  """
9563
  Attributes:
94 ashish 9564
   - success
559 chandransh 9565
   - scx
94 ashish 9566
  """
9567
 
9568
  thrift_spec = (
559 chandransh 9569
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9570
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9571
  )
9572
 
559 chandransh 9573
  def __init__(self, success=None, scx=None,):
94 ashish 9574
    self.success = success
559 chandransh 9575
    self.scx = scx
94 ashish 9576
 
9577
  def read(self, iprot):
9578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9580
      return
9581
    iprot.readStructBegin()
9582
    while True:
9583
      (fname, ftype, fid) = iprot.readFieldBegin()
9584
      if ftype == TType.STOP:
9585
        break
9586
      if fid == 0:
559 chandransh 9587
        if ftype == TType.STRUCT:
9588
          self.success = Cart()
9589
          self.success.read(iprot)
94 ashish 9590
        else:
9591
          iprot.skip(ftype)
9592
      elif fid == 1:
9593
        if ftype == TType.STRUCT:
559 chandransh 9594
          self.scx = ShoppingCartException()
9595
          self.scx.read(iprot)
94 ashish 9596
        else:
9597
          iprot.skip(ftype)
9598
      else:
9599
        iprot.skip(ftype)
9600
      iprot.readFieldEnd()
9601
    iprot.readStructEnd()
9602
 
9603
  def write(self, oprot):
9604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9606
      return
559 chandransh 9607
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9608
    if self.success is not None:
559 chandransh 9609
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9610
      self.success.write(oprot)
94 ashish 9611
      oprot.writeFieldEnd()
3431 rajveer 9612
    if self.scx is not None:
559 chandransh 9613
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9614
      self.scx.write(oprot)
94 ashish 9615
      oprot.writeFieldEnd()
9616
    oprot.writeFieldStop()
9617
    oprot.writeStructEnd()
9618
 
3431 rajveer 9619
  def validate(self):
9620
    return
9621
 
9622
 
94 ashish 9623
  def __repr__(self):
9624
    L = ['%s=%r' % (key, value)
9625
      for key, value in self.__dict__.iteritems()]
9626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9627
 
9628
  def __eq__(self, other):
9629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9630
 
9631
  def __ne__(self, other):
9632
    return not (self == other)
9633
 
559 chandransh 9634
class getCart_args:
504 rajveer 9635
  """
9636
  Attributes:
559 chandransh 9637
   - cartId
504 rajveer 9638
  """
9639
 
9640
  thrift_spec = (
9641
    None, # 0
559 chandransh 9642
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9643
  )
9644
 
559 chandransh 9645
  def __init__(self, cartId=None,):
9646
    self.cartId = cartId
504 rajveer 9647
 
9648
  def read(self, iprot):
9649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9651
      return
9652
    iprot.readStructBegin()
9653
    while True:
9654
      (fname, ftype, fid) = iprot.readFieldBegin()
9655
      if ftype == TType.STOP:
9656
        break
9657
      if fid == 1:
9658
        if ftype == TType.I64:
559 chandransh 9659
          self.cartId = iprot.readI64();
504 rajveer 9660
        else:
9661
          iprot.skip(ftype)
9662
      else:
9663
        iprot.skip(ftype)
9664
      iprot.readFieldEnd()
9665
    iprot.readStructEnd()
9666
 
9667
  def write(self, oprot):
9668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9670
      return
559 chandransh 9671
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9672
    if self.cartId is not None:
559 chandransh 9673
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9674
      oprot.writeI64(self.cartId)
504 rajveer 9675
      oprot.writeFieldEnd()
9676
    oprot.writeFieldStop()
9677
    oprot.writeStructEnd()
9678
 
3431 rajveer 9679
  def validate(self):
9680
    return
9681
 
9682
 
504 rajveer 9683
  def __repr__(self):
9684
    L = ['%s=%r' % (key, value)
9685
      for key, value in self.__dict__.iteritems()]
9686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9687
 
9688
  def __eq__(self, other):
9689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9690
 
9691
  def __ne__(self, other):
9692
    return not (self == other)
9693
 
559 chandransh 9694
class getCart_result:
504 rajveer 9695
  """
9696
  Attributes:
9697
   - success
559 chandransh 9698
   - scx
504 rajveer 9699
  """
9700
 
9701
  thrift_spec = (
559 chandransh 9702
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9703
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9704
  )
9705
 
559 chandransh 9706
  def __init__(self, success=None, scx=None,):
504 rajveer 9707
    self.success = success
559 chandransh 9708
    self.scx = scx
504 rajveer 9709
 
9710
  def read(self, iprot):
9711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9713
      return
9714
    iprot.readStructBegin()
9715
    while True:
9716
      (fname, ftype, fid) = iprot.readFieldBegin()
9717
      if ftype == TType.STOP:
9718
        break
9719
      if fid == 0:
559 chandransh 9720
        if ftype == TType.STRUCT:
9721
          self.success = Cart()
9722
          self.success.read(iprot)
504 rajveer 9723
        else:
9724
          iprot.skip(ftype)
9725
      elif fid == 1:
9726
        if ftype == TType.STRUCT:
559 chandransh 9727
          self.scx = ShoppingCartException()
9728
          self.scx.read(iprot)
504 rajveer 9729
        else:
9730
          iprot.skip(ftype)
9731
      else:
9732
        iprot.skip(ftype)
9733
      iprot.readFieldEnd()
9734
    iprot.readStructEnd()
9735
 
9736
  def write(self, oprot):
9737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9739
      return
559 chandransh 9740
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9741
    if self.success is not None:
559 chandransh 9742
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9743
      self.success.write(oprot)
504 rajveer 9744
      oprot.writeFieldEnd()
3431 rajveer 9745
    if self.scx is not None:
559 chandransh 9746
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9747
      self.scx.write(oprot)
504 rajveer 9748
      oprot.writeFieldEnd()
9749
    oprot.writeFieldStop()
9750
    oprot.writeStructEnd()
9751
 
3431 rajveer 9752
  def validate(self):
9753
    return
9754
 
9755
 
504 rajveer 9756
  def __repr__(self):
9757
    L = ['%s=%r' % (key, value)
9758
      for key, value in self.__dict__.iteritems()]
9759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9760
 
9761
  def __eq__(self, other):
9762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9763
 
9764
  def __ne__(self, other):
9765
    return not (self == other)
9766
 
559 chandransh 9767
class getCartsByTime_args:
9768
  """
9769
  Attributes:
9770
   - from_time
9771
   - to_time
9772
   - status
9773
  """
9774
 
9775
  thrift_spec = (
9776
    None, # 0
9777
    (1, TType.I64, 'from_time', None, None, ), # 1
9778
    (2, TType.I64, 'to_time', None, None, ), # 2
9779
    (3, TType.I32, 'status', None, None, ), # 3
9780
  )
9781
 
9782
  def __init__(self, from_time=None, to_time=None, status=None,):
9783
    self.from_time = from_time
9784
    self.to_time = to_time
9785
    self.status = status
9786
 
9787
  def read(self, iprot):
9788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9790
      return
9791
    iprot.readStructBegin()
9792
    while True:
9793
      (fname, ftype, fid) = iprot.readFieldBegin()
9794
      if ftype == TType.STOP:
9795
        break
9796
      if fid == 1:
94 ashish 9797
        if ftype == TType.I64:
559 chandransh 9798
          self.from_time = iprot.readI64();
94 ashish 9799
        else:
9800
          iprot.skip(ftype)
122 ashish 9801
      elif fid == 2:
559 chandransh 9802
        if ftype == TType.I64:
9803
          self.to_time = iprot.readI64();
122 ashish 9804
        else:
9805
          iprot.skip(ftype)
559 chandransh 9806
      elif fid == 3:
9807
        if ftype == TType.I32:
9808
          self.status = iprot.readI32();
9809
        else:
9810
          iprot.skip(ftype)
94 ashish 9811
      else:
9812
        iprot.skip(ftype)
9813
      iprot.readFieldEnd()
9814
    iprot.readStructEnd()
9815
 
9816
  def write(self, oprot):
9817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9819
      return
559 chandransh 9820
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9821
    if self.from_time is not None:
559 chandransh 9822
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9823
      oprot.writeI64(self.from_time)
94 ashish 9824
      oprot.writeFieldEnd()
3431 rajveer 9825
    if self.to_time is not None:
559 chandransh 9826
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9827
      oprot.writeI64(self.to_time)
122 ashish 9828
      oprot.writeFieldEnd()
3431 rajveer 9829
    if self.status is not None:
559 chandransh 9830
      oprot.writeFieldBegin('status', TType.I32, 3)
9831
      oprot.writeI32(self.status)
9832
      oprot.writeFieldEnd()
94 ashish 9833
    oprot.writeFieldStop()
9834
    oprot.writeStructEnd()
9835
 
3431 rajveer 9836
  def validate(self):
9837
    return
9838
 
9839
 
94 ashish 9840
  def __repr__(self):
9841
    L = ['%s=%r' % (key, value)
9842
      for key, value in self.__dict__.iteritems()]
9843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9844
 
9845
  def __eq__(self, other):
9846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9847
 
9848
  def __ne__(self, other):
9849
    return not (self == other)
9850
 
559 chandransh 9851
class getCartsByTime_result:
94 ashish 9852
  """
9853
  Attributes:
9854
   - success
559 chandransh 9855
   - scx
94 ashish 9856
  """
9857
 
9858
  thrift_spec = (
559 chandransh 9859
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9860
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9861
  )
9862
 
559 chandransh 9863
  def __init__(self, success=None, scx=None,):
94 ashish 9864
    self.success = success
559 chandransh 9865
    self.scx = scx
94 ashish 9866
 
9867
  def read(self, iprot):
9868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9870
      return
9871
    iprot.readStructBegin()
9872
    while True:
9873
      (fname, ftype, fid) = iprot.readFieldBegin()
9874
      if ftype == TType.STOP:
9875
        break
9876
      if fid == 0:
559 chandransh 9877
        if ftype == TType.LIST:
9878
          self.success = []
5326 rajveer 9879
          (_etype117, _size114) = iprot.readListBegin()
9880
          for _i118 in xrange(_size114):
9881
            _elem119 = Cart()
9882
            _elem119.read(iprot)
9883
            self.success.append(_elem119)
559 chandransh 9884
          iprot.readListEnd()
94 ashish 9885
        else:
9886
          iprot.skip(ftype)
9887
      elif fid == 1:
9888
        if ftype == TType.STRUCT:
559 chandransh 9889
          self.scx = ShoppingCartException()
9890
          self.scx.read(iprot)
94 ashish 9891
        else:
9892
          iprot.skip(ftype)
9893
      else:
9894
        iprot.skip(ftype)
9895
      iprot.readFieldEnd()
9896
    iprot.readStructEnd()
9897
 
9898
  def write(self, oprot):
9899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9901
      return
559 chandransh 9902
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9903
    if self.success is not None:
559 chandransh 9904
      oprot.writeFieldBegin('success', TType.LIST, 0)
9905
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9906
      for iter120 in self.success:
9907
        iter120.write(oprot)
559 chandransh 9908
      oprot.writeListEnd()
94 ashish 9909
      oprot.writeFieldEnd()
3431 rajveer 9910
    if self.scx is not None:
559 chandransh 9911
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9912
      self.scx.write(oprot)
94 ashish 9913
      oprot.writeFieldEnd()
9914
    oprot.writeFieldStop()
9915
    oprot.writeStructEnd()
9916
 
3431 rajveer 9917
  def validate(self):
9918
    return
9919
 
9920
 
94 ashish 9921
  def __repr__(self):
9922
    L = ['%s=%r' % (key, value)
9923
      for key, value in self.__dict__.iteritems()]
9924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9925
 
9926
  def __eq__(self, other):
9927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9928
 
9929
  def __ne__(self, other):
9930
    return not (self == other)
9931
 
559 chandransh 9932
class addItemToCart_args:
9933
  """
9934
  Attributes:
9935
   - cartId
9936
   - itemId
9937
   - quantity
3557 rajveer 9938
   - sourceId
559 chandransh 9939
  """
9940
 
9941
  thrift_spec = (
9942
    None, # 0
9943
    (1, TType.I64, 'cartId', None, None, ), # 1
9944
    (2, TType.I64, 'itemId', None, None, ), # 2
9945
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9946
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9947
  )
9948
 
3557 rajveer 9949
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9950
    self.cartId = cartId
9951
    self.itemId = itemId
9952
    self.quantity = quantity
3557 rajveer 9953
    self.sourceId = sourceId
559 chandransh 9954
 
9955
  def read(self, iprot):
9956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9958
      return
9959
    iprot.readStructBegin()
9960
    while True:
9961
      (fname, ftype, fid) = iprot.readFieldBegin()
9962
      if ftype == TType.STOP:
9963
        break
9964
      if fid == 1:
9965
        if ftype == TType.I64:
9966
          self.cartId = iprot.readI64();
9967
        else:
9968
          iprot.skip(ftype)
9969
      elif fid == 2:
9970
        if ftype == TType.I64:
9971
          self.itemId = iprot.readI64();
9972
        else:
9973
          iprot.skip(ftype)
9974
      elif fid == 3:
9975
        if ftype == TType.I64:
9976
          self.quantity = iprot.readI64();
9977
        else:
9978
          iprot.skip(ftype)
3557 rajveer 9979
      elif fid == 4:
9980
        if ftype == TType.I64:
9981
          self.sourceId = iprot.readI64();
9982
        else:
9983
          iprot.skip(ftype)
559 chandransh 9984
      else:
9985
        iprot.skip(ftype)
9986
      iprot.readFieldEnd()
9987
    iprot.readStructEnd()
9988
 
9989
  def write(self, oprot):
9990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9992
      return
9993
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9994
    if self.cartId is not None:
559 chandransh 9995
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9996
      oprot.writeI64(self.cartId)
9997
      oprot.writeFieldEnd()
3431 rajveer 9998
    if self.itemId is not None:
559 chandransh 9999
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10000
      oprot.writeI64(self.itemId)
10001
      oprot.writeFieldEnd()
3431 rajveer 10002
    if self.quantity is not None:
559 chandransh 10003
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10004
      oprot.writeI64(self.quantity)
10005
      oprot.writeFieldEnd()
3557 rajveer 10006
    if self.sourceId is not None:
10007
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10008
      oprot.writeI64(self.sourceId)
10009
      oprot.writeFieldEnd()
559 chandransh 10010
    oprot.writeFieldStop()
10011
    oprot.writeStructEnd()
10012
 
3431 rajveer 10013
  def validate(self):
10014
    return
10015
 
10016
 
559 chandransh 10017
  def __repr__(self):
10018
    L = ['%s=%r' % (key, value)
10019
      for key, value in self.__dict__.iteritems()]
10020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10021
 
10022
  def __eq__(self, other):
10023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10024
 
10025
  def __ne__(self, other):
10026
    return not (self == other)
10027
 
10028
class addItemToCart_result:
10029
  """
10030
  Attributes:
2035 rajveer 10031
   - success
559 chandransh 10032
   - scx
10033
  """
10034
 
10035
  thrift_spec = (
2035 rajveer 10036
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10037
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10038
  )
10039
 
2035 rajveer 10040
  def __init__(self, success=None, scx=None,):
10041
    self.success = success
559 chandransh 10042
    self.scx = scx
10043
 
10044
  def read(self, iprot):
10045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10047
      return
10048
    iprot.readStructBegin()
10049
    while True:
10050
      (fname, ftype, fid) = iprot.readFieldBegin()
10051
      if ftype == TType.STOP:
10052
        break
2035 rajveer 10053
      if fid == 0:
10054
        if ftype == TType.STRING:
10055
          self.success = iprot.readString();
10056
        else:
10057
          iprot.skip(ftype)
10058
      elif fid == 1:
559 chandransh 10059
        if ftype == TType.STRUCT:
10060
          self.scx = ShoppingCartException()
10061
          self.scx.read(iprot)
10062
        else:
10063
          iprot.skip(ftype)
10064
      else:
10065
        iprot.skip(ftype)
10066
      iprot.readFieldEnd()
10067
    iprot.readStructEnd()
10068
 
10069
  def write(self, oprot):
10070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10072
      return
10073
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10074
    if self.success is not None:
2035 rajveer 10075
      oprot.writeFieldBegin('success', TType.STRING, 0)
10076
      oprot.writeString(self.success)
10077
      oprot.writeFieldEnd()
3431 rajveer 10078
    if self.scx is not None:
559 chandransh 10079
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10080
      self.scx.write(oprot)
10081
      oprot.writeFieldEnd()
10082
    oprot.writeFieldStop()
10083
    oprot.writeStructEnd()
10084
 
3431 rajveer 10085
  def validate(self):
10086
    return
10087
 
10088
 
559 chandransh 10089
  def __repr__(self):
10090
    L = ['%s=%r' % (key, value)
10091
      for key, value in self.__dict__.iteritems()]
10092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10093
 
10094
  def __eq__(self, other):
10095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10096
 
10097
  def __ne__(self, other):
10098
    return not (self == other)
10099
 
10100
class deleteItemFromCart_args:
10101
  """
10102
  Attributes:
10103
   - cartId
10104
   - itemId
10105
  """
10106
 
10107
  thrift_spec = (
10108
    None, # 0
10109
    (1, TType.I64, 'cartId', None, None, ), # 1
10110
    (2, TType.I64, 'itemId', None, None, ), # 2
10111
  )
10112
 
10113
  def __init__(self, cartId=None, itemId=None,):
10114
    self.cartId = cartId
10115
    self.itemId = itemId
10116
 
10117
  def read(self, iprot):
10118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10120
      return
10121
    iprot.readStructBegin()
10122
    while True:
10123
      (fname, ftype, fid) = iprot.readFieldBegin()
10124
      if ftype == TType.STOP:
10125
        break
10126
      if fid == 1:
10127
        if ftype == TType.I64:
10128
          self.cartId = iprot.readI64();
10129
        else:
10130
          iprot.skip(ftype)
10131
      elif fid == 2:
10132
        if ftype == TType.I64:
10133
          self.itemId = iprot.readI64();
10134
        else:
10135
          iprot.skip(ftype)
10136
      else:
10137
        iprot.skip(ftype)
10138
      iprot.readFieldEnd()
10139
    iprot.readStructEnd()
10140
 
10141
  def write(self, oprot):
10142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10144
      return
10145
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10146
    if self.cartId is not None:
559 chandransh 10147
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10148
      oprot.writeI64(self.cartId)
10149
      oprot.writeFieldEnd()
3431 rajveer 10150
    if self.itemId is not None:
559 chandransh 10151
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10152
      oprot.writeI64(self.itemId)
10153
      oprot.writeFieldEnd()
10154
    oprot.writeFieldStop()
10155
    oprot.writeStructEnd()
10156
 
3431 rajveer 10157
  def validate(self):
10158
    return
10159
 
10160
 
559 chandransh 10161
  def __repr__(self):
10162
    L = ['%s=%r' % (key, value)
10163
      for key, value in self.__dict__.iteritems()]
10164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10165
 
10166
  def __eq__(self, other):
10167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10168
 
10169
  def __ne__(self, other):
10170
    return not (self == other)
10171
 
10172
class deleteItemFromCart_result:
10173
  """
10174
  Attributes:
10175
   - scx
10176
  """
10177
 
10178
  thrift_spec = (
10179
    None, # 0
10180
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10181
  )
10182
 
10183
  def __init__(self, scx=None,):
10184
    self.scx = scx
10185
 
10186
  def read(self, iprot):
10187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10189
      return
10190
    iprot.readStructBegin()
10191
    while True:
10192
      (fname, ftype, fid) = iprot.readFieldBegin()
10193
      if ftype == TType.STOP:
10194
        break
10195
      if fid == 1:
10196
        if ftype == TType.STRUCT:
10197
          self.scx = ShoppingCartException()
10198
          self.scx.read(iprot)
10199
        else:
10200
          iprot.skip(ftype)
10201
      else:
10202
        iprot.skip(ftype)
10203
      iprot.readFieldEnd()
10204
    iprot.readStructEnd()
10205
 
10206
  def write(self, oprot):
10207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10209
      return
10210
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10211
    if self.scx is not None:
559 chandransh 10212
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10213
      self.scx.write(oprot)
10214
      oprot.writeFieldEnd()
10215
    oprot.writeFieldStop()
10216
    oprot.writeStructEnd()
10217
 
3431 rajveer 10218
  def validate(self):
10219
    return
10220
 
10221
 
559 chandransh 10222
  def __repr__(self):
10223
    L = ['%s=%r' % (key, value)
10224
      for key, value in self.__dict__.iteritems()]
10225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10226
 
10227
  def __eq__(self, other):
10228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10229
 
10230
  def __ne__(self, other):
10231
    return not (self == other)
10232
 
10233
class addAddressToCart_args:
10234
  """
10235
  Attributes:
10236
   - cartId
10237
   - addressId
10238
  """
10239
 
10240
  thrift_spec = (
10241
    None, # 0
10242
    (1, TType.I64, 'cartId', None, None, ), # 1
10243
    (2, TType.I64, 'addressId', None, None, ), # 2
10244
  )
10245
 
10246
  def __init__(self, cartId=None, addressId=None,):
10247
    self.cartId = cartId
10248
    self.addressId = addressId
10249
 
10250
  def read(self, iprot):
10251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10253
      return
10254
    iprot.readStructBegin()
10255
    while True:
10256
      (fname, ftype, fid) = iprot.readFieldBegin()
10257
      if ftype == TType.STOP:
10258
        break
10259
      if fid == 1:
10260
        if ftype == TType.I64:
10261
          self.cartId = iprot.readI64();
10262
        else:
10263
          iprot.skip(ftype)
10264
      elif fid == 2:
10265
        if ftype == TType.I64:
10266
          self.addressId = iprot.readI64();
10267
        else:
10268
          iprot.skip(ftype)
10269
      else:
10270
        iprot.skip(ftype)
10271
      iprot.readFieldEnd()
10272
    iprot.readStructEnd()
10273
 
10274
  def write(self, oprot):
10275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10277
      return
10278
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10279
    if self.cartId is not None:
559 chandransh 10280
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10281
      oprot.writeI64(self.cartId)
10282
      oprot.writeFieldEnd()
3431 rajveer 10283
    if self.addressId is not None:
559 chandransh 10284
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10285
      oprot.writeI64(self.addressId)
10286
      oprot.writeFieldEnd()
10287
    oprot.writeFieldStop()
10288
    oprot.writeStructEnd()
10289
 
3431 rajveer 10290
  def validate(self):
10291
    return
10292
 
10293
 
559 chandransh 10294
  def __repr__(self):
10295
    L = ['%s=%r' % (key, value)
10296
      for key, value in self.__dict__.iteritems()]
10297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10298
 
10299
  def __eq__(self, other):
10300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10301
 
10302
  def __ne__(self, other):
10303
    return not (self == other)
10304
 
10305
class addAddressToCart_result:
575 chandransh 10306
  """
10307
  Attributes:
10308
   - scx
10309
  """
559 chandransh 10310
 
10311
  thrift_spec = (
575 chandransh 10312
    None, # 0
10313
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10314
  )
10315
 
575 chandransh 10316
  def __init__(self, scx=None,):
10317
    self.scx = scx
10318
 
559 chandransh 10319
  def read(self, iprot):
10320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10322
      return
10323
    iprot.readStructBegin()
10324
    while True:
10325
      (fname, ftype, fid) = iprot.readFieldBegin()
10326
      if ftype == TType.STOP:
10327
        break
575 chandransh 10328
      if fid == 1:
10329
        if ftype == TType.STRUCT:
10330
          self.scx = ShoppingCartException()
10331
          self.scx.read(iprot)
10332
        else:
10333
          iprot.skip(ftype)
559 chandransh 10334
      else:
10335
        iprot.skip(ftype)
10336
      iprot.readFieldEnd()
10337
    iprot.readStructEnd()
10338
 
10339
  def write(self, oprot):
10340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10342
      return
10343
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10344
    if self.scx is not None:
575 chandransh 10345
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10346
      self.scx.write(oprot)
10347
      oprot.writeFieldEnd()
559 chandransh 10348
    oprot.writeFieldStop()
10349
    oprot.writeStructEnd()
10350
 
3431 rajveer 10351
  def validate(self):
10352
    return
10353
 
10354
 
559 chandransh 10355
  def __repr__(self):
10356
    L = ['%s=%r' % (key, value)
10357
      for key, value in self.__dict__.iteritems()]
10358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10359
 
10360
  def __eq__(self, other):
10361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10362
 
10363
  def __ne__(self, other):
10364
    return not (self == other)
10365
 
5553 rajveer 10366
class addStoreToCart_args:
10367
  """
10368
  Attributes:
10369
   - cartId
10370
   - storeId
10371
  """
10372
 
10373
  thrift_spec = (
10374
    None, # 0
10375
    (1, TType.I64, 'cartId', None, None, ), # 1
10376
    (2, TType.I64, 'storeId', None, None, ), # 2
10377
  )
10378
 
10379
  def __init__(self, cartId=None, storeId=None,):
10380
    self.cartId = cartId
10381
    self.storeId = storeId
10382
 
10383
  def read(self, iprot):
10384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10386
      return
10387
    iprot.readStructBegin()
10388
    while True:
10389
      (fname, ftype, fid) = iprot.readFieldBegin()
10390
      if ftype == TType.STOP:
10391
        break
10392
      if fid == 1:
10393
        if ftype == TType.I64:
10394
          self.cartId = iprot.readI64();
10395
        else:
10396
          iprot.skip(ftype)
10397
      elif fid == 2:
10398
        if ftype == TType.I64:
10399
          self.storeId = iprot.readI64();
10400
        else:
10401
          iprot.skip(ftype)
10402
      else:
10403
        iprot.skip(ftype)
10404
      iprot.readFieldEnd()
10405
    iprot.readStructEnd()
10406
 
10407
  def write(self, oprot):
10408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10410
      return
10411
    oprot.writeStructBegin('addStoreToCart_args')
10412
    if self.cartId is not None:
10413
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10414
      oprot.writeI64(self.cartId)
10415
      oprot.writeFieldEnd()
10416
    if self.storeId is not None:
10417
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10418
      oprot.writeI64(self.storeId)
10419
      oprot.writeFieldEnd()
10420
    oprot.writeFieldStop()
10421
    oprot.writeStructEnd()
10422
 
10423
  def validate(self):
10424
    return
10425
 
10426
 
10427
  def __repr__(self):
10428
    L = ['%s=%r' % (key, value)
10429
      for key, value in self.__dict__.iteritems()]
10430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10431
 
10432
  def __eq__(self, other):
10433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10434
 
10435
  def __ne__(self, other):
10436
    return not (self == other)
10437
 
10438
class addStoreToCart_result:
10439
  """
10440
  Attributes:
10441
   - scx
10442
  """
10443
 
10444
  thrift_spec = (
10445
    None, # 0
10446
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10447
  )
10448
 
10449
  def __init__(self, scx=None,):
10450
    self.scx = scx
10451
 
10452
  def read(self, iprot):
10453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10455
      return
10456
    iprot.readStructBegin()
10457
    while True:
10458
      (fname, ftype, fid) = iprot.readFieldBegin()
10459
      if ftype == TType.STOP:
10460
        break
10461
      if fid == 1:
10462
        if ftype == TType.STRUCT:
10463
          self.scx = ShoppingCartException()
10464
          self.scx.read(iprot)
10465
        else:
10466
          iprot.skip(ftype)
10467
      else:
10468
        iprot.skip(ftype)
10469
      iprot.readFieldEnd()
10470
    iprot.readStructEnd()
10471
 
10472
  def write(self, oprot):
10473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10475
      return
10476
    oprot.writeStructBegin('addStoreToCart_result')
10477
    if self.scx is not None:
10478
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10479
      self.scx.write(oprot)
10480
      oprot.writeFieldEnd()
10481
    oprot.writeFieldStop()
10482
    oprot.writeStructEnd()
10483
 
10484
  def validate(self):
10485
    return
10486
 
10487
 
10488
  def __repr__(self):
10489
    L = ['%s=%r' % (key, value)
10490
      for key, value in self.__dict__.iteritems()]
10491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10492
 
10493
  def __eq__(self, other):
10494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10495
 
10496
  def __ne__(self, other):
10497
    return not (self == other)
10498
 
1976 varun.gupt 10499
class applyCouponToCart_args:
10500
  """
10501
  Attributes:
10502
   - cartId
10503
   - couponCode
10504
   - totalPrice
10505
   - discountedPrice
10506
  """
10507
 
10508
  thrift_spec = (
10509
    None, # 0
10510
    (1, TType.I64, 'cartId', None, None, ), # 1
10511
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10512
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10513
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10514
  )
10515
 
10516
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10517
    self.cartId = cartId
10518
    self.couponCode = couponCode
10519
    self.totalPrice = totalPrice
10520
    self.discountedPrice = discountedPrice
10521
 
10522
  def read(self, iprot):
10523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10525
      return
10526
    iprot.readStructBegin()
10527
    while True:
10528
      (fname, ftype, fid) = iprot.readFieldBegin()
10529
      if ftype == TType.STOP:
10530
        break
10531
      if fid == 1:
10532
        if ftype == TType.I64:
10533
          self.cartId = iprot.readI64();
10534
        else:
10535
          iprot.skip(ftype)
10536
      elif fid == 2:
10537
        if ftype == TType.STRING:
10538
          self.couponCode = iprot.readString();
10539
        else:
10540
          iprot.skip(ftype)
10541
      elif fid == 3:
10542
        if ftype == TType.DOUBLE:
10543
          self.totalPrice = iprot.readDouble();
10544
        else:
10545
          iprot.skip(ftype)
10546
      elif fid == 4:
10547
        if ftype == TType.DOUBLE:
10548
          self.discountedPrice = iprot.readDouble();
10549
        else:
10550
          iprot.skip(ftype)
10551
      else:
10552
        iprot.skip(ftype)
10553
      iprot.readFieldEnd()
10554
    iprot.readStructEnd()
10555
 
10556
  def write(self, oprot):
10557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10559
      return
10560
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10561
    if self.cartId is not None:
1976 varun.gupt 10562
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10563
      oprot.writeI64(self.cartId)
10564
      oprot.writeFieldEnd()
3431 rajveer 10565
    if self.couponCode is not None:
1976 varun.gupt 10566
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10567
      oprot.writeString(self.couponCode)
10568
      oprot.writeFieldEnd()
3431 rajveer 10569
    if self.totalPrice is not None:
1976 varun.gupt 10570
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10571
      oprot.writeDouble(self.totalPrice)
10572
      oprot.writeFieldEnd()
3431 rajveer 10573
    if self.discountedPrice is not None:
1976 varun.gupt 10574
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10575
      oprot.writeDouble(self.discountedPrice)
10576
      oprot.writeFieldEnd()
10577
    oprot.writeFieldStop()
10578
    oprot.writeStructEnd()
10579
 
3431 rajveer 10580
  def validate(self):
10581
    return
10582
 
10583
 
1976 varun.gupt 10584
  def __repr__(self):
10585
    L = ['%s=%r' % (key, value)
10586
      for key, value in self.__dict__.iteritems()]
10587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10588
 
10589
  def __eq__(self, other):
10590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10591
 
10592
  def __ne__(self, other):
10593
    return not (self == other)
10594
 
10595
class applyCouponToCart_result:
10596
  """
10597
  Attributes:
10598
   - scx
10599
  """
10600
 
10601
  thrift_spec = (
10602
    None, # 0
10603
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10604
  )
10605
 
10606
  def __init__(self, scx=None,):
10607
    self.scx = scx
10608
 
10609
  def read(self, iprot):
10610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10612
      return
10613
    iprot.readStructBegin()
10614
    while True:
10615
      (fname, ftype, fid) = iprot.readFieldBegin()
10616
      if ftype == TType.STOP:
10617
        break
10618
      if fid == 1:
10619
        if ftype == TType.STRUCT:
10620
          self.scx = ShoppingCartException()
10621
          self.scx.read(iprot)
10622
        else:
10623
          iprot.skip(ftype)
10624
      else:
10625
        iprot.skip(ftype)
10626
      iprot.readFieldEnd()
10627
    iprot.readStructEnd()
10628
 
10629
  def write(self, oprot):
10630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10632
      return
10633
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10634
    if self.scx is not None:
1976 varun.gupt 10635
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10636
      self.scx.write(oprot)
10637
      oprot.writeFieldEnd()
10638
    oprot.writeFieldStop()
10639
    oprot.writeStructEnd()
10640
 
3431 rajveer 10641
  def validate(self):
10642
    return
10643
 
10644
 
1976 varun.gupt 10645
  def __repr__(self):
10646
    L = ['%s=%r' % (key, value)
10647
      for key, value in self.__dict__.iteritems()]
10648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10649
 
10650
  def __eq__(self, other):
10651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10652
 
10653
  def __ne__(self, other):
10654
    return not (self == other)
10655
 
10656
class removeCoupon_args:
10657
  """
10658
  Attributes:
10659
   - cartId
10660
  """
10661
 
10662
  thrift_spec = (
10663
    None, # 0
10664
    (1, TType.I64, 'cartId', None, None, ), # 1
10665
  )
10666
 
10667
  def __init__(self, cartId=None,):
10668
    self.cartId = cartId
10669
 
10670
  def read(self, iprot):
10671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10673
      return
10674
    iprot.readStructBegin()
10675
    while True:
10676
      (fname, ftype, fid) = iprot.readFieldBegin()
10677
      if ftype == TType.STOP:
10678
        break
10679
      if fid == 1:
10680
        if ftype == TType.I64:
10681
          self.cartId = iprot.readI64();
10682
        else:
10683
          iprot.skip(ftype)
10684
      else:
10685
        iprot.skip(ftype)
10686
      iprot.readFieldEnd()
10687
    iprot.readStructEnd()
10688
 
10689
  def write(self, oprot):
10690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10692
      return
10693
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10694
    if self.cartId is not None:
1976 varun.gupt 10695
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10696
      oprot.writeI64(self.cartId)
10697
      oprot.writeFieldEnd()
10698
    oprot.writeFieldStop()
10699
    oprot.writeStructEnd()
10700
 
3431 rajveer 10701
  def validate(self):
10702
    return
10703
 
10704
 
1976 varun.gupt 10705
  def __repr__(self):
10706
    L = ['%s=%r' % (key, value)
10707
      for key, value in self.__dict__.iteritems()]
10708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10709
 
10710
  def __eq__(self, other):
10711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10712
 
10713
  def __ne__(self, other):
10714
    return not (self == other)
10715
 
10716
class removeCoupon_result:
10717
  """
10718
  Attributes:
10719
   - scx
10720
  """
10721
 
10722
  thrift_spec = (
10723
    None, # 0
10724
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10725
  )
10726
 
10727
  def __init__(self, scx=None,):
10728
    self.scx = scx
10729
 
10730
  def read(self, iprot):
10731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10733
      return
10734
    iprot.readStructBegin()
10735
    while True:
10736
      (fname, ftype, fid) = iprot.readFieldBegin()
10737
      if ftype == TType.STOP:
10738
        break
10739
      if fid == 1:
10740
        if ftype == TType.STRUCT:
10741
          self.scx = ShoppingCartException()
10742
          self.scx.read(iprot)
10743
        else:
10744
          iprot.skip(ftype)
10745
      else:
10746
        iprot.skip(ftype)
10747
      iprot.readFieldEnd()
10748
    iprot.readStructEnd()
10749
 
10750
  def write(self, oprot):
10751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10753
      return
10754
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10755
    if self.scx is not None:
1976 varun.gupt 10756
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10757
      self.scx.write(oprot)
10758
      oprot.writeFieldEnd()
10759
    oprot.writeFieldStop()
10760
    oprot.writeStructEnd()
10761
 
3431 rajveer 10762
  def validate(self):
10763
    return
10764
 
10765
 
1976 varun.gupt 10766
  def __repr__(self):
10767
    L = ['%s=%r' % (key, value)
10768
      for key, value in self.__dict__.iteritems()]
10769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10770
 
10771
  def __eq__(self, other):
10772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10773
 
10774
  def __ne__(self, other):
10775
    return not (self == other)
10776
 
3554 varun.gupt 10777
class deleteDiscountsFromCart_args:
10778
  """
10779
  Attributes:
10780
   - cartId
10781
  """
10782
 
10783
  thrift_spec = (
10784
    None, # 0
10785
    (1, TType.I64, 'cartId', None, None, ), # 1
10786
  )
10787
 
10788
  def __init__(self, cartId=None,):
10789
    self.cartId = cartId
10790
 
10791
  def read(self, iprot):
10792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10794
      return
10795
    iprot.readStructBegin()
10796
    while True:
10797
      (fname, ftype, fid) = iprot.readFieldBegin()
10798
      if ftype == TType.STOP:
10799
        break
10800
      if fid == 1:
10801
        if ftype == TType.I64:
10802
          self.cartId = iprot.readI64();
10803
        else:
10804
          iprot.skip(ftype)
10805
      else:
10806
        iprot.skip(ftype)
10807
      iprot.readFieldEnd()
10808
    iprot.readStructEnd()
10809
 
10810
  def write(self, oprot):
10811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10813
      return
10814
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10815
    if self.cartId is not None:
10816
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10817
      oprot.writeI64(self.cartId)
10818
      oprot.writeFieldEnd()
10819
    oprot.writeFieldStop()
10820
    oprot.writeStructEnd()
10821
 
10822
  def validate(self):
10823
    return
10824
 
10825
 
10826
  def __repr__(self):
10827
    L = ['%s=%r' % (key, value)
10828
      for key, value in self.__dict__.iteritems()]
10829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10830
 
10831
  def __eq__(self, other):
10832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10833
 
10834
  def __ne__(self, other):
10835
    return not (self == other)
10836
 
10837
class deleteDiscountsFromCart_result:
10838
  """
10839
  Attributes:
10840
   - scx
10841
  """
10842
 
10843
  thrift_spec = (
10844
    None, # 0
10845
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10846
  )
10847
 
10848
  def __init__(self, scx=None,):
10849
    self.scx = scx
10850
 
10851
  def read(self, iprot):
10852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10854
      return
10855
    iprot.readStructBegin()
10856
    while True:
10857
      (fname, ftype, fid) = iprot.readFieldBegin()
10858
      if ftype == TType.STOP:
10859
        break
10860
      if fid == 1:
10861
        if ftype == TType.STRUCT:
10862
          self.scx = ShoppingCartException()
10863
          self.scx.read(iprot)
10864
        else:
10865
          iprot.skip(ftype)
10866
      else:
10867
        iprot.skip(ftype)
10868
      iprot.readFieldEnd()
10869
    iprot.readStructEnd()
10870
 
10871
  def write(self, oprot):
10872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10874
      return
10875
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10876
    if self.scx is not None:
10877
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10878
      self.scx.write(oprot)
10879
      oprot.writeFieldEnd()
10880
    oprot.writeFieldStop()
10881
    oprot.writeStructEnd()
10882
 
10883
  def validate(self):
10884
    return
10885
 
10886
 
10887
  def __repr__(self):
10888
    L = ['%s=%r' % (key, value)
10889
      for key, value in self.__dict__.iteritems()]
10890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10891
 
10892
  def __eq__(self, other):
10893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10894
 
10895
  def __ne__(self, other):
10896
    return not (self == other)
10897
 
10898
class saveDiscounts_args:
10899
  """
10900
  Attributes:
10901
   - discounts
10902
  """
10903
 
10904
  thrift_spec = (
10905
    None, # 0
10906
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10907
  )
10908
 
10909
  def __init__(self, discounts=None,):
10910
    self.discounts = discounts
10911
 
10912
  def read(self, iprot):
10913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10915
      return
10916
    iprot.readStructBegin()
10917
    while True:
10918
      (fname, ftype, fid) = iprot.readFieldBegin()
10919
      if ftype == TType.STOP:
10920
        break
10921
      if fid == 1:
10922
        if ftype == TType.LIST:
10923
          self.discounts = []
5326 rajveer 10924
          (_etype124, _size121) = iprot.readListBegin()
10925
          for _i125 in xrange(_size121):
10926
            _elem126 = Discount()
10927
            _elem126.read(iprot)
10928
            self.discounts.append(_elem126)
3554 varun.gupt 10929
          iprot.readListEnd()
10930
        else:
10931
          iprot.skip(ftype)
10932
      else:
10933
        iprot.skip(ftype)
10934
      iprot.readFieldEnd()
10935
    iprot.readStructEnd()
10936
 
10937
  def write(self, oprot):
10938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10940
      return
10941
    oprot.writeStructBegin('saveDiscounts_args')
10942
    if self.discounts is not None:
10943
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10944
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 10945
      for iter127 in self.discounts:
10946
        iter127.write(oprot)
3554 varun.gupt 10947
      oprot.writeListEnd()
10948
      oprot.writeFieldEnd()
10949
    oprot.writeFieldStop()
10950
    oprot.writeStructEnd()
10951
 
10952
  def validate(self):
10953
    return
10954
 
10955
 
10956
  def __repr__(self):
10957
    L = ['%s=%r' % (key, value)
10958
      for key, value in self.__dict__.iteritems()]
10959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10960
 
10961
  def __eq__(self, other):
10962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10963
 
10964
  def __ne__(self, other):
10965
    return not (self == other)
10966
 
10967
class saveDiscounts_result:
10968
  """
10969
  Attributes:
10970
   - scx
10971
  """
10972
 
10973
  thrift_spec = (
10974
    None, # 0
10975
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10976
  )
10977
 
10978
  def __init__(self, scx=None,):
10979
    self.scx = scx
10980
 
10981
  def read(self, iprot):
10982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10984
      return
10985
    iprot.readStructBegin()
10986
    while True:
10987
      (fname, ftype, fid) = iprot.readFieldBegin()
10988
      if ftype == TType.STOP:
10989
        break
10990
      if fid == 1:
10991
        if ftype == TType.STRUCT:
10992
          self.scx = ShoppingCartException()
10993
          self.scx.read(iprot)
10994
        else:
10995
          iprot.skip(ftype)
10996
      else:
10997
        iprot.skip(ftype)
10998
      iprot.readFieldEnd()
10999
    iprot.readStructEnd()
11000
 
11001
  def write(self, oprot):
11002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11004
      return
11005
    oprot.writeStructBegin('saveDiscounts_result')
11006
    if self.scx is not None:
11007
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11008
      self.scx.write(oprot)
11009
      oprot.writeFieldEnd()
11010
    oprot.writeFieldStop()
11011
    oprot.writeStructEnd()
11012
 
11013
  def validate(self):
11014
    return
11015
 
11016
 
11017
  def __repr__(self):
11018
    L = ['%s=%r' % (key, value)
11019
      for key, value in self.__dict__.iteritems()]
11020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11021
 
11022
  def __eq__(self, other):
11023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11024
 
11025
  def __ne__(self, other):
11026
    return not (self == other)
11027
 
690 chandransh 11028
class createOrders_args:
559 chandransh 11029
  """
11030
  Attributes:
11031
   - cartId
2815 vikas 11032
   - sessionSource
11033
   - sessionStartTime
3858 vikas 11034
   - firstSource
11035
   - firstSourceTime
5326 rajveer 11036
   - userId
559 chandransh 11037
  """
11038
 
11039
  thrift_spec = (
11040
    None, # 0
11041
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11042
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11043
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11044
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11045
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11046
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 11047
  )
11048
 
5326 rajveer 11049
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 11050
    self.cartId = cartId
2815 vikas 11051
    self.sessionSource = sessionSource
11052
    self.sessionStartTime = sessionStartTime
3858 vikas 11053
    self.firstSource = firstSource
11054
    self.firstSourceTime = firstSourceTime
5326 rajveer 11055
    self.userId = userId
559 chandransh 11056
 
11057
  def read(self, iprot):
11058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11060
      return
11061
    iprot.readStructBegin()
11062
    while True:
11063
      (fname, ftype, fid) = iprot.readFieldBegin()
11064
      if ftype == TType.STOP:
11065
        break
11066
      if fid == 1:
11067
        if ftype == TType.I64:
11068
          self.cartId = iprot.readI64();
11069
        else:
11070
          iprot.skip(ftype)
2815 vikas 11071
      elif fid == 2:
11072
        if ftype == TType.STRING:
11073
          self.sessionSource = iprot.readString();
11074
        else:
11075
          iprot.skip(ftype)
11076
      elif fid == 3:
11077
        if ftype == TType.I64:
11078
          self.sessionStartTime = iprot.readI64();
11079
        else:
11080
          iprot.skip(ftype)
3858 vikas 11081
      elif fid == 4:
11082
        if ftype == TType.STRING:
11083
          self.firstSource = iprot.readString();
11084
        else:
11085
          iprot.skip(ftype)
11086
      elif fid == 5:
11087
        if ftype == TType.I64:
11088
          self.firstSourceTime = iprot.readI64();
11089
        else:
11090
          iprot.skip(ftype)
5326 rajveer 11091
      elif fid == 6:
11092
        if ftype == TType.I64:
11093
          self.userId = iprot.readI64();
11094
        else:
11095
          iprot.skip(ftype)
559 chandransh 11096
      else:
11097
        iprot.skip(ftype)
11098
      iprot.readFieldEnd()
11099
    iprot.readStructEnd()
11100
 
11101
  def write(self, oprot):
11102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11104
      return
690 chandransh 11105
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11106
    if self.cartId is not None:
559 chandransh 11107
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11108
      oprot.writeI64(self.cartId)
11109
      oprot.writeFieldEnd()
3431 rajveer 11110
    if self.sessionSource is not None:
2815 vikas 11111
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11112
      oprot.writeString(self.sessionSource)
11113
      oprot.writeFieldEnd()
3431 rajveer 11114
    if self.sessionStartTime is not None:
2815 vikas 11115
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11116
      oprot.writeI64(self.sessionStartTime)
11117
      oprot.writeFieldEnd()
3858 vikas 11118
    if self.firstSource is not None:
11119
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11120
      oprot.writeString(self.firstSource)
11121
      oprot.writeFieldEnd()
11122
    if self.firstSourceTime is not None:
11123
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11124
      oprot.writeI64(self.firstSourceTime)
11125
      oprot.writeFieldEnd()
5326 rajveer 11126
    if self.userId is not None:
11127
      oprot.writeFieldBegin('userId', TType.I64, 6)
11128
      oprot.writeI64(self.userId)
11129
      oprot.writeFieldEnd()
559 chandransh 11130
    oprot.writeFieldStop()
11131
    oprot.writeStructEnd()
11132
 
3431 rajveer 11133
  def validate(self):
11134
    return
11135
 
11136
 
559 chandransh 11137
  def __repr__(self):
11138
    L = ['%s=%r' % (key, value)
11139
      for key, value in self.__dict__.iteritems()]
11140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11141
 
11142
  def __eq__(self, other):
11143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11144
 
11145
  def __ne__(self, other):
11146
    return not (self == other)
11147
 
690 chandransh 11148
class createOrders_result:
559 chandransh 11149
  """
11150
  Attributes:
94 ashish 11151
   - success
559 chandransh 11152
   - scx
94 ashish 11153
  """
11154
 
11155
  thrift_spec = (
575 chandransh 11156
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11157
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11158
  )
11159
 
559 chandransh 11160
  def __init__(self, success=None, scx=None,):
94 ashish 11161
    self.success = success
559 chandransh 11162
    self.scx = scx
94 ashish 11163
 
11164
  def read(self, iprot):
11165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11167
      return
11168
    iprot.readStructBegin()
11169
    while True:
11170
      (fname, ftype, fid) = iprot.readFieldBegin()
11171
      if ftype == TType.STOP:
11172
        break
11173
      if fid == 0:
575 chandransh 11174
        if ftype == TType.I64:
11175
          self.success = iprot.readI64();
94 ashish 11176
        else:
11177
          iprot.skip(ftype)
11178
      elif fid == 1:
11179
        if ftype == TType.STRUCT:
559 chandransh 11180
          self.scx = ShoppingCartException()
11181
          self.scx.read(iprot)
94 ashish 11182
        else:
11183
          iprot.skip(ftype)
11184
      else:
11185
        iprot.skip(ftype)
11186
      iprot.readFieldEnd()
11187
    iprot.readStructEnd()
11188
 
11189
  def write(self, oprot):
11190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11192
      return
690 chandransh 11193
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11194
    if self.success is not None:
575 chandransh 11195
      oprot.writeFieldBegin('success', TType.I64, 0)
11196
      oprot.writeI64(self.success)
94 ashish 11197
      oprot.writeFieldEnd()
3431 rajveer 11198
    if self.scx is not None:
559 chandransh 11199
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11200
      self.scx.write(oprot)
94 ashish 11201
      oprot.writeFieldEnd()
11202
    oprot.writeFieldStop()
11203
    oprot.writeStructEnd()
11204
 
3431 rajveer 11205
  def validate(self):
11206
    return
11207
 
11208
 
94 ashish 11209
  def __repr__(self):
11210
    L = ['%s=%r' % (key, value)
11211
      for key, value in self.__dict__.iteritems()]
11212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11213
 
11214
  def __eq__(self, other):
11215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11216
 
11217
  def __ne__(self, other):
11218
    return not (self == other)
11219
 
559 chandransh 11220
class validateCart_args:
94 ashish 11221
  """
11222
  Attributes:
559 chandransh 11223
   - cartId
3557 rajveer 11224
   - sourceId
94 ashish 11225
  """
11226
 
11227
  thrift_spec = (
11228
    None, # 0
559 chandransh 11229
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11230
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11231
  )
11232
 
3557 rajveer 11233
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11234
    self.cartId = cartId
3557 rajveer 11235
    self.sourceId = sourceId
94 ashish 11236
 
11237
  def read(self, iprot):
11238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11240
      return
11241
    iprot.readStructBegin()
11242
    while True:
11243
      (fname, ftype, fid) = iprot.readFieldBegin()
11244
      if ftype == TType.STOP:
11245
        break
11246
      if fid == 1:
11247
        if ftype == TType.I64:
559 chandransh 11248
          self.cartId = iprot.readI64();
94 ashish 11249
        else:
11250
          iprot.skip(ftype)
3557 rajveer 11251
      elif fid == 2:
11252
        if ftype == TType.I64:
11253
          self.sourceId = iprot.readI64();
11254
        else:
11255
          iprot.skip(ftype)
94 ashish 11256
      else:
11257
        iprot.skip(ftype)
11258
      iprot.readFieldEnd()
11259
    iprot.readStructEnd()
11260
 
11261
  def write(self, oprot):
11262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11264
      return
559 chandransh 11265
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11266
    if self.cartId is not None:
559 chandransh 11267
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11268
      oprot.writeI64(self.cartId)
94 ashish 11269
      oprot.writeFieldEnd()
3557 rajveer 11270
    if self.sourceId is not None:
11271
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11272
      oprot.writeI64(self.sourceId)
11273
      oprot.writeFieldEnd()
94 ashish 11274
    oprot.writeFieldStop()
11275
    oprot.writeStructEnd()
11276
 
3431 rajveer 11277
  def validate(self):
11278
    return
11279
 
11280
 
94 ashish 11281
  def __repr__(self):
11282
    L = ['%s=%r' % (key, value)
11283
      for key, value in self.__dict__.iteritems()]
11284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11285
 
11286
  def __eq__(self, other):
11287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11288
 
11289
  def __ne__(self, other):
11290
    return not (self == other)
11291
 
559 chandransh 11292
class validateCart_result:
94 ashish 11293
  """
11294
  Attributes:
11295
   - success
575 chandransh 11296
   - scex
94 ashish 11297
  """
11298
 
11299
  thrift_spec = (
1466 ankur.sing 11300
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11301
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11302
  )
11303
 
575 chandransh 11304
  def __init__(self, success=None, scex=None,):
94 ashish 11305
    self.success = success
575 chandransh 11306
    self.scex = scex
94 ashish 11307
 
11308
  def read(self, iprot):
11309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11311
      return
11312
    iprot.readStructBegin()
11313
    while True:
11314
      (fname, ftype, fid) = iprot.readFieldBegin()
11315
      if ftype == TType.STOP:
11316
        break
11317
      if fid == 0:
1466 ankur.sing 11318
        if ftype == TType.STRING:
11319
          self.success = iprot.readString();
94 ashish 11320
        else:
11321
          iprot.skip(ftype)
575 chandransh 11322
      elif fid == 1:
11323
        if ftype == TType.STRUCT:
11324
          self.scex = ShoppingCartException()
11325
          self.scex.read(iprot)
11326
        else:
11327
          iprot.skip(ftype)
94 ashish 11328
      else:
11329
        iprot.skip(ftype)
11330
      iprot.readFieldEnd()
11331
    iprot.readStructEnd()
11332
 
11333
  def write(self, oprot):
11334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11336
      return
559 chandransh 11337
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11338
    if self.success is not None:
1466 ankur.sing 11339
      oprot.writeFieldBegin('success', TType.STRING, 0)
11340
      oprot.writeString(self.success)
94 ashish 11341
      oprot.writeFieldEnd()
3431 rajveer 11342
    if self.scex is not None:
575 chandransh 11343
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11344
      self.scex.write(oprot)
11345
      oprot.writeFieldEnd()
559 chandransh 11346
    oprot.writeFieldStop()
11347
    oprot.writeStructEnd()
11348
 
3431 rajveer 11349
  def validate(self):
11350
    return
11351
 
11352
 
559 chandransh 11353
  def __repr__(self):
11354
    L = ['%s=%r' % (key, value)
11355
      for key, value in self.__dict__.iteritems()]
11356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11357
 
11358
  def __eq__(self, other):
11359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11360
 
11361
  def __ne__(self, other):
11362
    return not (self == other)
11363
 
690 chandransh 11364
class mergeCart_args:
575 chandransh 11365
  """
11366
  Attributes:
690 chandransh 11367
   - fromCartId
11368
   - toCartId
11369
  """
11370
 
11371
  thrift_spec = (
11372
    None, # 0
11373
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11374
    (2, TType.I64, 'toCartId', None, None, ), # 2
11375
  )
11376
 
11377
  def __init__(self, fromCartId=None, toCartId=None,):
11378
    self.fromCartId = fromCartId
11379
    self.toCartId = toCartId
11380
 
11381
  def read(self, iprot):
11382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11384
      return
11385
    iprot.readStructBegin()
11386
    while True:
11387
      (fname, ftype, fid) = iprot.readFieldBegin()
11388
      if ftype == TType.STOP:
11389
        break
11390
      if fid == 1:
11391
        if ftype == TType.I64:
11392
          self.fromCartId = iprot.readI64();
11393
        else:
11394
          iprot.skip(ftype)
11395
      elif fid == 2:
11396
        if ftype == TType.I64:
11397
          self.toCartId = iprot.readI64();
11398
        else:
11399
          iprot.skip(ftype)
11400
      else:
11401
        iprot.skip(ftype)
11402
      iprot.readFieldEnd()
11403
    iprot.readStructEnd()
11404
 
11405
  def write(self, oprot):
11406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11408
      return
11409
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11410
    if self.fromCartId is not None:
690 chandransh 11411
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11412
      oprot.writeI64(self.fromCartId)
11413
      oprot.writeFieldEnd()
3431 rajveer 11414
    if self.toCartId is not None:
690 chandransh 11415
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11416
      oprot.writeI64(self.toCartId)
11417
      oprot.writeFieldEnd()
11418
    oprot.writeFieldStop()
11419
    oprot.writeStructEnd()
11420
 
3431 rajveer 11421
  def validate(self):
11422
    return
11423
 
11424
 
690 chandransh 11425
  def __repr__(self):
11426
    L = ['%s=%r' % (key, value)
11427
      for key, value in self.__dict__.iteritems()]
11428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11429
 
11430
  def __eq__(self, other):
11431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11432
 
11433
  def __ne__(self, other):
11434
    return not (self == other)
11435
 
11436
class mergeCart_result:
11437
 
11438
  thrift_spec = (
11439
  )
11440
 
11441
  def read(self, iprot):
11442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11444
      return
11445
    iprot.readStructBegin()
11446
    while True:
11447
      (fname, ftype, fid) = iprot.readFieldBegin()
11448
      if ftype == TType.STOP:
11449
        break
11450
      else:
11451
        iprot.skip(ftype)
11452
      iprot.readFieldEnd()
11453
    iprot.readStructEnd()
11454
 
11455
  def write(self, oprot):
11456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11458
      return
11459
    oprot.writeStructBegin('mergeCart_result')
11460
    oprot.writeFieldStop()
11461
    oprot.writeStructEnd()
11462
 
3431 rajveer 11463
  def validate(self):
11464
    return
11465
 
11466
 
690 chandransh 11467
  def __repr__(self):
11468
    L = ['%s=%r' % (key, value)
11469
      for key, value in self.__dict__.iteritems()]
11470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11471
 
11472
  def __eq__(self, other):
11473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11474
 
11475
  def __ne__(self, other):
11476
    return not (self == other)
11477
 
11478
class checkOut_args:
11479
  """
11480
  Attributes:
575 chandransh 11481
   - cartId
11482
  """
11483
 
11484
  thrift_spec = (
11485
    None, # 0
11486
    (1, TType.I64, 'cartId', None, None, ), # 1
11487
  )
11488
 
11489
  def __init__(self, cartId=None,):
11490
    self.cartId = cartId
11491
 
11492
  def read(self, iprot):
11493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11495
      return
11496
    iprot.readStructBegin()
11497
    while True:
11498
      (fname, ftype, fid) = iprot.readFieldBegin()
11499
      if ftype == TType.STOP:
11500
        break
11501
      if fid == 1:
11502
        if ftype == TType.I64:
11503
          self.cartId = iprot.readI64();
11504
        else:
11505
          iprot.skip(ftype)
11506
      else:
11507
        iprot.skip(ftype)
11508
      iprot.readFieldEnd()
11509
    iprot.readStructEnd()
11510
 
11511
  def write(self, oprot):
11512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11514
      return
690 chandransh 11515
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11516
    if self.cartId is not None:
575 chandransh 11517
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11518
      oprot.writeI64(self.cartId)
11519
      oprot.writeFieldEnd()
11520
    oprot.writeFieldStop()
11521
    oprot.writeStructEnd()
11522
 
3431 rajveer 11523
  def validate(self):
11524
    return
11525
 
11526
 
575 chandransh 11527
  def __repr__(self):
11528
    L = ['%s=%r' % (key, value)
11529
      for key, value in self.__dict__.iteritems()]
11530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11531
 
11532
  def __eq__(self, other):
11533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11534
 
11535
  def __ne__(self, other):
11536
    return not (self == other)
11537
 
690 chandransh 11538
class checkOut_result:
575 chandransh 11539
  """
11540
  Attributes:
11541
   - success
11542
   - scex
11543
  """
11544
 
11545
  thrift_spec = (
11546
    (0, TType.BOOL, 'success', None, None, ), # 0
11547
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11548
  )
11549
 
11550
  def __init__(self, success=None, scex=None,):
11551
    self.success = success
11552
    self.scex = scex
11553
 
11554
  def read(self, iprot):
11555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11557
      return
11558
    iprot.readStructBegin()
11559
    while True:
11560
      (fname, ftype, fid) = iprot.readFieldBegin()
11561
      if ftype == TType.STOP:
11562
        break
11563
      if fid == 0:
11564
        if ftype == TType.BOOL:
11565
          self.success = iprot.readBool();
11566
        else:
11567
          iprot.skip(ftype)
11568
      elif fid == 1:
11569
        if ftype == TType.STRUCT:
11570
          self.scex = ShoppingCartException()
11571
          self.scex.read(iprot)
11572
        else:
11573
          iprot.skip(ftype)
11574
      else:
11575
        iprot.skip(ftype)
11576
      iprot.readFieldEnd()
11577
    iprot.readStructEnd()
11578
 
11579
  def write(self, oprot):
11580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11582
      return
690 chandransh 11583
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11584
    if self.success is not None:
575 chandransh 11585
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11586
      oprot.writeBool(self.success)
11587
      oprot.writeFieldEnd()
3431 rajveer 11588
    if self.scex is not None:
575 chandransh 11589
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11590
      self.scex.write(oprot)
11591
      oprot.writeFieldEnd()
11592
    oprot.writeFieldStop()
11593
    oprot.writeStructEnd()
11594
 
3431 rajveer 11595
  def validate(self):
11596
    return
11597
 
11598
 
575 chandransh 11599
  def __repr__(self):
11600
    L = ['%s=%r' % (key, value)
11601
      for key, value in self.__dict__.iteritems()]
11602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11603
 
11604
  def __eq__(self, other):
11605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11606
 
11607
  def __ne__(self, other):
11608
    return not (self == other)
11609
 
690 chandransh 11610
class resetCart_args:
559 chandransh 11611
  """
11612
  Attributes:
690 chandransh 11613
   - cartId
11614
   - items
559 chandransh 11615
  """
11616
 
11617
  thrift_spec = (
11618
    None, # 0
690 chandransh 11619
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11620
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11621
  )
11622
 
690 chandransh 11623
  def __init__(self, cartId=None, items=None,):
11624
    self.cartId = cartId
11625
    self.items = items
559 chandransh 11626
 
11627
  def read(self, iprot):
11628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11630
      return
11631
    iprot.readStructBegin()
11632
    while True:
11633
      (fname, ftype, fid) = iprot.readFieldBegin()
11634
      if ftype == TType.STOP:
11635
        break
11636
      if fid == 1:
11637
        if ftype == TType.I64:
690 chandransh 11638
          self.cartId = iprot.readI64();
559 chandransh 11639
        else:
11640
          iprot.skip(ftype)
11641
      elif fid == 2:
690 chandransh 11642
        if ftype == TType.MAP:
11643
          self.items = {}
5326 rajveer 11644
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11645
          for _i132 in xrange(_size128):
11646
            _key133 = iprot.readI64();
11647
            _val134 = iprot.readDouble();
11648
            self.items[_key133] = _val134
690 chandransh 11649
          iprot.readMapEnd()
559 chandransh 11650
        else:
11651
          iprot.skip(ftype)
11652
      else:
11653
        iprot.skip(ftype)
11654
      iprot.readFieldEnd()
11655
    iprot.readStructEnd()
11656
 
11657
  def write(self, oprot):
11658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11660
      return
690 chandransh 11661
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11662
    if self.cartId is not None:
690 chandransh 11663
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11664
      oprot.writeI64(self.cartId)
94 ashish 11665
      oprot.writeFieldEnd()
3431 rajveer 11666
    if self.items is not None:
690 chandransh 11667
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11668
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11669
      for kiter135,viter136 in self.items.items():
11670
        oprot.writeI64(kiter135)
11671
        oprot.writeDouble(viter136)
690 chandransh 11672
      oprot.writeMapEnd()
559 chandransh 11673
      oprot.writeFieldEnd()
94 ashish 11674
    oprot.writeFieldStop()
11675
    oprot.writeStructEnd()
11676
 
3431 rajveer 11677
  def validate(self):
11678
    return
11679
 
11680
 
94 ashish 11681
  def __repr__(self):
11682
    L = ['%s=%r' % (key, value)
11683
      for key, value in self.__dict__.iteritems()]
11684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11685
 
11686
  def __eq__(self, other):
11687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11688
 
11689
  def __ne__(self, other):
11690
    return not (self == other)
11691
 
690 chandransh 11692
class resetCart_result:
11693
  """
11694
  Attributes:
11695
   - success
11696
   - scex
11697
  """
559 chandransh 11698
 
11699
  thrift_spec = (
690 chandransh 11700
    (0, TType.BOOL, 'success', None, None, ), # 0
11701
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11702
  )
11703
 
690 chandransh 11704
  def __init__(self, success=None, scex=None,):
11705
    self.success = success
11706
    self.scex = scex
11707
 
559 chandransh 11708
  def read(self, iprot):
11709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11711
      return
11712
    iprot.readStructBegin()
11713
    while True:
11714
      (fname, ftype, fid) = iprot.readFieldBegin()
11715
      if ftype == TType.STOP:
11716
        break
690 chandransh 11717
      if fid == 0:
11718
        if ftype == TType.BOOL:
11719
          self.success = iprot.readBool();
11720
        else:
11721
          iprot.skip(ftype)
11722
      elif fid == 1:
11723
        if ftype == TType.STRUCT:
11724
          self.scex = ShoppingCartException()
11725
          self.scex.read(iprot)
11726
        else:
11727
          iprot.skip(ftype)
559 chandransh 11728
      else:
11729
        iprot.skip(ftype)
11730
      iprot.readFieldEnd()
11731
    iprot.readStructEnd()
11732
 
11733
  def write(self, oprot):
11734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11736
      return
690 chandransh 11737
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11738
    if self.success is not None:
690 chandransh 11739
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11740
      oprot.writeBool(self.success)
11741
      oprot.writeFieldEnd()
3431 rajveer 11742
    if self.scex is not None:
690 chandransh 11743
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11744
      self.scex.write(oprot)
11745
      oprot.writeFieldEnd()
559 chandransh 11746
    oprot.writeFieldStop()
11747
    oprot.writeStructEnd()
11748
 
3431 rajveer 11749
  def validate(self):
11750
    return
11751
 
11752
 
559 chandransh 11753
  def __repr__(self):
11754
    L = ['%s=%r' % (key, value)
11755
      for key, value in self.__dict__.iteritems()]
11756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11757
 
11758
  def __eq__(self, other):
11759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11760
 
11761
  def __ne__(self, other):
11762
    return not (self == other)
11763
 
2981 rajveer 11764
class getUserCount_args:
94 ashish 11765
  """
11766
  Attributes:
2981 rajveer 11767
   - userType
559 chandransh 11768
  """
11769
 
11770
  thrift_spec = (
11771
    None, # 0
2981 rajveer 11772
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11773
  )
11774
 
2981 rajveer 11775
  def __init__(self, userType=None,):
11776
    self.userType = userType
559 chandransh 11777
 
11778
  def read(self, iprot):
11779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11781
      return
11782
    iprot.readStructBegin()
11783
    while True:
11784
      (fname, ftype, fid) = iprot.readFieldBegin()
11785
      if ftype == TType.STOP:
11786
        break
11787
      if fid == 1:
2981 rajveer 11788
        if ftype == TType.I32:
11789
          self.userType = iprot.readI32();
559 chandransh 11790
        else:
11791
          iprot.skip(ftype)
11792
      else:
11793
        iprot.skip(ftype)
11794
      iprot.readFieldEnd()
11795
    iprot.readStructEnd()
11796
 
11797
  def write(self, oprot):
11798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11800
      return
2981 rajveer 11801
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11802
    if self.userType is not None:
2981 rajveer 11803
      oprot.writeFieldBegin('userType', TType.I32, 1)
11804
      oprot.writeI32(self.userType)
559 chandransh 11805
      oprot.writeFieldEnd()
11806
    oprot.writeFieldStop()
11807
    oprot.writeStructEnd()
11808
 
3431 rajveer 11809
  def validate(self):
11810
    return
11811
 
11812
 
559 chandransh 11813
  def __repr__(self):
11814
    L = ['%s=%r' % (key, value)
11815
      for key, value in self.__dict__.iteritems()]
11816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11817
 
11818
  def __eq__(self, other):
11819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11820
 
11821
  def __ne__(self, other):
11822
    return not (self == other)
11823
 
2981 rajveer 11824
class getUserCount_result:
94 ashish 11825
  """
11826
  Attributes:
11827
   - success
11828
  """
11829
 
11830
  thrift_spec = (
2981 rajveer 11831
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11832
  )
11833
 
2981 rajveer 11834
  def __init__(self, success=None,):
94 ashish 11835
    self.success = success
11836
 
11837
  def read(self, iprot):
11838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11840
      return
11841
    iprot.readStructBegin()
11842
    while True:
11843
      (fname, ftype, fid) = iprot.readFieldBegin()
11844
      if ftype == TType.STOP:
11845
        break
11846
      if fid == 0:
2981 rajveer 11847
        if ftype == TType.I64:
11848
          self.success = iprot.readI64();
94 ashish 11849
        else:
11850
          iprot.skip(ftype)
11851
      else:
11852
        iprot.skip(ftype)
11853
      iprot.readFieldEnd()
11854
    iprot.readStructEnd()
11855
 
11856
  def write(self, oprot):
11857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11859
      return
2981 rajveer 11860
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11861
    if self.success is not None:
2981 rajveer 11862
      oprot.writeFieldBegin('success', TType.I64, 0)
11863
      oprot.writeI64(self.success)
94 ashish 11864
      oprot.writeFieldEnd()
11865
    oprot.writeFieldStop()
11866
    oprot.writeStructEnd()
11867
 
3431 rajveer 11868
  def validate(self):
11869
    return
11870
 
11871
 
94 ashish 11872
  def __repr__(self):
11873
    L = ['%s=%r' % (key, value)
11874
      for key, value in self.__dict__.iteritems()]
11875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11876
 
11877
  def __eq__(self, other):
11878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11879
 
11880
  def __ne__(self, other):
11881
    return not (self == other)
11882
 
2981 rajveer 11883
class getAllUsers_args:
94 ashish 11884
  """
11885
  Attributes:
2981 rajveer 11886
   - userType
11887
   - startDate
11888
   - endDate
94 ashish 11889
  """
11890
 
11891
  thrift_spec = (
11892
    None, # 0
2981 rajveer 11893
    (1, TType.I32, 'userType', None, None, ), # 1
11894
    (2, TType.I64, 'startDate', None, None, ), # 2
11895
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11896
  )
11897
 
2981 rajveer 11898
  def __init__(self, userType=None, startDate=None, endDate=None,):
11899
    self.userType = userType
11900
    self.startDate = startDate
11901
    self.endDate = endDate
94 ashish 11902
 
11903
  def read(self, iprot):
11904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11906
      return
11907
    iprot.readStructBegin()
11908
    while True:
11909
      (fname, ftype, fid) = iprot.readFieldBegin()
11910
      if ftype == TType.STOP:
11911
        break
11912
      if fid == 1:
2981 rajveer 11913
        if ftype == TType.I32:
11914
          self.userType = iprot.readI32();
94 ashish 11915
        else:
11916
          iprot.skip(ftype)
11917
      elif fid == 2:
559 chandransh 11918
        if ftype == TType.I64:
2981 rajveer 11919
          self.startDate = iprot.readI64();
94 ashish 11920
        else:
11921
          iprot.skip(ftype)
2981 rajveer 11922
      elif fid == 3:
11923
        if ftype == TType.I64:
11924
          self.endDate = iprot.readI64();
11925
        else:
11926
          iprot.skip(ftype)
94 ashish 11927
      else:
11928
        iprot.skip(ftype)
11929
      iprot.readFieldEnd()
11930
    iprot.readStructEnd()
11931
 
11932
  def write(self, oprot):
11933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11935
      return
2981 rajveer 11936
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11937
    if self.userType is not None:
2981 rajveer 11938
      oprot.writeFieldBegin('userType', TType.I32, 1)
11939
      oprot.writeI32(self.userType)
94 ashish 11940
      oprot.writeFieldEnd()
3431 rajveer 11941
    if self.startDate is not None:
2981 rajveer 11942
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11943
      oprot.writeI64(self.startDate)
94 ashish 11944
      oprot.writeFieldEnd()
3431 rajveer 11945
    if self.endDate is not None:
2981 rajveer 11946
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11947
      oprot.writeI64(self.endDate)
11948
      oprot.writeFieldEnd()
94 ashish 11949
    oprot.writeFieldStop()
11950
    oprot.writeStructEnd()
11951
 
3431 rajveer 11952
  def validate(self):
11953
    return
11954
 
11955
 
94 ashish 11956
  def __repr__(self):
11957
    L = ['%s=%r' % (key, value)
11958
      for key, value in self.__dict__.iteritems()]
11959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11960
 
11961
  def __eq__(self, other):
11962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11963
 
11964
  def __ne__(self, other):
11965
    return not (self == other)
11966
 
2981 rajveer 11967
class getAllUsers_result:
94 ashish 11968
  """
11969
  Attributes:
11970
   - success
11971
  """
11972
 
11973
  thrift_spec = (
2981 rajveer 11974
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11975
  )
11976
 
2981 rajveer 11977
  def __init__(self, success=None,):
94 ashish 11978
    self.success = success
11979
 
11980
  def read(self, iprot):
11981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11983
      return
11984
    iprot.readStructBegin()
11985
    while True:
11986
      (fname, ftype, fid) = iprot.readFieldBegin()
11987
      if ftype == TType.STOP:
11988
        break
11989
      if fid == 0:
2981 rajveer 11990
        if ftype == TType.LIST:
11991
          self.success = []
5326 rajveer 11992
          (_etype140, _size137) = iprot.readListBegin()
11993
          for _i141 in xrange(_size137):
11994
            _elem142 = User()
11995
            _elem142.read(iprot)
11996
            self.success.append(_elem142)
2981 rajveer 11997
          iprot.readListEnd()
94 ashish 11998
        else:
11999
          iprot.skip(ftype)
12000
      else:
12001
        iprot.skip(ftype)
12002
      iprot.readFieldEnd()
12003
    iprot.readStructEnd()
12004
 
12005
  def write(self, oprot):
12006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12008
      return
2981 rajveer 12009
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12010
    if self.success is not None:
2981 rajveer 12011
      oprot.writeFieldBegin('success', TType.LIST, 0)
12012
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12013
      for iter143 in self.success:
12014
        iter143.write(oprot)
2981 rajveer 12015
      oprot.writeListEnd()
94 ashish 12016
      oprot.writeFieldEnd()
12017
    oprot.writeFieldStop()
12018
    oprot.writeStructEnd()
12019
 
3431 rajveer 12020
  def validate(self):
12021
    return
12022
 
12023
 
94 ashish 12024
  def __repr__(self):
12025
    L = ['%s=%r' % (key, value)
12026
      for key, value in self.__dict__.iteritems()]
12027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12028
 
12029
  def __eq__(self, other):
12030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12031
 
12032
  def __ne__(self, other):
12033
    return not (self == other)
12034
 
2981 rajveer 12035
class putUserNote_args:
130 ashish 12036
  """
12037
  Attributes:
2981 rajveer 12038
   - user_id
12039
   - entity_id
12040
   - slide
12041
   - note
130 ashish 12042
  """
94 ashish 12043
 
130 ashish 12044
  thrift_spec = (
12045
    None, # 0
2981 rajveer 12046
    (1, TType.I64, 'user_id', None, None, ), # 1
12047
    (2, TType.I64, 'entity_id', None, None, ), # 2
12048
    (3, TType.STRING, 'slide', None, None, ), # 3
12049
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12050
  )
12051
 
2981 rajveer 12052
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12053
    self.user_id = user_id
12054
    self.entity_id = entity_id
12055
    self.slide = slide
12056
    self.note = note
130 ashish 12057
 
12058
  def read(self, iprot):
12059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12061
      return
12062
    iprot.readStructBegin()
12063
    while True:
12064
      (fname, ftype, fid) = iprot.readFieldBegin()
12065
      if ftype == TType.STOP:
12066
        break
12067
      if fid == 1:
12068
        if ftype == TType.I64:
2981 rajveer 12069
          self.user_id = iprot.readI64();
130 ashish 12070
        else:
12071
          iprot.skip(ftype)
559 chandransh 12072
      elif fid == 2:
12073
        if ftype == TType.I64:
2981 rajveer 12074
          self.entity_id = iprot.readI64();
559 chandransh 12075
        else:
12076
          iprot.skip(ftype)
2981 rajveer 12077
      elif fid == 3:
12078
        if ftype == TType.STRING:
12079
          self.slide = iprot.readString();
12080
        else:
12081
          iprot.skip(ftype)
12082
      elif fid == 4:
12083
        if ftype == TType.STRING:
12084
          self.note = iprot.readString();
12085
        else:
12086
          iprot.skip(ftype)
130 ashish 12087
      else:
12088
        iprot.skip(ftype)
12089
      iprot.readFieldEnd()
12090
    iprot.readStructEnd()
12091
 
12092
  def write(self, oprot):
12093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12095
      return
2981 rajveer 12096
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12097
    if self.user_id is not None:
2981 rajveer 12098
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12099
      oprot.writeI64(self.user_id)
130 ashish 12100
      oprot.writeFieldEnd()
3431 rajveer 12101
    if self.entity_id is not None:
2981 rajveer 12102
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12103
      oprot.writeI64(self.entity_id)
559 chandransh 12104
      oprot.writeFieldEnd()
3431 rajveer 12105
    if self.slide is not None:
2981 rajveer 12106
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12107
      oprot.writeString(self.slide)
12108
      oprot.writeFieldEnd()
3431 rajveer 12109
    if self.note is not None:
2981 rajveer 12110
      oprot.writeFieldBegin('note', TType.STRING, 4)
12111
      oprot.writeString(self.note)
12112
      oprot.writeFieldEnd()
130 ashish 12113
    oprot.writeFieldStop()
12114
    oprot.writeStructEnd()
12115
 
3431 rajveer 12116
  def validate(self):
12117
    return
12118
 
12119
 
130 ashish 12120
  def __repr__(self):
12121
    L = ['%s=%r' % (key, value)
12122
      for key, value in self.__dict__.iteritems()]
12123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12124
 
12125
  def __eq__(self, other):
12126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12127
 
12128
  def __ne__(self, other):
12129
    return not (self == other)
12130
 
2981 rajveer 12131
class putUserNote_result:
559 chandransh 12132
 
12133
  thrift_spec = (
12134
  )
12135
 
12136
  def read(self, iprot):
12137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12139
      return
12140
    iprot.readStructBegin()
12141
    while True:
12142
      (fname, ftype, fid) = iprot.readFieldBegin()
12143
      if ftype == TType.STOP:
12144
        break
12145
      else:
12146
        iprot.skip(ftype)
12147
      iprot.readFieldEnd()
12148
    iprot.readStructEnd()
12149
 
12150
  def write(self, oprot):
12151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12153
      return
2981 rajveer 12154
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12155
    oprot.writeFieldStop()
12156
    oprot.writeStructEnd()
12157
 
3431 rajveer 12158
  def validate(self):
12159
    return
12160
 
12161
 
559 chandransh 12162
  def __repr__(self):
12163
    L = ['%s=%r' % (key, value)
12164
      for key, value in self.__dict__.iteritems()]
12165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12166
 
12167
  def __eq__(self, other):
12168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12169
 
12170
  def __ne__(self, other):
12171
    return not (self == other)
12172
 
2981 rajveer 12173
class getUserNotes_args:
559 chandransh 12174
  """
12175
  Attributes:
2981 rajveer 12176
   - user_id
12177
   - entity_id
559 chandransh 12178
  """
12179
 
12180
  thrift_spec = (
12181
    None, # 0
2981 rajveer 12182
    (1, TType.I64, 'user_id', None, None, ), # 1
12183
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12184
  )
12185
 
2981 rajveer 12186
  def __init__(self, user_id=None, entity_id=None,):
12187
    self.user_id = user_id
12188
    self.entity_id = entity_id
559 chandransh 12189
 
12190
  def read(self, iprot):
12191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12193
      return
12194
    iprot.readStructBegin()
12195
    while True:
12196
      (fname, ftype, fid) = iprot.readFieldBegin()
12197
      if ftype == TType.STOP:
12198
        break
12199
      if fid == 1:
12200
        if ftype == TType.I64:
2981 rajveer 12201
          self.user_id = iprot.readI64();
559 chandransh 12202
        else:
12203
          iprot.skip(ftype)
12204
      elif fid == 2:
12205
        if ftype == TType.I64:
2981 rajveer 12206
          self.entity_id = iprot.readI64();
559 chandransh 12207
        else:
12208
          iprot.skip(ftype)
12209
      else:
12210
        iprot.skip(ftype)
12211
      iprot.readFieldEnd()
12212
    iprot.readStructEnd()
12213
 
12214
  def write(self, oprot):
12215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12217
      return
2981 rajveer 12218
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12219
    if self.user_id is not None:
2981 rajveer 12220
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12221
      oprot.writeI64(self.user_id)
559 chandransh 12222
      oprot.writeFieldEnd()
3431 rajveer 12223
    if self.entity_id is not None:
2981 rajveer 12224
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12225
      oprot.writeI64(self.entity_id)
559 chandransh 12226
      oprot.writeFieldEnd()
12227
    oprot.writeFieldStop()
12228
    oprot.writeStructEnd()
12229
 
3431 rajveer 12230
  def validate(self):
12231
    return
12232
 
12233
 
559 chandransh 12234
  def __repr__(self):
12235
    L = ['%s=%r' % (key, value)
12236
      for key, value in self.__dict__.iteritems()]
12237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12238
 
12239
  def __eq__(self, other):
12240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12241
 
12242
  def __ne__(self, other):
12243
    return not (self == other)
12244
 
2981 rajveer 12245
class getUserNotes_result:
12246
  """
12247
  Attributes:
12248
   - success
12249
  """
559 chandransh 12250
 
12251
  thrift_spec = (
2981 rajveer 12252
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12253
  )
12254
 
2981 rajveer 12255
  def __init__(self, success=None,):
12256
    self.success = success
12257
 
559 chandransh 12258
  def read(self, iprot):
12259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12261
      return
12262
    iprot.readStructBegin()
12263
    while True:
12264
      (fname, ftype, fid) = iprot.readFieldBegin()
12265
      if ftype == TType.STOP:
12266
        break
2981 rajveer 12267
      if fid == 0:
12268
        if ftype == TType.LIST:
12269
          self.success = []
5326 rajveer 12270
          (_etype147, _size144) = iprot.readListBegin()
12271
          for _i148 in xrange(_size144):
12272
            _elem149 = UserNote()
12273
            _elem149.read(iprot)
12274
            self.success.append(_elem149)
2981 rajveer 12275
          iprot.readListEnd()
12276
        else:
12277
          iprot.skip(ftype)
559 chandransh 12278
      else:
12279
        iprot.skip(ftype)
12280
      iprot.readFieldEnd()
12281
    iprot.readStructEnd()
12282
 
12283
  def write(self, oprot):
12284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12286
      return
2981 rajveer 12287
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12288
    if self.success is not None:
2981 rajveer 12289
      oprot.writeFieldBegin('success', TType.LIST, 0)
12290
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12291
      for iter150 in self.success:
12292
        iter150.write(oprot)
2981 rajveer 12293
      oprot.writeListEnd()
12294
      oprot.writeFieldEnd()
559 chandransh 12295
    oprot.writeFieldStop()
12296
    oprot.writeStructEnd()
12297
 
3431 rajveer 12298
  def validate(self):
12299
    return
12300
 
12301
 
559 chandransh 12302
  def __repr__(self):
12303
    L = ['%s=%r' % (key, value)
12304
      for key, value in self.__dict__.iteritems()]
12305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12306
 
12307
  def __eq__(self, other):
12308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12309
 
12310
  def __ne__(self, other):
12311
    return not (self == other)
12312
 
2981 rajveer 12313
class getMyResearchItems_args:
559 chandransh 12314
  """
12315
  Attributes:
772 rajveer 12316
   - userId
559 chandransh 12317
  """
12318
 
12319
  thrift_spec = (
12320
    None, # 0
772 rajveer 12321
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12322
  )
12323
 
772 rajveer 12324
  def __init__(self, userId=None,):
12325
    self.userId = userId
559 chandransh 12326
 
12327
  def read(self, iprot):
12328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12330
      return
12331
    iprot.readStructBegin()
12332
    while True:
12333
      (fname, ftype, fid) = iprot.readFieldBegin()
12334
      if ftype == TType.STOP:
12335
        break
12336
      if fid == 1:
12337
        if ftype == TType.I64:
772 rajveer 12338
          self.userId = iprot.readI64();
559 chandransh 12339
        else:
12340
          iprot.skip(ftype)
12341
      else:
12342
        iprot.skip(ftype)
12343
      iprot.readFieldEnd()
12344
    iprot.readStructEnd()
12345
 
12346
  def write(self, oprot):
12347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12349
      return
2981 rajveer 12350
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12351
    if self.userId is not None:
772 rajveer 12352
      oprot.writeFieldBegin('userId', TType.I64, 1)
12353
      oprot.writeI64(self.userId)
559 chandransh 12354
      oprot.writeFieldEnd()
12355
    oprot.writeFieldStop()
12356
    oprot.writeStructEnd()
12357
 
3431 rajveer 12358
  def validate(self):
12359
    return
12360
 
12361
 
559 chandransh 12362
  def __repr__(self):
12363
    L = ['%s=%r' % (key, value)
12364
      for key, value in self.__dict__.iteritems()]
12365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12366
 
12367
  def __eq__(self, other):
12368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12369
 
12370
  def __ne__(self, other):
12371
    return not (self == other)
12372
 
2981 rajveer 12373
class getMyResearchItems_result:
559 chandransh 12374
  """
12375
  Attributes:
130 ashish 12376
   - success
559 chandransh 12377
   - scx
130 ashish 12378
  """
12379
 
12380
  thrift_spec = (
2981 rajveer 12381
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12382
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12383
  )
12384
 
559 chandransh 12385
  def __init__(self, success=None, scx=None,):
130 ashish 12386
    self.success = success
559 chandransh 12387
    self.scx = scx
130 ashish 12388
 
12389
  def read(self, iprot):
12390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12392
      return
12393
    iprot.readStructBegin()
12394
    while True:
12395
      (fname, ftype, fid) = iprot.readFieldBegin()
12396
      if ftype == TType.STOP:
12397
        break
12398
      if fid == 0:
2981 rajveer 12399
        if ftype == TType.LIST:
12400
          self.success = []
5326 rajveer 12401
          (_etype154, _size151) = iprot.readListBegin()
12402
          for _i155 in xrange(_size151):
12403
            _elem156 = iprot.readI64();
12404
            self.success.append(_elem156)
2981 rajveer 12405
          iprot.readListEnd()
130 ashish 12406
        else:
12407
          iprot.skip(ftype)
12408
      elif fid == 1:
12409
        if ftype == TType.STRUCT:
559 chandransh 12410
          self.scx = WidgetException()
12411
          self.scx.read(iprot)
130 ashish 12412
        else:
12413
          iprot.skip(ftype)
12414
      else:
12415
        iprot.skip(ftype)
12416
      iprot.readFieldEnd()
12417
    iprot.readStructEnd()
12418
 
12419
  def write(self, oprot):
12420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12422
      return
2981 rajveer 12423
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12424
    if self.success is not None:
2981 rajveer 12425
      oprot.writeFieldBegin('success', TType.LIST, 0)
12426
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12427
      for iter157 in self.success:
12428
        oprot.writeI64(iter157)
2981 rajveer 12429
      oprot.writeListEnd()
130 ashish 12430
      oprot.writeFieldEnd()
3431 rajveer 12431
    if self.scx is not None:
559 chandransh 12432
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12433
      self.scx.write(oprot)
130 ashish 12434
      oprot.writeFieldEnd()
12435
    oprot.writeFieldStop()
12436
    oprot.writeStructEnd()
12437
 
3431 rajveer 12438
  def validate(self):
12439
    return
12440
 
12441
 
130 ashish 12442
  def __repr__(self):
12443
    L = ['%s=%r' % (key, value)
12444
      for key, value in self.__dict__.iteritems()]
12445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12446
 
12447
  def __eq__(self, other):
12448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12449
 
12450
  def __ne__(self, other):
12451
    return not (self == other)
12452
 
2981 rajveer 12453
class updateMyResearch_args:
130 ashish 12454
  """
12455
  Attributes:
2981 rajveer 12456
   - userId
12457
   - itemId
130 ashish 12458
  """
12459
 
12460
  thrift_spec = (
12461
    None, # 0
2981 rajveer 12462
    (1, TType.I64, 'userId', None, None, ), # 1
12463
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12464
  )
12465
 
2981 rajveer 12466
  def __init__(self, userId=None, itemId=None,):
12467
    self.userId = userId
12468
    self.itemId = itemId
130 ashish 12469
 
12470
  def read(self, iprot):
12471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12473
      return
12474
    iprot.readStructBegin()
12475
    while True:
12476
      (fname, ftype, fid) = iprot.readFieldBegin()
12477
      if ftype == TType.STOP:
12478
        break
12479
      if fid == 1:
559 chandransh 12480
        if ftype == TType.I64:
2981 rajveer 12481
          self.userId = iprot.readI64();
130 ashish 12482
        else:
12483
          iprot.skip(ftype)
12484
      elif fid == 2:
559 chandransh 12485
        if ftype == TType.I64:
2981 rajveer 12486
          self.itemId = iprot.readI64();
559 chandransh 12487
        else:
12488
          iprot.skip(ftype)
130 ashish 12489
      else:
12490
        iprot.skip(ftype)
12491
      iprot.readFieldEnd()
12492
    iprot.readStructEnd()
12493
 
12494
  def write(self, oprot):
12495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12497
      return
2981 rajveer 12498
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12499
    if self.userId is not None:
2981 rajveer 12500
      oprot.writeFieldBegin('userId', TType.I64, 1)
12501
      oprot.writeI64(self.userId)
130 ashish 12502
      oprot.writeFieldEnd()
3431 rajveer 12503
    if self.itemId is not None:
2981 rajveer 12504
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12505
      oprot.writeI64(self.itemId)
130 ashish 12506
      oprot.writeFieldEnd()
12507
    oprot.writeFieldStop()
12508
    oprot.writeStructEnd()
12509
 
3431 rajveer 12510
  def validate(self):
12511
    return
12512
 
12513
 
130 ashish 12514
  def __repr__(self):
12515
    L = ['%s=%r' % (key, value)
12516
      for key, value in self.__dict__.iteritems()]
12517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12518
 
12519
  def __eq__(self, other):
12520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12521
 
12522
  def __ne__(self, other):
12523
    return not (self == other)
12524
 
2981 rajveer 12525
class updateMyResearch_result:
12526
  """
12527
  Attributes:
12528
   - success
12529
   - scx
12530
  """
559 chandransh 12531
 
12532
  thrift_spec = (
2981 rajveer 12533
    (0, TType.BOOL, 'success', None, None, ), # 0
12534
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12535
  )
12536
 
2981 rajveer 12537
  def __init__(self, success=None, scx=None,):
12538
    self.success = success
12539
    self.scx = scx
12540
 
559 chandransh 12541
  def read(self, iprot):
12542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12544
      return
12545
    iprot.readStructBegin()
12546
    while True:
12547
      (fname, ftype, fid) = iprot.readFieldBegin()
12548
      if ftype == TType.STOP:
12549
        break
2981 rajveer 12550
      if fid == 0:
12551
        if ftype == TType.BOOL:
12552
          self.success = iprot.readBool();
12553
        else:
12554
          iprot.skip(ftype)
12555
      elif fid == 1:
12556
        if ftype == TType.STRUCT:
12557
          self.scx = WidgetException()
12558
          self.scx.read(iprot)
12559
        else:
12560
          iprot.skip(ftype)
559 chandransh 12561
      else:
12562
        iprot.skip(ftype)
12563
      iprot.readFieldEnd()
12564
    iprot.readStructEnd()
12565
 
12566
  def write(self, oprot):
12567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12569
      return
2981 rajveer 12570
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12571
    if self.success is not None:
2981 rajveer 12572
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12573
      oprot.writeBool(self.success)
12574
      oprot.writeFieldEnd()
3431 rajveer 12575
    if self.scx is not None:
2981 rajveer 12576
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12577
      self.scx.write(oprot)
12578
      oprot.writeFieldEnd()
559 chandransh 12579
    oprot.writeFieldStop()
12580
    oprot.writeStructEnd()
12581
 
3431 rajveer 12582
  def validate(self):
12583
    return
12584
 
12585
 
559 chandransh 12586
  def __repr__(self):
12587
    L = ['%s=%r' % (key, value)
12588
      for key, value in self.__dict__.iteritems()]
12589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12590
 
12591
  def __eq__(self, other):
12592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12593
 
12594
  def __ne__(self, other):
12595
    return not (self == other)
12596
 
2981 rajveer 12597
class deleteItemFromMyResearch_args:
1596 ankur.sing 12598
  """
12599
  Attributes:
2981 rajveer 12600
   - userId
12601
   - itemId
1596 ankur.sing 12602
  """
559 chandransh 12603
 
1596 ankur.sing 12604
  thrift_spec = (
12605
    None, # 0
2981 rajveer 12606
    (1, TType.I64, 'userId', None, None, ), # 1
12607
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12608
  )
12609
 
2981 rajveer 12610
  def __init__(self, userId=None, itemId=None,):
12611
    self.userId = userId
12612
    self.itemId = itemId
1596 ankur.sing 12613
 
12614
  def read(self, iprot):
12615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12617
      return
12618
    iprot.readStructBegin()
12619
    while True:
12620
      (fname, ftype, fid) = iprot.readFieldBegin()
12621
      if ftype == TType.STOP:
12622
        break
12623
      if fid == 1:
2981 rajveer 12624
        if ftype == TType.I64:
12625
          self.userId = iprot.readI64();
1596 ankur.sing 12626
        else:
12627
          iprot.skip(ftype)
2981 rajveer 12628
      elif fid == 2:
12629
        if ftype == TType.I64:
12630
          self.itemId = iprot.readI64();
12631
        else:
12632
          iprot.skip(ftype)
1596 ankur.sing 12633
      else:
12634
        iprot.skip(ftype)
12635
      iprot.readFieldEnd()
12636
    iprot.readStructEnd()
12637
 
12638
  def write(self, oprot):
12639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12641
      return
2981 rajveer 12642
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12643
    if self.userId is not None:
2981 rajveer 12644
      oprot.writeFieldBegin('userId', TType.I64, 1)
12645
      oprot.writeI64(self.userId)
1596 ankur.sing 12646
      oprot.writeFieldEnd()
3431 rajveer 12647
    if self.itemId is not None:
2981 rajveer 12648
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12649
      oprot.writeI64(self.itemId)
12650
      oprot.writeFieldEnd()
1596 ankur.sing 12651
    oprot.writeFieldStop()
12652
    oprot.writeStructEnd()
12653
 
3431 rajveer 12654
  def validate(self):
12655
    return
12656
 
12657
 
1596 ankur.sing 12658
  def __repr__(self):
12659
    L = ['%s=%r' % (key, value)
12660
      for key, value in self.__dict__.iteritems()]
12661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12662
 
12663
  def __eq__(self, other):
12664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12665
 
12666
  def __ne__(self, other):
12667
    return not (self == other)
12668
 
2981 rajveer 12669
class deleteItemFromMyResearch_result:
1596 ankur.sing 12670
  """
12671
  Attributes:
2981 rajveer 12672
   - scx
1596 ankur.sing 12673
  """
12674
 
12675
  thrift_spec = (
2981 rajveer 12676
    None, # 0
12677
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12678
  )
12679
 
2981 rajveer 12680
  def __init__(self, scx=None,):
12681
    self.scx = scx
1596 ankur.sing 12682
 
12683
  def read(self, iprot):
12684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12686
      return
12687
    iprot.readStructBegin()
12688
    while True:
12689
      (fname, ftype, fid) = iprot.readFieldBegin()
12690
      if ftype == TType.STOP:
12691
        break
2981 rajveer 12692
      if fid == 1:
12693
        if ftype == TType.STRUCT:
12694
          self.scx = WidgetException()
12695
          self.scx.read(iprot)
1596 ankur.sing 12696
        else:
12697
          iprot.skip(ftype)
12698
      else:
12699
        iprot.skip(ftype)
12700
      iprot.readFieldEnd()
12701
    iprot.readStructEnd()
12702
 
12703
  def write(self, oprot):
12704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12706
      return
2981 rajveer 12707
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12708
    if self.scx is not None:
2981 rajveer 12709
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12710
      self.scx.write(oprot)
1596 ankur.sing 12711
      oprot.writeFieldEnd()
12712
    oprot.writeFieldStop()
12713
    oprot.writeStructEnd()
12714
 
3431 rajveer 12715
  def validate(self):
12716
    return
12717
 
12718
 
1596 ankur.sing 12719
  def __repr__(self):
12720
    L = ['%s=%r' % (key, value)
12721
      for key, value in self.__dict__.iteritems()]
12722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12723
 
12724
  def __eq__(self, other):
12725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12726
 
12727
  def __ne__(self, other):
12728
    return not (self == other)
12729
 
2981 rajveer 12730
class getBrowseHistoryItems_args:
1673 ankur.sing 12731
  """
12732
  Attributes:
2981 rajveer 12733
   - userId
1673 ankur.sing 12734
  """
1596 ankur.sing 12735
 
1673 ankur.sing 12736
  thrift_spec = (
12737
    None, # 0
2981 rajveer 12738
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12739
  )
12740
 
2981 rajveer 12741
  def __init__(self, userId=None,):
12742
    self.userId = userId
1673 ankur.sing 12743
 
12744
  def read(self, iprot):
12745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12747
      return
12748
    iprot.readStructBegin()
12749
    while True:
12750
      (fname, ftype, fid) = iprot.readFieldBegin()
12751
      if ftype == TType.STOP:
12752
        break
12753
      if fid == 1:
1891 ankur.sing 12754
        if ftype == TType.I64:
2981 rajveer 12755
          self.userId = iprot.readI64();
1891 ankur.sing 12756
        else:
12757
          iprot.skip(ftype)
1673 ankur.sing 12758
      else:
12759
        iprot.skip(ftype)
12760
      iprot.readFieldEnd()
12761
    iprot.readStructEnd()
12762
 
12763
  def write(self, oprot):
12764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12766
      return
2981 rajveer 12767
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12768
    if self.userId is not None:
2981 rajveer 12769
      oprot.writeFieldBegin('userId', TType.I64, 1)
12770
      oprot.writeI64(self.userId)
1673 ankur.sing 12771
      oprot.writeFieldEnd()
12772
    oprot.writeFieldStop()
12773
    oprot.writeStructEnd()
12774
 
3431 rajveer 12775
  def validate(self):
12776
    return
12777
 
12778
 
1673 ankur.sing 12779
  def __repr__(self):
12780
    L = ['%s=%r' % (key, value)
12781
      for key, value in self.__dict__.iteritems()]
12782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12783
 
12784
  def __eq__(self, other):
12785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12786
 
12787
  def __ne__(self, other):
12788
    return not (self == other)
12789
 
2981 rajveer 12790
class getBrowseHistoryItems_result:
1673 ankur.sing 12791
  """
12792
  Attributes:
12793
   - success
2981 rajveer 12794
   - scx
1673 ankur.sing 12795
  """
12796
 
12797
  thrift_spec = (
2981 rajveer 12798
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12799
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12800
  )
12801
 
2981 rajveer 12802
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12803
    self.success = success
2981 rajveer 12804
    self.scx = scx
1673 ankur.sing 12805
 
12806
  def read(self, iprot):
12807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12809
      return
12810
    iprot.readStructBegin()
12811
    while True:
12812
      (fname, ftype, fid) = iprot.readFieldBegin()
12813
      if ftype == TType.STOP:
12814
        break
12815
      if fid == 0:
12816
        if ftype == TType.LIST:
12817
          self.success = []
5326 rajveer 12818
          (_etype161, _size158) = iprot.readListBegin()
12819
          for _i162 in xrange(_size158):
12820
            _elem163 = iprot.readI64();
12821
            self.success.append(_elem163)
1673 ankur.sing 12822
          iprot.readListEnd()
12823
        else:
12824
          iprot.skip(ftype)
2981 rajveer 12825
      elif fid == 1:
12826
        if ftype == TType.STRUCT:
12827
          self.scx = WidgetException()
12828
          self.scx.read(iprot)
12829
        else:
12830
          iprot.skip(ftype)
1673 ankur.sing 12831
      else:
12832
        iprot.skip(ftype)
12833
      iprot.readFieldEnd()
12834
    iprot.readStructEnd()
12835
 
12836
  def write(self, oprot):
12837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12839
      return
2981 rajveer 12840
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12841
    if self.success is not None:
1673 ankur.sing 12842
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12843
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12844
      for iter164 in self.success:
12845
        oprot.writeI64(iter164)
1673 ankur.sing 12846
      oprot.writeListEnd()
12847
      oprot.writeFieldEnd()
3431 rajveer 12848
    if self.scx is not None:
2981 rajveer 12849
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12850
      self.scx.write(oprot)
2642 varun.gupt 12851
      oprot.writeFieldEnd()
12852
    oprot.writeFieldStop()
12853
    oprot.writeStructEnd()
12854
 
3431 rajveer 12855
  def validate(self):
12856
    return
12857
 
12858
 
2642 varun.gupt 12859
  def __repr__(self):
12860
    L = ['%s=%r' % (key, value)
12861
      for key, value in self.__dict__.iteritems()]
12862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12863
 
12864
  def __eq__(self, other):
12865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12866
 
12867
  def __ne__(self, other):
12868
    return not (self == other)
12869
 
2981 rajveer 12870
class updateBrowseHistory_args:
2642 varun.gupt 12871
  """
12872
  Attributes:
2981 rajveer 12873
   - userId
12874
   - itemId
2642 varun.gupt 12875
  """
12876
 
12877
  thrift_spec = (
12878
    None, # 0
2981 rajveer 12879
    (1, TType.I64, 'userId', None, None, ), # 1
12880
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12881
  )
12882
 
2981 rajveer 12883
  def __init__(self, userId=None, itemId=None,):
12884
    self.userId = userId
12885
    self.itemId = itemId
2642 varun.gupt 12886
 
12887
  def read(self, iprot):
12888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12890
      return
12891
    iprot.readStructBegin()
12892
    while True:
12893
      (fname, ftype, fid) = iprot.readFieldBegin()
12894
      if ftype == TType.STOP:
12895
        break
12896
      if fid == 1:
12897
        if ftype == TType.I64:
2981 rajveer 12898
          self.userId = iprot.readI64();
2642 varun.gupt 12899
        else:
12900
          iprot.skip(ftype)
12901
      elif fid == 2:
12902
        if ftype == TType.I64:
2981 rajveer 12903
          self.itemId = iprot.readI64();
2642 varun.gupt 12904
        else:
12905
          iprot.skip(ftype)
12906
      else:
12907
        iprot.skip(ftype)
12908
      iprot.readFieldEnd()
12909
    iprot.readStructEnd()
12910
 
12911
  def write(self, oprot):
12912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12914
      return
2981 rajveer 12915
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12916
    if self.userId is not None:
2981 rajveer 12917
      oprot.writeFieldBegin('userId', TType.I64, 1)
12918
      oprot.writeI64(self.userId)
2642 varun.gupt 12919
      oprot.writeFieldEnd()
3431 rajveer 12920
    if self.itemId is not None:
2981 rajveer 12921
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12922
      oprot.writeI64(self.itemId)
2642 varun.gupt 12923
      oprot.writeFieldEnd()
12924
    oprot.writeFieldStop()
12925
    oprot.writeStructEnd()
12926
 
3431 rajveer 12927
  def validate(self):
12928
    return
12929
 
12930
 
2642 varun.gupt 12931
  def __repr__(self):
12932
    L = ['%s=%r' % (key, value)
12933
      for key, value in self.__dict__.iteritems()]
12934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12935
 
12936
  def __eq__(self, other):
12937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12938
 
12939
  def __ne__(self, other):
12940
    return not (self == other)
12941
 
2981 rajveer 12942
class updateBrowseHistory_result:
2642 varun.gupt 12943
 
12944
  thrift_spec = (
12945
  )
12946
 
12947
  def read(self, iprot):
12948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12950
      return
12951
    iprot.readStructBegin()
12952
    while True:
12953
      (fname, ftype, fid) = iprot.readFieldBegin()
12954
      if ftype == TType.STOP:
12955
        break
12956
      else:
12957
        iprot.skip(ftype)
12958
      iprot.readFieldEnd()
12959
    iprot.readStructEnd()
12960
 
12961
  def write(self, oprot):
12962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12964
      return
2981 rajveer 12965
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12966
    oprot.writeFieldStop()
12967
    oprot.writeStructEnd()
12968
 
3431 rajveer 12969
  def validate(self):
12970
    return
12971
 
12972
 
2642 varun.gupt 12973
  def __repr__(self):
12974
    L = ['%s=%r' % (key, value)
12975
      for key, value in self.__dict__.iteritems()]
12976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12977
 
12978
  def __eq__(self, other):
12979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12980
 
12981
  def __ne__(self, other):
12982
    return not (self == other)
12983
 
3385 varun.gupt 12984
class getCartsWithCouponCount_args:
12985
  """
12986
  Attributes:
12987
   - couponCode
12988
  """
2642 varun.gupt 12989
 
3385 varun.gupt 12990
  thrift_spec = (
12991
    None, # 0
12992
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12993
  )
12994
 
12995
  def __init__(self, couponCode=None,):
12996
    self.couponCode = couponCode
12997
 
12998
  def read(self, iprot):
12999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13001
      return
13002
    iprot.readStructBegin()
13003
    while True:
13004
      (fname, ftype, fid) = iprot.readFieldBegin()
13005
      if ftype == TType.STOP:
13006
        break
13007
      if fid == 1:
13008
        if ftype == TType.STRING:
13009
          self.couponCode = iprot.readString();
13010
        else:
13011
          iprot.skip(ftype)
13012
      else:
13013
        iprot.skip(ftype)
13014
      iprot.readFieldEnd()
13015
    iprot.readStructEnd()
13016
 
13017
  def write(self, oprot):
13018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13020
      return
13021
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13022
    if self.couponCode is not None:
3385 varun.gupt 13023
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13024
      oprot.writeString(self.couponCode)
13025
      oprot.writeFieldEnd()
13026
    oprot.writeFieldStop()
13027
    oprot.writeStructEnd()
13028
 
3431 rajveer 13029
  def validate(self):
13030
    return
13031
 
13032
 
3385 varun.gupt 13033
  def __repr__(self):
13034
    L = ['%s=%r' % (key, value)
13035
      for key, value in self.__dict__.iteritems()]
13036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13037
 
13038
  def __eq__(self, other):
13039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13040
 
13041
  def __ne__(self, other):
13042
    return not (self == other)
13043
 
13044
class getCartsWithCouponCount_result:
13045
  """
13046
  Attributes:
13047
   - success
13048
  """
13049
 
13050
  thrift_spec = (
13051
    (0, TType.I64, 'success', None, None, ), # 0
13052
  )
13053
 
13054
  def __init__(self, success=None,):
13055
    self.success = success
13056
 
13057
  def read(self, iprot):
13058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13060
      return
13061
    iprot.readStructBegin()
13062
    while True:
13063
      (fname, ftype, fid) = iprot.readFieldBegin()
13064
      if ftype == TType.STOP:
13065
        break
13066
      if fid == 0:
13067
        if ftype == TType.I64:
13068
          self.success = iprot.readI64();
13069
        else:
13070
          iprot.skip(ftype)
13071
      else:
13072
        iprot.skip(ftype)
13073
      iprot.readFieldEnd()
13074
    iprot.readStructEnd()
13075
 
13076
  def write(self, oprot):
13077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13079
      return
13080
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13081
    if self.success is not None:
3385 varun.gupt 13082
      oprot.writeFieldBegin('success', TType.I64, 0)
13083
      oprot.writeI64(self.success)
13084
      oprot.writeFieldEnd()
13085
    oprot.writeFieldStop()
13086
    oprot.writeStructEnd()
13087
 
3431 rajveer 13088
  def validate(self):
13089
    return
13090
 
13091
 
3385 varun.gupt 13092
  def __repr__(self):
13093
    L = ['%s=%r' % (key, value)
13094
      for key, value in self.__dict__.iteritems()]
13095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13096
 
13097
  def __eq__(self, other):
13098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13099
 
13100
  def __ne__(self, other):
13101
    return not (self == other)
3499 mandeep.dh 13102
 
13103
class increaseTrustLevel_args:
13104
  """
13105
  Attributes:
13106
   - userId
13107
   - trustLevelDelta
13108
  """
13109
 
13110
  thrift_spec = (
13111
    None, # 0
13112
    (1, TType.I64, 'userId', None, None, ), # 1
13113
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13114
  )
13115
 
13116
  def __init__(self, userId=None, trustLevelDelta=None,):
13117
    self.userId = userId
13118
    self.trustLevelDelta = trustLevelDelta
13119
 
13120
  def read(self, iprot):
13121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13123
      return
13124
    iprot.readStructBegin()
13125
    while True:
13126
      (fname, ftype, fid) = iprot.readFieldBegin()
13127
      if ftype == TType.STOP:
13128
        break
13129
      if fid == 1:
13130
        if ftype == TType.I64:
13131
          self.userId = iprot.readI64();
13132
        else:
13133
          iprot.skip(ftype)
13134
      elif fid == 2:
13135
        if ftype == TType.DOUBLE:
13136
          self.trustLevelDelta = iprot.readDouble();
13137
        else:
13138
          iprot.skip(ftype)
13139
      else:
13140
        iprot.skip(ftype)
13141
      iprot.readFieldEnd()
13142
    iprot.readStructEnd()
13143
 
13144
  def write(self, oprot):
13145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13147
      return
13148
    oprot.writeStructBegin('increaseTrustLevel_args')
13149
    if self.userId is not None:
13150
      oprot.writeFieldBegin('userId', TType.I64, 1)
13151
      oprot.writeI64(self.userId)
13152
      oprot.writeFieldEnd()
13153
    if self.trustLevelDelta is not None:
13154
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13155
      oprot.writeDouble(self.trustLevelDelta)
13156
      oprot.writeFieldEnd()
13157
    oprot.writeFieldStop()
13158
    oprot.writeStructEnd()
13159
 
13160
  def validate(self):
13161
    return
13162
 
13163
 
13164
  def __repr__(self):
13165
    L = ['%s=%r' % (key, value)
13166
      for key, value in self.__dict__.iteritems()]
13167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13168
 
13169
  def __eq__(self, other):
13170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13171
 
13172
  def __ne__(self, other):
13173
    return not (self == other)
4668 varun.gupt 13174
 
5407 amar.kumar 13175
class getTrustLevel_args:
13176
  """
13177
  Attributes:
13178
   - userId
13179
  """
13180
 
13181
  thrift_spec = (
13182
    None, # 0
13183
    (1, TType.I64, 'userId', None, None, ), # 1
13184
  )
13185
 
13186
  def __init__(self, userId=None,):
13187
    self.userId = userId
13188
 
13189
  def read(self, iprot):
13190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13192
      return
13193
    iprot.readStructBegin()
13194
    while True:
13195
      (fname, ftype, fid) = iprot.readFieldBegin()
13196
      if ftype == TType.STOP:
13197
        break
13198
      if fid == 1:
13199
        if ftype == TType.I64:
13200
          self.userId = iprot.readI64();
13201
        else:
13202
          iprot.skip(ftype)
13203
      else:
13204
        iprot.skip(ftype)
13205
      iprot.readFieldEnd()
13206
    iprot.readStructEnd()
13207
 
13208
  def write(self, oprot):
13209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13211
      return
13212
    oprot.writeStructBegin('getTrustLevel_args')
13213
    if self.userId is not None:
13214
      oprot.writeFieldBegin('userId', TType.I64, 1)
13215
      oprot.writeI64(self.userId)
13216
      oprot.writeFieldEnd()
13217
    oprot.writeFieldStop()
13218
    oprot.writeStructEnd()
13219
 
13220
  def validate(self):
13221
    return
13222
 
13223
 
13224
  def __repr__(self):
13225
    L = ['%s=%r' % (key, value)
13226
      for key, value in self.__dict__.iteritems()]
13227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13228
 
13229
  def __eq__(self, other):
13230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13231
 
13232
  def __ne__(self, other):
13233
    return not (self == other)
13234
 
13235
class getTrustLevel_result:
13236
  """
13237
  Attributes:
13238
   - success
13239
  """
13240
 
13241
  thrift_spec = (
13242
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13243
  )
13244
 
13245
  def __init__(self, success=None,):
13246
    self.success = success
13247
 
13248
  def read(self, iprot):
13249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13251
      return
13252
    iprot.readStructBegin()
13253
    while True:
13254
      (fname, ftype, fid) = iprot.readFieldBegin()
13255
      if ftype == TType.STOP:
13256
        break
13257
      if fid == 0:
13258
        if ftype == TType.DOUBLE:
13259
          self.success = iprot.readDouble();
13260
        else:
13261
          iprot.skip(ftype)
13262
      else:
13263
        iprot.skip(ftype)
13264
      iprot.readFieldEnd()
13265
    iprot.readStructEnd()
13266
 
13267
  def write(self, oprot):
13268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13270
      return
13271
    oprot.writeStructBegin('getTrustLevel_result')
13272
    if self.success is not None:
13273
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13274
      oprot.writeDouble(self.success)
13275
      oprot.writeFieldEnd()
13276
    oprot.writeFieldStop()
13277
    oprot.writeStructEnd()
13278
 
13279
  def validate(self):
13280
    return
13281
 
13282
 
13283
  def __repr__(self):
13284
    L = ['%s=%r' % (key, value)
13285
      for key, value in self.__dict__.iteritems()]
13286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13287
 
13288
  def __eq__(self, other):
13289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13290
 
13291
  def __ne__(self, other):
13292
    return not (self == other)
13293
 
4668 varun.gupt 13294
class showCODOption_args:
13295
  """
13296
  Attributes:
13297
   - cartId
13298
   - sourceId
13299
   - pincode
13300
  """
13301
 
13302
  thrift_spec = (
13303
    None, # 0
13304
    (1, TType.I64, 'cartId', None, None, ), # 1
13305
    (2, TType.I64, 'sourceId', None, None, ), # 2
13306
    (3, TType.STRING, 'pincode', None, None, ), # 3
13307
  )
13308
 
13309
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13310
    self.cartId = cartId
13311
    self.sourceId = sourceId
13312
    self.pincode = pincode
13313
 
13314
  def read(self, iprot):
13315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13317
      return
13318
    iprot.readStructBegin()
13319
    while True:
13320
      (fname, ftype, fid) = iprot.readFieldBegin()
13321
      if ftype == TType.STOP:
13322
        break
13323
      if fid == 1:
13324
        if ftype == TType.I64:
13325
          self.cartId = iprot.readI64();
13326
        else:
13327
          iprot.skip(ftype)
13328
      elif fid == 2:
13329
        if ftype == TType.I64:
13330
          self.sourceId = iprot.readI64();
13331
        else:
13332
          iprot.skip(ftype)
13333
      elif fid == 3:
13334
        if ftype == TType.STRING:
13335
          self.pincode = iprot.readString();
13336
        else:
13337
          iprot.skip(ftype)
13338
      else:
13339
        iprot.skip(ftype)
13340
      iprot.readFieldEnd()
13341
    iprot.readStructEnd()
13342
 
13343
  def write(self, oprot):
13344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13346
      return
13347
    oprot.writeStructBegin('showCODOption_args')
13348
    if self.cartId is not None:
13349
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13350
      oprot.writeI64(self.cartId)
13351
      oprot.writeFieldEnd()
13352
    if self.sourceId is not None:
13353
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13354
      oprot.writeI64(self.sourceId)
13355
      oprot.writeFieldEnd()
13356
    if self.pincode is not None:
13357
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13358
      oprot.writeString(self.pincode)
13359
      oprot.writeFieldEnd()
13360
    oprot.writeFieldStop()
13361
    oprot.writeStructEnd()
13362
 
13363
  def validate(self):
13364
    return
13365
 
13366
 
13367
  def __repr__(self):
13368
    L = ['%s=%r' % (key, value)
13369
      for key, value in self.__dict__.iteritems()]
13370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13371
 
13372
  def __eq__(self, other):
13373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13374
 
13375
  def __ne__(self, other):
13376
    return not (self == other)
13377
 
13378
class showCODOption_result:
13379
  """
13380
  Attributes:
13381
   - success
13382
  """
13383
 
13384
  thrift_spec = (
13385
    (0, TType.BOOL, 'success', None, None, ), # 0
13386
  )
13387
 
13388
  def __init__(self, success=None,):
13389
    self.success = success
13390
 
13391
  def read(self, iprot):
13392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13394
      return
13395
    iprot.readStructBegin()
13396
    while True:
13397
      (fname, ftype, fid) = iprot.readFieldBegin()
13398
      if ftype == TType.STOP:
13399
        break
13400
      if fid == 0:
13401
        if ftype == TType.BOOL:
13402
          self.success = iprot.readBool();
13403
        else:
13404
          iprot.skip(ftype)
13405
      else:
13406
        iprot.skip(ftype)
13407
      iprot.readFieldEnd()
13408
    iprot.readStructEnd()
13409
 
13410
  def write(self, oprot):
13411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13413
      return
13414
    oprot.writeStructBegin('showCODOption_result')
13415
    if self.success is not None:
13416
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13417
      oprot.writeBool(self.success)
13418
      oprot.writeFieldEnd()
13419
    oprot.writeFieldStop()
13420
    oprot.writeStructEnd()
13421
 
13422
  def validate(self):
13423
    return
13424
 
13425
 
13426
  def __repr__(self):
13427
    L = ['%s=%r' % (key, value)
13428
      for key, value in self.__dict__.iteritems()]
13429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13430
 
13431
  def __eq__(self, other):
13432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13433
 
13434
  def __ne__(self, other):
13435
    return not (self == other)
5623 anupam.sin 13436
 
13437
class getUserEmails_args:
13438
  """
13439
  Attributes:
13440
   - startDate
13441
   - endDate
13442
  """
13443
 
13444
  thrift_spec = (
13445
    None, # 0
13446
    (1, TType.I64, 'startDate', None, None, ), # 1
13447
    (2, TType.I64, 'endDate', None, None, ), # 2
13448
  )
13449
 
13450
  def __init__(self, startDate=None, endDate=None,):
13451
    self.startDate = startDate
13452
    self.endDate = endDate
13453
 
13454
  def read(self, iprot):
13455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13457
      return
13458
    iprot.readStructBegin()
13459
    while True:
13460
      (fname, ftype, fid) = iprot.readFieldBegin()
13461
      if ftype == TType.STOP:
13462
        break
13463
      if fid == 1:
13464
        if ftype == TType.I64:
13465
          self.startDate = iprot.readI64();
13466
        else:
13467
          iprot.skip(ftype)
13468
      elif fid == 2:
13469
        if ftype == TType.I64:
13470
          self.endDate = iprot.readI64();
13471
        else:
13472
          iprot.skip(ftype)
13473
      else:
13474
        iprot.skip(ftype)
13475
      iprot.readFieldEnd()
13476
    iprot.readStructEnd()
13477
 
13478
  def write(self, oprot):
13479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13481
      return
13482
    oprot.writeStructBegin('getUserEmails_args')
13483
    if self.startDate is not None:
13484
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13485
      oprot.writeI64(self.startDate)
13486
      oprot.writeFieldEnd()
13487
    if self.endDate is not None:
13488
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13489
      oprot.writeI64(self.endDate)
13490
      oprot.writeFieldEnd()
13491
    oprot.writeFieldStop()
13492
    oprot.writeStructEnd()
13493
 
13494
  def validate(self):
13495
    return
13496
 
13497
 
13498
  def __repr__(self):
13499
    L = ['%s=%r' % (key, value)
13500
      for key, value in self.__dict__.iteritems()]
13501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13502
 
13503
  def __eq__(self, other):
13504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13505
 
13506
  def __ne__(self, other):
13507
    return not (self == other)
13508
 
13509
class getUserEmails_result:
13510
  """
13511
  Attributes:
13512
   - success
13513
  """
13514
 
13515
  thrift_spec = (
13516
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13517
  )
13518
 
13519
  def __init__(self, success=None,):
13520
    self.success = success
13521
 
13522
  def read(self, iprot):
13523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13525
      return
13526
    iprot.readStructBegin()
13527
    while True:
13528
      (fname, ftype, fid) = iprot.readFieldBegin()
13529
      if ftype == TType.STOP:
13530
        break
13531
      if fid == 0:
13532
        if ftype == TType.LIST:
13533
          self.success = []
13534
          (_etype168, _size165) = iprot.readListBegin()
13535
          for _i169 in xrange(_size165):
13536
            _elem170 = iprot.readString();
13537
            self.success.append(_elem170)
13538
          iprot.readListEnd()
13539
        else:
13540
          iprot.skip(ftype)
13541
      else:
13542
        iprot.skip(ftype)
13543
      iprot.readFieldEnd()
13544
    iprot.readStructEnd()
13545
 
13546
  def write(self, oprot):
13547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13549
      return
13550
    oprot.writeStructBegin('getUserEmails_result')
13551
    if self.success is not None:
13552
      oprot.writeFieldBegin('success', TType.LIST, 0)
13553
      oprot.writeListBegin(TType.STRING, len(self.success))
13554
      for iter171 in self.success:
13555
        oprot.writeString(iter171)
13556
      oprot.writeListEnd()
13557
      oprot.writeFieldEnd()
13558
    oprot.writeFieldStop()
13559
    oprot.writeStructEnd()
13560
 
13561
  def validate(self):
13562
    return
13563
 
13564
 
13565
  def __repr__(self):
13566
    L = ['%s=%r' % (key, value)
13567
      for key, value in self.__dict__.iteritems()]
13568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13569
 
13570
  def __eq__(self, other):
13571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13572
 
13573
  def __ne__(self, other):
13574
    return not (self == other)