Subversion Repositories SmartDukaan

Rev

Rev 5407 | Rev 5623 | 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
 
599
 
3376 rajveer 600
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 601
  """
602
  service
603
  """
604
  def __init__(self, iprot, oprot=None):
3376 rajveer 605
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 606
 
559 chandransh 607
  def createAnonymousUser(self, jsessionId):
94 ashish 608
    """
609
    Parameters:
559 chandransh 610
     - jsessionId
94 ashish 611
    """
559 chandransh 612
    self.send_createAnonymousUser(jsessionId)
613
    return self.recv_createAnonymousUser()
94 ashish 614
 
559 chandransh 615
  def send_createAnonymousUser(self, jsessionId):
616
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
617
    args = createAnonymousUser_args()
618
    args.jsessionId = jsessionId
94 ashish 619
    args.write(self._oprot)
620
    self._oprot.writeMessageEnd()
621
    self._oprot.trans.flush()
622
 
559 chandransh 623
  def recv_createAnonymousUser(self, ):
94 ashish 624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
625
    if mtype == TMessageType.EXCEPTION:
626
      x = TApplicationException()
627
      x.read(self._iprot)
628
      self._iprot.readMessageEnd()
629
      raise x
559 chandransh 630
    result = createAnonymousUser_result()
94 ashish 631
    result.read(self._iprot)
632
    self._iprot.readMessageEnd()
3431 rajveer 633
    if result.success is not None:
94 ashish 634
      return result.success
3431 rajveer 635
    if result.ucex is not None:
559 chandransh 636
      raise result.ucex
637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 638
 
559 chandransh 639
  def getUserById(self, userId):
94 ashish 640
    """
641
    Parameters:
642
     - userId
643
    """
559 chandransh 644
    self.send_getUserById(userId)
645
    return self.recv_getUserById()
94 ashish 646
 
559 chandransh 647
  def send_getUserById(self, userId):
648
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
649
    args = getUserById_args()
94 ashish 650
    args.userId = userId
651
    args.write(self._oprot)
652
    self._oprot.writeMessageEnd()
653
    self._oprot.trans.flush()
654
 
559 chandransh 655
  def recv_getUserById(self, ):
94 ashish 656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
657
    if mtype == TMessageType.EXCEPTION:
658
      x = TApplicationException()
659
      x.read(self._iprot)
660
      self._iprot.readMessageEnd()
661
      raise x
559 chandransh 662
    result = getUserById_result()
94 ashish 663
    result.read(self._iprot)
664
    self._iprot.readMessageEnd()
3431 rajveer 665
    if result.success is not None:
94 ashish 666
      return result.success
3431 rajveer 667
    if result.ucex is not None:
559 chandransh 668
      raise result.ucex
669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 670
 
5326 rajveer 671
  def getUserByCartId(self, cartId):
672
    """
673
    Parameters:
674
     - cartId
675
    """
676
    self.send_getUserByCartId(cartId)
677
    return self.recv_getUserByCartId()
678
 
679
  def send_getUserByCartId(self, cartId):
680
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
681
    args = getUserByCartId_args()
682
    args.cartId = cartId
683
    args.write(self._oprot)
684
    self._oprot.writeMessageEnd()
685
    self._oprot.trans.flush()
686
 
687
  def recv_getUserByCartId(self, ):
688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
689
    if mtype == TMessageType.EXCEPTION:
690
      x = TApplicationException()
691
      x.read(self._iprot)
692
      self._iprot.readMessageEnd()
693
      raise x
694
    result = getUserByCartId_result()
695
    result.read(self._iprot)
696
    self._iprot.readMessageEnd()
697
    if result.success is not None:
698
      return result.success
699
    if result.ucex is not None:
700
      raise result.ucex
701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
702
 
1491 vikas 703
  def getUserByEmail(self, email):
704
    """
705
    Parameters:
706
     - email
707
    """
708
    self.send_getUserByEmail(email)
709
    return self.recv_getUserByEmail()
710
 
711
  def send_getUserByEmail(self, email):
712
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
713
    args = getUserByEmail_args()
714
    args.email = email
715
    args.write(self._oprot)
716
    self._oprot.writeMessageEnd()
717
    self._oprot.trans.flush()
718
 
719
  def recv_getUserByEmail(self, ):
720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
721
    if mtype == TMessageType.EXCEPTION:
722
      x = TApplicationException()
723
      x.read(self._iprot)
724
      self._iprot.readMessageEnd()
725
      raise x
726
    result = getUserByEmail_result()
727
    result.read(self._iprot)
728
    self._iprot.readMessageEnd()
3431 rajveer 729
    if result.success is not None:
1491 vikas 730
      return result.success
3431 rajveer 731
    if result.ucex is not None:
1491 vikas 732
      raise result.ucex
733
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
734
 
3032 mandeep.dh 735
  def getUserByMobileNumber(self, mobileNumber):
736
    """
737
    Parameters:
738
     - mobileNumber
739
    """
740
    self.send_getUserByMobileNumber(mobileNumber)
741
    return self.recv_getUserByMobileNumber()
742
 
743
  def send_getUserByMobileNumber(self, mobileNumber):
744
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
745
    args = getUserByMobileNumber_args()
746
    args.mobileNumber = mobileNumber
747
    args.write(self._oprot)
748
    self._oprot.writeMessageEnd()
749
    self._oprot.trans.flush()
750
 
751
  def recv_getUserByMobileNumber(self, ):
752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
753
    if mtype == TMessageType.EXCEPTION:
754
      x = TApplicationException()
755
      x.read(self._iprot)
756
      self._iprot.readMessageEnd()
757
      raise x
758
    result = getUserByMobileNumber_result()
759
    result.read(self._iprot)
760
    self._iprot.readMessageEnd()
3431 rajveer 761
    if result.success is not None:
3032 mandeep.dh 762
      return result.success
3431 rajveer 763
    if result.ucex is not None:
3032 mandeep.dh 764
      raise result.ucex
765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
766
 
559 chandransh 767
  def createUser(self, user):
94 ashish 768
    """
769
    Parameters:
559 chandransh 770
     - user
94 ashish 771
    """
559 chandransh 772
    self.send_createUser(user)
773
    return self.recv_createUser()
94 ashish 774
 
559 chandransh 775
  def send_createUser(self, user):
776
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
777
    args = createUser_args()
778
    args.user = user
94 ashish 779
    args.write(self._oprot)
780
    self._oprot.writeMessageEnd()
781
    self._oprot.trans.flush()
782
 
559 chandransh 783
  def recv_createUser(self, ):
94 ashish 784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
785
    if mtype == TMessageType.EXCEPTION:
786
      x = TApplicationException()
787
      x.read(self._iprot)
788
      self._iprot.readMessageEnd()
789
      raise x
559 chandransh 790
    result = createUser_result()
94 ashish 791
    result.read(self._iprot)
792
    self._iprot.readMessageEnd()
3431 rajveer 793
    if result.success is not None:
94 ashish 794
      return result.success
3431 rajveer 795
    if result.ucex is not None:
559 chandransh 796
      raise result.ucex
797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 798
 
559 chandransh 799
  def updateUser(self, user):
94 ashish 800
    """
801
    Parameters:
559 chandransh 802
     - user
94 ashish 803
    """
559 chandransh 804
    self.send_updateUser(user)
805
    return self.recv_updateUser()
94 ashish 806
 
559 chandransh 807
  def send_updateUser(self, user):
808
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
809
    args = updateUser_args()
810
    args.user = user
94 ashish 811
    args.write(self._oprot)
812
    self._oprot.writeMessageEnd()
813
    self._oprot.trans.flush()
814
 
559 chandransh 815
  def recv_updateUser(self, ):
94 ashish 816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
817
    if mtype == TMessageType.EXCEPTION:
818
      x = TApplicationException()
819
      x.read(self._iprot)
820
      self._iprot.readMessageEnd()
821
      raise x
559 chandransh 822
    result = updateUser_result()
94 ashish 823
    result.read(self._iprot)
824
    self._iprot.readMessageEnd()
3431 rajveer 825
    if result.success is not None:
94 ashish 826
      return result.success
3431 rajveer 827
    if result.ucex is not None:
559 chandransh 828
      raise result.ucex
829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 830
 
559 chandransh 831
  def authenticateUser(self, email, password):
94 ashish 832
    """
833
    Parameters:
834
     - email
835
     - password
836
    """
559 chandransh 837
    self.send_authenticateUser(email, password)
122 ashish 838
    return self.recv_authenticateUser()
839
 
559 chandransh 840
  def send_authenticateUser(self, email, password):
122 ashish 841
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
842
    args = authenticateUser_args()
559 chandransh 843
    args.email = email
122 ashish 844
    args.password = password
845
    args.write(self._oprot)
846
    self._oprot.writeMessageEnd()
847
    self._oprot.trans.flush()
848
 
849
  def recv_authenticateUser(self, ):
850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
851
    if mtype == TMessageType.EXCEPTION:
852
      x = TApplicationException()
853
      x.read(self._iprot)
854
      self._iprot.readMessageEnd()
855
      raise x
856
    result = authenticateUser_result()
857
    result.read(self._iprot)
858
    self._iprot.readMessageEnd()
3431 rajveer 859
    if result.success is not None:
122 ashish 860
      return result.success
3431 rajveer 861
    if result.auex is not None:
559 chandransh 862
      raise result.auex
122 ashish 863
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
864
 
94 ashish 865
  def userExists(self, email):
866
    """
867
    Parameters:
868
     - email
869
    """
870
    self.send_userExists(email)
871
    return self.recv_userExists()
872
 
873
  def send_userExists(self, email):
874
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
875
    args = userExists_args()
876
    args.email = email
877
    args.write(self._oprot)
878
    self._oprot.writeMessageEnd()
879
    self._oprot.trans.flush()
880
 
881
  def recv_userExists(self, ):
882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
883
    if mtype == TMessageType.EXCEPTION:
884
      x = TApplicationException()
885
      x.read(self._iprot)
886
      self._iprot.readMessageEnd()
887
      raise x
888
    result = userExists_result()
889
    result.read(self._iprot)
890
    self._iprot.readMessageEnd()
3431 rajveer 891
    if result.success is not None:
94 ashish 892
      return result.success
3431 rajveer 893
    if result.ucx is not None:
94 ashish 894
      raise result.ucx
895
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
896
 
567 rajveer 897
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 898
    """
899
    Parameters:
900
     - userId
901
     - address
513 rajveer 902
     - setDefault
94 ashish 903
    """
567 rajveer 904
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 905
    return self.recv_addAddressForUser()
906
 
567 rajveer 907
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 908
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
909
    args = addAddressForUser_args()
559 chandransh 910
    args.userId = userId
94 ashish 911
    args.address = address
513 rajveer 912
    args.setDefault = setDefault
94 ashish 913
    args.write(self._oprot)
914
    self._oprot.writeMessageEnd()
915
    self._oprot.trans.flush()
916
 
917
  def recv_addAddressForUser(self, ):
918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
919
    if mtype == TMessageType.EXCEPTION:
920
      x = TApplicationException()
921
      x.read(self._iprot)
922
      self._iprot.readMessageEnd()
923
      raise x
924
    result = addAddressForUser_result()
925
    result.read(self._iprot)
926
    self._iprot.readMessageEnd()
3431 rajveer 927
    if result.success is not None:
94 ashish 928
      return result.success
3431 rajveer 929
    if result.ucx is not None:
94 ashish 930
      raise result.ucx
931
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
932
 
933
  def removeAddressForUser(self, userid, addressId):
934
    """
935
    Parameters:
936
     - userid
937
     - addressId
938
    """
939
    self.send_removeAddressForUser(userid, addressId)
940
    return self.recv_removeAddressForUser()
941
 
942
  def send_removeAddressForUser(self, userid, addressId):
943
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
944
    args = removeAddressForUser_args()
945
    args.userid = userid
946
    args.addressId = addressId
947
    args.write(self._oprot)
948
    self._oprot.writeMessageEnd()
949
    self._oprot.trans.flush()
950
 
951
  def recv_removeAddressForUser(self, ):
952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
953
    if mtype == TMessageType.EXCEPTION:
954
      x = TApplicationException()
955
      x.read(self._iprot)
956
      self._iprot.readMessageEnd()
957
      raise x
958
    result = removeAddressForUser_result()
959
    result.read(self._iprot)
960
    self._iprot.readMessageEnd()
3431 rajveer 961
    if result.success is not None:
94 ashish 962
      return result.success
3431 rajveer 963
    if result.ucx is not None:
94 ashish 964
      raise result.ucx
965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
966
 
967
  def setUserAsLoggedIn(self, userId, timestamp):
968
    """
969
    Parameters:
970
     - userId
971
     - timestamp
972
    """
973
    self.send_setUserAsLoggedIn(userId, timestamp)
974
    return self.recv_setUserAsLoggedIn()
975
 
976
  def send_setUserAsLoggedIn(self, userId, timestamp):
977
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
978
    args = setUserAsLoggedIn_args()
979
    args.userId = userId
980
    args.timestamp = timestamp
981
    args.write(self._oprot)
982
    self._oprot.writeMessageEnd()
983
    self._oprot.trans.flush()
984
 
985
  def recv_setUserAsLoggedIn(self, ):
986
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
987
    if mtype == TMessageType.EXCEPTION:
988
      x = TApplicationException()
989
      x.read(self._iprot)
990
      self._iprot.readMessageEnd()
991
      raise x
992
    result = setUserAsLoggedIn_result()
993
    result.read(self._iprot)
994
    self._iprot.readMessageEnd()
3431 rajveer 995
    if result.success is not None:
94 ashish 996
      return result.success
3431 rajveer 997
    if result.ucx is not None:
94 ashish 998
      raise result.ucx
999
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1000
 
1001
  def setUserAsLoggedOut(self, userid, timestamp):
1002
    """
1003
    Parameters:
1004
     - userid
1005
     - timestamp
1006
    """
1007
    self.send_setUserAsLoggedOut(userid, timestamp)
1008
    return self.recv_setUserAsLoggedOut()
1009
 
1010
  def send_setUserAsLoggedOut(self, userid, timestamp):
1011
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1012
    args = setUserAsLoggedOut_args()
1013
    args.userid = userid
1014
    args.timestamp = timestamp
1015
    args.write(self._oprot)
1016
    self._oprot.writeMessageEnd()
1017
    self._oprot.trans.flush()
1018
 
1019
  def recv_setUserAsLoggedOut(self, ):
1020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1021
    if mtype == TMessageType.EXCEPTION:
1022
      x = TApplicationException()
1023
      x.read(self._iprot)
1024
      self._iprot.readMessageEnd()
1025
      raise x
1026
    result = setUserAsLoggedOut_result()
1027
    result.read(self._iprot)
1028
    self._iprot.readMessageEnd()
3431 rajveer 1029
    if result.success is not None:
94 ashish 1030
      return result.success
3431 rajveer 1031
    if result.ucx is not None:
94 ashish 1032
      raise result.ucx
1033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1034
 
504 rajveer 1035
  def setDefaultAddress(self, userid, addressId):
1036
    """
1037
    Parameters:
1038
     - userid
1039
     - addressId
1040
    """
1041
    self.send_setDefaultAddress(userid, addressId)
1042
    return self.recv_setDefaultAddress()
1043
 
1044
  def send_setDefaultAddress(self, userid, addressId):
1045
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1046
    args = setDefaultAddress_args()
1047
    args.userid = userid
1048
    args.addressId = addressId
1049
    args.write(self._oprot)
1050
    self._oprot.writeMessageEnd()
1051
    self._oprot.trans.flush()
1052
 
1053
  def recv_setDefaultAddress(self, ):
1054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1055
    if mtype == TMessageType.EXCEPTION:
1056
      x = TApplicationException()
1057
      x.read(self._iprot)
1058
      self._iprot.readMessageEnd()
1059
      raise x
1060
    result = setDefaultAddress_result()
1061
    result.read(self._iprot)
1062
    self._iprot.readMessageEnd()
3431 rajveer 1063
    if result.success is not None:
504 rajveer 1064
      return result.success
3431 rajveer 1065
    if result.ucx is not None:
504 rajveer 1066
      raise result.ucx
1067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1068
 
594 rajveer 1069
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1070
    """
1071
    Parameters:
1072
     - userid
594 rajveer 1073
     - oldPassword
1074
     - newPassword
94 ashish 1075
    """
594 rajveer 1076
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1077
    return self.recv_updatePassword()
1078
 
594 rajveer 1079
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1080
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1081
    args = updatePassword_args()
1082
    args.userid = userid
594 rajveer 1083
    args.oldPassword = oldPassword
1084
    args.newPassword = newPassword
94 ashish 1085
    args.write(self._oprot)
1086
    self._oprot.writeMessageEnd()
1087
    self._oprot.trans.flush()
1088
 
1089
  def recv_updatePassword(self, ):
1090
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1091
    if mtype == TMessageType.EXCEPTION:
1092
      x = TApplicationException()
1093
      x.read(self._iprot)
1094
      self._iprot.readMessageEnd()
1095
      raise x
1096
    result = updatePassword_result()
1097
    result.read(self._iprot)
1098
    self._iprot.readMessageEnd()
3431 rajveer 1099
    if result.success is not None:
94 ashish 1100
      return result.success
3431 rajveer 1101
    if result.ucx is not None:
94 ashish 1102
      raise result.ucx
1103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1104
 
884 rajveer 1105
  def forgotPassword(self, email, newPassword):
581 rajveer 1106
    """
1107
    Parameters:
1108
     - email
884 rajveer 1109
     - newPassword
581 rajveer 1110
    """
884 rajveer 1111
    self.send_forgotPassword(email, newPassword)
581 rajveer 1112
    return self.recv_forgotPassword()
1113
 
884 rajveer 1114
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1115
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1116
    args = forgotPassword_args()
1117
    args.email = email
884 rajveer 1118
    args.newPassword = newPassword
581 rajveer 1119
    args.write(self._oprot)
1120
    self._oprot.writeMessageEnd()
1121
    self._oprot.trans.flush()
1122
 
1123
  def recv_forgotPassword(self, ):
1124
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1125
    if mtype == TMessageType.EXCEPTION:
1126
      x = TApplicationException()
1127
      x.read(self._iprot)
1128
      self._iprot.readMessageEnd()
1129
      raise x
1130
    result = forgotPassword_result()
1131
    result.read(self._iprot)
1132
    self._iprot.readMessageEnd()
3431 rajveer 1133
    if result.success is not None:
581 rajveer 1134
      return result.success
3431 rajveer 1135
    if result.ucx is not None:
581 rajveer 1136
      raise result.ucx
1137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1138
 
594 rajveer 1139
  def getAllAddressesForUser(self, userId):
1140
    """
1141
    Parameters:
1142
     - userId
1143
    """
1144
    self.send_getAllAddressesForUser(userId)
1145
    return self.recv_getAllAddressesForUser()
1146
 
1147
  def send_getAllAddressesForUser(self, userId):
1148
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1149
    args = getAllAddressesForUser_args()
1150
    args.userId = userId
1151
    args.write(self._oprot)
1152
    self._oprot.writeMessageEnd()
1153
    self._oprot.trans.flush()
1154
 
1155
  def recv_getAllAddressesForUser(self, ):
1156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1157
    if mtype == TMessageType.EXCEPTION:
1158
      x = TApplicationException()
1159
      x.read(self._iprot)
1160
      self._iprot.readMessageEnd()
1161
      raise x
1162
    result = getAllAddressesForUser_result()
1163
    result.read(self._iprot)
1164
    self._iprot.readMessageEnd()
3431 rajveer 1165
    if result.success is not None:
594 rajveer 1166
      return result.success
3431 rajveer 1167
    if result.ucx is not None:
594 rajveer 1168
      raise result.ucx
1169
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1170
 
1894 vikas 1171
  def getAddressById(self, addressId):
1172
    """
1173
    Parameters:
1174
     - addressId
1175
    """
1176
    self.send_getAddressById(addressId)
1177
    return self.recv_getAddressById()
1178
 
1179
  def send_getAddressById(self, addressId):
1180
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1181
    args = getAddressById_args()
1182
    args.addressId = addressId
1183
    args.write(self._oprot)
1184
    self._oprot.writeMessageEnd()
1185
    self._oprot.trans.flush()
1186
 
1187
  def recv_getAddressById(self, ):
1188
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1189
    if mtype == TMessageType.EXCEPTION:
1190
      x = TApplicationException()
1191
      x.read(self._iprot)
1192
      self._iprot.readMessageEnd()
1193
      raise x
1194
    result = getAddressById_result()
1195
    result.read(self._iprot)
1196
    self._iprot.readMessageEnd()
3431 rajveer 1197
    if result.success is not None:
1894 vikas 1198
      return result.success
3431 rajveer 1199
    if result.ucx is not None:
1894 vikas 1200
      raise result.ucx
1201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1202
 
594 rajveer 1203
  def getDefaultAddressId(self, userId):
1204
    """
1205
    Parameters:
1206
     - userId
1207
    """
1208
    self.send_getDefaultAddressId(userId)
1209
    return self.recv_getDefaultAddressId()
1210
 
1211
  def send_getDefaultAddressId(self, userId):
1212
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1213
    args = getDefaultAddressId_args()
1214
    args.userId = userId
1215
    args.write(self._oprot)
1216
    self._oprot.writeMessageEnd()
1217
    self._oprot.trans.flush()
1218
 
1219
  def recv_getDefaultAddressId(self, ):
1220
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1221
    if mtype == TMessageType.EXCEPTION:
1222
      x = TApplicationException()
1223
      x.read(self._iprot)
1224
      self._iprot.readMessageEnd()
1225
      raise x
1226
    result = getDefaultAddressId_result()
1227
    result.read(self._iprot)
1228
    self._iprot.readMessageEnd()
3431 rajveer 1229
    if result.success is not None:
594 rajveer 1230
      return result.success
3431 rajveer 1231
    if result.ucx is not None:
594 rajveer 1232
      raise result.ucx
1233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1234
 
785 rajveer 1235
  def getDefaultPincode(self, userId):
1236
    """
1237
    Parameters:
1238
     - userId
1239
    """
1240
    self.send_getDefaultPincode(userId)
1241
    return self.recv_getDefaultPincode()
1242
 
1243
  def send_getDefaultPincode(self, userId):
1244
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1245
    args = getDefaultPincode_args()
1246
    args.userId = userId
1247
    args.write(self._oprot)
1248
    self._oprot.writeMessageEnd()
1249
    self._oprot.trans.flush()
1250
 
1251
  def recv_getDefaultPincode(self, ):
1252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1253
    if mtype == TMessageType.EXCEPTION:
1254
      x = TApplicationException()
1255
      x.read(self._iprot)
1256
      self._iprot.readMessageEnd()
1257
      raise x
1258
    result = getDefaultPincode_result()
1259
    result.read(self._iprot)
1260
    self._iprot.readMessageEnd()
3431 rajveer 1261
    if result.success is not None:
785 rajveer 1262
      return result.success
3431 rajveer 1263
    if result.ucx is not None:
785 rajveer 1264
      raise result.ucx
1265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1266
 
1274 varun.gupt 1267
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1268
    """
1269
    Parameters:
1270
     - userId
1271
     - replyTo
1272
     - communicationType
1273
     - orderId
1274
     - airwaybillNo
1275
     - productName
1276
     - subject
1277
     - message
1278
    """
1279
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1280
    return self.recv_saveUserCommunication()
1281
 
1282
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1283
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1284
    args = saveUserCommunication_args()
1285
    args.userId = userId
1286
    args.replyTo = replyTo
1287
    args.communicationType = communicationType
1288
    args.orderId = orderId
1289
    args.airwaybillNo = airwaybillNo
1290
    args.productName = productName
1291
    args.subject = subject
1292
    args.message = message
1293
    args.write(self._oprot)
1294
    self._oprot.writeMessageEnd()
1295
    self._oprot.trans.flush()
1296
 
1297
  def recv_saveUserCommunication(self, ):
1298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1299
    if mtype == TMessageType.EXCEPTION:
1300
      x = TApplicationException()
1301
      x.read(self._iprot)
1302
      self._iprot.readMessageEnd()
1303
      raise x
1304
    result = saveUserCommunication_result()
1305
    result.read(self._iprot)
1306
    self._iprot.readMessageEnd()
3431 rajveer 1307
    if result.success is not None:
1274 varun.gupt 1308
      return result.success
3431 rajveer 1309
    if result.ucx is not None:
1274 varun.gupt 1310
      raise result.ucx
1311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1312
 
1590 varun.gupt 1313
  def getUserCommunicationById(self, id):
1314
    """
1315
    Parameters:
1316
     - id
1317
    """
1318
    self.send_getUserCommunicationById(id)
1319
    return self.recv_getUserCommunicationById()
1320
 
1321
  def send_getUserCommunicationById(self, id):
1322
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1323
    args = getUserCommunicationById_args()
1324
    args.id = id
1325
    args.write(self._oprot)
1326
    self._oprot.writeMessageEnd()
1327
    self._oprot.trans.flush()
1328
 
1329
  def recv_getUserCommunicationById(self, ):
1330
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1331
    if mtype == TMessageType.EXCEPTION:
1332
      x = TApplicationException()
1333
      x.read(self._iprot)
1334
      self._iprot.readMessageEnd()
1335
      raise x
1336
    result = getUserCommunicationById_result()
1337
    result.read(self._iprot)
1338
    self._iprot.readMessageEnd()
3431 rajveer 1339
    if result.success is not None:
1590 varun.gupt 1340
      return result.success
3431 rajveer 1341
    if result.ucx is not None:
1590 varun.gupt 1342
      raise result.ucx
1343
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1344
 
1345
  def getUserCommunicationByUser(self, userId):
1346
    """
1347
    Parameters:
1348
     - userId
1349
    """
1350
    self.send_getUserCommunicationByUser(userId)
1351
    return self.recv_getUserCommunicationByUser()
1352
 
1353
  def send_getUserCommunicationByUser(self, userId):
1354
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1355
    args = getUserCommunicationByUser_args()
1356
    args.userId = userId
1357
    args.write(self._oprot)
1358
    self._oprot.writeMessageEnd()
1359
    self._oprot.trans.flush()
1360
 
1361
  def recv_getUserCommunicationByUser(self, ):
1362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1363
    if mtype == TMessageType.EXCEPTION:
1364
      x = TApplicationException()
1365
      x.read(self._iprot)
1366
      self._iprot.readMessageEnd()
1367
      raise x
1368
    result = getUserCommunicationByUser_result()
1369
    result.read(self._iprot)
1370
    self._iprot.readMessageEnd()
3431 rajveer 1371
    if result.success is not None:
1590 varun.gupt 1372
      return result.success
3431 rajveer 1373
    if result.ucx is not None:
1590 varun.gupt 1374
      raise result.ucx
1375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1376
 
1377
  def getAllUserCommunications(self, ):
1378
    self.send_getAllUserCommunications()
1379
    return self.recv_getAllUserCommunications()
1380
 
1381
  def send_getAllUserCommunications(self, ):
1382
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1383
    args = getAllUserCommunications_args()
1384
    args.write(self._oprot)
1385
    self._oprot.writeMessageEnd()
1386
    self._oprot.trans.flush()
1387
 
1388
  def recv_getAllUserCommunications(self, ):
1389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1390
    if mtype == TMessageType.EXCEPTION:
1391
      x = TApplicationException()
1392
      x.read(self._iprot)
1393
      self._iprot.readMessageEnd()
1394
      raise x
1395
    result = getAllUserCommunications_result()
1396
    result.read(self._iprot)
1397
    self._iprot.readMessageEnd()
3431 rajveer 1398
    if result.success is not None:
1590 varun.gupt 1399
      return result.success
3431 rajveer 1400
    if result.ucx is not None:
1590 varun.gupt 1401
      raise result.ucx
1402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1403
 
5407 amar.kumar 1404
  def removeUserCommunication(self, id):
1405
    """
1406
    Parameters:
1407
     - id
1408
    """
1409
    self.send_removeUserCommunication(id)
1410
    self.recv_removeUserCommunication()
1411
 
1412
  def send_removeUserCommunication(self, id):
1413
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1414
    args = removeUserCommunication_args()
1415
    args.id = id
1416
    args.write(self._oprot)
1417
    self._oprot.writeMessageEnd()
1418
    self._oprot.trans.flush()
1419
 
1420
  def recv_removeUserCommunication(self, ):
1421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1422
    if mtype == TMessageType.EXCEPTION:
1423
      x = TApplicationException()
1424
      x.read(self._iprot)
1425
      self._iprot.readMessageEnd()
1426
      raise x
1427
    result = removeUserCommunication_result()
1428
    result.read(self._iprot)
1429
    self._iprot.readMessageEnd()
1430
    if result.ucx is not None:
1431
      raise result.ucx
1432
    return
1433
 
1859 vikas 1434
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1435
    """
1436
    Parameters:
1437
     - name
1859 vikas 1438
     - addedOn
1845 vikas 1439
    """
1859 vikas 1440
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1441
    return self.recv_createMasterAffiliate()
1442
 
1859 vikas 1443
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1444
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1445
    args = createMasterAffiliate_args()
1446
    args.name = name
1859 vikas 1447
    args.addedOn = addedOn
1845 vikas 1448
    args.write(self._oprot)
1449
    self._oprot.writeMessageEnd()
1450
    self._oprot.trans.flush()
1451
 
1452
  def recv_createMasterAffiliate(self, ):
1453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1454
    if mtype == TMessageType.EXCEPTION:
1455
      x = TApplicationException()
1456
      x.read(self._iprot)
1457
      self._iprot.readMessageEnd()
1458
      raise x
1459
    result = createMasterAffiliate_result()
1460
    result.read(self._iprot)
1461
    self._iprot.readMessageEnd()
3431 rajveer 1462
    if result.success is not None:
1845 vikas 1463
      return result.success
3431 rajveer 1464
    if result.utx is not None:
1845 vikas 1465
      raise result.utx
1466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1467
 
1899 vikas 1468
  def getAllMasterAffiliates(self, ):
1469
    self.send_getAllMasterAffiliates()
1470
    return self.recv_getAllMasterAffiliates()
1471
 
1472
  def send_getAllMasterAffiliates(self, ):
1473
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1474
    args = getAllMasterAffiliates_args()
1475
    args.write(self._oprot)
1476
    self._oprot.writeMessageEnd()
1477
    self._oprot.trans.flush()
1478
 
1479
  def recv_getAllMasterAffiliates(self, ):
1480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1481
    if mtype == TMessageType.EXCEPTION:
1482
      x = TApplicationException()
1483
      x.read(self._iprot)
1484
      self._iprot.readMessageEnd()
1485
      raise x
1486
    result = getAllMasterAffiliates_result()
1487
    result.read(self._iprot)
1488
    self._iprot.readMessageEnd()
3431 rajveer 1489
    if result.success is not None:
1899 vikas 1490
      return result.success
3431 rajveer 1491
    if result.utx is not None:
1899 vikas 1492
      raise result.utx
1493
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1494
 
1845 vikas 1495
  def getMasterAffiliateById(self, id):
1496
    """
1497
    Parameters:
1498
     - id
1499
    """
1500
    self.send_getMasterAffiliateById(id)
1501
    return self.recv_getMasterAffiliateById()
1502
 
1503
  def send_getMasterAffiliateById(self, id):
1504
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1505
    args = getMasterAffiliateById_args()
1506
    args.id = id
1507
    args.write(self._oprot)
1508
    self._oprot.writeMessageEnd()
1509
    self._oprot.trans.flush()
1510
 
1511
  def recv_getMasterAffiliateById(self, ):
1512
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1513
    if mtype == TMessageType.EXCEPTION:
1514
      x = TApplicationException()
1515
      x.read(self._iprot)
1516
      self._iprot.readMessageEnd()
1517
      raise x
1518
    result = getMasterAffiliateById_result()
1519
    result.read(self._iprot)
1520
    self._iprot.readMessageEnd()
3431 rajveer 1521
    if result.success is not None:
1845 vikas 1522
      return result.success
3431 rajveer 1523
    if result.utx is not None:
1845 vikas 1524
      raise result.utx
1525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1526
 
1527
  def getMasterAffiliateByName(self, name):
1528
    """
1529
    Parameters:
1530
     - name
1531
    """
1532
    self.send_getMasterAffiliateByName(name)
1533
    return self.recv_getMasterAffiliateByName()
1534
 
1535
  def send_getMasterAffiliateByName(self, name):
1536
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1537
    args = getMasterAffiliateByName_args()
1538
    args.name = name
1539
    args.write(self._oprot)
1540
    self._oprot.writeMessageEnd()
1541
    self._oprot.trans.flush()
1542
 
1543
  def recv_getMasterAffiliateByName(self, ):
1544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1545
    if mtype == TMessageType.EXCEPTION:
1546
      x = TApplicationException()
1547
      x.read(self._iprot)
1548
      self._iprot.readMessageEnd()
1549
      raise x
1550
    result = getMasterAffiliateByName_result()
1551
    result.read(self._iprot)
1552
    self._iprot.readMessageEnd()
3431 rajveer 1553
    if result.success is not None:
1845 vikas 1554
      return result.success
3431 rajveer 1555
    if result.utx is not None:
1845 vikas 1556
      raise result.utx
1557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1558
 
1859 vikas 1559
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1560
    """
1561
    Parameters:
1562
     - name
1563
     - url
1564
     - masterAffiliateId
1859 vikas 1565
     - addedOn
1845 vikas 1566
    """
1859 vikas 1567
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1568
    return self.recv_createAffiliate()
1569
 
1859 vikas 1570
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1571
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1572
    args = createAffiliate_args()
1573
    args.name = name
1574
    args.url = url
1575
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1576
    args.addedOn = addedOn
1845 vikas 1577
    args.write(self._oprot)
1578
    self._oprot.writeMessageEnd()
1579
    self._oprot.trans.flush()
1580
 
1581
  def recv_createAffiliate(self, ):
1582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1583
    if mtype == TMessageType.EXCEPTION:
1584
      x = TApplicationException()
1585
      x.read(self._iprot)
1586
      self._iprot.readMessageEnd()
1587
      raise x
1588
    result = createAffiliate_result()
1589
    result.read(self._iprot)
1590
    self._iprot.readMessageEnd()
3431 rajveer 1591
    if result.success is not None:
1845 vikas 1592
      return result.success
3431 rajveer 1593
    if result.utx is not None:
1845 vikas 1594
      raise result.utx
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1596
 
1597
  def getAffiliateById(self, id):
1598
    """
1599
    Parameters:
1600
     - id
1601
    """
1602
    self.send_getAffiliateById(id)
1603
    return self.recv_getAffiliateById()
1604
 
1605
  def send_getAffiliateById(self, id):
1606
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1607
    args = getAffiliateById_args()
1608
    args.id = id
1609
    args.write(self._oprot)
1610
    self._oprot.writeMessageEnd()
1611
    self._oprot.trans.flush()
1612
 
1613
  def recv_getAffiliateById(self, ):
1614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1615
    if mtype == TMessageType.EXCEPTION:
1616
      x = TApplicationException()
1617
      x.read(self._iprot)
1618
      self._iprot.readMessageEnd()
1619
      raise x
1620
    result = getAffiliateById_result()
1621
    result.read(self._iprot)
1622
    self._iprot.readMessageEnd()
3431 rajveer 1623
    if result.success is not None:
1845 vikas 1624
      return result.success
3431 rajveer 1625
    if result.utx is not None:
1845 vikas 1626
      raise result.utx
1627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1628
 
1629
  def getAffiliateByName(self, name):
1630
    """
1631
    Parameters:
1632
     - name
1633
    """
1634
    self.send_getAffiliateByName(name)
1635
    return self.recv_getAffiliateByName()
1636
 
1637
  def send_getAffiliateByName(self, name):
1638
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1639
    args = getAffiliateByName_args()
1640
    args.name = name
1641
    args.write(self._oprot)
1642
    self._oprot.writeMessageEnd()
1643
    self._oprot.trans.flush()
1644
 
1645
  def recv_getAffiliateByName(self, ):
1646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1647
    if mtype == TMessageType.EXCEPTION:
1648
      x = TApplicationException()
1649
      x.read(self._iprot)
1650
      self._iprot.readMessageEnd()
1651
      raise x
1652
    result = getAffiliateByName_result()
1653
    result.read(self._iprot)
1654
    self._iprot.readMessageEnd()
3431 rajveer 1655
    if result.success is not None:
1845 vikas 1656
      return result.success
3431 rajveer 1657
    if result.utx is not None:
1845 vikas 1658
      raise result.utx
1659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1660
 
1996 vikas 1661
  def getTrackerById(self, id):
1845 vikas 1662
    """
1663
    Parameters:
1664
     - id
1665
    """
1996 vikas 1666
    self.send_getTrackerById(id)
1845 vikas 1667
    return self.recv_getTrackerById()
1668
 
1996 vikas 1669
  def send_getTrackerById(self, id):
1845 vikas 1670
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1671
    args = getTrackerById_args()
1996 vikas 1672
    args.id = id
1845 vikas 1673
    args.write(self._oprot)
1674
    self._oprot.writeMessageEnd()
1675
    self._oprot.trans.flush()
1676
 
1677
  def recv_getTrackerById(self, ):
1678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1679
    if mtype == TMessageType.EXCEPTION:
1680
      x = TApplicationException()
1681
      x.read(self._iprot)
1682
      self._iprot.readMessageEnd()
1683
      raise x
1684
    result = getTrackerById_result()
1685
    result.read(self._iprot)
1686
    self._iprot.readMessageEnd()
3431 rajveer 1687
    if result.success is not None:
1845 vikas 1688
      return result.success
3431 rajveer 1689
    if result.utx is not None:
1845 vikas 1690
      raise result.utx
1691
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1692
 
1996 vikas 1693
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1694
    """
1695
    Parameters:
1996 vikas 1696
     - id
1845 vikas 1697
    """
1996 vikas 1698
    self.send_getAffiliatesByMasterAffiliate(id)
1699
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1700
 
1996 vikas 1701
  def send_getAffiliatesByMasterAffiliate(self, id):
1702
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1703
    args = getAffiliatesByMasterAffiliate_args()
1704
    args.id = id
1845 vikas 1705
    args.write(self._oprot)
1706
    self._oprot.writeMessageEnd()
1707
    self._oprot.trans.flush()
1708
 
1996 vikas 1709
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1711
    if mtype == TMessageType.EXCEPTION:
1712
      x = TApplicationException()
1713
      x.read(self._iprot)
1714
      self._iprot.readMessageEnd()
1715
      raise x
1996 vikas 1716
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1717
    result.read(self._iprot)
1718
    self._iprot.readMessageEnd()
3431 rajveer 1719
    if result.success is not None:
1845 vikas 1720
      return result.success
3431 rajveer 1721
    if result.utx is not None:
1845 vikas 1722
      raise result.utx
1996 vikas 1723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1724
 
1996 vikas 1725
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1726
    """
1727
    Parameters:
1996 vikas 1728
     - affiliateId
1845 vikas 1729
     - userId
1730
     - event
1731
     - url
1732
     - data
1859 vikas 1733
     - addedOn
1845 vikas 1734
    """
1996 vikas 1735
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1736
    return self.recv_addTrackLog()
1737
 
1996 vikas 1738
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1739
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1740
    args = addTrackLog_args()
1996 vikas 1741
    args.affiliateId = affiliateId
1845 vikas 1742
    args.userId = userId
1743
    args.event = event
1744
    args.url = url
1745
    args.data = data
1859 vikas 1746
    args.addedOn = addedOn
1845 vikas 1747
    args.write(self._oprot)
1748
    self._oprot.writeMessageEnd()
1749
    self._oprot.trans.flush()
1750
 
1751
  def recv_addTrackLog(self, ):
1752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1753
    if mtype == TMessageType.EXCEPTION:
1754
      x = TApplicationException()
1755
      x.read(self._iprot)
1756
      self._iprot.readMessageEnd()
1757
      raise x
1758
    result = addTrackLog_result()
1759
    result.read(self._iprot)
1760
    self._iprot.readMessageEnd()
3431 rajveer 1761
    if result.success is not None:
1845 vikas 1762
      return result.success
3431 rajveer 1763
    if result.utx is not None:
1845 vikas 1764
      raise result.utx
1765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1766
 
1767
  def getTrackLogById(self, id):
1768
    """
1769
    Parameters:
1770
     - id
1771
    """
1772
    self.send_getTrackLogById(id)
1773
    return self.recv_getTrackLogById()
1774
 
1775
  def send_getTrackLogById(self, id):
1776
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1777
    args = getTrackLogById_args()
1778
    args.id = id
1779
    args.write(self._oprot)
1780
    self._oprot.writeMessageEnd()
1781
    self._oprot.trans.flush()
1782
 
1783
  def recv_getTrackLogById(self, ):
1784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1785
    if mtype == TMessageType.EXCEPTION:
1786
      x = TApplicationException()
1787
      x.read(self._iprot)
1788
      self._iprot.readMessageEnd()
1789
      raise x
1790
    result = getTrackLogById_result()
1791
    result.read(self._iprot)
1792
    self._iprot.readMessageEnd()
3431 rajveer 1793
    if result.success is not None:
1845 vikas 1794
      return result.success
3431 rajveer 1795
    if result.utx is not None:
1845 vikas 1796
      raise result.utx
1797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1798
 
3293 vikas 1799
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1800
    """
1801
    Parameters:
1996 vikas 1802
     - affiliateId
3293 vikas 1803
     - startDate
1804
     - endDate
1845 vikas 1805
    """
3293 vikas 1806
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1807
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1808
 
3293 vikas 1809
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1810
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1811
    args = getTrackLogsByAffiliate_args()
1812
    args.affiliateId = affiliateId
3293 vikas 1813
    args.startDate = startDate
1814
    args.endDate = endDate
1845 vikas 1815
    args.write(self._oprot)
1816
    self._oprot.writeMessageEnd()
1817
    self._oprot.trans.flush()
1818
 
1996 vikas 1819
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1821
    if mtype == TMessageType.EXCEPTION:
1822
      x = TApplicationException()
1823
      x.read(self._iprot)
1824
      self._iprot.readMessageEnd()
1825
      raise x
1996 vikas 1826
    result = getTrackLogsByAffiliate_result()
1845 vikas 1827
    result.read(self._iprot)
1828
    self._iprot.readMessageEnd()
3431 rajveer 1829
    if result.success is not None:
1845 vikas 1830
      return result.success
3431 rajveer 1831
    if result.utx is not None:
1845 vikas 1832
      raise result.utx
1996 vikas 1833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1834
 
1835
  def getTrackLogsByUser(self, userId):
1836
    """
1837
    Parameters:
1838
     - userId
1839
    """
1840
    self.send_getTrackLogsByUser(userId)
1841
    return self.recv_getTrackLogsByUser()
1842
 
1843
  def send_getTrackLogsByUser(self, userId):
1844
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1845
    args = getTrackLogsByUser_args()
1846
    args.userId = userId
1847
    args.write(self._oprot)
1848
    self._oprot.writeMessageEnd()
1849
    self._oprot.trans.flush()
1850
 
1851
  def recv_getTrackLogsByUser(self, ):
1852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1853
    if mtype == TMessageType.EXCEPTION:
1854
      x = TApplicationException()
1855
      x.read(self._iprot)
1856
      self._iprot.readMessageEnd()
1857
      raise x
1858
    result = getTrackLogsByUser_result()
1859
    result.read(self._iprot)
1860
    self._iprot.readMessageEnd()
3431 rajveer 1861
    if result.success is not None:
1845 vikas 1862
      return result.success
3431 rajveer 1863
    if result.utx is not None:
1845 vikas 1864
      raise result.utx
1865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1866
 
1996 vikas 1867
  def getTrackLogs(self, userId, event, url):
1845 vikas 1868
    """
1869
    Parameters:
1870
     - userId
1871
     - event
1872
     - url
1873
    """
1996 vikas 1874
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1875
    return self.recv_getTrackLogs()
1876
 
1996 vikas 1877
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1878
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1879
    args = getTrackLogs_args()
1880
    args.userId = userId
1881
    args.event = event
1882
    args.url = url
1883
    args.write(self._oprot)
1884
    self._oprot.writeMessageEnd()
1885
    self._oprot.trans.flush()
1886
 
1887
  def recv_getTrackLogs(self, ):
1888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1889
    if mtype == TMessageType.EXCEPTION:
1890
      x = TApplicationException()
1891
      x.read(self._iprot)
1892
      self._iprot.readMessageEnd()
1893
      raise x
1894
    result = getTrackLogs_result()
1895
    result.read(self._iprot)
1896
    self._iprot.readMessageEnd()
3431 rajveer 1897
    if result.success is not None:
1845 vikas 1898
      return result.success
3431 rajveer 1899
    if result.utx is not None:
1845 vikas 1900
      raise result.utx
1901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1902
 
559 chandransh 1903
  def getCurrentCart(self, userId):
94 ashish 1904
    """
1905
    Parameters:
559 chandransh 1906
     - userId
94 ashish 1907
    """
559 chandransh 1908
    self.send_getCurrentCart(userId)
1909
    return self.recv_getCurrentCart()
94 ashish 1910
 
559 chandransh 1911
  def send_getCurrentCart(self, userId):
1912
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1913
    args = getCurrentCart_args()
1914
    args.userId = userId
94 ashish 1915
    args.write(self._oprot)
1916
    self._oprot.writeMessageEnd()
1917
    self._oprot.trans.flush()
1918
 
559 chandransh 1919
  def recv_getCurrentCart(self, ):
94 ashish 1920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1921
    if mtype == TMessageType.EXCEPTION:
1922
      x = TApplicationException()
1923
      x.read(self._iprot)
1924
      self._iprot.readMessageEnd()
1925
      raise x
559 chandransh 1926
    result = getCurrentCart_result()
94 ashish 1927
    result.read(self._iprot)
1928
    self._iprot.readMessageEnd()
3431 rajveer 1929
    if result.success is not None:
94 ashish 1930
      return result.success
3431 rajveer 1931
    if result.scx is not None:
559 chandransh 1932
      raise result.scx
1933
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1934
 
559 chandransh 1935
  def getCart(self, cartId):
94 ashish 1936
    """
1937
    Parameters:
559 chandransh 1938
     - cartId
94 ashish 1939
    """
559 chandransh 1940
    self.send_getCart(cartId)
1941
    return self.recv_getCart()
94 ashish 1942
 
559 chandransh 1943
  def send_getCart(self, cartId):
1944
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1945
    args = getCart_args()
1946
    args.cartId = cartId
94 ashish 1947
    args.write(self._oprot)
1948
    self._oprot.writeMessageEnd()
1949
    self._oprot.trans.flush()
1950
 
559 chandransh 1951
  def recv_getCart(self, ):
94 ashish 1952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1953
    if mtype == TMessageType.EXCEPTION:
1954
      x = TApplicationException()
1955
      x.read(self._iprot)
1956
      self._iprot.readMessageEnd()
1957
      raise x
559 chandransh 1958
    result = getCart_result()
94 ashish 1959
    result.read(self._iprot)
1960
    self._iprot.readMessageEnd()
3431 rajveer 1961
    if result.success is not None:
94 ashish 1962
      return result.success
3431 rajveer 1963
    if result.scx is not None:
559 chandransh 1964
      raise result.scx
1965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1966
 
559 chandransh 1967
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1968
    """
1969
    Parameters:
559 chandransh 1970
     - from_time
1971
     - to_time
1972
     - status
94 ashish 1973
    """
559 chandransh 1974
    self.send_getCartsByTime(from_time, to_time, status)
1975
    return self.recv_getCartsByTime()
94 ashish 1976
 
559 chandransh 1977
  def send_getCartsByTime(self, from_time, to_time, status):
1978
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1979
    args = getCartsByTime_args()
1980
    args.from_time = from_time
1981
    args.to_time = to_time
1982
    args.status = status
94 ashish 1983
    args.write(self._oprot)
1984
    self._oprot.writeMessageEnd()
1985
    self._oprot.trans.flush()
1986
 
559 chandransh 1987
  def recv_getCartsByTime(self, ):
94 ashish 1988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1989
    if mtype == TMessageType.EXCEPTION:
1990
      x = TApplicationException()
1991
      x.read(self._iprot)
1992
      self._iprot.readMessageEnd()
1993
      raise x
559 chandransh 1994
    result = getCartsByTime_result()
94 ashish 1995
    result.read(self._iprot)
1996
    self._iprot.readMessageEnd()
3431 rajveer 1997
    if result.success is not None:
94 ashish 1998
      return result.success
3431 rajveer 1999
    if result.scx is not None:
559 chandransh 2000
      raise result.scx
2001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2002
 
3557 rajveer 2003
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2004
    """
2005
    Parameters:
2006
     - cartId
2007
     - itemId
2008
     - quantity
3557 rajveer 2009
     - sourceId
559 chandransh 2010
    """
3557 rajveer 2011
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2012
    return self.recv_addItemToCart()
559 chandransh 2013
 
3557 rajveer 2014
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2015
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2016
    args = addItemToCart_args()
2017
    args.cartId = cartId
2018
    args.itemId = itemId
2019
    args.quantity = quantity
3557 rajveer 2020
    args.sourceId = sourceId
559 chandransh 2021
    args.write(self._oprot)
2022
    self._oprot.writeMessageEnd()
2023
    self._oprot.trans.flush()
2024
 
2025
  def recv_addItemToCart(self, ):
2026
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2027
    if mtype == TMessageType.EXCEPTION:
2028
      x = TApplicationException()
2029
      x.read(self._iprot)
2030
      self._iprot.readMessageEnd()
2031
      raise x
2032
    result = addItemToCart_result()
2033
    result.read(self._iprot)
2034
    self._iprot.readMessageEnd()
3431 rajveer 2035
    if result.success is not None:
2035 rajveer 2036
      return result.success
3431 rajveer 2037
    if result.scx is not None:
559 chandransh 2038
      raise result.scx
2035 rajveer 2039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2040
 
2041
  def deleteItemFromCart(self, cartId, itemId):
2042
    """
2043
    Parameters:
2044
     - cartId
2045
     - itemId
2046
    """
2047
    self.send_deleteItemFromCart(cartId, itemId)
2048
    self.recv_deleteItemFromCart()
2049
 
2050
  def send_deleteItemFromCart(self, cartId, itemId):
2051
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2052
    args = deleteItemFromCart_args()
2053
    args.cartId = cartId
2054
    args.itemId = itemId
2055
    args.write(self._oprot)
2056
    self._oprot.writeMessageEnd()
2057
    self._oprot.trans.flush()
2058
 
2059
  def recv_deleteItemFromCart(self, ):
2060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2061
    if mtype == TMessageType.EXCEPTION:
2062
      x = TApplicationException()
2063
      x.read(self._iprot)
2064
      self._iprot.readMessageEnd()
2065
      raise x
2066
    result = deleteItemFromCart_result()
2067
    result.read(self._iprot)
2068
    self._iprot.readMessageEnd()
3431 rajveer 2069
    if result.scx is not None:
559 chandransh 2070
      raise result.scx
2071
    return
2072
 
2073
  def addAddressToCart(self, cartId, addressId):
2074
    """
2075
    Parameters:
2076
     - cartId
2077
     - addressId
2078
    """
2079
    self.send_addAddressToCart(cartId, addressId)
2080
    self.recv_addAddressToCart()
2081
 
2082
  def send_addAddressToCart(self, cartId, addressId):
2083
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2084
    args = addAddressToCart_args()
2085
    args.cartId = cartId
2086
    args.addressId = addressId
2087
    args.write(self._oprot)
2088
    self._oprot.writeMessageEnd()
2089
    self._oprot.trans.flush()
2090
 
2091
  def recv_addAddressToCart(self, ):
2092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2093
    if mtype == TMessageType.EXCEPTION:
2094
      x = TApplicationException()
2095
      x.read(self._iprot)
2096
      self._iprot.readMessageEnd()
2097
      raise x
2098
    result = addAddressToCart_result()
2099
    result.read(self._iprot)
2100
    self._iprot.readMessageEnd()
3431 rajveer 2101
    if result.scx is not None:
575 chandransh 2102
      raise result.scx
559 chandransh 2103
    return
2104
 
5553 rajveer 2105
  def addStoreToCart(self, cartId, storeId):
2106
    """
2107
    Parameters:
2108
     - cartId
2109
     - storeId
2110
    """
2111
    self.send_addStoreToCart(cartId, storeId)
2112
    self.recv_addStoreToCart()
2113
 
2114
  def send_addStoreToCart(self, cartId, storeId):
2115
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2116
    args = addStoreToCart_args()
2117
    args.cartId = cartId
2118
    args.storeId = storeId
2119
    args.write(self._oprot)
2120
    self._oprot.writeMessageEnd()
2121
    self._oprot.trans.flush()
2122
 
2123
  def recv_addStoreToCart(self, ):
2124
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2125
    if mtype == TMessageType.EXCEPTION:
2126
      x = TApplicationException()
2127
      x.read(self._iprot)
2128
      self._iprot.readMessageEnd()
2129
      raise x
2130
    result = addStoreToCart_result()
2131
    result.read(self._iprot)
2132
    self._iprot.readMessageEnd()
2133
    if result.scx is not None:
2134
      raise result.scx
2135
    return
2136
 
1976 varun.gupt 2137
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2138
    """
2139
    Parameters:
2140
     - cartId
2141
     - couponCode
2142
     - totalPrice
2143
     - discountedPrice
2144
    """
2145
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2146
    self.recv_applyCouponToCart()
2147
 
2148
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2149
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2150
    args = applyCouponToCart_args()
2151
    args.cartId = cartId
2152
    args.couponCode = couponCode
2153
    args.totalPrice = totalPrice
2154
    args.discountedPrice = discountedPrice
2155
    args.write(self._oprot)
2156
    self._oprot.writeMessageEnd()
2157
    self._oprot.trans.flush()
2158
 
2159
  def recv_applyCouponToCart(self, ):
2160
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2161
    if mtype == TMessageType.EXCEPTION:
2162
      x = TApplicationException()
2163
      x.read(self._iprot)
2164
      self._iprot.readMessageEnd()
2165
      raise x
2166
    result = applyCouponToCart_result()
2167
    result.read(self._iprot)
2168
    self._iprot.readMessageEnd()
3431 rajveer 2169
    if result.scx is not None:
1976 varun.gupt 2170
      raise result.scx
2171
    return
2172
 
2173
  def removeCoupon(self, cartId):
2174
    """
2175
    Parameters:
2176
     - cartId
2177
    """
2178
    self.send_removeCoupon(cartId)
2179
    self.recv_removeCoupon()
2180
 
2181
  def send_removeCoupon(self, cartId):
2182
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2183
    args = removeCoupon_args()
2184
    args.cartId = cartId
2185
    args.write(self._oprot)
2186
    self._oprot.writeMessageEnd()
2187
    self._oprot.trans.flush()
2188
 
2189
  def recv_removeCoupon(self, ):
2190
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2191
    if mtype == TMessageType.EXCEPTION:
2192
      x = TApplicationException()
2193
      x.read(self._iprot)
2194
      self._iprot.readMessageEnd()
2195
      raise x
2196
    result = removeCoupon_result()
2197
    result.read(self._iprot)
2198
    self._iprot.readMessageEnd()
3431 rajveer 2199
    if result.scx is not None:
1976 varun.gupt 2200
      raise result.scx
2201
    return
2202
 
3554 varun.gupt 2203
  def deleteDiscountsFromCart(self, cartId):
2204
    """
2205
    Deletes all the discounts associated with the cart
2206
 
2207
    Parameters:
2208
     - cartId
2209
    """
2210
    self.send_deleteDiscountsFromCart(cartId)
2211
    self.recv_deleteDiscountsFromCart()
2212
 
2213
  def send_deleteDiscountsFromCart(self, cartId):
2214
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2215
    args = deleteDiscountsFromCart_args()
2216
    args.cartId = cartId
2217
    args.write(self._oprot)
2218
    self._oprot.writeMessageEnd()
2219
    self._oprot.trans.flush()
2220
 
2221
  def recv_deleteDiscountsFromCart(self, ):
2222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2223
    if mtype == TMessageType.EXCEPTION:
2224
      x = TApplicationException()
2225
      x.read(self._iprot)
2226
      self._iprot.readMessageEnd()
2227
      raise x
2228
    result = deleteDiscountsFromCart_result()
2229
    result.read(self._iprot)
2230
    self._iprot.readMessageEnd()
2231
    if result.scx is not None:
2232
      raise result.scx
2233
    return
2234
 
2235
  def saveDiscounts(self, discounts):
2236
    """
2237
    Accepts a list of thrift objects of Discount type and saves them
2238
 
2239
    Parameters:
2240
     - discounts
2241
    """
2242
    self.send_saveDiscounts(discounts)
2243
    self.recv_saveDiscounts()
2244
 
2245
  def send_saveDiscounts(self, discounts):
2246
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2247
    args = saveDiscounts_args()
2248
    args.discounts = discounts
2249
    args.write(self._oprot)
2250
    self._oprot.writeMessageEnd()
2251
    self._oprot.trans.flush()
2252
 
2253
  def recv_saveDiscounts(self, ):
2254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2255
    if mtype == TMessageType.EXCEPTION:
2256
      x = TApplicationException()
2257
      x.read(self._iprot)
2258
      self._iprot.readMessageEnd()
2259
      raise x
2260
    result = saveDiscounts_result()
2261
    result.read(self._iprot)
2262
    self._iprot.readMessageEnd()
2263
    if result.scx is not None:
2264
      raise result.scx
2265
    return
2266
 
5326 rajveer 2267
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2268
    """
690 chandransh 2269
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2270
 
559 chandransh 2271
    Parameters:
2272
     - cartId
2815 vikas 2273
     - sessionSource
2274
     - sessionStartTime
3858 vikas 2275
     - firstSource
2276
     - firstSourceTime
5326 rajveer 2277
     - userId
559 chandransh 2278
    """
5326 rajveer 2279
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2280
    return self.recv_createOrders()
559 chandransh 2281
 
5326 rajveer 2282
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2283
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2284
    args = createOrders_args()
559 chandransh 2285
    args.cartId = cartId
2815 vikas 2286
    args.sessionSource = sessionSource
2287
    args.sessionStartTime = sessionStartTime
3858 vikas 2288
    args.firstSource = firstSource
2289
    args.firstSourceTime = firstSourceTime
5326 rajveer 2290
    args.userId = userId
559 chandransh 2291
    args.write(self._oprot)
2292
    self._oprot.writeMessageEnd()
2293
    self._oprot.trans.flush()
2294
 
690 chandransh 2295
  def recv_createOrders(self, ):
559 chandransh 2296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2297
    if mtype == TMessageType.EXCEPTION:
2298
      x = TApplicationException()
2299
      x.read(self._iprot)
2300
      self._iprot.readMessageEnd()
2301
      raise x
690 chandransh 2302
    result = createOrders_result()
559 chandransh 2303
    result.read(self._iprot)
2304
    self._iprot.readMessageEnd()
3431 rajveer 2305
    if result.success is not None:
130 ashish 2306
      return result.success
3431 rajveer 2307
    if result.scx is not None:
559 chandransh 2308
      raise result.scx
690 chandransh 2309
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2310
 
3557 rajveer 2311
  def validateCart(self, cartId, sourceId):
130 ashish 2312
    """
690 chandransh 2313
    Validates that:
2314
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2315
    2. All of the lines in the cart are active items.
690 chandransh 2316
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2317
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2318
 
130 ashish 2319
    Parameters:
559 chandransh 2320
     - cartId
3557 rajveer 2321
     - sourceId
130 ashish 2322
    """
3557 rajveer 2323
    self.send_validateCart(cartId, sourceId)
559 chandransh 2324
    return self.recv_validateCart()
130 ashish 2325
 
3557 rajveer 2326
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2327
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2328
    args = validateCart_args()
2329
    args.cartId = cartId
3557 rajveer 2330
    args.sourceId = sourceId
130 ashish 2331
    args.write(self._oprot)
2332
    self._oprot.writeMessageEnd()
2333
    self._oprot.trans.flush()
2334
 
559 chandransh 2335
  def recv_validateCart(self, ):
130 ashish 2336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2337
    if mtype == TMessageType.EXCEPTION:
2338
      x = TApplicationException()
2339
      x.read(self._iprot)
2340
      self._iprot.readMessageEnd()
2341
      raise x
559 chandransh 2342
    result = validateCart_result()
130 ashish 2343
    result.read(self._iprot)
2344
    self._iprot.readMessageEnd()
3431 rajveer 2345
    if result.success is not None:
130 ashish 2346
      return result.success
3431 rajveer 2347
    if result.scex is not None:
575 chandransh 2348
      raise result.scex
559 chandransh 2349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2350
 
690 chandransh 2351
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2352
    """
690 chandransh 2353
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2354
 
575 chandransh 2355
    Parameters:
690 chandransh 2356
     - fromCartId
2357
     - toCartId
2358
    """
2359
    self.send_mergeCart(fromCartId, toCartId)
2360
    self.recv_mergeCart()
2361
 
2362
  def send_mergeCart(self, fromCartId, toCartId):
2363
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2364
    args = mergeCart_args()
2365
    args.fromCartId = fromCartId
2366
    args.toCartId = toCartId
2367
    args.write(self._oprot)
2368
    self._oprot.writeMessageEnd()
2369
    self._oprot.trans.flush()
2370
 
2371
  def recv_mergeCart(self, ):
2372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2373
    if mtype == TMessageType.EXCEPTION:
2374
      x = TApplicationException()
2375
      x.read(self._iprot)
2376
      self._iprot.readMessageEnd()
2377
      raise x
2378
    result = mergeCart_result()
2379
    result.read(self._iprot)
2380
    self._iprot.readMessageEnd()
2381
    return
2382
 
2383
  def checkOut(self, cartId):
2384
    """
2385
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2386
 
690 chandransh 2387
    Parameters:
575 chandransh 2388
     - cartId
2389
    """
690 chandransh 2390
    self.send_checkOut(cartId)
2391
    return self.recv_checkOut()
575 chandransh 2392
 
690 chandransh 2393
  def send_checkOut(self, cartId):
2394
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2395
    args = checkOut_args()
575 chandransh 2396
    args.cartId = cartId
2397
    args.write(self._oprot)
2398
    self._oprot.writeMessageEnd()
2399
    self._oprot.trans.flush()
2400
 
690 chandransh 2401
  def recv_checkOut(self, ):
575 chandransh 2402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2403
    if mtype == TMessageType.EXCEPTION:
2404
      x = TApplicationException()
2405
      x.read(self._iprot)
2406
      self._iprot.readMessageEnd()
2407
      raise x
690 chandransh 2408
    result = checkOut_result()
575 chandransh 2409
    result.read(self._iprot)
2410
    self._iprot.readMessageEnd()
3431 rajveer 2411
    if result.success is not None:
575 chandransh 2412
      return result.success
3431 rajveer 2413
    if result.scex is not None:
575 chandransh 2414
      raise result.scex
690 chandransh 2415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2416
 
690 chandransh 2417
  def resetCart(self, cartId, items):
559 chandransh 2418
    """
690 chandransh 2419
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2420
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2421
 
559 chandransh 2422
    Parameters:
690 chandransh 2423
     - cartId
2424
     - items
559 chandransh 2425
    """
690 chandransh 2426
    self.send_resetCart(cartId, items)
2427
    return self.recv_resetCart()
130 ashish 2428
 
690 chandransh 2429
  def send_resetCart(self, cartId, items):
2430
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2431
    args = resetCart_args()
2432
    args.cartId = cartId
2433
    args.items = items
559 chandransh 2434
    args.write(self._oprot)
2435
    self._oprot.writeMessageEnd()
2436
    self._oprot.trans.flush()
2437
 
690 chandransh 2438
  def recv_resetCart(self, ):
559 chandransh 2439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2440
    if mtype == TMessageType.EXCEPTION:
2441
      x = TApplicationException()
2442
      x.read(self._iprot)
2443
      self._iprot.readMessageEnd()
2444
      raise x
690 chandransh 2445
    result = resetCart_result()
559 chandransh 2446
    result.read(self._iprot)
2447
    self._iprot.readMessageEnd()
3431 rajveer 2448
    if result.success is not None:
690 chandransh 2449
      return result.success
3431 rajveer 2450
    if result.scex is not None:
690 chandransh 2451
      raise result.scex
2452
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2453
 
2981 rajveer 2454
  def getUserCount(self, userType):
559 chandransh 2455
    """
2981 rajveer 2456
    Returns number of registered users.
2457
    If userType = null, then it returns count of all users, including anonymous
2458
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2459
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2460
 
559 chandransh 2461
    Parameters:
2981 rajveer 2462
     - userType
559 chandransh 2463
    """
2981 rajveer 2464
    self.send_getUserCount(userType)
2465
    return self.recv_getUserCount()
559 chandransh 2466
 
2981 rajveer 2467
  def send_getUserCount(self, userType):
2468
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2469
    args = getUserCount_args()
2470
    args.userType = userType
559 chandransh 2471
    args.write(self._oprot)
2472
    self._oprot.writeMessageEnd()
2473
    self._oprot.trans.flush()
2474
 
2981 rajveer 2475
  def recv_getUserCount(self, ):
559 chandransh 2476
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2477
    if mtype == TMessageType.EXCEPTION:
2478
      x = TApplicationException()
2479
      x.read(self._iprot)
2480
      self._iprot.readMessageEnd()
2481
      raise x
2981 rajveer 2482
    result = getUserCount_result()
559 chandransh 2483
    result.read(self._iprot)
2484
    self._iprot.readMessageEnd()
3431 rajveer 2485
    if result.success is not None:
559 chandransh 2486
      return result.success
2981 rajveer 2487
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2488
 
2981 rajveer 2489
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2490
    """
2981 rajveer 2491
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2492
    If any of startDate or endDate is -1, then that filter is ignored.
2493
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2494
 
2495
 
559 chandransh 2496
    Parameters:
2981 rajveer 2497
     - userType
2498
     - startDate
2499
     - endDate
559 chandransh 2500
    """
2981 rajveer 2501
    self.send_getAllUsers(userType, startDate, endDate)
2502
    return self.recv_getAllUsers()
559 chandransh 2503
 
2981 rajveer 2504
  def send_getAllUsers(self, userType, startDate, endDate):
2505
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2506
    args = getAllUsers_args()
2507
    args.userType = userType
2508
    args.startDate = startDate
2509
    args.endDate = endDate
559 chandransh 2510
    args.write(self._oprot)
2511
    self._oprot.writeMessageEnd()
2512
    self._oprot.trans.flush()
2513
 
2981 rajveer 2514
  def recv_getAllUsers(self, ):
559 chandransh 2515
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2516
    if mtype == TMessageType.EXCEPTION:
2517
      x = TApplicationException()
2518
      x.read(self._iprot)
2519
      self._iprot.readMessageEnd()
2520
      raise x
2981 rajveer 2521
    result = getAllUsers_result()
559 chandransh 2522
    result.read(self._iprot)
2523
    self._iprot.readMessageEnd()
3431 rajveer 2524
    if result.success is not None:
559 chandransh 2525
      return result.success
2981 rajveer 2526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2527
 
2981 rajveer 2528
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2529
    """
2530
    Parameters:
2981 rajveer 2531
     - user_id
2532
     - entity_id
2533
     - slide
2534
     - note
559 chandransh 2535
    """
2981 rajveer 2536
    self.send_putUserNote(user_id, entity_id, slide, note)
2537
    self.recv_putUserNote()
559 chandransh 2538
 
2981 rajveer 2539
  def send_putUserNote(self, user_id, entity_id, slide, note):
2540
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2541
    args = putUserNote_args()
2542
    args.user_id = user_id
2543
    args.entity_id = entity_id
2544
    args.slide = slide
2545
    args.note = note
559 chandransh 2546
    args.write(self._oprot)
2547
    self._oprot.writeMessageEnd()
2548
    self._oprot.trans.flush()
2549
 
2981 rajveer 2550
  def recv_putUserNote(self, ):
559 chandransh 2551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2552
    if mtype == TMessageType.EXCEPTION:
2553
      x = TApplicationException()
2554
      x.read(self._iprot)
2555
      self._iprot.readMessageEnd()
2556
      raise x
2981 rajveer 2557
    result = putUserNote_result()
559 chandransh 2558
    result.read(self._iprot)
2559
    self._iprot.readMessageEnd()
2560
    return
2561
 
2981 rajveer 2562
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2563
    """
2564
    Parameters:
2981 rajveer 2565
     - user_id
2566
     - entity_id
559 chandransh 2567
    """
2981 rajveer 2568
    self.send_getUserNotes(user_id, entity_id)
2569
    return self.recv_getUserNotes()
559 chandransh 2570
 
2981 rajveer 2571
  def send_getUserNotes(self, user_id, entity_id):
2572
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2573
    args = getUserNotes_args()
2574
    args.user_id = user_id
2575
    args.entity_id = entity_id
559 chandransh 2576
    args.write(self._oprot)
2577
    self._oprot.writeMessageEnd()
2578
    self._oprot.trans.flush()
2579
 
2981 rajveer 2580
  def recv_getUserNotes(self, ):
559 chandransh 2581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2582
    if mtype == TMessageType.EXCEPTION:
2583
      x = TApplicationException()
2584
      x.read(self._iprot)
2585
      self._iprot.readMessageEnd()
2586
      raise x
2981 rajveer 2587
    result = getUserNotes_result()
559 chandransh 2588
    result.read(self._iprot)
2589
    self._iprot.readMessageEnd()
3431 rajveer 2590
    if result.success is not None:
2981 rajveer 2591
      return result.success
2592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2593
 
2981 rajveer 2594
  def getMyResearchItems(self, userId):
559 chandransh 2595
    """
2981 rajveer 2596
    Returns list of item ids in myresearch for the user
3431 rajveer 2597
 
559 chandransh 2598
    Parameters:
772 rajveer 2599
     - userId
559 chandransh 2600
    """
2981 rajveer 2601
    self.send_getMyResearchItems(userId)
2602
    return self.recv_getMyResearchItems()
559 chandransh 2603
 
2981 rajveer 2604
  def send_getMyResearchItems(self, userId):
2605
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2606
    args = getMyResearchItems_args()
772 rajveer 2607
    args.userId = userId
559 chandransh 2608
    args.write(self._oprot)
2609
    self._oprot.writeMessageEnd()
2610
    self._oprot.trans.flush()
2611
 
2981 rajveer 2612
  def recv_getMyResearchItems(self, ):
559 chandransh 2613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2614
    if mtype == TMessageType.EXCEPTION:
2615
      x = TApplicationException()
2616
      x.read(self._iprot)
2617
      self._iprot.readMessageEnd()
2618
      raise x
2981 rajveer 2619
    result = getMyResearchItems_result()
559 chandransh 2620
    result.read(self._iprot)
2621
    self._iprot.readMessageEnd()
3431 rajveer 2622
    if result.success is not None:
559 chandransh 2623
      return result.success
3431 rajveer 2624
    if result.scx is not None:
559 chandransh 2625
      raise result.scx
2981 rajveer 2626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2627
 
2981 rajveer 2628
  def updateMyResearch(self, userId, itemId):
559 chandransh 2629
    """
2981 rajveer 2630
    add item to my research for a user
3431 rajveer 2631
 
559 chandransh 2632
    Parameters:
2981 rajveer 2633
     - userId
2634
     - itemId
559 chandransh 2635
    """
2981 rajveer 2636
    self.send_updateMyResearch(userId, itemId)
2637
    return self.recv_updateMyResearch()
559 chandransh 2638
 
2981 rajveer 2639
  def send_updateMyResearch(self, userId, itemId):
2640
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2641
    args = updateMyResearch_args()
2642
    args.userId = userId
2643
    args.itemId = itemId
559 chandransh 2644
    args.write(self._oprot)
2645
    self._oprot.writeMessageEnd()
2646
    self._oprot.trans.flush()
2647
 
2981 rajveer 2648
  def recv_updateMyResearch(self, ):
559 chandransh 2649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2650
    if mtype == TMessageType.EXCEPTION:
2651
      x = TApplicationException()
2652
      x.read(self._iprot)
2653
      self._iprot.readMessageEnd()
2654
      raise x
2981 rajveer 2655
    result = updateMyResearch_result()
559 chandransh 2656
    result.read(self._iprot)
2657
    self._iprot.readMessageEnd()
3431 rajveer 2658
    if result.success is not None:
2981 rajveer 2659
      return result.success
3431 rajveer 2660
    if result.scx is not None:
2981 rajveer 2661
      raise result.scx
2662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2663
 
2981 rajveer 2664
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2665
    """
2981 rajveer 2666
    delete item from my research for a user
3431 rajveer 2667
 
1596 ankur.sing 2668
    Parameters:
2981 rajveer 2669
     - userId
2670
     - itemId
1596 ankur.sing 2671
    """
2981 rajveer 2672
    self.send_deleteItemFromMyResearch(userId, itemId)
2673
    self.recv_deleteItemFromMyResearch()
559 chandransh 2674
 
2981 rajveer 2675
  def send_deleteItemFromMyResearch(self, userId, itemId):
2676
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2677
    args = deleteItemFromMyResearch_args()
2678
    args.userId = userId
2679
    args.itemId = itemId
1596 ankur.sing 2680
    args.write(self._oprot)
2681
    self._oprot.writeMessageEnd()
2682
    self._oprot.trans.flush()
2683
 
2981 rajveer 2684
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2686
    if mtype == TMessageType.EXCEPTION:
2687
      x = TApplicationException()
2688
      x.read(self._iprot)
2689
      self._iprot.readMessageEnd()
2690
      raise x
2981 rajveer 2691
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2692
    result.read(self._iprot)
2693
    self._iprot.readMessageEnd()
3431 rajveer 2694
    if result.scx is not None:
2981 rajveer 2695
      raise result.scx
2696
    return
1596 ankur.sing 2697
 
2981 rajveer 2698
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2699
    """
2981 rajveer 2700
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2701
 
1673 ankur.sing 2702
    Parameters:
2981 rajveer 2703
     - userId
1673 ankur.sing 2704
    """
2981 rajveer 2705
    self.send_getBrowseHistoryItems(userId)
2706
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2707
 
2981 rajveer 2708
  def send_getBrowseHistoryItems(self, userId):
2709
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2710
    args = getBrowseHistoryItems_args()
2711
    args.userId = userId
1673 ankur.sing 2712
    args.write(self._oprot)
2713
    self._oprot.writeMessageEnd()
2714
    self._oprot.trans.flush()
2715
 
2981 rajveer 2716
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2718
    if mtype == TMessageType.EXCEPTION:
2719
      x = TApplicationException()
2720
      x.read(self._iprot)
2721
      self._iprot.readMessageEnd()
2722
      raise x
2981 rajveer 2723
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2724
    result.read(self._iprot)
2725
    self._iprot.readMessageEnd()
3431 rajveer 2726
    if result.success is not None:
1673 ankur.sing 2727
      return result.success
3431 rajveer 2728
    if result.scx is not None:
2981 rajveer 2729
      raise result.scx
2730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2731
 
2981 rajveer 2732
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2733
    """
2981 rajveer 2734
    add item to browse history for a user
3431 rajveer 2735
 
2642 varun.gupt 2736
    Parameters:
2981 rajveer 2737
     - userId
2738
     - itemId
2642 varun.gupt 2739
    """
2981 rajveer 2740
    self.send_updateBrowseHistory(userId, itemId)
2741
    self.recv_updateBrowseHistory()
1673 ankur.sing 2742
 
2981 rajveer 2743
  def send_updateBrowseHistory(self, userId, itemId):
2744
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2745
    args = updateBrowseHistory_args()
2746
    args.userId = userId
2747
    args.itemId = itemId
2642 varun.gupt 2748
    args.write(self._oprot)
2749
    self._oprot.writeMessageEnd()
2750
    self._oprot.trans.flush()
2751
 
2981 rajveer 2752
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2754
    if mtype == TMessageType.EXCEPTION:
2755
      x = TApplicationException()
2756
      x.read(self._iprot)
2757
      self._iprot.readMessageEnd()
2758
      raise x
2981 rajveer 2759
    result = updateBrowseHistory_result()
2642 varun.gupt 2760
    result.read(self._iprot)
2761
    self._iprot.readMessageEnd()
2762
    return
2763
 
3385 varun.gupt 2764
  def getCartsWithCouponCount(self, couponCode):
2765
    """
2766
    Returns count of Carts with given coupon applied
3431 rajveer 2767
 
3385 varun.gupt 2768
    Parameters:
2769
     - couponCode
2770
    """
2771
    self.send_getCartsWithCouponCount(couponCode)
2772
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2773
 
3385 varun.gupt 2774
  def send_getCartsWithCouponCount(self, couponCode):
2775
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2776
    args = getCartsWithCouponCount_args()
2777
    args.couponCode = couponCode
2778
    args.write(self._oprot)
2779
    self._oprot.writeMessageEnd()
2780
    self._oprot.trans.flush()
2781
 
2782
  def recv_getCartsWithCouponCount(self, ):
2783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2784
    if mtype == TMessageType.EXCEPTION:
2785
      x = TApplicationException()
2786
      x.read(self._iprot)
2787
      self._iprot.readMessageEnd()
2788
      raise x
2789
    result = getCartsWithCouponCount_result()
2790
    result.read(self._iprot)
2791
    self._iprot.readMessageEnd()
3431 rajveer 2792
    if result.success is not None:
3385 varun.gupt 2793
      return result.success
2794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2795
 
3499 mandeep.dh 2796
  def increaseTrustLevel(self, userId, trustLevelDelta):
2797
    """
2798
    Updates COD trust level of a user
3385 varun.gupt 2799
 
3499 mandeep.dh 2800
    Parameters:
2801
     - userId
2802
     - trustLevelDelta
2803
    """
2804
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2805
 
2806
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2807
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2808
    args = increaseTrustLevel_args()
2809
    args.userId = userId
2810
    args.trustLevelDelta = trustLevelDelta
2811
    args.write(self._oprot)
2812
    self._oprot.writeMessageEnd()
2813
    self._oprot.trans.flush()
5407 amar.kumar 2814
  def getTrustLevel(self, userId):
2815
    """
2816
    Get trust level of a user
2817
 
2818
    Parameters:
2819
     - userId
2820
    """
2821
    self.send_getTrustLevel(userId)
2822
    return self.recv_getTrustLevel()
2823
 
2824
  def send_getTrustLevel(self, userId):
2825
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2826
    args = getTrustLevel_args()
2827
    args.userId = userId
2828
    args.write(self._oprot)
2829
    self._oprot.writeMessageEnd()
2830
    self._oprot.trans.flush()
2831
 
2832
  def recv_getTrustLevel(self, ):
2833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2834
    if mtype == TMessageType.EXCEPTION:
2835
      x = TApplicationException()
2836
      x.read(self._iprot)
2837
      self._iprot.readMessageEnd()
2838
      raise x
2839
    result = getTrustLevel_result()
2840
    result.read(self._iprot)
2841
    self._iprot.readMessageEnd()
2842
    if result.success is not None:
2843
      return result.success
2844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2845
 
4668 varun.gupt 2846
  def showCODOption(self, cartId, sourceId, pincode):
2847
    """
2848
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2849
 
4668 varun.gupt 2850
    Parameters:
2851
     - cartId
2852
     - sourceId
2853
     - pincode
2854
    """
2855
    self.send_showCODOption(cartId, sourceId, pincode)
2856
    return self.recv_showCODOption()
2857
 
2858
  def send_showCODOption(self, cartId, sourceId, pincode):
2859
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2860
    args = showCODOption_args()
2861
    args.cartId = cartId
2862
    args.sourceId = sourceId
2863
    args.pincode = pincode
2864
    args.write(self._oprot)
2865
    self._oprot.writeMessageEnd()
2866
    self._oprot.trans.flush()
2867
 
2868
  def recv_showCODOption(self, ):
2869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2870
    if mtype == TMessageType.EXCEPTION:
2871
      x = TApplicationException()
2872
      x.read(self._iprot)
2873
      self._iprot.readMessageEnd()
2874
      raise x
2875
    result = showCODOption_result()
2876
    result.read(self._iprot)
2877
    self._iprot.readMessageEnd()
2878
    if result.success is not None:
2879
      return result.success
2880
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2881
 
2882
 
3376 rajveer 2883
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2884
  def __init__(self, handler):
3376 rajveer 2885
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2886
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2887
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2888
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2889
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2890
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2891
    self._processMap["createUser"] = Processor.process_createUser
2892
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2893
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2894
    self._processMap["userExists"] = Processor.process_userExists
2895
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2896
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2897
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2898
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2899
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2900
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2901
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2902
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2903
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2904
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2905
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2906
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2907
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2908
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2909
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 2910
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 2911
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2912
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2913
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2914
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2915
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2916
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2917
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2918
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2919
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2920
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2921
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2922
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2923
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2924
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2925
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2926
    self._processMap["getCart"] = Processor.process_getCart
2927
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2928
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2929
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2930
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 2931
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 2932
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2933
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2934
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2935
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2936
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2937
    self._processMap["validateCart"] = Processor.process_validateCart
2938
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2939
    self._processMap["checkOut"] = Processor.process_checkOut
2940
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2941
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2942
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2943
    self._processMap["putUserNote"] = Processor.process_putUserNote
2944
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2945
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2946
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2947
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2948
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2949
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2950
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2951
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 2952
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 2953
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 2954
 
2955
  def process(self, iprot, oprot):
2956
    (name, type, seqid) = iprot.readMessageBegin()
2957
    if name not in self._processMap:
2958
      iprot.skip(TType.STRUCT)
2959
      iprot.readMessageEnd()
2960
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2961
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2962
      x.write(oprot)
2963
      oprot.writeMessageEnd()
2964
      oprot.trans.flush()
2965
      return
2966
    else:
2967
      self._processMap[name](self, seqid, iprot, oprot)
2968
    return True
2969
 
559 chandransh 2970
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2971
    args = createAnonymousUser_args()
94 ashish 2972
    args.read(iprot)
2973
    iprot.readMessageEnd()
559 chandransh 2974
    result = createAnonymousUser_result()
94 ashish 2975
    try:
559 chandransh 2976
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2977
    except UserContextException, ucex:
2978
      result.ucex = ucex
2979
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2980
    result.write(oprot)
2981
    oprot.writeMessageEnd()
2982
    oprot.trans.flush()
2983
 
559 chandransh 2984
  def process_getUserById(self, seqid, iprot, oprot):
2985
    args = getUserById_args()
94 ashish 2986
    args.read(iprot)
2987
    iprot.readMessageEnd()
559 chandransh 2988
    result = getUserById_result()
94 ashish 2989
    try:
559 chandransh 2990
      result.success = self._handler.getUserById(args.userId)
2991
    except UserContextException, ucex:
2992
      result.ucex = ucex
2993
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2994
    result.write(oprot)
2995
    oprot.writeMessageEnd()
2996
    oprot.trans.flush()
2997
 
5326 rajveer 2998
  def process_getUserByCartId(self, seqid, iprot, oprot):
2999
    args = getUserByCartId_args()
3000
    args.read(iprot)
3001
    iprot.readMessageEnd()
3002
    result = getUserByCartId_result()
3003
    try:
3004
      result.success = self._handler.getUserByCartId(args.cartId)
3005
    except UserContextException, ucex:
3006
      result.ucex = ucex
3007
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3008
    result.write(oprot)
3009
    oprot.writeMessageEnd()
3010
    oprot.trans.flush()
3011
 
1491 vikas 3012
  def process_getUserByEmail(self, seqid, iprot, oprot):
3013
    args = getUserByEmail_args()
3014
    args.read(iprot)
3015
    iprot.readMessageEnd()
3016
    result = getUserByEmail_result()
3017
    try:
3018
      result.success = self._handler.getUserByEmail(args.email)
3019
    except UserContextException, ucex:
3020
      result.ucex = ucex
3021
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3022
    result.write(oprot)
3023
    oprot.writeMessageEnd()
3024
    oprot.trans.flush()
3025
 
3032 mandeep.dh 3026
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3027
    args = getUserByMobileNumber_args()
3028
    args.read(iprot)
3029
    iprot.readMessageEnd()
3030
    result = getUserByMobileNumber_result()
3031
    try:
3032
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3033
    except UserContextException, ucex:
3034
      result.ucex = ucex
3035
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3036
    result.write(oprot)
3037
    oprot.writeMessageEnd()
3038
    oprot.trans.flush()
3039
 
559 chandransh 3040
  def process_createUser(self, seqid, iprot, oprot):
3041
    args = createUser_args()
94 ashish 3042
    args.read(iprot)
3043
    iprot.readMessageEnd()
559 chandransh 3044
    result = createUser_result()
94 ashish 3045
    try:
559 chandransh 3046
      result.success = self._handler.createUser(args.user)
3047
    except UserContextException, ucex:
3048
      result.ucex = ucex
3049
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3050
    result.write(oprot)
3051
    oprot.writeMessageEnd()
3052
    oprot.trans.flush()
3053
 
559 chandransh 3054
  def process_updateUser(self, seqid, iprot, oprot):
3055
    args = updateUser_args()
94 ashish 3056
    args.read(iprot)
3057
    iprot.readMessageEnd()
559 chandransh 3058
    result = updateUser_result()
94 ashish 3059
    try:
559 chandransh 3060
      result.success = self._handler.updateUser(args.user)
3061
    except UserContextException, ucex:
3062
      result.ucex = ucex
3063
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3064
    result.write(oprot)
3065
    oprot.writeMessageEnd()
3066
    oprot.trans.flush()
3067
 
122 ashish 3068
  def process_authenticateUser(self, seqid, iprot, oprot):
3069
    args = authenticateUser_args()
3070
    args.read(iprot)
3071
    iprot.readMessageEnd()
3072
    result = authenticateUser_result()
3073
    try:
559 chandransh 3074
      result.success = self._handler.authenticateUser(args.email, args.password)
3075
    except AuthenticationException, auex:
3076
      result.auex = auex
122 ashish 3077
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3078
    result.write(oprot)
3079
    oprot.writeMessageEnd()
3080
    oprot.trans.flush()
3081
 
94 ashish 3082
  def process_userExists(self, seqid, iprot, oprot):
3083
    args = userExists_args()
3084
    args.read(iprot)
3085
    iprot.readMessageEnd()
3086
    result = userExists_result()
3087
    try:
3088
      result.success = self._handler.userExists(args.email)
3089
    except UserContextException, ucx:
3090
      result.ucx = ucx
3091
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3092
    result.write(oprot)
3093
    oprot.writeMessageEnd()
3094
    oprot.trans.flush()
3095
 
3096
  def process_addAddressForUser(self, seqid, iprot, oprot):
3097
    args = addAddressForUser_args()
3098
    args.read(iprot)
3099
    iprot.readMessageEnd()
3100
    result = addAddressForUser_result()
3101
    try:
567 rajveer 3102
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3103
    except UserContextException, ucx:
3104
      result.ucx = ucx
3105
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3106
    result.write(oprot)
3107
    oprot.writeMessageEnd()
3108
    oprot.trans.flush()
3109
 
3110
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3111
    args = removeAddressForUser_args()
3112
    args.read(iprot)
3113
    iprot.readMessageEnd()
3114
    result = removeAddressForUser_result()
3115
    try:
3116
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3117
    except UserContextException, ucx:
3118
      result.ucx = ucx
3119
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3120
    result.write(oprot)
3121
    oprot.writeMessageEnd()
3122
    oprot.trans.flush()
3123
 
3124
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3125
    args = setUserAsLoggedIn_args()
3126
    args.read(iprot)
3127
    iprot.readMessageEnd()
3128
    result = setUserAsLoggedIn_result()
3129
    try:
3130
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3131
    except UserContextException, ucx:
3132
      result.ucx = ucx
3133
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3134
    result.write(oprot)
3135
    oprot.writeMessageEnd()
3136
    oprot.trans.flush()
3137
 
3138
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3139
    args = setUserAsLoggedOut_args()
3140
    args.read(iprot)
3141
    iprot.readMessageEnd()
3142
    result = setUserAsLoggedOut_result()
3143
    try:
3144
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3145
    except UserContextException, ucx:
3146
      result.ucx = ucx
3147
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3148
    result.write(oprot)
3149
    oprot.writeMessageEnd()
3150
    oprot.trans.flush()
3151
 
504 rajveer 3152
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3153
    args = setDefaultAddress_args()
3154
    args.read(iprot)
3155
    iprot.readMessageEnd()
3156
    result = setDefaultAddress_result()
3157
    try:
3158
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3159
    except UserContextException, ucx:
3160
      result.ucx = ucx
3161
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3162
    result.write(oprot)
3163
    oprot.writeMessageEnd()
3164
    oprot.trans.flush()
3165
 
94 ashish 3166
  def process_updatePassword(self, seqid, iprot, oprot):
3167
    args = updatePassword_args()
3168
    args.read(iprot)
3169
    iprot.readMessageEnd()
3170
    result = updatePassword_result()
3171
    try:
594 rajveer 3172
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3173
    except UserContextException, ucx:
3174
      result.ucx = ucx
3175
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3176
    result.write(oprot)
3177
    oprot.writeMessageEnd()
3178
    oprot.trans.flush()
3179
 
581 rajveer 3180
  def process_forgotPassword(self, seqid, iprot, oprot):
3181
    args = forgotPassword_args()
3182
    args.read(iprot)
3183
    iprot.readMessageEnd()
3184
    result = forgotPassword_result()
3185
    try:
884 rajveer 3186
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3187
    except UserContextException, ucx:
3188
      result.ucx = ucx
3189
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3190
    result.write(oprot)
3191
    oprot.writeMessageEnd()
3192
    oprot.trans.flush()
3193
 
594 rajveer 3194
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3195
    args = getAllAddressesForUser_args()
3196
    args.read(iprot)
3197
    iprot.readMessageEnd()
3198
    result = getAllAddressesForUser_result()
3199
    try:
3200
      result.success = self._handler.getAllAddressesForUser(args.userId)
3201
    except UserContextException, ucx:
3202
      result.ucx = ucx
3203
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3204
    result.write(oprot)
3205
    oprot.writeMessageEnd()
3206
    oprot.trans.flush()
3207
 
1894 vikas 3208
  def process_getAddressById(self, seqid, iprot, oprot):
3209
    args = getAddressById_args()
3210
    args.read(iprot)
3211
    iprot.readMessageEnd()
3212
    result = getAddressById_result()
3213
    try:
3214
      result.success = self._handler.getAddressById(args.addressId)
3215
    except UserContextException, ucx:
3216
      result.ucx = ucx
3217
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3218
    result.write(oprot)
3219
    oprot.writeMessageEnd()
3220
    oprot.trans.flush()
3221
 
594 rajveer 3222
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3223
    args = getDefaultAddressId_args()
3224
    args.read(iprot)
3225
    iprot.readMessageEnd()
3226
    result = getDefaultAddressId_result()
3227
    try:
3228
      result.success = self._handler.getDefaultAddressId(args.userId)
3229
    except UserContextException, ucx:
3230
      result.ucx = ucx
3231
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3232
    result.write(oprot)
3233
    oprot.writeMessageEnd()
3234
    oprot.trans.flush()
3235
 
785 rajveer 3236
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3237
    args = getDefaultPincode_args()
3238
    args.read(iprot)
3239
    iprot.readMessageEnd()
3240
    result = getDefaultPincode_result()
3241
    try:
3242
      result.success = self._handler.getDefaultPincode(args.userId)
3243
    except UserContextException, ucx:
3244
      result.ucx = ucx
3245
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3246
    result.write(oprot)
3247
    oprot.writeMessageEnd()
3248
    oprot.trans.flush()
3249
 
1274 varun.gupt 3250
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3251
    args = saveUserCommunication_args()
3252
    args.read(iprot)
3253
    iprot.readMessageEnd()
3254
    result = saveUserCommunication_result()
3255
    try:
3256
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3257
    except UserCommunicationException, ucx:
3258
      result.ucx = ucx
3259
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3260
    result.write(oprot)
3261
    oprot.writeMessageEnd()
3262
    oprot.trans.flush()
3263
 
1590 varun.gupt 3264
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3265
    args = getUserCommunicationById_args()
3266
    args.read(iprot)
3267
    iprot.readMessageEnd()
3268
    result = getUserCommunicationById_result()
3269
    try:
3270
      result.success = self._handler.getUserCommunicationById(args.id)
3271
    except UserCommunicationException, ucx:
3272
      result.ucx = ucx
3273
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3274
    result.write(oprot)
3275
    oprot.writeMessageEnd()
3276
    oprot.trans.flush()
3277
 
3278
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3279
    args = getUserCommunicationByUser_args()
3280
    args.read(iprot)
3281
    iprot.readMessageEnd()
3282
    result = getUserCommunicationByUser_result()
3283
    try:
3284
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3285
    except UserCommunicationException, ucx:
3286
      result.ucx = ucx
3287
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3288
    result.write(oprot)
3289
    oprot.writeMessageEnd()
3290
    oprot.trans.flush()
3291
 
3292
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3293
    args = getAllUserCommunications_args()
3294
    args.read(iprot)
3295
    iprot.readMessageEnd()
3296
    result = getAllUserCommunications_result()
3297
    try:
3298
      result.success = self._handler.getAllUserCommunications()
3299
    except UserCommunicationException, ucx:
3300
      result.ucx = ucx
3301
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3302
    result.write(oprot)
3303
    oprot.writeMessageEnd()
3304
    oprot.trans.flush()
3305
 
5407 amar.kumar 3306
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3307
    args = removeUserCommunication_args()
3308
    args.read(iprot)
3309
    iprot.readMessageEnd()
3310
    result = removeUserCommunication_result()
3311
    try:
3312
      self._handler.removeUserCommunication(args.id)
3313
    except UserCommunicationException, ucx:
3314
      result.ucx = ucx
3315
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3316
    result.write(oprot)
3317
    oprot.writeMessageEnd()
3318
    oprot.trans.flush()
3319
 
1845 vikas 3320
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3321
    args = createMasterAffiliate_args()
3322
    args.read(iprot)
3323
    iprot.readMessageEnd()
3324
    result = createMasterAffiliate_result()
3325
    try:
1859 vikas 3326
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3327
    except UserAffiliateException, utx:
1845 vikas 3328
      result.utx = utx
3329
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3330
    result.write(oprot)
3331
    oprot.writeMessageEnd()
3332
    oprot.trans.flush()
3333
 
1899 vikas 3334
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3335
    args = getAllMasterAffiliates_args()
3336
    args.read(iprot)
3337
    iprot.readMessageEnd()
3338
    result = getAllMasterAffiliates_result()
3339
    try:
3340
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3341
    except UserAffiliateException, utx:
1899 vikas 3342
      result.utx = utx
3343
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3344
    result.write(oprot)
3345
    oprot.writeMessageEnd()
3346
    oprot.trans.flush()
3347
 
1845 vikas 3348
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3349
    args = getMasterAffiliateById_args()
3350
    args.read(iprot)
3351
    iprot.readMessageEnd()
3352
    result = getMasterAffiliateById_result()
3353
    try:
3354
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3355
    except UserAffiliateException, utx:
1845 vikas 3356
      result.utx = utx
3357
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3358
    result.write(oprot)
3359
    oprot.writeMessageEnd()
3360
    oprot.trans.flush()
3361
 
3362
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3363
    args = getMasterAffiliateByName_args()
3364
    args.read(iprot)
3365
    iprot.readMessageEnd()
3366
    result = getMasterAffiliateByName_result()
3367
    try:
3368
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3369
    except UserAffiliateException, utx:
1845 vikas 3370
      result.utx = utx
3371
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3372
    result.write(oprot)
3373
    oprot.writeMessageEnd()
3374
    oprot.trans.flush()
3375
 
3376
  def process_createAffiliate(self, seqid, iprot, oprot):
3377
    args = createAffiliate_args()
3378
    args.read(iprot)
3379
    iprot.readMessageEnd()
3380
    result = createAffiliate_result()
3381
    try:
1859 vikas 3382
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3383
    except UserAffiliateException, utx:
1845 vikas 3384
      result.utx = utx
3385
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3386
    result.write(oprot)
3387
    oprot.writeMessageEnd()
3388
    oprot.trans.flush()
3389
 
3390
  def process_getAffiliateById(self, seqid, iprot, oprot):
3391
    args = getAffiliateById_args()
3392
    args.read(iprot)
3393
    iprot.readMessageEnd()
3394
    result = getAffiliateById_result()
3395
    try:
3396
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3397
    except UserAffiliateException, utx:
1845 vikas 3398
      result.utx = utx
3399
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3400
    result.write(oprot)
3401
    oprot.writeMessageEnd()
3402
    oprot.trans.flush()
3403
 
3404
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3405
    args = getAffiliateByName_args()
3406
    args.read(iprot)
3407
    iprot.readMessageEnd()
3408
    result = getAffiliateByName_result()
3409
    try:
3410
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3411
    except UserAffiliateException, utx:
1845 vikas 3412
      result.utx = utx
3413
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3414
    result.write(oprot)
3415
    oprot.writeMessageEnd()
3416
    oprot.trans.flush()
3417
 
3418
  def process_getTrackerById(self, seqid, iprot, oprot):
3419
    args = getTrackerById_args()
3420
    args.read(iprot)
3421
    iprot.readMessageEnd()
3422
    result = getTrackerById_result()
3423
    try:
1996 vikas 3424
      result.success = self._handler.getTrackerById(args.id)
3425
    except UserAffiliateException, utx:
1845 vikas 3426
      result.utx = utx
3427
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3428
    result.write(oprot)
3429
    oprot.writeMessageEnd()
3430
    oprot.trans.flush()
3431
 
1996 vikas 3432
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3433
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3434
    args.read(iprot)
3435
    iprot.readMessageEnd()
1996 vikas 3436
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3437
    try:
1996 vikas 3438
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3439
    except UserAffiliateException, utx:
1845 vikas 3440
      result.utx = utx
1996 vikas 3441
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3442
    result.write(oprot)
3443
    oprot.writeMessageEnd()
3444
    oprot.trans.flush()
3445
 
3446
  def process_addTrackLog(self, seqid, iprot, oprot):
3447
    args = addTrackLog_args()
3448
    args.read(iprot)
3449
    iprot.readMessageEnd()
3450
    result = addTrackLog_result()
3451
    try:
1996 vikas 3452
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3453
    except UserAffiliateException, utx:
1845 vikas 3454
      result.utx = utx
3455
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3456
    result.write(oprot)
3457
    oprot.writeMessageEnd()
3458
    oprot.trans.flush()
3459
 
3460
  def process_getTrackLogById(self, seqid, iprot, oprot):
3461
    args = getTrackLogById_args()
3462
    args.read(iprot)
3463
    iprot.readMessageEnd()
3464
    result = getTrackLogById_result()
3465
    try:
3466
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3467
    except UserAffiliateException, utx:
1845 vikas 3468
      result.utx = utx
3469
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
1996 vikas 3474
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3475
    args = getTrackLogsByAffiliate_args()
1845 vikas 3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
1996 vikas 3478
    result = getTrackLogsByAffiliate_result()
1845 vikas 3479
    try:
3293 vikas 3480
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3481
    except UserAffiliateException, utx:
1845 vikas 3482
      result.utx = utx
1996 vikas 3483
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3484
    result.write(oprot)
3485
    oprot.writeMessageEnd()
3486
    oprot.trans.flush()
3487
 
3488
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3489
    args = getTrackLogsByUser_args()
3490
    args.read(iprot)
3491
    iprot.readMessageEnd()
3492
    result = getTrackLogsByUser_result()
3493
    try:
3494
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3495
    except UserAffiliateException, utx:
1845 vikas 3496
      result.utx = utx
3497
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3498
    result.write(oprot)
3499
    oprot.writeMessageEnd()
3500
    oprot.trans.flush()
3501
 
3502
  def process_getTrackLogs(self, seqid, iprot, oprot):
3503
    args = getTrackLogs_args()
3504
    args.read(iprot)
3505
    iprot.readMessageEnd()
3506
    result = getTrackLogs_result()
3507
    try:
1996 vikas 3508
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3509
    except UserAffiliateException, utx:
1845 vikas 3510
      result.utx = utx
3511
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
3515
 
559 chandransh 3516
  def process_getCurrentCart(self, seqid, iprot, oprot):
3517
    args = getCurrentCart_args()
94 ashish 3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
559 chandransh 3520
    result = getCurrentCart_result()
94 ashish 3521
    try:
559 chandransh 3522
      result.success = self._handler.getCurrentCart(args.userId)
3523
    except ShoppingCartException, scx:
3524
      result.scx = scx
3525
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3526
    result.write(oprot)
3527
    oprot.writeMessageEnd()
3528
    oprot.trans.flush()
3529
 
559 chandransh 3530
  def process_getCart(self, seqid, iprot, oprot):
3531
    args = getCart_args()
94 ashish 3532
    args.read(iprot)
3533
    iprot.readMessageEnd()
559 chandransh 3534
    result = getCart_result()
94 ashish 3535
    try:
559 chandransh 3536
      result.success = self._handler.getCart(args.cartId)
3537
    except ShoppingCartException, scx:
3538
      result.scx = scx
3539
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3540
    result.write(oprot)
3541
    oprot.writeMessageEnd()
3542
    oprot.trans.flush()
3543
 
559 chandransh 3544
  def process_getCartsByTime(self, seqid, iprot, oprot):
3545
    args = getCartsByTime_args()
94 ashish 3546
    args.read(iprot)
3547
    iprot.readMessageEnd()
559 chandransh 3548
    result = getCartsByTime_result()
94 ashish 3549
    try:
559 chandransh 3550
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3551
    except ShoppingCartException, scx:
3552
      result.scx = scx
3553
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3554
    result.write(oprot)
3555
    oprot.writeMessageEnd()
3556
    oprot.trans.flush()
3557
 
559 chandransh 3558
  def process_addItemToCart(self, seqid, iprot, oprot):
3559
    args = addItemToCart_args()
130 ashish 3560
    args.read(iprot)
3561
    iprot.readMessageEnd()
559 chandransh 3562
    result = addItemToCart_result()
130 ashish 3563
    try:
3557 rajveer 3564
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3565
    except ShoppingCartException, scx:
3566
      result.scx = scx
3567
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
559 chandransh 3572
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3573
    args = deleteItemFromCart_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = deleteItemFromCart_result()
3577
    try:
3578
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3579
    except ShoppingCartException, scx:
3580
      result.scx = scx
3581
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3582
    result.write(oprot)
3583
    oprot.writeMessageEnd()
3584
    oprot.trans.flush()
130 ashish 3585
 
559 chandransh 3586
  def process_addAddressToCart(self, seqid, iprot, oprot):
3587
    args = addAddressToCart_args()
3588
    args.read(iprot)
3589
    iprot.readMessageEnd()
3590
    result = addAddressToCart_result()
575 chandransh 3591
    try:
3592
      self._handler.addAddressToCart(args.cartId, args.addressId)
3593
    except ShoppingCartException, scx:
3594
      result.scx = scx
559 chandransh 3595
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3596
    result.write(oprot)
3597
    oprot.writeMessageEnd()
3598
    oprot.trans.flush()
3599
 
5553 rajveer 3600
  def process_addStoreToCart(self, seqid, iprot, oprot):
3601
    args = addStoreToCart_args()
3602
    args.read(iprot)
3603
    iprot.readMessageEnd()
3604
    result = addStoreToCart_result()
3605
    try:
3606
      self._handler.addStoreToCart(args.cartId, args.storeId)
3607
    except ShoppingCartException, scx:
3608
      result.scx = scx
3609
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3610
    result.write(oprot)
3611
    oprot.writeMessageEnd()
3612
    oprot.trans.flush()
3613
 
1976 varun.gupt 3614
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3615
    args = applyCouponToCart_args()
3616
    args.read(iprot)
3617
    iprot.readMessageEnd()
3618
    result = applyCouponToCart_result()
3619
    try:
3620
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3621
    except ShoppingCartException, scx:
3622
      result.scx = scx
3623
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
3628
  def process_removeCoupon(self, seqid, iprot, oprot):
3629
    args = removeCoupon_args()
3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
3632
    result = removeCoupon_result()
3633
    try:
3634
      self._handler.removeCoupon(args.cartId)
3635
    except ShoppingCartException, scx:
3636
      result.scx = scx
3637
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
3641
 
3554 varun.gupt 3642
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3643
    args = deleteDiscountsFromCart_args()
3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
3646
    result = deleteDiscountsFromCart_result()
3647
    try:
3648
      self._handler.deleteDiscountsFromCart(args.cartId)
3649
    except ShoppingCartException, scx:
3650
      result.scx = scx
3651
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
3655
 
3656
  def process_saveDiscounts(self, seqid, iprot, oprot):
3657
    args = saveDiscounts_args()
3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
3660
    result = saveDiscounts_result()
3661
    try:
3662
      self._handler.saveDiscounts(args.discounts)
3663
    except ShoppingCartException, scx:
3664
      result.scx = scx
3665
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3666
    result.write(oprot)
3667
    oprot.writeMessageEnd()
3668
    oprot.trans.flush()
3669
 
690 chandransh 3670
  def process_createOrders(self, seqid, iprot, oprot):
3671
    args = createOrders_args()
559 chandransh 3672
    args.read(iprot)
3673
    iprot.readMessageEnd()
690 chandransh 3674
    result = createOrders_result()
559 chandransh 3675
    try:
5326 rajveer 3676
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3677
    except ShoppingCartException, scx:
3678
      result.scx = scx
690 chandransh 3679
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3680
    result.write(oprot)
3681
    oprot.writeMessageEnd()
3682
    oprot.trans.flush()
3683
 
3684
  def process_validateCart(self, seqid, iprot, oprot):
3685
    args = validateCart_args()
3686
    args.read(iprot)
3687
    iprot.readMessageEnd()
3688
    result = validateCart_result()
575 chandransh 3689
    try:
3557 rajveer 3690
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3691
    except ShoppingCartException, scex:
3692
      result.scex = scex
559 chandransh 3693
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3694
    result.write(oprot)
3695
    oprot.writeMessageEnd()
3696
    oprot.trans.flush()
3697
 
690 chandransh 3698
  def process_mergeCart(self, seqid, iprot, oprot):
3699
    args = mergeCart_args()
575 chandransh 3700
    args.read(iprot)
3701
    iprot.readMessageEnd()
690 chandransh 3702
    result = mergeCart_result()
3703
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3704
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3705
    result.write(oprot)
3706
    oprot.writeMessageEnd()
3707
    oprot.trans.flush()
3708
 
3709
  def process_checkOut(self, seqid, iprot, oprot):
3710
    args = checkOut_args()
3711
    args.read(iprot)
3712
    iprot.readMessageEnd()
3713
    result = checkOut_result()
575 chandransh 3714
    try:
690 chandransh 3715
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3716
    except ShoppingCartException, scex:
3717
      result.scex = scex
690 chandransh 3718
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3719
    result.write(oprot)
3720
    oprot.writeMessageEnd()
3721
    oprot.trans.flush()
3722
 
690 chandransh 3723
  def process_resetCart(self, seqid, iprot, oprot):
3724
    args = resetCart_args()
559 chandransh 3725
    args.read(iprot)
3726
    iprot.readMessageEnd()
690 chandransh 3727
    result = resetCart_result()
3728
    try:
3729
      result.success = self._handler.resetCart(args.cartId, args.items)
3730
    except ShoppingCartException, scex:
3731
      result.scex = scex
3732
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3733
    result.write(oprot)
3734
    oprot.writeMessageEnd()
3735
    oprot.trans.flush()
3736
 
2981 rajveer 3737
  def process_getUserCount(self, seqid, iprot, oprot):
3738
    args = getUserCount_args()
559 chandransh 3739
    args.read(iprot)
3740
    iprot.readMessageEnd()
2981 rajveer 3741
    result = getUserCount_result()
3742
    result.success = self._handler.getUserCount(args.userType)
3743
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3744
    result.write(oprot)
3745
    oprot.writeMessageEnd()
3746
    oprot.trans.flush()
3747
 
2981 rajveer 3748
  def process_getAllUsers(self, seqid, iprot, oprot):
3749
    args = getAllUsers_args()
559 chandransh 3750
    args.read(iprot)
3751
    iprot.readMessageEnd()
2981 rajveer 3752
    result = getAllUsers_result()
3753
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3754
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
2981 rajveer 3759
  def process_putUserNote(self, seqid, iprot, oprot):
3760
    args = putUserNote_args()
559 chandransh 3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
2981 rajveer 3763
    result = putUserNote_result()
3764
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3765
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
3769
 
2981 rajveer 3770
  def process_getUserNotes(self, seqid, iprot, oprot):
3771
    args = getUserNotes_args()
559 chandransh 3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
2981 rajveer 3774
    result = getUserNotes_result()
3775
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3776
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3777
    result.write(oprot)
3778
    oprot.writeMessageEnd()
3779
    oprot.trans.flush()
3780
 
2981 rajveer 3781
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3782
    args = getMyResearchItems_args()
559 chandransh 3783
    args.read(iprot)
3784
    iprot.readMessageEnd()
2981 rajveer 3785
    result = getMyResearchItems_result()
559 chandransh 3786
    try:
2981 rajveer 3787
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3788
    except WidgetException, scx:
3789
      result.scx = scx
2981 rajveer 3790
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3791
    result.write(oprot)
3792
    oprot.writeMessageEnd()
3793
    oprot.trans.flush()
3794
 
2981 rajveer 3795
  def process_updateMyResearch(self, seqid, iprot, oprot):
3796
    args = updateMyResearch_args()
772 rajveer 3797
    args.read(iprot)
3798
    iprot.readMessageEnd()
2981 rajveer 3799
    result = updateMyResearch_result()
3800
    try:
3801
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3802
    except WidgetException, scx:
3803
      result.scx = scx
3804
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3805
    result.write(oprot)
3806
    oprot.writeMessageEnd()
3807
    oprot.trans.flush()
559 chandransh 3808
 
2981 rajveer 3809
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3810
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3811
    args.read(iprot)
3812
    iprot.readMessageEnd()
2981 rajveer 3813
    result = deleteItemFromMyResearch_result()
3814
    try:
3815
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3816
    except WidgetException, scx:
3817
      result.scx = scx
3818
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3819
    result.write(oprot)
3820
    oprot.writeMessageEnd()
3821
    oprot.trans.flush()
772 rajveer 3822
 
2981 rajveer 3823
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3824
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3825
    args.read(iprot)
3826
    iprot.readMessageEnd()
2981 rajveer 3827
    result = getBrowseHistoryItems_result()
3828
    try:
3829
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3830
    except WidgetException, scx:
3831
      result.scx = scx
3832
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3833
    result.write(oprot)
3834
    oprot.writeMessageEnd()
3835
    oprot.trans.flush()
1596 ankur.sing 3836
 
2981 rajveer 3837
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3838
    args = updateBrowseHistory_args()
2642 varun.gupt 3839
    args.read(iprot)
3840
    iprot.readMessageEnd()
2981 rajveer 3841
    result = updateBrowseHistory_result()
3842
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3843
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
1673 ankur.sing 3847
 
3385 varun.gupt 3848
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3849
    args = getCartsWithCouponCount_args()
3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
3852
    result = getCartsWithCouponCount_result()
3853
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3854
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3855
    result.write(oprot)
3856
    oprot.writeMessageEnd()
3857
    oprot.trans.flush()
2642 varun.gupt 3858
 
3499 mandeep.dh 3859
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3860
    args = increaseTrustLevel_args()
3861
    args.read(iprot)
3862
    iprot.readMessageEnd()
3863
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3864
    return
3385 varun.gupt 3865
 
5407 amar.kumar 3866
  def process_getTrustLevel(self, seqid, iprot, oprot):
3867
    args = getTrustLevel_args()
3868
    args.read(iprot)
3869
    iprot.readMessageEnd()
3870
    result = getTrustLevel_result()
3871
    result.success = self._handler.getTrustLevel(args.userId)
3872
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
3873
    result.write(oprot)
3874
    oprot.writeMessageEnd()
3875
    oprot.trans.flush()
3876
 
4668 varun.gupt 3877
  def process_showCODOption(self, seqid, iprot, oprot):
3878
    args = showCODOption_args()
3879
    args.read(iprot)
3880
    iprot.readMessageEnd()
3881
    result = showCODOption_result()
3882
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3883
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3884
    result.write(oprot)
3885
    oprot.writeMessageEnd()
3886
    oprot.trans.flush()
3499 mandeep.dh 3887
 
4668 varun.gupt 3888
 
94 ashish 3889
# HELPER FUNCTIONS AND STRUCTURES
3890
 
559 chandransh 3891
class createAnonymousUser_args:
94 ashish 3892
  """
3893
  Attributes:
559 chandransh 3894
   - jsessionId
94 ashish 3895
  """
3896
 
3897
  thrift_spec = (
3898
    None, # 0
559 chandransh 3899
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3900
  )
3901
 
559 chandransh 3902
  def __init__(self, jsessionId=None,):
3903
    self.jsessionId = jsessionId
94 ashish 3904
 
3905
  def read(self, iprot):
3906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3908
      return
3909
    iprot.readStructBegin()
3910
    while True:
3911
      (fname, ftype, fid) = iprot.readFieldBegin()
3912
      if ftype == TType.STOP:
3913
        break
3914
      if fid == 1:
559 chandransh 3915
        if ftype == TType.STRING:
3916
          self.jsessionId = iprot.readString();
94 ashish 3917
        else:
3918
          iprot.skip(ftype)
3919
      else:
3920
        iprot.skip(ftype)
3921
      iprot.readFieldEnd()
3922
    iprot.readStructEnd()
3923
 
3924
  def write(self, oprot):
3925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3927
      return
559 chandransh 3928
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3929
    if self.jsessionId is not None:
559 chandransh 3930
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3931
      oprot.writeString(self.jsessionId)
94 ashish 3932
      oprot.writeFieldEnd()
3933
    oprot.writeFieldStop()
3934
    oprot.writeStructEnd()
3935
 
3431 rajveer 3936
  def validate(self):
3937
    return
3938
 
3939
 
94 ashish 3940
  def __repr__(self):
3941
    L = ['%s=%r' % (key, value)
3942
      for key, value in self.__dict__.iteritems()]
3943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3944
 
3945
  def __eq__(self, other):
3946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3947
 
3948
  def __ne__(self, other):
3949
    return not (self == other)
3950
 
559 chandransh 3951
class createAnonymousUser_result:
94 ashish 3952
  """
3953
  Attributes:
3954
   - success
559 chandransh 3955
   - ucex
94 ashish 3956
  """
3957
 
3958
  thrift_spec = (
559 chandransh 3959
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3960
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3961
  )
3962
 
559 chandransh 3963
  def __init__(self, success=None, ucex=None,):
94 ashish 3964
    self.success = success
559 chandransh 3965
    self.ucex = ucex
94 ashish 3966
 
3967
  def read(self, iprot):
3968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3970
      return
3971
    iprot.readStructBegin()
3972
    while True:
3973
      (fname, ftype, fid) = iprot.readFieldBegin()
3974
      if ftype == TType.STOP:
3975
        break
3976
      if fid == 0:
3977
        if ftype == TType.STRUCT:
559 chandransh 3978
          self.success = User()
94 ashish 3979
          self.success.read(iprot)
3980
        else:
3981
          iprot.skip(ftype)
3982
      elif fid == 1:
3983
        if ftype == TType.STRUCT:
559 chandransh 3984
          self.ucex = UserContextException()
3985
          self.ucex.read(iprot)
94 ashish 3986
        else:
3987
          iprot.skip(ftype)
3988
      else:
3989
        iprot.skip(ftype)
3990
      iprot.readFieldEnd()
3991
    iprot.readStructEnd()
3992
 
3993
  def write(self, oprot):
3994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3996
      return
559 chandransh 3997
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 3998
    if self.success is not None:
94 ashish 3999
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4000
      self.success.write(oprot)
4001
      oprot.writeFieldEnd()
3431 rajveer 4002
    if self.ucex is not None:
559 chandransh 4003
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4004
      self.ucex.write(oprot)
94 ashish 4005
      oprot.writeFieldEnd()
4006
    oprot.writeFieldStop()
4007
    oprot.writeStructEnd()
4008
 
3431 rajveer 4009
  def validate(self):
4010
    return
4011
 
4012
 
94 ashish 4013
  def __repr__(self):
4014
    L = ['%s=%r' % (key, value)
4015
      for key, value in self.__dict__.iteritems()]
4016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4017
 
4018
  def __eq__(self, other):
4019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4020
 
4021
  def __ne__(self, other):
4022
    return not (self == other)
4023
 
559 chandransh 4024
class getUserById_args:
94 ashish 4025
  """
4026
  Attributes:
4027
   - userId
4028
  """
4029
 
4030
  thrift_spec = (
4031
    None, # 0
4032
    (1, TType.I64, 'userId', None, None, ), # 1
4033
  )
4034
 
559 chandransh 4035
  def __init__(self, userId=None,):
94 ashish 4036
    self.userId = userId
4037
 
4038
  def read(self, iprot):
4039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4041
      return
4042
    iprot.readStructBegin()
4043
    while True:
4044
      (fname, ftype, fid) = iprot.readFieldBegin()
4045
      if ftype == TType.STOP:
4046
        break
4047
      if fid == 1:
4048
        if ftype == TType.I64:
4049
          self.userId = iprot.readI64();
4050
        else:
4051
          iprot.skip(ftype)
4052
      else:
4053
        iprot.skip(ftype)
4054
      iprot.readFieldEnd()
4055
    iprot.readStructEnd()
4056
 
4057
  def write(self, oprot):
4058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4060
      return
559 chandransh 4061
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4062
    if self.userId is not None:
94 ashish 4063
      oprot.writeFieldBegin('userId', TType.I64, 1)
4064
      oprot.writeI64(self.userId)
4065
      oprot.writeFieldEnd()
4066
    oprot.writeFieldStop()
4067
    oprot.writeStructEnd()
4068
 
3431 rajveer 4069
  def validate(self):
4070
    return
4071
 
4072
 
94 ashish 4073
  def __repr__(self):
4074
    L = ['%s=%r' % (key, value)
4075
      for key, value in self.__dict__.iteritems()]
4076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4077
 
4078
  def __eq__(self, other):
4079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4080
 
4081
  def __ne__(self, other):
4082
    return not (self == other)
4083
 
559 chandransh 4084
class getUserById_result:
94 ashish 4085
  """
4086
  Attributes:
4087
   - success
559 chandransh 4088
   - ucex
94 ashish 4089
  """
4090
 
4091
  thrift_spec = (
559 chandransh 4092
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4093
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4094
  )
4095
 
559 chandransh 4096
  def __init__(self, success=None, ucex=None,):
94 ashish 4097
    self.success = success
559 chandransh 4098
    self.ucex = ucex
94 ashish 4099
 
4100
  def read(self, iprot):
4101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4103
      return
4104
    iprot.readStructBegin()
4105
    while True:
4106
      (fname, ftype, fid) = iprot.readFieldBegin()
4107
      if ftype == TType.STOP:
4108
        break
4109
      if fid == 0:
4110
        if ftype == TType.STRUCT:
559 chandransh 4111
          self.success = User()
94 ashish 4112
          self.success.read(iprot)
4113
        else:
4114
          iprot.skip(ftype)
4115
      elif fid == 1:
4116
        if ftype == TType.STRUCT:
559 chandransh 4117
          self.ucex = UserContextException()
4118
          self.ucex.read(iprot)
94 ashish 4119
        else:
4120
          iprot.skip(ftype)
4121
      else:
4122
        iprot.skip(ftype)
4123
      iprot.readFieldEnd()
4124
    iprot.readStructEnd()
4125
 
4126
  def write(self, oprot):
4127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4129
      return
559 chandransh 4130
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4131
    if self.success is not None:
94 ashish 4132
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4133
      self.success.write(oprot)
4134
      oprot.writeFieldEnd()
3431 rajveer 4135
    if self.ucex is not None:
559 chandransh 4136
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4137
      self.ucex.write(oprot)
94 ashish 4138
      oprot.writeFieldEnd()
4139
    oprot.writeFieldStop()
4140
    oprot.writeStructEnd()
4141
 
3431 rajveer 4142
  def validate(self):
4143
    return
4144
 
4145
 
94 ashish 4146
  def __repr__(self):
4147
    L = ['%s=%r' % (key, value)
4148
      for key, value in self.__dict__.iteritems()]
4149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4150
 
4151
  def __eq__(self, other):
4152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4153
 
4154
  def __ne__(self, other):
4155
    return not (self == other)
4156
 
5326 rajveer 4157
class getUserByCartId_args:
1491 vikas 4158
  """
4159
  Attributes:
5326 rajveer 4160
   - cartId
1491 vikas 4161
  """
4162
 
4163
  thrift_spec = (
4164
    None, # 0
5326 rajveer 4165
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4166
  )
4167
 
5326 rajveer 4168
  def __init__(self, cartId=None,):
4169
    self.cartId = cartId
1491 vikas 4170
 
4171
  def read(self, iprot):
4172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4174
      return
4175
    iprot.readStructBegin()
4176
    while True:
4177
      (fname, ftype, fid) = iprot.readFieldBegin()
4178
      if ftype == TType.STOP:
4179
        break
4180
      if fid == 1:
5326 rajveer 4181
        if ftype == TType.I64:
4182
          self.cartId = iprot.readI64();
1491 vikas 4183
        else:
4184
          iprot.skip(ftype)
4185
      else:
4186
        iprot.skip(ftype)
4187
      iprot.readFieldEnd()
4188
    iprot.readStructEnd()
4189
 
4190
  def write(self, oprot):
4191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4193
      return
5326 rajveer 4194
    oprot.writeStructBegin('getUserByCartId_args')
4195
    if self.cartId is not None:
4196
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4197
      oprot.writeI64(self.cartId)
1491 vikas 4198
      oprot.writeFieldEnd()
4199
    oprot.writeFieldStop()
4200
    oprot.writeStructEnd()
4201
 
3431 rajveer 4202
  def validate(self):
4203
    return
4204
 
4205
 
1491 vikas 4206
  def __repr__(self):
4207
    L = ['%s=%r' % (key, value)
4208
      for key, value in self.__dict__.iteritems()]
4209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4210
 
4211
  def __eq__(self, other):
4212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4213
 
4214
  def __ne__(self, other):
4215
    return not (self == other)
4216
 
5326 rajveer 4217
class getUserByCartId_result:
1491 vikas 4218
  """
4219
  Attributes:
4220
   - success
4221
   - ucex
4222
  """
4223
 
4224
  thrift_spec = (
4225
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4226
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4227
  )
4228
 
4229
  def __init__(self, success=None, ucex=None,):
4230
    self.success = success
4231
    self.ucex = ucex
4232
 
4233
  def read(self, iprot):
4234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4236
      return
4237
    iprot.readStructBegin()
4238
    while True:
4239
      (fname, ftype, fid) = iprot.readFieldBegin()
4240
      if ftype == TType.STOP:
4241
        break
4242
      if fid == 0:
4243
        if ftype == TType.STRUCT:
4244
          self.success = User()
4245
          self.success.read(iprot)
4246
        else:
4247
          iprot.skip(ftype)
4248
      elif fid == 1:
4249
        if ftype == TType.STRUCT:
4250
          self.ucex = UserContextException()
4251
          self.ucex.read(iprot)
4252
        else:
4253
          iprot.skip(ftype)
4254
      else:
4255
        iprot.skip(ftype)
4256
      iprot.readFieldEnd()
4257
    iprot.readStructEnd()
4258
 
4259
  def write(self, oprot):
4260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4262
      return
5326 rajveer 4263
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4264
    if self.success is not None:
1491 vikas 4265
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4266
      self.success.write(oprot)
4267
      oprot.writeFieldEnd()
3431 rajveer 4268
    if self.ucex is not None:
1491 vikas 4269
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4270
      self.ucex.write(oprot)
4271
      oprot.writeFieldEnd()
4272
    oprot.writeFieldStop()
4273
    oprot.writeStructEnd()
4274
 
3431 rajveer 4275
  def validate(self):
4276
    return
4277
 
4278
 
1491 vikas 4279
  def __repr__(self):
4280
    L = ['%s=%r' % (key, value)
4281
      for key, value in self.__dict__.iteritems()]
4282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4283
 
4284
  def __eq__(self, other):
4285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4286
 
4287
  def __ne__(self, other):
4288
    return not (self == other)
4289
 
5326 rajveer 4290
class getUserByEmail_args:
3032 mandeep.dh 4291
  """
4292
  Attributes:
5326 rajveer 4293
   - email
3032 mandeep.dh 4294
  """
4295
 
4296
  thrift_spec = (
4297
    None, # 0
5326 rajveer 4298
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4299
  )
4300
 
5326 rajveer 4301
  def __init__(self, email=None,):
4302
    self.email = email
3032 mandeep.dh 4303
 
4304
  def read(self, iprot):
4305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4307
      return
4308
    iprot.readStructBegin()
4309
    while True:
4310
      (fname, ftype, fid) = iprot.readFieldBegin()
4311
      if ftype == TType.STOP:
4312
        break
4313
      if fid == 1:
5326 rajveer 4314
        if ftype == TType.STRING:
4315
          self.email = iprot.readString();
3032 mandeep.dh 4316
        else:
4317
          iprot.skip(ftype)
4318
      else:
4319
        iprot.skip(ftype)
4320
      iprot.readFieldEnd()
4321
    iprot.readStructEnd()
4322
 
4323
  def write(self, oprot):
4324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4326
      return
5326 rajveer 4327
    oprot.writeStructBegin('getUserByEmail_args')
4328
    if self.email is not None:
4329
      oprot.writeFieldBegin('email', TType.STRING, 1)
4330
      oprot.writeString(self.email)
3032 mandeep.dh 4331
      oprot.writeFieldEnd()
4332
    oprot.writeFieldStop()
4333
    oprot.writeStructEnd()
4334
 
3431 rajveer 4335
  def validate(self):
4336
    return
4337
 
4338
 
3032 mandeep.dh 4339
  def __repr__(self):
4340
    L = ['%s=%r' % (key, value)
4341
      for key, value in self.__dict__.iteritems()]
4342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4343
 
4344
  def __eq__(self, other):
4345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4346
 
4347
  def __ne__(self, other):
4348
    return not (self == other)
4349
 
5326 rajveer 4350
class getUserByEmail_result:
3032 mandeep.dh 4351
  """
4352
  Attributes:
4353
   - success
4354
   - ucex
4355
  """
4356
 
4357
  thrift_spec = (
4358
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4359
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4360
  )
4361
 
4362
  def __init__(self, success=None, ucex=None,):
4363
    self.success = success
4364
    self.ucex = ucex
4365
 
4366
  def read(self, iprot):
4367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4369
      return
4370
    iprot.readStructBegin()
4371
    while True:
4372
      (fname, ftype, fid) = iprot.readFieldBegin()
4373
      if ftype == TType.STOP:
4374
        break
4375
      if fid == 0:
4376
        if ftype == TType.STRUCT:
4377
          self.success = User()
4378
          self.success.read(iprot)
4379
        else:
4380
          iprot.skip(ftype)
4381
      elif fid == 1:
4382
        if ftype == TType.STRUCT:
4383
          self.ucex = UserContextException()
4384
          self.ucex.read(iprot)
4385
        else:
4386
          iprot.skip(ftype)
4387
      else:
4388
        iprot.skip(ftype)
4389
      iprot.readFieldEnd()
4390
    iprot.readStructEnd()
4391
 
4392
  def write(self, oprot):
4393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4395
      return
5326 rajveer 4396
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4397
    if self.success is not None:
3032 mandeep.dh 4398
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4399
      self.success.write(oprot)
4400
      oprot.writeFieldEnd()
3431 rajveer 4401
    if self.ucex is not None:
3032 mandeep.dh 4402
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4403
      self.ucex.write(oprot)
4404
      oprot.writeFieldEnd()
4405
    oprot.writeFieldStop()
4406
    oprot.writeStructEnd()
4407
 
3431 rajveer 4408
  def validate(self):
4409
    return
4410
 
4411
 
3032 mandeep.dh 4412
  def __repr__(self):
4413
    L = ['%s=%r' % (key, value)
4414
      for key, value in self.__dict__.iteritems()]
4415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4416
 
4417
  def __eq__(self, other):
4418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4419
 
4420
  def __ne__(self, other):
4421
    return not (self == other)
4422
 
5326 rajveer 4423
class getUserByMobileNumber_args:
94 ashish 4424
  """
4425
  Attributes:
5326 rajveer 4426
   - mobileNumber
94 ashish 4427
  """
4428
 
4429
  thrift_spec = (
4430
    None, # 0
5326 rajveer 4431
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4432
  )
4433
 
5326 rajveer 4434
  def __init__(self, mobileNumber=None,):
4435
    self.mobileNumber = mobileNumber
94 ashish 4436
 
4437
  def read(self, iprot):
4438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4440
      return
4441
    iprot.readStructBegin()
4442
    while True:
4443
      (fname, ftype, fid) = iprot.readFieldBegin()
4444
      if ftype == TType.STOP:
4445
        break
4446
      if fid == 1:
5326 rajveer 4447
        if ftype == TType.I64:
4448
          self.mobileNumber = iprot.readI64();
94 ashish 4449
        else:
4450
          iprot.skip(ftype)
4451
      else:
4452
        iprot.skip(ftype)
4453
      iprot.readFieldEnd()
4454
    iprot.readStructEnd()
4455
 
4456
  def write(self, oprot):
4457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4459
      return
5326 rajveer 4460
    oprot.writeStructBegin('getUserByMobileNumber_args')
4461
    if self.mobileNumber is not None:
4462
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4463
      oprot.writeI64(self.mobileNumber)
94 ashish 4464
      oprot.writeFieldEnd()
4465
    oprot.writeFieldStop()
4466
    oprot.writeStructEnd()
4467
 
3431 rajveer 4468
  def validate(self):
4469
    return
4470
 
4471
 
94 ashish 4472
  def __repr__(self):
4473
    L = ['%s=%r' % (key, value)
4474
      for key, value in self.__dict__.iteritems()]
4475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4476
 
4477
  def __eq__(self, other):
4478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4479
 
4480
  def __ne__(self, other):
4481
    return not (self == other)
4482
 
5326 rajveer 4483
class getUserByMobileNumber_result:
94 ashish 4484
  """
4485
  Attributes:
4486
   - success
559 chandransh 4487
   - ucex
94 ashish 4488
  """
4489
 
4490
  thrift_spec = (
559 chandransh 4491
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4492
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4493
  )
4494
 
559 chandransh 4495
  def __init__(self, success=None, ucex=None,):
94 ashish 4496
    self.success = success
559 chandransh 4497
    self.ucex = ucex
94 ashish 4498
 
4499
  def read(self, iprot):
4500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4502
      return
4503
    iprot.readStructBegin()
4504
    while True:
4505
      (fname, ftype, fid) = iprot.readFieldBegin()
4506
      if ftype == TType.STOP:
4507
        break
4508
      if fid == 0:
4509
        if ftype == TType.STRUCT:
559 chandransh 4510
          self.success = User()
94 ashish 4511
          self.success.read(iprot)
4512
        else:
4513
          iprot.skip(ftype)
4514
      elif fid == 1:
4515
        if ftype == TType.STRUCT:
559 chandransh 4516
          self.ucex = UserContextException()
4517
          self.ucex.read(iprot)
94 ashish 4518
        else:
4519
          iprot.skip(ftype)
4520
      else:
4521
        iprot.skip(ftype)
4522
      iprot.readFieldEnd()
4523
    iprot.readStructEnd()
4524
 
4525
  def write(self, oprot):
4526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4528
      return
5326 rajveer 4529
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4530
    if self.success is not None:
94 ashish 4531
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4532
      self.success.write(oprot)
4533
      oprot.writeFieldEnd()
3431 rajveer 4534
    if self.ucex is not None:
559 chandransh 4535
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4536
      self.ucex.write(oprot)
94 ashish 4537
      oprot.writeFieldEnd()
4538
    oprot.writeFieldStop()
4539
    oprot.writeStructEnd()
4540
 
3431 rajveer 4541
  def validate(self):
4542
    return
4543
 
4544
 
94 ashish 4545
  def __repr__(self):
4546
    L = ['%s=%r' % (key, value)
4547
      for key, value in self.__dict__.iteritems()]
4548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4549
 
4550
  def __eq__(self, other):
4551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4552
 
4553
  def __ne__(self, other):
4554
    return not (self == other)
4555
 
5326 rajveer 4556
class createUser_args:
94 ashish 4557
  """
4558
  Attributes:
559 chandransh 4559
   - user
94 ashish 4560
  """
4561
 
4562
  thrift_spec = (
4563
    None, # 0
559 chandransh 4564
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4565
  )
4566
 
559 chandransh 4567
  def __init__(self, user=None,):
4568
    self.user = user
94 ashish 4569
 
4570
  def read(self, iprot):
4571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4573
      return
4574
    iprot.readStructBegin()
4575
    while True:
4576
      (fname, ftype, fid) = iprot.readFieldBegin()
4577
      if ftype == TType.STOP:
4578
        break
4579
      if fid == 1:
559 chandransh 4580
        if ftype == TType.STRUCT:
4581
          self.user = User()
4582
          self.user.read(iprot)
94 ashish 4583
        else:
4584
          iprot.skip(ftype)
4585
      else:
4586
        iprot.skip(ftype)
4587
      iprot.readFieldEnd()
4588
    iprot.readStructEnd()
4589
 
4590
  def write(self, oprot):
4591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4593
      return
5326 rajveer 4594
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4595
    if self.user is not None:
559 chandransh 4596
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4597
      self.user.write(oprot)
94 ashish 4598
      oprot.writeFieldEnd()
4599
    oprot.writeFieldStop()
4600
    oprot.writeStructEnd()
4601
 
3431 rajveer 4602
  def validate(self):
4603
    return
4604
 
4605
 
94 ashish 4606
  def __repr__(self):
4607
    L = ['%s=%r' % (key, value)
4608
      for key, value in self.__dict__.iteritems()]
4609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4610
 
4611
  def __eq__(self, other):
4612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4613
 
4614
  def __ne__(self, other):
4615
    return not (self == other)
4616
 
5326 rajveer 4617
class createUser_result:
94 ashish 4618
  """
4619
  Attributes:
4620
   - success
559 chandransh 4621
   - ucex
94 ashish 4622
  """
4623
 
4624
  thrift_spec = (
559 chandransh 4625
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4626
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4627
  )
4628
 
559 chandransh 4629
  def __init__(self, success=None, ucex=None,):
94 ashish 4630
    self.success = success
559 chandransh 4631
    self.ucex = ucex
94 ashish 4632
 
4633
  def read(self, iprot):
4634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4636
      return
4637
    iprot.readStructBegin()
4638
    while True:
4639
      (fname, ftype, fid) = iprot.readFieldBegin()
4640
      if ftype == TType.STOP:
4641
        break
4642
      if fid == 0:
4643
        if ftype == TType.STRUCT:
559 chandransh 4644
          self.success = User()
94 ashish 4645
          self.success.read(iprot)
4646
        else:
4647
          iprot.skip(ftype)
4648
      elif fid == 1:
4649
        if ftype == TType.STRUCT:
559 chandransh 4650
          self.ucex = UserContextException()
4651
          self.ucex.read(iprot)
94 ashish 4652
        else:
4653
          iprot.skip(ftype)
4654
      else:
4655
        iprot.skip(ftype)
4656
      iprot.readFieldEnd()
4657
    iprot.readStructEnd()
4658
 
4659
  def write(self, oprot):
4660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4662
      return
5326 rajveer 4663
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4664
    if self.success is not None:
94 ashish 4665
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4666
      self.success.write(oprot)
4667
      oprot.writeFieldEnd()
3431 rajveer 4668
    if self.ucex is not None:
559 chandransh 4669
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4670
      self.ucex.write(oprot)
94 ashish 4671
      oprot.writeFieldEnd()
4672
    oprot.writeFieldStop()
4673
    oprot.writeStructEnd()
4674
 
3431 rajveer 4675
  def validate(self):
4676
    return
4677
 
4678
 
94 ashish 4679
  def __repr__(self):
4680
    L = ['%s=%r' % (key, value)
4681
      for key, value in self.__dict__.iteritems()]
4682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4683
 
4684
  def __eq__(self, other):
4685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4686
 
4687
  def __ne__(self, other):
4688
    return not (self == other)
4689
 
5326 rajveer 4690
class updateUser_args:
94 ashish 4691
  """
4692
  Attributes:
5326 rajveer 4693
   - user
94 ashish 4694
  """
4695
 
4696
  thrift_spec = (
4697
    None, # 0
5326 rajveer 4698
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4699
  )
4700
 
5326 rajveer 4701
  def __init__(self, user=None,):
4702
    self.user = user
94 ashish 4703
 
4704
  def read(self, iprot):
4705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4707
      return
4708
    iprot.readStructBegin()
4709
    while True:
4710
      (fname, ftype, fid) = iprot.readFieldBegin()
4711
      if ftype == TType.STOP:
4712
        break
4713
      if fid == 1:
5326 rajveer 4714
        if ftype == TType.STRUCT:
4715
          self.user = User()
4716
          self.user.read(iprot)
94 ashish 4717
        else:
4718
          iprot.skip(ftype)
4719
      else:
4720
        iprot.skip(ftype)
4721
      iprot.readFieldEnd()
4722
    iprot.readStructEnd()
4723
 
4724
  def write(self, oprot):
4725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4727
      return
5326 rajveer 4728
    oprot.writeStructBegin('updateUser_args')
4729
    if self.user is not None:
4730
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4731
      self.user.write(oprot)
94 ashish 4732
      oprot.writeFieldEnd()
4733
    oprot.writeFieldStop()
4734
    oprot.writeStructEnd()
4735
 
3431 rajveer 4736
  def validate(self):
4737
    return
4738
 
4739
 
94 ashish 4740
  def __repr__(self):
4741
    L = ['%s=%r' % (key, value)
4742
      for key, value in self.__dict__.iteritems()]
4743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4744
 
4745
  def __eq__(self, other):
4746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4747
 
4748
  def __ne__(self, other):
4749
    return not (self == other)
4750
 
5326 rajveer 4751
class updateUser_result:
94 ashish 4752
  """
4753
  Attributes:
4754
   - success
559 chandransh 4755
   - ucex
94 ashish 4756
  """
4757
 
4758
  thrift_spec = (
5326 rajveer 4759
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4760
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4761
  )
4762
 
559 chandransh 4763
  def __init__(self, success=None, ucex=None,):
94 ashish 4764
    self.success = success
559 chandransh 4765
    self.ucex = ucex
94 ashish 4766
 
4767
  def read(self, iprot):
4768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4770
      return
4771
    iprot.readStructBegin()
4772
    while True:
4773
      (fname, ftype, fid) = iprot.readFieldBegin()
4774
      if ftype == TType.STOP:
4775
        break
4776
      if fid == 0:
5326 rajveer 4777
        if ftype == TType.STRUCT:
4778
          self.success = User()
4779
          self.success.read(iprot)
94 ashish 4780
        else:
4781
          iprot.skip(ftype)
4782
      elif fid == 1:
4783
        if ftype == TType.STRUCT:
559 chandransh 4784
          self.ucex = UserContextException()
4785
          self.ucex.read(iprot)
94 ashish 4786
        else:
4787
          iprot.skip(ftype)
4788
      else:
4789
        iprot.skip(ftype)
4790
      iprot.readFieldEnd()
4791
    iprot.readStructEnd()
4792
 
4793
  def write(self, oprot):
4794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4796
      return
5326 rajveer 4797
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4798
    if self.success is not None:
5326 rajveer 4799
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4800
      self.success.write(oprot)
94 ashish 4801
      oprot.writeFieldEnd()
3431 rajveer 4802
    if self.ucex is not None:
559 chandransh 4803
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4804
      self.ucex.write(oprot)
94 ashish 4805
      oprot.writeFieldEnd()
4806
    oprot.writeFieldStop()
4807
    oprot.writeStructEnd()
4808
 
3431 rajveer 4809
  def validate(self):
4810
    return
4811
 
4812
 
94 ashish 4813
  def __repr__(self):
4814
    L = ['%s=%r' % (key, value)
4815
      for key, value in self.__dict__.iteritems()]
4816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4817
 
4818
  def __eq__(self, other):
4819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4820
 
4821
  def __ne__(self, other):
4822
    return not (self == other)
4823
 
559 chandransh 4824
class authenticateUser_args:
94 ashish 4825
  """
4826
  Attributes:
4827
   - email
4828
   - password
4829
  """
4830
 
4831
  thrift_spec = (
4832
    None, # 0
4833
    (1, TType.STRING, 'email', None, None, ), # 1
4834
    (2, TType.STRING, 'password', None, None, ), # 2
4835
  )
4836
 
4837
  def __init__(self, email=None, password=None,):
4838
    self.email = email
4839
    self.password = password
4840
 
4841
  def read(self, iprot):
4842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4844
      return
4845
    iprot.readStructBegin()
4846
    while True:
4847
      (fname, ftype, fid) = iprot.readFieldBegin()
4848
      if ftype == TType.STOP:
4849
        break
4850
      if fid == 1:
4851
        if ftype == TType.STRING:
4852
          self.email = iprot.readString();
4853
        else:
4854
          iprot.skip(ftype)
4855
      elif fid == 2:
4856
        if ftype == TType.STRING:
4857
          self.password = iprot.readString();
4858
        else:
4859
          iprot.skip(ftype)
4860
      else:
4861
        iprot.skip(ftype)
4862
      iprot.readFieldEnd()
4863
    iprot.readStructEnd()
4864
 
4865
  def write(self, oprot):
4866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4868
      return
559 chandransh 4869
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4870
    if self.email is not None:
94 ashish 4871
      oprot.writeFieldBegin('email', TType.STRING, 1)
4872
      oprot.writeString(self.email)
4873
      oprot.writeFieldEnd()
3431 rajveer 4874
    if self.password is not None:
94 ashish 4875
      oprot.writeFieldBegin('password', TType.STRING, 2)
4876
      oprot.writeString(self.password)
4877
      oprot.writeFieldEnd()
4878
    oprot.writeFieldStop()
4879
    oprot.writeStructEnd()
4880
 
3431 rajveer 4881
  def validate(self):
4882
    return
4883
 
4884
 
94 ashish 4885
  def __repr__(self):
4886
    L = ['%s=%r' % (key, value)
4887
      for key, value in self.__dict__.iteritems()]
4888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4889
 
4890
  def __eq__(self, other):
4891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4892
 
4893
  def __ne__(self, other):
4894
    return not (self == other)
4895
 
559 chandransh 4896
class authenticateUser_result:
94 ashish 4897
  """
4898
  Attributes:
4899
   - success
559 chandransh 4900
   - auex
94 ashish 4901
  """
4902
 
4903
  thrift_spec = (
559 chandransh 4904
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4905
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4906
  )
4907
 
559 chandransh 4908
  def __init__(self, success=None, auex=None,):
94 ashish 4909
    self.success = success
559 chandransh 4910
    self.auex = auex
94 ashish 4911
 
4912
  def read(self, iprot):
4913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4915
      return
4916
    iprot.readStructBegin()
4917
    while True:
4918
      (fname, ftype, fid) = iprot.readFieldBegin()
4919
      if ftype == TType.STOP:
4920
        break
4921
      if fid == 0:
4922
        if ftype == TType.STRUCT:
559 chandransh 4923
          self.success = User()
94 ashish 4924
          self.success.read(iprot)
4925
        else:
4926
          iprot.skip(ftype)
4927
      elif fid == 1:
4928
        if ftype == TType.STRUCT:
559 chandransh 4929
          self.auex = AuthenticationException()
4930
          self.auex.read(iprot)
94 ashish 4931
        else:
4932
          iprot.skip(ftype)
4933
      else:
4934
        iprot.skip(ftype)
4935
      iprot.readFieldEnd()
4936
    iprot.readStructEnd()
4937
 
4938
  def write(self, oprot):
4939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4941
      return
559 chandransh 4942
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4943
    if self.success is not None:
94 ashish 4944
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4945
      self.success.write(oprot)
4946
      oprot.writeFieldEnd()
3431 rajveer 4947
    if self.auex is not None:
559 chandransh 4948
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4949
      self.auex.write(oprot)
94 ashish 4950
      oprot.writeFieldEnd()
4951
    oprot.writeFieldStop()
4952
    oprot.writeStructEnd()
4953
 
3431 rajveer 4954
  def validate(self):
4955
    return
4956
 
4957
 
94 ashish 4958
  def __repr__(self):
4959
    L = ['%s=%r' % (key, value)
4960
      for key, value in self.__dict__.iteritems()]
4961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4962
 
4963
  def __eq__(self, other):
4964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4965
 
4966
  def __ne__(self, other):
4967
    return not (self == other)
4968
 
559 chandransh 4969
class userExists_args:
122 ashish 4970
  """
4971
  Attributes:
559 chandransh 4972
   - email
122 ashish 4973
  """
4974
 
4975
  thrift_spec = (
4976
    None, # 0
559 chandransh 4977
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4978
  )
4979
 
559 chandransh 4980
  def __init__(self, email=None,):
4981
    self.email = email
122 ashish 4982
 
4983
  def read(self, iprot):
4984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4986
      return
4987
    iprot.readStructBegin()
4988
    while True:
4989
      (fname, ftype, fid) = iprot.readFieldBegin()
4990
      if ftype == TType.STOP:
4991
        break
4992
      if fid == 1:
4993
        if ftype == TType.STRING:
559 chandransh 4994
          self.email = iprot.readString();
122 ashish 4995
        else:
4996
          iprot.skip(ftype)
559 chandransh 4997
      else:
4998
        iprot.skip(ftype)
4999
      iprot.readFieldEnd()
5000
    iprot.readStructEnd()
5001
 
5002
  def write(self, oprot):
5003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5005
      return
5006
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5007
    if self.email is not None:
559 chandransh 5008
      oprot.writeFieldBegin('email', TType.STRING, 1)
5009
      oprot.writeString(self.email)
5010
      oprot.writeFieldEnd()
5011
    oprot.writeFieldStop()
5012
    oprot.writeStructEnd()
5013
 
3431 rajveer 5014
  def validate(self):
5015
    return
5016
 
5017
 
559 chandransh 5018
  def __repr__(self):
5019
    L = ['%s=%r' % (key, value)
5020
      for key, value in self.__dict__.iteritems()]
5021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5022
 
5023
  def __eq__(self, other):
5024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5025
 
5026
  def __ne__(self, other):
5027
    return not (self == other)
5028
 
5029
class userExists_result:
5030
  """
5031
  Attributes:
5032
   - success
5033
   - ucx
5034
  """
5035
 
5036
  thrift_spec = (
5037
    (0, TType.BOOL, 'success', None, None, ), # 0
5038
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5039
  )
5040
 
5041
  def __init__(self, success=None, ucx=None,):
5042
    self.success = success
5043
    self.ucx = ucx
5044
 
5045
  def read(self, iprot):
5046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5048
      return
5049
    iprot.readStructBegin()
5050
    while True:
5051
      (fname, ftype, fid) = iprot.readFieldBegin()
5052
      if ftype == TType.STOP:
5053
        break
5054
      if fid == 0:
5055
        if ftype == TType.BOOL:
5056
          self.success = iprot.readBool();
5057
        else:
5058
          iprot.skip(ftype)
5059
      elif fid == 1:
5060
        if ftype == TType.STRUCT:
5061
          self.ucx = UserContextException()
5062
          self.ucx.read(iprot)
5063
        else:
5064
          iprot.skip(ftype)
5065
      else:
5066
        iprot.skip(ftype)
5067
      iprot.readFieldEnd()
5068
    iprot.readStructEnd()
5069
 
5070
  def write(self, oprot):
5071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5073
      return
5074
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5075
    if self.success is not None:
559 chandransh 5076
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5077
      oprot.writeBool(self.success)
5078
      oprot.writeFieldEnd()
3431 rajveer 5079
    if self.ucx is not None:
559 chandransh 5080
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5081
      self.ucx.write(oprot)
5082
      oprot.writeFieldEnd()
5083
    oprot.writeFieldStop()
5084
    oprot.writeStructEnd()
5085
 
3431 rajveer 5086
  def validate(self):
5087
    return
5088
 
5089
 
559 chandransh 5090
  def __repr__(self):
5091
    L = ['%s=%r' % (key, value)
5092
      for key, value in self.__dict__.iteritems()]
5093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5094
 
5095
  def __eq__(self, other):
5096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5097
 
5098
  def __ne__(self, other):
5099
    return not (self == other)
5100
 
5101
class addAddressForUser_args:
5102
  """
5103
  Attributes:
5104
   - userId
5105
   - address
5106
   - setDefault
5107
  """
5108
 
5109
  thrift_spec = (
5110
    None, # 0
5111
    (1, TType.I64, 'userId', None, None, ), # 1
5112
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5113
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5114
  )
5115
 
567 rajveer 5116
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5117
    self.userId = userId
5118
    self.address = address
5119
    self.setDefault = setDefault
5120
 
5121
  def read(self, iprot):
5122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5124
      return
5125
    iprot.readStructBegin()
5126
    while True:
5127
      (fname, ftype, fid) = iprot.readFieldBegin()
5128
      if ftype == TType.STOP:
5129
        break
5130
      if fid == 1:
5131
        if ftype == TType.I64:
5132
          self.userId = iprot.readI64();
5133
        else:
5134
          iprot.skip(ftype)
122 ashish 5135
      elif fid == 2:
559 chandransh 5136
        if ftype == TType.STRUCT:
5137
          self.address = Address()
5138
          self.address.read(iprot)
122 ashish 5139
        else:
5140
          iprot.skip(ftype)
5141
      elif fid == 3:
5142
        if ftype == TType.BOOL:
559 chandransh 5143
          self.setDefault = iprot.readBool();
122 ashish 5144
        else:
5145
          iprot.skip(ftype)
5146
      else:
5147
        iprot.skip(ftype)
5148
      iprot.readFieldEnd()
5149
    iprot.readStructEnd()
5150
 
5151
  def write(self, oprot):
5152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5154
      return
559 chandransh 5155
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5156
    if self.userId is not None:
559 chandransh 5157
      oprot.writeFieldBegin('userId', TType.I64, 1)
5158
      oprot.writeI64(self.userId)
122 ashish 5159
      oprot.writeFieldEnd()
3431 rajveer 5160
    if self.address is not None:
559 chandransh 5161
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5162
      self.address.write(oprot)
122 ashish 5163
      oprot.writeFieldEnd()
3431 rajveer 5164
    if self.setDefault is not None:
567 rajveer 5165
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5166
      oprot.writeBool(self.setDefault)
5167
      oprot.writeFieldEnd()
122 ashish 5168
    oprot.writeFieldStop()
5169
    oprot.writeStructEnd()
5170
 
3431 rajveer 5171
  def validate(self):
5172
    return
5173
 
5174
 
122 ashish 5175
  def __repr__(self):
5176
    L = ['%s=%r' % (key, value)
5177
      for key, value in self.__dict__.iteritems()]
5178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5179
 
5180
  def __eq__(self, other):
5181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5182
 
5183
  def __ne__(self, other):
5184
    return not (self == other)
5185
 
559 chandransh 5186
class addAddressForUser_result:
122 ashish 5187
  """
5188
  Attributes:
5189
   - success
559 chandransh 5190
   - ucx
122 ashish 5191
  """
5192
 
5193
  thrift_spec = (
567 rajveer 5194
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5195
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5196
  )
5197
 
559 chandransh 5198
  def __init__(self, success=None, ucx=None,):
122 ashish 5199
    self.success = success
559 chandransh 5200
    self.ucx = ucx
122 ashish 5201
 
5202
  def read(self, iprot):
5203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5205
      return
5206
    iprot.readStructBegin()
5207
    while True:
5208
      (fname, ftype, fid) = iprot.readFieldBegin()
5209
      if ftype == TType.STOP:
5210
        break
5211
      if fid == 0:
567 rajveer 5212
        if ftype == TType.I64:
5213
          self.success = iprot.readI64();
122 ashish 5214
        else:
5215
          iprot.skip(ftype)
5216
      elif fid == 1:
5217
        if ftype == TType.STRUCT:
559 chandransh 5218
          self.ucx = UserContextException()
5219
          self.ucx.read(iprot)
122 ashish 5220
        else:
5221
          iprot.skip(ftype)
5222
      else:
5223
        iprot.skip(ftype)
5224
      iprot.readFieldEnd()
5225
    iprot.readStructEnd()
5226
 
5227
  def write(self, oprot):
5228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5230
      return
559 chandransh 5231
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5232
    if self.success is not None:
567 rajveer 5233
      oprot.writeFieldBegin('success', TType.I64, 0)
5234
      oprot.writeI64(self.success)
122 ashish 5235
      oprot.writeFieldEnd()
3431 rajveer 5236
    if self.ucx is not None:
559 chandransh 5237
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5238
      self.ucx.write(oprot)
122 ashish 5239
      oprot.writeFieldEnd()
5240
    oprot.writeFieldStop()
5241
    oprot.writeStructEnd()
5242
 
3431 rajveer 5243
  def validate(self):
5244
    return
5245
 
5246
 
122 ashish 5247
  def __repr__(self):
5248
    L = ['%s=%r' % (key, value)
5249
      for key, value in self.__dict__.iteritems()]
5250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5251
 
5252
  def __eq__(self, other):
5253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5254
 
5255
  def __ne__(self, other):
5256
    return not (self == other)
5257
 
559 chandransh 5258
class removeAddressForUser_args:
94 ashish 5259
  """
5260
  Attributes:
559 chandransh 5261
   - userid
5262
   - addressId
94 ashish 5263
  """
5264
 
5265
  thrift_spec = (
5266
    None, # 0
559 chandransh 5267
    (1, TType.I64, 'userid', None, None, ), # 1
5268
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5269
  )
5270
 
559 chandransh 5271
  def __init__(self, userid=None, addressId=None,):
5272
    self.userid = userid
5273
    self.addressId = addressId
94 ashish 5274
 
5275
  def read(self, iprot):
5276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5278
      return
5279
    iprot.readStructBegin()
5280
    while True:
5281
      (fname, ftype, fid) = iprot.readFieldBegin()
5282
      if ftype == TType.STOP:
5283
        break
5284
      if fid == 1:
559 chandransh 5285
        if ftype == TType.I64:
5286
          self.userid = iprot.readI64();
94 ashish 5287
        else:
5288
          iprot.skip(ftype)
559 chandransh 5289
      elif fid == 2:
5290
        if ftype == TType.I64:
5291
          self.addressId = iprot.readI64();
5292
        else:
5293
          iprot.skip(ftype)
94 ashish 5294
      else:
5295
        iprot.skip(ftype)
5296
      iprot.readFieldEnd()
5297
    iprot.readStructEnd()
5298
 
5299
  def write(self, oprot):
5300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5302
      return
559 chandransh 5303
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5304
    if self.userid is not None:
559 chandransh 5305
      oprot.writeFieldBegin('userid', TType.I64, 1)
5306
      oprot.writeI64(self.userid)
94 ashish 5307
      oprot.writeFieldEnd()
3431 rajveer 5308
    if self.addressId is not None:
559 chandransh 5309
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5310
      oprot.writeI64(self.addressId)
5311
      oprot.writeFieldEnd()
94 ashish 5312
    oprot.writeFieldStop()
5313
    oprot.writeStructEnd()
5314
 
3431 rajveer 5315
  def validate(self):
5316
    return
5317
 
5318
 
94 ashish 5319
  def __repr__(self):
5320
    L = ['%s=%r' % (key, value)
5321
      for key, value in self.__dict__.iteritems()]
5322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5323
 
5324
  def __eq__(self, other):
5325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5326
 
5327
  def __ne__(self, other):
5328
    return not (self == other)
5329
 
559 chandransh 5330
class removeAddressForUser_result:
94 ashish 5331
  """
5332
  Attributes:
5333
   - success
5334
   - ucx
5335
  """
5336
 
5337
  thrift_spec = (
5338
    (0, TType.BOOL, 'success', None, None, ), # 0
5339
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5340
  )
5341
 
5342
  def __init__(self, success=None, ucx=None,):
5343
    self.success = success
5344
    self.ucx = ucx
5345
 
5346
  def read(self, iprot):
5347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5349
      return
5350
    iprot.readStructBegin()
5351
    while True:
5352
      (fname, ftype, fid) = iprot.readFieldBegin()
5353
      if ftype == TType.STOP:
5354
        break
5355
      if fid == 0:
5356
        if ftype == TType.BOOL:
5357
          self.success = iprot.readBool();
5358
        else:
5359
          iprot.skip(ftype)
5360
      elif fid == 1:
5361
        if ftype == TType.STRUCT:
5362
          self.ucx = UserContextException()
5363
          self.ucx.read(iprot)
5364
        else:
5365
          iprot.skip(ftype)
5366
      else:
5367
        iprot.skip(ftype)
5368
      iprot.readFieldEnd()
5369
    iprot.readStructEnd()
5370
 
5371
  def write(self, oprot):
5372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5374
      return
559 chandransh 5375
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5376
    if self.success is not None:
94 ashish 5377
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5378
      oprot.writeBool(self.success)
5379
      oprot.writeFieldEnd()
3431 rajveer 5380
    if self.ucx is not None:
94 ashish 5381
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5382
      self.ucx.write(oprot)
5383
      oprot.writeFieldEnd()
5384
    oprot.writeFieldStop()
5385
    oprot.writeStructEnd()
5386
 
3431 rajveer 5387
  def validate(self):
5388
    return
5389
 
5390
 
94 ashish 5391
  def __repr__(self):
5392
    L = ['%s=%r' % (key, value)
5393
      for key, value in self.__dict__.iteritems()]
5394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5395
 
5396
  def __eq__(self, other):
5397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5398
 
5399
  def __ne__(self, other):
5400
    return not (self == other)
5401
 
559 chandransh 5402
class setUserAsLoggedIn_args:
94 ashish 5403
  """
5404
  Attributes:
559 chandransh 5405
   - userId
94 ashish 5406
   - timestamp
5407
  """
5408
 
5409
  thrift_spec = (
5410
    None, # 0
559 chandransh 5411
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5412
    (2, TType.I64, 'timestamp', None, None, ), # 2
5413
  )
5414
 
559 chandransh 5415
  def __init__(self, userId=None, timestamp=None,):
5416
    self.userId = userId
94 ashish 5417
    self.timestamp = timestamp
5418
 
5419
  def read(self, iprot):
5420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5422
      return
5423
    iprot.readStructBegin()
5424
    while True:
5425
      (fname, ftype, fid) = iprot.readFieldBegin()
5426
      if ftype == TType.STOP:
5427
        break
5428
      if fid == 1:
559 chandransh 5429
        if ftype == TType.I64:
5430
          self.userId = iprot.readI64();
94 ashish 5431
        else:
5432
          iprot.skip(ftype)
5433
      elif fid == 2:
5434
        if ftype == TType.I64:
5435
          self.timestamp = iprot.readI64();
5436
        else:
5437
          iprot.skip(ftype)
5438
      else:
5439
        iprot.skip(ftype)
5440
      iprot.readFieldEnd()
5441
    iprot.readStructEnd()
5442
 
5443
  def write(self, oprot):
5444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5446
      return
559 chandransh 5447
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5448
    if self.userId is not None:
559 chandransh 5449
      oprot.writeFieldBegin('userId', TType.I64, 1)
5450
      oprot.writeI64(self.userId)
94 ashish 5451
      oprot.writeFieldEnd()
3431 rajveer 5452
    if self.timestamp is not None:
94 ashish 5453
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5454
      oprot.writeI64(self.timestamp)
5455
      oprot.writeFieldEnd()
5456
    oprot.writeFieldStop()
5457
    oprot.writeStructEnd()
5458
 
3431 rajveer 5459
  def validate(self):
5460
    return
5461
 
5462
 
94 ashish 5463
  def __repr__(self):
5464
    L = ['%s=%r' % (key, value)
5465
      for key, value in self.__dict__.iteritems()]
5466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5467
 
5468
  def __eq__(self, other):
5469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5470
 
5471
  def __ne__(self, other):
5472
    return not (self == other)
5473
 
559 chandransh 5474
class setUserAsLoggedIn_result:
94 ashish 5475
  """
5476
  Attributes:
5477
   - success
5478
   - ucx
5479
  """
5480
 
5481
  thrift_spec = (
5482
    (0, TType.BOOL, 'success', None, None, ), # 0
5483
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5484
  )
5485
 
5486
  def __init__(self, success=None, ucx=None,):
5487
    self.success = success
5488
    self.ucx = ucx
5489
 
5490
  def read(self, iprot):
5491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5493
      return
5494
    iprot.readStructBegin()
5495
    while True:
5496
      (fname, ftype, fid) = iprot.readFieldBegin()
5497
      if ftype == TType.STOP:
5498
        break
5499
      if fid == 0:
5500
        if ftype == TType.BOOL:
5501
          self.success = iprot.readBool();
5502
        else:
5503
          iprot.skip(ftype)
5504
      elif fid == 1:
5505
        if ftype == TType.STRUCT:
5506
          self.ucx = UserContextException()
5507
          self.ucx.read(iprot)
5508
        else:
5509
          iprot.skip(ftype)
5510
      else:
5511
        iprot.skip(ftype)
5512
      iprot.readFieldEnd()
5513
    iprot.readStructEnd()
5514
 
5515
  def write(self, oprot):
5516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5518
      return
559 chandransh 5519
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5520
    if self.success is not None:
94 ashish 5521
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5522
      oprot.writeBool(self.success)
5523
      oprot.writeFieldEnd()
3431 rajveer 5524
    if self.ucx is not None:
94 ashish 5525
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5526
      self.ucx.write(oprot)
5527
      oprot.writeFieldEnd()
5528
    oprot.writeFieldStop()
5529
    oprot.writeStructEnd()
5530
 
3431 rajveer 5531
  def validate(self):
5532
    return
5533
 
5534
 
94 ashish 5535
  def __repr__(self):
5536
    L = ['%s=%r' % (key, value)
5537
      for key, value in self.__dict__.iteritems()]
5538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5539
 
5540
  def __eq__(self, other):
5541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5542
 
5543
  def __ne__(self, other):
5544
    return not (self == other)
5545
 
559 chandransh 5546
class setUserAsLoggedOut_args:
94 ashish 5547
  """
5548
  Attributes:
5549
   - userid
5550
   - timestamp
5551
  """
5552
 
5553
  thrift_spec = (
5554
    None, # 0
559 chandransh 5555
    (1, TType.I64, 'userid', None, None, ), # 1
5556
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5557
  )
5558
 
559 chandransh 5559
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5560
    self.userid = userid
5561
    self.timestamp = timestamp
5562
 
5563
  def read(self, iprot):
5564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5566
      return
5567
    iprot.readStructBegin()
5568
    while True:
5569
      (fname, ftype, fid) = iprot.readFieldBegin()
5570
      if ftype == TType.STOP:
5571
        break
5572
      if fid == 1:
5573
        if ftype == TType.I64:
5574
          self.userid = iprot.readI64();
5575
        else:
5576
          iprot.skip(ftype)
559 chandransh 5577
      elif fid == 2:
94 ashish 5578
        if ftype == TType.I64:
5579
          self.timestamp = iprot.readI64();
5580
        else:
5581
          iprot.skip(ftype)
5582
      else:
5583
        iprot.skip(ftype)
5584
      iprot.readFieldEnd()
5585
    iprot.readStructEnd()
5586
 
5587
  def write(self, oprot):
5588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5590
      return
559 chandransh 5591
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5592
    if self.userid is not None:
559 chandransh 5593
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5594
      oprot.writeI64(self.userid)
5595
      oprot.writeFieldEnd()
3431 rajveer 5596
    if self.timestamp is not None:
559 chandransh 5597
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5598
      oprot.writeI64(self.timestamp)
5599
      oprot.writeFieldEnd()
5600
    oprot.writeFieldStop()
5601
    oprot.writeStructEnd()
5602
 
3431 rajveer 5603
  def validate(self):
5604
    return
5605
 
5606
 
94 ashish 5607
  def __repr__(self):
5608
    L = ['%s=%r' % (key, value)
5609
      for key, value in self.__dict__.iteritems()]
5610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5611
 
5612
  def __eq__(self, other):
5613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5614
 
5615
  def __ne__(self, other):
5616
    return not (self == other)
5617
 
559 chandransh 5618
class setUserAsLoggedOut_result:
94 ashish 5619
  """
5620
  Attributes:
5621
   - success
5622
   - ucx
5623
  """
5624
 
5625
  thrift_spec = (
5626
    (0, TType.BOOL, 'success', None, None, ), # 0
5627
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5628
  )
5629
 
5630
  def __init__(self, success=None, ucx=None,):
5631
    self.success = success
5632
    self.ucx = ucx
5633
 
5634
  def read(self, iprot):
5635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5637
      return
5638
    iprot.readStructBegin()
5639
    while True:
5640
      (fname, ftype, fid) = iprot.readFieldBegin()
5641
      if ftype == TType.STOP:
5642
        break
5643
      if fid == 0:
5644
        if ftype == TType.BOOL:
5645
          self.success = iprot.readBool();
5646
        else:
5647
          iprot.skip(ftype)
5648
      elif fid == 1:
5649
        if ftype == TType.STRUCT:
5650
          self.ucx = UserContextException()
5651
          self.ucx.read(iprot)
5652
        else:
5653
          iprot.skip(ftype)
5654
      else:
5655
        iprot.skip(ftype)
5656
      iprot.readFieldEnd()
5657
    iprot.readStructEnd()
5658
 
5659
  def write(self, oprot):
5660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5662
      return
559 chandransh 5663
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5664
    if self.success is not None:
94 ashish 5665
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5666
      oprot.writeBool(self.success)
5667
      oprot.writeFieldEnd()
3431 rajveer 5668
    if self.ucx is not None:
94 ashish 5669
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5670
      self.ucx.write(oprot)
5671
      oprot.writeFieldEnd()
5672
    oprot.writeFieldStop()
5673
    oprot.writeStructEnd()
5674
 
3431 rajveer 5675
  def validate(self):
5676
    return
5677
 
5678
 
94 ashish 5679
  def __repr__(self):
5680
    L = ['%s=%r' % (key, value)
5681
      for key, value in self.__dict__.iteritems()]
5682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5683
 
5684
  def __eq__(self, other):
5685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5686
 
5687
  def __ne__(self, other):
5688
    return not (self == other)
5689
 
559 chandransh 5690
class setDefaultAddress_args:
94 ashish 5691
  """
5692
  Attributes:
5693
   - userid
5694
   - addressId
5695
  """
5696
 
5697
  thrift_spec = (
5698
    None, # 0
5699
    (1, TType.I64, 'userid', None, None, ), # 1
5700
    (2, TType.I64, 'addressId', None, None, ), # 2
5701
  )
5702
 
5703
  def __init__(self, userid=None, addressId=None,):
5704
    self.userid = userid
5705
    self.addressId = addressId
5706
 
5707
  def read(self, iprot):
5708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5710
      return
5711
    iprot.readStructBegin()
5712
    while True:
5713
      (fname, ftype, fid) = iprot.readFieldBegin()
5714
      if ftype == TType.STOP:
5715
        break
5716
      if fid == 1:
5717
        if ftype == TType.I64:
5718
          self.userid = iprot.readI64();
5719
        else:
5720
          iprot.skip(ftype)
5721
      elif fid == 2:
5722
        if ftype == TType.I64:
5723
          self.addressId = iprot.readI64();
5724
        else:
5725
          iprot.skip(ftype)
5726
      else:
5727
        iprot.skip(ftype)
5728
      iprot.readFieldEnd()
5729
    iprot.readStructEnd()
5730
 
5731
  def write(self, oprot):
5732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5734
      return
559 chandransh 5735
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5736
    if self.userid is not None:
94 ashish 5737
      oprot.writeFieldBegin('userid', TType.I64, 1)
5738
      oprot.writeI64(self.userid)
5739
      oprot.writeFieldEnd()
3431 rajveer 5740
    if self.addressId is not None:
94 ashish 5741
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5742
      oprot.writeI64(self.addressId)
5743
      oprot.writeFieldEnd()
5744
    oprot.writeFieldStop()
5745
    oprot.writeStructEnd()
5746
 
3431 rajveer 5747
  def validate(self):
5748
    return
5749
 
5750
 
94 ashish 5751
  def __repr__(self):
5752
    L = ['%s=%r' % (key, value)
5753
      for key, value in self.__dict__.iteritems()]
5754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5755
 
5756
  def __eq__(self, other):
5757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5758
 
5759
  def __ne__(self, other):
5760
    return not (self == other)
5761
 
559 chandransh 5762
class setDefaultAddress_result:
94 ashish 5763
  """
5764
  Attributes:
5765
   - success
5766
   - ucx
5767
  """
5768
 
5769
  thrift_spec = (
5770
    (0, TType.BOOL, 'success', None, None, ), # 0
5771
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5772
  )
5773
 
5774
  def __init__(self, success=None, ucx=None,):
5775
    self.success = success
5776
    self.ucx = ucx
5777
 
5778
  def read(self, iprot):
5779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5781
      return
5782
    iprot.readStructBegin()
5783
    while True:
5784
      (fname, ftype, fid) = iprot.readFieldBegin()
5785
      if ftype == TType.STOP:
5786
        break
5787
      if fid == 0:
5788
        if ftype == TType.BOOL:
5789
          self.success = iprot.readBool();
5790
        else:
5791
          iprot.skip(ftype)
5792
      elif fid == 1:
5793
        if ftype == TType.STRUCT:
5794
          self.ucx = UserContextException()
5795
          self.ucx.read(iprot)
5796
        else:
5797
          iprot.skip(ftype)
5798
      else:
5799
        iprot.skip(ftype)
5800
      iprot.readFieldEnd()
5801
    iprot.readStructEnd()
5802
 
5803
  def write(self, oprot):
5804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5806
      return
559 chandransh 5807
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5808
    if self.success is not None:
94 ashish 5809
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5810
      oprot.writeBool(self.success)
5811
      oprot.writeFieldEnd()
3431 rajveer 5812
    if self.ucx is not None:
94 ashish 5813
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5814
      self.ucx.write(oprot)
5815
      oprot.writeFieldEnd()
5816
    oprot.writeFieldStop()
5817
    oprot.writeStructEnd()
5818
 
3431 rajveer 5819
  def validate(self):
5820
    return
5821
 
5822
 
94 ashish 5823
  def __repr__(self):
5824
    L = ['%s=%r' % (key, value)
5825
      for key, value in self.__dict__.iteritems()]
5826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5827
 
5828
  def __eq__(self, other):
5829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5830
 
5831
  def __ne__(self, other):
5832
    return not (self == other)
5833
 
559 chandransh 5834
class updatePassword_args:
94 ashish 5835
  """
5836
  Attributes:
559 chandransh 5837
   - userid
594 rajveer 5838
   - oldPassword
5839
   - newPassword
94 ashish 5840
  """
5841
 
5842
  thrift_spec = (
5843
    None, # 0
559 chandransh 5844
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5845
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5846
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5847
  )
5848
 
594 rajveer 5849
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5850
    self.userid = userid
594 rajveer 5851
    self.oldPassword = oldPassword
5852
    self.newPassword = newPassword
94 ashish 5853
 
5854
  def read(self, iprot):
5855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5857
      return
5858
    iprot.readStructBegin()
5859
    while True:
5860
      (fname, ftype, fid) = iprot.readFieldBegin()
5861
      if ftype == TType.STOP:
5862
        break
5863
      if fid == 1:
5864
        if ftype == TType.I64:
559 chandransh 5865
          self.userid = iprot.readI64();
94 ashish 5866
        else:
5867
          iprot.skip(ftype)
5868
      elif fid == 2:
559 chandransh 5869
        if ftype == TType.STRING:
594 rajveer 5870
          self.oldPassword = iprot.readString();
94 ashish 5871
        else:
5872
          iprot.skip(ftype)
594 rajveer 5873
      elif fid == 3:
5874
        if ftype == TType.STRING:
5875
          self.newPassword = iprot.readString();
5876
        else:
5877
          iprot.skip(ftype)
94 ashish 5878
      else:
5879
        iprot.skip(ftype)
5880
      iprot.readFieldEnd()
5881
    iprot.readStructEnd()
5882
 
5883
  def write(self, oprot):
5884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5886
      return
559 chandransh 5887
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5888
    if self.userid is not None:
559 chandransh 5889
      oprot.writeFieldBegin('userid', TType.I64, 1)
5890
      oprot.writeI64(self.userid)
94 ashish 5891
      oprot.writeFieldEnd()
3431 rajveer 5892
    if self.oldPassword is not None:
594 rajveer 5893
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5894
      oprot.writeString(self.oldPassword)
94 ashish 5895
      oprot.writeFieldEnd()
3431 rajveer 5896
    if self.newPassword is not None:
594 rajveer 5897
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5898
      oprot.writeString(self.newPassword)
5899
      oprot.writeFieldEnd()
94 ashish 5900
    oprot.writeFieldStop()
5901
    oprot.writeStructEnd()
5902
 
3431 rajveer 5903
  def validate(self):
5904
    return
5905
 
5906
 
94 ashish 5907
  def __repr__(self):
5908
    L = ['%s=%r' % (key, value)
5909
      for key, value in self.__dict__.iteritems()]
5910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5911
 
5912
  def __eq__(self, other):
5913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5914
 
5915
  def __ne__(self, other):
5916
    return not (self == other)
5917
 
559 chandransh 5918
class updatePassword_result:
94 ashish 5919
  """
5920
  Attributes:
5921
   - success
5922
   - ucx
5923
  """
5924
 
5925
  thrift_spec = (
5926
    (0, TType.BOOL, 'success', None, None, ), # 0
5927
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5928
  )
5929
 
5930
  def __init__(self, success=None, ucx=None,):
5931
    self.success = success
5932
    self.ucx = ucx
5933
 
5934
  def read(self, iprot):
5935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5937
      return
5938
    iprot.readStructBegin()
5939
    while True:
5940
      (fname, ftype, fid) = iprot.readFieldBegin()
5941
      if ftype == TType.STOP:
5942
        break
5943
      if fid == 0:
5944
        if ftype == TType.BOOL:
5945
          self.success = iprot.readBool();
5946
        else:
5947
          iprot.skip(ftype)
5948
      elif fid == 1:
5949
        if ftype == TType.STRUCT:
5950
          self.ucx = UserContextException()
5951
          self.ucx.read(iprot)
5952
        else:
5953
          iprot.skip(ftype)
5954
      else:
5955
        iprot.skip(ftype)
5956
      iprot.readFieldEnd()
5957
    iprot.readStructEnd()
5958
 
5959
  def write(self, oprot):
5960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5962
      return
559 chandransh 5963
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5964
    if self.success is not None:
94 ashish 5965
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5966
      oprot.writeBool(self.success)
5967
      oprot.writeFieldEnd()
3431 rajveer 5968
    if self.ucx is not None:
94 ashish 5969
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5970
      self.ucx.write(oprot)
5971
      oprot.writeFieldEnd()
5972
    oprot.writeFieldStop()
5973
    oprot.writeStructEnd()
5974
 
3431 rajveer 5975
  def validate(self):
5976
    return
5977
 
5978
 
94 ashish 5979
  def __repr__(self):
5980
    L = ['%s=%r' % (key, value)
5981
      for key, value in self.__dict__.iteritems()]
5982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5983
 
5984
  def __eq__(self, other):
5985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5986
 
5987
  def __ne__(self, other):
5988
    return not (self == other)
5989
 
581 rajveer 5990
class forgotPassword_args:
5991
  """
5992
  Attributes:
5993
   - email
884 rajveer 5994
   - newPassword
581 rajveer 5995
  """
5996
 
5997
  thrift_spec = (
5998
    None, # 0
5999
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6000
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6001
  )
6002
 
884 rajveer 6003
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6004
    self.email = email
884 rajveer 6005
    self.newPassword = newPassword
581 rajveer 6006
 
6007
  def read(self, iprot):
6008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6010
      return
6011
    iprot.readStructBegin()
6012
    while True:
6013
      (fname, ftype, fid) = iprot.readFieldBegin()
6014
      if ftype == TType.STOP:
6015
        break
6016
      if fid == 1:
6017
        if ftype == TType.STRING:
6018
          self.email = iprot.readString();
6019
        else:
6020
          iprot.skip(ftype)
884 rajveer 6021
      elif fid == 2:
6022
        if ftype == TType.STRING:
6023
          self.newPassword = iprot.readString();
6024
        else:
6025
          iprot.skip(ftype)
581 rajveer 6026
      else:
6027
        iprot.skip(ftype)
6028
      iprot.readFieldEnd()
6029
    iprot.readStructEnd()
6030
 
6031
  def write(self, oprot):
6032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6034
      return
6035
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6036
    if self.email is not None:
581 rajveer 6037
      oprot.writeFieldBegin('email', TType.STRING, 1)
6038
      oprot.writeString(self.email)
6039
      oprot.writeFieldEnd()
3431 rajveer 6040
    if self.newPassword is not None:
884 rajveer 6041
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6042
      oprot.writeString(self.newPassword)
6043
      oprot.writeFieldEnd()
581 rajveer 6044
    oprot.writeFieldStop()
6045
    oprot.writeStructEnd()
6046
 
3431 rajveer 6047
  def validate(self):
6048
    return
6049
 
6050
 
581 rajveer 6051
  def __repr__(self):
6052
    L = ['%s=%r' % (key, value)
6053
      for key, value in self.__dict__.iteritems()]
6054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6055
 
6056
  def __eq__(self, other):
6057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6058
 
6059
  def __ne__(self, other):
6060
    return not (self == other)
6061
 
6062
class forgotPassword_result:
6063
  """
6064
  Attributes:
6065
   - success
6066
   - ucx
6067
  """
6068
 
6069
  thrift_spec = (
6070
    (0, TType.BOOL, 'success', None, None, ), # 0
6071
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6072
  )
6073
 
6074
  def __init__(self, success=None, ucx=None,):
6075
    self.success = success
6076
    self.ucx = ucx
6077
 
6078
  def read(self, iprot):
6079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6081
      return
6082
    iprot.readStructBegin()
6083
    while True:
6084
      (fname, ftype, fid) = iprot.readFieldBegin()
6085
      if ftype == TType.STOP:
6086
        break
6087
      if fid == 0:
6088
        if ftype == TType.BOOL:
6089
          self.success = iprot.readBool();
6090
        else:
6091
          iprot.skip(ftype)
6092
      elif fid == 1:
6093
        if ftype == TType.STRUCT:
6094
          self.ucx = UserContextException()
6095
          self.ucx.read(iprot)
6096
        else:
6097
          iprot.skip(ftype)
6098
      else:
6099
        iprot.skip(ftype)
6100
      iprot.readFieldEnd()
6101
    iprot.readStructEnd()
6102
 
6103
  def write(self, oprot):
6104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6106
      return
6107
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6108
    if self.success is not None:
581 rajveer 6109
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6110
      oprot.writeBool(self.success)
6111
      oprot.writeFieldEnd()
3431 rajveer 6112
    if self.ucx is not None:
581 rajveer 6113
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6114
      self.ucx.write(oprot)
6115
      oprot.writeFieldEnd()
6116
    oprot.writeFieldStop()
6117
    oprot.writeStructEnd()
6118
 
3431 rajveer 6119
  def validate(self):
6120
    return
6121
 
6122
 
581 rajveer 6123
  def __repr__(self):
6124
    L = ['%s=%r' % (key, value)
6125
      for key, value in self.__dict__.iteritems()]
6126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6127
 
6128
  def __eq__(self, other):
6129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6130
 
6131
  def __ne__(self, other):
6132
    return not (self == other)
6133
 
594 rajveer 6134
class getAllAddressesForUser_args:
6135
  """
6136
  Attributes:
6137
   - userId
6138
  """
6139
 
6140
  thrift_spec = (
6141
    None, # 0
6142
    (1, TType.I64, 'userId', None, None, ), # 1
6143
  )
6144
 
6145
  def __init__(self, userId=None,):
6146
    self.userId = userId
6147
 
6148
  def read(self, iprot):
6149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6151
      return
6152
    iprot.readStructBegin()
6153
    while True:
6154
      (fname, ftype, fid) = iprot.readFieldBegin()
6155
      if ftype == TType.STOP:
6156
        break
6157
      if fid == 1:
6158
        if ftype == TType.I64:
6159
          self.userId = iprot.readI64();
6160
        else:
6161
          iprot.skip(ftype)
6162
      else:
6163
        iprot.skip(ftype)
6164
      iprot.readFieldEnd()
6165
    iprot.readStructEnd()
6166
 
6167
  def write(self, oprot):
6168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6170
      return
6171
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6172
    if self.userId is not None:
594 rajveer 6173
      oprot.writeFieldBegin('userId', TType.I64, 1)
6174
      oprot.writeI64(self.userId)
6175
      oprot.writeFieldEnd()
6176
    oprot.writeFieldStop()
6177
    oprot.writeStructEnd()
6178
 
3431 rajveer 6179
  def validate(self):
6180
    return
6181
 
6182
 
594 rajveer 6183
  def __repr__(self):
6184
    L = ['%s=%r' % (key, value)
6185
      for key, value in self.__dict__.iteritems()]
6186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6187
 
6188
  def __eq__(self, other):
6189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6190
 
6191
  def __ne__(self, other):
6192
    return not (self == other)
6193
 
6194
class getAllAddressesForUser_result:
6195
  """
6196
  Attributes:
6197
   - success
6198
   - ucx
6199
  """
6200
 
6201
  thrift_spec = (
6202
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6203
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6204
  )
6205
 
6206
  def __init__(self, success=None, ucx=None,):
6207
    self.success = success
6208
    self.ucx = ucx
6209
 
6210
  def read(self, iprot):
6211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6213
      return
6214
    iprot.readStructBegin()
6215
    while True:
6216
      (fname, ftype, fid) = iprot.readFieldBegin()
6217
      if ftype == TType.STOP:
6218
        break
6219
      if fid == 0:
6220
        if ftype == TType.LIST:
6221
          self.success = []
5326 rajveer 6222
          (_etype61, _size58) = iprot.readListBegin()
6223
          for _i62 in xrange(_size58):
6224
            _elem63 = Address()
6225
            _elem63.read(iprot)
6226
            self.success.append(_elem63)
594 rajveer 6227
          iprot.readListEnd()
6228
        else:
6229
          iprot.skip(ftype)
6230
      elif fid == 1:
6231
        if ftype == TType.STRUCT:
6232
          self.ucx = UserContextException()
6233
          self.ucx.read(iprot)
6234
        else:
6235
          iprot.skip(ftype)
6236
      else:
6237
        iprot.skip(ftype)
6238
      iprot.readFieldEnd()
6239
    iprot.readStructEnd()
6240
 
6241
  def write(self, oprot):
6242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6244
      return
6245
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6246
    if self.success is not None:
594 rajveer 6247
      oprot.writeFieldBegin('success', TType.LIST, 0)
6248
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6249
      for iter64 in self.success:
6250
        iter64.write(oprot)
594 rajveer 6251
      oprot.writeListEnd()
6252
      oprot.writeFieldEnd()
3431 rajveer 6253
    if self.ucx is not None:
594 rajveer 6254
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6255
      self.ucx.write(oprot)
6256
      oprot.writeFieldEnd()
6257
    oprot.writeFieldStop()
6258
    oprot.writeStructEnd()
6259
 
3431 rajveer 6260
  def validate(self):
6261
    return
6262
 
6263
 
594 rajveer 6264
  def __repr__(self):
6265
    L = ['%s=%r' % (key, value)
6266
      for key, value in self.__dict__.iteritems()]
6267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6268
 
6269
  def __eq__(self, other):
6270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6271
 
6272
  def __ne__(self, other):
6273
    return not (self == other)
6274
 
1894 vikas 6275
class getAddressById_args:
6276
  """
6277
  Attributes:
6278
   - addressId
6279
  """
6280
 
6281
  thrift_spec = (
6282
    None, # 0
6283
    (1, TType.I64, 'addressId', None, None, ), # 1
6284
  )
6285
 
6286
  def __init__(self, addressId=None,):
6287
    self.addressId = addressId
6288
 
6289
  def read(self, iprot):
6290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6292
      return
6293
    iprot.readStructBegin()
6294
    while True:
6295
      (fname, ftype, fid) = iprot.readFieldBegin()
6296
      if ftype == TType.STOP:
6297
        break
6298
      if fid == 1:
6299
        if ftype == TType.I64:
6300
          self.addressId = iprot.readI64();
6301
        else:
6302
          iprot.skip(ftype)
6303
      else:
6304
        iprot.skip(ftype)
6305
      iprot.readFieldEnd()
6306
    iprot.readStructEnd()
6307
 
6308
  def write(self, oprot):
6309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6311
      return
6312
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6313
    if self.addressId is not None:
1894 vikas 6314
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6315
      oprot.writeI64(self.addressId)
6316
      oprot.writeFieldEnd()
6317
    oprot.writeFieldStop()
6318
    oprot.writeStructEnd()
6319
 
3431 rajveer 6320
  def validate(self):
6321
    return
6322
 
6323
 
1894 vikas 6324
  def __repr__(self):
6325
    L = ['%s=%r' % (key, value)
6326
      for key, value in self.__dict__.iteritems()]
6327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6328
 
6329
  def __eq__(self, other):
6330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6331
 
6332
  def __ne__(self, other):
6333
    return not (self == other)
6334
 
6335
class getAddressById_result:
6336
  """
6337
  Attributes:
6338
   - success
6339
   - ucx
6340
  """
6341
 
6342
  thrift_spec = (
6343
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6344
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6345
  )
6346
 
6347
  def __init__(self, success=None, ucx=None,):
6348
    self.success = success
6349
    self.ucx = ucx
6350
 
6351
  def read(self, iprot):
6352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6354
      return
6355
    iprot.readStructBegin()
6356
    while True:
6357
      (fname, ftype, fid) = iprot.readFieldBegin()
6358
      if ftype == TType.STOP:
6359
        break
6360
      if fid == 0:
6361
        if ftype == TType.STRUCT:
6362
          self.success = Address()
6363
          self.success.read(iprot)
6364
        else:
6365
          iprot.skip(ftype)
6366
      elif fid == 1:
6367
        if ftype == TType.STRUCT:
6368
          self.ucx = UserContextException()
6369
          self.ucx.read(iprot)
6370
        else:
6371
          iprot.skip(ftype)
6372
      else:
6373
        iprot.skip(ftype)
6374
      iprot.readFieldEnd()
6375
    iprot.readStructEnd()
6376
 
6377
  def write(self, oprot):
6378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6380
      return
6381
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6382
    if self.success is not None:
1894 vikas 6383
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6384
      self.success.write(oprot)
6385
      oprot.writeFieldEnd()
3431 rajveer 6386
    if self.ucx is not None:
1894 vikas 6387
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6388
      self.ucx.write(oprot)
6389
      oprot.writeFieldEnd()
6390
    oprot.writeFieldStop()
6391
    oprot.writeStructEnd()
6392
 
3431 rajveer 6393
  def validate(self):
6394
    return
6395
 
6396
 
1894 vikas 6397
  def __repr__(self):
6398
    L = ['%s=%r' % (key, value)
6399
      for key, value in self.__dict__.iteritems()]
6400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6401
 
6402
  def __eq__(self, other):
6403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6404
 
6405
  def __ne__(self, other):
6406
    return not (self == other)
6407
 
594 rajveer 6408
class getDefaultAddressId_args:
6409
  """
6410
  Attributes:
6411
   - userId
6412
  """
6413
 
6414
  thrift_spec = (
6415
    None, # 0
6416
    (1, TType.I64, 'userId', None, None, ), # 1
6417
  )
6418
 
6419
  def __init__(self, userId=None,):
6420
    self.userId = userId
6421
 
6422
  def read(self, iprot):
6423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6425
      return
6426
    iprot.readStructBegin()
6427
    while True:
6428
      (fname, ftype, fid) = iprot.readFieldBegin()
6429
      if ftype == TType.STOP:
6430
        break
6431
      if fid == 1:
6432
        if ftype == TType.I64:
6433
          self.userId = iprot.readI64();
6434
        else:
6435
          iprot.skip(ftype)
6436
      else:
6437
        iprot.skip(ftype)
6438
      iprot.readFieldEnd()
6439
    iprot.readStructEnd()
6440
 
6441
  def write(self, oprot):
6442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6444
      return
6445
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6446
    if self.userId is not None:
594 rajveer 6447
      oprot.writeFieldBegin('userId', TType.I64, 1)
6448
      oprot.writeI64(self.userId)
6449
      oprot.writeFieldEnd()
6450
    oprot.writeFieldStop()
6451
    oprot.writeStructEnd()
6452
 
3431 rajveer 6453
  def validate(self):
6454
    return
6455
 
6456
 
594 rajveer 6457
  def __repr__(self):
6458
    L = ['%s=%r' % (key, value)
6459
      for key, value in self.__dict__.iteritems()]
6460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6461
 
6462
  def __eq__(self, other):
6463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6464
 
6465
  def __ne__(self, other):
6466
    return not (self == other)
6467
 
6468
class getDefaultAddressId_result:
6469
  """
6470
  Attributes:
6471
   - success
6472
   - ucx
6473
  """
6474
 
6475
  thrift_spec = (
6476
    (0, TType.I64, 'success', None, None, ), # 0
6477
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6478
  )
6479
 
6480
  def __init__(self, success=None, ucx=None,):
6481
    self.success = success
6482
    self.ucx = ucx
6483
 
6484
  def read(self, iprot):
6485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6487
      return
6488
    iprot.readStructBegin()
6489
    while True:
6490
      (fname, ftype, fid) = iprot.readFieldBegin()
6491
      if ftype == TType.STOP:
6492
        break
6493
      if fid == 0:
6494
        if ftype == TType.I64:
6495
          self.success = iprot.readI64();
6496
        else:
6497
          iprot.skip(ftype)
6498
      elif fid == 1:
6499
        if ftype == TType.STRUCT:
6500
          self.ucx = UserContextException()
6501
          self.ucx.read(iprot)
6502
        else:
6503
          iprot.skip(ftype)
6504
      else:
6505
        iprot.skip(ftype)
6506
      iprot.readFieldEnd()
6507
    iprot.readStructEnd()
6508
 
6509
  def write(self, oprot):
6510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6512
      return
6513
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6514
    if self.success is not None:
594 rajveer 6515
      oprot.writeFieldBegin('success', TType.I64, 0)
6516
      oprot.writeI64(self.success)
6517
      oprot.writeFieldEnd()
3431 rajveer 6518
    if self.ucx is not None:
594 rajveer 6519
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6520
      self.ucx.write(oprot)
6521
      oprot.writeFieldEnd()
6522
    oprot.writeFieldStop()
6523
    oprot.writeStructEnd()
6524
 
3431 rajveer 6525
  def validate(self):
6526
    return
6527
 
6528
 
594 rajveer 6529
  def __repr__(self):
6530
    L = ['%s=%r' % (key, value)
6531
      for key, value in self.__dict__.iteritems()]
6532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6533
 
6534
  def __eq__(self, other):
6535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6536
 
6537
  def __ne__(self, other):
6538
    return not (self == other)
6539
 
785 rajveer 6540
class getDefaultPincode_args:
6541
  """
6542
  Attributes:
6543
   - userId
6544
  """
6545
 
6546
  thrift_spec = (
6547
    None, # 0
6548
    (1, TType.I64, 'userId', None, None, ), # 1
6549
  )
6550
 
6551
  def __init__(self, userId=None,):
6552
    self.userId = userId
6553
 
6554
  def read(self, iprot):
6555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6557
      return
6558
    iprot.readStructBegin()
6559
    while True:
6560
      (fname, ftype, fid) = iprot.readFieldBegin()
6561
      if ftype == TType.STOP:
6562
        break
6563
      if fid == 1:
6564
        if ftype == TType.I64:
6565
          self.userId = iprot.readI64();
6566
        else:
6567
          iprot.skip(ftype)
6568
      else:
6569
        iprot.skip(ftype)
6570
      iprot.readFieldEnd()
6571
    iprot.readStructEnd()
6572
 
6573
  def write(self, oprot):
6574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6576
      return
6577
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6578
    if self.userId is not None:
785 rajveer 6579
      oprot.writeFieldBegin('userId', TType.I64, 1)
6580
      oprot.writeI64(self.userId)
6581
      oprot.writeFieldEnd()
6582
    oprot.writeFieldStop()
6583
    oprot.writeStructEnd()
6584
 
3431 rajveer 6585
  def validate(self):
6586
    return
6587
 
6588
 
785 rajveer 6589
  def __repr__(self):
6590
    L = ['%s=%r' % (key, value)
6591
      for key, value in self.__dict__.iteritems()]
6592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6593
 
6594
  def __eq__(self, other):
6595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6596
 
6597
  def __ne__(self, other):
6598
    return not (self == other)
6599
 
6600
class getDefaultPincode_result:
6601
  """
6602
  Attributes:
6603
   - success
6604
   - ucx
6605
  """
6606
 
6607
  thrift_spec = (
6608
    (0, TType.STRING, 'success', None, None, ), # 0
6609
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6610
  )
6611
 
6612
  def __init__(self, success=None, ucx=None,):
6613
    self.success = success
6614
    self.ucx = ucx
6615
 
6616
  def read(self, iprot):
6617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6619
      return
6620
    iprot.readStructBegin()
6621
    while True:
6622
      (fname, ftype, fid) = iprot.readFieldBegin()
6623
      if ftype == TType.STOP:
6624
        break
6625
      if fid == 0:
6626
        if ftype == TType.STRING:
6627
          self.success = iprot.readString();
6628
        else:
6629
          iprot.skip(ftype)
6630
      elif fid == 1:
6631
        if ftype == TType.STRUCT:
6632
          self.ucx = UserContextException()
6633
          self.ucx.read(iprot)
6634
        else:
6635
          iprot.skip(ftype)
6636
      else:
6637
        iprot.skip(ftype)
6638
      iprot.readFieldEnd()
6639
    iprot.readStructEnd()
6640
 
6641
  def write(self, oprot):
6642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6644
      return
6645
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6646
    if self.success is not None:
785 rajveer 6647
      oprot.writeFieldBegin('success', TType.STRING, 0)
6648
      oprot.writeString(self.success)
6649
      oprot.writeFieldEnd()
3431 rajveer 6650
    if self.ucx is not None:
785 rajveer 6651
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6652
      self.ucx.write(oprot)
6653
      oprot.writeFieldEnd()
6654
    oprot.writeFieldStop()
6655
    oprot.writeStructEnd()
6656
 
3431 rajveer 6657
  def validate(self):
6658
    return
6659
 
6660
 
785 rajveer 6661
  def __repr__(self):
6662
    L = ['%s=%r' % (key, value)
6663
      for key, value in self.__dict__.iteritems()]
6664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6665
 
6666
  def __eq__(self, other):
6667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6668
 
6669
  def __ne__(self, other):
6670
    return not (self == other)
6671
 
1274 varun.gupt 6672
class saveUserCommunication_args:
6673
  """
6674
  Attributes:
6675
   - userId
6676
   - replyTo
6677
   - communicationType
6678
   - orderId
6679
   - airwaybillNo
6680
   - productName
6681
   - subject
6682
   - message
6683
  """
6684
 
6685
  thrift_spec = (
6686
    None, # 0
6687
    (1, TType.I64, 'userId', None, None, ), # 1
6688
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6689
    (3, TType.I64, 'communicationType', None, None, ), # 3
6690
    (4, TType.I64, 'orderId', None, None, ), # 4
6691
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6692
    (6, TType.STRING, 'productName', None, None, ), # 6
6693
    (7, TType.STRING, 'subject', None, None, ), # 7
6694
    (8, TType.STRING, 'message', None, None, ), # 8
6695
  )
6696
 
6697
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6698
    self.userId = userId
6699
    self.replyTo = replyTo
6700
    self.communicationType = communicationType
6701
    self.orderId = orderId
6702
    self.airwaybillNo = airwaybillNo
6703
    self.productName = productName
6704
    self.subject = subject
6705
    self.message = message
6706
 
6707
  def read(self, iprot):
6708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6710
      return
6711
    iprot.readStructBegin()
6712
    while True:
6713
      (fname, ftype, fid) = iprot.readFieldBegin()
6714
      if ftype == TType.STOP:
6715
        break
6716
      if fid == 1:
6717
        if ftype == TType.I64:
6718
          self.userId = iprot.readI64();
6719
        else:
6720
          iprot.skip(ftype)
6721
      elif fid == 2:
6722
        if ftype == TType.STRING:
6723
          self.replyTo = iprot.readString();
6724
        else:
6725
          iprot.skip(ftype)
6726
      elif fid == 3:
6727
        if ftype == TType.I64:
6728
          self.communicationType = iprot.readI64();
6729
        else:
6730
          iprot.skip(ftype)
6731
      elif fid == 4:
6732
        if ftype == TType.I64:
6733
          self.orderId = iprot.readI64();
6734
        else:
6735
          iprot.skip(ftype)
6736
      elif fid == 5:
6737
        if ftype == TType.STRING:
6738
          self.airwaybillNo = iprot.readString();
6739
        else:
6740
          iprot.skip(ftype)
6741
      elif fid == 6:
6742
        if ftype == TType.STRING:
6743
          self.productName = iprot.readString();
6744
        else:
6745
          iprot.skip(ftype)
6746
      elif fid == 7:
6747
        if ftype == TType.STRING:
6748
          self.subject = iprot.readString();
6749
        else:
6750
          iprot.skip(ftype)
6751
      elif fid == 8:
6752
        if ftype == TType.STRING:
6753
          self.message = iprot.readString();
6754
        else:
6755
          iprot.skip(ftype)
6756
      else:
6757
        iprot.skip(ftype)
6758
      iprot.readFieldEnd()
6759
    iprot.readStructEnd()
6760
 
6761
  def write(self, oprot):
6762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6764
      return
6765
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6766
    if self.userId is not None:
1274 varun.gupt 6767
      oprot.writeFieldBegin('userId', TType.I64, 1)
6768
      oprot.writeI64(self.userId)
6769
      oprot.writeFieldEnd()
3431 rajveer 6770
    if self.replyTo is not None:
1274 varun.gupt 6771
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6772
      oprot.writeString(self.replyTo)
6773
      oprot.writeFieldEnd()
3431 rajveer 6774
    if self.communicationType is not None:
1274 varun.gupt 6775
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6776
      oprot.writeI64(self.communicationType)
6777
      oprot.writeFieldEnd()
3431 rajveer 6778
    if self.orderId is not None:
1274 varun.gupt 6779
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6780
      oprot.writeI64(self.orderId)
6781
      oprot.writeFieldEnd()
3431 rajveer 6782
    if self.airwaybillNo is not None:
1274 varun.gupt 6783
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6784
      oprot.writeString(self.airwaybillNo)
6785
      oprot.writeFieldEnd()
3431 rajveer 6786
    if self.productName is not None:
1274 varun.gupt 6787
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6788
      oprot.writeString(self.productName)
6789
      oprot.writeFieldEnd()
3431 rajveer 6790
    if self.subject is not None:
1274 varun.gupt 6791
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6792
      oprot.writeString(self.subject)
6793
      oprot.writeFieldEnd()
3431 rajveer 6794
    if self.message is not None:
1274 varun.gupt 6795
      oprot.writeFieldBegin('message', TType.STRING, 8)
6796
      oprot.writeString(self.message)
6797
      oprot.writeFieldEnd()
6798
    oprot.writeFieldStop()
6799
    oprot.writeStructEnd()
6800
 
3431 rajveer 6801
  def validate(self):
6802
    return
6803
 
6804
 
1274 varun.gupt 6805
  def __repr__(self):
6806
    L = ['%s=%r' % (key, value)
6807
      for key, value in self.__dict__.iteritems()]
6808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6809
 
6810
  def __eq__(self, other):
6811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6812
 
6813
  def __ne__(self, other):
6814
    return not (self == other)
6815
 
6816
class saveUserCommunication_result:
6817
  """
6818
  Attributes:
6819
   - success
6820
   - ucx
6821
  """
6822
 
6823
  thrift_spec = (
6824
    (0, TType.BOOL, 'success', None, None, ), # 0
6825
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6826
  )
6827
 
6828
  def __init__(self, success=None, ucx=None,):
6829
    self.success = success
6830
    self.ucx = ucx
6831
 
6832
  def read(self, iprot):
6833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6835
      return
6836
    iprot.readStructBegin()
6837
    while True:
6838
      (fname, ftype, fid) = iprot.readFieldBegin()
6839
      if ftype == TType.STOP:
6840
        break
6841
      if fid == 0:
6842
        if ftype == TType.BOOL:
6843
          self.success = iprot.readBool();
6844
        else:
6845
          iprot.skip(ftype)
6846
      elif fid == 1:
6847
        if ftype == TType.STRUCT:
6848
          self.ucx = UserCommunicationException()
6849
          self.ucx.read(iprot)
6850
        else:
6851
          iprot.skip(ftype)
6852
      else:
6853
        iprot.skip(ftype)
6854
      iprot.readFieldEnd()
6855
    iprot.readStructEnd()
6856
 
6857
  def write(self, oprot):
6858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6860
      return
6861
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6862
    if self.success is not None:
1274 varun.gupt 6863
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6864
      oprot.writeBool(self.success)
6865
      oprot.writeFieldEnd()
3431 rajveer 6866
    if self.ucx is not None:
1274 varun.gupt 6867
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6868
      self.ucx.write(oprot)
6869
      oprot.writeFieldEnd()
6870
    oprot.writeFieldStop()
6871
    oprot.writeStructEnd()
6872
 
3431 rajveer 6873
  def validate(self):
6874
    return
6875
 
6876
 
1274 varun.gupt 6877
  def __repr__(self):
6878
    L = ['%s=%r' % (key, value)
6879
      for key, value in self.__dict__.iteritems()]
6880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6881
 
6882
  def __eq__(self, other):
6883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6884
 
6885
  def __ne__(self, other):
6886
    return not (self == other)
6887
 
1590 varun.gupt 6888
class getUserCommunicationById_args:
6889
  """
6890
  Attributes:
6891
   - id
6892
  """
6893
 
6894
  thrift_spec = (
6895
    None, # 0
6896
    (1, TType.I64, 'id', None, None, ), # 1
6897
  )
6898
 
6899
  def __init__(self, id=None,):
6900
    self.id = id
6901
 
6902
  def read(self, iprot):
6903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6905
      return
6906
    iprot.readStructBegin()
6907
    while True:
6908
      (fname, ftype, fid) = iprot.readFieldBegin()
6909
      if ftype == TType.STOP:
6910
        break
6911
      if fid == 1:
6912
        if ftype == TType.I64:
6913
          self.id = iprot.readI64();
6914
        else:
6915
          iprot.skip(ftype)
6916
      else:
6917
        iprot.skip(ftype)
6918
      iprot.readFieldEnd()
6919
    iprot.readStructEnd()
6920
 
6921
  def write(self, oprot):
6922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6924
      return
6925
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6926
    if self.id is not None:
1590 varun.gupt 6927
      oprot.writeFieldBegin('id', TType.I64, 1)
6928
      oprot.writeI64(self.id)
6929
      oprot.writeFieldEnd()
6930
    oprot.writeFieldStop()
6931
    oprot.writeStructEnd()
6932
 
3431 rajveer 6933
  def validate(self):
6934
    return
6935
 
6936
 
1590 varun.gupt 6937
  def __repr__(self):
6938
    L = ['%s=%r' % (key, value)
6939
      for key, value in self.__dict__.iteritems()]
6940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6941
 
6942
  def __eq__(self, other):
6943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6944
 
6945
  def __ne__(self, other):
6946
    return not (self == other)
6947
 
6948
class getUserCommunicationById_result:
6949
  """
6950
  Attributes:
6951
   - success
6952
   - ucx
6953
  """
6954
 
6955
  thrift_spec = (
6956
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6957
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6958
  )
6959
 
6960
  def __init__(self, success=None, ucx=None,):
6961
    self.success = success
6962
    self.ucx = ucx
6963
 
6964
  def read(self, iprot):
6965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6967
      return
6968
    iprot.readStructBegin()
6969
    while True:
6970
      (fname, ftype, fid) = iprot.readFieldBegin()
6971
      if ftype == TType.STOP:
6972
        break
6973
      if fid == 0:
6974
        if ftype == TType.STRUCT:
6975
          self.success = UserCommunication()
6976
          self.success.read(iprot)
6977
        else:
6978
          iprot.skip(ftype)
6979
      elif fid == 1:
6980
        if ftype == TType.STRUCT:
6981
          self.ucx = UserCommunicationException()
6982
          self.ucx.read(iprot)
6983
        else:
6984
          iprot.skip(ftype)
6985
      else:
6986
        iprot.skip(ftype)
6987
      iprot.readFieldEnd()
6988
    iprot.readStructEnd()
6989
 
6990
  def write(self, oprot):
6991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6993
      return
6994
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 6995
    if self.success is not None:
1590 varun.gupt 6996
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6997
      self.success.write(oprot)
6998
      oprot.writeFieldEnd()
3431 rajveer 6999
    if self.ucx is not None:
1590 varun.gupt 7000
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7001
      self.ucx.write(oprot)
7002
      oprot.writeFieldEnd()
7003
    oprot.writeFieldStop()
7004
    oprot.writeStructEnd()
7005
 
3431 rajveer 7006
  def validate(self):
7007
    return
7008
 
7009
 
1590 varun.gupt 7010
  def __repr__(self):
7011
    L = ['%s=%r' % (key, value)
7012
      for key, value in self.__dict__.iteritems()]
7013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7014
 
7015
  def __eq__(self, other):
7016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7017
 
7018
  def __ne__(self, other):
7019
    return not (self == other)
7020
 
7021
class getUserCommunicationByUser_args:
7022
  """
7023
  Attributes:
7024
   - userId
7025
  """
7026
 
7027
  thrift_spec = (
7028
    None, # 0
7029
    (1, TType.I64, 'userId', None, None, ), # 1
7030
  )
7031
 
7032
  def __init__(self, userId=None,):
7033
    self.userId = userId
7034
 
7035
  def read(self, iprot):
7036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7038
      return
7039
    iprot.readStructBegin()
7040
    while True:
7041
      (fname, ftype, fid) = iprot.readFieldBegin()
7042
      if ftype == TType.STOP:
7043
        break
7044
      if fid == 1:
7045
        if ftype == TType.I64:
7046
          self.userId = iprot.readI64();
7047
        else:
7048
          iprot.skip(ftype)
7049
      else:
7050
        iprot.skip(ftype)
7051
      iprot.readFieldEnd()
7052
    iprot.readStructEnd()
7053
 
7054
  def write(self, oprot):
7055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7057
      return
7058
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7059
    if self.userId is not None:
1590 varun.gupt 7060
      oprot.writeFieldBegin('userId', TType.I64, 1)
7061
      oprot.writeI64(self.userId)
7062
      oprot.writeFieldEnd()
7063
    oprot.writeFieldStop()
7064
    oprot.writeStructEnd()
7065
 
3431 rajveer 7066
  def validate(self):
7067
    return
7068
 
7069
 
1590 varun.gupt 7070
  def __repr__(self):
7071
    L = ['%s=%r' % (key, value)
7072
      for key, value in self.__dict__.iteritems()]
7073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7074
 
7075
  def __eq__(self, other):
7076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7077
 
7078
  def __ne__(self, other):
7079
    return not (self == other)
7080
 
7081
class getUserCommunicationByUser_result:
7082
  """
7083
  Attributes:
7084
   - success
7085
   - ucx
7086
  """
7087
 
7088
  thrift_spec = (
7089
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7090
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7091
  )
7092
 
7093
  def __init__(self, success=None, ucx=None,):
7094
    self.success = success
7095
    self.ucx = ucx
7096
 
7097
  def read(self, iprot):
7098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7100
      return
7101
    iprot.readStructBegin()
7102
    while True:
7103
      (fname, ftype, fid) = iprot.readFieldBegin()
7104
      if ftype == TType.STOP:
7105
        break
7106
      if fid == 0:
7107
        if ftype == TType.LIST:
7108
          self.success = []
5326 rajveer 7109
          (_etype68, _size65) = iprot.readListBegin()
7110
          for _i69 in xrange(_size65):
7111
            _elem70 = UserCommunication()
7112
            _elem70.read(iprot)
7113
            self.success.append(_elem70)
1590 varun.gupt 7114
          iprot.readListEnd()
7115
        else:
7116
          iprot.skip(ftype)
7117
      elif fid == 1:
7118
        if ftype == TType.STRUCT:
7119
          self.ucx = UserCommunicationException()
7120
          self.ucx.read(iprot)
7121
        else:
7122
          iprot.skip(ftype)
7123
      else:
7124
        iprot.skip(ftype)
7125
      iprot.readFieldEnd()
7126
    iprot.readStructEnd()
7127
 
7128
  def write(self, oprot):
7129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7131
      return
7132
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7133
    if self.success is not None:
1590 varun.gupt 7134
      oprot.writeFieldBegin('success', TType.LIST, 0)
7135
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7136
      for iter71 in self.success:
7137
        iter71.write(oprot)
1590 varun.gupt 7138
      oprot.writeListEnd()
7139
      oprot.writeFieldEnd()
3431 rajveer 7140
    if self.ucx is not None:
1590 varun.gupt 7141
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7142
      self.ucx.write(oprot)
7143
      oprot.writeFieldEnd()
7144
    oprot.writeFieldStop()
7145
    oprot.writeStructEnd()
7146
 
3431 rajveer 7147
  def validate(self):
7148
    return
7149
 
7150
 
1590 varun.gupt 7151
  def __repr__(self):
7152
    L = ['%s=%r' % (key, value)
7153
      for key, value in self.__dict__.iteritems()]
7154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7155
 
7156
  def __eq__(self, other):
7157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7158
 
7159
  def __ne__(self, other):
7160
    return not (self == other)
7161
 
7162
class getAllUserCommunications_args:
7163
 
7164
  thrift_spec = (
7165
  )
7166
 
7167
  def read(self, iprot):
7168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7170
      return
7171
    iprot.readStructBegin()
7172
    while True:
7173
      (fname, ftype, fid) = iprot.readFieldBegin()
7174
      if ftype == TType.STOP:
7175
        break
7176
      else:
7177
        iprot.skip(ftype)
7178
      iprot.readFieldEnd()
7179
    iprot.readStructEnd()
7180
 
7181
  def write(self, oprot):
7182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7184
      return
7185
    oprot.writeStructBegin('getAllUserCommunications_args')
7186
    oprot.writeFieldStop()
7187
    oprot.writeStructEnd()
7188
 
3431 rajveer 7189
  def validate(self):
7190
    return
7191
 
7192
 
1590 varun.gupt 7193
  def __repr__(self):
7194
    L = ['%s=%r' % (key, value)
7195
      for key, value in self.__dict__.iteritems()]
7196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7197
 
7198
  def __eq__(self, other):
7199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7200
 
7201
  def __ne__(self, other):
7202
    return not (self == other)
7203
 
7204
class getAllUserCommunications_result:
7205
  """
7206
  Attributes:
7207
   - success
7208
   - ucx
7209
  """
7210
 
7211
  thrift_spec = (
7212
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7213
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7214
  )
7215
 
7216
  def __init__(self, success=None, ucx=None,):
7217
    self.success = success
7218
    self.ucx = ucx
7219
 
7220
  def read(self, iprot):
7221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7223
      return
7224
    iprot.readStructBegin()
7225
    while True:
7226
      (fname, ftype, fid) = iprot.readFieldBegin()
7227
      if ftype == TType.STOP:
7228
        break
7229
      if fid == 0:
7230
        if ftype == TType.LIST:
7231
          self.success = []
5326 rajveer 7232
          (_etype75, _size72) = iprot.readListBegin()
7233
          for _i76 in xrange(_size72):
7234
            _elem77 = UserCommunication()
7235
            _elem77.read(iprot)
7236
            self.success.append(_elem77)
1590 varun.gupt 7237
          iprot.readListEnd()
7238
        else:
7239
          iprot.skip(ftype)
7240
      elif fid == 1:
7241
        if ftype == TType.STRUCT:
7242
          self.ucx = UserCommunicationException()
7243
          self.ucx.read(iprot)
7244
        else:
7245
          iprot.skip(ftype)
7246
      else:
7247
        iprot.skip(ftype)
7248
      iprot.readFieldEnd()
7249
    iprot.readStructEnd()
7250
 
7251
  def write(self, oprot):
7252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7254
      return
7255
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7256
    if self.success is not None:
1590 varun.gupt 7257
      oprot.writeFieldBegin('success', TType.LIST, 0)
7258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7259
      for iter78 in self.success:
7260
        iter78.write(oprot)
1590 varun.gupt 7261
      oprot.writeListEnd()
7262
      oprot.writeFieldEnd()
3431 rajveer 7263
    if self.ucx is not None:
1590 varun.gupt 7264
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7265
      self.ucx.write(oprot)
7266
      oprot.writeFieldEnd()
7267
    oprot.writeFieldStop()
7268
    oprot.writeStructEnd()
7269
 
3431 rajveer 7270
  def validate(self):
7271
    return
7272
 
7273
 
1590 varun.gupt 7274
  def __repr__(self):
7275
    L = ['%s=%r' % (key, value)
7276
      for key, value in self.__dict__.iteritems()]
7277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7278
 
7279
  def __eq__(self, other):
7280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7281
 
7282
  def __ne__(self, other):
7283
    return not (self == other)
7284
 
5407 amar.kumar 7285
class removeUserCommunication_args:
7286
  """
7287
  Attributes:
7288
   - id
7289
  """
7290
 
7291
  thrift_spec = (
7292
    None, # 0
7293
    (1, TType.I64, 'id', None, None, ), # 1
7294
  )
7295
 
7296
  def __init__(self, id=None,):
7297
    self.id = id
7298
 
7299
  def read(self, iprot):
7300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7302
      return
7303
    iprot.readStructBegin()
7304
    while True:
7305
      (fname, ftype, fid) = iprot.readFieldBegin()
7306
      if ftype == TType.STOP:
7307
        break
7308
      if fid == 1:
7309
        if ftype == TType.I64:
7310
          self.id = iprot.readI64();
7311
        else:
7312
          iprot.skip(ftype)
7313
      else:
7314
        iprot.skip(ftype)
7315
      iprot.readFieldEnd()
7316
    iprot.readStructEnd()
7317
 
7318
  def write(self, oprot):
7319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7321
      return
7322
    oprot.writeStructBegin('removeUserCommunication_args')
7323
    if self.id is not None:
7324
      oprot.writeFieldBegin('id', TType.I64, 1)
7325
      oprot.writeI64(self.id)
7326
      oprot.writeFieldEnd()
7327
    oprot.writeFieldStop()
7328
    oprot.writeStructEnd()
7329
 
7330
  def validate(self):
7331
    return
7332
 
7333
 
7334
  def __repr__(self):
7335
    L = ['%s=%r' % (key, value)
7336
      for key, value in self.__dict__.iteritems()]
7337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7338
 
7339
  def __eq__(self, other):
7340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7341
 
7342
  def __ne__(self, other):
7343
    return not (self == other)
7344
 
7345
class removeUserCommunication_result:
7346
  """
7347
  Attributes:
7348
   - ucx
7349
  """
7350
 
7351
  thrift_spec = (
7352
    None, # 0
7353
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7354
  )
7355
 
7356
  def __init__(self, ucx=None,):
7357
    self.ucx = ucx
7358
 
7359
  def read(self, iprot):
7360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7362
      return
7363
    iprot.readStructBegin()
7364
    while True:
7365
      (fname, ftype, fid) = iprot.readFieldBegin()
7366
      if ftype == TType.STOP:
7367
        break
7368
      if fid == 1:
7369
        if ftype == TType.STRUCT:
7370
          self.ucx = UserCommunicationException()
7371
          self.ucx.read(iprot)
7372
        else:
7373
          iprot.skip(ftype)
7374
      else:
7375
        iprot.skip(ftype)
7376
      iprot.readFieldEnd()
7377
    iprot.readStructEnd()
7378
 
7379
  def write(self, oprot):
7380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7382
      return
7383
    oprot.writeStructBegin('removeUserCommunication_result')
7384
    if self.ucx is not None:
7385
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7386
      self.ucx.write(oprot)
7387
      oprot.writeFieldEnd()
7388
    oprot.writeFieldStop()
7389
    oprot.writeStructEnd()
7390
 
7391
  def validate(self):
7392
    return
7393
 
7394
 
7395
  def __repr__(self):
7396
    L = ['%s=%r' % (key, value)
7397
      for key, value in self.__dict__.iteritems()]
7398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7399
 
7400
  def __eq__(self, other):
7401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7402
 
7403
  def __ne__(self, other):
7404
    return not (self == other)
7405
 
1845 vikas 7406
class createMasterAffiliate_args:
7407
  """
7408
  Attributes:
7409
   - name
1859 vikas 7410
   - addedOn
1845 vikas 7411
  """
7412
 
7413
  thrift_spec = (
7414
    None, # 0
7415
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7416
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7417
  )
7418
 
1859 vikas 7419
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7420
    self.name = name
1859 vikas 7421
    self.addedOn = addedOn
1845 vikas 7422
 
7423
  def read(self, iprot):
7424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7426
      return
7427
    iprot.readStructBegin()
7428
    while True:
7429
      (fname, ftype, fid) = iprot.readFieldBegin()
7430
      if ftype == TType.STOP:
7431
        break
7432
      if fid == 1:
7433
        if ftype == TType.STRING:
7434
          self.name = iprot.readString();
7435
        else:
7436
          iprot.skip(ftype)
1859 vikas 7437
      elif fid == 2:
7438
        if ftype == TType.I64:
7439
          self.addedOn = iprot.readI64();
7440
        else:
7441
          iprot.skip(ftype)
1845 vikas 7442
      else:
7443
        iprot.skip(ftype)
7444
      iprot.readFieldEnd()
7445
    iprot.readStructEnd()
7446
 
7447
  def write(self, oprot):
7448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7450
      return
7451
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7452
    if self.name is not None:
1845 vikas 7453
      oprot.writeFieldBegin('name', TType.STRING, 1)
7454
      oprot.writeString(self.name)
7455
      oprot.writeFieldEnd()
3431 rajveer 7456
    if self.addedOn is not None:
1859 vikas 7457
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7458
      oprot.writeI64(self.addedOn)
7459
      oprot.writeFieldEnd()
1845 vikas 7460
    oprot.writeFieldStop()
7461
    oprot.writeStructEnd()
7462
 
3431 rajveer 7463
  def validate(self):
7464
    return
7465
 
7466
 
1845 vikas 7467
  def __repr__(self):
7468
    L = ['%s=%r' % (key, value)
7469
      for key, value in self.__dict__.iteritems()]
7470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7471
 
7472
  def __eq__(self, other):
7473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7474
 
7475
  def __ne__(self, other):
7476
    return not (self == other)
7477
 
7478
class createMasterAffiliate_result:
7479
  """
7480
  Attributes:
7481
   - success
7482
   - utx
7483
  """
7484
 
7485
  thrift_spec = (
7486
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7487
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7488
  )
7489
 
7490
  def __init__(self, success=None, utx=None,):
7491
    self.success = success
7492
    self.utx = utx
7493
 
7494
  def read(self, iprot):
7495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7497
      return
7498
    iprot.readStructBegin()
7499
    while True:
7500
      (fname, ftype, fid) = iprot.readFieldBegin()
7501
      if ftype == TType.STOP:
7502
        break
7503
      if fid == 0:
7504
        if ftype == TType.STRUCT:
7505
          self.success = MasterAffiliate()
7506
          self.success.read(iprot)
7507
        else:
7508
          iprot.skip(ftype)
7509
      elif fid == 1:
7510
        if ftype == TType.STRUCT:
1996 vikas 7511
          self.utx = UserAffiliateException()
1845 vikas 7512
          self.utx.read(iprot)
7513
        else:
7514
          iprot.skip(ftype)
7515
      else:
7516
        iprot.skip(ftype)
7517
      iprot.readFieldEnd()
7518
    iprot.readStructEnd()
7519
 
7520
  def write(self, oprot):
7521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7523
      return
7524
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7525
    if self.success is not None:
1845 vikas 7526
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7527
      self.success.write(oprot)
7528
      oprot.writeFieldEnd()
3431 rajveer 7529
    if self.utx is not None:
1845 vikas 7530
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7531
      self.utx.write(oprot)
7532
      oprot.writeFieldEnd()
7533
    oprot.writeFieldStop()
7534
    oprot.writeStructEnd()
7535
 
3431 rajveer 7536
  def validate(self):
7537
    return
7538
 
7539
 
1845 vikas 7540
  def __repr__(self):
7541
    L = ['%s=%r' % (key, value)
7542
      for key, value in self.__dict__.iteritems()]
7543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7544
 
7545
  def __eq__(self, other):
7546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7547
 
7548
  def __ne__(self, other):
7549
    return not (self == other)
7550
 
1899 vikas 7551
class getAllMasterAffiliates_args:
7552
 
7553
  thrift_spec = (
7554
  )
7555
 
7556
  def read(self, iprot):
7557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7559
      return
7560
    iprot.readStructBegin()
7561
    while True:
7562
      (fname, ftype, fid) = iprot.readFieldBegin()
7563
      if ftype == TType.STOP:
7564
        break
7565
      else:
7566
        iprot.skip(ftype)
7567
      iprot.readFieldEnd()
7568
    iprot.readStructEnd()
7569
 
7570
  def write(self, oprot):
7571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7573
      return
7574
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7575
    oprot.writeFieldStop()
7576
    oprot.writeStructEnd()
7577
 
3431 rajveer 7578
  def validate(self):
7579
    return
7580
 
7581
 
1899 vikas 7582
  def __repr__(self):
7583
    L = ['%s=%r' % (key, value)
7584
      for key, value in self.__dict__.iteritems()]
7585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7586
 
7587
  def __eq__(self, other):
7588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7589
 
7590
  def __ne__(self, other):
7591
    return not (self == other)
7592
 
7593
class getAllMasterAffiliates_result:
7594
  """
7595
  Attributes:
7596
   - success
7597
   - utx
7598
  """
7599
 
7600
  thrift_spec = (
7601
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7602
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7603
  )
7604
 
7605
  def __init__(self, success=None, utx=None,):
7606
    self.success = success
7607
    self.utx = utx
7608
 
7609
  def read(self, iprot):
7610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7612
      return
7613
    iprot.readStructBegin()
7614
    while True:
7615
      (fname, ftype, fid) = iprot.readFieldBegin()
7616
      if ftype == TType.STOP:
7617
        break
7618
      if fid == 0:
7619
        if ftype == TType.LIST:
7620
          self.success = []
5326 rajveer 7621
          (_etype82, _size79) = iprot.readListBegin()
7622
          for _i83 in xrange(_size79):
7623
            _elem84 = MasterAffiliate()
7624
            _elem84.read(iprot)
7625
            self.success.append(_elem84)
1899 vikas 7626
          iprot.readListEnd()
7627
        else:
7628
          iprot.skip(ftype)
7629
      elif fid == 1:
7630
        if ftype == TType.STRUCT:
1996 vikas 7631
          self.utx = UserAffiliateException()
1899 vikas 7632
          self.utx.read(iprot)
7633
        else:
7634
          iprot.skip(ftype)
7635
      else:
7636
        iprot.skip(ftype)
7637
      iprot.readFieldEnd()
7638
    iprot.readStructEnd()
7639
 
7640
  def write(self, oprot):
7641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7643
      return
7644
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7645
    if self.success is not None:
1899 vikas 7646
      oprot.writeFieldBegin('success', TType.LIST, 0)
7647
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7648
      for iter85 in self.success:
7649
        iter85.write(oprot)
1899 vikas 7650
      oprot.writeListEnd()
7651
      oprot.writeFieldEnd()
3431 rajveer 7652
    if self.utx is not None:
1899 vikas 7653
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7654
      self.utx.write(oprot)
7655
      oprot.writeFieldEnd()
7656
    oprot.writeFieldStop()
7657
    oprot.writeStructEnd()
7658
 
3431 rajveer 7659
  def validate(self):
7660
    return
7661
 
7662
 
1899 vikas 7663
  def __repr__(self):
7664
    L = ['%s=%r' % (key, value)
7665
      for key, value in self.__dict__.iteritems()]
7666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7667
 
7668
  def __eq__(self, other):
7669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7670
 
7671
  def __ne__(self, other):
7672
    return not (self == other)
7673
 
1845 vikas 7674
class getMasterAffiliateById_args:
7675
  """
7676
  Attributes:
7677
   - id
7678
  """
7679
 
7680
  thrift_spec = (
7681
    None, # 0
7682
    (1, TType.I64, 'id', None, None, ), # 1
7683
  )
7684
 
7685
  def __init__(self, id=None,):
7686
    self.id = id
7687
 
7688
  def read(self, iprot):
7689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7691
      return
7692
    iprot.readStructBegin()
7693
    while True:
7694
      (fname, ftype, fid) = iprot.readFieldBegin()
7695
      if ftype == TType.STOP:
7696
        break
7697
      if fid == 1:
7698
        if ftype == TType.I64:
7699
          self.id = iprot.readI64();
7700
        else:
7701
          iprot.skip(ftype)
7702
      else:
7703
        iprot.skip(ftype)
7704
      iprot.readFieldEnd()
7705
    iprot.readStructEnd()
7706
 
7707
  def write(self, oprot):
7708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7710
      return
7711
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7712
    if self.id is not None:
1845 vikas 7713
      oprot.writeFieldBegin('id', TType.I64, 1)
7714
      oprot.writeI64(self.id)
7715
      oprot.writeFieldEnd()
7716
    oprot.writeFieldStop()
7717
    oprot.writeStructEnd()
7718
 
3431 rajveer 7719
  def validate(self):
7720
    return
7721
 
7722
 
1845 vikas 7723
  def __repr__(self):
7724
    L = ['%s=%r' % (key, value)
7725
      for key, value in self.__dict__.iteritems()]
7726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7727
 
7728
  def __eq__(self, other):
7729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7730
 
7731
  def __ne__(self, other):
7732
    return not (self == other)
7733
 
7734
class getMasterAffiliateById_result:
7735
  """
7736
  Attributes:
7737
   - success
7738
   - utx
7739
  """
7740
 
7741
  thrift_spec = (
7742
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7743
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7744
  )
7745
 
7746
  def __init__(self, success=None, utx=None,):
7747
    self.success = success
7748
    self.utx = utx
7749
 
7750
  def read(self, iprot):
7751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7753
      return
7754
    iprot.readStructBegin()
7755
    while True:
7756
      (fname, ftype, fid) = iprot.readFieldBegin()
7757
      if ftype == TType.STOP:
7758
        break
7759
      if fid == 0:
7760
        if ftype == TType.STRUCT:
7761
          self.success = MasterAffiliate()
7762
          self.success.read(iprot)
7763
        else:
7764
          iprot.skip(ftype)
7765
      elif fid == 1:
7766
        if ftype == TType.STRUCT:
1996 vikas 7767
          self.utx = UserAffiliateException()
1845 vikas 7768
          self.utx.read(iprot)
7769
        else:
7770
          iprot.skip(ftype)
7771
      else:
7772
        iprot.skip(ftype)
7773
      iprot.readFieldEnd()
7774
    iprot.readStructEnd()
7775
 
7776
  def write(self, oprot):
7777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7779
      return
7780
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7781
    if self.success is not None:
1845 vikas 7782
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7783
      self.success.write(oprot)
7784
      oprot.writeFieldEnd()
3431 rajveer 7785
    if self.utx is not None:
1845 vikas 7786
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7787
      self.utx.write(oprot)
7788
      oprot.writeFieldEnd()
7789
    oprot.writeFieldStop()
7790
    oprot.writeStructEnd()
7791
 
3431 rajveer 7792
  def validate(self):
7793
    return
7794
 
7795
 
1845 vikas 7796
  def __repr__(self):
7797
    L = ['%s=%r' % (key, value)
7798
      for key, value in self.__dict__.iteritems()]
7799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7800
 
7801
  def __eq__(self, other):
7802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7803
 
7804
  def __ne__(self, other):
7805
    return not (self == other)
7806
 
7807
class getMasterAffiliateByName_args:
7808
  """
7809
  Attributes:
7810
   - name
7811
  """
7812
 
7813
  thrift_spec = (
7814
    None, # 0
7815
    (1, TType.STRING, 'name', None, None, ), # 1
7816
  )
7817
 
7818
  def __init__(self, name=None,):
7819
    self.name = name
7820
 
7821
  def read(self, iprot):
7822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7824
      return
7825
    iprot.readStructBegin()
7826
    while True:
7827
      (fname, ftype, fid) = iprot.readFieldBegin()
7828
      if ftype == TType.STOP:
7829
        break
7830
      if fid == 1:
7831
        if ftype == TType.STRING:
7832
          self.name = iprot.readString();
7833
        else:
7834
          iprot.skip(ftype)
7835
      else:
7836
        iprot.skip(ftype)
7837
      iprot.readFieldEnd()
7838
    iprot.readStructEnd()
7839
 
7840
  def write(self, oprot):
7841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7843
      return
7844
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7845
    if self.name is not None:
1845 vikas 7846
      oprot.writeFieldBegin('name', TType.STRING, 1)
7847
      oprot.writeString(self.name)
7848
      oprot.writeFieldEnd()
7849
    oprot.writeFieldStop()
7850
    oprot.writeStructEnd()
7851
 
3431 rajveer 7852
  def validate(self):
7853
    return
7854
 
7855
 
1845 vikas 7856
  def __repr__(self):
7857
    L = ['%s=%r' % (key, value)
7858
      for key, value in self.__dict__.iteritems()]
7859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7860
 
7861
  def __eq__(self, other):
7862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7863
 
7864
  def __ne__(self, other):
7865
    return not (self == other)
7866
 
7867
class getMasterAffiliateByName_result:
7868
  """
7869
  Attributes:
7870
   - success
7871
   - utx
7872
  """
7873
 
7874
  thrift_spec = (
7875
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7876
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7877
  )
7878
 
7879
  def __init__(self, success=None, utx=None,):
7880
    self.success = success
7881
    self.utx = utx
7882
 
7883
  def read(self, iprot):
7884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7886
      return
7887
    iprot.readStructBegin()
7888
    while True:
7889
      (fname, ftype, fid) = iprot.readFieldBegin()
7890
      if ftype == TType.STOP:
7891
        break
7892
      if fid == 0:
7893
        if ftype == TType.STRUCT:
7894
          self.success = MasterAffiliate()
7895
          self.success.read(iprot)
7896
        else:
7897
          iprot.skip(ftype)
7898
      elif fid == 1:
7899
        if ftype == TType.STRUCT:
1996 vikas 7900
          self.utx = UserAffiliateException()
1845 vikas 7901
          self.utx.read(iprot)
7902
        else:
7903
          iprot.skip(ftype)
7904
      else:
7905
        iprot.skip(ftype)
7906
      iprot.readFieldEnd()
7907
    iprot.readStructEnd()
7908
 
7909
  def write(self, oprot):
7910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7912
      return
7913
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7914
    if self.success is not None:
1845 vikas 7915
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7916
      self.success.write(oprot)
7917
      oprot.writeFieldEnd()
3431 rajveer 7918
    if self.utx is not None:
1845 vikas 7919
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7920
      self.utx.write(oprot)
7921
      oprot.writeFieldEnd()
7922
    oprot.writeFieldStop()
7923
    oprot.writeStructEnd()
7924
 
3431 rajveer 7925
  def validate(self):
7926
    return
7927
 
7928
 
1845 vikas 7929
  def __repr__(self):
7930
    L = ['%s=%r' % (key, value)
7931
      for key, value in self.__dict__.iteritems()]
7932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7933
 
7934
  def __eq__(self, other):
7935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7936
 
7937
  def __ne__(self, other):
7938
    return not (self == other)
7939
 
7940
class createAffiliate_args:
7941
  """
7942
  Attributes:
7943
   - name
7944
   - url
7945
   - masterAffiliateId
1859 vikas 7946
   - addedOn
1845 vikas 7947
  """
7948
 
7949
  thrift_spec = (
7950
    None, # 0
7951
    (1, TType.STRING, 'name', None, None, ), # 1
7952
    (2, TType.STRING, 'url', None, None, ), # 2
7953
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7954
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7955
  )
7956
 
1859 vikas 7957
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7958
    self.name = name
7959
    self.url = url
7960
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7961
    self.addedOn = addedOn
1845 vikas 7962
 
7963
  def read(self, iprot):
7964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7966
      return
7967
    iprot.readStructBegin()
7968
    while True:
7969
      (fname, ftype, fid) = iprot.readFieldBegin()
7970
      if ftype == TType.STOP:
7971
        break
7972
      if fid == 1:
7973
        if ftype == TType.STRING:
7974
          self.name = iprot.readString();
7975
        else:
7976
          iprot.skip(ftype)
7977
      elif fid == 2:
7978
        if ftype == TType.STRING:
7979
          self.url = iprot.readString();
7980
        else:
7981
          iprot.skip(ftype)
7982
      elif fid == 3:
7983
        if ftype == TType.I64:
7984
          self.masterAffiliateId = iprot.readI64();
7985
        else:
7986
          iprot.skip(ftype)
1859 vikas 7987
      elif fid == 4:
7988
        if ftype == TType.I64:
7989
          self.addedOn = iprot.readI64();
7990
        else:
7991
          iprot.skip(ftype)
1845 vikas 7992
      else:
7993
        iprot.skip(ftype)
7994
      iprot.readFieldEnd()
7995
    iprot.readStructEnd()
7996
 
7997
  def write(self, oprot):
7998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8000
      return
8001
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8002
    if self.name is not None:
1845 vikas 8003
      oprot.writeFieldBegin('name', TType.STRING, 1)
8004
      oprot.writeString(self.name)
8005
      oprot.writeFieldEnd()
3431 rajveer 8006
    if self.url is not None:
1845 vikas 8007
      oprot.writeFieldBegin('url', TType.STRING, 2)
8008
      oprot.writeString(self.url)
8009
      oprot.writeFieldEnd()
3431 rajveer 8010
    if self.masterAffiliateId is not None:
1845 vikas 8011
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8012
      oprot.writeI64(self.masterAffiliateId)
8013
      oprot.writeFieldEnd()
3431 rajveer 8014
    if self.addedOn is not None:
1859 vikas 8015
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8016
      oprot.writeI64(self.addedOn)
8017
      oprot.writeFieldEnd()
1845 vikas 8018
    oprot.writeFieldStop()
8019
    oprot.writeStructEnd()
8020
 
3431 rajveer 8021
  def validate(self):
8022
    return
8023
 
8024
 
1845 vikas 8025
  def __repr__(self):
8026
    L = ['%s=%r' % (key, value)
8027
      for key, value in self.__dict__.iteritems()]
8028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8029
 
8030
  def __eq__(self, other):
8031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8032
 
8033
  def __ne__(self, other):
8034
    return not (self == other)
8035
 
8036
class createAffiliate_result:
8037
  """
8038
  Attributes:
8039
   - success
8040
   - utx
8041
  """
8042
 
8043
  thrift_spec = (
8044
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8045
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8046
  )
8047
 
8048
  def __init__(self, success=None, utx=None,):
8049
    self.success = success
8050
    self.utx = utx
8051
 
8052
  def read(self, iprot):
8053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8055
      return
8056
    iprot.readStructBegin()
8057
    while True:
8058
      (fname, ftype, fid) = iprot.readFieldBegin()
8059
      if ftype == TType.STOP:
8060
        break
8061
      if fid == 0:
8062
        if ftype == TType.STRUCT:
8063
          self.success = Affiliate()
8064
          self.success.read(iprot)
8065
        else:
8066
          iprot.skip(ftype)
8067
      elif fid == 1:
8068
        if ftype == TType.STRUCT:
1996 vikas 8069
          self.utx = UserAffiliateException()
1845 vikas 8070
          self.utx.read(iprot)
8071
        else:
8072
          iprot.skip(ftype)
8073
      else:
8074
        iprot.skip(ftype)
8075
      iprot.readFieldEnd()
8076
    iprot.readStructEnd()
8077
 
8078
  def write(self, oprot):
8079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8081
      return
8082
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8083
    if self.success is not None:
1845 vikas 8084
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8085
      self.success.write(oprot)
8086
      oprot.writeFieldEnd()
3431 rajveer 8087
    if self.utx is not None:
1845 vikas 8088
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8089
      self.utx.write(oprot)
8090
      oprot.writeFieldEnd()
8091
    oprot.writeFieldStop()
8092
    oprot.writeStructEnd()
8093
 
3431 rajveer 8094
  def validate(self):
8095
    return
8096
 
8097
 
1845 vikas 8098
  def __repr__(self):
8099
    L = ['%s=%r' % (key, value)
8100
      for key, value in self.__dict__.iteritems()]
8101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8102
 
8103
  def __eq__(self, other):
8104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8105
 
8106
  def __ne__(self, other):
8107
    return not (self == other)
8108
 
8109
class getAffiliateById_args:
8110
  """
8111
  Attributes:
8112
   - id
8113
  """
8114
 
8115
  thrift_spec = (
8116
    None, # 0
8117
    (1, TType.I64, 'id', None, None, ), # 1
8118
  )
8119
 
8120
  def __init__(self, id=None,):
8121
    self.id = id
8122
 
8123
  def read(self, iprot):
8124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8126
      return
8127
    iprot.readStructBegin()
8128
    while True:
8129
      (fname, ftype, fid) = iprot.readFieldBegin()
8130
      if ftype == TType.STOP:
8131
        break
8132
      if fid == 1:
8133
        if ftype == TType.I64:
8134
          self.id = iprot.readI64();
8135
        else:
8136
          iprot.skip(ftype)
8137
      else:
8138
        iprot.skip(ftype)
8139
      iprot.readFieldEnd()
8140
    iprot.readStructEnd()
8141
 
8142
  def write(self, oprot):
8143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8145
      return
8146
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8147
    if self.id is not None:
1845 vikas 8148
      oprot.writeFieldBegin('id', TType.I64, 1)
8149
      oprot.writeI64(self.id)
8150
      oprot.writeFieldEnd()
8151
    oprot.writeFieldStop()
8152
    oprot.writeStructEnd()
8153
 
3431 rajveer 8154
  def validate(self):
8155
    return
8156
 
8157
 
1845 vikas 8158
  def __repr__(self):
8159
    L = ['%s=%r' % (key, value)
8160
      for key, value in self.__dict__.iteritems()]
8161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8162
 
8163
  def __eq__(self, other):
8164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8165
 
8166
  def __ne__(self, other):
8167
    return not (self == other)
8168
 
8169
class getAffiliateById_result:
8170
  """
8171
  Attributes:
8172
   - success
8173
   - utx
8174
  """
8175
 
8176
  thrift_spec = (
8177
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8178
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8179
  )
8180
 
8181
  def __init__(self, success=None, utx=None,):
8182
    self.success = success
8183
    self.utx = utx
8184
 
8185
  def read(self, iprot):
8186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8188
      return
8189
    iprot.readStructBegin()
8190
    while True:
8191
      (fname, ftype, fid) = iprot.readFieldBegin()
8192
      if ftype == TType.STOP:
8193
        break
8194
      if fid == 0:
8195
        if ftype == TType.STRUCT:
8196
          self.success = Affiliate()
8197
          self.success.read(iprot)
8198
        else:
8199
          iprot.skip(ftype)
8200
      elif fid == 1:
8201
        if ftype == TType.STRUCT:
1996 vikas 8202
          self.utx = UserAffiliateException()
1845 vikas 8203
          self.utx.read(iprot)
8204
        else:
8205
          iprot.skip(ftype)
8206
      else:
8207
        iprot.skip(ftype)
8208
      iprot.readFieldEnd()
8209
    iprot.readStructEnd()
8210
 
8211
  def write(self, oprot):
8212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8214
      return
8215
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8216
    if self.success is not None:
1845 vikas 8217
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8218
      self.success.write(oprot)
8219
      oprot.writeFieldEnd()
3431 rajveer 8220
    if self.utx is not None:
1845 vikas 8221
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8222
      self.utx.write(oprot)
8223
      oprot.writeFieldEnd()
8224
    oprot.writeFieldStop()
8225
    oprot.writeStructEnd()
8226
 
3431 rajveer 8227
  def validate(self):
8228
    return
8229
 
8230
 
1845 vikas 8231
  def __repr__(self):
8232
    L = ['%s=%r' % (key, value)
8233
      for key, value in self.__dict__.iteritems()]
8234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8235
 
8236
  def __eq__(self, other):
8237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8238
 
8239
  def __ne__(self, other):
8240
    return not (self == other)
8241
 
8242
class getAffiliateByName_args:
8243
  """
8244
  Attributes:
8245
   - name
8246
  """
8247
 
8248
  thrift_spec = (
8249
    None, # 0
8250
    (1, TType.STRING, 'name', None, None, ), # 1
8251
  )
8252
 
8253
  def __init__(self, name=None,):
8254
    self.name = name
8255
 
8256
  def read(self, iprot):
8257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8259
      return
8260
    iprot.readStructBegin()
8261
    while True:
8262
      (fname, ftype, fid) = iprot.readFieldBegin()
8263
      if ftype == TType.STOP:
8264
        break
8265
      if fid == 1:
8266
        if ftype == TType.STRING:
8267
          self.name = iprot.readString();
8268
        else:
8269
          iprot.skip(ftype)
8270
      else:
8271
        iprot.skip(ftype)
8272
      iprot.readFieldEnd()
8273
    iprot.readStructEnd()
8274
 
8275
  def write(self, oprot):
8276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8278
      return
8279
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8280
    if self.name is not None:
1845 vikas 8281
      oprot.writeFieldBegin('name', TType.STRING, 1)
8282
      oprot.writeString(self.name)
8283
      oprot.writeFieldEnd()
8284
    oprot.writeFieldStop()
8285
    oprot.writeStructEnd()
8286
 
3431 rajveer 8287
  def validate(self):
8288
    return
8289
 
8290
 
1845 vikas 8291
  def __repr__(self):
8292
    L = ['%s=%r' % (key, value)
8293
      for key, value in self.__dict__.iteritems()]
8294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8295
 
8296
  def __eq__(self, other):
8297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8298
 
8299
  def __ne__(self, other):
8300
    return not (self == other)
8301
 
8302
class getAffiliateByName_result:
8303
  """
8304
  Attributes:
8305
   - success
8306
   - utx
8307
  """
8308
 
8309
  thrift_spec = (
8310
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8311
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8312
  )
8313
 
8314
  def __init__(self, success=None, utx=None,):
8315
    self.success = success
8316
    self.utx = utx
8317
 
8318
  def read(self, iprot):
8319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8321
      return
8322
    iprot.readStructBegin()
8323
    while True:
8324
      (fname, ftype, fid) = iprot.readFieldBegin()
8325
      if ftype == TType.STOP:
8326
        break
8327
      if fid == 0:
8328
        if ftype == TType.STRUCT:
8329
          self.success = Affiliate()
8330
          self.success.read(iprot)
8331
        else:
8332
          iprot.skip(ftype)
8333
      elif fid == 1:
8334
        if ftype == TType.STRUCT:
1996 vikas 8335
          self.utx = UserAffiliateException()
1845 vikas 8336
          self.utx.read(iprot)
8337
        else:
8338
          iprot.skip(ftype)
8339
      else:
8340
        iprot.skip(ftype)
8341
      iprot.readFieldEnd()
8342
    iprot.readStructEnd()
8343
 
8344
  def write(self, oprot):
8345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8347
      return
8348
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8349
    if self.success is not None:
1845 vikas 8350
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8351
      self.success.write(oprot)
8352
      oprot.writeFieldEnd()
3431 rajveer 8353
    if self.utx is not None:
1845 vikas 8354
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8355
      self.utx.write(oprot)
8356
      oprot.writeFieldEnd()
8357
    oprot.writeFieldStop()
8358
    oprot.writeStructEnd()
8359
 
3431 rajveer 8360
  def validate(self):
8361
    return
8362
 
8363
 
1845 vikas 8364
  def __repr__(self):
8365
    L = ['%s=%r' % (key, value)
8366
      for key, value in self.__dict__.iteritems()]
8367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8368
 
8369
  def __eq__(self, other):
8370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8371
 
8372
  def __ne__(self, other):
8373
    return not (self == other)
8374
 
1996 vikas 8375
class getTrackerById_args:
1845 vikas 8376
  """
8377
  Attributes:
8378
   - id
8379
  """
8380
 
8381
  thrift_spec = (
8382
    None, # 0
8383
    (1, TType.I64, 'id', None, None, ), # 1
8384
  )
8385
 
8386
  def __init__(self, id=None,):
8387
    self.id = id
8388
 
8389
  def read(self, iprot):
8390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8392
      return
8393
    iprot.readStructBegin()
8394
    while True:
8395
      (fname, ftype, fid) = iprot.readFieldBegin()
8396
      if ftype == TType.STOP:
8397
        break
8398
      if fid == 1:
8399
        if ftype == TType.I64:
8400
          self.id = iprot.readI64();
8401
        else:
8402
          iprot.skip(ftype)
8403
      else:
8404
        iprot.skip(ftype)
8405
      iprot.readFieldEnd()
8406
    iprot.readStructEnd()
8407
 
8408
  def write(self, oprot):
8409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8411
      return
1996 vikas 8412
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8413
    if self.id is not None:
1845 vikas 8414
      oprot.writeFieldBegin('id', TType.I64, 1)
8415
      oprot.writeI64(self.id)
8416
      oprot.writeFieldEnd()
8417
    oprot.writeFieldStop()
8418
    oprot.writeStructEnd()
8419
 
3431 rajveer 8420
  def validate(self):
8421
    return
8422
 
8423
 
1845 vikas 8424
  def __repr__(self):
8425
    L = ['%s=%r' % (key, value)
8426
      for key, value in self.__dict__.iteritems()]
8427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8428
 
8429
  def __eq__(self, other):
8430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8431
 
8432
  def __ne__(self, other):
8433
    return not (self == other)
8434
 
8435
class getTrackerById_result:
8436
  """
8437
  Attributes:
8438
   - success
8439
   - utx
8440
  """
8441
 
8442
  thrift_spec = (
8443
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8444
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8445
  )
8446
 
8447
  def __init__(self, success=None, utx=None,):
8448
    self.success = success
8449
    self.utx = utx
8450
 
8451
  def read(self, iprot):
8452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8454
      return
8455
    iprot.readStructBegin()
8456
    while True:
8457
      (fname, ftype, fid) = iprot.readFieldBegin()
8458
      if ftype == TType.STOP:
8459
        break
8460
      if fid == 0:
8461
        if ftype == TType.STRUCT:
8462
          self.success = Tracker()
8463
          self.success.read(iprot)
8464
        else:
8465
          iprot.skip(ftype)
8466
      elif fid == 1:
8467
        if ftype == TType.STRUCT:
1996 vikas 8468
          self.utx = UserAffiliateException()
1845 vikas 8469
          self.utx.read(iprot)
8470
        else:
8471
          iprot.skip(ftype)
8472
      else:
8473
        iprot.skip(ftype)
8474
      iprot.readFieldEnd()
8475
    iprot.readStructEnd()
8476
 
8477
  def write(self, oprot):
8478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8480
      return
8481
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8482
    if self.success is not None:
1845 vikas 8483
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8484
      self.success.write(oprot)
8485
      oprot.writeFieldEnd()
3431 rajveer 8486
    if self.utx is not None:
1845 vikas 8487
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8488
      self.utx.write(oprot)
8489
      oprot.writeFieldEnd()
8490
    oprot.writeFieldStop()
8491
    oprot.writeStructEnd()
8492
 
3431 rajveer 8493
  def validate(self):
8494
    return
8495
 
8496
 
1845 vikas 8497
  def __repr__(self):
8498
    L = ['%s=%r' % (key, value)
8499
      for key, value in self.__dict__.iteritems()]
8500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8501
 
8502
  def __eq__(self, other):
8503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8504
 
8505
  def __ne__(self, other):
8506
    return not (self == other)
8507
 
1996 vikas 8508
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8509
  """
8510
  Attributes:
1996 vikas 8511
   - id
1845 vikas 8512
  """
8513
 
8514
  thrift_spec = (
8515
    None, # 0
1996 vikas 8516
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8517
  )
8518
 
1996 vikas 8519
  def __init__(self, id=None,):
8520
    self.id = id
1845 vikas 8521
 
8522
  def read(self, iprot):
8523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8525
      return
8526
    iprot.readStructBegin()
8527
    while True:
8528
      (fname, ftype, fid) = iprot.readFieldBegin()
8529
      if ftype == TType.STOP:
8530
        break
8531
      if fid == 1:
8532
        if ftype == TType.I64:
1996 vikas 8533
          self.id = iprot.readI64();
1845 vikas 8534
        else:
8535
          iprot.skip(ftype)
8536
      else:
8537
        iprot.skip(ftype)
8538
      iprot.readFieldEnd()
8539
    iprot.readStructEnd()
8540
 
8541
  def write(self, oprot):
8542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8544
      return
1996 vikas 8545
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8546
    if self.id is not None:
1996 vikas 8547
      oprot.writeFieldBegin('id', TType.I64, 1)
8548
      oprot.writeI64(self.id)
1845 vikas 8549
      oprot.writeFieldEnd()
8550
    oprot.writeFieldStop()
8551
    oprot.writeStructEnd()
8552
 
3431 rajveer 8553
  def validate(self):
8554
    return
8555
 
8556
 
1845 vikas 8557
  def __repr__(self):
8558
    L = ['%s=%r' % (key, value)
8559
      for key, value in self.__dict__.iteritems()]
8560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8561
 
8562
  def __eq__(self, other):
8563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8564
 
8565
  def __ne__(self, other):
8566
    return not (self == other)
8567
 
1996 vikas 8568
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8569
  """
8570
  Attributes:
8571
   - success
8572
   - utx
8573
  """
8574
 
8575
  thrift_spec = (
1996 vikas 8576
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8577
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8578
  )
8579
 
8580
  def __init__(self, success=None, utx=None,):
8581
    self.success = success
8582
    self.utx = utx
8583
 
8584
  def read(self, iprot):
8585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8587
      return
8588
    iprot.readStructBegin()
8589
    while True:
8590
      (fname, ftype, fid) = iprot.readFieldBegin()
8591
      if ftype == TType.STOP:
8592
        break
8593
      if fid == 0:
8594
        if ftype == TType.LIST:
8595
          self.success = []
5326 rajveer 8596
          (_etype89, _size86) = iprot.readListBegin()
8597
          for _i90 in xrange(_size86):
8598
            _elem91 = Affiliate()
8599
            _elem91.read(iprot)
8600
            self.success.append(_elem91)
1845 vikas 8601
          iprot.readListEnd()
8602
        else:
8603
          iprot.skip(ftype)
8604
      elif fid == 1:
8605
        if ftype == TType.STRUCT:
1996 vikas 8606
          self.utx = UserAffiliateException()
1845 vikas 8607
          self.utx.read(iprot)
8608
        else:
8609
          iprot.skip(ftype)
8610
      else:
8611
        iprot.skip(ftype)
8612
      iprot.readFieldEnd()
8613
    iprot.readStructEnd()
8614
 
8615
  def write(self, oprot):
8616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8618
      return
1996 vikas 8619
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8620
    if self.success is not None:
1845 vikas 8621
      oprot.writeFieldBegin('success', TType.LIST, 0)
8622
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8623
      for iter92 in self.success:
8624
        iter92.write(oprot)
1845 vikas 8625
      oprot.writeListEnd()
8626
      oprot.writeFieldEnd()
3431 rajveer 8627
    if self.utx is not None:
1845 vikas 8628
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8629
      self.utx.write(oprot)
8630
      oprot.writeFieldEnd()
8631
    oprot.writeFieldStop()
8632
    oprot.writeStructEnd()
8633
 
3431 rajveer 8634
  def validate(self):
8635
    return
8636
 
8637
 
1845 vikas 8638
  def __repr__(self):
8639
    L = ['%s=%r' % (key, value)
8640
      for key, value in self.__dict__.iteritems()]
8641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8642
 
8643
  def __eq__(self, other):
8644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8645
 
8646
  def __ne__(self, other):
8647
    return not (self == other)
8648
 
8649
class addTrackLog_args:
8650
  """
8651
  Attributes:
1996 vikas 8652
   - affiliateId
1845 vikas 8653
   - userId
8654
   - event
8655
   - url
8656
   - data
1859 vikas 8657
   - addedOn
1845 vikas 8658
  """
8659
 
8660
  thrift_spec = (
8661
    None, # 0
1996 vikas 8662
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8663
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8664
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8665
    (4, TType.STRING, 'url', None, None, ), # 4
8666
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8667
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8668
  )
8669
 
1996 vikas 8670
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8671
    self.affiliateId = affiliateId
1845 vikas 8672
    self.userId = userId
8673
    self.event = event
8674
    self.url = url
8675
    self.data = data
1859 vikas 8676
    self.addedOn = addedOn
1845 vikas 8677
 
8678
  def read(self, iprot):
8679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8681
      return
8682
    iprot.readStructBegin()
8683
    while True:
8684
      (fname, ftype, fid) = iprot.readFieldBegin()
8685
      if ftype == TType.STOP:
8686
        break
8687
      if fid == 1:
8688
        if ftype == TType.I64:
1996 vikas 8689
          self.affiliateId = iprot.readI64();
1845 vikas 8690
        else:
8691
          iprot.skip(ftype)
8692
      elif fid == 2:
8693
        if ftype == TType.I64:
8694
          self.userId = iprot.readI64();
8695
        else:
8696
          iprot.skip(ftype)
8697
      elif fid == 3:
3378 vikas 8698
        if ftype == TType.I32:
8699
          self.event = iprot.readI32();
1845 vikas 8700
        else:
8701
          iprot.skip(ftype)
8702
      elif fid == 4:
8703
        if ftype == TType.STRING:
8704
          self.url = iprot.readString();
8705
        else:
8706
          iprot.skip(ftype)
8707
      elif fid == 5:
8708
        if ftype == TType.STRING:
8709
          self.data = iprot.readString();
8710
        else:
8711
          iprot.skip(ftype)
1859 vikas 8712
      elif fid == 6:
8713
        if ftype == TType.I64:
8714
          self.addedOn = iprot.readI64();
8715
        else:
8716
          iprot.skip(ftype)
1845 vikas 8717
      else:
8718
        iprot.skip(ftype)
8719
      iprot.readFieldEnd()
8720
    iprot.readStructEnd()
8721
 
8722
  def write(self, oprot):
8723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8725
      return
8726
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8727
    if self.affiliateId is not None:
1996 vikas 8728
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8729
      oprot.writeI64(self.affiliateId)
1845 vikas 8730
      oprot.writeFieldEnd()
3431 rajveer 8731
    if self.userId is not None:
1845 vikas 8732
      oprot.writeFieldBegin('userId', TType.I64, 2)
8733
      oprot.writeI64(self.userId)
8734
      oprot.writeFieldEnd()
3431 rajveer 8735
    if self.event is not None:
3378 vikas 8736
      oprot.writeFieldBegin('event', TType.I32, 3)
8737
      oprot.writeI32(self.event)
1845 vikas 8738
      oprot.writeFieldEnd()
3431 rajveer 8739
    if self.url is not None:
1845 vikas 8740
      oprot.writeFieldBegin('url', TType.STRING, 4)
8741
      oprot.writeString(self.url)
8742
      oprot.writeFieldEnd()
3431 rajveer 8743
    if self.data is not None:
1845 vikas 8744
      oprot.writeFieldBegin('data', TType.STRING, 5)
8745
      oprot.writeString(self.data)
8746
      oprot.writeFieldEnd()
3431 rajveer 8747
    if self.addedOn is not None:
1859 vikas 8748
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8749
      oprot.writeI64(self.addedOn)
8750
      oprot.writeFieldEnd()
1845 vikas 8751
    oprot.writeFieldStop()
8752
    oprot.writeStructEnd()
8753
 
3431 rajveer 8754
  def validate(self):
8755
    return
8756
 
8757
 
1845 vikas 8758
  def __repr__(self):
8759
    L = ['%s=%r' % (key, value)
8760
      for key, value in self.__dict__.iteritems()]
8761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8762
 
8763
  def __eq__(self, other):
8764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8765
 
8766
  def __ne__(self, other):
8767
    return not (self == other)
8768
 
8769
class addTrackLog_result:
8770
  """
8771
  Attributes:
8772
   - success
8773
   - utx
8774
  """
8775
 
8776
  thrift_spec = (
8777
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8778
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8779
  )
8780
 
8781
  def __init__(self, success=None, utx=None,):
8782
    self.success = success
8783
    self.utx = utx
8784
 
8785
  def read(self, iprot):
8786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8788
      return
8789
    iprot.readStructBegin()
8790
    while True:
8791
      (fname, ftype, fid) = iprot.readFieldBegin()
8792
      if ftype == TType.STOP:
8793
        break
8794
      if fid == 0:
8795
        if ftype == TType.I64:
8796
          self.success = iprot.readI64();
8797
        else:
8798
          iprot.skip(ftype)
8799
      elif fid == 1:
8800
        if ftype == TType.STRUCT:
1996 vikas 8801
          self.utx = UserAffiliateException()
1845 vikas 8802
          self.utx.read(iprot)
8803
        else:
8804
          iprot.skip(ftype)
8805
      else:
8806
        iprot.skip(ftype)
8807
      iprot.readFieldEnd()
8808
    iprot.readStructEnd()
8809
 
8810
  def write(self, oprot):
8811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8813
      return
8814
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8815
    if self.success is not None:
1845 vikas 8816
      oprot.writeFieldBegin('success', TType.I64, 0)
8817
      oprot.writeI64(self.success)
8818
      oprot.writeFieldEnd()
3431 rajveer 8819
    if self.utx is not None:
1845 vikas 8820
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8821
      self.utx.write(oprot)
8822
      oprot.writeFieldEnd()
8823
    oprot.writeFieldStop()
8824
    oprot.writeStructEnd()
8825
 
3431 rajveer 8826
  def validate(self):
8827
    return
8828
 
8829
 
1845 vikas 8830
  def __repr__(self):
8831
    L = ['%s=%r' % (key, value)
8832
      for key, value in self.__dict__.iteritems()]
8833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8834
 
8835
  def __eq__(self, other):
8836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8837
 
8838
  def __ne__(self, other):
8839
    return not (self == other)
8840
 
8841
class getTrackLogById_args:
8842
  """
8843
  Attributes:
8844
   - id
8845
  """
8846
 
8847
  thrift_spec = (
8848
    None, # 0
8849
    (1, TType.I64, 'id', None, None, ), # 1
8850
  )
8851
 
8852
  def __init__(self, id=None,):
8853
    self.id = id
8854
 
8855
  def read(self, iprot):
8856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8858
      return
8859
    iprot.readStructBegin()
8860
    while True:
8861
      (fname, ftype, fid) = iprot.readFieldBegin()
8862
      if ftype == TType.STOP:
8863
        break
8864
      if fid == 1:
8865
        if ftype == TType.I64:
8866
          self.id = iprot.readI64();
8867
        else:
8868
          iprot.skip(ftype)
8869
      else:
8870
        iprot.skip(ftype)
8871
      iprot.readFieldEnd()
8872
    iprot.readStructEnd()
8873
 
8874
  def write(self, oprot):
8875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8877
      return
8878
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8879
    if self.id is not None:
1845 vikas 8880
      oprot.writeFieldBegin('id', TType.I64, 1)
8881
      oprot.writeI64(self.id)
8882
      oprot.writeFieldEnd()
8883
    oprot.writeFieldStop()
8884
    oprot.writeStructEnd()
8885
 
3431 rajveer 8886
  def validate(self):
8887
    return
8888
 
8889
 
1845 vikas 8890
  def __repr__(self):
8891
    L = ['%s=%r' % (key, value)
8892
      for key, value in self.__dict__.iteritems()]
8893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8894
 
8895
  def __eq__(self, other):
8896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8897
 
8898
  def __ne__(self, other):
8899
    return not (self == other)
8900
 
8901
class getTrackLogById_result:
8902
  """
8903
  Attributes:
8904
   - success
8905
   - utx
8906
  """
8907
 
8908
  thrift_spec = (
8909
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8910
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8911
  )
8912
 
8913
  def __init__(self, success=None, utx=None,):
8914
    self.success = success
8915
    self.utx = utx
8916
 
8917
  def read(self, iprot):
8918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8920
      return
8921
    iprot.readStructBegin()
8922
    while True:
8923
      (fname, ftype, fid) = iprot.readFieldBegin()
8924
      if ftype == TType.STOP:
8925
        break
8926
      if fid == 0:
8927
        if ftype == TType.STRUCT:
8928
          self.success = TrackLog()
8929
          self.success.read(iprot)
8930
        else:
8931
          iprot.skip(ftype)
8932
      elif fid == 1:
8933
        if ftype == TType.STRUCT:
1996 vikas 8934
          self.utx = UserAffiliateException()
1845 vikas 8935
          self.utx.read(iprot)
8936
        else:
8937
          iprot.skip(ftype)
8938
      else:
8939
        iprot.skip(ftype)
8940
      iprot.readFieldEnd()
8941
    iprot.readStructEnd()
8942
 
8943
  def write(self, oprot):
8944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8946
      return
8947
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8948
    if self.success is not None:
1845 vikas 8949
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8950
      self.success.write(oprot)
8951
      oprot.writeFieldEnd()
3431 rajveer 8952
    if self.utx is not None:
1845 vikas 8953
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8954
      self.utx.write(oprot)
8955
      oprot.writeFieldEnd()
8956
    oprot.writeFieldStop()
8957
    oprot.writeStructEnd()
8958
 
3431 rajveer 8959
  def validate(self):
8960
    return
8961
 
8962
 
1845 vikas 8963
  def __repr__(self):
8964
    L = ['%s=%r' % (key, value)
8965
      for key, value in self.__dict__.iteritems()]
8966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8967
 
8968
  def __eq__(self, other):
8969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8970
 
8971
  def __ne__(self, other):
8972
    return not (self == other)
8973
 
1996 vikas 8974
class getTrackLogsByAffiliate_args:
1845 vikas 8975
  """
8976
  Attributes:
1996 vikas 8977
   - affiliateId
3293 vikas 8978
   - startDate
8979
   - endDate
1845 vikas 8980
  """
8981
 
8982
  thrift_spec = (
8983
    None, # 0
1996 vikas 8984
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8985
    (2, TType.I64, 'startDate', None, None, ), # 2
8986
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8987
  )
8988
 
3293 vikas 8989
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 8990
    self.affiliateId = affiliateId
3293 vikas 8991
    self.startDate = startDate
8992
    self.endDate = endDate
1845 vikas 8993
 
8994
  def read(self, iprot):
8995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8997
      return
8998
    iprot.readStructBegin()
8999
    while True:
9000
      (fname, ftype, fid) = iprot.readFieldBegin()
9001
      if ftype == TType.STOP:
9002
        break
9003
      if fid == 1:
9004
        if ftype == TType.I64:
1996 vikas 9005
          self.affiliateId = iprot.readI64();
1845 vikas 9006
        else:
9007
          iprot.skip(ftype)
3293 vikas 9008
      elif fid == 2:
9009
        if ftype == TType.I64:
9010
          self.startDate = iprot.readI64();
9011
        else:
9012
          iprot.skip(ftype)
9013
      elif fid == 3:
9014
        if ftype == TType.I64:
9015
          self.endDate = iprot.readI64();
9016
        else:
9017
          iprot.skip(ftype)
1845 vikas 9018
      else:
9019
        iprot.skip(ftype)
9020
      iprot.readFieldEnd()
9021
    iprot.readStructEnd()
9022
 
9023
  def write(self, oprot):
9024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9026
      return
1996 vikas 9027
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9028
    if self.affiliateId is not None:
1996 vikas 9029
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9030
      oprot.writeI64(self.affiliateId)
1845 vikas 9031
      oprot.writeFieldEnd()
3431 rajveer 9032
    if self.startDate is not None:
3293 vikas 9033
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9034
      oprot.writeI64(self.startDate)
9035
      oprot.writeFieldEnd()
3431 rajveer 9036
    if self.endDate is not None:
3293 vikas 9037
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9038
      oprot.writeI64(self.endDate)
9039
      oprot.writeFieldEnd()
1845 vikas 9040
    oprot.writeFieldStop()
9041
    oprot.writeStructEnd()
9042
 
3431 rajveer 9043
  def validate(self):
9044
    return
9045
 
9046
 
1845 vikas 9047
  def __repr__(self):
9048
    L = ['%s=%r' % (key, value)
9049
      for key, value in self.__dict__.iteritems()]
9050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9051
 
9052
  def __eq__(self, other):
9053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9054
 
9055
  def __ne__(self, other):
9056
    return not (self == other)
9057
 
1996 vikas 9058
class getTrackLogsByAffiliate_result:
1845 vikas 9059
  """
9060
  Attributes:
9061
   - success
9062
   - utx
9063
  """
9064
 
9065
  thrift_spec = (
9066
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9067
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9068
  )
9069
 
9070
  def __init__(self, success=None, utx=None,):
9071
    self.success = success
9072
    self.utx = utx
9073
 
9074
  def read(self, iprot):
9075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9077
      return
9078
    iprot.readStructBegin()
9079
    while True:
9080
      (fname, ftype, fid) = iprot.readFieldBegin()
9081
      if ftype == TType.STOP:
9082
        break
9083
      if fid == 0:
9084
        if ftype == TType.LIST:
9085
          self.success = []
5326 rajveer 9086
          (_etype96, _size93) = iprot.readListBegin()
9087
          for _i97 in xrange(_size93):
9088
            _elem98 = TrackLog()
9089
            _elem98.read(iprot)
9090
            self.success.append(_elem98)
1845 vikas 9091
          iprot.readListEnd()
9092
        else:
9093
          iprot.skip(ftype)
9094
      elif fid == 1:
9095
        if ftype == TType.STRUCT:
1996 vikas 9096
          self.utx = UserAffiliateException()
1845 vikas 9097
          self.utx.read(iprot)
9098
        else:
9099
          iprot.skip(ftype)
9100
      else:
9101
        iprot.skip(ftype)
9102
      iprot.readFieldEnd()
9103
    iprot.readStructEnd()
9104
 
9105
  def write(self, oprot):
9106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9108
      return
1996 vikas 9109
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9110
    if self.success is not None:
1845 vikas 9111
      oprot.writeFieldBegin('success', TType.LIST, 0)
9112
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9113
      for iter99 in self.success:
9114
        iter99.write(oprot)
1845 vikas 9115
      oprot.writeListEnd()
9116
      oprot.writeFieldEnd()
3431 rajveer 9117
    if self.utx is not None:
1845 vikas 9118
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9119
      self.utx.write(oprot)
9120
      oprot.writeFieldEnd()
9121
    oprot.writeFieldStop()
9122
    oprot.writeStructEnd()
9123
 
3431 rajveer 9124
  def validate(self):
9125
    return
9126
 
9127
 
1845 vikas 9128
  def __repr__(self):
9129
    L = ['%s=%r' % (key, value)
9130
      for key, value in self.__dict__.iteritems()]
9131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9132
 
9133
  def __eq__(self, other):
9134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9135
 
9136
  def __ne__(self, other):
9137
    return not (self == other)
9138
 
9139
class getTrackLogsByUser_args:
9140
  """
9141
  Attributes:
9142
   - userId
9143
  """
9144
 
9145
  thrift_spec = (
9146
    None, # 0
9147
    (1, TType.I64, 'userId', None, None, ), # 1
9148
  )
9149
 
9150
  def __init__(self, userId=None,):
9151
    self.userId = userId
9152
 
9153
  def read(self, iprot):
9154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9156
      return
9157
    iprot.readStructBegin()
9158
    while True:
9159
      (fname, ftype, fid) = iprot.readFieldBegin()
9160
      if ftype == TType.STOP:
9161
        break
9162
      if fid == 1:
9163
        if ftype == TType.I64:
9164
          self.userId = iprot.readI64();
9165
        else:
9166
          iprot.skip(ftype)
9167
      else:
9168
        iprot.skip(ftype)
9169
      iprot.readFieldEnd()
9170
    iprot.readStructEnd()
9171
 
9172
  def write(self, oprot):
9173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9175
      return
9176
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9177
    if self.userId is not None:
1845 vikas 9178
      oprot.writeFieldBegin('userId', TType.I64, 1)
9179
      oprot.writeI64(self.userId)
9180
      oprot.writeFieldEnd()
9181
    oprot.writeFieldStop()
9182
    oprot.writeStructEnd()
9183
 
3431 rajveer 9184
  def validate(self):
9185
    return
9186
 
9187
 
1845 vikas 9188
  def __repr__(self):
9189
    L = ['%s=%r' % (key, value)
9190
      for key, value in self.__dict__.iteritems()]
9191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9192
 
9193
  def __eq__(self, other):
9194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9195
 
9196
  def __ne__(self, other):
9197
    return not (self == other)
9198
 
9199
class getTrackLogsByUser_result:
9200
  """
9201
  Attributes:
9202
   - success
9203
   - utx
9204
  """
9205
 
9206
  thrift_spec = (
9207
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9208
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9209
  )
9210
 
9211
  def __init__(self, success=None, utx=None,):
9212
    self.success = success
9213
    self.utx = utx
9214
 
9215
  def read(self, iprot):
9216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9218
      return
9219
    iprot.readStructBegin()
9220
    while True:
9221
      (fname, ftype, fid) = iprot.readFieldBegin()
9222
      if ftype == TType.STOP:
9223
        break
9224
      if fid == 0:
9225
        if ftype == TType.LIST:
9226
          self.success = []
5326 rajveer 9227
          (_etype103, _size100) = iprot.readListBegin()
9228
          for _i104 in xrange(_size100):
9229
            _elem105 = TrackLog()
9230
            _elem105.read(iprot)
9231
            self.success.append(_elem105)
1845 vikas 9232
          iprot.readListEnd()
9233
        else:
9234
          iprot.skip(ftype)
9235
      elif fid == 1:
9236
        if ftype == TType.STRUCT:
1996 vikas 9237
          self.utx = UserAffiliateException()
1845 vikas 9238
          self.utx.read(iprot)
9239
        else:
9240
          iprot.skip(ftype)
9241
      else:
9242
        iprot.skip(ftype)
9243
      iprot.readFieldEnd()
9244
    iprot.readStructEnd()
9245
 
9246
  def write(self, oprot):
9247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9249
      return
9250
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9251
    if self.success is not None:
1845 vikas 9252
      oprot.writeFieldBegin('success', TType.LIST, 0)
9253
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9254
      for iter106 in self.success:
9255
        iter106.write(oprot)
1845 vikas 9256
      oprot.writeListEnd()
9257
      oprot.writeFieldEnd()
3431 rajveer 9258
    if self.utx is not None:
1845 vikas 9259
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9260
      self.utx.write(oprot)
9261
      oprot.writeFieldEnd()
9262
    oprot.writeFieldStop()
9263
    oprot.writeStructEnd()
9264
 
3431 rajveer 9265
  def validate(self):
9266
    return
9267
 
9268
 
1845 vikas 9269
  def __repr__(self):
9270
    L = ['%s=%r' % (key, value)
9271
      for key, value in self.__dict__.iteritems()]
9272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9273
 
9274
  def __eq__(self, other):
9275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9276
 
9277
  def __ne__(self, other):
9278
    return not (self == other)
9279
 
9280
class getTrackLogs_args:
9281
  """
9282
  Attributes:
9283
   - userId
9284
   - event
9285
   - url
9286
  """
9287
 
9288
  thrift_spec = (
9289
    None, # 0
1996 vikas 9290
    (1, TType.I64, 'userId', None, None, ), # 1
9291
    (2, TType.STRING, 'event', None, None, ), # 2
9292
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9293
  )
9294
 
1996 vikas 9295
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9296
    self.userId = userId
9297
    self.event = event
9298
    self.url = url
9299
 
9300
  def read(self, iprot):
9301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9303
      return
9304
    iprot.readStructBegin()
9305
    while True:
9306
      (fname, ftype, fid) = iprot.readFieldBegin()
9307
      if ftype == TType.STOP:
9308
        break
9309
      if fid == 1:
9310
        if ftype == TType.I64:
1996 vikas 9311
          self.userId = iprot.readI64();
1845 vikas 9312
        else:
9313
          iprot.skip(ftype)
9314
      elif fid == 2:
9315
        if ftype == TType.STRING:
9316
          self.event = iprot.readString();
9317
        else:
9318
          iprot.skip(ftype)
1996 vikas 9319
      elif fid == 3:
1845 vikas 9320
        if ftype == TType.STRING:
9321
          self.url = iprot.readString();
9322
        else:
9323
          iprot.skip(ftype)
9324
      else:
9325
        iprot.skip(ftype)
9326
      iprot.readFieldEnd()
9327
    iprot.readStructEnd()
9328
 
9329
  def write(self, oprot):
9330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9332
      return
9333
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9334
    if self.userId is not None:
1996 vikas 9335
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9336
      oprot.writeI64(self.userId)
9337
      oprot.writeFieldEnd()
3431 rajveer 9338
    if self.event is not None:
1996 vikas 9339
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9340
      oprot.writeString(self.event)
9341
      oprot.writeFieldEnd()
3431 rajveer 9342
    if self.url is not None:
1996 vikas 9343
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9344
      oprot.writeString(self.url)
9345
      oprot.writeFieldEnd()
9346
    oprot.writeFieldStop()
9347
    oprot.writeStructEnd()
9348
 
3431 rajveer 9349
  def validate(self):
9350
    return
9351
 
9352
 
1845 vikas 9353
  def __repr__(self):
9354
    L = ['%s=%r' % (key, value)
9355
      for key, value in self.__dict__.iteritems()]
9356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9357
 
9358
  def __eq__(self, other):
9359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9360
 
9361
  def __ne__(self, other):
9362
    return not (self == other)
9363
 
9364
class getTrackLogs_result:
9365
  """
9366
  Attributes:
9367
   - success
9368
   - utx
9369
  """
9370
 
9371
  thrift_spec = (
9372
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9373
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9374
  )
9375
 
9376
  def __init__(self, success=None, utx=None,):
9377
    self.success = success
9378
    self.utx = utx
9379
 
9380
  def read(self, iprot):
9381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9383
      return
9384
    iprot.readStructBegin()
9385
    while True:
9386
      (fname, ftype, fid) = iprot.readFieldBegin()
9387
      if ftype == TType.STOP:
9388
        break
9389
      if fid == 0:
9390
        if ftype == TType.LIST:
9391
          self.success = []
5326 rajveer 9392
          (_etype110, _size107) = iprot.readListBegin()
9393
          for _i111 in xrange(_size107):
9394
            _elem112 = TrackLog()
9395
            _elem112.read(iprot)
9396
            self.success.append(_elem112)
1845 vikas 9397
          iprot.readListEnd()
9398
        else:
9399
          iprot.skip(ftype)
9400
      elif fid == 1:
9401
        if ftype == TType.STRUCT:
1996 vikas 9402
          self.utx = UserAffiliateException()
1845 vikas 9403
          self.utx.read(iprot)
9404
        else:
9405
          iprot.skip(ftype)
9406
      else:
9407
        iprot.skip(ftype)
9408
      iprot.readFieldEnd()
9409
    iprot.readStructEnd()
9410
 
9411
  def write(self, oprot):
9412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9414
      return
9415
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9416
    if self.success is not None:
1845 vikas 9417
      oprot.writeFieldBegin('success', TType.LIST, 0)
9418
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9419
      for iter113 in self.success:
9420
        iter113.write(oprot)
1845 vikas 9421
      oprot.writeListEnd()
9422
      oprot.writeFieldEnd()
3431 rajveer 9423
    if self.utx is not None:
1845 vikas 9424
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9425
      self.utx.write(oprot)
9426
      oprot.writeFieldEnd()
9427
    oprot.writeFieldStop()
9428
    oprot.writeStructEnd()
9429
 
3431 rajveer 9430
  def validate(self):
9431
    return
9432
 
9433
 
1845 vikas 9434
  def __repr__(self):
9435
    L = ['%s=%r' % (key, value)
9436
      for key, value in self.__dict__.iteritems()]
9437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9438
 
9439
  def __eq__(self, other):
9440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9441
 
9442
  def __ne__(self, other):
9443
    return not (self == other)
9444
 
559 chandransh 9445
class getCurrentCart_args:
94 ashish 9446
  """
9447
  Attributes:
559 chandransh 9448
   - userId
9449
  """
9450
 
9451
  thrift_spec = (
9452
    None, # 0
9453
    (1, TType.I64, 'userId', None, None, ), # 1
9454
  )
9455
 
9456
  def __init__(self, userId=None,):
9457
    self.userId = userId
9458
 
9459
  def read(self, iprot):
9460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9462
      return
9463
    iprot.readStructBegin()
9464
    while True:
9465
      (fname, ftype, fid) = iprot.readFieldBegin()
9466
      if ftype == TType.STOP:
9467
        break
9468
      if fid == 1:
9469
        if ftype == TType.I64:
9470
          self.userId = iprot.readI64();
9471
        else:
9472
          iprot.skip(ftype)
9473
      else:
9474
        iprot.skip(ftype)
9475
      iprot.readFieldEnd()
9476
    iprot.readStructEnd()
9477
 
9478
  def write(self, oprot):
9479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9481
      return
9482
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9483
    if self.userId is not None:
559 chandransh 9484
      oprot.writeFieldBegin('userId', TType.I64, 1)
9485
      oprot.writeI64(self.userId)
9486
      oprot.writeFieldEnd()
9487
    oprot.writeFieldStop()
9488
    oprot.writeStructEnd()
9489
 
3431 rajveer 9490
  def validate(self):
9491
    return
9492
 
9493
 
559 chandransh 9494
  def __repr__(self):
9495
    L = ['%s=%r' % (key, value)
9496
      for key, value in self.__dict__.iteritems()]
9497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9498
 
9499
  def __eq__(self, other):
9500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9501
 
9502
  def __ne__(self, other):
9503
    return not (self == other)
9504
 
9505
class getCurrentCart_result:
9506
  """
9507
  Attributes:
94 ashish 9508
   - success
559 chandransh 9509
   - scx
94 ashish 9510
  """
9511
 
9512
  thrift_spec = (
559 chandransh 9513
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9514
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9515
  )
9516
 
559 chandransh 9517
  def __init__(self, success=None, scx=None,):
94 ashish 9518
    self.success = success
559 chandransh 9519
    self.scx = scx
94 ashish 9520
 
9521
  def read(self, iprot):
9522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9524
      return
9525
    iprot.readStructBegin()
9526
    while True:
9527
      (fname, ftype, fid) = iprot.readFieldBegin()
9528
      if ftype == TType.STOP:
9529
        break
9530
      if fid == 0:
559 chandransh 9531
        if ftype == TType.STRUCT:
9532
          self.success = Cart()
9533
          self.success.read(iprot)
94 ashish 9534
        else:
9535
          iprot.skip(ftype)
9536
      elif fid == 1:
9537
        if ftype == TType.STRUCT:
559 chandransh 9538
          self.scx = ShoppingCartException()
9539
          self.scx.read(iprot)
94 ashish 9540
        else:
9541
          iprot.skip(ftype)
9542
      else:
9543
        iprot.skip(ftype)
9544
      iprot.readFieldEnd()
9545
    iprot.readStructEnd()
9546
 
9547
  def write(self, oprot):
9548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9550
      return
559 chandransh 9551
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9552
    if self.success is not None:
559 chandransh 9553
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9554
      self.success.write(oprot)
94 ashish 9555
      oprot.writeFieldEnd()
3431 rajveer 9556
    if self.scx is not None:
559 chandransh 9557
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9558
      self.scx.write(oprot)
94 ashish 9559
      oprot.writeFieldEnd()
9560
    oprot.writeFieldStop()
9561
    oprot.writeStructEnd()
9562
 
3431 rajveer 9563
  def validate(self):
9564
    return
9565
 
9566
 
94 ashish 9567
  def __repr__(self):
9568
    L = ['%s=%r' % (key, value)
9569
      for key, value in self.__dict__.iteritems()]
9570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9571
 
9572
  def __eq__(self, other):
9573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9574
 
9575
  def __ne__(self, other):
9576
    return not (self == other)
9577
 
559 chandransh 9578
class getCart_args:
504 rajveer 9579
  """
9580
  Attributes:
559 chandransh 9581
   - cartId
504 rajveer 9582
  """
9583
 
9584
  thrift_spec = (
9585
    None, # 0
559 chandransh 9586
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9587
  )
9588
 
559 chandransh 9589
  def __init__(self, cartId=None,):
9590
    self.cartId = cartId
504 rajveer 9591
 
9592
  def read(self, iprot):
9593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9595
      return
9596
    iprot.readStructBegin()
9597
    while True:
9598
      (fname, ftype, fid) = iprot.readFieldBegin()
9599
      if ftype == TType.STOP:
9600
        break
9601
      if fid == 1:
9602
        if ftype == TType.I64:
559 chandransh 9603
          self.cartId = iprot.readI64();
504 rajveer 9604
        else:
9605
          iprot.skip(ftype)
9606
      else:
9607
        iprot.skip(ftype)
9608
      iprot.readFieldEnd()
9609
    iprot.readStructEnd()
9610
 
9611
  def write(self, oprot):
9612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9614
      return
559 chandransh 9615
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9616
    if self.cartId is not None:
559 chandransh 9617
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9618
      oprot.writeI64(self.cartId)
504 rajveer 9619
      oprot.writeFieldEnd()
9620
    oprot.writeFieldStop()
9621
    oprot.writeStructEnd()
9622
 
3431 rajveer 9623
  def validate(self):
9624
    return
9625
 
9626
 
504 rajveer 9627
  def __repr__(self):
9628
    L = ['%s=%r' % (key, value)
9629
      for key, value in self.__dict__.iteritems()]
9630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9631
 
9632
  def __eq__(self, other):
9633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9634
 
9635
  def __ne__(self, other):
9636
    return not (self == other)
9637
 
559 chandransh 9638
class getCart_result:
504 rajveer 9639
  """
9640
  Attributes:
9641
   - success
559 chandransh 9642
   - scx
504 rajveer 9643
  """
9644
 
9645
  thrift_spec = (
559 chandransh 9646
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9647
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9648
  )
9649
 
559 chandransh 9650
  def __init__(self, success=None, scx=None,):
504 rajveer 9651
    self.success = success
559 chandransh 9652
    self.scx = scx
504 rajveer 9653
 
9654
  def read(self, iprot):
9655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9657
      return
9658
    iprot.readStructBegin()
9659
    while True:
9660
      (fname, ftype, fid) = iprot.readFieldBegin()
9661
      if ftype == TType.STOP:
9662
        break
9663
      if fid == 0:
559 chandransh 9664
        if ftype == TType.STRUCT:
9665
          self.success = Cart()
9666
          self.success.read(iprot)
504 rajveer 9667
        else:
9668
          iprot.skip(ftype)
9669
      elif fid == 1:
9670
        if ftype == TType.STRUCT:
559 chandransh 9671
          self.scx = ShoppingCartException()
9672
          self.scx.read(iprot)
504 rajveer 9673
        else:
9674
          iprot.skip(ftype)
9675
      else:
9676
        iprot.skip(ftype)
9677
      iprot.readFieldEnd()
9678
    iprot.readStructEnd()
9679
 
9680
  def write(self, oprot):
9681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9683
      return
559 chandransh 9684
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9685
    if self.success is not None:
559 chandransh 9686
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9687
      self.success.write(oprot)
504 rajveer 9688
      oprot.writeFieldEnd()
3431 rajveer 9689
    if self.scx is not None:
559 chandransh 9690
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9691
      self.scx.write(oprot)
504 rajveer 9692
      oprot.writeFieldEnd()
9693
    oprot.writeFieldStop()
9694
    oprot.writeStructEnd()
9695
 
3431 rajveer 9696
  def validate(self):
9697
    return
9698
 
9699
 
504 rajveer 9700
  def __repr__(self):
9701
    L = ['%s=%r' % (key, value)
9702
      for key, value in self.__dict__.iteritems()]
9703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9704
 
9705
  def __eq__(self, other):
9706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9707
 
9708
  def __ne__(self, other):
9709
    return not (self == other)
9710
 
559 chandransh 9711
class getCartsByTime_args:
9712
  """
9713
  Attributes:
9714
   - from_time
9715
   - to_time
9716
   - status
9717
  """
9718
 
9719
  thrift_spec = (
9720
    None, # 0
9721
    (1, TType.I64, 'from_time', None, None, ), # 1
9722
    (2, TType.I64, 'to_time', None, None, ), # 2
9723
    (3, TType.I32, 'status', None, None, ), # 3
9724
  )
9725
 
9726
  def __init__(self, from_time=None, to_time=None, status=None,):
9727
    self.from_time = from_time
9728
    self.to_time = to_time
9729
    self.status = status
9730
 
9731
  def read(self, iprot):
9732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9734
      return
9735
    iprot.readStructBegin()
9736
    while True:
9737
      (fname, ftype, fid) = iprot.readFieldBegin()
9738
      if ftype == TType.STOP:
9739
        break
9740
      if fid == 1:
94 ashish 9741
        if ftype == TType.I64:
559 chandransh 9742
          self.from_time = iprot.readI64();
94 ashish 9743
        else:
9744
          iprot.skip(ftype)
122 ashish 9745
      elif fid == 2:
559 chandransh 9746
        if ftype == TType.I64:
9747
          self.to_time = iprot.readI64();
122 ashish 9748
        else:
9749
          iprot.skip(ftype)
559 chandransh 9750
      elif fid == 3:
9751
        if ftype == TType.I32:
9752
          self.status = iprot.readI32();
9753
        else:
9754
          iprot.skip(ftype)
94 ashish 9755
      else:
9756
        iprot.skip(ftype)
9757
      iprot.readFieldEnd()
9758
    iprot.readStructEnd()
9759
 
9760
  def write(self, oprot):
9761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9763
      return
559 chandransh 9764
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9765
    if self.from_time is not None:
559 chandransh 9766
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9767
      oprot.writeI64(self.from_time)
94 ashish 9768
      oprot.writeFieldEnd()
3431 rajveer 9769
    if self.to_time is not None:
559 chandransh 9770
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9771
      oprot.writeI64(self.to_time)
122 ashish 9772
      oprot.writeFieldEnd()
3431 rajveer 9773
    if self.status is not None:
559 chandransh 9774
      oprot.writeFieldBegin('status', TType.I32, 3)
9775
      oprot.writeI32(self.status)
9776
      oprot.writeFieldEnd()
94 ashish 9777
    oprot.writeFieldStop()
9778
    oprot.writeStructEnd()
9779
 
3431 rajveer 9780
  def validate(self):
9781
    return
9782
 
9783
 
94 ashish 9784
  def __repr__(self):
9785
    L = ['%s=%r' % (key, value)
9786
      for key, value in self.__dict__.iteritems()]
9787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9788
 
9789
  def __eq__(self, other):
9790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9791
 
9792
  def __ne__(self, other):
9793
    return not (self == other)
9794
 
559 chandransh 9795
class getCartsByTime_result:
94 ashish 9796
  """
9797
  Attributes:
9798
   - success
559 chandransh 9799
   - scx
94 ashish 9800
  """
9801
 
9802
  thrift_spec = (
559 chandransh 9803
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9804
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9805
  )
9806
 
559 chandransh 9807
  def __init__(self, success=None, scx=None,):
94 ashish 9808
    self.success = success
559 chandransh 9809
    self.scx = scx
94 ashish 9810
 
9811
  def read(self, iprot):
9812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9814
      return
9815
    iprot.readStructBegin()
9816
    while True:
9817
      (fname, ftype, fid) = iprot.readFieldBegin()
9818
      if ftype == TType.STOP:
9819
        break
9820
      if fid == 0:
559 chandransh 9821
        if ftype == TType.LIST:
9822
          self.success = []
5326 rajveer 9823
          (_etype117, _size114) = iprot.readListBegin()
9824
          for _i118 in xrange(_size114):
9825
            _elem119 = Cart()
9826
            _elem119.read(iprot)
9827
            self.success.append(_elem119)
559 chandransh 9828
          iprot.readListEnd()
94 ashish 9829
        else:
9830
          iprot.skip(ftype)
9831
      elif fid == 1:
9832
        if ftype == TType.STRUCT:
559 chandransh 9833
          self.scx = ShoppingCartException()
9834
          self.scx.read(iprot)
94 ashish 9835
        else:
9836
          iprot.skip(ftype)
9837
      else:
9838
        iprot.skip(ftype)
9839
      iprot.readFieldEnd()
9840
    iprot.readStructEnd()
9841
 
9842
  def write(self, oprot):
9843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9845
      return
559 chandransh 9846
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9847
    if self.success is not None:
559 chandransh 9848
      oprot.writeFieldBegin('success', TType.LIST, 0)
9849
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9850
      for iter120 in self.success:
9851
        iter120.write(oprot)
559 chandransh 9852
      oprot.writeListEnd()
94 ashish 9853
      oprot.writeFieldEnd()
3431 rajveer 9854
    if self.scx is not None:
559 chandransh 9855
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9856
      self.scx.write(oprot)
94 ashish 9857
      oprot.writeFieldEnd()
9858
    oprot.writeFieldStop()
9859
    oprot.writeStructEnd()
9860
 
3431 rajveer 9861
  def validate(self):
9862
    return
9863
 
9864
 
94 ashish 9865
  def __repr__(self):
9866
    L = ['%s=%r' % (key, value)
9867
      for key, value in self.__dict__.iteritems()]
9868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9869
 
9870
  def __eq__(self, other):
9871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9872
 
9873
  def __ne__(self, other):
9874
    return not (self == other)
9875
 
559 chandransh 9876
class addItemToCart_args:
9877
  """
9878
  Attributes:
9879
   - cartId
9880
   - itemId
9881
   - quantity
3557 rajveer 9882
   - sourceId
559 chandransh 9883
  """
9884
 
9885
  thrift_spec = (
9886
    None, # 0
9887
    (1, TType.I64, 'cartId', None, None, ), # 1
9888
    (2, TType.I64, 'itemId', None, None, ), # 2
9889
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9890
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9891
  )
9892
 
3557 rajveer 9893
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9894
    self.cartId = cartId
9895
    self.itemId = itemId
9896
    self.quantity = quantity
3557 rajveer 9897
    self.sourceId = sourceId
559 chandransh 9898
 
9899
  def read(self, iprot):
9900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9902
      return
9903
    iprot.readStructBegin()
9904
    while True:
9905
      (fname, ftype, fid) = iprot.readFieldBegin()
9906
      if ftype == TType.STOP:
9907
        break
9908
      if fid == 1:
9909
        if ftype == TType.I64:
9910
          self.cartId = iprot.readI64();
9911
        else:
9912
          iprot.skip(ftype)
9913
      elif fid == 2:
9914
        if ftype == TType.I64:
9915
          self.itemId = iprot.readI64();
9916
        else:
9917
          iprot.skip(ftype)
9918
      elif fid == 3:
9919
        if ftype == TType.I64:
9920
          self.quantity = iprot.readI64();
9921
        else:
9922
          iprot.skip(ftype)
3557 rajveer 9923
      elif fid == 4:
9924
        if ftype == TType.I64:
9925
          self.sourceId = iprot.readI64();
9926
        else:
9927
          iprot.skip(ftype)
559 chandransh 9928
      else:
9929
        iprot.skip(ftype)
9930
      iprot.readFieldEnd()
9931
    iprot.readStructEnd()
9932
 
9933
  def write(self, oprot):
9934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9936
      return
9937
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9938
    if self.cartId is not None:
559 chandransh 9939
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9940
      oprot.writeI64(self.cartId)
9941
      oprot.writeFieldEnd()
3431 rajveer 9942
    if self.itemId is not None:
559 chandransh 9943
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9944
      oprot.writeI64(self.itemId)
9945
      oprot.writeFieldEnd()
3431 rajveer 9946
    if self.quantity is not None:
559 chandransh 9947
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9948
      oprot.writeI64(self.quantity)
9949
      oprot.writeFieldEnd()
3557 rajveer 9950
    if self.sourceId is not None:
9951
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9952
      oprot.writeI64(self.sourceId)
9953
      oprot.writeFieldEnd()
559 chandransh 9954
    oprot.writeFieldStop()
9955
    oprot.writeStructEnd()
9956
 
3431 rajveer 9957
  def validate(self):
9958
    return
9959
 
9960
 
559 chandransh 9961
  def __repr__(self):
9962
    L = ['%s=%r' % (key, value)
9963
      for key, value in self.__dict__.iteritems()]
9964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9965
 
9966
  def __eq__(self, other):
9967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9968
 
9969
  def __ne__(self, other):
9970
    return not (self == other)
9971
 
9972
class addItemToCart_result:
9973
  """
9974
  Attributes:
2035 rajveer 9975
   - success
559 chandransh 9976
   - scx
9977
  """
9978
 
9979
  thrift_spec = (
2035 rajveer 9980
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9981
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9982
  )
9983
 
2035 rajveer 9984
  def __init__(self, success=None, scx=None,):
9985
    self.success = success
559 chandransh 9986
    self.scx = scx
9987
 
9988
  def read(self, iprot):
9989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9991
      return
9992
    iprot.readStructBegin()
9993
    while True:
9994
      (fname, ftype, fid) = iprot.readFieldBegin()
9995
      if ftype == TType.STOP:
9996
        break
2035 rajveer 9997
      if fid == 0:
9998
        if ftype == TType.STRING:
9999
          self.success = iprot.readString();
10000
        else:
10001
          iprot.skip(ftype)
10002
      elif fid == 1:
559 chandransh 10003
        if ftype == TType.STRUCT:
10004
          self.scx = ShoppingCartException()
10005
          self.scx.read(iprot)
10006
        else:
10007
          iprot.skip(ftype)
10008
      else:
10009
        iprot.skip(ftype)
10010
      iprot.readFieldEnd()
10011
    iprot.readStructEnd()
10012
 
10013
  def write(self, oprot):
10014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10016
      return
10017
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10018
    if self.success is not None:
2035 rajveer 10019
      oprot.writeFieldBegin('success', TType.STRING, 0)
10020
      oprot.writeString(self.success)
10021
      oprot.writeFieldEnd()
3431 rajveer 10022
    if self.scx is not None:
559 chandransh 10023
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10024
      self.scx.write(oprot)
10025
      oprot.writeFieldEnd()
10026
    oprot.writeFieldStop()
10027
    oprot.writeStructEnd()
10028
 
3431 rajveer 10029
  def validate(self):
10030
    return
10031
 
10032
 
559 chandransh 10033
  def __repr__(self):
10034
    L = ['%s=%r' % (key, value)
10035
      for key, value in self.__dict__.iteritems()]
10036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10037
 
10038
  def __eq__(self, other):
10039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10040
 
10041
  def __ne__(self, other):
10042
    return not (self == other)
10043
 
10044
class deleteItemFromCart_args:
10045
  """
10046
  Attributes:
10047
   - cartId
10048
   - itemId
10049
  """
10050
 
10051
  thrift_spec = (
10052
    None, # 0
10053
    (1, TType.I64, 'cartId', None, None, ), # 1
10054
    (2, TType.I64, 'itemId', None, None, ), # 2
10055
  )
10056
 
10057
  def __init__(self, cartId=None, itemId=None,):
10058
    self.cartId = cartId
10059
    self.itemId = itemId
10060
 
10061
  def read(self, iprot):
10062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10064
      return
10065
    iprot.readStructBegin()
10066
    while True:
10067
      (fname, ftype, fid) = iprot.readFieldBegin()
10068
      if ftype == TType.STOP:
10069
        break
10070
      if fid == 1:
10071
        if ftype == TType.I64:
10072
          self.cartId = iprot.readI64();
10073
        else:
10074
          iprot.skip(ftype)
10075
      elif fid == 2:
10076
        if ftype == TType.I64:
10077
          self.itemId = iprot.readI64();
10078
        else:
10079
          iprot.skip(ftype)
10080
      else:
10081
        iprot.skip(ftype)
10082
      iprot.readFieldEnd()
10083
    iprot.readStructEnd()
10084
 
10085
  def write(self, oprot):
10086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10088
      return
10089
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10090
    if self.cartId is not None:
559 chandransh 10091
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10092
      oprot.writeI64(self.cartId)
10093
      oprot.writeFieldEnd()
3431 rajveer 10094
    if self.itemId is not None:
559 chandransh 10095
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10096
      oprot.writeI64(self.itemId)
10097
      oprot.writeFieldEnd()
10098
    oprot.writeFieldStop()
10099
    oprot.writeStructEnd()
10100
 
3431 rajveer 10101
  def validate(self):
10102
    return
10103
 
10104
 
559 chandransh 10105
  def __repr__(self):
10106
    L = ['%s=%r' % (key, value)
10107
      for key, value in self.__dict__.iteritems()]
10108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10109
 
10110
  def __eq__(self, other):
10111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10112
 
10113
  def __ne__(self, other):
10114
    return not (self == other)
10115
 
10116
class deleteItemFromCart_result:
10117
  """
10118
  Attributes:
10119
   - scx
10120
  """
10121
 
10122
  thrift_spec = (
10123
    None, # 0
10124
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10125
  )
10126
 
10127
  def __init__(self, scx=None,):
10128
    self.scx = scx
10129
 
10130
  def read(self, iprot):
10131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10133
      return
10134
    iprot.readStructBegin()
10135
    while True:
10136
      (fname, ftype, fid) = iprot.readFieldBegin()
10137
      if ftype == TType.STOP:
10138
        break
10139
      if fid == 1:
10140
        if ftype == TType.STRUCT:
10141
          self.scx = ShoppingCartException()
10142
          self.scx.read(iprot)
10143
        else:
10144
          iprot.skip(ftype)
10145
      else:
10146
        iprot.skip(ftype)
10147
      iprot.readFieldEnd()
10148
    iprot.readStructEnd()
10149
 
10150
  def write(self, oprot):
10151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10153
      return
10154
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10155
    if self.scx is not None:
559 chandransh 10156
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10157
      self.scx.write(oprot)
10158
      oprot.writeFieldEnd()
10159
    oprot.writeFieldStop()
10160
    oprot.writeStructEnd()
10161
 
3431 rajveer 10162
  def validate(self):
10163
    return
10164
 
10165
 
559 chandransh 10166
  def __repr__(self):
10167
    L = ['%s=%r' % (key, value)
10168
      for key, value in self.__dict__.iteritems()]
10169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10170
 
10171
  def __eq__(self, other):
10172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10173
 
10174
  def __ne__(self, other):
10175
    return not (self == other)
10176
 
10177
class addAddressToCart_args:
10178
  """
10179
  Attributes:
10180
   - cartId
10181
   - addressId
10182
  """
10183
 
10184
  thrift_spec = (
10185
    None, # 0
10186
    (1, TType.I64, 'cartId', None, None, ), # 1
10187
    (2, TType.I64, 'addressId', None, None, ), # 2
10188
  )
10189
 
10190
  def __init__(self, cartId=None, addressId=None,):
10191
    self.cartId = cartId
10192
    self.addressId = addressId
10193
 
10194
  def read(self, iprot):
10195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10197
      return
10198
    iprot.readStructBegin()
10199
    while True:
10200
      (fname, ftype, fid) = iprot.readFieldBegin()
10201
      if ftype == TType.STOP:
10202
        break
10203
      if fid == 1:
10204
        if ftype == TType.I64:
10205
          self.cartId = iprot.readI64();
10206
        else:
10207
          iprot.skip(ftype)
10208
      elif fid == 2:
10209
        if ftype == TType.I64:
10210
          self.addressId = iprot.readI64();
10211
        else:
10212
          iprot.skip(ftype)
10213
      else:
10214
        iprot.skip(ftype)
10215
      iprot.readFieldEnd()
10216
    iprot.readStructEnd()
10217
 
10218
  def write(self, oprot):
10219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10221
      return
10222
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10223
    if self.cartId is not None:
559 chandransh 10224
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10225
      oprot.writeI64(self.cartId)
10226
      oprot.writeFieldEnd()
3431 rajveer 10227
    if self.addressId is not None:
559 chandransh 10228
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10229
      oprot.writeI64(self.addressId)
10230
      oprot.writeFieldEnd()
10231
    oprot.writeFieldStop()
10232
    oprot.writeStructEnd()
10233
 
3431 rajveer 10234
  def validate(self):
10235
    return
10236
 
10237
 
559 chandransh 10238
  def __repr__(self):
10239
    L = ['%s=%r' % (key, value)
10240
      for key, value in self.__dict__.iteritems()]
10241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10242
 
10243
  def __eq__(self, other):
10244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10245
 
10246
  def __ne__(self, other):
10247
    return not (self == other)
10248
 
10249
class addAddressToCart_result:
575 chandransh 10250
  """
10251
  Attributes:
10252
   - scx
10253
  """
559 chandransh 10254
 
10255
  thrift_spec = (
575 chandransh 10256
    None, # 0
10257
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10258
  )
10259
 
575 chandransh 10260
  def __init__(self, scx=None,):
10261
    self.scx = scx
10262
 
559 chandransh 10263
  def read(self, iprot):
10264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10266
      return
10267
    iprot.readStructBegin()
10268
    while True:
10269
      (fname, ftype, fid) = iprot.readFieldBegin()
10270
      if ftype == TType.STOP:
10271
        break
575 chandransh 10272
      if fid == 1:
10273
        if ftype == TType.STRUCT:
10274
          self.scx = ShoppingCartException()
10275
          self.scx.read(iprot)
10276
        else:
10277
          iprot.skip(ftype)
559 chandransh 10278
      else:
10279
        iprot.skip(ftype)
10280
      iprot.readFieldEnd()
10281
    iprot.readStructEnd()
10282
 
10283
  def write(self, oprot):
10284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10286
      return
10287
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10288
    if self.scx is not None:
575 chandransh 10289
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10290
      self.scx.write(oprot)
10291
      oprot.writeFieldEnd()
559 chandransh 10292
    oprot.writeFieldStop()
10293
    oprot.writeStructEnd()
10294
 
3431 rajveer 10295
  def validate(self):
10296
    return
10297
 
10298
 
559 chandransh 10299
  def __repr__(self):
10300
    L = ['%s=%r' % (key, value)
10301
      for key, value in self.__dict__.iteritems()]
10302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10303
 
10304
  def __eq__(self, other):
10305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10306
 
10307
  def __ne__(self, other):
10308
    return not (self == other)
10309
 
5553 rajveer 10310
class addStoreToCart_args:
10311
  """
10312
  Attributes:
10313
   - cartId
10314
   - storeId
10315
  """
10316
 
10317
  thrift_spec = (
10318
    None, # 0
10319
    (1, TType.I64, 'cartId', None, None, ), # 1
10320
    (2, TType.I64, 'storeId', None, None, ), # 2
10321
  )
10322
 
10323
  def __init__(self, cartId=None, storeId=None,):
10324
    self.cartId = cartId
10325
    self.storeId = storeId
10326
 
10327
  def read(self, iprot):
10328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10330
      return
10331
    iprot.readStructBegin()
10332
    while True:
10333
      (fname, ftype, fid) = iprot.readFieldBegin()
10334
      if ftype == TType.STOP:
10335
        break
10336
      if fid == 1:
10337
        if ftype == TType.I64:
10338
          self.cartId = iprot.readI64();
10339
        else:
10340
          iprot.skip(ftype)
10341
      elif fid == 2:
10342
        if ftype == TType.I64:
10343
          self.storeId = iprot.readI64();
10344
        else:
10345
          iprot.skip(ftype)
10346
      else:
10347
        iprot.skip(ftype)
10348
      iprot.readFieldEnd()
10349
    iprot.readStructEnd()
10350
 
10351
  def write(self, oprot):
10352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10354
      return
10355
    oprot.writeStructBegin('addStoreToCart_args')
10356
    if self.cartId is not None:
10357
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10358
      oprot.writeI64(self.cartId)
10359
      oprot.writeFieldEnd()
10360
    if self.storeId is not None:
10361
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10362
      oprot.writeI64(self.storeId)
10363
      oprot.writeFieldEnd()
10364
    oprot.writeFieldStop()
10365
    oprot.writeStructEnd()
10366
 
10367
  def validate(self):
10368
    return
10369
 
10370
 
10371
  def __repr__(self):
10372
    L = ['%s=%r' % (key, value)
10373
      for key, value in self.__dict__.iteritems()]
10374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10375
 
10376
  def __eq__(self, other):
10377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10378
 
10379
  def __ne__(self, other):
10380
    return not (self == other)
10381
 
10382
class addStoreToCart_result:
10383
  """
10384
  Attributes:
10385
   - scx
10386
  """
10387
 
10388
  thrift_spec = (
10389
    None, # 0
10390
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10391
  )
10392
 
10393
  def __init__(self, scx=None,):
10394
    self.scx = scx
10395
 
10396
  def read(self, iprot):
10397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10399
      return
10400
    iprot.readStructBegin()
10401
    while True:
10402
      (fname, ftype, fid) = iprot.readFieldBegin()
10403
      if ftype == TType.STOP:
10404
        break
10405
      if fid == 1:
10406
        if ftype == TType.STRUCT:
10407
          self.scx = ShoppingCartException()
10408
          self.scx.read(iprot)
10409
        else:
10410
          iprot.skip(ftype)
10411
      else:
10412
        iprot.skip(ftype)
10413
      iprot.readFieldEnd()
10414
    iprot.readStructEnd()
10415
 
10416
  def write(self, oprot):
10417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10419
      return
10420
    oprot.writeStructBegin('addStoreToCart_result')
10421
    if self.scx is not None:
10422
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10423
      self.scx.write(oprot)
10424
      oprot.writeFieldEnd()
10425
    oprot.writeFieldStop()
10426
    oprot.writeStructEnd()
10427
 
10428
  def validate(self):
10429
    return
10430
 
10431
 
10432
  def __repr__(self):
10433
    L = ['%s=%r' % (key, value)
10434
      for key, value in self.__dict__.iteritems()]
10435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10436
 
10437
  def __eq__(self, other):
10438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10439
 
10440
  def __ne__(self, other):
10441
    return not (self == other)
10442
 
1976 varun.gupt 10443
class applyCouponToCart_args:
10444
  """
10445
  Attributes:
10446
   - cartId
10447
   - couponCode
10448
   - totalPrice
10449
   - discountedPrice
10450
  """
10451
 
10452
  thrift_spec = (
10453
    None, # 0
10454
    (1, TType.I64, 'cartId', None, None, ), # 1
10455
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10456
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10457
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10458
  )
10459
 
10460
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10461
    self.cartId = cartId
10462
    self.couponCode = couponCode
10463
    self.totalPrice = totalPrice
10464
    self.discountedPrice = discountedPrice
10465
 
10466
  def read(self, iprot):
10467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10469
      return
10470
    iprot.readStructBegin()
10471
    while True:
10472
      (fname, ftype, fid) = iprot.readFieldBegin()
10473
      if ftype == TType.STOP:
10474
        break
10475
      if fid == 1:
10476
        if ftype == TType.I64:
10477
          self.cartId = iprot.readI64();
10478
        else:
10479
          iprot.skip(ftype)
10480
      elif fid == 2:
10481
        if ftype == TType.STRING:
10482
          self.couponCode = iprot.readString();
10483
        else:
10484
          iprot.skip(ftype)
10485
      elif fid == 3:
10486
        if ftype == TType.DOUBLE:
10487
          self.totalPrice = iprot.readDouble();
10488
        else:
10489
          iprot.skip(ftype)
10490
      elif fid == 4:
10491
        if ftype == TType.DOUBLE:
10492
          self.discountedPrice = iprot.readDouble();
10493
        else:
10494
          iprot.skip(ftype)
10495
      else:
10496
        iprot.skip(ftype)
10497
      iprot.readFieldEnd()
10498
    iprot.readStructEnd()
10499
 
10500
  def write(self, oprot):
10501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10503
      return
10504
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10505
    if self.cartId is not None:
1976 varun.gupt 10506
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10507
      oprot.writeI64(self.cartId)
10508
      oprot.writeFieldEnd()
3431 rajveer 10509
    if self.couponCode is not None:
1976 varun.gupt 10510
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10511
      oprot.writeString(self.couponCode)
10512
      oprot.writeFieldEnd()
3431 rajveer 10513
    if self.totalPrice is not None:
1976 varun.gupt 10514
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10515
      oprot.writeDouble(self.totalPrice)
10516
      oprot.writeFieldEnd()
3431 rajveer 10517
    if self.discountedPrice is not None:
1976 varun.gupt 10518
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10519
      oprot.writeDouble(self.discountedPrice)
10520
      oprot.writeFieldEnd()
10521
    oprot.writeFieldStop()
10522
    oprot.writeStructEnd()
10523
 
3431 rajveer 10524
  def validate(self):
10525
    return
10526
 
10527
 
1976 varun.gupt 10528
  def __repr__(self):
10529
    L = ['%s=%r' % (key, value)
10530
      for key, value in self.__dict__.iteritems()]
10531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10532
 
10533
  def __eq__(self, other):
10534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10535
 
10536
  def __ne__(self, other):
10537
    return not (self == other)
10538
 
10539
class applyCouponToCart_result:
10540
  """
10541
  Attributes:
10542
   - scx
10543
  """
10544
 
10545
  thrift_spec = (
10546
    None, # 0
10547
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10548
  )
10549
 
10550
  def __init__(self, scx=None,):
10551
    self.scx = scx
10552
 
10553
  def read(self, iprot):
10554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10556
      return
10557
    iprot.readStructBegin()
10558
    while True:
10559
      (fname, ftype, fid) = iprot.readFieldBegin()
10560
      if ftype == TType.STOP:
10561
        break
10562
      if fid == 1:
10563
        if ftype == TType.STRUCT:
10564
          self.scx = ShoppingCartException()
10565
          self.scx.read(iprot)
10566
        else:
10567
          iprot.skip(ftype)
10568
      else:
10569
        iprot.skip(ftype)
10570
      iprot.readFieldEnd()
10571
    iprot.readStructEnd()
10572
 
10573
  def write(self, oprot):
10574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10576
      return
10577
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10578
    if self.scx is not None:
1976 varun.gupt 10579
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10580
      self.scx.write(oprot)
10581
      oprot.writeFieldEnd()
10582
    oprot.writeFieldStop()
10583
    oprot.writeStructEnd()
10584
 
3431 rajveer 10585
  def validate(self):
10586
    return
10587
 
10588
 
1976 varun.gupt 10589
  def __repr__(self):
10590
    L = ['%s=%r' % (key, value)
10591
      for key, value in self.__dict__.iteritems()]
10592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10593
 
10594
  def __eq__(self, other):
10595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10596
 
10597
  def __ne__(self, other):
10598
    return not (self == other)
10599
 
10600
class removeCoupon_args:
10601
  """
10602
  Attributes:
10603
   - cartId
10604
  """
10605
 
10606
  thrift_spec = (
10607
    None, # 0
10608
    (1, TType.I64, 'cartId', None, None, ), # 1
10609
  )
10610
 
10611
  def __init__(self, cartId=None,):
10612
    self.cartId = cartId
10613
 
10614
  def read(self, iprot):
10615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10617
      return
10618
    iprot.readStructBegin()
10619
    while True:
10620
      (fname, ftype, fid) = iprot.readFieldBegin()
10621
      if ftype == TType.STOP:
10622
        break
10623
      if fid == 1:
10624
        if ftype == TType.I64:
10625
          self.cartId = iprot.readI64();
10626
        else:
10627
          iprot.skip(ftype)
10628
      else:
10629
        iprot.skip(ftype)
10630
      iprot.readFieldEnd()
10631
    iprot.readStructEnd()
10632
 
10633
  def write(self, oprot):
10634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10636
      return
10637
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10638
    if self.cartId is not None:
1976 varun.gupt 10639
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10640
      oprot.writeI64(self.cartId)
10641
      oprot.writeFieldEnd()
10642
    oprot.writeFieldStop()
10643
    oprot.writeStructEnd()
10644
 
3431 rajveer 10645
  def validate(self):
10646
    return
10647
 
10648
 
1976 varun.gupt 10649
  def __repr__(self):
10650
    L = ['%s=%r' % (key, value)
10651
      for key, value in self.__dict__.iteritems()]
10652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10653
 
10654
  def __eq__(self, other):
10655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10656
 
10657
  def __ne__(self, other):
10658
    return not (self == other)
10659
 
10660
class removeCoupon_result:
10661
  """
10662
  Attributes:
10663
   - scx
10664
  """
10665
 
10666
  thrift_spec = (
10667
    None, # 0
10668
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10669
  )
10670
 
10671
  def __init__(self, scx=None,):
10672
    self.scx = scx
10673
 
10674
  def read(self, iprot):
10675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10677
      return
10678
    iprot.readStructBegin()
10679
    while True:
10680
      (fname, ftype, fid) = iprot.readFieldBegin()
10681
      if ftype == TType.STOP:
10682
        break
10683
      if fid == 1:
10684
        if ftype == TType.STRUCT:
10685
          self.scx = ShoppingCartException()
10686
          self.scx.read(iprot)
10687
        else:
10688
          iprot.skip(ftype)
10689
      else:
10690
        iprot.skip(ftype)
10691
      iprot.readFieldEnd()
10692
    iprot.readStructEnd()
10693
 
10694
  def write(self, oprot):
10695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10697
      return
10698
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10699
    if self.scx is not None:
1976 varun.gupt 10700
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10701
      self.scx.write(oprot)
10702
      oprot.writeFieldEnd()
10703
    oprot.writeFieldStop()
10704
    oprot.writeStructEnd()
10705
 
3431 rajveer 10706
  def validate(self):
10707
    return
10708
 
10709
 
1976 varun.gupt 10710
  def __repr__(self):
10711
    L = ['%s=%r' % (key, value)
10712
      for key, value in self.__dict__.iteritems()]
10713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10714
 
10715
  def __eq__(self, other):
10716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10717
 
10718
  def __ne__(self, other):
10719
    return not (self == other)
10720
 
3554 varun.gupt 10721
class deleteDiscountsFromCart_args:
10722
  """
10723
  Attributes:
10724
   - cartId
10725
  """
10726
 
10727
  thrift_spec = (
10728
    None, # 0
10729
    (1, TType.I64, 'cartId', None, None, ), # 1
10730
  )
10731
 
10732
  def __init__(self, cartId=None,):
10733
    self.cartId = cartId
10734
 
10735
  def read(self, iprot):
10736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10738
      return
10739
    iprot.readStructBegin()
10740
    while True:
10741
      (fname, ftype, fid) = iprot.readFieldBegin()
10742
      if ftype == TType.STOP:
10743
        break
10744
      if fid == 1:
10745
        if ftype == TType.I64:
10746
          self.cartId = iprot.readI64();
10747
        else:
10748
          iprot.skip(ftype)
10749
      else:
10750
        iprot.skip(ftype)
10751
      iprot.readFieldEnd()
10752
    iprot.readStructEnd()
10753
 
10754
  def write(self, oprot):
10755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10757
      return
10758
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10759
    if self.cartId is not None:
10760
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10761
      oprot.writeI64(self.cartId)
10762
      oprot.writeFieldEnd()
10763
    oprot.writeFieldStop()
10764
    oprot.writeStructEnd()
10765
 
10766
  def validate(self):
10767
    return
10768
 
10769
 
10770
  def __repr__(self):
10771
    L = ['%s=%r' % (key, value)
10772
      for key, value in self.__dict__.iteritems()]
10773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10774
 
10775
  def __eq__(self, other):
10776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10777
 
10778
  def __ne__(self, other):
10779
    return not (self == other)
10780
 
10781
class deleteDiscountsFromCart_result:
10782
  """
10783
  Attributes:
10784
   - scx
10785
  """
10786
 
10787
  thrift_spec = (
10788
    None, # 0
10789
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10790
  )
10791
 
10792
  def __init__(self, scx=None,):
10793
    self.scx = scx
10794
 
10795
  def read(self, iprot):
10796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10798
      return
10799
    iprot.readStructBegin()
10800
    while True:
10801
      (fname, ftype, fid) = iprot.readFieldBegin()
10802
      if ftype == TType.STOP:
10803
        break
10804
      if fid == 1:
10805
        if ftype == TType.STRUCT:
10806
          self.scx = ShoppingCartException()
10807
          self.scx.read(iprot)
10808
        else:
10809
          iprot.skip(ftype)
10810
      else:
10811
        iprot.skip(ftype)
10812
      iprot.readFieldEnd()
10813
    iprot.readStructEnd()
10814
 
10815
  def write(self, oprot):
10816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10818
      return
10819
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10820
    if self.scx is not None:
10821
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10822
      self.scx.write(oprot)
10823
      oprot.writeFieldEnd()
10824
    oprot.writeFieldStop()
10825
    oprot.writeStructEnd()
10826
 
10827
  def validate(self):
10828
    return
10829
 
10830
 
10831
  def __repr__(self):
10832
    L = ['%s=%r' % (key, value)
10833
      for key, value in self.__dict__.iteritems()]
10834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10835
 
10836
  def __eq__(self, other):
10837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10838
 
10839
  def __ne__(self, other):
10840
    return not (self == other)
10841
 
10842
class saveDiscounts_args:
10843
  """
10844
  Attributes:
10845
   - discounts
10846
  """
10847
 
10848
  thrift_spec = (
10849
    None, # 0
10850
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10851
  )
10852
 
10853
  def __init__(self, discounts=None,):
10854
    self.discounts = discounts
10855
 
10856
  def read(self, iprot):
10857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10859
      return
10860
    iprot.readStructBegin()
10861
    while True:
10862
      (fname, ftype, fid) = iprot.readFieldBegin()
10863
      if ftype == TType.STOP:
10864
        break
10865
      if fid == 1:
10866
        if ftype == TType.LIST:
10867
          self.discounts = []
5326 rajveer 10868
          (_etype124, _size121) = iprot.readListBegin()
10869
          for _i125 in xrange(_size121):
10870
            _elem126 = Discount()
10871
            _elem126.read(iprot)
10872
            self.discounts.append(_elem126)
3554 varun.gupt 10873
          iprot.readListEnd()
10874
        else:
10875
          iprot.skip(ftype)
10876
      else:
10877
        iprot.skip(ftype)
10878
      iprot.readFieldEnd()
10879
    iprot.readStructEnd()
10880
 
10881
  def write(self, oprot):
10882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10884
      return
10885
    oprot.writeStructBegin('saveDiscounts_args')
10886
    if self.discounts is not None:
10887
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10888
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 10889
      for iter127 in self.discounts:
10890
        iter127.write(oprot)
3554 varun.gupt 10891
      oprot.writeListEnd()
10892
      oprot.writeFieldEnd()
10893
    oprot.writeFieldStop()
10894
    oprot.writeStructEnd()
10895
 
10896
  def validate(self):
10897
    return
10898
 
10899
 
10900
  def __repr__(self):
10901
    L = ['%s=%r' % (key, value)
10902
      for key, value in self.__dict__.iteritems()]
10903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10904
 
10905
  def __eq__(self, other):
10906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10907
 
10908
  def __ne__(self, other):
10909
    return not (self == other)
10910
 
10911
class saveDiscounts_result:
10912
  """
10913
  Attributes:
10914
   - scx
10915
  """
10916
 
10917
  thrift_spec = (
10918
    None, # 0
10919
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10920
  )
10921
 
10922
  def __init__(self, scx=None,):
10923
    self.scx = scx
10924
 
10925
  def read(self, iprot):
10926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10928
      return
10929
    iprot.readStructBegin()
10930
    while True:
10931
      (fname, ftype, fid) = iprot.readFieldBegin()
10932
      if ftype == TType.STOP:
10933
        break
10934
      if fid == 1:
10935
        if ftype == TType.STRUCT:
10936
          self.scx = ShoppingCartException()
10937
          self.scx.read(iprot)
10938
        else:
10939
          iprot.skip(ftype)
10940
      else:
10941
        iprot.skip(ftype)
10942
      iprot.readFieldEnd()
10943
    iprot.readStructEnd()
10944
 
10945
  def write(self, oprot):
10946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10948
      return
10949
    oprot.writeStructBegin('saveDiscounts_result')
10950
    if self.scx is not None:
10951
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10952
      self.scx.write(oprot)
10953
      oprot.writeFieldEnd()
10954
    oprot.writeFieldStop()
10955
    oprot.writeStructEnd()
10956
 
10957
  def validate(self):
10958
    return
10959
 
10960
 
10961
  def __repr__(self):
10962
    L = ['%s=%r' % (key, value)
10963
      for key, value in self.__dict__.iteritems()]
10964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10965
 
10966
  def __eq__(self, other):
10967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10968
 
10969
  def __ne__(self, other):
10970
    return not (self == other)
10971
 
690 chandransh 10972
class createOrders_args:
559 chandransh 10973
  """
10974
  Attributes:
10975
   - cartId
2815 vikas 10976
   - sessionSource
10977
   - sessionStartTime
3858 vikas 10978
   - firstSource
10979
   - firstSourceTime
5326 rajveer 10980
   - userId
559 chandransh 10981
  """
10982
 
10983
  thrift_spec = (
10984
    None, # 0
10985
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10986
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10987
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10988
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10989
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 10990
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 10991
  )
10992
 
5326 rajveer 10993
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 10994
    self.cartId = cartId
2815 vikas 10995
    self.sessionSource = sessionSource
10996
    self.sessionStartTime = sessionStartTime
3858 vikas 10997
    self.firstSource = firstSource
10998
    self.firstSourceTime = firstSourceTime
5326 rajveer 10999
    self.userId = userId
559 chandransh 11000
 
11001
  def read(self, iprot):
11002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11004
      return
11005
    iprot.readStructBegin()
11006
    while True:
11007
      (fname, ftype, fid) = iprot.readFieldBegin()
11008
      if ftype == TType.STOP:
11009
        break
11010
      if fid == 1:
11011
        if ftype == TType.I64:
11012
          self.cartId = iprot.readI64();
11013
        else:
11014
          iprot.skip(ftype)
2815 vikas 11015
      elif fid == 2:
11016
        if ftype == TType.STRING:
11017
          self.sessionSource = iprot.readString();
11018
        else:
11019
          iprot.skip(ftype)
11020
      elif fid == 3:
11021
        if ftype == TType.I64:
11022
          self.sessionStartTime = iprot.readI64();
11023
        else:
11024
          iprot.skip(ftype)
3858 vikas 11025
      elif fid == 4:
11026
        if ftype == TType.STRING:
11027
          self.firstSource = iprot.readString();
11028
        else:
11029
          iprot.skip(ftype)
11030
      elif fid == 5:
11031
        if ftype == TType.I64:
11032
          self.firstSourceTime = iprot.readI64();
11033
        else:
11034
          iprot.skip(ftype)
5326 rajveer 11035
      elif fid == 6:
11036
        if ftype == TType.I64:
11037
          self.userId = iprot.readI64();
11038
        else:
11039
          iprot.skip(ftype)
559 chandransh 11040
      else:
11041
        iprot.skip(ftype)
11042
      iprot.readFieldEnd()
11043
    iprot.readStructEnd()
11044
 
11045
  def write(self, oprot):
11046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11048
      return
690 chandransh 11049
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11050
    if self.cartId is not None:
559 chandransh 11051
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11052
      oprot.writeI64(self.cartId)
11053
      oprot.writeFieldEnd()
3431 rajveer 11054
    if self.sessionSource is not None:
2815 vikas 11055
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11056
      oprot.writeString(self.sessionSource)
11057
      oprot.writeFieldEnd()
3431 rajveer 11058
    if self.sessionStartTime is not None:
2815 vikas 11059
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11060
      oprot.writeI64(self.sessionStartTime)
11061
      oprot.writeFieldEnd()
3858 vikas 11062
    if self.firstSource is not None:
11063
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11064
      oprot.writeString(self.firstSource)
11065
      oprot.writeFieldEnd()
11066
    if self.firstSourceTime is not None:
11067
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11068
      oprot.writeI64(self.firstSourceTime)
11069
      oprot.writeFieldEnd()
5326 rajveer 11070
    if self.userId is not None:
11071
      oprot.writeFieldBegin('userId', TType.I64, 6)
11072
      oprot.writeI64(self.userId)
11073
      oprot.writeFieldEnd()
559 chandransh 11074
    oprot.writeFieldStop()
11075
    oprot.writeStructEnd()
11076
 
3431 rajveer 11077
  def validate(self):
11078
    return
11079
 
11080
 
559 chandransh 11081
  def __repr__(self):
11082
    L = ['%s=%r' % (key, value)
11083
      for key, value in self.__dict__.iteritems()]
11084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11085
 
11086
  def __eq__(self, other):
11087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11088
 
11089
  def __ne__(self, other):
11090
    return not (self == other)
11091
 
690 chandransh 11092
class createOrders_result:
559 chandransh 11093
  """
11094
  Attributes:
94 ashish 11095
   - success
559 chandransh 11096
   - scx
94 ashish 11097
  """
11098
 
11099
  thrift_spec = (
575 chandransh 11100
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11101
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11102
  )
11103
 
559 chandransh 11104
  def __init__(self, success=None, scx=None,):
94 ashish 11105
    self.success = success
559 chandransh 11106
    self.scx = scx
94 ashish 11107
 
11108
  def read(self, iprot):
11109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11111
      return
11112
    iprot.readStructBegin()
11113
    while True:
11114
      (fname, ftype, fid) = iprot.readFieldBegin()
11115
      if ftype == TType.STOP:
11116
        break
11117
      if fid == 0:
575 chandransh 11118
        if ftype == TType.I64:
11119
          self.success = iprot.readI64();
94 ashish 11120
        else:
11121
          iprot.skip(ftype)
11122
      elif fid == 1:
11123
        if ftype == TType.STRUCT:
559 chandransh 11124
          self.scx = ShoppingCartException()
11125
          self.scx.read(iprot)
94 ashish 11126
        else:
11127
          iprot.skip(ftype)
11128
      else:
11129
        iprot.skip(ftype)
11130
      iprot.readFieldEnd()
11131
    iprot.readStructEnd()
11132
 
11133
  def write(self, oprot):
11134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11136
      return
690 chandransh 11137
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11138
    if self.success is not None:
575 chandransh 11139
      oprot.writeFieldBegin('success', TType.I64, 0)
11140
      oprot.writeI64(self.success)
94 ashish 11141
      oprot.writeFieldEnd()
3431 rajveer 11142
    if self.scx is not None:
559 chandransh 11143
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11144
      self.scx.write(oprot)
94 ashish 11145
      oprot.writeFieldEnd()
11146
    oprot.writeFieldStop()
11147
    oprot.writeStructEnd()
11148
 
3431 rajveer 11149
  def validate(self):
11150
    return
11151
 
11152
 
94 ashish 11153
  def __repr__(self):
11154
    L = ['%s=%r' % (key, value)
11155
      for key, value in self.__dict__.iteritems()]
11156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11157
 
11158
  def __eq__(self, other):
11159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11160
 
11161
  def __ne__(self, other):
11162
    return not (self == other)
11163
 
559 chandransh 11164
class validateCart_args:
94 ashish 11165
  """
11166
  Attributes:
559 chandransh 11167
   - cartId
3557 rajveer 11168
   - sourceId
94 ashish 11169
  """
11170
 
11171
  thrift_spec = (
11172
    None, # 0
559 chandransh 11173
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11174
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11175
  )
11176
 
3557 rajveer 11177
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11178
    self.cartId = cartId
3557 rajveer 11179
    self.sourceId = sourceId
94 ashish 11180
 
11181
  def read(self, iprot):
11182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11184
      return
11185
    iprot.readStructBegin()
11186
    while True:
11187
      (fname, ftype, fid) = iprot.readFieldBegin()
11188
      if ftype == TType.STOP:
11189
        break
11190
      if fid == 1:
11191
        if ftype == TType.I64:
559 chandransh 11192
          self.cartId = iprot.readI64();
94 ashish 11193
        else:
11194
          iprot.skip(ftype)
3557 rajveer 11195
      elif fid == 2:
11196
        if ftype == TType.I64:
11197
          self.sourceId = iprot.readI64();
11198
        else:
11199
          iprot.skip(ftype)
94 ashish 11200
      else:
11201
        iprot.skip(ftype)
11202
      iprot.readFieldEnd()
11203
    iprot.readStructEnd()
11204
 
11205
  def write(self, oprot):
11206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11208
      return
559 chandransh 11209
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11210
    if self.cartId is not None:
559 chandransh 11211
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11212
      oprot.writeI64(self.cartId)
94 ashish 11213
      oprot.writeFieldEnd()
3557 rajveer 11214
    if self.sourceId is not None:
11215
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11216
      oprot.writeI64(self.sourceId)
11217
      oprot.writeFieldEnd()
94 ashish 11218
    oprot.writeFieldStop()
11219
    oprot.writeStructEnd()
11220
 
3431 rajveer 11221
  def validate(self):
11222
    return
11223
 
11224
 
94 ashish 11225
  def __repr__(self):
11226
    L = ['%s=%r' % (key, value)
11227
      for key, value in self.__dict__.iteritems()]
11228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11229
 
11230
  def __eq__(self, other):
11231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11232
 
11233
  def __ne__(self, other):
11234
    return not (self == other)
11235
 
559 chandransh 11236
class validateCart_result:
94 ashish 11237
  """
11238
  Attributes:
11239
   - success
575 chandransh 11240
   - scex
94 ashish 11241
  """
11242
 
11243
  thrift_spec = (
1466 ankur.sing 11244
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11245
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11246
  )
11247
 
575 chandransh 11248
  def __init__(self, success=None, scex=None,):
94 ashish 11249
    self.success = success
575 chandransh 11250
    self.scex = scex
94 ashish 11251
 
11252
  def read(self, iprot):
11253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11255
      return
11256
    iprot.readStructBegin()
11257
    while True:
11258
      (fname, ftype, fid) = iprot.readFieldBegin()
11259
      if ftype == TType.STOP:
11260
        break
11261
      if fid == 0:
1466 ankur.sing 11262
        if ftype == TType.STRING:
11263
          self.success = iprot.readString();
94 ashish 11264
        else:
11265
          iprot.skip(ftype)
575 chandransh 11266
      elif fid == 1:
11267
        if ftype == TType.STRUCT:
11268
          self.scex = ShoppingCartException()
11269
          self.scex.read(iprot)
11270
        else:
11271
          iprot.skip(ftype)
94 ashish 11272
      else:
11273
        iprot.skip(ftype)
11274
      iprot.readFieldEnd()
11275
    iprot.readStructEnd()
11276
 
11277
  def write(self, oprot):
11278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11280
      return
559 chandransh 11281
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11282
    if self.success is not None:
1466 ankur.sing 11283
      oprot.writeFieldBegin('success', TType.STRING, 0)
11284
      oprot.writeString(self.success)
94 ashish 11285
      oprot.writeFieldEnd()
3431 rajveer 11286
    if self.scex is not None:
575 chandransh 11287
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11288
      self.scex.write(oprot)
11289
      oprot.writeFieldEnd()
559 chandransh 11290
    oprot.writeFieldStop()
11291
    oprot.writeStructEnd()
11292
 
3431 rajveer 11293
  def validate(self):
11294
    return
11295
 
11296
 
559 chandransh 11297
  def __repr__(self):
11298
    L = ['%s=%r' % (key, value)
11299
      for key, value in self.__dict__.iteritems()]
11300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11301
 
11302
  def __eq__(self, other):
11303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11304
 
11305
  def __ne__(self, other):
11306
    return not (self == other)
11307
 
690 chandransh 11308
class mergeCart_args:
575 chandransh 11309
  """
11310
  Attributes:
690 chandransh 11311
   - fromCartId
11312
   - toCartId
11313
  """
11314
 
11315
  thrift_spec = (
11316
    None, # 0
11317
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11318
    (2, TType.I64, 'toCartId', None, None, ), # 2
11319
  )
11320
 
11321
  def __init__(self, fromCartId=None, toCartId=None,):
11322
    self.fromCartId = fromCartId
11323
    self.toCartId = toCartId
11324
 
11325
  def read(self, iprot):
11326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11328
      return
11329
    iprot.readStructBegin()
11330
    while True:
11331
      (fname, ftype, fid) = iprot.readFieldBegin()
11332
      if ftype == TType.STOP:
11333
        break
11334
      if fid == 1:
11335
        if ftype == TType.I64:
11336
          self.fromCartId = iprot.readI64();
11337
        else:
11338
          iprot.skip(ftype)
11339
      elif fid == 2:
11340
        if ftype == TType.I64:
11341
          self.toCartId = iprot.readI64();
11342
        else:
11343
          iprot.skip(ftype)
11344
      else:
11345
        iprot.skip(ftype)
11346
      iprot.readFieldEnd()
11347
    iprot.readStructEnd()
11348
 
11349
  def write(self, oprot):
11350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11352
      return
11353
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11354
    if self.fromCartId is not None:
690 chandransh 11355
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11356
      oprot.writeI64(self.fromCartId)
11357
      oprot.writeFieldEnd()
3431 rajveer 11358
    if self.toCartId is not None:
690 chandransh 11359
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11360
      oprot.writeI64(self.toCartId)
11361
      oprot.writeFieldEnd()
11362
    oprot.writeFieldStop()
11363
    oprot.writeStructEnd()
11364
 
3431 rajveer 11365
  def validate(self):
11366
    return
11367
 
11368
 
690 chandransh 11369
  def __repr__(self):
11370
    L = ['%s=%r' % (key, value)
11371
      for key, value in self.__dict__.iteritems()]
11372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11373
 
11374
  def __eq__(self, other):
11375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11376
 
11377
  def __ne__(self, other):
11378
    return not (self == other)
11379
 
11380
class mergeCart_result:
11381
 
11382
  thrift_spec = (
11383
  )
11384
 
11385
  def read(self, iprot):
11386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11388
      return
11389
    iprot.readStructBegin()
11390
    while True:
11391
      (fname, ftype, fid) = iprot.readFieldBegin()
11392
      if ftype == TType.STOP:
11393
        break
11394
      else:
11395
        iprot.skip(ftype)
11396
      iprot.readFieldEnd()
11397
    iprot.readStructEnd()
11398
 
11399
  def write(self, oprot):
11400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11402
      return
11403
    oprot.writeStructBegin('mergeCart_result')
11404
    oprot.writeFieldStop()
11405
    oprot.writeStructEnd()
11406
 
3431 rajveer 11407
  def validate(self):
11408
    return
11409
 
11410
 
690 chandransh 11411
  def __repr__(self):
11412
    L = ['%s=%r' % (key, value)
11413
      for key, value in self.__dict__.iteritems()]
11414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11415
 
11416
  def __eq__(self, other):
11417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11418
 
11419
  def __ne__(self, other):
11420
    return not (self == other)
11421
 
11422
class checkOut_args:
11423
  """
11424
  Attributes:
575 chandransh 11425
   - cartId
11426
  """
11427
 
11428
  thrift_spec = (
11429
    None, # 0
11430
    (1, TType.I64, 'cartId', None, None, ), # 1
11431
  )
11432
 
11433
  def __init__(self, cartId=None,):
11434
    self.cartId = cartId
11435
 
11436
  def read(self, iprot):
11437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11439
      return
11440
    iprot.readStructBegin()
11441
    while True:
11442
      (fname, ftype, fid) = iprot.readFieldBegin()
11443
      if ftype == TType.STOP:
11444
        break
11445
      if fid == 1:
11446
        if ftype == TType.I64:
11447
          self.cartId = iprot.readI64();
11448
        else:
11449
          iprot.skip(ftype)
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
690 chandransh 11459
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11460
    if self.cartId is not None:
575 chandransh 11461
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11462
      oprot.writeI64(self.cartId)
11463
      oprot.writeFieldEnd()
11464
    oprot.writeFieldStop()
11465
    oprot.writeStructEnd()
11466
 
3431 rajveer 11467
  def validate(self):
11468
    return
11469
 
11470
 
575 chandransh 11471
  def __repr__(self):
11472
    L = ['%s=%r' % (key, value)
11473
      for key, value in self.__dict__.iteritems()]
11474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11475
 
11476
  def __eq__(self, other):
11477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11478
 
11479
  def __ne__(self, other):
11480
    return not (self == other)
11481
 
690 chandransh 11482
class checkOut_result:
575 chandransh 11483
  """
11484
  Attributes:
11485
   - success
11486
   - scex
11487
  """
11488
 
11489
  thrift_spec = (
11490
    (0, TType.BOOL, 'success', None, None, ), # 0
11491
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11492
  )
11493
 
11494
  def __init__(self, success=None, scex=None,):
11495
    self.success = success
11496
    self.scex = scex
11497
 
11498
  def read(self, iprot):
11499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11501
      return
11502
    iprot.readStructBegin()
11503
    while True:
11504
      (fname, ftype, fid) = iprot.readFieldBegin()
11505
      if ftype == TType.STOP:
11506
        break
11507
      if fid == 0:
11508
        if ftype == TType.BOOL:
11509
          self.success = iprot.readBool();
11510
        else:
11511
          iprot.skip(ftype)
11512
      elif fid == 1:
11513
        if ftype == TType.STRUCT:
11514
          self.scex = ShoppingCartException()
11515
          self.scex.read(iprot)
11516
        else:
11517
          iprot.skip(ftype)
11518
      else:
11519
        iprot.skip(ftype)
11520
      iprot.readFieldEnd()
11521
    iprot.readStructEnd()
11522
 
11523
  def write(self, oprot):
11524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11526
      return
690 chandransh 11527
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11528
    if self.success is not None:
575 chandransh 11529
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11530
      oprot.writeBool(self.success)
11531
      oprot.writeFieldEnd()
3431 rajveer 11532
    if self.scex is not None:
575 chandransh 11533
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11534
      self.scex.write(oprot)
11535
      oprot.writeFieldEnd()
11536
    oprot.writeFieldStop()
11537
    oprot.writeStructEnd()
11538
 
3431 rajveer 11539
  def validate(self):
11540
    return
11541
 
11542
 
575 chandransh 11543
  def __repr__(self):
11544
    L = ['%s=%r' % (key, value)
11545
      for key, value in self.__dict__.iteritems()]
11546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11547
 
11548
  def __eq__(self, other):
11549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11550
 
11551
  def __ne__(self, other):
11552
    return not (self == other)
11553
 
690 chandransh 11554
class resetCart_args:
559 chandransh 11555
  """
11556
  Attributes:
690 chandransh 11557
   - cartId
11558
   - items
559 chandransh 11559
  """
11560
 
11561
  thrift_spec = (
11562
    None, # 0
690 chandransh 11563
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11564
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11565
  )
11566
 
690 chandransh 11567
  def __init__(self, cartId=None, items=None,):
11568
    self.cartId = cartId
11569
    self.items = items
559 chandransh 11570
 
11571
  def read(self, iprot):
11572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11574
      return
11575
    iprot.readStructBegin()
11576
    while True:
11577
      (fname, ftype, fid) = iprot.readFieldBegin()
11578
      if ftype == TType.STOP:
11579
        break
11580
      if fid == 1:
11581
        if ftype == TType.I64:
690 chandransh 11582
          self.cartId = iprot.readI64();
559 chandransh 11583
        else:
11584
          iprot.skip(ftype)
11585
      elif fid == 2:
690 chandransh 11586
        if ftype == TType.MAP:
11587
          self.items = {}
5326 rajveer 11588
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11589
          for _i132 in xrange(_size128):
11590
            _key133 = iprot.readI64();
11591
            _val134 = iprot.readDouble();
11592
            self.items[_key133] = _val134
690 chandransh 11593
          iprot.readMapEnd()
559 chandransh 11594
        else:
11595
          iprot.skip(ftype)
11596
      else:
11597
        iprot.skip(ftype)
11598
      iprot.readFieldEnd()
11599
    iprot.readStructEnd()
11600
 
11601
  def write(self, oprot):
11602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11604
      return
690 chandransh 11605
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11606
    if self.cartId is not None:
690 chandransh 11607
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11608
      oprot.writeI64(self.cartId)
94 ashish 11609
      oprot.writeFieldEnd()
3431 rajveer 11610
    if self.items is not None:
690 chandransh 11611
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11612
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11613
      for kiter135,viter136 in self.items.items():
11614
        oprot.writeI64(kiter135)
11615
        oprot.writeDouble(viter136)
690 chandransh 11616
      oprot.writeMapEnd()
559 chandransh 11617
      oprot.writeFieldEnd()
94 ashish 11618
    oprot.writeFieldStop()
11619
    oprot.writeStructEnd()
11620
 
3431 rajveer 11621
  def validate(self):
11622
    return
11623
 
11624
 
94 ashish 11625
  def __repr__(self):
11626
    L = ['%s=%r' % (key, value)
11627
      for key, value in self.__dict__.iteritems()]
11628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11629
 
11630
  def __eq__(self, other):
11631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11632
 
11633
  def __ne__(self, other):
11634
    return not (self == other)
11635
 
690 chandransh 11636
class resetCart_result:
11637
  """
11638
  Attributes:
11639
   - success
11640
   - scex
11641
  """
559 chandransh 11642
 
11643
  thrift_spec = (
690 chandransh 11644
    (0, TType.BOOL, 'success', None, None, ), # 0
11645
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11646
  )
11647
 
690 chandransh 11648
  def __init__(self, success=None, scex=None,):
11649
    self.success = success
11650
    self.scex = scex
11651
 
559 chandransh 11652
  def read(self, iprot):
11653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11655
      return
11656
    iprot.readStructBegin()
11657
    while True:
11658
      (fname, ftype, fid) = iprot.readFieldBegin()
11659
      if ftype == TType.STOP:
11660
        break
690 chandransh 11661
      if fid == 0:
11662
        if ftype == TType.BOOL:
11663
          self.success = iprot.readBool();
11664
        else:
11665
          iprot.skip(ftype)
11666
      elif fid == 1:
11667
        if ftype == TType.STRUCT:
11668
          self.scex = ShoppingCartException()
11669
          self.scex.read(iprot)
11670
        else:
11671
          iprot.skip(ftype)
559 chandransh 11672
      else:
11673
        iprot.skip(ftype)
11674
      iprot.readFieldEnd()
11675
    iprot.readStructEnd()
11676
 
11677
  def write(self, oprot):
11678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11680
      return
690 chandransh 11681
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11682
    if self.success is not None:
690 chandransh 11683
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11684
      oprot.writeBool(self.success)
11685
      oprot.writeFieldEnd()
3431 rajveer 11686
    if self.scex is not None:
690 chandransh 11687
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11688
      self.scex.write(oprot)
11689
      oprot.writeFieldEnd()
559 chandransh 11690
    oprot.writeFieldStop()
11691
    oprot.writeStructEnd()
11692
 
3431 rajveer 11693
  def validate(self):
11694
    return
11695
 
11696
 
559 chandransh 11697
  def __repr__(self):
11698
    L = ['%s=%r' % (key, value)
11699
      for key, value in self.__dict__.iteritems()]
11700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11701
 
11702
  def __eq__(self, other):
11703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11704
 
11705
  def __ne__(self, other):
11706
    return not (self == other)
11707
 
2981 rajveer 11708
class getUserCount_args:
94 ashish 11709
  """
11710
  Attributes:
2981 rajveer 11711
   - userType
559 chandransh 11712
  """
11713
 
11714
  thrift_spec = (
11715
    None, # 0
2981 rajveer 11716
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11717
  )
11718
 
2981 rajveer 11719
  def __init__(self, userType=None,):
11720
    self.userType = userType
559 chandransh 11721
 
11722
  def read(self, iprot):
11723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11725
      return
11726
    iprot.readStructBegin()
11727
    while True:
11728
      (fname, ftype, fid) = iprot.readFieldBegin()
11729
      if ftype == TType.STOP:
11730
        break
11731
      if fid == 1:
2981 rajveer 11732
        if ftype == TType.I32:
11733
          self.userType = iprot.readI32();
559 chandransh 11734
        else:
11735
          iprot.skip(ftype)
11736
      else:
11737
        iprot.skip(ftype)
11738
      iprot.readFieldEnd()
11739
    iprot.readStructEnd()
11740
 
11741
  def write(self, oprot):
11742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11744
      return
2981 rajveer 11745
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11746
    if self.userType is not None:
2981 rajveer 11747
      oprot.writeFieldBegin('userType', TType.I32, 1)
11748
      oprot.writeI32(self.userType)
559 chandransh 11749
      oprot.writeFieldEnd()
11750
    oprot.writeFieldStop()
11751
    oprot.writeStructEnd()
11752
 
3431 rajveer 11753
  def validate(self):
11754
    return
11755
 
11756
 
559 chandransh 11757
  def __repr__(self):
11758
    L = ['%s=%r' % (key, value)
11759
      for key, value in self.__dict__.iteritems()]
11760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11761
 
11762
  def __eq__(self, other):
11763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11764
 
11765
  def __ne__(self, other):
11766
    return not (self == other)
11767
 
2981 rajveer 11768
class getUserCount_result:
94 ashish 11769
  """
11770
  Attributes:
11771
   - success
11772
  """
11773
 
11774
  thrift_spec = (
2981 rajveer 11775
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11776
  )
11777
 
2981 rajveer 11778
  def __init__(self, success=None,):
94 ashish 11779
    self.success = success
11780
 
11781
  def read(self, iprot):
11782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11784
      return
11785
    iprot.readStructBegin()
11786
    while True:
11787
      (fname, ftype, fid) = iprot.readFieldBegin()
11788
      if ftype == TType.STOP:
11789
        break
11790
      if fid == 0:
2981 rajveer 11791
        if ftype == TType.I64:
11792
          self.success = iprot.readI64();
94 ashish 11793
        else:
11794
          iprot.skip(ftype)
11795
      else:
11796
        iprot.skip(ftype)
11797
      iprot.readFieldEnd()
11798
    iprot.readStructEnd()
11799
 
11800
  def write(self, oprot):
11801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11803
      return
2981 rajveer 11804
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11805
    if self.success is not None:
2981 rajveer 11806
      oprot.writeFieldBegin('success', TType.I64, 0)
11807
      oprot.writeI64(self.success)
94 ashish 11808
      oprot.writeFieldEnd()
11809
    oprot.writeFieldStop()
11810
    oprot.writeStructEnd()
11811
 
3431 rajveer 11812
  def validate(self):
11813
    return
11814
 
11815
 
94 ashish 11816
  def __repr__(self):
11817
    L = ['%s=%r' % (key, value)
11818
      for key, value in self.__dict__.iteritems()]
11819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11820
 
11821
  def __eq__(self, other):
11822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11823
 
11824
  def __ne__(self, other):
11825
    return not (self == other)
11826
 
2981 rajveer 11827
class getAllUsers_args:
94 ashish 11828
  """
11829
  Attributes:
2981 rajveer 11830
   - userType
11831
   - startDate
11832
   - endDate
94 ashish 11833
  """
11834
 
11835
  thrift_spec = (
11836
    None, # 0
2981 rajveer 11837
    (1, TType.I32, 'userType', None, None, ), # 1
11838
    (2, TType.I64, 'startDate', None, None, ), # 2
11839
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11840
  )
11841
 
2981 rajveer 11842
  def __init__(self, userType=None, startDate=None, endDate=None,):
11843
    self.userType = userType
11844
    self.startDate = startDate
11845
    self.endDate = endDate
94 ashish 11846
 
11847
  def read(self, iprot):
11848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11850
      return
11851
    iprot.readStructBegin()
11852
    while True:
11853
      (fname, ftype, fid) = iprot.readFieldBegin()
11854
      if ftype == TType.STOP:
11855
        break
11856
      if fid == 1:
2981 rajveer 11857
        if ftype == TType.I32:
11858
          self.userType = iprot.readI32();
94 ashish 11859
        else:
11860
          iprot.skip(ftype)
11861
      elif fid == 2:
559 chandransh 11862
        if ftype == TType.I64:
2981 rajveer 11863
          self.startDate = iprot.readI64();
94 ashish 11864
        else:
11865
          iprot.skip(ftype)
2981 rajveer 11866
      elif fid == 3:
11867
        if ftype == TType.I64:
11868
          self.endDate = iprot.readI64();
11869
        else:
11870
          iprot.skip(ftype)
94 ashish 11871
      else:
11872
        iprot.skip(ftype)
11873
      iprot.readFieldEnd()
11874
    iprot.readStructEnd()
11875
 
11876
  def write(self, oprot):
11877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11879
      return
2981 rajveer 11880
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11881
    if self.userType is not None:
2981 rajveer 11882
      oprot.writeFieldBegin('userType', TType.I32, 1)
11883
      oprot.writeI32(self.userType)
94 ashish 11884
      oprot.writeFieldEnd()
3431 rajveer 11885
    if self.startDate is not None:
2981 rajveer 11886
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11887
      oprot.writeI64(self.startDate)
94 ashish 11888
      oprot.writeFieldEnd()
3431 rajveer 11889
    if self.endDate is not None:
2981 rajveer 11890
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11891
      oprot.writeI64(self.endDate)
11892
      oprot.writeFieldEnd()
94 ashish 11893
    oprot.writeFieldStop()
11894
    oprot.writeStructEnd()
11895
 
3431 rajveer 11896
  def validate(self):
11897
    return
11898
 
11899
 
94 ashish 11900
  def __repr__(self):
11901
    L = ['%s=%r' % (key, value)
11902
      for key, value in self.__dict__.iteritems()]
11903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11904
 
11905
  def __eq__(self, other):
11906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11907
 
11908
  def __ne__(self, other):
11909
    return not (self == other)
11910
 
2981 rajveer 11911
class getAllUsers_result:
94 ashish 11912
  """
11913
  Attributes:
11914
   - success
11915
  """
11916
 
11917
  thrift_spec = (
2981 rajveer 11918
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11919
  )
11920
 
2981 rajveer 11921
  def __init__(self, success=None,):
94 ashish 11922
    self.success = success
11923
 
11924
  def read(self, iprot):
11925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11927
      return
11928
    iprot.readStructBegin()
11929
    while True:
11930
      (fname, ftype, fid) = iprot.readFieldBegin()
11931
      if ftype == TType.STOP:
11932
        break
11933
      if fid == 0:
2981 rajveer 11934
        if ftype == TType.LIST:
11935
          self.success = []
5326 rajveer 11936
          (_etype140, _size137) = iprot.readListBegin()
11937
          for _i141 in xrange(_size137):
11938
            _elem142 = User()
11939
            _elem142.read(iprot)
11940
            self.success.append(_elem142)
2981 rajveer 11941
          iprot.readListEnd()
94 ashish 11942
        else:
11943
          iprot.skip(ftype)
11944
      else:
11945
        iprot.skip(ftype)
11946
      iprot.readFieldEnd()
11947
    iprot.readStructEnd()
11948
 
11949
  def write(self, oprot):
11950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11952
      return
2981 rajveer 11953
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11954
    if self.success is not None:
2981 rajveer 11955
      oprot.writeFieldBegin('success', TType.LIST, 0)
11956
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 11957
      for iter143 in self.success:
11958
        iter143.write(oprot)
2981 rajveer 11959
      oprot.writeListEnd()
94 ashish 11960
      oprot.writeFieldEnd()
11961
    oprot.writeFieldStop()
11962
    oprot.writeStructEnd()
11963
 
3431 rajveer 11964
  def validate(self):
11965
    return
11966
 
11967
 
94 ashish 11968
  def __repr__(self):
11969
    L = ['%s=%r' % (key, value)
11970
      for key, value in self.__dict__.iteritems()]
11971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11972
 
11973
  def __eq__(self, other):
11974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11975
 
11976
  def __ne__(self, other):
11977
    return not (self == other)
11978
 
2981 rajveer 11979
class putUserNote_args:
130 ashish 11980
  """
11981
  Attributes:
2981 rajveer 11982
   - user_id
11983
   - entity_id
11984
   - slide
11985
   - note
130 ashish 11986
  """
94 ashish 11987
 
130 ashish 11988
  thrift_spec = (
11989
    None, # 0
2981 rajveer 11990
    (1, TType.I64, 'user_id', None, None, ), # 1
11991
    (2, TType.I64, 'entity_id', None, None, ), # 2
11992
    (3, TType.STRING, 'slide', None, None, ), # 3
11993
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 11994
  )
11995
 
2981 rajveer 11996
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
11997
    self.user_id = user_id
11998
    self.entity_id = entity_id
11999
    self.slide = slide
12000
    self.note = note
130 ashish 12001
 
12002
  def read(self, iprot):
12003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12005
      return
12006
    iprot.readStructBegin()
12007
    while True:
12008
      (fname, ftype, fid) = iprot.readFieldBegin()
12009
      if ftype == TType.STOP:
12010
        break
12011
      if fid == 1:
12012
        if ftype == TType.I64:
2981 rajveer 12013
          self.user_id = iprot.readI64();
130 ashish 12014
        else:
12015
          iprot.skip(ftype)
559 chandransh 12016
      elif fid == 2:
12017
        if ftype == TType.I64:
2981 rajveer 12018
          self.entity_id = iprot.readI64();
559 chandransh 12019
        else:
12020
          iprot.skip(ftype)
2981 rajveer 12021
      elif fid == 3:
12022
        if ftype == TType.STRING:
12023
          self.slide = iprot.readString();
12024
        else:
12025
          iprot.skip(ftype)
12026
      elif fid == 4:
12027
        if ftype == TType.STRING:
12028
          self.note = iprot.readString();
12029
        else:
12030
          iprot.skip(ftype)
130 ashish 12031
      else:
12032
        iprot.skip(ftype)
12033
      iprot.readFieldEnd()
12034
    iprot.readStructEnd()
12035
 
12036
  def write(self, oprot):
12037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12039
      return
2981 rajveer 12040
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12041
    if self.user_id is not None:
2981 rajveer 12042
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12043
      oprot.writeI64(self.user_id)
130 ashish 12044
      oprot.writeFieldEnd()
3431 rajveer 12045
    if self.entity_id is not None:
2981 rajveer 12046
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12047
      oprot.writeI64(self.entity_id)
559 chandransh 12048
      oprot.writeFieldEnd()
3431 rajveer 12049
    if self.slide is not None:
2981 rajveer 12050
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12051
      oprot.writeString(self.slide)
12052
      oprot.writeFieldEnd()
3431 rajveer 12053
    if self.note is not None:
2981 rajveer 12054
      oprot.writeFieldBegin('note', TType.STRING, 4)
12055
      oprot.writeString(self.note)
12056
      oprot.writeFieldEnd()
130 ashish 12057
    oprot.writeFieldStop()
12058
    oprot.writeStructEnd()
12059
 
3431 rajveer 12060
  def validate(self):
12061
    return
12062
 
12063
 
130 ashish 12064
  def __repr__(self):
12065
    L = ['%s=%r' % (key, value)
12066
      for key, value in self.__dict__.iteritems()]
12067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12068
 
12069
  def __eq__(self, other):
12070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12071
 
12072
  def __ne__(self, other):
12073
    return not (self == other)
12074
 
2981 rajveer 12075
class putUserNote_result:
559 chandransh 12076
 
12077
  thrift_spec = (
12078
  )
12079
 
12080
  def read(self, iprot):
12081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12083
      return
12084
    iprot.readStructBegin()
12085
    while True:
12086
      (fname, ftype, fid) = iprot.readFieldBegin()
12087
      if ftype == TType.STOP:
12088
        break
12089
      else:
12090
        iprot.skip(ftype)
12091
      iprot.readFieldEnd()
12092
    iprot.readStructEnd()
12093
 
12094
  def write(self, oprot):
12095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12097
      return
2981 rajveer 12098
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12099
    oprot.writeFieldStop()
12100
    oprot.writeStructEnd()
12101
 
3431 rajveer 12102
  def validate(self):
12103
    return
12104
 
12105
 
559 chandransh 12106
  def __repr__(self):
12107
    L = ['%s=%r' % (key, value)
12108
      for key, value in self.__dict__.iteritems()]
12109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12110
 
12111
  def __eq__(self, other):
12112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12113
 
12114
  def __ne__(self, other):
12115
    return not (self == other)
12116
 
2981 rajveer 12117
class getUserNotes_args:
559 chandransh 12118
  """
12119
  Attributes:
2981 rajveer 12120
   - user_id
12121
   - entity_id
559 chandransh 12122
  """
12123
 
12124
  thrift_spec = (
12125
    None, # 0
2981 rajveer 12126
    (1, TType.I64, 'user_id', None, None, ), # 1
12127
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12128
  )
12129
 
2981 rajveer 12130
  def __init__(self, user_id=None, entity_id=None,):
12131
    self.user_id = user_id
12132
    self.entity_id = entity_id
559 chandransh 12133
 
12134
  def read(self, iprot):
12135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12137
      return
12138
    iprot.readStructBegin()
12139
    while True:
12140
      (fname, ftype, fid) = iprot.readFieldBegin()
12141
      if ftype == TType.STOP:
12142
        break
12143
      if fid == 1:
12144
        if ftype == TType.I64:
2981 rajveer 12145
          self.user_id = iprot.readI64();
559 chandransh 12146
        else:
12147
          iprot.skip(ftype)
12148
      elif fid == 2:
12149
        if ftype == TType.I64:
2981 rajveer 12150
          self.entity_id = iprot.readI64();
559 chandransh 12151
        else:
12152
          iprot.skip(ftype)
12153
      else:
12154
        iprot.skip(ftype)
12155
      iprot.readFieldEnd()
12156
    iprot.readStructEnd()
12157
 
12158
  def write(self, oprot):
12159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12161
      return
2981 rajveer 12162
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12163
    if self.user_id is not None:
2981 rajveer 12164
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12165
      oprot.writeI64(self.user_id)
559 chandransh 12166
      oprot.writeFieldEnd()
3431 rajveer 12167
    if self.entity_id is not None:
2981 rajveer 12168
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12169
      oprot.writeI64(self.entity_id)
559 chandransh 12170
      oprot.writeFieldEnd()
12171
    oprot.writeFieldStop()
12172
    oprot.writeStructEnd()
12173
 
3431 rajveer 12174
  def validate(self):
12175
    return
12176
 
12177
 
559 chandransh 12178
  def __repr__(self):
12179
    L = ['%s=%r' % (key, value)
12180
      for key, value in self.__dict__.iteritems()]
12181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12182
 
12183
  def __eq__(self, other):
12184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12185
 
12186
  def __ne__(self, other):
12187
    return not (self == other)
12188
 
2981 rajveer 12189
class getUserNotes_result:
12190
  """
12191
  Attributes:
12192
   - success
12193
  """
559 chandransh 12194
 
12195
  thrift_spec = (
2981 rajveer 12196
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12197
  )
12198
 
2981 rajveer 12199
  def __init__(self, success=None,):
12200
    self.success = success
12201
 
559 chandransh 12202
  def read(self, iprot):
12203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12205
      return
12206
    iprot.readStructBegin()
12207
    while True:
12208
      (fname, ftype, fid) = iprot.readFieldBegin()
12209
      if ftype == TType.STOP:
12210
        break
2981 rajveer 12211
      if fid == 0:
12212
        if ftype == TType.LIST:
12213
          self.success = []
5326 rajveer 12214
          (_etype147, _size144) = iprot.readListBegin()
12215
          for _i148 in xrange(_size144):
12216
            _elem149 = UserNote()
12217
            _elem149.read(iprot)
12218
            self.success.append(_elem149)
2981 rajveer 12219
          iprot.readListEnd()
12220
        else:
12221
          iprot.skip(ftype)
559 chandransh 12222
      else:
12223
        iprot.skip(ftype)
12224
      iprot.readFieldEnd()
12225
    iprot.readStructEnd()
12226
 
12227
  def write(self, oprot):
12228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12230
      return
2981 rajveer 12231
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12232
    if self.success is not None:
2981 rajveer 12233
      oprot.writeFieldBegin('success', TType.LIST, 0)
12234
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12235
      for iter150 in self.success:
12236
        iter150.write(oprot)
2981 rajveer 12237
      oprot.writeListEnd()
12238
      oprot.writeFieldEnd()
559 chandransh 12239
    oprot.writeFieldStop()
12240
    oprot.writeStructEnd()
12241
 
3431 rajveer 12242
  def validate(self):
12243
    return
12244
 
12245
 
559 chandransh 12246
  def __repr__(self):
12247
    L = ['%s=%r' % (key, value)
12248
      for key, value in self.__dict__.iteritems()]
12249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12250
 
12251
  def __eq__(self, other):
12252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12253
 
12254
  def __ne__(self, other):
12255
    return not (self == other)
12256
 
2981 rajveer 12257
class getMyResearchItems_args:
559 chandransh 12258
  """
12259
  Attributes:
772 rajveer 12260
   - userId
559 chandransh 12261
  """
12262
 
12263
  thrift_spec = (
12264
    None, # 0
772 rajveer 12265
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12266
  )
12267
 
772 rajveer 12268
  def __init__(self, userId=None,):
12269
    self.userId = userId
559 chandransh 12270
 
12271
  def read(self, iprot):
12272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12274
      return
12275
    iprot.readStructBegin()
12276
    while True:
12277
      (fname, ftype, fid) = iprot.readFieldBegin()
12278
      if ftype == TType.STOP:
12279
        break
12280
      if fid == 1:
12281
        if ftype == TType.I64:
772 rajveer 12282
          self.userId = iprot.readI64();
559 chandransh 12283
        else:
12284
          iprot.skip(ftype)
12285
      else:
12286
        iprot.skip(ftype)
12287
      iprot.readFieldEnd()
12288
    iprot.readStructEnd()
12289
 
12290
  def write(self, oprot):
12291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12293
      return
2981 rajveer 12294
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12295
    if self.userId is not None:
772 rajveer 12296
      oprot.writeFieldBegin('userId', TType.I64, 1)
12297
      oprot.writeI64(self.userId)
559 chandransh 12298
      oprot.writeFieldEnd()
12299
    oprot.writeFieldStop()
12300
    oprot.writeStructEnd()
12301
 
3431 rajveer 12302
  def validate(self):
12303
    return
12304
 
12305
 
559 chandransh 12306
  def __repr__(self):
12307
    L = ['%s=%r' % (key, value)
12308
      for key, value in self.__dict__.iteritems()]
12309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12310
 
12311
  def __eq__(self, other):
12312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12313
 
12314
  def __ne__(self, other):
12315
    return not (self == other)
12316
 
2981 rajveer 12317
class getMyResearchItems_result:
559 chandransh 12318
  """
12319
  Attributes:
130 ashish 12320
   - success
559 chandransh 12321
   - scx
130 ashish 12322
  """
12323
 
12324
  thrift_spec = (
2981 rajveer 12325
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12326
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12327
  )
12328
 
559 chandransh 12329
  def __init__(self, success=None, scx=None,):
130 ashish 12330
    self.success = success
559 chandransh 12331
    self.scx = scx
130 ashish 12332
 
12333
  def read(self, iprot):
12334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12336
      return
12337
    iprot.readStructBegin()
12338
    while True:
12339
      (fname, ftype, fid) = iprot.readFieldBegin()
12340
      if ftype == TType.STOP:
12341
        break
12342
      if fid == 0:
2981 rajveer 12343
        if ftype == TType.LIST:
12344
          self.success = []
5326 rajveer 12345
          (_etype154, _size151) = iprot.readListBegin()
12346
          for _i155 in xrange(_size151):
12347
            _elem156 = iprot.readI64();
12348
            self.success.append(_elem156)
2981 rajveer 12349
          iprot.readListEnd()
130 ashish 12350
        else:
12351
          iprot.skip(ftype)
12352
      elif fid == 1:
12353
        if ftype == TType.STRUCT:
559 chandransh 12354
          self.scx = WidgetException()
12355
          self.scx.read(iprot)
130 ashish 12356
        else:
12357
          iprot.skip(ftype)
12358
      else:
12359
        iprot.skip(ftype)
12360
      iprot.readFieldEnd()
12361
    iprot.readStructEnd()
12362
 
12363
  def write(self, oprot):
12364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12366
      return
2981 rajveer 12367
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12368
    if self.success is not None:
2981 rajveer 12369
      oprot.writeFieldBegin('success', TType.LIST, 0)
12370
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12371
      for iter157 in self.success:
12372
        oprot.writeI64(iter157)
2981 rajveer 12373
      oprot.writeListEnd()
130 ashish 12374
      oprot.writeFieldEnd()
3431 rajveer 12375
    if self.scx is not None:
559 chandransh 12376
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12377
      self.scx.write(oprot)
130 ashish 12378
      oprot.writeFieldEnd()
12379
    oprot.writeFieldStop()
12380
    oprot.writeStructEnd()
12381
 
3431 rajveer 12382
  def validate(self):
12383
    return
12384
 
12385
 
130 ashish 12386
  def __repr__(self):
12387
    L = ['%s=%r' % (key, value)
12388
      for key, value in self.__dict__.iteritems()]
12389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12390
 
12391
  def __eq__(self, other):
12392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12393
 
12394
  def __ne__(self, other):
12395
    return not (self == other)
12396
 
2981 rajveer 12397
class updateMyResearch_args:
130 ashish 12398
  """
12399
  Attributes:
2981 rajveer 12400
   - userId
12401
   - itemId
130 ashish 12402
  """
12403
 
12404
  thrift_spec = (
12405
    None, # 0
2981 rajveer 12406
    (1, TType.I64, 'userId', None, None, ), # 1
12407
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12408
  )
12409
 
2981 rajveer 12410
  def __init__(self, userId=None, itemId=None,):
12411
    self.userId = userId
12412
    self.itemId = itemId
130 ashish 12413
 
12414
  def read(self, iprot):
12415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12417
      return
12418
    iprot.readStructBegin()
12419
    while True:
12420
      (fname, ftype, fid) = iprot.readFieldBegin()
12421
      if ftype == TType.STOP:
12422
        break
12423
      if fid == 1:
559 chandransh 12424
        if ftype == TType.I64:
2981 rajveer 12425
          self.userId = iprot.readI64();
130 ashish 12426
        else:
12427
          iprot.skip(ftype)
12428
      elif fid == 2:
559 chandransh 12429
        if ftype == TType.I64:
2981 rajveer 12430
          self.itemId = iprot.readI64();
559 chandransh 12431
        else:
12432
          iprot.skip(ftype)
130 ashish 12433
      else:
12434
        iprot.skip(ftype)
12435
      iprot.readFieldEnd()
12436
    iprot.readStructEnd()
12437
 
12438
  def write(self, oprot):
12439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12441
      return
2981 rajveer 12442
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12443
    if self.userId is not None:
2981 rajveer 12444
      oprot.writeFieldBegin('userId', TType.I64, 1)
12445
      oprot.writeI64(self.userId)
130 ashish 12446
      oprot.writeFieldEnd()
3431 rajveer 12447
    if self.itemId is not None:
2981 rajveer 12448
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12449
      oprot.writeI64(self.itemId)
130 ashish 12450
      oprot.writeFieldEnd()
12451
    oprot.writeFieldStop()
12452
    oprot.writeStructEnd()
12453
 
3431 rajveer 12454
  def validate(self):
12455
    return
12456
 
12457
 
130 ashish 12458
  def __repr__(self):
12459
    L = ['%s=%r' % (key, value)
12460
      for key, value in self.__dict__.iteritems()]
12461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12462
 
12463
  def __eq__(self, other):
12464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12465
 
12466
  def __ne__(self, other):
12467
    return not (self == other)
12468
 
2981 rajveer 12469
class updateMyResearch_result:
12470
  """
12471
  Attributes:
12472
   - success
12473
   - scx
12474
  """
559 chandransh 12475
 
12476
  thrift_spec = (
2981 rajveer 12477
    (0, TType.BOOL, 'success', None, None, ), # 0
12478
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12479
  )
12480
 
2981 rajveer 12481
  def __init__(self, success=None, scx=None,):
12482
    self.success = success
12483
    self.scx = scx
12484
 
559 chandransh 12485
  def read(self, iprot):
12486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12488
      return
12489
    iprot.readStructBegin()
12490
    while True:
12491
      (fname, ftype, fid) = iprot.readFieldBegin()
12492
      if ftype == TType.STOP:
12493
        break
2981 rajveer 12494
      if fid == 0:
12495
        if ftype == TType.BOOL:
12496
          self.success = iprot.readBool();
12497
        else:
12498
          iprot.skip(ftype)
12499
      elif fid == 1:
12500
        if ftype == TType.STRUCT:
12501
          self.scx = WidgetException()
12502
          self.scx.read(iprot)
12503
        else:
12504
          iprot.skip(ftype)
559 chandransh 12505
      else:
12506
        iprot.skip(ftype)
12507
      iprot.readFieldEnd()
12508
    iprot.readStructEnd()
12509
 
12510
  def write(self, oprot):
12511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12513
      return
2981 rajveer 12514
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12515
    if self.success is not None:
2981 rajveer 12516
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12517
      oprot.writeBool(self.success)
12518
      oprot.writeFieldEnd()
3431 rajveer 12519
    if self.scx is not None:
2981 rajveer 12520
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12521
      self.scx.write(oprot)
12522
      oprot.writeFieldEnd()
559 chandransh 12523
    oprot.writeFieldStop()
12524
    oprot.writeStructEnd()
12525
 
3431 rajveer 12526
  def validate(self):
12527
    return
12528
 
12529
 
559 chandransh 12530
  def __repr__(self):
12531
    L = ['%s=%r' % (key, value)
12532
      for key, value in self.__dict__.iteritems()]
12533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12534
 
12535
  def __eq__(self, other):
12536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12537
 
12538
  def __ne__(self, other):
12539
    return not (self == other)
12540
 
2981 rajveer 12541
class deleteItemFromMyResearch_args:
1596 ankur.sing 12542
  """
12543
  Attributes:
2981 rajveer 12544
   - userId
12545
   - itemId
1596 ankur.sing 12546
  """
559 chandransh 12547
 
1596 ankur.sing 12548
  thrift_spec = (
12549
    None, # 0
2981 rajveer 12550
    (1, TType.I64, 'userId', None, None, ), # 1
12551
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12552
  )
12553
 
2981 rajveer 12554
  def __init__(self, userId=None, itemId=None,):
12555
    self.userId = userId
12556
    self.itemId = itemId
1596 ankur.sing 12557
 
12558
  def read(self, iprot):
12559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12561
      return
12562
    iprot.readStructBegin()
12563
    while True:
12564
      (fname, ftype, fid) = iprot.readFieldBegin()
12565
      if ftype == TType.STOP:
12566
        break
12567
      if fid == 1:
2981 rajveer 12568
        if ftype == TType.I64:
12569
          self.userId = iprot.readI64();
1596 ankur.sing 12570
        else:
12571
          iprot.skip(ftype)
2981 rajveer 12572
      elif fid == 2:
12573
        if ftype == TType.I64:
12574
          self.itemId = iprot.readI64();
12575
        else:
12576
          iprot.skip(ftype)
1596 ankur.sing 12577
      else:
12578
        iprot.skip(ftype)
12579
      iprot.readFieldEnd()
12580
    iprot.readStructEnd()
12581
 
12582
  def write(self, oprot):
12583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12585
      return
2981 rajveer 12586
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12587
    if self.userId is not None:
2981 rajveer 12588
      oprot.writeFieldBegin('userId', TType.I64, 1)
12589
      oprot.writeI64(self.userId)
1596 ankur.sing 12590
      oprot.writeFieldEnd()
3431 rajveer 12591
    if self.itemId is not None:
2981 rajveer 12592
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12593
      oprot.writeI64(self.itemId)
12594
      oprot.writeFieldEnd()
1596 ankur.sing 12595
    oprot.writeFieldStop()
12596
    oprot.writeStructEnd()
12597
 
3431 rajveer 12598
  def validate(self):
12599
    return
12600
 
12601
 
1596 ankur.sing 12602
  def __repr__(self):
12603
    L = ['%s=%r' % (key, value)
12604
      for key, value in self.__dict__.iteritems()]
12605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12606
 
12607
  def __eq__(self, other):
12608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12609
 
12610
  def __ne__(self, other):
12611
    return not (self == other)
12612
 
2981 rajveer 12613
class deleteItemFromMyResearch_result:
1596 ankur.sing 12614
  """
12615
  Attributes:
2981 rajveer 12616
   - scx
1596 ankur.sing 12617
  """
12618
 
12619
  thrift_spec = (
2981 rajveer 12620
    None, # 0
12621
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12622
  )
12623
 
2981 rajveer 12624
  def __init__(self, scx=None,):
12625
    self.scx = scx
1596 ankur.sing 12626
 
12627
  def read(self, iprot):
12628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12630
      return
12631
    iprot.readStructBegin()
12632
    while True:
12633
      (fname, ftype, fid) = iprot.readFieldBegin()
12634
      if ftype == TType.STOP:
12635
        break
2981 rajveer 12636
      if fid == 1:
12637
        if ftype == TType.STRUCT:
12638
          self.scx = WidgetException()
12639
          self.scx.read(iprot)
1596 ankur.sing 12640
        else:
12641
          iprot.skip(ftype)
12642
      else:
12643
        iprot.skip(ftype)
12644
      iprot.readFieldEnd()
12645
    iprot.readStructEnd()
12646
 
12647
  def write(self, oprot):
12648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12650
      return
2981 rajveer 12651
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12652
    if self.scx is not None:
2981 rajveer 12653
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12654
      self.scx.write(oprot)
1596 ankur.sing 12655
      oprot.writeFieldEnd()
12656
    oprot.writeFieldStop()
12657
    oprot.writeStructEnd()
12658
 
3431 rajveer 12659
  def validate(self):
12660
    return
12661
 
12662
 
1596 ankur.sing 12663
  def __repr__(self):
12664
    L = ['%s=%r' % (key, value)
12665
      for key, value in self.__dict__.iteritems()]
12666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12667
 
12668
  def __eq__(self, other):
12669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12670
 
12671
  def __ne__(self, other):
12672
    return not (self == other)
12673
 
2981 rajveer 12674
class getBrowseHistoryItems_args:
1673 ankur.sing 12675
  """
12676
  Attributes:
2981 rajveer 12677
   - userId
1673 ankur.sing 12678
  """
1596 ankur.sing 12679
 
1673 ankur.sing 12680
  thrift_spec = (
12681
    None, # 0
2981 rajveer 12682
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12683
  )
12684
 
2981 rajveer 12685
  def __init__(self, userId=None,):
12686
    self.userId = userId
1673 ankur.sing 12687
 
12688
  def read(self, iprot):
12689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12691
      return
12692
    iprot.readStructBegin()
12693
    while True:
12694
      (fname, ftype, fid) = iprot.readFieldBegin()
12695
      if ftype == TType.STOP:
12696
        break
12697
      if fid == 1:
1891 ankur.sing 12698
        if ftype == TType.I64:
2981 rajveer 12699
          self.userId = iprot.readI64();
1891 ankur.sing 12700
        else:
12701
          iprot.skip(ftype)
1673 ankur.sing 12702
      else:
12703
        iprot.skip(ftype)
12704
      iprot.readFieldEnd()
12705
    iprot.readStructEnd()
12706
 
12707
  def write(self, oprot):
12708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12710
      return
2981 rajveer 12711
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12712
    if self.userId is not None:
2981 rajveer 12713
      oprot.writeFieldBegin('userId', TType.I64, 1)
12714
      oprot.writeI64(self.userId)
1673 ankur.sing 12715
      oprot.writeFieldEnd()
12716
    oprot.writeFieldStop()
12717
    oprot.writeStructEnd()
12718
 
3431 rajveer 12719
  def validate(self):
12720
    return
12721
 
12722
 
1673 ankur.sing 12723
  def __repr__(self):
12724
    L = ['%s=%r' % (key, value)
12725
      for key, value in self.__dict__.iteritems()]
12726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12727
 
12728
  def __eq__(self, other):
12729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12730
 
12731
  def __ne__(self, other):
12732
    return not (self == other)
12733
 
2981 rajveer 12734
class getBrowseHistoryItems_result:
1673 ankur.sing 12735
  """
12736
  Attributes:
12737
   - success
2981 rajveer 12738
   - scx
1673 ankur.sing 12739
  """
12740
 
12741
  thrift_spec = (
2981 rajveer 12742
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12743
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12744
  )
12745
 
2981 rajveer 12746
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12747
    self.success = success
2981 rajveer 12748
    self.scx = scx
1673 ankur.sing 12749
 
12750
  def read(self, iprot):
12751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12753
      return
12754
    iprot.readStructBegin()
12755
    while True:
12756
      (fname, ftype, fid) = iprot.readFieldBegin()
12757
      if ftype == TType.STOP:
12758
        break
12759
      if fid == 0:
12760
        if ftype == TType.LIST:
12761
          self.success = []
5326 rajveer 12762
          (_etype161, _size158) = iprot.readListBegin()
12763
          for _i162 in xrange(_size158):
12764
            _elem163 = iprot.readI64();
12765
            self.success.append(_elem163)
1673 ankur.sing 12766
          iprot.readListEnd()
12767
        else:
12768
          iprot.skip(ftype)
2981 rajveer 12769
      elif fid == 1:
12770
        if ftype == TType.STRUCT:
12771
          self.scx = WidgetException()
12772
          self.scx.read(iprot)
12773
        else:
12774
          iprot.skip(ftype)
1673 ankur.sing 12775
      else:
12776
        iprot.skip(ftype)
12777
      iprot.readFieldEnd()
12778
    iprot.readStructEnd()
12779
 
12780
  def write(self, oprot):
12781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12783
      return
2981 rajveer 12784
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12785
    if self.success is not None:
1673 ankur.sing 12786
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12787
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12788
      for iter164 in self.success:
12789
        oprot.writeI64(iter164)
1673 ankur.sing 12790
      oprot.writeListEnd()
12791
      oprot.writeFieldEnd()
3431 rajveer 12792
    if self.scx is not None:
2981 rajveer 12793
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12794
      self.scx.write(oprot)
2642 varun.gupt 12795
      oprot.writeFieldEnd()
12796
    oprot.writeFieldStop()
12797
    oprot.writeStructEnd()
12798
 
3431 rajveer 12799
  def validate(self):
12800
    return
12801
 
12802
 
2642 varun.gupt 12803
  def __repr__(self):
12804
    L = ['%s=%r' % (key, value)
12805
      for key, value in self.__dict__.iteritems()]
12806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12807
 
12808
  def __eq__(self, other):
12809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12810
 
12811
  def __ne__(self, other):
12812
    return not (self == other)
12813
 
2981 rajveer 12814
class updateBrowseHistory_args:
2642 varun.gupt 12815
  """
12816
  Attributes:
2981 rajveer 12817
   - userId
12818
   - itemId
2642 varun.gupt 12819
  """
12820
 
12821
  thrift_spec = (
12822
    None, # 0
2981 rajveer 12823
    (1, TType.I64, 'userId', None, None, ), # 1
12824
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12825
  )
12826
 
2981 rajveer 12827
  def __init__(self, userId=None, itemId=None,):
12828
    self.userId = userId
12829
    self.itemId = itemId
2642 varun.gupt 12830
 
12831
  def read(self, iprot):
12832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12834
      return
12835
    iprot.readStructBegin()
12836
    while True:
12837
      (fname, ftype, fid) = iprot.readFieldBegin()
12838
      if ftype == TType.STOP:
12839
        break
12840
      if fid == 1:
12841
        if ftype == TType.I64:
2981 rajveer 12842
          self.userId = iprot.readI64();
2642 varun.gupt 12843
        else:
12844
          iprot.skip(ftype)
12845
      elif fid == 2:
12846
        if ftype == TType.I64:
2981 rajveer 12847
          self.itemId = iprot.readI64();
2642 varun.gupt 12848
        else:
12849
          iprot.skip(ftype)
12850
      else:
12851
        iprot.skip(ftype)
12852
      iprot.readFieldEnd()
12853
    iprot.readStructEnd()
12854
 
12855
  def write(self, oprot):
12856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12858
      return
2981 rajveer 12859
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12860
    if self.userId is not None:
2981 rajveer 12861
      oprot.writeFieldBegin('userId', TType.I64, 1)
12862
      oprot.writeI64(self.userId)
2642 varun.gupt 12863
      oprot.writeFieldEnd()
3431 rajveer 12864
    if self.itemId is not None:
2981 rajveer 12865
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12866
      oprot.writeI64(self.itemId)
2642 varun.gupt 12867
      oprot.writeFieldEnd()
12868
    oprot.writeFieldStop()
12869
    oprot.writeStructEnd()
12870
 
3431 rajveer 12871
  def validate(self):
12872
    return
12873
 
12874
 
2642 varun.gupt 12875
  def __repr__(self):
12876
    L = ['%s=%r' % (key, value)
12877
      for key, value in self.__dict__.iteritems()]
12878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12879
 
12880
  def __eq__(self, other):
12881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12882
 
12883
  def __ne__(self, other):
12884
    return not (self == other)
12885
 
2981 rajveer 12886
class updateBrowseHistory_result:
2642 varun.gupt 12887
 
12888
  thrift_spec = (
12889
  )
12890
 
12891
  def read(self, iprot):
12892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12894
      return
12895
    iprot.readStructBegin()
12896
    while True:
12897
      (fname, ftype, fid) = iprot.readFieldBegin()
12898
      if ftype == TType.STOP:
12899
        break
12900
      else:
12901
        iprot.skip(ftype)
12902
      iprot.readFieldEnd()
12903
    iprot.readStructEnd()
12904
 
12905
  def write(self, oprot):
12906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12908
      return
2981 rajveer 12909
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12910
    oprot.writeFieldStop()
12911
    oprot.writeStructEnd()
12912
 
3431 rajveer 12913
  def validate(self):
12914
    return
12915
 
12916
 
2642 varun.gupt 12917
  def __repr__(self):
12918
    L = ['%s=%r' % (key, value)
12919
      for key, value in self.__dict__.iteritems()]
12920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12921
 
12922
  def __eq__(self, other):
12923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12924
 
12925
  def __ne__(self, other):
12926
    return not (self == other)
12927
 
3385 varun.gupt 12928
class getCartsWithCouponCount_args:
12929
  """
12930
  Attributes:
12931
   - couponCode
12932
  """
2642 varun.gupt 12933
 
3385 varun.gupt 12934
  thrift_spec = (
12935
    None, # 0
12936
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12937
  )
12938
 
12939
  def __init__(self, couponCode=None,):
12940
    self.couponCode = couponCode
12941
 
12942
  def read(self, iprot):
12943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12945
      return
12946
    iprot.readStructBegin()
12947
    while True:
12948
      (fname, ftype, fid) = iprot.readFieldBegin()
12949
      if ftype == TType.STOP:
12950
        break
12951
      if fid == 1:
12952
        if ftype == TType.STRING:
12953
          self.couponCode = iprot.readString();
12954
        else:
12955
          iprot.skip(ftype)
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
12965
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12966
    if self.couponCode is not None:
3385 varun.gupt 12967
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12968
      oprot.writeString(self.couponCode)
12969
      oprot.writeFieldEnd()
12970
    oprot.writeFieldStop()
12971
    oprot.writeStructEnd()
12972
 
3431 rajveer 12973
  def validate(self):
12974
    return
12975
 
12976
 
3385 varun.gupt 12977
  def __repr__(self):
12978
    L = ['%s=%r' % (key, value)
12979
      for key, value in self.__dict__.iteritems()]
12980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12981
 
12982
  def __eq__(self, other):
12983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12984
 
12985
  def __ne__(self, other):
12986
    return not (self == other)
12987
 
12988
class getCartsWithCouponCount_result:
12989
  """
12990
  Attributes:
12991
   - success
12992
  """
12993
 
12994
  thrift_spec = (
12995
    (0, TType.I64, 'success', None, None, ), # 0
12996
  )
12997
 
12998
  def __init__(self, success=None,):
12999
    self.success = success
13000
 
13001
  def read(self, iprot):
13002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13004
      return
13005
    iprot.readStructBegin()
13006
    while True:
13007
      (fname, ftype, fid) = iprot.readFieldBegin()
13008
      if ftype == TType.STOP:
13009
        break
13010
      if fid == 0:
13011
        if ftype == TType.I64:
13012
          self.success = iprot.readI64();
13013
        else:
13014
          iprot.skip(ftype)
13015
      else:
13016
        iprot.skip(ftype)
13017
      iprot.readFieldEnd()
13018
    iprot.readStructEnd()
13019
 
13020
  def write(self, oprot):
13021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13023
      return
13024
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13025
    if self.success is not None:
3385 varun.gupt 13026
      oprot.writeFieldBegin('success', TType.I64, 0)
13027
      oprot.writeI64(self.success)
13028
      oprot.writeFieldEnd()
13029
    oprot.writeFieldStop()
13030
    oprot.writeStructEnd()
13031
 
3431 rajveer 13032
  def validate(self):
13033
    return
13034
 
13035
 
3385 varun.gupt 13036
  def __repr__(self):
13037
    L = ['%s=%r' % (key, value)
13038
      for key, value in self.__dict__.iteritems()]
13039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13040
 
13041
  def __eq__(self, other):
13042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13043
 
13044
  def __ne__(self, other):
13045
    return not (self == other)
3499 mandeep.dh 13046
 
13047
class increaseTrustLevel_args:
13048
  """
13049
  Attributes:
13050
   - userId
13051
   - trustLevelDelta
13052
  """
13053
 
13054
  thrift_spec = (
13055
    None, # 0
13056
    (1, TType.I64, 'userId', None, None, ), # 1
13057
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13058
  )
13059
 
13060
  def __init__(self, userId=None, trustLevelDelta=None,):
13061
    self.userId = userId
13062
    self.trustLevelDelta = trustLevelDelta
13063
 
13064
  def read(self, iprot):
13065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13067
      return
13068
    iprot.readStructBegin()
13069
    while True:
13070
      (fname, ftype, fid) = iprot.readFieldBegin()
13071
      if ftype == TType.STOP:
13072
        break
13073
      if fid == 1:
13074
        if ftype == TType.I64:
13075
          self.userId = iprot.readI64();
13076
        else:
13077
          iprot.skip(ftype)
13078
      elif fid == 2:
13079
        if ftype == TType.DOUBLE:
13080
          self.trustLevelDelta = iprot.readDouble();
13081
        else:
13082
          iprot.skip(ftype)
13083
      else:
13084
        iprot.skip(ftype)
13085
      iprot.readFieldEnd()
13086
    iprot.readStructEnd()
13087
 
13088
  def write(self, oprot):
13089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13091
      return
13092
    oprot.writeStructBegin('increaseTrustLevel_args')
13093
    if self.userId is not None:
13094
      oprot.writeFieldBegin('userId', TType.I64, 1)
13095
      oprot.writeI64(self.userId)
13096
      oprot.writeFieldEnd()
13097
    if self.trustLevelDelta is not None:
13098
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13099
      oprot.writeDouble(self.trustLevelDelta)
13100
      oprot.writeFieldEnd()
13101
    oprot.writeFieldStop()
13102
    oprot.writeStructEnd()
13103
 
13104
  def validate(self):
13105
    return
13106
 
13107
 
13108
  def __repr__(self):
13109
    L = ['%s=%r' % (key, value)
13110
      for key, value in self.__dict__.iteritems()]
13111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13112
 
13113
  def __eq__(self, other):
13114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13115
 
13116
  def __ne__(self, other):
13117
    return not (self == other)
4668 varun.gupt 13118
 
5407 amar.kumar 13119
class getTrustLevel_args:
13120
  """
13121
  Attributes:
13122
   - userId
13123
  """
13124
 
13125
  thrift_spec = (
13126
    None, # 0
13127
    (1, TType.I64, 'userId', None, None, ), # 1
13128
  )
13129
 
13130
  def __init__(self, userId=None,):
13131
    self.userId = userId
13132
 
13133
  def read(self, iprot):
13134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13136
      return
13137
    iprot.readStructBegin()
13138
    while True:
13139
      (fname, ftype, fid) = iprot.readFieldBegin()
13140
      if ftype == TType.STOP:
13141
        break
13142
      if fid == 1:
13143
        if ftype == TType.I64:
13144
          self.userId = iprot.readI64();
13145
        else:
13146
          iprot.skip(ftype)
13147
      else:
13148
        iprot.skip(ftype)
13149
      iprot.readFieldEnd()
13150
    iprot.readStructEnd()
13151
 
13152
  def write(self, oprot):
13153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13155
      return
13156
    oprot.writeStructBegin('getTrustLevel_args')
13157
    if self.userId is not None:
13158
      oprot.writeFieldBegin('userId', TType.I64, 1)
13159
      oprot.writeI64(self.userId)
13160
      oprot.writeFieldEnd()
13161
    oprot.writeFieldStop()
13162
    oprot.writeStructEnd()
13163
 
13164
  def validate(self):
13165
    return
13166
 
13167
 
13168
  def __repr__(self):
13169
    L = ['%s=%r' % (key, value)
13170
      for key, value in self.__dict__.iteritems()]
13171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13172
 
13173
  def __eq__(self, other):
13174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13175
 
13176
  def __ne__(self, other):
13177
    return not (self == other)
13178
 
13179
class getTrustLevel_result:
13180
  """
13181
  Attributes:
13182
   - success
13183
  """
13184
 
13185
  thrift_spec = (
13186
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13187
  )
13188
 
13189
  def __init__(self, success=None,):
13190
    self.success = success
13191
 
13192
  def read(self, iprot):
13193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13195
      return
13196
    iprot.readStructBegin()
13197
    while True:
13198
      (fname, ftype, fid) = iprot.readFieldBegin()
13199
      if ftype == TType.STOP:
13200
        break
13201
      if fid == 0:
13202
        if ftype == TType.DOUBLE:
13203
          self.success = iprot.readDouble();
13204
        else:
13205
          iprot.skip(ftype)
13206
      else:
13207
        iprot.skip(ftype)
13208
      iprot.readFieldEnd()
13209
    iprot.readStructEnd()
13210
 
13211
  def write(self, oprot):
13212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13214
      return
13215
    oprot.writeStructBegin('getTrustLevel_result')
13216
    if self.success is not None:
13217
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13218
      oprot.writeDouble(self.success)
13219
      oprot.writeFieldEnd()
13220
    oprot.writeFieldStop()
13221
    oprot.writeStructEnd()
13222
 
13223
  def validate(self):
13224
    return
13225
 
13226
 
13227
  def __repr__(self):
13228
    L = ['%s=%r' % (key, value)
13229
      for key, value in self.__dict__.iteritems()]
13230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13231
 
13232
  def __eq__(self, other):
13233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13234
 
13235
  def __ne__(self, other):
13236
    return not (self == other)
13237
 
4668 varun.gupt 13238
class showCODOption_args:
13239
  """
13240
  Attributes:
13241
   - cartId
13242
   - sourceId
13243
   - pincode
13244
  """
13245
 
13246
  thrift_spec = (
13247
    None, # 0
13248
    (1, TType.I64, 'cartId', None, None, ), # 1
13249
    (2, TType.I64, 'sourceId', None, None, ), # 2
13250
    (3, TType.STRING, 'pincode', None, None, ), # 3
13251
  )
13252
 
13253
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13254
    self.cartId = cartId
13255
    self.sourceId = sourceId
13256
    self.pincode = pincode
13257
 
13258
  def read(self, iprot):
13259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13261
      return
13262
    iprot.readStructBegin()
13263
    while True:
13264
      (fname, ftype, fid) = iprot.readFieldBegin()
13265
      if ftype == TType.STOP:
13266
        break
13267
      if fid == 1:
13268
        if ftype == TType.I64:
13269
          self.cartId = iprot.readI64();
13270
        else:
13271
          iprot.skip(ftype)
13272
      elif fid == 2:
13273
        if ftype == TType.I64:
13274
          self.sourceId = iprot.readI64();
13275
        else:
13276
          iprot.skip(ftype)
13277
      elif fid == 3:
13278
        if ftype == TType.STRING:
13279
          self.pincode = iprot.readString();
13280
        else:
13281
          iprot.skip(ftype)
13282
      else:
13283
        iprot.skip(ftype)
13284
      iprot.readFieldEnd()
13285
    iprot.readStructEnd()
13286
 
13287
  def write(self, oprot):
13288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13290
      return
13291
    oprot.writeStructBegin('showCODOption_args')
13292
    if self.cartId is not None:
13293
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13294
      oprot.writeI64(self.cartId)
13295
      oprot.writeFieldEnd()
13296
    if self.sourceId is not None:
13297
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13298
      oprot.writeI64(self.sourceId)
13299
      oprot.writeFieldEnd()
13300
    if self.pincode is not None:
13301
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13302
      oprot.writeString(self.pincode)
13303
      oprot.writeFieldEnd()
13304
    oprot.writeFieldStop()
13305
    oprot.writeStructEnd()
13306
 
13307
  def validate(self):
13308
    return
13309
 
13310
 
13311
  def __repr__(self):
13312
    L = ['%s=%r' % (key, value)
13313
      for key, value in self.__dict__.iteritems()]
13314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13315
 
13316
  def __eq__(self, other):
13317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13318
 
13319
  def __ne__(self, other):
13320
    return not (self == other)
13321
 
13322
class showCODOption_result:
13323
  """
13324
  Attributes:
13325
   - success
13326
  """
13327
 
13328
  thrift_spec = (
13329
    (0, TType.BOOL, 'success', None, None, ), # 0
13330
  )
13331
 
13332
  def __init__(self, success=None,):
13333
    self.success = success
13334
 
13335
  def read(self, iprot):
13336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13338
      return
13339
    iprot.readStructBegin()
13340
    while True:
13341
      (fname, ftype, fid) = iprot.readFieldBegin()
13342
      if ftype == TType.STOP:
13343
        break
13344
      if fid == 0:
13345
        if ftype == TType.BOOL:
13346
          self.success = iprot.readBool();
13347
        else:
13348
          iprot.skip(ftype)
13349
      else:
13350
        iprot.skip(ftype)
13351
      iprot.readFieldEnd()
13352
    iprot.readStructEnd()
13353
 
13354
  def write(self, oprot):
13355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13357
      return
13358
    oprot.writeStructBegin('showCODOption_result')
13359
    if self.success is not None:
13360
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13361
      oprot.writeBool(self.success)
13362
      oprot.writeFieldEnd()
13363
    oprot.writeFieldStop()
13364
    oprot.writeStructEnd()
13365
 
13366
  def validate(self):
13367
    return
13368
 
13369
 
13370
  def __repr__(self):
13371
    L = ['%s=%r' % (key, value)
13372
      for key, value in self.__dict__.iteritems()]
13373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13374
 
13375
  def __eq__(self, other):
13376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13377
 
13378
  def __ne__(self, other):
13379
    return not (self == other)