Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
1491 vikas 37
  def getUserByEmail(self, email):
38
    """
39
    Parameters:
40
     - email
41
    """
42
    pass
43
 
3032 mandeep.dh 44
  def getUserByMobileNumber(self, mobileNumber):
45
    """
46
    Parameters:
47
     - mobileNumber
48
    """
49
    pass
50
 
559 chandransh 51
  def createUser(self, user):
94 ashish 52
    """
53
    Parameters:
559 chandransh 54
     - user
94 ashish 55
    """
56
    pass
57
 
559 chandransh 58
  def updateUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def deleteUser(self, userId):
94 ashish 66
    """
67
    Parameters:
68
     - userId
69
    """
70
    pass
71
 
559 chandransh 72
  def getUserState(self, userId):
94 ashish 73
    """
74
    Parameters:
75
     - userId
76
    """
77
    pass
78
 
559 chandransh 79
  def authenticateUser(self, email, password):
94 ashish 80
    """
81
    Parameters:
82
     - email
83
     - password
84
    """
85
    pass
86
 
87
  def userExists(self, email):
88
    """
89
    Parameters:
90
     - email
91
    """
92
    pass
93
 
567 rajveer 94
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 95
    """
96
    Parameters:
97
     - userId
98
     - address
513 rajveer 99
     - setDefault
94 ashish 100
    """
101
    pass
102
 
103
  def removeAddressForUser(self, userid, addressId):
104
    """
105
    Parameters:
106
     - userid
107
     - addressId
108
    """
109
    pass
110
 
111
  def setUserAsLoggedIn(self, userId, timestamp):
112
    """
113
    Parameters:
114
     - userId
115
     - timestamp
116
    """
117
    pass
118
 
119
  def setUserAsLoggedOut(self, userid, timestamp):
120
    """
121
    Parameters:
122
     - userid
123
     - timestamp
124
    """
125
    pass
126
 
504 rajveer 127
  def setDefaultAddress(self, userid, addressId):
128
    """
129
    Parameters:
130
     - userid
131
     - addressId
132
    """
133
    pass
134
 
594 rajveer 135
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 136
    """
137
    Parameters:
138
     - userid
594 rajveer 139
     - oldPassword
140
     - newPassword
94 ashish 141
    """
142
    pass
143
 
884 rajveer 144
  def forgotPassword(self, email, newPassword):
581 rajveer 145
    """
146
    Parameters:
147
     - email
884 rajveer 148
     - newPassword
581 rajveer 149
    """
150
    pass
151
 
594 rajveer 152
  def getAllAddressesForUser(self, userId):
153
    """
154
    Parameters:
155
     - userId
156
    """
157
    pass
158
 
1894 vikas 159
  def getAddressById(self, addressId):
160
    """
161
    Parameters:
162
     - addressId
163
    """
164
    pass
165
 
594 rajveer 166
  def getDefaultAddressId(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
785 rajveer 173
  def getDefaultPincode(self, userId):
174
    """
175
    Parameters:
176
     - userId
177
    """
178
    pass
179
 
1274 varun.gupt 180
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
181
    """
182
    Parameters:
183
     - userId
184
     - replyTo
185
     - communicationType
186
     - orderId
187
     - airwaybillNo
188
     - productName
189
     - subject
190
     - message
191
    """
192
    pass
193
 
1590 varun.gupt 194
  def getUserCommunicationById(self, id):
195
    """
196
    Parameters:
197
     - id
198
    """
199
    pass
200
 
201
  def getUserCommunicationByUser(self, userId):
202
    """
203
    Parameters:
204
     - userId
205
    """
206
    pass
207
 
208
  def getAllUserCommunications(self, ):
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def createCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCurrentCart(self, userId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - userId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCart(self, cartId):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - cartId
94 ashish 336
    """
337
    pass
338
 
559 chandransh 339
  def getCartsForUser(self, userId, status):
94 ashish 340
    """
341
    Parameters:
559 chandransh 342
     - userId
343
     - status
94 ashish 344
    """
345
    pass
346
 
559 chandransh 347
  def getCartsByStatus(self, status):
94 ashish 348
    """
349
    Parameters:
559 chandransh 350
     - status
94 ashish 351
    """
352
    pass
353
 
559 chandransh 354
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 355
    """
356
    Parameters:
559 chandransh 357
     - from_time
358
     - to_time
359
     - status
94 ashish 360
    """
361
    pass
362
 
559 chandransh 363
  def changeCartStatus(self, cartId, status):
130 ashish 364
    """
365
    Parameters:
559 chandransh 366
     - cartId
367
     - status
130 ashish 368
    """
369
    pass
94 ashish 370
 
559 chandransh 371
  def addItemToCart(self, cartId, itemId, quantity):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
130 ashish 377
    """
378
    pass
379
 
559 chandransh 380
  def deleteItemFromCart(self, cartId, itemId):
381
    """
382
    Parameters:
383
     - cartId
384
     - itemId
385
    """
386
    pass
130 ashish 387
 
559 chandransh 388
  def changeQuantity(self, cartId, itemId, quantity):
389
    """
390
    Parameters:
391
     - cartId
392
     - itemId
393
     - quantity
394
    """
395
    pass
396
 
397
  def changeItemStatus(self, cartId, itemId, status):
398
    """
399
    Parameters:
400
     - cartId
401
     - itemId
402
     - status
403
    """
404
    pass
405
 
406
  def addAddressToCart(self, cartId, addressId):
407
    """
408
    Parameters:
409
     - cartId
410
     - addressId
411
    """
412
    pass
413
 
1976 varun.gupt 414
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
415
    """
416
    Parameters:
417
     - cartId
418
     - couponCode
419
     - totalPrice
420
     - discountedPrice
421
    """
422
    pass
423
 
424
  def removeCoupon(self, cartId):
425
    """
426
    Parameters:
427
     - cartId
428
    """
429
    pass
430
 
2815 vikas 431
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 432
    """
690 chandransh 433
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 434
 
559 chandransh 435
    Parameters:
436
     - cartId
2815 vikas 437
     - sessionSource
438
     - sessionStartTime
559 chandransh 439
    """
440
    pass
441
 
442
  def validateCart(self, cartId):
443
    """
690 chandransh 444
    Validates that:
445
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 446
    2. All of the lines in the cart are active items.
690 chandransh 447
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 448
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 449
 
559 chandransh 450
    Parameters:
451
     - cartId
452
    """
453
    pass
454
 
690 chandransh 455
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 456
    """
690 chandransh 457
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 458
 
575 chandransh 459
    Parameters:
690 chandransh 460
     - fromCartId
461
     - toCartId
462
    """
463
    pass
464
 
465
  def checkOut(self, cartId):
466
    """
467
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 468
 
690 chandransh 469
    Parameters:
575 chandransh 470
     - cartId
471
    """
472
    pass
473
 
690 chandransh 474
  def resetCart(self, cartId, items):
559 chandransh 475
    """
690 chandransh 476
    The second parameter is a map of item ids and their quantities which have been successfully processed.
477
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 478
 
559 chandransh 479
    Parameters:
690 chandransh 480
     - cartId
481
     - items
559 chandransh 482
    """
483
    pass
484
 
2981 rajveer 485
  def getUserCount(self, userType):
559 chandransh 486
    """
2981 rajveer 487
    Returns number of registered users.
488
    If userType = null, then it returns count of all users, including anonymous
489
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
490
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 491
 
559 chandransh 492
    Parameters:
2981 rajveer 493
     - userType
559 chandransh 494
    """
495
    pass
496
 
2981 rajveer 497
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 498
    """
2981 rajveer 499
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
500
    If any of startDate or endDate is -1, then that filter is ignored.
501
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 502
 
503
 
559 chandransh 504
    Parameters:
2981 rajveer 505
     - userType
506
     - startDate
507
     - endDate
559 chandransh 508
    """
509
    pass
510
 
2981 rajveer 511
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 512
    """
513
    Parameters:
2981 rajveer 514
     - user_id
515
     - entity_id
516
     - slide
517
     - note
559 chandransh 518
    """
519
    pass
520
 
2981 rajveer 521
  def getUserNotes(self, user_id, entity_id):
559 chandransh 522
    """
523
    Parameters:
2981 rajveer 524
     - user_id
525
     - entity_id
559 chandransh 526
    """
527
    pass
528
 
2981 rajveer 529
  def getMyResearchItems(self, userId):
559 chandransh 530
    """
2981 rajveer 531
    Returns list of item ids in myresearch for the user
3431 rajveer 532
 
559 chandransh 533
    Parameters:
534
     - userId
535
    """
536
    pass
537
 
2981 rajveer 538
  def updateMyResearch(self, userId, itemId):
559 chandransh 539
    """
2981 rajveer 540
    add item to my research for a user
3431 rajveer 541
 
559 chandransh 542
    Parameters:
2981 rajveer 543
     - userId
544
     - itemId
559 chandransh 545
    """
546
    pass
547
 
2981 rajveer 548
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 549
    """
2981 rajveer 550
    delete item from my research for a user
3431 rajveer 551
 
1596 ankur.sing 552
    Parameters:
2981 rajveer 553
     - userId
554
     - itemId
1596 ankur.sing 555
    """
556
    pass
559 chandransh 557
 
2981 rajveer 558
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 559
    """
2981 rajveer 560
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 561
 
1673 ankur.sing 562
    Parameters:
2981 rajveer 563
     - userId
1673 ankur.sing 564
    """
565
    pass
1596 ankur.sing 566
 
2981 rajveer 567
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 568
    """
2981 rajveer 569
    add item to browse history for a user
3431 rajveer 570
 
2642 varun.gupt 571
    Parameters:
2981 rajveer 572
     - userId
573
     - itemId
2642 varun.gupt 574
    """
575
    pass
1673 ankur.sing 576
 
3385 varun.gupt 577
  def getCartsWithCouponCount(self, couponCode):
578
    """
579
    Returns count of Carts with given coupon applied
3431 rajveer 580
 
3385 varun.gupt 581
    Parameters:
582
     - couponCode
583
    """
584
    pass
2642 varun.gupt 585
 
3499 mandeep.dh 586
  def increaseTrustLevel(self, userId, trustLevelDelta):
587
    """
588
    Updates COD trust level of a user
3385 varun.gupt 589
 
3499 mandeep.dh 590
    Parameters:
591
     - userId
592
     - trustLevelDelta
593
    """
594
    pass
595
 
596
 
3376 rajveer 597
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 598
  """
599
  service
600
  """
601
  def __init__(self, iprot, oprot=None):
3376 rajveer 602
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 603
 
559 chandransh 604
  def createAnonymousUser(self, jsessionId):
94 ashish 605
    """
606
    Parameters:
559 chandransh 607
     - jsessionId
94 ashish 608
    """
559 chandransh 609
    self.send_createAnonymousUser(jsessionId)
610
    return self.recv_createAnonymousUser()
94 ashish 611
 
559 chandransh 612
  def send_createAnonymousUser(self, jsessionId):
613
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
614
    args = createAnonymousUser_args()
615
    args.jsessionId = jsessionId
94 ashish 616
    args.write(self._oprot)
617
    self._oprot.writeMessageEnd()
618
    self._oprot.trans.flush()
619
 
559 chandransh 620
  def recv_createAnonymousUser(self, ):
94 ashish 621
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
622
    if mtype == TMessageType.EXCEPTION:
623
      x = TApplicationException()
624
      x.read(self._iprot)
625
      self._iprot.readMessageEnd()
626
      raise x
559 chandransh 627
    result = createAnonymousUser_result()
94 ashish 628
    result.read(self._iprot)
629
    self._iprot.readMessageEnd()
3431 rajveer 630
    if result.success is not None:
94 ashish 631
      return result.success
3431 rajveer 632
    if result.ucex is not None:
559 chandransh 633
      raise result.ucex
634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 635
 
559 chandransh 636
  def getUserById(self, userId):
94 ashish 637
    """
638
    Parameters:
639
     - userId
640
    """
559 chandransh 641
    self.send_getUserById(userId)
642
    return self.recv_getUserById()
94 ashish 643
 
559 chandransh 644
  def send_getUserById(self, userId):
645
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
646
    args = getUserById_args()
94 ashish 647
    args.userId = userId
648
    args.write(self._oprot)
649
    self._oprot.writeMessageEnd()
650
    self._oprot.trans.flush()
651
 
559 chandransh 652
  def recv_getUserById(self, ):
94 ashish 653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
654
    if mtype == TMessageType.EXCEPTION:
655
      x = TApplicationException()
656
      x.read(self._iprot)
657
      self._iprot.readMessageEnd()
658
      raise x
559 chandransh 659
    result = getUserById_result()
94 ashish 660
    result.read(self._iprot)
661
    self._iprot.readMessageEnd()
3431 rajveer 662
    if result.success is not None:
94 ashish 663
      return result.success
3431 rajveer 664
    if result.ucex is not None:
559 chandransh 665
      raise result.ucex
666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 667
 
1491 vikas 668
  def getUserByEmail(self, email):
669
    """
670
    Parameters:
671
     - email
672
    """
673
    self.send_getUserByEmail(email)
674
    return self.recv_getUserByEmail()
675
 
676
  def send_getUserByEmail(self, email):
677
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
678
    args = getUserByEmail_args()
679
    args.email = email
680
    args.write(self._oprot)
681
    self._oprot.writeMessageEnd()
682
    self._oprot.trans.flush()
683
 
684
  def recv_getUserByEmail(self, ):
685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
686
    if mtype == TMessageType.EXCEPTION:
687
      x = TApplicationException()
688
      x.read(self._iprot)
689
      self._iprot.readMessageEnd()
690
      raise x
691
    result = getUserByEmail_result()
692
    result.read(self._iprot)
693
    self._iprot.readMessageEnd()
3431 rajveer 694
    if result.success is not None:
1491 vikas 695
      return result.success
3431 rajveer 696
    if result.ucex is not None:
1491 vikas 697
      raise result.ucex
698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
699
 
3032 mandeep.dh 700
  def getUserByMobileNumber(self, mobileNumber):
701
    """
702
    Parameters:
703
     - mobileNumber
704
    """
705
    self.send_getUserByMobileNumber(mobileNumber)
706
    return self.recv_getUserByMobileNumber()
707
 
708
  def send_getUserByMobileNumber(self, mobileNumber):
709
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
710
    args = getUserByMobileNumber_args()
711
    args.mobileNumber = mobileNumber
712
    args.write(self._oprot)
713
    self._oprot.writeMessageEnd()
714
    self._oprot.trans.flush()
715
 
716
  def recv_getUserByMobileNumber(self, ):
717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
718
    if mtype == TMessageType.EXCEPTION:
719
      x = TApplicationException()
720
      x.read(self._iprot)
721
      self._iprot.readMessageEnd()
722
      raise x
723
    result = getUserByMobileNumber_result()
724
    result.read(self._iprot)
725
    self._iprot.readMessageEnd()
3431 rajveer 726
    if result.success is not None:
3032 mandeep.dh 727
      return result.success
3431 rajveer 728
    if result.ucex is not None:
3032 mandeep.dh 729
      raise result.ucex
730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
731
 
559 chandransh 732
  def createUser(self, user):
94 ashish 733
    """
734
    Parameters:
559 chandransh 735
     - user
94 ashish 736
    """
559 chandransh 737
    self.send_createUser(user)
738
    return self.recv_createUser()
94 ashish 739
 
559 chandransh 740
  def send_createUser(self, user):
741
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
742
    args = createUser_args()
743
    args.user = user
94 ashish 744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
559 chandransh 748
  def recv_createUser(self, ):
94 ashish 749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
559 chandransh 755
    result = createUser_result()
94 ashish 756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
3431 rajveer 758
    if result.success is not None:
94 ashish 759
      return result.success
3431 rajveer 760
    if result.ucex is not None:
559 chandransh 761
      raise result.ucex
762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 763
 
559 chandransh 764
  def updateUser(self, user):
94 ashish 765
    """
766
    Parameters:
559 chandransh 767
     - user
94 ashish 768
    """
559 chandransh 769
    self.send_updateUser(user)
770
    return self.recv_updateUser()
94 ashish 771
 
559 chandransh 772
  def send_updateUser(self, user):
773
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
774
    args = updateUser_args()
775
    args.user = user
94 ashish 776
    args.write(self._oprot)
777
    self._oprot.writeMessageEnd()
778
    self._oprot.trans.flush()
779
 
559 chandransh 780
  def recv_updateUser(self, ):
94 ashish 781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
782
    if mtype == TMessageType.EXCEPTION:
783
      x = TApplicationException()
784
      x.read(self._iprot)
785
      self._iprot.readMessageEnd()
786
      raise x
559 chandransh 787
    result = updateUser_result()
94 ashish 788
    result.read(self._iprot)
789
    self._iprot.readMessageEnd()
3431 rajveer 790
    if result.success is not None:
94 ashish 791
      return result.success
3431 rajveer 792
    if result.ucex is not None:
559 chandransh 793
      raise result.ucex
794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 795
 
559 chandransh 796
  def deleteUser(self, userId):
94 ashish 797
    """
798
    Parameters:
799
     - userId
800
    """
559 chandransh 801
    self.send_deleteUser(userId)
802
    return self.recv_deleteUser()
94 ashish 803
 
559 chandransh 804
  def send_deleteUser(self, userId):
805
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
806
    args = deleteUser_args()
94 ashish 807
    args.userId = userId
808
    args.write(self._oprot)
809
    self._oprot.writeMessageEnd()
810
    self._oprot.trans.flush()
811
 
559 chandransh 812
  def recv_deleteUser(self, ):
94 ashish 813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
814
    if mtype == TMessageType.EXCEPTION:
815
      x = TApplicationException()
816
      x.read(self._iprot)
817
      self._iprot.readMessageEnd()
818
      raise x
559 chandransh 819
    result = deleteUser_result()
94 ashish 820
    result.read(self._iprot)
821
    self._iprot.readMessageEnd()
3431 rajveer 822
    if result.success is not None:
94 ashish 823
      return result.success
3431 rajveer 824
    if result.ucex is not None:
559 chandransh 825
      raise result.ucex
826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 827
 
559 chandransh 828
  def getUserState(self, userId):
94 ashish 829
    """
830
    Parameters:
831
     - userId
832
    """
559 chandransh 833
    self.send_getUserState(userId)
834
    return self.recv_getUserState()
94 ashish 835
 
559 chandransh 836
  def send_getUserState(self, userId):
837
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
838
    args = getUserState_args()
94 ashish 839
    args.userId = userId
840
    args.write(self._oprot)
841
    self._oprot.writeMessageEnd()
842
    self._oprot.trans.flush()
843
 
559 chandransh 844
  def recv_getUserState(self, ):
94 ashish 845
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
846
    if mtype == TMessageType.EXCEPTION:
847
      x = TApplicationException()
848
      x.read(self._iprot)
849
      self._iprot.readMessageEnd()
850
      raise x
559 chandransh 851
    result = getUserState_result()
94 ashish 852
    result.read(self._iprot)
853
    self._iprot.readMessageEnd()
3431 rajveer 854
    if result.success is not None:
94 ashish 855
      return result.success
3431 rajveer 856
    if result.ucex is not None:
559 chandransh 857
      raise result.ucex
858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 859
 
559 chandransh 860
  def authenticateUser(self, email, password):
94 ashish 861
    """
862
    Parameters:
863
     - email
864
     - password
865
    """
559 chandransh 866
    self.send_authenticateUser(email, password)
122 ashish 867
    return self.recv_authenticateUser()
868
 
559 chandransh 869
  def send_authenticateUser(self, email, password):
122 ashish 870
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
871
    args = authenticateUser_args()
559 chandransh 872
    args.email = email
122 ashish 873
    args.password = password
874
    args.write(self._oprot)
875
    self._oprot.writeMessageEnd()
876
    self._oprot.trans.flush()
877
 
878
  def recv_authenticateUser(self, ):
879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
880
    if mtype == TMessageType.EXCEPTION:
881
      x = TApplicationException()
882
      x.read(self._iprot)
883
      self._iprot.readMessageEnd()
884
      raise x
885
    result = authenticateUser_result()
886
    result.read(self._iprot)
887
    self._iprot.readMessageEnd()
3431 rajveer 888
    if result.success is not None:
122 ashish 889
      return result.success
3431 rajveer 890
    if result.auex is not None:
559 chandransh 891
      raise result.auex
122 ashish 892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
893
 
94 ashish 894
  def userExists(self, email):
895
    """
896
    Parameters:
897
     - email
898
    """
899
    self.send_userExists(email)
900
    return self.recv_userExists()
901
 
902
  def send_userExists(self, email):
903
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
904
    args = userExists_args()
905
    args.email = email
906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_userExists(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = userExists_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
3431 rajveer 920
    if result.success is not None:
94 ashish 921
      return result.success
3431 rajveer 922
    if result.ucx is not None:
94 ashish 923
      raise result.ucx
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
925
 
567 rajveer 926
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 927
    """
928
    Parameters:
929
     - userId
930
     - address
513 rajveer 931
     - setDefault
94 ashish 932
    """
567 rajveer 933
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 934
    return self.recv_addAddressForUser()
935
 
567 rajveer 936
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 937
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
938
    args = addAddressForUser_args()
559 chandransh 939
    args.userId = userId
94 ashish 940
    args.address = address
513 rajveer 941
    args.setDefault = setDefault
94 ashish 942
    args.write(self._oprot)
943
    self._oprot.writeMessageEnd()
944
    self._oprot.trans.flush()
945
 
946
  def recv_addAddressForUser(self, ):
947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
948
    if mtype == TMessageType.EXCEPTION:
949
      x = TApplicationException()
950
      x.read(self._iprot)
951
      self._iprot.readMessageEnd()
952
      raise x
953
    result = addAddressForUser_result()
954
    result.read(self._iprot)
955
    self._iprot.readMessageEnd()
3431 rajveer 956
    if result.success is not None:
94 ashish 957
      return result.success
3431 rajveer 958
    if result.ucx is not None:
94 ashish 959
      raise result.ucx
960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
961
 
962
  def removeAddressForUser(self, userid, addressId):
963
    """
964
    Parameters:
965
     - userid
966
     - addressId
967
    """
968
    self.send_removeAddressForUser(userid, addressId)
969
    return self.recv_removeAddressForUser()
970
 
971
  def send_removeAddressForUser(self, userid, addressId):
972
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
973
    args = removeAddressForUser_args()
974
    args.userid = userid
975
    args.addressId = addressId
976
    args.write(self._oprot)
977
    self._oprot.writeMessageEnd()
978
    self._oprot.trans.flush()
979
 
980
  def recv_removeAddressForUser(self, ):
981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
982
    if mtype == TMessageType.EXCEPTION:
983
      x = TApplicationException()
984
      x.read(self._iprot)
985
      self._iprot.readMessageEnd()
986
      raise x
987
    result = removeAddressForUser_result()
988
    result.read(self._iprot)
989
    self._iprot.readMessageEnd()
3431 rajveer 990
    if result.success is not None:
94 ashish 991
      return result.success
3431 rajveer 992
    if result.ucx is not None:
94 ashish 993
      raise result.ucx
994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
995
 
996
  def setUserAsLoggedIn(self, userId, timestamp):
997
    """
998
    Parameters:
999
     - userId
1000
     - timestamp
1001
    """
1002
    self.send_setUserAsLoggedIn(userId, timestamp)
1003
    return self.recv_setUserAsLoggedIn()
1004
 
1005
  def send_setUserAsLoggedIn(self, userId, timestamp):
1006
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1007
    args = setUserAsLoggedIn_args()
1008
    args.userId = userId
1009
    args.timestamp = timestamp
1010
    args.write(self._oprot)
1011
    self._oprot.writeMessageEnd()
1012
    self._oprot.trans.flush()
1013
 
1014
  def recv_setUserAsLoggedIn(self, ):
1015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1016
    if mtype == TMessageType.EXCEPTION:
1017
      x = TApplicationException()
1018
      x.read(self._iprot)
1019
      self._iprot.readMessageEnd()
1020
      raise x
1021
    result = setUserAsLoggedIn_result()
1022
    result.read(self._iprot)
1023
    self._iprot.readMessageEnd()
3431 rajveer 1024
    if result.success is not None:
94 ashish 1025
      return result.success
3431 rajveer 1026
    if result.ucx is not None:
94 ashish 1027
      raise result.ucx
1028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1029
 
1030
  def setUserAsLoggedOut(self, userid, timestamp):
1031
    """
1032
    Parameters:
1033
     - userid
1034
     - timestamp
1035
    """
1036
    self.send_setUserAsLoggedOut(userid, timestamp)
1037
    return self.recv_setUserAsLoggedOut()
1038
 
1039
  def send_setUserAsLoggedOut(self, userid, timestamp):
1040
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1041
    args = setUserAsLoggedOut_args()
1042
    args.userid = userid
1043
    args.timestamp = timestamp
1044
    args.write(self._oprot)
1045
    self._oprot.writeMessageEnd()
1046
    self._oprot.trans.flush()
1047
 
1048
  def recv_setUserAsLoggedOut(self, ):
1049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1050
    if mtype == TMessageType.EXCEPTION:
1051
      x = TApplicationException()
1052
      x.read(self._iprot)
1053
      self._iprot.readMessageEnd()
1054
      raise x
1055
    result = setUserAsLoggedOut_result()
1056
    result.read(self._iprot)
1057
    self._iprot.readMessageEnd()
3431 rajveer 1058
    if result.success is not None:
94 ashish 1059
      return result.success
3431 rajveer 1060
    if result.ucx is not None:
94 ashish 1061
      raise result.ucx
1062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1063
 
504 rajveer 1064
  def setDefaultAddress(self, userid, addressId):
1065
    """
1066
    Parameters:
1067
     - userid
1068
     - addressId
1069
    """
1070
    self.send_setDefaultAddress(userid, addressId)
1071
    return self.recv_setDefaultAddress()
1072
 
1073
  def send_setDefaultAddress(self, userid, addressId):
1074
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1075
    args = setDefaultAddress_args()
1076
    args.userid = userid
1077
    args.addressId = addressId
1078
    args.write(self._oprot)
1079
    self._oprot.writeMessageEnd()
1080
    self._oprot.trans.flush()
1081
 
1082
  def recv_setDefaultAddress(self, ):
1083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1084
    if mtype == TMessageType.EXCEPTION:
1085
      x = TApplicationException()
1086
      x.read(self._iprot)
1087
      self._iprot.readMessageEnd()
1088
      raise x
1089
    result = setDefaultAddress_result()
1090
    result.read(self._iprot)
1091
    self._iprot.readMessageEnd()
3431 rajveer 1092
    if result.success is not None:
504 rajveer 1093
      return result.success
3431 rajveer 1094
    if result.ucx is not None:
504 rajveer 1095
      raise result.ucx
1096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1097
 
594 rajveer 1098
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1099
    """
1100
    Parameters:
1101
     - userid
594 rajveer 1102
     - oldPassword
1103
     - newPassword
94 ashish 1104
    """
594 rajveer 1105
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1106
    return self.recv_updatePassword()
1107
 
594 rajveer 1108
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1109
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1110
    args = updatePassword_args()
1111
    args.userid = userid
594 rajveer 1112
    args.oldPassword = oldPassword
1113
    args.newPassword = newPassword
94 ashish 1114
    args.write(self._oprot)
1115
    self._oprot.writeMessageEnd()
1116
    self._oprot.trans.flush()
1117
 
1118
  def recv_updatePassword(self, ):
1119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1120
    if mtype == TMessageType.EXCEPTION:
1121
      x = TApplicationException()
1122
      x.read(self._iprot)
1123
      self._iprot.readMessageEnd()
1124
      raise x
1125
    result = updatePassword_result()
1126
    result.read(self._iprot)
1127
    self._iprot.readMessageEnd()
3431 rajveer 1128
    if result.success is not None:
94 ashish 1129
      return result.success
3431 rajveer 1130
    if result.ucx is not None:
94 ashish 1131
      raise result.ucx
1132
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1133
 
884 rajveer 1134
  def forgotPassword(self, email, newPassword):
581 rajveer 1135
    """
1136
    Parameters:
1137
     - email
884 rajveer 1138
     - newPassword
581 rajveer 1139
    """
884 rajveer 1140
    self.send_forgotPassword(email, newPassword)
581 rajveer 1141
    return self.recv_forgotPassword()
1142
 
884 rajveer 1143
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1144
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1145
    args = forgotPassword_args()
1146
    args.email = email
884 rajveer 1147
    args.newPassword = newPassword
581 rajveer 1148
    args.write(self._oprot)
1149
    self._oprot.writeMessageEnd()
1150
    self._oprot.trans.flush()
1151
 
1152
  def recv_forgotPassword(self, ):
1153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1154
    if mtype == TMessageType.EXCEPTION:
1155
      x = TApplicationException()
1156
      x.read(self._iprot)
1157
      self._iprot.readMessageEnd()
1158
      raise x
1159
    result = forgotPassword_result()
1160
    result.read(self._iprot)
1161
    self._iprot.readMessageEnd()
3431 rajveer 1162
    if result.success is not None:
581 rajveer 1163
      return result.success
3431 rajveer 1164
    if result.ucx is not None:
581 rajveer 1165
      raise result.ucx
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1167
 
594 rajveer 1168
  def getAllAddressesForUser(self, userId):
1169
    """
1170
    Parameters:
1171
     - userId
1172
    """
1173
    self.send_getAllAddressesForUser(userId)
1174
    return self.recv_getAllAddressesForUser()
1175
 
1176
  def send_getAllAddressesForUser(self, userId):
1177
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1178
    args = getAllAddressesForUser_args()
1179
    args.userId = userId
1180
    args.write(self._oprot)
1181
    self._oprot.writeMessageEnd()
1182
    self._oprot.trans.flush()
1183
 
1184
  def recv_getAllAddressesForUser(self, ):
1185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1186
    if mtype == TMessageType.EXCEPTION:
1187
      x = TApplicationException()
1188
      x.read(self._iprot)
1189
      self._iprot.readMessageEnd()
1190
      raise x
1191
    result = getAllAddressesForUser_result()
1192
    result.read(self._iprot)
1193
    self._iprot.readMessageEnd()
3431 rajveer 1194
    if result.success is not None:
594 rajveer 1195
      return result.success
3431 rajveer 1196
    if result.ucx is not None:
594 rajveer 1197
      raise result.ucx
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1199
 
1894 vikas 1200
  def getAddressById(self, addressId):
1201
    """
1202
    Parameters:
1203
     - addressId
1204
    """
1205
    self.send_getAddressById(addressId)
1206
    return self.recv_getAddressById()
1207
 
1208
  def send_getAddressById(self, addressId):
1209
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1210
    args = getAddressById_args()
1211
    args.addressId = addressId
1212
    args.write(self._oprot)
1213
    self._oprot.writeMessageEnd()
1214
    self._oprot.trans.flush()
1215
 
1216
  def recv_getAddressById(self, ):
1217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1218
    if mtype == TMessageType.EXCEPTION:
1219
      x = TApplicationException()
1220
      x.read(self._iprot)
1221
      self._iprot.readMessageEnd()
1222
      raise x
1223
    result = getAddressById_result()
1224
    result.read(self._iprot)
1225
    self._iprot.readMessageEnd()
3431 rajveer 1226
    if result.success is not None:
1894 vikas 1227
      return result.success
3431 rajveer 1228
    if result.ucx is not None:
1894 vikas 1229
      raise result.ucx
1230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1231
 
594 rajveer 1232
  def getDefaultAddressId(self, userId):
1233
    """
1234
    Parameters:
1235
     - userId
1236
    """
1237
    self.send_getDefaultAddressId(userId)
1238
    return self.recv_getDefaultAddressId()
1239
 
1240
  def send_getDefaultAddressId(self, userId):
1241
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1242
    args = getDefaultAddressId_args()
1243
    args.userId = userId
1244
    args.write(self._oprot)
1245
    self._oprot.writeMessageEnd()
1246
    self._oprot.trans.flush()
1247
 
1248
  def recv_getDefaultAddressId(self, ):
1249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1250
    if mtype == TMessageType.EXCEPTION:
1251
      x = TApplicationException()
1252
      x.read(self._iprot)
1253
      self._iprot.readMessageEnd()
1254
      raise x
1255
    result = getDefaultAddressId_result()
1256
    result.read(self._iprot)
1257
    self._iprot.readMessageEnd()
3431 rajveer 1258
    if result.success is not None:
594 rajveer 1259
      return result.success
3431 rajveer 1260
    if result.ucx is not None:
594 rajveer 1261
      raise result.ucx
1262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1263
 
785 rajveer 1264
  def getDefaultPincode(self, userId):
1265
    """
1266
    Parameters:
1267
     - userId
1268
    """
1269
    self.send_getDefaultPincode(userId)
1270
    return self.recv_getDefaultPincode()
1271
 
1272
  def send_getDefaultPincode(self, userId):
1273
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1274
    args = getDefaultPincode_args()
1275
    args.userId = userId
1276
    args.write(self._oprot)
1277
    self._oprot.writeMessageEnd()
1278
    self._oprot.trans.flush()
1279
 
1280
  def recv_getDefaultPincode(self, ):
1281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1282
    if mtype == TMessageType.EXCEPTION:
1283
      x = TApplicationException()
1284
      x.read(self._iprot)
1285
      self._iprot.readMessageEnd()
1286
      raise x
1287
    result = getDefaultPincode_result()
1288
    result.read(self._iprot)
1289
    self._iprot.readMessageEnd()
3431 rajveer 1290
    if result.success is not None:
785 rajveer 1291
      return result.success
3431 rajveer 1292
    if result.ucx is not None:
785 rajveer 1293
      raise result.ucx
1294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1295
 
1274 varun.gupt 1296
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1297
    """
1298
    Parameters:
1299
     - userId
1300
     - replyTo
1301
     - communicationType
1302
     - orderId
1303
     - airwaybillNo
1304
     - productName
1305
     - subject
1306
     - message
1307
    """
1308
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1309
    return self.recv_saveUserCommunication()
1310
 
1311
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1312
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1313
    args = saveUserCommunication_args()
1314
    args.userId = userId
1315
    args.replyTo = replyTo
1316
    args.communicationType = communicationType
1317
    args.orderId = orderId
1318
    args.airwaybillNo = airwaybillNo
1319
    args.productName = productName
1320
    args.subject = subject
1321
    args.message = message
1322
    args.write(self._oprot)
1323
    self._oprot.writeMessageEnd()
1324
    self._oprot.trans.flush()
1325
 
1326
  def recv_saveUserCommunication(self, ):
1327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1328
    if mtype == TMessageType.EXCEPTION:
1329
      x = TApplicationException()
1330
      x.read(self._iprot)
1331
      self._iprot.readMessageEnd()
1332
      raise x
1333
    result = saveUserCommunication_result()
1334
    result.read(self._iprot)
1335
    self._iprot.readMessageEnd()
3431 rajveer 1336
    if result.success is not None:
1274 varun.gupt 1337
      return result.success
3431 rajveer 1338
    if result.ucx is not None:
1274 varun.gupt 1339
      raise result.ucx
1340
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1341
 
1590 varun.gupt 1342
  def getUserCommunicationById(self, id):
1343
    """
1344
    Parameters:
1345
     - id
1346
    """
1347
    self.send_getUserCommunicationById(id)
1348
    return self.recv_getUserCommunicationById()
1349
 
1350
  def send_getUserCommunicationById(self, id):
1351
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1352
    args = getUserCommunicationById_args()
1353
    args.id = id
1354
    args.write(self._oprot)
1355
    self._oprot.writeMessageEnd()
1356
    self._oprot.trans.flush()
1357
 
1358
  def recv_getUserCommunicationById(self, ):
1359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1360
    if mtype == TMessageType.EXCEPTION:
1361
      x = TApplicationException()
1362
      x.read(self._iprot)
1363
      self._iprot.readMessageEnd()
1364
      raise x
1365
    result = getUserCommunicationById_result()
1366
    result.read(self._iprot)
1367
    self._iprot.readMessageEnd()
3431 rajveer 1368
    if result.success is not None:
1590 varun.gupt 1369
      return result.success
3431 rajveer 1370
    if result.ucx is not None:
1590 varun.gupt 1371
      raise result.ucx
1372
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1373
 
1374
  def getUserCommunicationByUser(self, userId):
1375
    """
1376
    Parameters:
1377
     - userId
1378
    """
1379
    self.send_getUserCommunicationByUser(userId)
1380
    return self.recv_getUserCommunicationByUser()
1381
 
1382
  def send_getUserCommunicationByUser(self, userId):
1383
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1384
    args = getUserCommunicationByUser_args()
1385
    args.userId = userId
1386
    args.write(self._oprot)
1387
    self._oprot.writeMessageEnd()
1388
    self._oprot.trans.flush()
1389
 
1390
  def recv_getUserCommunicationByUser(self, ):
1391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1392
    if mtype == TMessageType.EXCEPTION:
1393
      x = TApplicationException()
1394
      x.read(self._iprot)
1395
      self._iprot.readMessageEnd()
1396
      raise x
1397
    result = getUserCommunicationByUser_result()
1398
    result.read(self._iprot)
1399
    self._iprot.readMessageEnd()
3431 rajveer 1400
    if result.success is not None:
1590 varun.gupt 1401
      return result.success
3431 rajveer 1402
    if result.ucx is not None:
1590 varun.gupt 1403
      raise result.ucx
1404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1405
 
1406
  def getAllUserCommunications(self, ):
1407
    self.send_getAllUserCommunications()
1408
    return self.recv_getAllUserCommunications()
1409
 
1410
  def send_getAllUserCommunications(self, ):
1411
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1412
    args = getAllUserCommunications_args()
1413
    args.write(self._oprot)
1414
    self._oprot.writeMessageEnd()
1415
    self._oprot.trans.flush()
1416
 
1417
  def recv_getAllUserCommunications(self, ):
1418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1419
    if mtype == TMessageType.EXCEPTION:
1420
      x = TApplicationException()
1421
      x.read(self._iprot)
1422
      self._iprot.readMessageEnd()
1423
      raise x
1424
    result = getAllUserCommunications_result()
1425
    result.read(self._iprot)
1426
    self._iprot.readMessageEnd()
3431 rajveer 1427
    if result.success is not None:
1590 varun.gupt 1428
      return result.success
3431 rajveer 1429
    if result.ucx is not None:
1590 varun.gupt 1430
      raise result.ucx
1431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1432
 
1859 vikas 1433
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1434
    """
1435
    Parameters:
1436
     - name
1859 vikas 1437
     - addedOn
1845 vikas 1438
    """
1859 vikas 1439
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1440
    return self.recv_createMasterAffiliate()
1441
 
1859 vikas 1442
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1443
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1444
    args = createMasterAffiliate_args()
1445
    args.name = name
1859 vikas 1446
    args.addedOn = addedOn
1845 vikas 1447
    args.write(self._oprot)
1448
    self._oprot.writeMessageEnd()
1449
    self._oprot.trans.flush()
1450
 
1451
  def recv_createMasterAffiliate(self, ):
1452
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1453
    if mtype == TMessageType.EXCEPTION:
1454
      x = TApplicationException()
1455
      x.read(self._iprot)
1456
      self._iprot.readMessageEnd()
1457
      raise x
1458
    result = createMasterAffiliate_result()
1459
    result.read(self._iprot)
1460
    self._iprot.readMessageEnd()
3431 rajveer 1461
    if result.success is not None:
1845 vikas 1462
      return result.success
3431 rajveer 1463
    if result.utx is not None:
1845 vikas 1464
      raise result.utx
1465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1466
 
1899 vikas 1467
  def getAllMasterAffiliates(self, ):
1468
    self.send_getAllMasterAffiliates()
1469
    return self.recv_getAllMasterAffiliates()
1470
 
1471
  def send_getAllMasterAffiliates(self, ):
1472
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1473
    args = getAllMasterAffiliates_args()
1474
    args.write(self._oprot)
1475
    self._oprot.writeMessageEnd()
1476
    self._oprot.trans.flush()
1477
 
1478
  def recv_getAllMasterAffiliates(self, ):
1479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1480
    if mtype == TMessageType.EXCEPTION:
1481
      x = TApplicationException()
1482
      x.read(self._iprot)
1483
      self._iprot.readMessageEnd()
1484
      raise x
1485
    result = getAllMasterAffiliates_result()
1486
    result.read(self._iprot)
1487
    self._iprot.readMessageEnd()
3431 rajveer 1488
    if result.success is not None:
1899 vikas 1489
      return result.success
3431 rajveer 1490
    if result.utx is not None:
1899 vikas 1491
      raise result.utx
1492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1493
 
1845 vikas 1494
  def getMasterAffiliateById(self, id):
1495
    """
1496
    Parameters:
1497
     - id
1498
    """
1499
    self.send_getMasterAffiliateById(id)
1500
    return self.recv_getMasterAffiliateById()
1501
 
1502
  def send_getMasterAffiliateById(self, id):
1503
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1504
    args = getMasterAffiliateById_args()
1505
    args.id = id
1506
    args.write(self._oprot)
1507
    self._oprot.writeMessageEnd()
1508
    self._oprot.trans.flush()
1509
 
1510
  def recv_getMasterAffiliateById(self, ):
1511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1512
    if mtype == TMessageType.EXCEPTION:
1513
      x = TApplicationException()
1514
      x.read(self._iprot)
1515
      self._iprot.readMessageEnd()
1516
      raise x
1517
    result = getMasterAffiliateById_result()
1518
    result.read(self._iprot)
1519
    self._iprot.readMessageEnd()
3431 rajveer 1520
    if result.success is not None:
1845 vikas 1521
      return result.success
3431 rajveer 1522
    if result.utx is not None:
1845 vikas 1523
      raise result.utx
1524
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1525
 
1526
  def getMasterAffiliateByName(self, name):
1527
    """
1528
    Parameters:
1529
     - name
1530
    """
1531
    self.send_getMasterAffiliateByName(name)
1532
    return self.recv_getMasterAffiliateByName()
1533
 
1534
  def send_getMasterAffiliateByName(self, name):
1535
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1536
    args = getMasterAffiliateByName_args()
1537
    args.name = name
1538
    args.write(self._oprot)
1539
    self._oprot.writeMessageEnd()
1540
    self._oprot.trans.flush()
1541
 
1542
  def recv_getMasterAffiliateByName(self, ):
1543
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1544
    if mtype == TMessageType.EXCEPTION:
1545
      x = TApplicationException()
1546
      x.read(self._iprot)
1547
      self._iprot.readMessageEnd()
1548
      raise x
1549
    result = getMasterAffiliateByName_result()
1550
    result.read(self._iprot)
1551
    self._iprot.readMessageEnd()
3431 rajveer 1552
    if result.success is not None:
1845 vikas 1553
      return result.success
3431 rajveer 1554
    if result.utx is not None:
1845 vikas 1555
      raise result.utx
1556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1557
 
1859 vikas 1558
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1559
    """
1560
    Parameters:
1561
     - name
1562
     - url
1563
     - masterAffiliateId
1859 vikas 1564
     - addedOn
1845 vikas 1565
    """
1859 vikas 1566
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1567
    return self.recv_createAffiliate()
1568
 
1859 vikas 1569
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1570
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1571
    args = createAffiliate_args()
1572
    args.name = name
1573
    args.url = url
1574
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1575
    args.addedOn = addedOn
1845 vikas 1576
    args.write(self._oprot)
1577
    self._oprot.writeMessageEnd()
1578
    self._oprot.trans.flush()
1579
 
1580
  def recv_createAffiliate(self, ):
1581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1582
    if mtype == TMessageType.EXCEPTION:
1583
      x = TApplicationException()
1584
      x.read(self._iprot)
1585
      self._iprot.readMessageEnd()
1586
      raise x
1587
    result = createAffiliate_result()
1588
    result.read(self._iprot)
1589
    self._iprot.readMessageEnd()
3431 rajveer 1590
    if result.success is not None:
1845 vikas 1591
      return result.success
3431 rajveer 1592
    if result.utx is not None:
1845 vikas 1593
      raise result.utx
1594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1595
 
1596
  def getAffiliateById(self, id):
1597
    """
1598
    Parameters:
1599
     - id
1600
    """
1601
    self.send_getAffiliateById(id)
1602
    return self.recv_getAffiliateById()
1603
 
1604
  def send_getAffiliateById(self, id):
1605
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1606
    args = getAffiliateById_args()
1607
    args.id = id
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_getAffiliateById(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = getAffiliateById_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
3431 rajveer 1622
    if result.success is not None:
1845 vikas 1623
      return result.success
3431 rajveer 1624
    if result.utx is not None:
1845 vikas 1625
      raise result.utx
1626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1627
 
1628
  def getAffiliateByName(self, name):
1629
    """
1630
    Parameters:
1631
     - name
1632
    """
1633
    self.send_getAffiliateByName(name)
1634
    return self.recv_getAffiliateByName()
1635
 
1636
  def send_getAffiliateByName(self, name):
1637
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1638
    args = getAffiliateByName_args()
1639
    args.name = name
1640
    args.write(self._oprot)
1641
    self._oprot.writeMessageEnd()
1642
    self._oprot.trans.flush()
1643
 
1644
  def recv_getAffiliateByName(self, ):
1645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1646
    if mtype == TMessageType.EXCEPTION:
1647
      x = TApplicationException()
1648
      x.read(self._iprot)
1649
      self._iprot.readMessageEnd()
1650
      raise x
1651
    result = getAffiliateByName_result()
1652
    result.read(self._iprot)
1653
    self._iprot.readMessageEnd()
3431 rajveer 1654
    if result.success is not None:
1845 vikas 1655
      return result.success
3431 rajveer 1656
    if result.utx is not None:
1845 vikas 1657
      raise result.utx
1658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1659
 
1996 vikas 1660
  def getTrackerById(self, id):
1845 vikas 1661
    """
1662
    Parameters:
1663
     - id
1664
    """
1996 vikas 1665
    self.send_getTrackerById(id)
1845 vikas 1666
    return self.recv_getTrackerById()
1667
 
1996 vikas 1668
  def send_getTrackerById(self, id):
1845 vikas 1669
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1670
    args = getTrackerById_args()
1996 vikas 1671
    args.id = id
1845 vikas 1672
    args.write(self._oprot)
1673
    self._oprot.writeMessageEnd()
1674
    self._oprot.trans.flush()
1675
 
1676
  def recv_getTrackerById(self, ):
1677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1678
    if mtype == TMessageType.EXCEPTION:
1679
      x = TApplicationException()
1680
      x.read(self._iprot)
1681
      self._iprot.readMessageEnd()
1682
      raise x
1683
    result = getTrackerById_result()
1684
    result.read(self._iprot)
1685
    self._iprot.readMessageEnd()
3431 rajveer 1686
    if result.success is not None:
1845 vikas 1687
      return result.success
3431 rajveer 1688
    if result.utx is not None:
1845 vikas 1689
      raise result.utx
1690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1691
 
1996 vikas 1692
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1693
    """
1694
    Parameters:
1996 vikas 1695
     - id
1845 vikas 1696
    """
1996 vikas 1697
    self.send_getAffiliatesByMasterAffiliate(id)
1698
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1699
 
1996 vikas 1700
  def send_getAffiliatesByMasterAffiliate(self, id):
1701
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1702
    args = getAffiliatesByMasterAffiliate_args()
1703
    args.id = id
1845 vikas 1704
    args.write(self._oprot)
1705
    self._oprot.writeMessageEnd()
1706
    self._oprot.trans.flush()
1707
 
1996 vikas 1708
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1710
    if mtype == TMessageType.EXCEPTION:
1711
      x = TApplicationException()
1712
      x.read(self._iprot)
1713
      self._iprot.readMessageEnd()
1714
      raise x
1996 vikas 1715
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1716
    result.read(self._iprot)
1717
    self._iprot.readMessageEnd()
3431 rajveer 1718
    if result.success is not None:
1845 vikas 1719
      return result.success
3431 rajveer 1720
    if result.utx is not None:
1845 vikas 1721
      raise result.utx
1996 vikas 1722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1723
 
1996 vikas 1724
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1725
    """
1726
    Parameters:
1996 vikas 1727
     - affiliateId
1845 vikas 1728
     - userId
1729
     - event
1730
     - url
1731
     - data
1859 vikas 1732
     - addedOn
1845 vikas 1733
    """
1996 vikas 1734
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1735
    return self.recv_addTrackLog()
1736
 
1996 vikas 1737
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1738
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1739
    args = addTrackLog_args()
1996 vikas 1740
    args.affiliateId = affiliateId
1845 vikas 1741
    args.userId = userId
1742
    args.event = event
1743
    args.url = url
1744
    args.data = data
1859 vikas 1745
    args.addedOn = addedOn
1845 vikas 1746
    args.write(self._oprot)
1747
    self._oprot.writeMessageEnd()
1748
    self._oprot.trans.flush()
1749
 
1750
  def recv_addTrackLog(self, ):
1751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1752
    if mtype == TMessageType.EXCEPTION:
1753
      x = TApplicationException()
1754
      x.read(self._iprot)
1755
      self._iprot.readMessageEnd()
1756
      raise x
1757
    result = addTrackLog_result()
1758
    result.read(self._iprot)
1759
    self._iprot.readMessageEnd()
3431 rajveer 1760
    if result.success is not None:
1845 vikas 1761
      return result.success
3431 rajveer 1762
    if result.utx is not None:
1845 vikas 1763
      raise result.utx
1764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1765
 
1766
  def getTrackLogById(self, id):
1767
    """
1768
    Parameters:
1769
     - id
1770
    """
1771
    self.send_getTrackLogById(id)
1772
    return self.recv_getTrackLogById()
1773
 
1774
  def send_getTrackLogById(self, id):
1775
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1776
    args = getTrackLogById_args()
1777
    args.id = id
1778
    args.write(self._oprot)
1779
    self._oprot.writeMessageEnd()
1780
    self._oprot.trans.flush()
1781
 
1782
  def recv_getTrackLogById(self, ):
1783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1784
    if mtype == TMessageType.EXCEPTION:
1785
      x = TApplicationException()
1786
      x.read(self._iprot)
1787
      self._iprot.readMessageEnd()
1788
      raise x
1789
    result = getTrackLogById_result()
1790
    result.read(self._iprot)
1791
    self._iprot.readMessageEnd()
3431 rajveer 1792
    if result.success is not None:
1845 vikas 1793
      return result.success
3431 rajveer 1794
    if result.utx is not None:
1845 vikas 1795
      raise result.utx
1796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1797
 
3293 vikas 1798
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1799
    """
1800
    Parameters:
1996 vikas 1801
     - affiliateId
3293 vikas 1802
     - startDate
1803
     - endDate
1845 vikas 1804
    """
3293 vikas 1805
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1806
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1807
 
3293 vikas 1808
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1809
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1810
    args = getTrackLogsByAffiliate_args()
1811
    args.affiliateId = affiliateId
3293 vikas 1812
    args.startDate = startDate
1813
    args.endDate = endDate
1845 vikas 1814
    args.write(self._oprot)
1815
    self._oprot.writeMessageEnd()
1816
    self._oprot.trans.flush()
1817
 
1996 vikas 1818
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1819
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1820
    if mtype == TMessageType.EXCEPTION:
1821
      x = TApplicationException()
1822
      x.read(self._iprot)
1823
      self._iprot.readMessageEnd()
1824
      raise x
1996 vikas 1825
    result = getTrackLogsByAffiliate_result()
1845 vikas 1826
    result.read(self._iprot)
1827
    self._iprot.readMessageEnd()
3431 rajveer 1828
    if result.success is not None:
1845 vikas 1829
      return result.success
3431 rajveer 1830
    if result.utx is not None:
1845 vikas 1831
      raise result.utx
1996 vikas 1832
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1833
 
1834
  def getTrackLogsByUser(self, userId):
1835
    """
1836
    Parameters:
1837
     - userId
1838
    """
1839
    self.send_getTrackLogsByUser(userId)
1840
    return self.recv_getTrackLogsByUser()
1841
 
1842
  def send_getTrackLogsByUser(self, userId):
1843
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1844
    args = getTrackLogsByUser_args()
1845
    args.userId = userId
1846
    args.write(self._oprot)
1847
    self._oprot.writeMessageEnd()
1848
    self._oprot.trans.flush()
1849
 
1850
  def recv_getTrackLogsByUser(self, ):
1851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1852
    if mtype == TMessageType.EXCEPTION:
1853
      x = TApplicationException()
1854
      x.read(self._iprot)
1855
      self._iprot.readMessageEnd()
1856
      raise x
1857
    result = getTrackLogsByUser_result()
1858
    result.read(self._iprot)
1859
    self._iprot.readMessageEnd()
3431 rajveer 1860
    if result.success is not None:
1845 vikas 1861
      return result.success
3431 rajveer 1862
    if result.utx is not None:
1845 vikas 1863
      raise result.utx
1864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1865
 
1996 vikas 1866
  def getTrackLogs(self, userId, event, url):
1845 vikas 1867
    """
1868
    Parameters:
1869
     - userId
1870
     - event
1871
     - url
1872
    """
1996 vikas 1873
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1874
    return self.recv_getTrackLogs()
1875
 
1996 vikas 1876
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1877
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1878
    args = getTrackLogs_args()
1879
    args.userId = userId
1880
    args.event = event
1881
    args.url = url
1882
    args.write(self._oprot)
1883
    self._oprot.writeMessageEnd()
1884
    self._oprot.trans.flush()
1885
 
1886
  def recv_getTrackLogs(self, ):
1887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1888
    if mtype == TMessageType.EXCEPTION:
1889
      x = TApplicationException()
1890
      x.read(self._iprot)
1891
      self._iprot.readMessageEnd()
1892
      raise x
1893
    result = getTrackLogs_result()
1894
    result.read(self._iprot)
1895
    self._iprot.readMessageEnd()
3431 rajveer 1896
    if result.success is not None:
1845 vikas 1897
      return result.success
3431 rajveer 1898
    if result.utx is not None:
1845 vikas 1899
      raise result.utx
1900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1901
 
559 chandransh 1902
  def createCart(self, userId):
94 ashish 1903
    """
1904
    Parameters:
559 chandransh 1905
     - userId
94 ashish 1906
    """
559 chandransh 1907
    self.send_createCart(userId)
1908
    return self.recv_createCart()
94 ashish 1909
 
559 chandransh 1910
  def send_createCart(self, userId):
1911
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1912
    args = createCart_args()
1913
    args.userId = userId
94 ashish 1914
    args.write(self._oprot)
1915
    self._oprot.writeMessageEnd()
1916
    self._oprot.trans.flush()
1917
 
559 chandransh 1918
  def recv_createCart(self, ):
94 ashish 1919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1920
    if mtype == TMessageType.EXCEPTION:
1921
      x = TApplicationException()
1922
      x.read(self._iprot)
1923
      self._iprot.readMessageEnd()
1924
      raise x
559 chandransh 1925
    result = createCart_result()
94 ashish 1926
    result.read(self._iprot)
1927
    self._iprot.readMessageEnd()
3431 rajveer 1928
    if result.success is not None:
94 ashish 1929
      return result.success
3431 rajveer 1930
    if result.scx is not None:
559 chandransh 1931
      raise result.scx
1932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1933
 
559 chandransh 1934
  def getCurrentCart(self, userId):
94 ashish 1935
    """
1936
    Parameters:
559 chandransh 1937
     - userId
94 ashish 1938
    """
559 chandransh 1939
    self.send_getCurrentCart(userId)
1940
    return self.recv_getCurrentCart()
94 ashish 1941
 
559 chandransh 1942
  def send_getCurrentCart(self, userId):
1943
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1944
    args = getCurrentCart_args()
1945
    args.userId = userId
94 ashish 1946
    args.write(self._oprot)
1947
    self._oprot.writeMessageEnd()
1948
    self._oprot.trans.flush()
1949
 
559 chandransh 1950
  def recv_getCurrentCart(self, ):
94 ashish 1951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1952
    if mtype == TMessageType.EXCEPTION:
1953
      x = TApplicationException()
1954
      x.read(self._iprot)
1955
      self._iprot.readMessageEnd()
1956
      raise x
559 chandransh 1957
    result = getCurrentCart_result()
94 ashish 1958
    result.read(self._iprot)
1959
    self._iprot.readMessageEnd()
3431 rajveer 1960
    if result.success is not None:
94 ashish 1961
      return result.success
3431 rajveer 1962
    if result.scx is not None:
559 chandransh 1963
      raise result.scx
1964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1965
 
559 chandransh 1966
  def getCart(self, cartId):
94 ashish 1967
    """
1968
    Parameters:
559 chandransh 1969
     - cartId
94 ashish 1970
    """
559 chandransh 1971
    self.send_getCart(cartId)
1972
    return self.recv_getCart()
94 ashish 1973
 
559 chandransh 1974
  def send_getCart(self, cartId):
1975
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1976
    args = getCart_args()
1977
    args.cartId = cartId
94 ashish 1978
    args.write(self._oprot)
1979
    self._oprot.writeMessageEnd()
1980
    self._oprot.trans.flush()
1981
 
559 chandransh 1982
  def recv_getCart(self, ):
94 ashish 1983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1984
    if mtype == TMessageType.EXCEPTION:
1985
      x = TApplicationException()
1986
      x.read(self._iprot)
1987
      self._iprot.readMessageEnd()
1988
      raise x
559 chandransh 1989
    result = getCart_result()
94 ashish 1990
    result.read(self._iprot)
1991
    self._iprot.readMessageEnd()
3431 rajveer 1992
    if result.success is not None:
94 ashish 1993
      return result.success
3431 rajveer 1994
    if result.scx is not None:
559 chandransh 1995
      raise result.scx
1996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1997
 
559 chandransh 1998
  def getCartsForUser(self, userId, status):
94 ashish 1999
    """
2000
    Parameters:
559 chandransh 2001
     - userId
2002
     - status
94 ashish 2003
    """
559 chandransh 2004
    self.send_getCartsForUser(userId, status)
2005
    return self.recv_getCartsForUser()
94 ashish 2006
 
559 chandransh 2007
  def send_getCartsForUser(self, userId, status):
2008
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2009
    args = getCartsForUser_args()
2010
    args.userId = userId
2011
    args.status = status
94 ashish 2012
    args.write(self._oprot)
2013
    self._oprot.writeMessageEnd()
2014
    self._oprot.trans.flush()
2015
 
559 chandransh 2016
  def recv_getCartsForUser(self, ):
94 ashish 2017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2018
    if mtype == TMessageType.EXCEPTION:
2019
      x = TApplicationException()
2020
      x.read(self._iprot)
2021
      self._iprot.readMessageEnd()
2022
      raise x
559 chandransh 2023
    result = getCartsForUser_result()
94 ashish 2024
    result.read(self._iprot)
2025
    self._iprot.readMessageEnd()
3431 rajveer 2026
    if result.success is not None:
94 ashish 2027
      return result.success
3431 rajveer 2028
    if result.scx is not None:
559 chandransh 2029
      raise result.scx
2030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2031
 
559 chandransh 2032
  def getCartsByStatus(self, status):
94 ashish 2033
    """
2034
    Parameters:
559 chandransh 2035
     - status
94 ashish 2036
    """
559 chandransh 2037
    self.send_getCartsByStatus(status)
2038
    return self.recv_getCartsByStatus()
94 ashish 2039
 
559 chandransh 2040
  def send_getCartsByStatus(self, status):
2041
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2042
    args = getCartsByStatus_args()
2043
    args.status = status
94 ashish 2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
559 chandransh 2048
  def recv_getCartsByStatus(self, ):
94 ashish 2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
559 chandransh 2055
    result = getCartsByStatus_result()
94 ashish 2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
3431 rajveer 2058
    if result.success is not None:
94 ashish 2059
      return result.success
3431 rajveer 2060
    if result.scx is not None:
559 chandransh 2061
      raise result.scx
2062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2063
 
559 chandransh 2064
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2065
    """
2066
    Parameters:
559 chandransh 2067
     - from_time
2068
     - to_time
2069
     - status
94 ashish 2070
    """
559 chandransh 2071
    self.send_getCartsByTime(from_time, to_time, status)
2072
    return self.recv_getCartsByTime()
94 ashish 2073
 
559 chandransh 2074
  def send_getCartsByTime(self, from_time, to_time, status):
2075
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2076
    args = getCartsByTime_args()
2077
    args.from_time = from_time
2078
    args.to_time = to_time
2079
    args.status = status
94 ashish 2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
559 chandransh 2084
  def recv_getCartsByTime(self, ):
94 ashish 2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
559 chandransh 2091
    result = getCartsByTime_result()
94 ashish 2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
3431 rajveer 2094
    if result.success is not None:
94 ashish 2095
      return result.success
3431 rajveer 2096
    if result.scx is not None:
559 chandransh 2097
      raise result.scx
2098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2099
 
559 chandransh 2100
  def changeCartStatus(self, cartId, status):
130 ashish 2101
    """
2102
    Parameters:
559 chandransh 2103
     - cartId
2104
     - status
130 ashish 2105
    """
559 chandransh 2106
    self.send_changeCartStatus(cartId, status)
2107
    self.recv_changeCartStatus()
94 ashish 2108
 
559 chandransh 2109
  def send_changeCartStatus(self, cartId, status):
2110
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2111
    args = changeCartStatus_args()
2112
    args.cartId = cartId
2113
    args.status = status
130 ashish 2114
    args.write(self._oprot)
2115
    self._oprot.writeMessageEnd()
2116
    self._oprot.trans.flush()
2117
 
559 chandransh 2118
  def recv_changeCartStatus(self, ):
130 ashish 2119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2120
    if mtype == TMessageType.EXCEPTION:
2121
      x = TApplicationException()
2122
      x.read(self._iprot)
2123
      self._iprot.readMessageEnd()
2124
      raise x
559 chandransh 2125
    result = changeCartStatus_result()
130 ashish 2126
    result.read(self._iprot)
2127
    self._iprot.readMessageEnd()
3431 rajveer 2128
    if result.scx is not None:
559 chandransh 2129
      raise result.scx
2130
    return
2131
 
2132
  def addItemToCart(self, cartId, itemId, quantity):
2133
    """
2134
    Parameters:
2135
     - cartId
2136
     - itemId
2137
     - quantity
2138
    """
2139
    self.send_addItemToCart(cartId, itemId, quantity)
2035 rajveer 2140
    return self.recv_addItemToCart()
559 chandransh 2141
 
2142
  def send_addItemToCart(self, cartId, itemId, quantity):
2143
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2144
    args = addItemToCart_args()
2145
    args.cartId = cartId
2146
    args.itemId = itemId
2147
    args.quantity = quantity
2148
    args.write(self._oprot)
2149
    self._oprot.writeMessageEnd()
2150
    self._oprot.trans.flush()
2151
 
2152
  def recv_addItemToCart(self, ):
2153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2154
    if mtype == TMessageType.EXCEPTION:
2155
      x = TApplicationException()
2156
      x.read(self._iprot)
2157
      self._iprot.readMessageEnd()
2158
      raise x
2159
    result = addItemToCart_result()
2160
    result.read(self._iprot)
2161
    self._iprot.readMessageEnd()
3431 rajveer 2162
    if result.success is not None:
2035 rajveer 2163
      return result.success
3431 rajveer 2164
    if result.scx is not None:
559 chandransh 2165
      raise result.scx
2035 rajveer 2166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2167
 
2168
  def deleteItemFromCart(self, cartId, itemId):
2169
    """
2170
    Parameters:
2171
     - cartId
2172
     - itemId
2173
    """
2174
    self.send_deleteItemFromCart(cartId, itemId)
2175
    self.recv_deleteItemFromCart()
2176
 
2177
  def send_deleteItemFromCart(self, cartId, itemId):
2178
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2179
    args = deleteItemFromCart_args()
2180
    args.cartId = cartId
2181
    args.itemId = itemId
2182
    args.write(self._oprot)
2183
    self._oprot.writeMessageEnd()
2184
    self._oprot.trans.flush()
2185
 
2186
  def recv_deleteItemFromCart(self, ):
2187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2188
    if mtype == TMessageType.EXCEPTION:
2189
      x = TApplicationException()
2190
      x.read(self._iprot)
2191
      self._iprot.readMessageEnd()
2192
      raise x
2193
    result = deleteItemFromCart_result()
2194
    result.read(self._iprot)
2195
    self._iprot.readMessageEnd()
3431 rajveer 2196
    if result.scx is not None:
559 chandransh 2197
      raise result.scx
2198
    return
2199
 
2200
  def changeQuantity(self, cartId, itemId, quantity):
2201
    """
2202
    Parameters:
2203
     - cartId
2204
     - itemId
2205
     - quantity
2206
    """
2207
    self.send_changeQuantity(cartId, itemId, quantity)
2208
    self.recv_changeQuantity()
2209
 
2210
  def send_changeQuantity(self, cartId, itemId, quantity):
2211
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
2212
    args = changeQuantity_args()
2213
    args.cartId = cartId
2214
    args.itemId = itemId
2215
    args.quantity = quantity
2216
    args.write(self._oprot)
2217
    self._oprot.writeMessageEnd()
2218
    self._oprot.trans.flush()
2219
 
2220
  def recv_changeQuantity(self, ):
2221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2222
    if mtype == TMessageType.EXCEPTION:
2223
      x = TApplicationException()
2224
      x.read(self._iprot)
2225
      self._iprot.readMessageEnd()
2226
      raise x
2227
    result = changeQuantity_result()
2228
    result.read(self._iprot)
2229
    self._iprot.readMessageEnd()
3431 rajveer 2230
    if result.scx is not None:
559 chandransh 2231
      raise result.scx
2232
    return
2233
 
2234
  def changeItemStatus(self, cartId, itemId, status):
2235
    """
2236
    Parameters:
2237
     - cartId
2238
     - itemId
2239
     - status
2240
    """
2241
    self.send_changeItemStatus(cartId, itemId, status)
2242
    self.recv_changeItemStatus()
2243
 
2244
  def send_changeItemStatus(self, cartId, itemId, status):
2245
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2246
    args = changeItemStatus_args()
2247
    args.cartId = cartId
2248
    args.itemId = itemId
2249
    args.status = status
2250
    args.write(self._oprot)
2251
    self._oprot.writeMessageEnd()
2252
    self._oprot.trans.flush()
2253
 
2254
  def recv_changeItemStatus(self, ):
2255
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2256
    if mtype == TMessageType.EXCEPTION:
2257
      x = TApplicationException()
2258
      x.read(self._iprot)
2259
      self._iprot.readMessageEnd()
2260
      raise x
2261
    result = changeItemStatus_result()
2262
    result.read(self._iprot)
2263
    self._iprot.readMessageEnd()
3431 rajveer 2264
    if result.scx is not None:
559 chandransh 2265
      raise result.scx
2266
    return
2267
 
2268
  def addAddressToCart(self, cartId, addressId):
2269
    """
2270
    Parameters:
2271
     - cartId
2272
     - addressId
2273
    """
2274
    self.send_addAddressToCart(cartId, addressId)
2275
    self.recv_addAddressToCart()
2276
 
2277
  def send_addAddressToCart(self, cartId, addressId):
2278
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2279
    args = addAddressToCart_args()
2280
    args.cartId = cartId
2281
    args.addressId = addressId
2282
    args.write(self._oprot)
2283
    self._oprot.writeMessageEnd()
2284
    self._oprot.trans.flush()
2285
 
2286
  def recv_addAddressToCart(self, ):
2287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2288
    if mtype == TMessageType.EXCEPTION:
2289
      x = TApplicationException()
2290
      x.read(self._iprot)
2291
      self._iprot.readMessageEnd()
2292
      raise x
2293
    result = addAddressToCart_result()
2294
    result.read(self._iprot)
2295
    self._iprot.readMessageEnd()
3431 rajveer 2296
    if result.scx is not None:
575 chandransh 2297
      raise result.scx
559 chandransh 2298
    return
2299
 
1976 varun.gupt 2300
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2301
    """
2302
    Parameters:
2303
     - cartId
2304
     - couponCode
2305
     - totalPrice
2306
     - discountedPrice
2307
    """
2308
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2309
    self.recv_applyCouponToCart()
2310
 
2311
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2312
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2313
    args = applyCouponToCart_args()
2314
    args.cartId = cartId
2315
    args.couponCode = couponCode
2316
    args.totalPrice = totalPrice
2317
    args.discountedPrice = discountedPrice
2318
    args.write(self._oprot)
2319
    self._oprot.writeMessageEnd()
2320
    self._oprot.trans.flush()
2321
 
2322
  def recv_applyCouponToCart(self, ):
2323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2324
    if mtype == TMessageType.EXCEPTION:
2325
      x = TApplicationException()
2326
      x.read(self._iprot)
2327
      self._iprot.readMessageEnd()
2328
      raise x
2329
    result = applyCouponToCart_result()
2330
    result.read(self._iprot)
2331
    self._iprot.readMessageEnd()
3431 rajveer 2332
    if result.scx is not None:
1976 varun.gupt 2333
      raise result.scx
2334
    return
2335
 
2336
  def removeCoupon(self, cartId):
2337
    """
2338
    Parameters:
2339
     - cartId
2340
    """
2341
    self.send_removeCoupon(cartId)
2342
    self.recv_removeCoupon()
2343
 
2344
  def send_removeCoupon(self, cartId):
2345
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2346
    args = removeCoupon_args()
2347
    args.cartId = cartId
2348
    args.write(self._oprot)
2349
    self._oprot.writeMessageEnd()
2350
    self._oprot.trans.flush()
2351
 
2352
  def recv_removeCoupon(self, ):
2353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2354
    if mtype == TMessageType.EXCEPTION:
2355
      x = TApplicationException()
2356
      x.read(self._iprot)
2357
      self._iprot.readMessageEnd()
2358
      raise x
2359
    result = removeCoupon_result()
2360
    result.read(self._iprot)
2361
    self._iprot.readMessageEnd()
3431 rajveer 2362
    if result.scx is not None:
1976 varun.gupt 2363
      raise result.scx
2364
    return
2365
 
2815 vikas 2366
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2367
    """
690 chandransh 2368
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2369
 
559 chandransh 2370
    Parameters:
2371
     - cartId
2815 vikas 2372
     - sessionSource
2373
     - sessionStartTime
559 chandransh 2374
    """
2815 vikas 2375
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2376
    return self.recv_createOrders()
559 chandransh 2377
 
2815 vikas 2378
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2379
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2380
    args = createOrders_args()
559 chandransh 2381
    args.cartId = cartId
2815 vikas 2382
    args.sessionSource = sessionSource
2383
    args.sessionStartTime = sessionStartTime
559 chandransh 2384
    args.write(self._oprot)
2385
    self._oprot.writeMessageEnd()
2386
    self._oprot.trans.flush()
2387
 
690 chandransh 2388
  def recv_createOrders(self, ):
559 chandransh 2389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2390
    if mtype == TMessageType.EXCEPTION:
2391
      x = TApplicationException()
2392
      x.read(self._iprot)
2393
      self._iprot.readMessageEnd()
2394
      raise x
690 chandransh 2395
    result = createOrders_result()
559 chandransh 2396
    result.read(self._iprot)
2397
    self._iprot.readMessageEnd()
3431 rajveer 2398
    if result.success is not None:
130 ashish 2399
      return result.success
3431 rajveer 2400
    if result.scx is not None:
559 chandransh 2401
      raise result.scx
690 chandransh 2402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2403
 
559 chandransh 2404
  def validateCart(self, cartId):
130 ashish 2405
    """
690 chandransh 2406
    Validates that:
2407
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2408
    2. All of the lines in the cart are active items.
690 chandransh 2409
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2410
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2411
 
130 ashish 2412
    Parameters:
559 chandransh 2413
     - cartId
130 ashish 2414
    """
559 chandransh 2415
    self.send_validateCart(cartId)
2416
    return self.recv_validateCart()
130 ashish 2417
 
559 chandransh 2418
  def send_validateCart(self, cartId):
2419
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2420
    args = validateCart_args()
2421
    args.cartId = cartId
130 ashish 2422
    args.write(self._oprot)
2423
    self._oprot.writeMessageEnd()
2424
    self._oprot.trans.flush()
2425
 
559 chandransh 2426
  def recv_validateCart(self, ):
130 ashish 2427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2428
    if mtype == TMessageType.EXCEPTION:
2429
      x = TApplicationException()
2430
      x.read(self._iprot)
2431
      self._iprot.readMessageEnd()
2432
      raise x
559 chandransh 2433
    result = validateCart_result()
130 ashish 2434
    result.read(self._iprot)
2435
    self._iprot.readMessageEnd()
3431 rajveer 2436
    if result.success is not None:
130 ashish 2437
      return result.success
3431 rajveer 2438
    if result.scex is not None:
575 chandransh 2439
      raise result.scex
559 chandransh 2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2441
 
690 chandransh 2442
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2443
    """
690 chandransh 2444
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2445
 
575 chandransh 2446
    Parameters:
690 chandransh 2447
     - fromCartId
2448
     - toCartId
2449
    """
2450
    self.send_mergeCart(fromCartId, toCartId)
2451
    self.recv_mergeCart()
2452
 
2453
  def send_mergeCart(self, fromCartId, toCartId):
2454
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2455
    args = mergeCart_args()
2456
    args.fromCartId = fromCartId
2457
    args.toCartId = toCartId
2458
    args.write(self._oprot)
2459
    self._oprot.writeMessageEnd()
2460
    self._oprot.trans.flush()
2461
 
2462
  def recv_mergeCart(self, ):
2463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2464
    if mtype == TMessageType.EXCEPTION:
2465
      x = TApplicationException()
2466
      x.read(self._iprot)
2467
      self._iprot.readMessageEnd()
2468
      raise x
2469
    result = mergeCart_result()
2470
    result.read(self._iprot)
2471
    self._iprot.readMessageEnd()
2472
    return
2473
 
2474
  def checkOut(self, cartId):
2475
    """
2476
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2477
 
690 chandransh 2478
    Parameters:
575 chandransh 2479
     - cartId
2480
    """
690 chandransh 2481
    self.send_checkOut(cartId)
2482
    return self.recv_checkOut()
575 chandransh 2483
 
690 chandransh 2484
  def send_checkOut(self, cartId):
2485
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2486
    args = checkOut_args()
575 chandransh 2487
    args.cartId = cartId
2488
    args.write(self._oprot)
2489
    self._oprot.writeMessageEnd()
2490
    self._oprot.trans.flush()
2491
 
690 chandransh 2492
  def recv_checkOut(self, ):
575 chandransh 2493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2494
    if mtype == TMessageType.EXCEPTION:
2495
      x = TApplicationException()
2496
      x.read(self._iprot)
2497
      self._iprot.readMessageEnd()
2498
      raise x
690 chandransh 2499
    result = checkOut_result()
575 chandransh 2500
    result.read(self._iprot)
2501
    self._iprot.readMessageEnd()
3431 rajveer 2502
    if result.success is not None:
575 chandransh 2503
      return result.success
3431 rajveer 2504
    if result.scex is not None:
575 chandransh 2505
      raise result.scex
690 chandransh 2506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2507
 
690 chandransh 2508
  def resetCart(self, cartId, items):
559 chandransh 2509
    """
690 chandransh 2510
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2511
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2512
 
559 chandransh 2513
    Parameters:
690 chandransh 2514
     - cartId
2515
     - items
559 chandransh 2516
    """
690 chandransh 2517
    self.send_resetCart(cartId, items)
2518
    return self.recv_resetCart()
130 ashish 2519
 
690 chandransh 2520
  def send_resetCart(self, cartId, items):
2521
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2522
    args = resetCart_args()
2523
    args.cartId = cartId
2524
    args.items = items
559 chandransh 2525
    args.write(self._oprot)
2526
    self._oprot.writeMessageEnd()
2527
    self._oprot.trans.flush()
2528
 
690 chandransh 2529
  def recv_resetCart(self, ):
559 chandransh 2530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2531
    if mtype == TMessageType.EXCEPTION:
2532
      x = TApplicationException()
2533
      x.read(self._iprot)
2534
      self._iprot.readMessageEnd()
2535
      raise x
690 chandransh 2536
    result = resetCart_result()
559 chandransh 2537
    result.read(self._iprot)
2538
    self._iprot.readMessageEnd()
3431 rajveer 2539
    if result.success is not None:
690 chandransh 2540
      return result.success
3431 rajveer 2541
    if result.scex is not None:
690 chandransh 2542
      raise result.scex
2543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2544
 
2981 rajveer 2545
  def getUserCount(self, userType):
559 chandransh 2546
    """
2981 rajveer 2547
    Returns number of registered users.
2548
    If userType = null, then it returns count of all users, including anonymous
2549
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2550
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2551
 
559 chandransh 2552
    Parameters:
2981 rajveer 2553
     - userType
559 chandransh 2554
    """
2981 rajveer 2555
    self.send_getUserCount(userType)
2556
    return self.recv_getUserCount()
559 chandransh 2557
 
2981 rajveer 2558
  def send_getUserCount(self, userType):
2559
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2560
    args = getUserCount_args()
2561
    args.userType = userType
559 chandransh 2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
2981 rajveer 2566
  def recv_getUserCount(self, ):
559 chandransh 2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
2981 rajveer 2573
    result = getUserCount_result()
559 chandransh 2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
3431 rajveer 2576
    if result.success is not None:
559 chandransh 2577
      return result.success
2981 rajveer 2578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2579
 
2981 rajveer 2580
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2581
    """
2981 rajveer 2582
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2583
    If any of startDate or endDate is -1, then that filter is ignored.
2584
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2585
 
2586
 
559 chandransh 2587
    Parameters:
2981 rajveer 2588
     - userType
2589
     - startDate
2590
     - endDate
559 chandransh 2591
    """
2981 rajveer 2592
    self.send_getAllUsers(userType, startDate, endDate)
2593
    return self.recv_getAllUsers()
559 chandransh 2594
 
2981 rajveer 2595
  def send_getAllUsers(self, userType, startDate, endDate):
2596
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2597
    args = getAllUsers_args()
2598
    args.userType = userType
2599
    args.startDate = startDate
2600
    args.endDate = endDate
559 chandransh 2601
    args.write(self._oprot)
2602
    self._oprot.writeMessageEnd()
2603
    self._oprot.trans.flush()
2604
 
2981 rajveer 2605
  def recv_getAllUsers(self, ):
559 chandransh 2606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2607
    if mtype == TMessageType.EXCEPTION:
2608
      x = TApplicationException()
2609
      x.read(self._iprot)
2610
      self._iprot.readMessageEnd()
2611
      raise x
2981 rajveer 2612
    result = getAllUsers_result()
559 chandransh 2613
    result.read(self._iprot)
2614
    self._iprot.readMessageEnd()
3431 rajveer 2615
    if result.success is not None:
559 chandransh 2616
      return result.success
2981 rajveer 2617
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2618
 
2981 rajveer 2619
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2620
    """
2621
    Parameters:
2981 rajveer 2622
     - user_id
2623
     - entity_id
2624
     - slide
2625
     - note
559 chandransh 2626
    """
2981 rajveer 2627
    self.send_putUserNote(user_id, entity_id, slide, note)
2628
    self.recv_putUserNote()
559 chandransh 2629
 
2981 rajveer 2630
  def send_putUserNote(self, user_id, entity_id, slide, note):
2631
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2632
    args = putUserNote_args()
2633
    args.user_id = user_id
2634
    args.entity_id = entity_id
2635
    args.slide = slide
2636
    args.note = note
559 chandransh 2637
    args.write(self._oprot)
2638
    self._oprot.writeMessageEnd()
2639
    self._oprot.trans.flush()
2640
 
2981 rajveer 2641
  def recv_putUserNote(self, ):
559 chandransh 2642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2643
    if mtype == TMessageType.EXCEPTION:
2644
      x = TApplicationException()
2645
      x.read(self._iprot)
2646
      self._iprot.readMessageEnd()
2647
      raise x
2981 rajveer 2648
    result = putUserNote_result()
559 chandransh 2649
    result.read(self._iprot)
2650
    self._iprot.readMessageEnd()
2651
    return
2652
 
2981 rajveer 2653
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2654
    """
2655
    Parameters:
2981 rajveer 2656
     - user_id
2657
     - entity_id
559 chandransh 2658
    """
2981 rajveer 2659
    self.send_getUserNotes(user_id, entity_id)
2660
    return self.recv_getUserNotes()
559 chandransh 2661
 
2981 rajveer 2662
  def send_getUserNotes(self, user_id, entity_id):
2663
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2664
    args = getUserNotes_args()
2665
    args.user_id = user_id
2666
    args.entity_id = entity_id
559 chandransh 2667
    args.write(self._oprot)
2668
    self._oprot.writeMessageEnd()
2669
    self._oprot.trans.flush()
2670
 
2981 rajveer 2671
  def recv_getUserNotes(self, ):
559 chandransh 2672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2673
    if mtype == TMessageType.EXCEPTION:
2674
      x = TApplicationException()
2675
      x.read(self._iprot)
2676
      self._iprot.readMessageEnd()
2677
      raise x
2981 rajveer 2678
    result = getUserNotes_result()
559 chandransh 2679
    result.read(self._iprot)
2680
    self._iprot.readMessageEnd()
3431 rajveer 2681
    if result.success is not None:
2981 rajveer 2682
      return result.success
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2684
 
2981 rajveer 2685
  def getMyResearchItems(self, userId):
559 chandransh 2686
    """
2981 rajveer 2687
    Returns list of item ids in myresearch for the user
3431 rajveer 2688
 
559 chandransh 2689
    Parameters:
772 rajveer 2690
     - userId
559 chandransh 2691
    """
2981 rajveer 2692
    self.send_getMyResearchItems(userId)
2693
    return self.recv_getMyResearchItems()
559 chandransh 2694
 
2981 rajveer 2695
  def send_getMyResearchItems(self, userId):
2696
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2697
    args = getMyResearchItems_args()
772 rajveer 2698
    args.userId = userId
559 chandransh 2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2981 rajveer 2703
  def recv_getMyResearchItems(self, ):
559 chandransh 2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2707
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2709
      raise x
2981 rajveer 2710
    result = getMyResearchItems_result()
559 chandransh 2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
3431 rajveer 2713
    if result.success is not None:
559 chandransh 2714
      return result.success
3431 rajveer 2715
    if result.scx is not None:
559 chandransh 2716
      raise result.scx
2981 rajveer 2717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2718
 
2981 rajveer 2719
  def updateMyResearch(self, userId, itemId):
559 chandransh 2720
    """
2981 rajveer 2721
    add item to my research for a user
3431 rajveer 2722
 
559 chandransh 2723
    Parameters:
2981 rajveer 2724
     - userId
2725
     - itemId
559 chandransh 2726
    """
2981 rajveer 2727
    self.send_updateMyResearch(userId, itemId)
2728
    return self.recv_updateMyResearch()
559 chandransh 2729
 
2981 rajveer 2730
  def send_updateMyResearch(self, userId, itemId):
2731
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2732
    args = updateMyResearch_args()
2733
    args.userId = userId
2734
    args.itemId = itemId
559 chandransh 2735
    args.write(self._oprot)
2736
    self._oprot.writeMessageEnd()
2737
    self._oprot.trans.flush()
2738
 
2981 rajveer 2739
  def recv_updateMyResearch(self, ):
559 chandransh 2740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2741
    if mtype == TMessageType.EXCEPTION:
2742
      x = TApplicationException()
2743
      x.read(self._iprot)
2744
      self._iprot.readMessageEnd()
2745
      raise x
2981 rajveer 2746
    result = updateMyResearch_result()
559 chandransh 2747
    result.read(self._iprot)
2748
    self._iprot.readMessageEnd()
3431 rajveer 2749
    if result.success is not None:
2981 rajveer 2750
      return result.success
3431 rajveer 2751
    if result.scx is not None:
2981 rajveer 2752
      raise result.scx
2753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2754
 
2981 rajveer 2755
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2756
    """
2981 rajveer 2757
    delete item from my research for a user
3431 rajveer 2758
 
1596 ankur.sing 2759
    Parameters:
2981 rajveer 2760
     - userId
2761
     - itemId
1596 ankur.sing 2762
    """
2981 rajveer 2763
    self.send_deleteItemFromMyResearch(userId, itemId)
2764
    self.recv_deleteItemFromMyResearch()
559 chandransh 2765
 
2981 rajveer 2766
  def send_deleteItemFromMyResearch(self, userId, itemId):
2767
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2768
    args = deleteItemFromMyResearch_args()
2769
    args.userId = userId
2770
    args.itemId = itemId
1596 ankur.sing 2771
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
2774
 
2981 rajveer 2775
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2777
    if mtype == TMessageType.EXCEPTION:
2778
      x = TApplicationException()
2779
      x.read(self._iprot)
2780
      self._iprot.readMessageEnd()
2781
      raise x
2981 rajveer 2782
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2783
    result.read(self._iprot)
2784
    self._iprot.readMessageEnd()
3431 rajveer 2785
    if result.scx is not None:
2981 rajveer 2786
      raise result.scx
2787
    return
1596 ankur.sing 2788
 
2981 rajveer 2789
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2790
    """
2981 rajveer 2791
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2792
 
1673 ankur.sing 2793
    Parameters:
2981 rajveer 2794
     - userId
1673 ankur.sing 2795
    """
2981 rajveer 2796
    self.send_getBrowseHistoryItems(userId)
2797
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2798
 
2981 rajveer 2799
  def send_getBrowseHistoryItems(self, userId):
2800
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2801
    args = getBrowseHistoryItems_args()
2802
    args.userId = userId
1673 ankur.sing 2803
    args.write(self._oprot)
2804
    self._oprot.writeMessageEnd()
2805
    self._oprot.trans.flush()
2806
 
2981 rajveer 2807
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2809
    if mtype == TMessageType.EXCEPTION:
2810
      x = TApplicationException()
2811
      x.read(self._iprot)
2812
      self._iprot.readMessageEnd()
2813
      raise x
2981 rajveer 2814
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2815
    result.read(self._iprot)
2816
    self._iprot.readMessageEnd()
3431 rajveer 2817
    if result.success is not None:
1673 ankur.sing 2818
      return result.success
3431 rajveer 2819
    if result.scx is not None:
2981 rajveer 2820
      raise result.scx
2821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2822
 
2981 rajveer 2823
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2824
    """
2981 rajveer 2825
    add item to browse history for a user
3431 rajveer 2826
 
2642 varun.gupt 2827
    Parameters:
2981 rajveer 2828
     - userId
2829
     - itemId
2642 varun.gupt 2830
    """
2981 rajveer 2831
    self.send_updateBrowseHistory(userId, itemId)
2832
    self.recv_updateBrowseHistory()
1673 ankur.sing 2833
 
2981 rajveer 2834
  def send_updateBrowseHistory(self, userId, itemId):
2835
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2836
    args = updateBrowseHistory_args()
2837
    args.userId = userId
2838
    args.itemId = itemId
2642 varun.gupt 2839
    args.write(self._oprot)
2840
    self._oprot.writeMessageEnd()
2841
    self._oprot.trans.flush()
2842
 
2981 rajveer 2843
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2845
    if mtype == TMessageType.EXCEPTION:
2846
      x = TApplicationException()
2847
      x.read(self._iprot)
2848
      self._iprot.readMessageEnd()
2849
      raise x
2981 rajveer 2850
    result = updateBrowseHistory_result()
2642 varun.gupt 2851
    result.read(self._iprot)
2852
    self._iprot.readMessageEnd()
2853
    return
2854
 
3385 varun.gupt 2855
  def getCartsWithCouponCount(self, couponCode):
2856
    """
2857
    Returns count of Carts with given coupon applied
3431 rajveer 2858
 
3385 varun.gupt 2859
    Parameters:
2860
     - couponCode
2861
    """
2862
    self.send_getCartsWithCouponCount(couponCode)
2863
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2864
 
3385 varun.gupt 2865
  def send_getCartsWithCouponCount(self, couponCode):
2866
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2867
    args = getCartsWithCouponCount_args()
2868
    args.couponCode = couponCode
2869
    args.write(self._oprot)
2870
    self._oprot.writeMessageEnd()
2871
    self._oprot.trans.flush()
2872
 
2873
  def recv_getCartsWithCouponCount(self, ):
2874
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2875
    if mtype == TMessageType.EXCEPTION:
2876
      x = TApplicationException()
2877
      x.read(self._iprot)
2878
      self._iprot.readMessageEnd()
2879
      raise x
2880
    result = getCartsWithCouponCount_result()
2881
    result.read(self._iprot)
2882
    self._iprot.readMessageEnd()
3431 rajveer 2883
    if result.success is not None:
3385 varun.gupt 2884
      return result.success
2885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2886
 
3499 mandeep.dh 2887
  def increaseTrustLevel(self, userId, trustLevelDelta):
2888
    """
2889
    Updates COD trust level of a user
3385 varun.gupt 2890
 
3499 mandeep.dh 2891
    Parameters:
2892
     - userId
2893
     - trustLevelDelta
2894
    """
2895
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2896
    self.recv_increaseTrustLevel()
2897
 
2898
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2899
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2900
    args = increaseTrustLevel_args()
2901
    args.userId = userId
2902
    args.trustLevelDelta = trustLevelDelta
2903
    args.write(self._oprot)
2904
    self._oprot.writeMessageEnd()
2905
    self._oprot.trans.flush()
2906
 
2907
  def recv_increaseTrustLevel(self, ):
2908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2909
    if mtype == TMessageType.EXCEPTION:
2910
      x = TApplicationException()
2911
      x.read(self._iprot)
2912
      self._iprot.readMessageEnd()
2913
      raise x
2914
    result = increaseTrustLevel_result()
2915
    result.read(self._iprot)
2916
    self._iprot.readMessageEnd()
2917
    return
2918
 
2919
 
3376 rajveer 2920
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2921
  def __init__(self, handler):
3376 rajveer 2922
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2923
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2924
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2925
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2926
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2927
    self._processMap["createUser"] = Processor.process_createUser
2928
    self._processMap["updateUser"] = Processor.process_updateUser
2929
    self._processMap["deleteUser"] = Processor.process_deleteUser
2930
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2931
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2932
    self._processMap["userExists"] = Processor.process_userExists
2933
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2934
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2935
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2936
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2937
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2938
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2939
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2940
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2941
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2942
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2943
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2944
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2945
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2946
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2947
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2948
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2949
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2950
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2951
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2952
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2953
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2954
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2955
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2956
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2957
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2958
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2959
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2960
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2961
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2962
    self._processMap["createCart"] = Processor.process_createCart
2963
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2964
    self._processMap["getCart"] = Processor.process_getCart
2965
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
2966
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
2967
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2968
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
2969
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2970
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2971
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2972
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2973
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2974
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2975
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
690 chandransh 2976
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2977
    self._processMap["validateCart"] = Processor.process_validateCart
2978
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2979
    self._processMap["checkOut"] = Processor.process_checkOut
2980
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2981
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2982
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2983
    self._processMap["putUserNote"] = Processor.process_putUserNote
2984
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2985
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2986
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2987
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2988
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2989
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2990
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2991
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 2992
 
2993
  def process(self, iprot, oprot):
2994
    (name, type, seqid) = iprot.readMessageBegin()
2995
    if name not in self._processMap:
2996
      iprot.skip(TType.STRUCT)
2997
      iprot.readMessageEnd()
2998
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2999
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3000
      x.write(oprot)
3001
      oprot.writeMessageEnd()
3002
      oprot.trans.flush()
3003
      return
3004
    else:
3005
      self._processMap[name](self, seqid, iprot, oprot)
3006
    return True
3007
 
559 chandransh 3008
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3009
    args = createAnonymousUser_args()
94 ashish 3010
    args.read(iprot)
3011
    iprot.readMessageEnd()
559 chandransh 3012
    result = createAnonymousUser_result()
94 ashish 3013
    try:
559 chandransh 3014
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3015
    except UserContextException, ucex:
3016
      result.ucex = ucex
3017
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3018
    result.write(oprot)
3019
    oprot.writeMessageEnd()
3020
    oprot.trans.flush()
3021
 
559 chandransh 3022
  def process_getUserById(self, seqid, iprot, oprot):
3023
    args = getUserById_args()
94 ashish 3024
    args.read(iprot)
3025
    iprot.readMessageEnd()
559 chandransh 3026
    result = getUserById_result()
94 ashish 3027
    try:
559 chandransh 3028
      result.success = self._handler.getUserById(args.userId)
3029
    except UserContextException, ucex:
3030
      result.ucex = ucex
3031
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3032
    result.write(oprot)
3033
    oprot.writeMessageEnd()
3034
    oprot.trans.flush()
3035
 
1491 vikas 3036
  def process_getUserByEmail(self, seqid, iprot, oprot):
3037
    args = getUserByEmail_args()
3038
    args.read(iprot)
3039
    iprot.readMessageEnd()
3040
    result = getUserByEmail_result()
3041
    try:
3042
      result.success = self._handler.getUserByEmail(args.email)
3043
    except UserContextException, ucex:
3044
      result.ucex = ucex
3045
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3046
    result.write(oprot)
3047
    oprot.writeMessageEnd()
3048
    oprot.trans.flush()
3049
 
3032 mandeep.dh 3050
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3051
    args = getUserByMobileNumber_args()
3052
    args.read(iprot)
3053
    iprot.readMessageEnd()
3054
    result = getUserByMobileNumber_result()
3055
    try:
3056
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3057
    except UserContextException, ucex:
3058
      result.ucex = ucex
3059
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3060
    result.write(oprot)
3061
    oprot.writeMessageEnd()
3062
    oprot.trans.flush()
3063
 
559 chandransh 3064
  def process_createUser(self, seqid, iprot, oprot):
3065
    args = createUser_args()
94 ashish 3066
    args.read(iprot)
3067
    iprot.readMessageEnd()
559 chandransh 3068
    result = createUser_result()
94 ashish 3069
    try:
559 chandransh 3070
      result.success = self._handler.createUser(args.user)
3071
    except UserContextException, ucex:
3072
      result.ucex = ucex
3073
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3074
    result.write(oprot)
3075
    oprot.writeMessageEnd()
3076
    oprot.trans.flush()
3077
 
559 chandransh 3078
  def process_updateUser(self, seqid, iprot, oprot):
3079
    args = updateUser_args()
94 ashish 3080
    args.read(iprot)
3081
    iprot.readMessageEnd()
559 chandransh 3082
    result = updateUser_result()
94 ashish 3083
    try:
559 chandransh 3084
      result.success = self._handler.updateUser(args.user)
3085
    except UserContextException, ucex:
3086
      result.ucex = ucex
3087
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3088
    result.write(oprot)
3089
    oprot.writeMessageEnd()
3090
    oprot.trans.flush()
3091
 
559 chandransh 3092
  def process_deleteUser(self, seqid, iprot, oprot):
3093
    args = deleteUser_args()
94 ashish 3094
    args.read(iprot)
3095
    iprot.readMessageEnd()
559 chandransh 3096
    result = deleteUser_result()
94 ashish 3097
    try:
559 chandransh 3098
      result.success = self._handler.deleteUser(args.userId)
3099
    except UserContextException, ucex:
3100
      result.ucex = ucex
3101
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3102
    result.write(oprot)
3103
    oprot.writeMessageEnd()
3104
    oprot.trans.flush()
3105
 
559 chandransh 3106
  def process_getUserState(self, seqid, iprot, oprot):
3107
    args = getUserState_args()
94 ashish 3108
    args.read(iprot)
3109
    iprot.readMessageEnd()
559 chandransh 3110
    result = getUserState_result()
94 ashish 3111
    try:
559 chandransh 3112
      result.success = self._handler.getUserState(args.userId)
3113
    except UserContextException, ucex:
3114
      result.ucex = ucex
3115
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3116
    result.write(oprot)
3117
    oprot.writeMessageEnd()
3118
    oprot.trans.flush()
3119
 
122 ashish 3120
  def process_authenticateUser(self, seqid, iprot, oprot):
3121
    args = authenticateUser_args()
3122
    args.read(iprot)
3123
    iprot.readMessageEnd()
3124
    result = authenticateUser_result()
3125
    try:
559 chandransh 3126
      result.success = self._handler.authenticateUser(args.email, args.password)
3127
    except AuthenticationException, auex:
3128
      result.auex = auex
122 ashish 3129
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3130
    result.write(oprot)
3131
    oprot.writeMessageEnd()
3132
    oprot.trans.flush()
3133
 
94 ashish 3134
  def process_userExists(self, seqid, iprot, oprot):
3135
    args = userExists_args()
3136
    args.read(iprot)
3137
    iprot.readMessageEnd()
3138
    result = userExists_result()
3139
    try:
3140
      result.success = self._handler.userExists(args.email)
3141
    except UserContextException, ucx:
3142
      result.ucx = ucx
3143
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3144
    result.write(oprot)
3145
    oprot.writeMessageEnd()
3146
    oprot.trans.flush()
3147
 
3148
  def process_addAddressForUser(self, seqid, iprot, oprot):
3149
    args = addAddressForUser_args()
3150
    args.read(iprot)
3151
    iprot.readMessageEnd()
3152
    result = addAddressForUser_result()
3153
    try:
567 rajveer 3154
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3155
    except UserContextException, ucx:
3156
      result.ucx = ucx
3157
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3158
    result.write(oprot)
3159
    oprot.writeMessageEnd()
3160
    oprot.trans.flush()
3161
 
3162
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3163
    args = removeAddressForUser_args()
3164
    args.read(iprot)
3165
    iprot.readMessageEnd()
3166
    result = removeAddressForUser_result()
3167
    try:
3168
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3169
    except UserContextException, ucx:
3170
      result.ucx = ucx
3171
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3172
    result.write(oprot)
3173
    oprot.writeMessageEnd()
3174
    oprot.trans.flush()
3175
 
3176
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3177
    args = setUserAsLoggedIn_args()
3178
    args.read(iprot)
3179
    iprot.readMessageEnd()
3180
    result = setUserAsLoggedIn_result()
3181
    try:
3182
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3183
    except UserContextException, ucx:
3184
      result.ucx = ucx
3185
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3186
    result.write(oprot)
3187
    oprot.writeMessageEnd()
3188
    oprot.trans.flush()
3189
 
3190
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3191
    args = setUserAsLoggedOut_args()
3192
    args.read(iprot)
3193
    iprot.readMessageEnd()
3194
    result = setUserAsLoggedOut_result()
3195
    try:
3196
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3197
    except UserContextException, ucx:
3198
      result.ucx = ucx
3199
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
504 rajveer 3204
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3205
    args = setDefaultAddress_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = setDefaultAddress_result()
3209
    try:
3210
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3211
    except UserContextException, ucx:
3212
      result.ucx = ucx
3213
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
94 ashish 3218
  def process_updatePassword(self, seqid, iprot, oprot):
3219
    args = updatePassword_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = updatePassword_result()
3223
    try:
594 rajveer 3224
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3225
    except UserContextException, ucx:
3226
      result.ucx = ucx
3227
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
581 rajveer 3232
  def process_forgotPassword(self, seqid, iprot, oprot):
3233
    args = forgotPassword_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = forgotPassword_result()
3237
    try:
884 rajveer 3238
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3239
    except UserContextException, ucx:
3240
      result.ucx = ucx
3241
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
594 rajveer 3246
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3247
    args = getAllAddressesForUser_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getAllAddressesForUser_result()
3251
    try:
3252
      result.success = self._handler.getAllAddressesForUser(args.userId)
3253
    except UserContextException, ucx:
3254
      result.ucx = ucx
3255
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
1894 vikas 3260
  def process_getAddressById(self, seqid, iprot, oprot):
3261
    args = getAddressById_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = getAddressById_result()
3265
    try:
3266
      result.success = self._handler.getAddressById(args.addressId)
3267
    except UserContextException, ucx:
3268
      result.ucx = ucx
3269
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
594 rajveer 3274
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3275
    args = getDefaultAddressId_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = getDefaultAddressId_result()
3279
    try:
3280
      result.success = self._handler.getDefaultAddressId(args.userId)
3281
    except UserContextException, ucx:
3282
      result.ucx = ucx
3283
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
785 rajveer 3288
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3289
    args = getDefaultPincode_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = getDefaultPincode_result()
3293
    try:
3294
      result.success = self._handler.getDefaultPincode(args.userId)
3295
    except UserContextException, ucx:
3296
      result.ucx = ucx
3297
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
1274 varun.gupt 3302
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3303
    args = saveUserCommunication_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = saveUserCommunication_result()
3307
    try:
3308
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3309
    except UserCommunicationException, ucx:
3310
      result.ucx = ucx
3311
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
1590 varun.gupt 3316
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3317
    args = getUserCommunicationById_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = getUserCommunicationById_result()
3321
    try:
3322
      result.success = self._handler.getUserCommunicationById(args.id)
3323
    except UserCommunicationException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3331
    args = getUserCommunicationByUser_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = getUserCommunicationByUser_result()
3335
    try:
3336
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3337
    except UserCommunicationException, ucx:
3338
      result.ucx = ucx
3339
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
3344
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3345
    args = getAllUserCommunications_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = getAllUserCommunications_result()
3349
    try:
3350
      result.success = self._handler.getAllUserCommunications()
3351
    except UserCommunicationException, ucx:
3352
      result.ucx = ucx
3353
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
1845 vikas 3358
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3359
    args = createMasterAffiliate_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = createMasterAffiliate_result()
3363
    try:
1859 vikas 3364
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3365
    except UserAffiliateException, utx:
1845 vikas 3366
      result.utx = utx
3367
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
1899 vikas 3372
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3373
    args = getAllMasterAffiliates_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = getAllMasterAffiliates_result()
3377
    try:
3378
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3379
    except UserAffiliateException, utx:
1899 vikas 3380
      result.utx = utx
3381
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
1845 vikas 3386
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3387
    args = getMasterAffiliateById_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = getMasterAffiliateById_result()
3391
    try:
3392
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3393
    except UserAffiliateException, utx:
1845 vikas 3394
      result.utx = utx
3395
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3401
    args = getMasterAffiliateByName_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = getMasterAffiliateByName_result()
3405
    try:
3406
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3407
    except UserAffiliateException, utx:
1845 vikas 3408
      result.utx = utx
3409
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
3414
  def process_createAffiliate(self, seqid, iprot, oprot):
3415
    args = createAffiliate_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = createAffiliate_result()
3419
    try:
1859 vikas 3420
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3421
    except UserAffiliateException, utx:
1845 vikas 3422
      result.utx = utx
3423
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
3428
  def process_getAffiliateById(self, seqid, iprot, oprot):
3429
    args = getAffiliateById_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getAffiliateById_result()
3433
    try:
3434
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3435
    except UserAffiliateException, utx:
1845 vikas 3436
      result.utx = utx
3437
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
3442
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3443
    args = getAffiliateByName_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getAffiliateByName_result()
3447
    try:
3448
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3449
    except UserAffiliateException, utx:
1845 vikas 3450
      result.utx = utx
3451
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
3456
  def process_getTrackerById(self, seqid, iprot, oprot):
3457
    args = getTrackerById_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getTrackerById_result()
3461
    try:
1996 vikas 3462
      result.success = self._handler.getTrackerById(args.id)
3463
    except UserAffiliateException, utx:
1845 vikas 3464
      result.utx = utx
3465
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
1996 vikas 3470
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3471
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
1996 vikas 3474
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3475
    try:
1996 vikas 3476
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3477
    except UserAffiliateException, utx:
1845 vikas 3478
      result.utx = utx
1996 vikas 3479
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
3484
  def process_addTrackLog(self, seqid, iprot, oprot):
3485
    args = addTrackLog_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = addTrackLog_result()
3489
    try:
1996 vikas 3490
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3491
    except UserAffiliateException, utx:
1845 vikas 3492
      result.utx = utx
3493
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
3498
  def process_getTrackLogById(self, seqid, iprot, oprot):
3499
    args = getTrackLogById_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getTrackLogById_result()
3503
    try:
3504
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3505
    except UserAffiliateException, utx:
1845 vikas 3506
      result.utx = utx
3507
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
1996 vikas 3512
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3513
    args = getTrackLogsByAffiliate_args()
1845 vikas 3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
1996 vikas 3516
    result = getTrackLogsByAffiliate_result()
1845 vikas 3517
    try:
3293 vikas 3518
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3519
    except UserAffiliateException, utx:
1845 vikas 3520
      result.utx = utx
1996 vikas 3521
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
3526
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3527
    args = getTrackLogsByUser_args()
3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
3530
    result = getTrackLogsByUser_result()
3531
    try:
3532
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3533
    except UserAffiliateException, utx:
1845 vikas 3534
      result.utx = utx
3535
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
3540
  def process_getTrackLogs(self, seqid, iprot, oprot):
3541
    args = getTrackLogs_args()
3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
3544
    result = getTrackLogs_result()
3545
    try:
1996 vikas 3546
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3547
    except UserAffiliateException, utx:
1845 vikas 3548
      result.utx = utx
3549
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
559 chandransh 3554
  def process_createCart(self, seqid, iprot, oprot):
3555
    args = createCart_args()
94 ashish 3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
559 chandransh 3558
    result = createCart_result()
94 ashish 3559
    try:
559 chandransh 3560
      result.success = self._handler.createCart(args.userId)
3561
    except ShoppingCartException, scx:
3562
      result.scx = scx
3563
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
559 chandransh 3568
  def process_getCurrentCart(self, seqid, iprot, oprot):
3569
    args = getCurrentCart_args()
94 ashish 3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
559 chandransh 3572
    result = getCurrentCart_result()
94 ashish 3573
    try:
559 chandransh 3574
      result.success = self._handler.getCurrentCart(args.userId)
3575
    except ShoppingCartException, scx:
3576
      result.scx = scx
3577
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
559 chandransh 3582
  def process_getCart(self, seqid, iprot, oprot):
3583
    args = getCart_args()
94 ashish 3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
559 chandransh 3586
    result = getCart_result()
94 ashish 3587
    try:
559 chandransh 3588
      result.success = self._handler.getCart(args.cartId)
3589
    except ShoppingCartException, scx:
3590
      result.scx = scx
3591
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
3595
 
559 chandransh 3596
  def process_getCartsForUser(self, seqid, iprot, oprot):
3597
    args = getCartsForUser_args()
94 ashish 3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
559 chandransh 3600
    result = getCartsForUser_result()
94 ashish 3601
    try:
559 chandransh 3602
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3603
    except ShoppingCartException, scx:
3604
      result.scx = scx
3605
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
559 chandransh 3610
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3611
    args = getCartsByStatus_args()
94 ashish 3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
559 chandransh 3614
    result = getCartsByStatus_result()
94 ashish 3615
    try:
559 chandransh 3616
      result.success = self._handler.getCartsByStatus(args.status)
3617
    except ShoppingCartException, scx:
3618
      result.scx = scx
3619
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
559 chandransh 3624
  def process_getCartsByTime(self, seqid, iprot, oprot):
3625
    args = getCartsByTime_args()
94 ashish 3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
559 chandransh 3628
    result = getCartsByTime_result()
94 ashish 3629
    try:
559 chandransh 3630
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3631
    except ShoppingCartException, scx:
3632
      result.scx = scx
3633
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
559 chandransh 3638
  def process_changeCartStatus(self, seqid, iprot, oprot):
3639
    args = changeCartStatus_args()
130 ashish 3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
559 chandransh 3642
    result = changeCartStatus_result()
130 ashish 3643
    try:
559 chandransh 3644
      self._handler.changeCartStatus(args.cartId, args.status)
3645
    except ShoppingCartException, scx:
3646
      result.scx = scx
3647
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
94 ashish 3651
 
559 chandransh 3652
  def process_addItemToCart(self, seqid, iprot, oprot):
3653
    args = addItemToCart_args()
130 ashish 3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
559 chandransh 3656
    result = addItemToCart_result()
130 ashish 3657
    try:
2035 rajveer 3658
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
559 chandransh 3659
    except ShoppingCartException, scx:
3660
      result.scx = scx
3661
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
559 chandransh 3666
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3667
    args = deleteItemFromCart_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = deleteItemFromCart_result()
3671
    try:
3672
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3673
    except ShoppingCartException, scx:
3674
      result.scx = scx
3675
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
130 ashish 3679
 
559 chandransh 3680
  def process_changeQuantity(self, seqid, iprot, oprot):
3681
    args = changeQuantity_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = changeQuantity_result()
3685
    try:
3686
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
3687
    except ShoppingCartException, scx:
3688
      result.scx = scx
3689
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_changeItemStatus(self, seqid, iprot, oprot):
3695
    args = changeItemStatus_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = changeItemStatus_result()
3699
    try:
3700
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3701
    except ShoppingCartException, scx:
3702
      result.scx = scx
3703
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
3708
  def process_addAddressToCart(self, seqid, iprot, oprot):
3709
    args = addAddressToCart_args()
3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
3712
    result = addAddressToCart_result()
575 chandransh 3713
    try:
3714
      self._handler.addAddressToCart(args.cartId, args.addressId)
3715
    except ShoppingCartException, scx:
3716
      result.scx = scx
559 chandransh 3717
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
1976 varun.gupt 3722
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3723
    args = applyCouponToCart_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = applyCouponToCart_result()
3727
    try:
3728
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3729
    except ShoppingCartException, scx:
3730
      result.scx = scx
3731
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
3736
  def process_removeCoupon(self, seqid, iprot, oprot):
3737
    args = removeCoupon_args()
3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
3740
    result = removeCoupon_result()
3741
    try:
3742
      self._handler.removeCoupon(args.cartId)
3743
    except ShoppingCartException, scx:
3744
      result.scx = scx
3745
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
690 chandransh 3750
  def process_createOrders(self, seqid, iprot, oprot):
3751
    args = createOrders_args()
559 chandransh 3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
690 chandransh 3754
    result = createOrders_result()
559 chandransh 3755
    try:
2815 vikas 3756
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3757
    except ShoppingCartException, scx:
3758
      result.scx = scx
690 chandransh 3759
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_validateCart(self, seqid, iprot, oprot):
3765
    args = validateCart_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = validateCart_result()
575 chandransh 3769
    try:
3770
      result.success = self._handler.validateCart(args.cartId)
3771
    except ShoppingCartException, scex:
3772
      result.scex = scex
559 chandransh 3773
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
690 chandransh 3778
  def process_mergeCart(self, seqid, iprot, oprot):
3779
    args = mergeCart_args()
575 chandransh 3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
690 chandransh 3782
    result = mergeCart_result()
3783
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3784
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3785
    result.write(oprot)
3786
    oprot.writeMessageEnd()
3787
    oprot.trans.flush()
3788
 
3789
  def process_checkOut(self, seqid, iprot, oprot):
3790
    args = checkOut_args()
3791
    args.read(iprot)
3792
    iprot.readMessageEnd()
3793
    result = checkOut_result()
575 chandransh 3794
    try:
690 chandransh 3795
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3796
    except ShoppingCartException, scex:
3797
      result.scex = scex
690 chandransh 3798
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3799
    result.write(oprot)
3800
    oprot.writeMessageEnd()
3801
    oprot.trans.flush()
3802
 
690 chandransh 3803
  def process_resetCart(self, seqid, iprot, oprot):
3804
    args = resetCart_args()
559 chandransh 3805
    args.read(iprot)
3806
    iprot.readMessageEnd()
690 chandransh 3807
    result = resetCart_result()
3808
    try:
3809
      result.success = self._handler.resetCart(args.cartId, args.items)
3810
    except ShoppingCartException, scex:
3811
      result.scex = scex
3812
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3813
    result.write(oprot)
3814
    oprot.writeMessageEnd()
3815
    oprot.trans.flush()
3816
 
2981 rajveer 3817
  def process_getUserCount(self, seqid, iprot, oprot):
3818
    args = getUserCount_args()
559 chandransh 3819
    args.read(iprot)
3820
    iprot.readMessageEnd()
2981 rajveer 3821
    result = getUserCount_result()
3822
    result.success = self._handler.getUserCount(args.userType)
3823
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3824
    result.write(oprot)
3825
    oprot.writeMessageEnd()
3826
    oprot.trans.flush()
3827
 
2981 rajveer 3828
  def process_getAllUsers(self, seqid, iprot, oprot):
3829
    args = getAllUsers_args()
559 chandransh 3830
    args.read(iprot)
3831
    iprot.readMessageEnd()
2981 rajveer 3832
    result = getAllUsers_result()
3833
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3834
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3835
    result.write(oprot)
3836
    oprot.writeMessageEnd()
3837
    oprot.trans.flush()
3838
 
2981 rajveer 3839
  def process_putUserNote(self, seqid, iprot, oprot):
3840
    args = putUserNote_args()
559 chandransh 3841
    args.read(iprot)
3842
    iprot.readMessageEnd()
2981 rajveer 3843
    result = putUserNote_result()
3844
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3845
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3846
    result.write(oprot)
3847
    oprot.writeMessageEnd()
3848
    oprot.trans.flush()
3849
 
2981 rajveer 3850
  def process_getUserNotes(self, seqid, iprot, oprot):
3851
    args = getUserNotes_args()
559 chandransh 3852
    args.read(iprot)
3853
    iprot.readMessageEnd()
2981 rajveer 3854
    result = getUserNotes_result()
3855
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3856
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
2981 rajveer 3861
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3862
    args = getMyResearchItems_args()
559 chandransh 3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
2981 rajveer 3865
    result = getMyResearchItems_result()
559 chandransh 3866
    try:
2981 rajveer 3867
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3868
    except WidgetException, scx:
3869
      result.scx = scx
2981 rajveer 3870
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
3874
 
2981 rajveer 3875
  def process_updateMyResearch(self, seqid, iprot, oprot):
3876
    args = updateMyResearch_args()
772 rajveer 3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
2981 rajveer 3879
    result = updateMyResearch_result()
3880
    try:
3881
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3882
    except WidgetException, scx:
3883
      result.scx = scx
3884
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
559 chandransh 3888
 
2981 rajveer 3889
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3890
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
2981 rajveer 3893
    result = deleteItemFromMyResearch_result()
3894
    try:
3895
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3896
    except WidgetException, scx:
3897
      result.scx = scx
3898
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
772 rajveer 3902
 
2981 rajveer 3903
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3904
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
2981 rajveer 3907
    result = getBrowseHistoryItems_result()
3908
    try:
3909
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3910
    except WidgetException, scx:
3911
      result.scx = scx
3912
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
1596 ankur.sing 3916
 
2981 rajveer 3917
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3918
    args = updateBrowseHistory_args()
2642 varun.gupt 3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
2981 rajveer 3921
    result = updateBrowseHistory_result()
3922
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3923
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3924
    result.write(oprot)
3925
    oprot.writeMessageEnd()
3926
    oprot.trans.flush()
1673 ankur.sing 3927
 
3385 varun.gupt 3928
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3929
    args = getCartsWithCouponCount_args()
3930
    args.read(iprot)
3931
    iprot.readMessageEnd()
3932
    result = getCartsWithCouponCount_result()
3933
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3934
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3935
    result.write(oprot)
3936
    oprot.writeMessageEnd()
3937
    oprot.trans.flush()
2642 varun.gupt 3938
 
3499 mandeep.dh 3939
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3940
    args = increaseTrustLevel_args()
3941
    args.read(iprot)
3942
    iprot.readMessageEnd()
3943
    result = increaseTrustLevel_result()
3944
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3945
    oprot.writeMessageBegin("increaseTrustLevel", TMessageType.REPLY, seqid)
3946
    result.write(oprot)
3947
    oprot.writeMessageEnd()
3948
    oprot.trans.flush()
3385 varun.gupt 3949
 
3499 mandeep.dh 3950
 
94 ashish 3951
# HELPER FUNCTIONS AND STRUCTURES
3952
 
559 chandransh 3953
class createAnonymousUser_args:
94 ashish 3954
  """
3955
  Attributes:
559 chandransh 3956
   - jsessionId
94 ashish 3957
  """
3958
 
3959
  thrift_spec = (
3960
    None, # 0
559 chandransh 3961
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3962
  )
3963
 
559 chandransh 3964
  def __init__(self, jsessionId=None,):
3965
    self.jsessionId = jsessionId
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 == 1:
559 chandransh 3977
        if ftype == TType.STRING:
3978
          self.jsessionId = iprot.readString();
94 ashish 3979
        else:
3980
          iprot.skip(ftype)
3981
      else:
3982
        iprot.skip(ftype)
3983
      iprot.readFieldEnd()
3984
    iprot.readStructEnd()
3985
 
3986
  def write(self, oprot):
3987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3989
      return
559 chandransh 3990
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3991
    if self.jsessionId is not None:
559 chandransh 3992
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3993
      oprot.writeString(self.jsessionId)
94 ashish 3994
      oprot.writeFieldEnd()
3995
    oprot.writeFieldStop()
3996
    oprot.writeStructEnd()
3997
 
3431 rajveer 3998
  def validate(self):
3999
    return
4000
 
4001
 
94 ashish 4002
  def __repr__(self):
4003
    L = ['%s=%r' % (key, value)
4004
      for key, value in self.__dict__.iteritems()]
4005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4006
 
4007
  def __eq__(self, other):
4008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4009
 
4010
  def __ne__(self, other):
4011
    return not (self == other)
4012
 
559 chandransh 4013
class createAnonymousUser_result:
94 ashish 4014
  """
4015
  Attributes:
4016
   - success
559 chandransh 4017
   - ucex
94 ashish 4018
  """
4019
 
4020
  thrift_spec = (
559 chandransh 4021
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4022
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4023
  )
4024
 
559 chandransh 4025
  def __init__(self, success=None, ucex=None,):
94 ashish 4026
    self.success = success
559 chandransh 4027
    self.ucex = ucex
94 ashish 4028
 
4029
  def read(self, iprot):
4030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4032
      return
4033
    iprot.readStructBegin()
4034
    while True:
4035
      (fname, ftype, fid) = iprot.readFieldBegin()
4036
      if ftype == TType.STOP:
4037
        break
4038
      if fid == 0:
4039
        if ftype == TType.STRUCT:
559 chandransh 4040
          self.success = User()
94 ashish 4041
          self.success.read(iprot)
4042
        else:
4043
          iprot.skip(ftype)
4044
      elif fid == 1:
4045
        if ftype == TType.STRUCT:
559 chandransh 4046
          self.ucex = UserContextException()
4047
          self.ucex.read(iprot)
94 ashish 4048
        else:
4049
          iprot.skip(ftype)
4050
      else:
4051
        iprot.skip(ftype)
4052
      iprot.readFieldEnd()
4053
    iprot.readStructEnd()
4054
 
4055
  def write(self, oprot):
4056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4058
      return
559 chandransh 4059
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4060
    if self.success is not None:
94 ashish 4061
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4062
      self.success.write(oprot)
4063
      oprot.writeFieldEnd()
3431 rajveer 4064
    if self.ucex is not None:
559 chandransh 4065
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4066
      self.ucex.write(oprot)
94 ashish 4067
      oprot.writeFieldEnd()
4068
    oprot.writeFieldStop()
4069
    oprot.writeStructEnd()
4070
 
3431 rajveer 4071
  def validate(self):
4072
    return
4073
 
4074
 
94 ashish 4075
  def __repr__(self):
4076
    L = ['%s=%r' % (key, value)
4077
      for key, value in self.__dict__.iteritems()]
4078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4079
 
4080
  def __eq__(self, other):
4081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4082
 
4083
  def __ne__(self, other):
4084
    return not (self == other)
4085
 
559 chandransh 4086
class getUserById_args:
94 ashish 4087
  """
4088
  Attributes:
4089
   - userId
4090
  """
4091
 
4092
  thrift_spec = (
4093
    None, # 0
4094
    (1, TType.I64, 'userId', None, None, ), # 1
4095
  )
4096
 
559 chandransh 4097
  def __init__(self, userId=None,):
94 ashish 4098
    self.userId = userId
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 == 1:
4110
        if ftype == TType.I64:
4111
          self.userId = iprot.readI64();
4112
        else:
4113
          iprot.skip(ftype)
4114
      else:
4115
        iprot.skip(ftype)
4116
      iprot.readFieldEnd()
4117
    iprot.readStructEnd()
4118
 
4119
  def write(self, oprot):
4120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4122
      return
559 chandransh 4123
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4124
    if self.userId is not None:
94 ashish 4125
      oprot.writeFieldBegin('userId', TType.I64, 1)
4126
      oprot.writeI64(self.userId)
4127
      oprot.writeFieldEnd()
4128
    oprot.writeFieldStop()
4129
    oprot.writeStructEnd()
4130
 
3431 rajveer 4131
  def validate(self):
4132
    return
4133
 
4134
 
94 ashish 4135
  def __repr__(self):
4136
    L = ['%s=%r' % (key, value)
4137
      for key, value in self.__dict__.iteritems()]
4138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4139
 
4140
  def __eq__(self, other):
4141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4142
 
4143
  def __ne__(self, other):
4144
    return not (self == other)
4145
 
559 chandransh 4146
class getUserById_result:
94 ashish 4147
  """
4148
  Attributes:
4149
   - success
559 chandransh 4150
   - ucex
94 ashish 4151
  """
4152
 
4153
  thrift_spec = (
559 chandransh 4154
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4155
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4156
  )
4157
 
559 chandransh 4158
  def __init__(self, success=None, ucex=None,):
94 ashish 4159
    self.success = success
559 chandransh 4160
    self.ucex = ucex
94 ashish 4161
 
4162
  def read(self, iprot):
4163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4165
      return
4166
    iprot.readStructBegin()
4167
    while True:
4168
      (fname, ftype, fid) = iprot.readFieldBegin()
4169
      if ftype == TType.STOP:
4170
        break
4171
      if fid == 0:
4172
        if ftype == TType.STRUCT:
559 chandransh 4173
          self.success = User()
94 ashish 4174
          self.success.read(iprot)
4175
        else:
4176
          iprot.skip(ftype)
4177
      elif fid == 1:
4178
        if ftype == TType.STRUCT:
559 chandransh 4179
          self.ucex = UserContextException()
4180
          self.ucex.read(iprot)
94 ashish 4181
        else:
4182
          iprot.skip(ftype)
4183
      else:
4184
        iprot.skip(ftype)
4185
      iprot.readFieldEnd()
4186
    iprot.readStructEnd()
4187
 
4188
  def write(self, oprot):
4189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4191
      return
559 chandransh 4192
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4193
    if self.success is not None:
94 ashish 4194
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4195
      self.success.write(oprot)
4196
      oprot.writeFieldEnd()
3431 rajveer 4197
    if self.ucex is not None:
559 chandransh 4198
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4199
      self.ucex.write(oprot)
94 ashish 4200
      oprot.writeFieldEnd()
4201
    oprot.writeFieldStop()
4202
    oprot.writeStructEnd()
4203
 
3431 rajveer 4204
  def validate(self):
4205
    return
4206
 
4207
 
94 ashish 4208
  def __repr__(self):
4209
    L = ['%s=%r' % (key, value)
4210
      for key, value in self.__dict__.iteritems()]
4211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4212
 
4213
  def __eq__(self, other):
4214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4215
 
4216
  def __ne__(self, other):
4217
    return not (self == other)
4218
 
1491 vikas 4219
class getUserByEmail_args:
4220
  """
4221
  Attributes:
4222
   - email
4223
  """
4224
 
4225
  thrift_spec = (
4226
    None, # 0
4227
    (1, TType.STRING, 'email', None, None, ), # 1
4228
  )
4229
 
4230
  def __init__(self, email=None,):
4231
    self.email = email
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 == 1:
4243
        if ftype == TType.STRING:
4244
          self.email = iprot.readString();
4245
        else:
4246
          iprot.skip(ftype)
4247
      else:
4248
        iprot.skip(ftype)
4249
      iprot.readFieldEnd()
4250
    iprot.readStructEnd()
4251
 
4252
  def write(self, oprot):
4253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4255
      return
4256
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4257
    if self.email is not None:
1491 vikas 4258
      oprot.writeFieldBegin('email', TType.STRING, 1)
4259
      oprot.writeString(self.email)
4260
      oprot.writeFieldEnd()
4261
    oprot.writeFieldStop()
4262
    oprot.writeStructEnd()
4263
 
3431 rajveer 4264
  def validate(self):
4265
    return
4266
 
4267
 
1491 vikas 4268
  def __repr__(self):
4269
    L = ['%s=%r' % (key, value)
4270
      for key, value in self.__dict__.iteritems()]
4271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4272
 
4273
  def __eq__(self, other):
4274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4275
 
4276
  def __ne__(self, other):
4277
    return not (self == other)
4278
 
4279
class getUserByEmail_result:
4280
  """
4281
  Attributes:
4282
   - success
4283
   - ucex
4284
  """
4285
 
4286
  thrift_spec = (
4287
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4288
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4289
  )
4290
 
4291
  def __init__(self, success=None, ucex=None,):
4292
    self.success = success
4293
    self.ucex = ucex
4294
 
4295
  def read(self, iprot):
4296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4298
      return
4299
    iprot.readStructBegin()
4300
    while True:
4301
      (fname, ftype, fid) = iprot.readFieldBegin()
4302
      if ftype == TType.STOP:
4303
        break
4304
      if fid == 0:
4305
        if ftype == TType.STRUCT:
4306
          self.success = User()
4307
          self.success.read(iprot)
4308
        else:
4309
          iprot.skip(ftype)
4310
      elif fid == 1:
4311
        if ftype == TType.STRUCT:
4312
          self.ucex = UserContextException()
4313
          self.ucex.read(iprot)
4314
        else:
4315
          iprot.skip(ftype)
4316
      else:
4317
        iprot.skip(ftype)
4318
      iprot.readFieldEnd()
4319
    iprot.readStructEnd()
4320
 
4321
  def write(self, oprot):
4322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4324
      return
4325
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4326
    if self.success is not None:
1491 vikas 4327
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4328
      self.success.write(oprot)
4329
      oprot.writeFieldEnd()
3431 rajveer 4330
    if self.ucex is not None:
1491 vikas 4331
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4332
      self.ucex.write(oprot)
4333
      oprot.writeFieldEnd()
4334
    oprot.writeFieldStop()
4335
    oprot.writeStructEnd()
4336
 
3431 rajveer 4337
  def validate(self):
4338
    return
4339
 
4340
 
1491 vikas 4341
  def __repr__(self):
4342
    L = ['%s=%r' % (key, value)
4343
      for key, value in self.__dict__.iteritems()]
4344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4345
 
4346
  def __eq__(self, other):
4347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4348
 
4349
  def __ne__(self, other):
4350
    return not (self == other)
4351
 
3032 mandeep.dh 4352
class getUserByMobileNumber_args:
4353
  """
4354
  Attributes:
4355
   - mobileNumber
4356
  """
4357
 
4358
  thrift_spec = (
4359
    None, # 0
4360
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4361
  )
4362
 
4363
  def __init__(self, mobileNumber=None,):
4364
    self.mobileNumber = mobileNumber
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 == 1:
4376
        if ftype == TType.I64:
4377
          self.mobileNumber = iprot.readI64();
4378
        else:
4379
          iprot.skip(ftype)
4380
      else:
4381
        iprot.skip(ftype)
4382
      iprot.readFieldEnd()
4383
    iprot.readStructEnd()
4384
 
4385
  def write(self, oprot):
4386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4388
      return
4389
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4390
    if self.mobileNumber is not None:
3032 mandeep.dh 4391
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4392
      oprot.writeI64(self.mobileNumber)
4393
      oprot.writeFieldEnd()
4394
    oprot.writeFieldStop()
4395
    oprot.writeStructEnd()
4396
 
3431 rajveer 4397
  def validate(self):
4398
    return
4399
 
4400
 
3032 mandeep.dh 4401
  def __repr__(self):
4402
    L = ['%s=%r' % (key, value)
4403
      for key, value in self.__dict__.iteritems()]
4404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4405
 
4406
  def __eq__(self, other):
4407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4408
 
4409
  def __ne__(self, other):
4410
    return not (self == other)
4411
 
4412
class getUserByMobileNumber_result:
4413
  """
4414
  Attributes:
4415
   - success
4416
   - ucex
4417
  """
4418
 
4419
  thrift_spec = (
4420
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4421
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4422
  )
4423
 
4424
  def __init__(self, success=None, ucex=None,):
4425
    self.success = success
4426
    self.ucex = ucex
4427
 
4428
  def read(self, iprot):
4429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4431
      return
4432
    iprot.readStructBegin()
4433
    while True:
4434
      (fname, ftype, fid) = iprot.readFieldBegin()
4435
      if ftype == TType.STOP:
4436
        break
4437
      if fid == 0:
4438
        if ftype == TType.STRUCT:
4439
          self.success = User()
4440
          self.success.read(iprot)
4441
        else:
4442
          iprot.skip(ftype)
4443
      elif fid == 1:
4444
        if ftype == TType.STRUCT:
4445
          self.ucex = UserContextException()
4446
          self.ucex.read(iprot)
4447
        else:
4448
          iprot.skip(ftype)
4449
      else:
4450
        iprot.skip(ftype)
4451
      iprot.readFieldEnd()
4452
    iprot.readStructEnd()
4453
 
4454
  def write(self, oprot):
4455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4457
      return
4458
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4459
    if self.success is not None:
3032 mandeep.dh 4460
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4461
      self.success.write(oprot)
4462
      oprot.writeFieldEnd()
3431 rajveer 4463
    if self.ucex is not None:
3032 mandeep.dh 4464
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4465
      self.ucex.write(oprot)
4466
      oprot.writeFieldEnd()
4467
    oprot.writeFieldStop()
4468
    oprot.writeStructEnd()
4469
 
3431 rajveer 4470
  def validate(self):
4471
    return
4472
 
4473
 
3032 mandeep.dh 4474
  def __repr__(self):
4475
    L = ['%s=%r' % (key, value)
4476
      for key, value in self.__dict__.iteritems()]
4477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4478
 
4479
  def __eq__(self, other):
4480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4481
 
4482
  def __ne__(self, other):
4483
    return not (self == other)
4484
 
559 chandransh 4485
class createUser_args:
94 ashish 4486
  """
4487
  Attributes:
559 chandransh 4488
   - user
94 ashish 4489
  """
4490
 
4491
  thrift_spec = (
4492
    None, # 0
559 chandransh 4493
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4494
  )
4495
 
559 chandransh 4496
  def __init__(self, user=None,):
4497
    self.user = user
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 == 1:
559 chandransh 4509
        if ftype == TType.STRUCT:
4510
          self.user = User()
4511
          self.user.read(iprot)
94 ashish 4512
        else:
4513
          iprot.skip(ftype)
4514
      else:
4515
        iprot.skip(ftype)
4516
      iprot.readFieldEnd()
4517
    iprot.readStructEnd()
4518
 
4519
  def write(self, oprot):
4520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4522
      return
559 chandransh 4523
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4524
    if self.user is not None:
559 chandransh 4525
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4526
      self.user.write(oprot)
94 ashish 4527
      oprot.writeFieldEnd()
4528
    oprot.writeFieldStop()
4529
    oprot.writeStructEnd()
4530
 
3431 rajveer 4531
  def validate(self):
4532
    return
4533
 
4534
 
94 ashish 4535
  def __repr__(self):
4536
    L = ['%s=%r' % (key, value)
4537
      for key, value in self.__dict__.iteritems()]
4538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4539
 
4540
  def __eq__(self, other):
4541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4542
 
4543
  def __ne__(self, other):
4544
    return not (self == other)
4545
 
559 chandransh 4546
class createUser_result:
94 ashish 4547
  """
4548
  Attributes:
4549
   - success
559 chandransh 4550
   - ucex
94 ashish 4551
  """
4552
 
4553
  thrift_spec = (
559 chandransh 4554
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4555
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4556
  )
4557
 
559 chandransh 4558
  def __init__(self, success=None, ucex=None,):
94 ashish 4559
    self.success = success
559 chandransh 4560
    self.ucex = ucex
94 ashish 4561
 
4562
  def read(self, iprot):
4563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4565
      return
4566
    iprot.readStructBegin()
4567
    while True:
4568
      (fname, ftype, fid) = iprot.readFieldBegin()
4569
      if ftype == TType.STOP:
4570
        break
4571
      if fid == 0:
4572
        if ftype == TType.STRUCT:
559 chandransh 4573
          self.success = User()
94 ashish 4574
          self.success.read(iprot)
4575
        else:
4576
          iprot.skip(ftype)
4577
      elif fid == 1:
4578
        if ftype == TType.STRUCT:
559 chandransh 4579
          self.ucex = UserContextException()
4580
          self.ucex.read(iprot)
94 ashish 4581
        else:
4582
          iprot.skip(ftype)
4583
      else:
4584
        iprot.skip(ftype)
4585
      iprot.readFieldEnd()
4586
    iprot.readStructEnd()
4587
 
4588
  def write(self, oprot):
4589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4591
      return
559 chandransh 4592
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4593
    if self.success is not None:
94 ashish 4594
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4595
      self.success.write(oprot)
4596
      oprot.writeFieldEnd()
3431 rajveer 4597
    if self.ucex is not None:
559 chandransh 4598
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4599
      self.ucex.write(oprot)
94 ashish 4600
      oprot.writeFieldEnd()
4601
    oprot.writeFieldStop()
4602
    oprot.writeStructEnd()
4603
 
3431 rajveer 4604
  def validate(self):
4605
    return
4606
 
4607
 
94 ashish 4608
  def __repr__(self):
4609
    L = ['%s=%r' % (key, value)
4610
      for key, value in self.__dict__.iteritems()]
4611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4612
 
4613
  def __eq__(self, other):
4614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4615
 
4616
  def __ne__(self, other):
4617
    return not (self == other)
4618
 
559 chandransh 4619
class updateUser_args:
94 ashish 4620
  """
4621
  Attributes:
559 chandransh 4622
   - user
94 ashish 4623
  """
4624
 
4625
  thrift_spec = (
4626
    None, # 0
559 chandransh 4627
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4628
  )
4629
 
559 chandransh 4630
  def __init__(self, user=None,):
4631
    self.user = user
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 == 1:
559 chandransh 4643
        if ftype == TType.STRUCT:
4644
          self.user = User()
4645
          self.user.read(iprot)
94 ashish 4646
        else:
4647
          iprot.skip(ftype)
4648
      else:
4649
        iprot.skip(ftype)
4650
      iprot.readFieldEnd()
4651
    iprot.readStructEnd()
4652
 
4653
  def write(self, oprot):
4654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4656
      return
559 chandransh 4657
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4658
    if self.user is not None:
559 chandransh 4659
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4660
      self.user.write(oprot)
94 ashish 4661
      oprot.writeFieldEnd()
4662
    oprot.writeFieldStop()
4663
    oprot.writeStructEnd()
4664
 
3431 rajveer 4665
  def validate(self):
4666
    return
4667
 
4668
 
94 ashish 4669
  def __repr__(self):
4670
    L = ['%s=%r' % (key, value)
4671
      for key, value in self.__dict__.iteritems()]
4672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4673
 
4674
  def __eq__(self, other):
4675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4676
 
4677
  def __ne__(self, other):
4678
    return not (self == other)
4679
 
559 chandransh 4680
class updateUser_result:
94 ashish 4681
  """
4682
  Attributes:
4683
   - success
559 chandransh 4684
   - ucex
94 ashish 4685
  """
4686
 
4687
  thrift_spec = (
559 chandransh 4688
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4689
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4690
  )
4691
 
559 chandransh 4692
  def __init__(self, success=None, ucex=None,):
94 ashish 4693
    self.success = success
559 chandransh 4694
    self.ucex = ucex
94 ashish 4695
 
4696
  def read(self, iprot):
4697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4699
      return
4700
    iprot.readStructBegin()
4701
    while True:
4702
      (fname, ftype, fid) = iprot.readFieldBegin()
4703
      if ftype == TType.STOP:
4704
        break
4705
      if fid == 0:
4706
        if ftype == TType.STRUCT:
559 chandransh 4707
          self.success = User()
94 ashish 4708
          self.success.read(iprot)
4709
        else:
4710
          iprot.skip(ftype)
4711
      elif fid == 1:
4712
        if ftype == TType.STRUCT:
559 chandransh 4713
          self.ucex = UserContextException()
4714
          self.ucex.read(iprot)
94 ashish 4715
        else:
4716
          iprot.skip(ftype)
4717
      else:
4718
        iprot.skip(ftype)
4719
      iprot.readFieldEnd()
4720
    iprot.readStructEnd()
4721
 
4722
  def write(self, oprot):
4723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4725
      return
559 chandransh 4726
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4727
    if self.success is not None:
94 ashish 4728
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4729
      self.success.write(oprot)
4730
      oprot.writeFieldEnd()
3431 rajveer 4731
    if self.ucex is not None:
559 chandransh 4732
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4733
      self.ucex.write(oprot)
94 ashish 4734
      oprot.writeFieldEnd()
4735
    oprot.writeFieldStop()
4736
    oprot.writeStructEnd()
4737
 
3431 rajveer 4738
  def validate(self):
4739
    return
4740
 
4741
 
94 ashish 4742
  def __repr__(self):
4743
    L = ['%s=%r' % (key, value)
4744
      for key, value in self.__dict__.iteritems()]
4745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4746
 
4747
  def __eq__(self, other):
4748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4749
 
4750
  def __ne__(self, other):
4751
    return not (self == other)
4752
 
559 chandransh 4753
class deleteUser_args:
94 ashish 4754
  """
4755
  Attributes:
4756
   - userId
4757
  """
4758
 
4759
  thrift_spec = (
4760
    None, # 0
4761
    (1, TType.I64, 'userId', None, None, ), # 1
4762
  )
4763
 
559 chandransh 4764
  def __init__(self, userId=None,):
94 ashish 4765
    self.userId = userId
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 == 1:
4777
        if ftype == TType.I64:
4778
          self.userId = iprot.readI64();
4779
        else:
4780
          iprot.skip(ftype)
4781
      else:
4782
        iprot.skip(ftype)
4783
      iprot.readFieldEnd()
4784
    iprot.readStructEnd()
4785
 
4786
  def write(self, oprot):
4787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4789
      return
559 chandransh 4790
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4791
    if self.userId is not None:
94 ashish 4792
      oprot.writeFieldBegin('userId', TType.I64, 1)
4793
      oprot.writeI64(self.userId)
4794
      oprot.writeFieldEnd()
4795
    oprot.writeFieldStop()
4796
    oprot.writeStructEnd()
4797
 
3431 rajveer 4798
  def validate(self):
4799
    return
4800
 
4801
 
94 ashish 4802
  def __repr__(self):
4803
    L = ['%s=%r' % (key, value)
4804
      for key, value in self.__dict__.iteritems()]
4805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4806
 
4807
  def __eq__(self, other):
4808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4809
 
4810
  def __ne__(self, other):
4811
    return not (self == other)
4812
 
559 chandransh 4813
class deleteUser_result:
94 ashish 4814
  """
4815
  Attributes:
4816
   - success
559 chandransh 4817
   - ucex
94 ashish 4818
  """
4819
 
4820
  thrift_spec = (
559 chandransh 4821
    (0, TType.BOOL, 'success', None, None, ), # 0
4822
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4823
  )
4824
 
559 chandransh 4825
  def __init__(self, success=None, ucex=None,):
94 ashish 4826
    self.success = success
559 chandransh 4827
    self.ucex = ucex
94 ashish 4828
 
4829
  def read(self, iprot):
4830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4832
      return
4833
    iprot.readStructBegin()
4834
    while True:
4835
      (fname, ftype, fid) = iprot.readFieldBegin()
4836
      if ftype == TType.STOP:
4837
        break
4838
      if fid == 0:
559 chandransh 4839
        if ftype == TType.BOOL:
4840
          self.success = iprot.readBool();
94 ashish 4841
        else:
4842
          iprot.skip(ftype)
4843
      elif fid == 1:
4844
        if ftype == TType.STRUCT:
559 chandransh 4845
          self.ucex = UserContextException()
4846
          self.ucex.read(iprot)
94 ashish 4847
        else:
4848
          iprot.skip(ftype)
4849
      else:
4850
        iprot.skip(ftype)
4851
      iprot.readFieldEnd()
4852
    iprot.readStructEnd()
4853
 
4854
  def write(self, oprot):
4855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4857
      return
559 chandransh 4858
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4859
    if self.success is not None:
559 chandransh 4860
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4861
      oprot.writeBool(self.success)
94 ashish 4862
      oprot.writeFieldEnd()
3431 rajveer 4863
    if self.ucex is not None:
559 chandransh 4864
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4865
      self.ucex.write(oprot)
94 ashish 4866
      oprot.writeFieldEnd()
4867
    oprot.writeFieldStop()
4868
    oprot.writeStructEnd()
4869
 
3431 rajveer 4870
  def validate(self):
4871
    return
4872
 
4873
 
94 ashish 4874
  def __repr__(self):
4875
    L = ['%s=%r' % (key, value)
4876
      for key, value in self.__dict__.iteritems()]
4877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4878
 
4879
  def __eq__(self, other):
4880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4881
 
4882
  def __ne__(self, other):
4883
    return not (self == other)
4884
 
559 chandransh 4885
class getUserState_args:
94 ashish 4886
  """
4887
  Attributes:
4888
   - userId
4889
  """
4890
 
4891
  thrift_spec = (
4892
    None, # 0
4893
    (1, TType.I64, 'userId', None, None, ), # 1
4894
  )
4895
 
559 chandransh 4896
  def __init__(self, userId=None,):
94 ashish 4897
    self.userId = userId
4898
 
4899
  def read(self, iprot):
4900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4902
      return
4903
    iprot.readStructBegin()
4904
    while True:
4905
      (fname, ftype, fid) = iprot.readFieldBegin()
4906
      if ftype == TType.STOP:
4907
        break
4908
      if fid == 1:
4909
        if ftype == TType.I64:
4910
          self.userId = iprot.readI64();
4911
        else:
4912
          iprot.skip(ftype)
4913
      else:
4914
        iprot.skip(ftype)
4915
      iprot.readFieldEnd()
4916
    iprot.readStructEnd()
4917
 
4918
  def write(self, oprot):
4919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4921
      return
559 chandransh 4922
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 4923
    if self.userId is not None:
94 ashish 4924
      oprot.writeFieldBegin('userId', TType.I64, 1)
4925
      oprot.writeI64(self.userId)
4926
      oprot.writeFieldEnd()
4927
    oprot.writeFieldStop()
4928
    oprot.writeStructEnd()
4929
 
3431 rajveer 4930
  def validate(self):
4931
    return
4932
 
4933
 
94 ashish 4934
  def __repr__(self):
4935
    L = ['%s=%r' % (key, value)
4936
      for key, value in self.__dict__.iteritems()]
4937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4938
 
4939
  def __eq__(self, other):
4940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4941
 
4942
  def __ne__(self, other):
4943
    return not (self == other)
4944
 
559 chandransh 4945
class getUserState_result:
94 ashish 4946
  """
4947
  Attributes:
4948
   - success
559 chandransh 4949
   - ucex
94 ashish 4950
  """
4951
 
4952
  thrift_spec = (
559 chandransh 4953
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
4954
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4955
  )
4956
 
559 chandransh 4957
  def __init__(self, success=None, ucex=None,):
94 ashish 4958
    self.success = success
559 chandransh 4959
    self.ucex = ucex
94 ashish 4960
 
4961
  def read(self, iprot):
4962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4964
      return
4965
    iprot.readStructBegin()
4966
    while True:
4967
      (fname, ftype, fid) = iprot.readFieldBegin()
4968
      if ftype == TType.STOP:
4969
        break
4970
      if fid == 0:
4971
        if ftype == TType.STRUCT:
559 chandransh 4972
          self.success = UserState()
94 ashish 4973
          self.success.read(iprot)
4974
        else:
4975
          iprot.skip(ftype)
4976
      elif fid == 1:
4977
        if ftype == TType.STRUCT:
559 chandransh 4978
          self.ucex = UserContextException()
4979
          self.ucex.read(iprot)
94 ashish 4980
        else:
4981
          iprot.skip(ftype)
4982
      else:
4983
        iprot.skip(ftype)
4984
      iprot.readFieldEnd()
4985
    iprot.readStructEnd()
4986
 
4987
  def write(self, oprot):
4988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4990
      return
559 chandransh 4991
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 4992
    if self.success is not None:
94 ashish 4993
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4994
      self.success.write(oprot)
4995
      oprot.writeFieldEnd()
3431 rajveer 4996
    if self.ucex is not None:
559 chandransh 4997
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4998
      self.ucex.write(oprot)
94 ashish 4999
      oprot.writeFieldEnd()
5000
    oprot.writeFieldStop()
5001
    oprot.writeStructEnd()
5002
 
3431 rajveer 5003
  def validate(self):
5004
    return
5005
 
5006
 
94 ashish 5007
  def __repr__(self):
5008
    L = ['%s=%r' % (key, value)
5009
      for key, value in self.__dict__.iteritems()]
5010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5011
 
5012
  def __eq__(self, other):
5013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5014
 
5015
  def __ne__(self, other):
5016
    return not (self == other)
5017
 
559 chandransh 5018
class authenticateUser_args:
94 ashish 5019
  """
5020
  Attributes:
5021
   - email
5022
   - password
5023
  """
5024
 
5025
  thrift_spec = (
5026
    None, # 0
5027
    (1, TType.STRING, 'email', None, None, ), # 1
5028
    (2, TType.STRING, 'password', None, None, ), # 2
5029
  )
5030
 
5031
  def __init__(self, email=None, password=None,):
5032
    self.email = email
5033
    self.password = password
5034
 
5035
  def read(self, iprot):
5036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5038
      return
5039
    iprot.readStructBegin()
5040
    while True:
5041
      (fname, ftype, fid) = iprot.readFieldBegin()
5042
      if ftype == TType.STOP:
5043
        break
5044
      if fid == 1:
5045
        if ftype == TType.STRING:
5046
          self.email = iprot.readString();
5047
        else:
5048
          iprot.skip(ftype)
5049
      elif fid == 2:
5050
        if ftype == TType.STRING:
5051
          self.password = iprot.readString();
5052
        else:
5053
          iprot.skip(ftype)
5054
      else:
5055
        iprot.skip(ftype)
5056
      iprot.readFieldEnd()
5057
    iprot.readStructEnd()
5058
 
5059
  def write(self, oprot):
5060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5062
      return
559 chandransh 5063
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5064
    if self.email is not None:
94 ashish 5065
      oprot.writeFieldBegin('email', TType.STRING, 1)
5066
      oprot.writeString(self.email)
5067
      oprot.writeFieldEnd()
3431 rajveer 5068
    if self.password is not None:
94 ashish 5069
      oprot.writeFieldBegin('password', TType.STRING, 2)
5070
      oprot.writeString(self.password)
5071
      oprot.writeFieldEnd()
5072
    oprot.writeFieldStop()
5073
    oprot.writeStructEnd()
5074
 
3431 rajveer 5075
  def validate(self):
5076
    return
5077
 
5078
 
94 ashish 5079
  def __repr__(self):
5080
    L = ['%s=%r' % (key, value)
5081
      for key, value in self.__dict__.iteritems()]
5082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5083
 
5084
  def __eq__(self, other):
5085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5086
 
5087
  def __ne__(self, other):
5088
    return not (self == other)
5089
 
559 chandransh 5090
class authenticateUser_result:
94 ashish 5091
  """
5092
  Attributes:
5093
   - success
559 chandransh 5094
   - auex
94 ashish 5095
  """
5096
 
5097
  thrift_spec = (
559 chandransh 5098
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5099
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5100
  )
5101
 
559 chandransh 5102
  def __init__(self, success=None, auex=None,):
94 ashish 5103
    self.success = success
559 chandransh 5104
    self.auex = auex
94 ashish 5105
 
5106
  def read(self, iprot):
5107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5109
      return
5110
    iprot.readStructBegin()
5111
    while True:
5112
      (fname, ftype, fid) = iprot.readFieldBegin()
5113
      if ftype == TType.STOP:
5114
        break
5115
      if fid == 0:
5116
        if ftype == TType.STRUCT:
559 chandransh 5117
          self.success = User()
94 ashish 5118
          self.success.read(iprot)
5119
        else:
5120
          iprot.skip(ftype)
5121
      elif fid == 1:
5122
        if ftype == TType.STRUCT:
559 chandransh 5123
          self.auex = AuthenticationException()
5124
          self.auex.read(iprot)
94 ashish 5125
        else:
5126
          iprot.skip(ftype)
5127
      else:
5128
        iprot.skip(ftype)
5129
      iprot.readFieldEnd()
5130
    iprot.readStructEnd()
5131
 
5132
  def write(self, oprot):
5133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5135
      return
559 chandransh 5136
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5137
    if self.success is not None:
94 ashish 5138
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5139
      self.success.write(oprot)
5140
      oprot.writeFieldEnd()
3431 rajveer 5141
    if self.auex is not None:
559 chandransh 5142
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5143
      self.auex.write(oprot)
94 ashish 5144
      oprot.writeFieldEnd()
5145
    oprot.writeFieldStop()
5146
    oprot.writeStructEnd()
5147
 
3431 rajveer 5148
  def validate(self):
5149
    return
5150
 
5151
 
94 ashish 5152
  def __repr__(self):
5153
    L = ['%s=%r' % (key, value)
5154
      for key, value in self.__dict__.iteritems()]
5155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5156
 
5157
  def __eq__(self, other):
5158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5159
 
5160
  def __ne__(self, other):
5161
    return not (self == other)
5162
 
559 chandransh 5163
class userExists_args:
122 ashish 5164
  """
5165
  Attributes:
559 chandransh 5166
   - email
122 ashish 5167
  """
5168
 
5169
  thrift_spec = (
5170
    None, # 0
559 chandransh 5171
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5172
  )
5173
 
559 chandransh 5174
  def __init__(self, email=None,):
5175
    self.email = email
122 ashish 5176
 
5177
  def read(self, iprot):
5178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5180
      return
5181
    iprot.readStructBegin()
5182
    while True:
5183
      (fname, ftype, fid) = iprot.readFieldBegin()
5184
      if ftype == TType.STOP:
5185
        break
5186
      if fid == 1:
5187
        if ftype == TType.STRING:
559 chandransh 5188
          self.email = iprot.readString();
122 ashish 5189
        else:
5190
          iprot.skip(ftype)
559 chandransh 5191
      else:
5192
        iprot.skip(ftype)
5193
      iprot.readFieldEnd()
5194
    iprot.readStructEnd()
5195
 
5196
  def write(self, oprot):
5197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5199
      return
5200
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5201
    if self.email is not None:
559 chandransh 5202
      oprot.writeFieldBegin('email', TType.STRING, 1)
5203
      oprot.writeString(self.email)
5204
      oprot.writeFieldEnd()
5205
    oprot.writeFieldStop()
5206
    oprot.writeStructEnd()
5207
 
3431 rajveer 5208
  def validate(self):
5209
    return
5210
 
5211
 
559 chandransh 5212
  def __repr__(self):
5213
    L = ['%s=%r' % (key, value)
5214
      for key, value in self.__dict__.iteritems()]
5215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5216
 
5217
  def __eq__(self, other):
5218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5219
 
5220
  def __ne__(self, other):
5221
    return not (self == other)
5222
 
5223
class userExists_result:
5224
  """
5225
  Attributes:
5226
   - success
5227
   - ucx
5228
  """
5229
 
5230
  thrift_spec = (
5231
    (0, TType.BOOL, 'success', None, None, ), # 0
5232
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5233
  )
5234
 
5235
  def __init__(self, success=None, ucx=None,):
5236
    self.success = success
5237
    self.ucx = ucx
5238
 
5239
  def read(self, iprot):
5240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5242
      return
5243
    iprot.readStructBegin()
5244
    while True:
5245
      (fname, ftype, fid) = iprot.readFieldBegin()
5246
      if ftype == TType.STOP:
5247
        break
5248
      if fid == 0:
5249
        if ftype == TType.BOOL:
5250
          self.success = iprot.readBool();
5251
        else:
5252
          iprot.skip(ftype)
5253
      elif fid == 1:
5254
        if ftype == TType.STRUCT:
5255
          self.ucx = UserContextException()
5256
          self.ucx.read(iprot)
5257
        else:
5258
          iprot.skip(ftype)
5259
      else:
5260
        iprot.skip(ftype)
5261
      iprot.readFieldEnd()
5262
    iprot.readStructEnd()
5263
 
5264
  def write(self, oprot):
5265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5267
      return
5268
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5269
    if self.success is not None:
559 chandransh 5270
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5271
      oprot.writeBool(self.success)
5272
      oprot.writeFieldEnd()
3431 rajveer 5273
    if self.ucx is not None:
559 chandransh 5274
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5275
      self.ucx.write(oprot)
5276
      oprot.writeFieldEnd()
5277
    oprot.writeFieldStop()
5278
    oprot.writeStructEnd()
5279
 
3431 rajveer 5280
  def validate(self):
5281
    return
5282
 
5283
 
559 chandransh 5284
  def __repr__(self):
5285
    L = ['%s=%r' % (key, value)
5286
      for key, value in self.__dict__.iteritems()]
5287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5288
 
5289
  def __eq__(self, other):
5290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5291
 
5292
  def __ne__(self, other):
5293
    return not (self == other)
5294
 
5295
class addAddressForUser_args:
5296
  """
5297
  Attributes:
5298
   - userId
5299
   - address
5300
   - setDefault
5301
  """
5302
 
5303
  thrift_spec = (
5304
    None, # 0
5305
    (1, TType.I64, 'userId', None, None, ), # 1
5306
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5307
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5308
  )
5309
 
567 rajveer 5310
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5311
    self.userId = userId
5312
    self.address = address
5313
    self.setDefault = setDefault
5314
 
5315
  def read(self, iprot):
5316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5318
      return
5319
    iprot.readStructBegin()
5320
    while True:
5321
      (fname, ftype, fid) = iprot.readFieldBegin()
5322
      if ftype == TType.STOP:
5323
        break
5324
      if fid == 1:
5325
        if ftype == TType.I64:
5326
          self.userId = iprot.readI64();
5327
        else:
5328
          iprot.skip(ftype)
122 ashish 5329
      elif fid == 2:
559 chandransh 5330
        if ftype == TType.STRUCT:
5331
          self.address = Address()
5332
          self.address.read(iprot)
122 ashish 5333
        else:
5334
          iprot.skip(ftype)
5335
      elif fid == 3:
5336
        if ftype == TType.BOOL:
559 chandransh 5337
          self.setDefault = iprot.readBool();
122 ashish 5338
        else:
5339
          iprot.skip(ftype)
5340
      else:
5341
        iprot.skip(ftype)
5342
      iprot.readFieldEnd()
5343
    iprot.readStructEnd()
5344
 
5345
  def write(self, oprot):
5346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5348
      return
559 chandransh 5349
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5350
    if self.userId is not None:
559 chandransh 5351
      oprot.writeFieldBegin('userId', TType.I64, 1)
5352
      oprot.writeI64(self.userId)
122 ashish 5353
      oprot.writeFieldEnd()
3431 rajveer 5354
    if self.address is not None:
559 chandransh 5355
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5356
      self.address.write(oprot)
122 ashish 5357
      oprot.writeFieldEnd()
3431 rajveer 5358
    if self.setDefault is not None:
567 rajveer 5359
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5360
      oprot.writeBool(self.setDefault)
5361
      oprot.writeFieldEnd()
122 ashish 5362
    oprot.writeFieldStop()
5363
    oprot.writeStructEnd()
5364
 
3431 rajveer 5365
  def validate(self):
5366
    return
5367
 
5368
 
122 ashish 5369
  def __repr__(self):
5370
    L = ['%s=%r' % (key, value)
5371
      for key, value in self.__dict__.iteritems()]
5372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5373
 
5374
  def __eq__(self, other):
5375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5376
 
5377
  def __ne__(self, other):
5378
    return not (self == other)
5379
 
559 chandransh 5380
class addAddressForUser_result:
122 ashish 5381
  """
5382
  Attributes:
5383
   - success
559 chandransh 5384
   - ucx
122 ashish 5385
  """
5386
 
5387
  thrift_spec = (
567 rajveer 5388
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5389
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5390
  )
5391
 
559 chandransh 5392
  def __init__(self, success=None, ucx=None,):
122 ashish 5393
    self.success = success
559 chandransh 5394
    self.ucx = ucx
122 ashish 5395
 
5396
  def read(self, iprot):
5397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5399
      return
5400
    iprot.readStructBegin()
5401
    while True:
5402
      (fname, ftype, fid) = iprot.readFieldBegin()
5403
      if ftype == TType.STOP:
5404
        break
5405
      if fid == 0:
567 rajveer 5406
        if ftype == TType.I64:
5407
          self.success = iprot.readI64();
122 ashish 5408
        else:
5409
          iprot.skip(ftype)
5410
      elif fid == 1:
5411
        if ftype == TType.STRUCT:
559 chandransh 5412
          self.ucx = UserContextException()
5413
          self.ucx.read(iprot)
122 ashish 5414
        else:
5415
          iprot.skip(ftype)
5416
      else:
5417
        iprot.skip(ftype)
5418
      iprot.readFieldEnd()
5419
    iprot.readStructEnd()
5420
 
5421
  def write(self, oprot):
5422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5424
      return
559 chandransh 5425
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5426
    if self.success is not None:
567 rajveer 5427
      oprot.writeFieldBegin('success', TType.I64, 0)
5428
      oprot.writeI64(self.success)
122 ashish 5429
      oprot.writeFieldEnd()
3431 rajveer 5430
    if self.ucx is not None:
559 chandransh 5431
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5432
      self.ucx.write(oprot)
122 ashish 5433
      oprot.writeFieldEnd()
5434
    oprot.writeFieldStop()
5435
    oprot.writeStructEnd()
5436
 
3431 rajveer 5437
  def validate(self):
5438
    return
5439
 
5440
 
122 ashish 5441
  def __repr__(self):
5442
    L = ['%s=%r' % (key, value)
5443
      for key, value in self.__dict__.iteritems()]
5444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5445
 
5446
  def __eq__(self, other):
5447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5448
 
5449
  def __ne__(self, other):
5450
    return not (self == other)
5451
 
559 chandransh 5452
class removeAddressForUser_args:
94 ashish 5453
  """
5454
  Attributes:
559 chandransh 5455
   - userid
5456
   - addressId
94 ashish 5457
  """
5458
 
5459
  thrift_spec = (
5460
    None, # 0
559 chandransh 5461
    (1, TType.I64, 'userid', None, None, ), # 1
5462
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5463
  )
5464
 
559 chandransh 5465
  def __init__(self, userid=None, addressId=None,):
5466
    self.userid = userid
5467
    self.addressId = addressId
94 ashish 5468
 
5469
  def read(self, iprot):
5470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5472
      return
5473
    iprot.readStructBegin()
5474
    while True:
5475
      (fname, ftype, fid) = iprot.readFieldBegin()
5476
      if ftype == TType.STOP:
5477
        break
5478
      if fid == 1:
559 chandransh 5479
        if ftype == TType.I64:
5480
          self.userid = iprot.readI64();
94 ashish 5481
        else:
5482
          iprot.skip(ftype)
559 chandransh 5483
      elif fid == 2:
5484
        if ftype == TType.I64:
5485
          self.addressId = iprot.readI64();
5486
        else:
5487
          iprot.skip(ftype)
94 ashish 5488
      else:
5489
        iprot.skip(ftype)
5490
      iprot.readFieldEnd()
5491
    iprot.readStructEnd()
5492
 
5493
  def write(self, oprot):
5494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5496
      return
559 chandransh 5497
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5498
    if self.userid is not None:
559 chandransh 5499
      oprot.writeFieldBegin('userid', TType.I64, 1)
5500
      oprot.writeI64(self.userid)
94 ashish 5501
      oprot.writeFieldEnd()
3431 rajveer 5502
    if self.addressId is not None:
559 chandransh 5503
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5504
      oprot.writeI64(self.addressId)
5505
      oprot.writeFieldEnd()
94 ashish 5506
    oprot.writeFieldStop()
5507
    oprot.writeStructEnd()
5508
 
3431 rajveer 5509
  def validate(self):
5510
    return
5511
 
5512
 
94 ashish 5513
  def __repr__(self):
5514
    L = ['%s=%r' % (key, value)
5515
      for key, value in self.__dict__.iteritems()]
5516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5517
 
5518
  def __eq__(self, other):
5519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5520
 
5521
  def __ne__(self, other):
5522
    return not (self == other)
5523
 
559 chandransh 5524
class removeAddressForUser_result:
94 ashish 5525
  """
5526
  Attributes:
5527
   - success
5528
   - ucx
5529
  """
5530
 
5531
  thrift_spec = (
5532
    (0, TType.BOOL, 'success', None, None, ), # 0
5533
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5534
  )
5535
 
5536
  def __init__(self, success=None, ucx=None,):
5537
    self.success = success
5538
    self.ucx = ucx
5539
 
5540
  def read(self, iprot):
5541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5543
      return
5544
    iprot.readStructBegin()
5545
    while True:
5546
      (fname, ftype, fid) = iprot.readFieldBegin()
5547
      if ftype == TType.STOP:
5548
        break
5549
      if fid == 0:
5550
        if ftype == TType.BOOL:
5551
          self.success = iprot.readBool();
5552
        else:
5553
          iprot.skip(ftype)
5554
      elif fid == 1:
5555
        if ftype == TType.STRUCT:
5556
          self.ucx = UserContextException()
5557
          self.ucx.read(iprot)
5558
        else:
5559
          iprot.skip(ftype)
5560
      else:
5561
        iprot.skip(ftype)
5562
      iprot.readFieldEnd()
5563
    iprot.readStructEnd()
5564
 
5565
  def write(self, oprot):
5566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5568
      return
559 chandransh 5569
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5570
    if self.success is not None:
94 ashish 5571
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5572
      oprot.writeBool(self.success)
5573
      oprot.writeFieldEnd()
3431 rajveer 5574
    if self.ucx is not None:
94 ashish 5575
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5576
      self.ucx.write(oprot)
5577
      oprot.writeFieldEnd()
5578
    oprot.writeFieldStop()
5579
    oprot.writeStructEnd()
5580
 
3431 rajveer 5581
  def validate(self):
5582
    return
5583
 
5584
 
94 ashish 5585
  def __repr__(self):
5586
    L = ['%s=%r' % (key, value)
5587
      for key, value in self.__dict__.iteritems()]
5588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5589
 
5590
  def __eq__(self, other):
5591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5592
 
5593
  def __ne__(self, other):
5594
    return not (self == other)
5595
 
559 chandransh 5596
class setUserAsLoggedIn_args:
94 ashish 5597
  """
5598
  Attributes:
559 chandransh 5599
   - userId
94 ashish 5600
   - timestamp
5601
  """
5602
 
5603
  thrift_spec = (
5604
    None, # 0
559 chandransh 5605
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5606
    (2, TType.I64, 'timestamp', None, None, ), # 2
5607
  )
5608
 
559 chandransh 5609
  def __init__(self, userId=None, timestamp=None,):
5610
    self.userId = userId
94 ashish 5611
    self.timestamp = timestamp
5612
 
5613
  def read(self, iprot):
5614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5616
      return
5617
    iprot.readStructBegin()
5618
    while True:
5619
      (fname, ftype, fid) = iprot.readFieldBegin()
5620
      if ftype == TType.STOP:
5621
        break
5622
      if fid == 1:
559 chandransh 5623
        if ftype == TType.I64:
5624
          self.userId = iprot.readI64();
94 ashish 5625
        else:
5626
          iprot.skip(ftype)
5627
      elif fid == 2:
5628
        if ftype == TType.I64:
5629
          self.timestamp = iprot.readI64();
5630
        else:
5631
          iprot.skip(ftype)
5632
      else:
5633
        iprot.skip(ftype)
5634
      iprot.readFieldEnd()
5635
    iprot.readStructEnd()
5636
 
5637
  def write(self, oprot):
5638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5640
      return
559 chandransh 5641
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5642
    if self.userId is not None:
559 chandransh 5643
      oprot.writeFieldBegin('userId', TType.I64, 1)
5644
      oprot.writeI64(self.userId)
94 ashish 5645
      oprot.writeFieldEnd()
3431 rajveer 5646
    if self.timestamp is not None:
94 ashish 5647
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5648
      oprot.writeI64(self.timestamp)
5649
      oprot.writeFieldEnd()
5650
    oprot.writeFieldStop()
5651
    oprot.writeStructEnd()
5652
 
3431 rajveer 5653
  def validate(self):
5654
    return
5655
 
5656
 
94 ashish 5657
  def __repr__(self):
5658
    L = ['%s=%r' % (key, value)
5659
      for key, value in self.__dict__.iteritems()]
5660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5661
 
5662
  def __eq__(self, other):
5663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5664
 
5665
  def __ne__(self, other):
5666
    return not (self == other)
5667
 
559 chandransh 5668
class setUserAsLoggedIn_result:
94 ashish 5669
  """
5670
  Attributes:
5671
   - success
5672
   - ucx
5673
  """
5674
 
5675
  thrift_spec = (
5676
    (0, TType.BOOL, 'success', None, None, ), # 0
5677
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5678
  )
5679
 
5680
  def __init__(self, success=None, ucx=None,):
5681
    self.success = success
5682
    self.ucx = ucx
5683
 
5684
  def read(self, iprot):
5685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5687
      return
5688
    iprot.readStructBegin()
5689
    while True:
5690
      (fname, ftype, fid) = iprot.readFieldBegin()
5691
      if ftype == TType.STOP:
5692
        break
5693
      if fid == 0:
5694
        if ftype == TType.BOOL:
5695
          self.success = iprot.readBool();
5696
        else:
5697
          iprot.skip(ftype)
5698
      elif fid == 1:
5699
        if ftype == TType.STRUCT:
5700
          self.ucx = UserContextException()
5701
          self.ucx.read(iprot)
5702
        else:
5703
          iprot.skip(ftype)
5704
      else:
5705
        iprot.skip(ftype)
5706
      iprot.readFieldEnd()
5707
    iprot.readStructEnd()
5708
 
5709
  def write(self, oprot):
5710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5712
      return
559 chandransh 5713
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5714
    if self.success is not None:
94 ashish 5715
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5716
      oprot.writeBool(self.success)
5717
      oprot.writeFieldEnd()
3431 rajveer 5718
    if self.ucx is not None:
94 ashish 5719
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5720
      self.ucx.write(oprot)
5721
      oprot.writeFieldEnd()
5722
    oprot.writeFieldStop()
5723
    oprot.writeStructEnd()
5724
 
3431 rajveer 5725
  def validate(self):
5726
    return
5727
 
5728
 
94 ashish 5729
  def __repr__(self):
5730
    L = ['%s=%r' % (key, value)
5731
      for key, value in self.__dict__.iteritems()]
5732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5733
 
5734
  def __eq__(self, other):
5735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5736
 
5737
  def __ne__(self, other):
5738
    return not (self == other)
5739
 
559 chandransh 5740
class setUserAsLoggedOut_args:
94 ashish 5741
  """
5742
  Attributes:
5743
   - userid
5744
   - timestamp
5745
  """
5746
 
5747
  thrift_spec = (
5748
    None, # 0
559 chandransh 5749
    (1, TType.I64, 'userid', None, None, ), # 1
5750
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5751
  )
5752
 
559 chandransh 5753
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5754
    self.userid = userid
5755
    self.timestamp = timestamp
5756
 
5757
  def read(self, iprot):
5758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5760
      return
5761
    iprot.readStructBegin()
5762
    while True:
5763
      (fname, ftype, fid) = iprot.readFieldBegin()
5764
      if ftype == TType.STOP:
5765
        break
5766
      if fid == 1:
5767
        if ftype == TType.I64:
5768
          self.userid = iprot.readI64();
5769
        else:
5770
          iprot.skip(ftype)
559 chandransh 5771
      elif fid == 2:
94 ashish 5772
        if ftype == TType.I64:
5773
          self.timestamp = iprot.readI64();
5774
        else:
5775
          iprot.skip(ftype)
5776
      else:
5777
        iprot.skip(ftype)
5778
      iprot.readFieldEnd()
5779
    iprot.readStructEnd()
5780
 
5781
  def write(self, oprot):
5782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5784
      return
559 chandransh 5785
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5786
    if self.userid is not None:
559 chandransh 5787
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5788
      oprot.writeI64(self.userid)
5789
      oprot.writeFieldEnd()
3431 rajveer 5790
    if self.timestamp is not None:
559 chandransh 5791
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5792
      oprot.writeI64(self.timestamp)
5793
      oprot.writeFieldEnd()
5794
    oprot.writeFieldStop()
5795
    oprot.writeStructEnd()
5796
 
3431 rajveer 5797
  def validate(self):
5798
    return
5799
 
5800
 
94 ashish 5801
  def __repr__(self):
5802
    L = ['%s=%r' % (key, value)
5803
      for key, value in self.__dict__.iteritems()]
5804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5805
 
5806
  def __eq__(self, other):
5807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5808
 
5809
  def __ne__(self, other):
5810
    return not (self == other)
5811
 
559 chandransh 5812
class setUserAsLoggedOut_result:
94 ashish 5813
  """
5814
  Attributes:
5815
   - success
5816
   - ucx
5817
  """
5818
 
5819
  thrift_spec = (
5820
    (0, TType.BOOL, 'success', None, None, ), # 0
5821
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5822
  )
5823
 
5824
  def __init__(self, success=None, ucx=None,):
5825
    self.success = success
5826
    self.ucx = ucx
5827
 
5828
  def read(self, iprot):
5829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5831
      return
5832
    iprot.readStructBegin()
5833
    while True:
5834
      (fname, ftype, fid) = iprot.readFieldBegin()
5835
      if ftype == TType.STOP:
5836
        break
5837
      if fid == 0:
5838
        if ftype == TType.BOOL:
5839
          self.success = iprot.readBool();
5840
        else:
5841
          iprot.skip(ftype)
5842
      elif fid == 1:
5843
        if ftype == TType.STRUCT:
5844
          self.ucx = UserContextException()
5845
          self.ucx.read(iprot)
5846
        else:
5847
          iprot.skip(ftype)
5848
      else:
5849
        iprot.skip(ftype)
5850
      iprot.readFieldEnd()
5851
    iprot.readStructEnd()
5852
 
5853
  def write(self, oprot):
5854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5856
      return
559 chandransh 5857
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5858
    if self.success is not None:
94 ashish 5859
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5860
      oprot.writeBool(self.success)
5861
      oprot.writeFieldEnd()
3431 rajveer 5862
    if self.ucx is not None:
94 ashish 5863
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5864
      self.ucx.write(oprot)
5865
      oprot.writeFieldEnd()
5866
    oprot.writeFieldStop()
5867
    oprot.writeStructEnd()
5868
 
3431 rajveer 5869
  def validate(self):
5870
    return
5871
 
5872
 
94 ashish 5873
  def __repr__(self):
5874
    L = ['%s=%r' % (key, value)
5875
      for key, value in self.__dict__.iteritems()]
5876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5877
 
5878
  def __eq__(self, other):
5879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5880
 
5881
  def __ne__(self, other):
5882
    return not (self == other)
5883
 
559 chandransh 5884
class setDefaultAddress_args:
94 ashish 5885
  """
5886
  Attributes:
5887
   - userid
5888
   - addressId
5889
  """
5890
 
5891
  thrift_spec = (
5892
    None, # 0
5893
    (1, TType.I64, 'userid', None, None, ), # 1
5894
    (2, TType.I64, 'addressId', None, None, ), # 2
5895
  )
5896
 
5897
  def __init__(self, userid=None, addressId=None,):
5898
    self.userid = userid
5899
    self.addressId = addressId
5900
 
5901
  def read(self, iprot):
5902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5904
      return
5905
    iprot.readStructBegin()
5906
    while True:
5907
      (fname, ftype, fid) = iprot.readFieldBegin()
5908
      if ftype == TType.STOP:
5909
        break
5910
      if fid == 1:
5911
        if ftype == TType.I64:
5912
          self.userid = iprot.readI64();
5913
        else:
5914
          iprot.skip(ftype)
5915
      elif fid == 2:
5916
        if ftype == TType.I64:
5917
          self.addressId = iprot.readI64();
5918
        else:
5919
          iprot.skip(ftype)
5920
      else:
5921
        iprot.skip(ftype)
5922
      iprot.readFieldEnd()
5923
    iprot.readStructEnd()
5924
 
5925
  def write(self, oprot):
5926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5928
      return
559 chandransh 5929
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5930
    if self.userid is not None:
94 ashish 5931
      oprot.writeFieldBegin('userid', TType.I64, 1)
5932
      oprot.writeI64(self.userid)
5933
      oprot.writeFieldEnd()
3431 rajveer 5934
    if self.addressId is not None:
94 ashish 5935
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5936
      oprot.writeI64(self.addressId)
5937
      oprot.writeFieldEnd()
5938
    oprot.writeFieldStop()
5939
    oprot.writeStructEnd()
5940
 
3431 rajveer 5941
  def validate(self):
5942
    return
5943
 
5944
 
94 ashish 5945
  def __repr__(self):
5946
    L = ['%s=%r' % (key, value)
5947
      for key, value in self.__dict__.iteritems()]
5948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5949
 
5950
  def __eq__(self, other):
5951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5952
 
5953
  def __ne__(self, other):
5954
    return not (self == other)
5955
 
559 chandransh 5956
class setDefaultAddress_result:
94 ashish 5957
  """
5958
  Attributes:
5959
   - success
5960
   - ucx
5961
  """
5962
 
5963
  thrift_spec = (
5964
    (0, TType.BOOL, 'success', None, None, ), # 0
5965
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5966
  )
5967
 
5968
  def __init__(self, success=None, ucx=None,):
5969
    self.success = success
5970
    self.ucx = ucx
5971
 
5972
  def read(self, iprot):
5973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5975
      return
5976
    iprot.readStructBegin()
5977
    while True:
5978
      (fname, ftype, fid) = iprot.readFieldBegin()
5979
      if ftype == TType.STOP:
5980
        break
5981
      if fid == 0:
5982
        if ftype == TType.BOOL:
5983
          self.success = iprot.readBool();
5984
        else:
5985
          iprot.skip(ftype)
5986
      elif fid == 1:
5987
        if ftype == TType.STRUCT:
5988
          self.ucx = UserContextException()
5989
          self.ucx.read(iprot)
5990
        else:
5991
          iprot.skip(ftype)
5992
      else:
5993
        iprot.skip(ftype)
5994
      iprot.readFieldEnd()
5995
    iprot.readStructEnd()
5996
 
5997
  def write(self, oprot):
5998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6000
      return
559 chandransh 6001
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6002
    if self.success is not None:
94 ashish 6003
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6004
      oprot.writeBool(self.success)
6005
      oprot.writeFieldEnd()
3431 rajveer 6006
    if self.ucx is not None:
94 ashish 6007
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6008
      self.ucx.write(oprot)
6009
      oprot.writeFieldEnd()
6010
    oprot.writeFieldStop()
6011
    oprot.writeStructEnd()
6012
 
3431 rajveer 6013
  def validate(self):
6014
    return
6015
 
6016
 
94 ashish 6017
  def __repr__(self):
6018
    L = ['%s=%r' % (key, value)
6019
      for key, value in self.__dict__.iteritems()]
6020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6021
 
6022
  def __eq__(self, other):
6023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6024
 
6025
  def __ne__(self, other):
6026
    return not (self == other)
6027
 
559 chandransh 6028
class updatePassword_args:
94 ashish 6029
  """
6030
  Attributes:
559 chandransh 6031
   - userid
594 rajveer 6032
   - oldPassword
6033
   - newPassword
94 ashish 6034
  """
6035
 
6036
  thrift_spec = (
6037
    None, # 0
559 chandransh 6038
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6039
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6040
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6041
  )
6042
 
594 rajveer 6043
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6044
    self.userid = userid
594 rajveer 6045
    self.oldPassword = oldPassword
6046
    self.newPassword = newPassword
94 ashish 6047
 
6048
  def read(self, iprot):
6049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6051
      return
6052
    iprot.readStructBegin()
6053
    while True:
6054
      (fname, ftype, fid) = iprot.readFieldBegin()
6055
      if ftype == TType.STOP:
6056
        break
6057
      if fid == 1:
6058
        if ftype == TType.I64:
559 chandransh 6059
          self.userid = iprot.readI64();
94 ashish 6060
        else:
6061
          iprot.skip(ftype)
6062
      elif fid == 2:
559 chandransh 6063
        if ftype == TType.STRING:
594 rajveer 6064
          self.oldPassword = iprot.readString();
94 ashish 6065
        else:
6066
          iprot.skip(ftype)
594 rajveer 6067
      elif fid == 3:
6068
        if ftype == TType.STRING:
6069
          self.newPassword = iprot.readString();
6070
        else:
6071
          iprot.skip(ftype)
94 ashish 6072
      else:
6073
        iprot.skip(ftype)
6074
      iprot.readFieldEnd()
6075
    iprot.readStructEnd()
6076
 
6077
  def write(self, oprot):
6078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6080
      return
559 chandransh 6081
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6082
    if self.userid is not None:
559 chandransh 6083
      oprot.writeFieldBegin('userid', TType.I64, 1)
6084
      oprot.writeI64(self.userid)
94 ashish 6085
      oprot.writeFieldEnd()
3431 rajveer 6086
    if self.oldPassword is not None:
594 rajveer 6087
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6088
      oprot.writeString(self.oldPassword)
94 ashish 6089
      oprot.writeFieldEnd()
3431 rajveer 6090
    if self.newPassword is not None:
594 rajveer 6091
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6092
      oprot.writeString(self.newPassword)
6093
      oprot.writeFieldEnd()
94 ashish 6094
    oprot.writeFieldStop()
6095
    oprot.writeStructEnd()
6096
 
3431 rajveer 6097
  def validate(self):
6098
    return
6099
 
6100
 
94 ashish 6101
  def __repr__(self):
6102
    L = ['%s=%r' % (key, value)
6103
      for key, value in self.__dict__.iteritems()]
6104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6105
 
6106
  def __eq__(self, other):
6107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6108
 
6109
  def __ne__(self, other):
6110
    return not (self == other)
6111
 
559 chandransh 6112
class updatePassword_result:
94 ashish 6113
  """
6114
  Attributes:
6115
   - success
6116
   - ucx
6117
  """
6118
 
6119
  thrift_spec = (
6120
    (0, TType.BOOL, 'success', None, None, ), # 0
6121
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6122
  )
6123
 
6124
  def __init__(self, success=None, ucx=None,):
6125
    self.success = success
6126
    self.ucx = ucx
6127
 
6128
  def read(self, iprot):
6129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6131
      return
6132
    iprot.readStructBegin()
6133
    while True:
6134
      (fname, ftype, fid) = iprot.readFieldBegin()
6135
      if ftype == TType.STOP:
6136
        break
6137
      if fid == 0:
6138
        if ftype == TType.BOOL:
6139
          self.success = iprot.readBool();
6140
        else:
6141
          iprot.skip(ftype)
6142
      elif fid == 1:
6143
        if ftype == TType.STRUCT:
6144
          self.ucx = UserContextException()
6145
          self.ucx.read(iprot)
6146
        else:
6147
          iprot.skip(ftype)
6148
      else:
6149
        iprot.skip(ftype)
6150
      iprot.readFieldEnd()
6151
    iprot.readStructEnd()
6152
 
6153
  def write(self, oprot):
6154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6156
      return
559 chandransh 6157
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6158
    if self.success is not None:
94 ashish 6159
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6160
      oprot.writeBool(self.success)
6161
      oprot.writeFieldEnd()
3431 rajveer 6162
    if self.ucx is not None:
94 ashish 6163
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6164
      self.ucx.write(oprot)
6165
      oprot.writeFieldEnd()
6166
    oprot.writeFieldStop()
6167
    oprot.writeStructEnd()
6168
 
3431 rajveer 6169
  def validate(self):
6170
    return
6171
 
6172
 
94 ashish 6173
  def __repr__(self):
6174
    L = ['%s=%r' % (key, value)
6175
      for key, value in self.__dict__.iteritems()]
6176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6177
 
6178
  def __eq__(self, other):
6179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6180
 
6181
  def __ne__(self, other):
6182
    return not (self == other)
6183
 
581 rajveer 6184
class forgotPassword_args:
6185
  """
6186
  Attributes:
6187
   - email
884 rajveer 6188
   - newPassword
581 rajveer 6189
  """
6190
 
6191
  thrift_spec = (
6192
    None, # 0
6193
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6194
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6195
  )
6196
 
884 rajveer 6197
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6198
    self.email = email
884 rajveer 6199
    self.newPassword = newPassword
581 rajveer 6200
 
6201
  def read(self, iprot):
6202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6204
      return
6205
    iprot.readStructBegin()
6206
    while True:
6207
      (fname, ftype, fid) = iprot.readFieldBegin()
6208
      if ftype == TType.STOP:
6209
        break
6210
      if fid == 1:
6211
        if ftype == TType.STRING:
6212
          self.email = iprot.readString();
6213
        else:
6214
          iprot.skip(ftype)
884 rajveer 6215
      elif fid == 2:
6216
        if ftype == TType.STRING:
6217
          self.newPassword = iprot.readString();
6218
        else:
6219
          iprot.skip(ftype)
581 rajveer 6220
      else:
6221
        iprot.skip(ftype)
6222
      iprot.readFieldEnd()
6223
    iprot.readStructEnd()
6224
 
6225
  def write(self, oprot):
6226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6228
      return
6229
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6230
    if self.email is not None:
581 rajveer 6231
      oprot.writeFieldBegin('email', TType.STRING, 1)
6232
      oprot.writeString(self.email)
6233
      oprot.writeFieldEnd()
3431 rajveer 6234
    if self.newPassword is not None:
884 rajveer 6235
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6236
      oprot.writeString(self.newPassword)
6237
      oprot.writeFieldEnd()
581 rajveer 6238
    oprot.writeFieldStop()
6239
    oprot.writeStructEnd()
6240
 
3431 rajveer 6241
  def validate(self):
6242
    return
6243
 
6244
 
581 rajveer 6245
  def __repr__(self):
6246
    L = ['%s=%r' % (key, value)
6247
      for key, value in self.__dict__.iteritems()]
6248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6249
 
6250
  def __eq__(self, other):
6251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6252
 
6253
  def __ne__(self, other):
6254
    return not (self == other)
6255
 
6256
class forgotPassword_result:
6257
  """
6258
  Attributes:
6259
   - success
6260
   - ucx
6261
  """
6262
 
6263
  thrift_spec = (
6264
    (0, TType.BOOL, 'success', None, None, ), # 0
6265
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6266
  )
6267
 
6268
  def __init__(self, success=None, ucx=None,):
6269
    self.success = success
6270
    self.ucx = ucx
6271
 
6272
  def read(self, iprot):
6273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6275
      return
6276
    iprot.readStructBegin()
6277
    while True:
6278
      (fname, ftype, fid) = iprot.readFieldBegin()
6279
      if ftype == TType.STOP:
6280
        break
6281
      if fid == 0:
6282
        if ftype == TType.BOOL:
6283
          self.success = iprot.readBool();
6284
        else:
6285
          iprot.skip(ftype)
6286
      elif fid == 1:
6287
        if ftype == TType.STRUCT:
6288
          self.ucx = UserContextException()
6289
          self.ucx.read(iprot)
6290
        else:
6291
          iprot.skip(ftype)
6292
      else:
6293
        iprot.skip(ftype)
6294
      iprot.readFieldEnd()
6295
    iprot.readStructEnd()
6296
 
6297
  def write(self, oprot):
6298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6300
      return
6301
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6302
    if self.success is not None:
581 rajveer 6303
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6304
      oprot.writeBool(self.success)
6305
      oprot.writeFieldEnd()
3431 rajveer 6306
    if self.ucx is not None:
581 rajveer 6307
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6308
      self.ucx.write(oprot)
6309
      oprot.writeFieldEnd()
6310
    oprot.writeFieldStop()
6311
    oprot.writeStructEnd()
6312
 
3431 rajveer 6313
  def validate(self):
6314
    return
6315
 
6316
 
581 rajveer 6317
  def __repr__(self):
6318
    L = ['%s=%r' % (key, value)
6319
      for key, value in self.__dict__.iteritems()]
6320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6321
 
6322
  def __eq__(self, other):
6323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6324
 
6325
  def __ne__(self, other):
6326
    return not (self == other)
6327
 
594 rajveer 6328
class getAllAddressesForUser_args:
6329
  """
6330
  Attributes:
6331
   - userId
6332
  """
6333
 
6334
  thrift_spec = (
6335
    None, # 0
6336
    (1, TType.I64, 'userId', None, None, ), # 1
6337
  )
6338
 
6339
  def __init__(self, userId=None,):
6340
    self.userId = userId
6341
 
6342
  def read(self, iprot):
6343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6345
      return
6346
    iprot.readStructBegin()
6347
    while True:
6348
      (fname, ftype, fid) = iprot.readFieldBegin()
6349
      if ftype == TType.STOP:
6350
        break
6351
      if fid == 1:
6352
        if ftype == TType.I64:
6353
          self.userId = iprot.readI64();
6354
        else:
6355
          iprot.skip(ftype)
6356
      else:
6357
        iprot.skip(ftype)
6358
      iprot.readFieldEnd()
6359
    iprot.readStructEnd()
6360
 
6361
  def write(self, oprot):
6362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6364
      return
6365
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6366
    if self.userId is not None:
594 rajveer 6367
      oprot.writeFieldBegin('userId', TType.I64, 1)
6368
      oprot.writeI64(self.userId)
6369
      oprot.writeFieldEnd()
6370
    oprot.writeFieldStop()
6371
    oprot.writeStructEnd()
6372
 
3431 rajveer 6373
  def validate(self):
6374
    return
6375
 
6376
 
594 rajveer 6377
  def __repr__(self):
6378
    L = ['%s=%r' % (key, value)
6379
      for key, value in self.__dict__.iteritems()]
6380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6381
 
6382
  def __eq__(self, other):
6383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6384
 
6385
  def __ne__(self, other):
6386
    return not (self == other)
6387
 
6388
class getAllAddressesForUser_result:
6389
  """
6390
  Attributes:
6391
   - success
6392
   - ucx
6393
  """
6394
 
6395
  thrift_spec = (
6396
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6397
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6398
  )
6399
 
6400
  def __init__(self, success=None, ucx=None,):
6401
    self.success = success
6402
    self.ucx = ucx
6403
 
6404
  def read(self, iprot):
6405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6407
      return
6408
    iprot.readStructBegin()
6409
    while True:
6410
      (fname, ftype, fid) = iprot.readFieldBegin()
6411
      if ftype == TType.STOP:
6412
        break
6413
      if fid == 0:
6414
        if ftype == TType.LIST:
6415
          self.success = []
3385 varun.gupt 6416
          (_etype38, _size35) = iprot.readListBegin()
6417
          for _i39 in xrange(_size35):
6418
            _elem40 = Address()
6419
            _elem40.read(iprot)
6420
            self.success.append(_elem40)
594 rajveer 6421
          iprot.readListEnd()
6422
        else:
6423
          iprot.skip(ftype)
6424
      elif fid == 1:
6425
        if ftype == TType.STRUCT:
6426
          self.ucx = UserContextException()
6427
          self.ucx.read(iprot)
6428
        else:
6429
          iprot.skip(ftype)
6430
      else:
6431
        iprot.skip(ftype)
6432
      iprot.readFieldEnd()
6433
    iprot.readStructEnd()
6434
 
6435
  def write(self, oprot):
6436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6438
      return
6439
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6440
    if self.success is not None:
594 rajveer 6441
      oprot.writeFieldBegin('success', TType.LIST, 0)
6442
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 6443
      for iter41 in self.success:
6444
        iter41.write(oprot)
594 rajveer 6445
      oprot.writeListEnd()
6446
      oprot.writeFieldEnd()
3431 rajveer 6447
    if self.ucx is not None:
594 rajveer 6448
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6449
      self.ucx.write(oprot)
6450
      oprot.writeFieldEnd()
6451
    oprot.writeFieldStop()
6452
    oprot.writeStructEnd()
6453
 
3431 rajveer 6454
  def validate(self):
6455
    return
6456
 
6457
 
594 rajveer 6458
  def __repr__(self):
6459
    L = ['%s=%r' % (key, value)
6460
      for key, value in self.__dict__.iteritems()]
6461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6462
 
6463
  def __eq__(self, other):
6464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6465
 
6466
  def __ne__(self, other):
6467
    return not (self == other)
6468
 
1894 vikas 6469
class getAddressById_args:
6470
  """
6471
  Attributes:
6472
   - addressId
6473
  """
6474
 
6475
  thrift_spec = (
6476
    None, # 0
6477
    (1, TType.I64, 'addressId', None, None, ), # 1
6478
  )
6479
 
6480
  def __init__(self, addressId=None,):
6481
    self.addressId = addressId
6482
 
6483
  def read(self, iprot):
6484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6486
      return
6487
    iprot.readStructBegin()
6488
    while True:
6489
      (fname, ftype, fid) = iprot.readFieldBegin()
6490
      if ftype == TType.STOP:
6491
        break
6492
      if fid == 1:
6493
        if ftype == TType.I64:
6494
          self.addressId = iprot.readI64();
6495
        else:
6496
          iprot.skip(ftype)
6497
      else:
6498
        iprot.skip(ftype)
6499
      iprot.readFieldEnd()
6500
    iprot.readStructEnd()
6501
 
6502
  def write(self, oprot):
6503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6505
      return
6506
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6507
    if self.addressId is not None:
1894 vikas 6508
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6509
      oprot.writeI64(self.addressId)
6510
      oprot.writeFieldEnd()
6511
    oprot.writeFieldStop()
6512
    oprot.writeStructEnd()
6513
 
3431 rajveer 6514
  def validate(self):
6515
    return
6516
 
6517
 
1894 vikas 6518
  def __repr__(self):
6519
    L = ['%s=%r' % (key, value)
6520
      for key, value in self.__dict__.iteritems()]
6521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6522
 
6523
  def __eq__(self, other):
6524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6525
 
6526
  def __ne__(self, other):
6527
    return not (self == other)
6528
 
6529
class getAddressById_result:
6530
  """
6531
  Attributes:
6532
   - success
6533
   - ucx
6534
  """
6535
 
6536
  thrift_spec = (
6537
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6538
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6539
  )
6540
 
6541
  def __init__(self, success=None, ucx=None,):
6542
    self.success = success
6543
    self.ucx = ucx
6544
 
6545
  def read(self, iprot):
6546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6548
      return
6549
    iprot.readStructBegin()
6550
    while True:
6551
      (fname, ftype, fid) = iprot.readFieldBegin()
6552
      if ftype == TType.STOP:
6553
        break
6554
      if fid == 0:
6555
        if ftype == TType.STRUCT:
6556
          self.success = Address()
6557
          self.success.read(iprot)
6558
        else:
6559
          iprot.skip(ftype)
6560
      elif fid == 1:
6561
        if ftype == TType.STRUCT:
6562
          self.ucx = UserContextException()
6563
          self.ucx.read(iprot)
6564
        else:
6565
          iprot.skip(ftype)
6566
      else:
6567
        iprot.skip(ftype)
6568
      iprot.readFieldEnd()
6569
    iprot.readStructEnd()
6570
 
6571
  def write(self, oprot):
6572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6574
      return
6575
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6576
    if self.success is not None:
1894 vikas 6577
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6578
      self.success.write(oprot)
6579
      oprot.writeFieldEnd()
3431 rajveer 6580
    if self.ucx is not None:
1894 vikas 6581
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6582
      self.ucx.write(oprot)
6583
      oprot.writeFieldEnd()
6584
    oprot.writeFieldStop()
6585
    oprot.writeStructEnd()
6586
 
3431 rajveer 6587
  def validate(self):
6588
    return
6589
 
6590
 
1894 vikas 6591
  def __repr__(self):
6592
    L = ['%s=%r' % (key, value)
6593
      for key, value in self.__dict__.iteritems()]
6594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6595
 
6596
  def __eq__(self, other):
6597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6598
 
6599
  def __ne__(self, other):
6600
    return not (self == other)
6601
 
594 rajveer 6602
class getDefaultAddressId_args:
6603
  """
6604
  Attributes:
6605
   - userId
6606
  """
6607
 
6608
  thrift_spec = (
6609
    None, # 0
6610
    (1, TType.I64, 'userId', None, None, ), # 1
6611
  )
6612
 
6613
  def __init__(self, userId=None,):
6614
    self.userId = userId
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 == 1:
6626
        if ftype == TType.I64:
6627
          self.userId = iprot.readI64();
6628
        else:
6629
          iprot.skip(ftype)
6630
      else:
6631
        iprot.skip(ftype)
6632
      iprot.readFieldEnd()
6633
    iprot.readStructEnd()
6634
 
6635
  def write(self, oprot):
6636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6638
      return
6639
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6640
    if self.userId is not None:
594 rajveer 6641
      oprot.writeFieldBegin('userId', TType.I64, 1)
6642
      oprot.writeI64(self.userId)
6643
      oprot.writeFieldEnd()
6644
    oprot.writeFieldStop()
6645
    oprot.writeStructEnd()
6646
 
3431 rajveer 6647
  def validate(self):
6648
    return
6649
 
6650
 
594 rajveer 6651
  def __repr__(self):
6652
    L = ['%s=%r' % (key, value)
6653
      for key, value in self.__dict__.iteritems()]
6654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6655
 
6656
  def __eq__(self, other):
6657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6658
 
6659
  def __ne__(self, other):
6660
    return not (self == other)
6661
 
6662
class getDefaultAddressId_result:
6663
  """
6664
  Attributes:
6665
   - success
6666
   - ucx
6667
  """
6668
 
6669
  thrift_spec = (
6670
    (0, TType.I64, 'success', None, None, ), # 0
6671
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6672
  )
6673
 
6674
  def __init__(self, success=None, ucx=None,):
6675
    self.success = success
6676
    self.ucx = ucx
6677
 
6678
  def read(self, iprot):
6679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6681
      return
6682
    iprot.readStructBegin()
6683
    while True:
6684
      (fname, ftype, fid) = iprot.readFieldBegin()
6685
      if ftype == TType.STOP:
6686
        break
6687
      if fid == 0:
6688
        if ftype == TType.I64:
6689
          self.success = iprot.readI64();
6690
        else:
6691
          iprot.skip(ftype)
6692
      elif fid == 1:
6693
        if ftype == TType.STRUCT:
6694
          self.ucx = UserContextException()
6695
          self.ucx.read(iprot)
6696
        else:
6697
          iprot.skip(ftype)
6698
      else:
6699
        iprot.skip(ftype)
6700
      iprot.readFieldEnd()
6701
    iprot.readStructEnd()
6702
 
6703
  def write(self, oprot):
6704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6706
      return
6707
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6708
    if self.success is not None:
594 rajveer 6709
      oprot.writeFieldBegin('success', TType.I64, 0)
6710
      oprot.writeI64(self.success)
6711
      oprot.writeFieldEnd()
3431 rajveer 6712
    if self.ucx is not None:
594 rajveer 6713
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6714
      self.ucx.write(oprot)
6715
      oprot.writeFieldEnd()
6716
    oprot.writeFieldStop()
6717
    oprot.writeStructEnd()
6718
 
3431 rajveer 6719
  def validate(self):
6720
    return
6721
 
6722
 
594 rajveer 6723
  def __repr__(self):
6724
    L = ['%s=%r' % (key, value)
6725
      for key, value in self.__dict__.iteritems()]
6726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6727
 
6728
  def __eq__(self, other):
6729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6730
 
6731
  def __ne__(self, other):
6732
    return not (self == other)
6733
 
785 rajveer 6734
class getDefaultPincode_args:
6735
  """
6736
  Attributes:
6737
   - userId
6738
  """
6739
 
6740
  thrift_spec = (
6741
    None, # 0
6742
    (1, TType.I64, 'userId', None, None, ), # 1
6743
  )
6744
 
6745
  def __init__(self, userId=None,):
6746
    self.userId = userId
6747
 
6748
  def read(self, iprot):
6749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6751
      return
6752
    iprot.readStructBegin()
6753
    while True:
6754
      (fname, ftype, fid) = iprot.readFieldBegin()
6755
      if ftype == TType.STOP:
6756
        break
6757
      if fid == 1:
6758
        if ftype == TType.I64:
6759
          self.userId = iprot.readI64();
6760
        else:
6761
          iprot.skip(ftype)
6762
      else:
6763
        iprot.skip(ftype)
6764
      iprot.readFieldEnd()
6765
    iprot.readStructEnd()
6766
 
6767
  def write(self, oprot):
6768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6770
      return
6771
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6772
    if self.userId is not None:
785 rajveer 6773
      oprot.writeFieldBegin('userId', TType.I64, 1)
6774
      oprot.writeI64(self.userId)
6775
      oprot.writeFieldEnd()
6776
    oprot.writeFieldStop()
6777
    oprot.writeStructEnd()
6778
 
3431 rajveer 6779
  def validate(self):
6780
    return
6781
 
6782
 
785 rajveer 6783
  def __repr__(self):
6784
    L = ['%s=%r' % (key, value)
6785
      for key, value in self.__dict__.iteritems()]
6786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6787
 
6788
  def __eq__(self, other):
6789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6790
 
6791
  def __ne__(self, other):
6792
    return not (self == other)
6793
 
6794
class getDefaultPincode_result:
6795
  """
6796
  Attributes:
6797
   - success
6798
   - ucx
6799
  """
6800
 
6801
  thrift_spec = (
6802
    (0, TType.STRING, 'success', None, None, ), # 0
6803
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6804
  )
6805
 
6806
  def __init__(self, success=None, ucx=None,):
6807
    self.success = success
6808
    self.ucx = ucx
6809
 
6810
  def read(self, iprot):
6811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6813
      return
6814
    iprot.readStructBegin()
6815
    while True:
6816
      (fname, ftype, fid) = iprot.readFieldBegin()
6817
      if ftype == TType.STOP:
6818
        break
6819
      if fid == 0:
6820
        if ftype == TType.STRING:
6821
          self.success = iprot.readString();
6822
        else:
6823
          iprot.skip(ftype)
6824
      elif fid == 1:
6825
        if ftype == TType.STRUCT:
6826
          self.ucx = UserContextException()
6827
          self.ucx.read(iprot)
6828
        else:
6829
          iprot.skip(ftype)
6830
      else:
6831
        iprot.skip(ftype)
6832
      iprot.readFieldEnd()
6833
    iprot.readStructEnd()
6834
 
6835
  def write(self, oprot):
6836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6838
      return
6839
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6840
    if self.success is not None:
785 rajveer 6841
      oprot.writeFieldBegin('success', TType.STRING, 0)
6842
      oprot.writeString(self.success)
6843
      oprot.writeFieldEnd()
3431 rajveer 6844
    if self.ucx is not None:
785 rajveer 6845
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6846
      self.ucx.write(oprot)
6847
      oprot.writeFieldEnd()
6848
    oprot.writeFieldStop()
6849
    oprot.writeStructEnd()
6850
 
3431 rajveer 6851
  def validate(self):
6852
    return
6853
 
6854
 
785 rajveer 6855
  def __repr__(self):
6856
    L = ['%s=%r' % (key, value)
6857
      for key, value in self.__dict__.iteritems()]
6858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6859
 
6860
  def __eq__(self, other):
6861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6862
 
6863
  def __ne__(self, other):
6864
    return not (self == other)
6865
 
1274 varun.gupt 6866
class saveUserCommunication_args:
6867
  """
6868
  Attributes:
6869
   - userId
6870
   - replyTo
6871
   - communicationType
6872
   - orderId
6873
   - airwaybillNo
6874
   - productName
6875
   - subject
6876
   - message
6877
  """
6878
 
6879
  thrift_spec = (
6880
    None, # 0
6881
    (1, TType.I64, 'userId', None, None, ), # 1
6882
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6883
    (3, TType.I64, 'communicationType', None, None, ), # 3
6884
    (4, TType.I64, 'orderId', None, None, ), # 4
6885
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6886
    (6, TType.STRING, 'productName', None, None, ), # 6
6887
    (7, TType.STRING, 'subject', None, None, ), # 7
6888
    (8, TType.STRING, 'message', None, None, ), # 8
6889
  )
6890
 
6891
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6892
    self.userId = userId
6893
    self.replyTo = replyTo
6894
    self.communicationType = communicationType
6895
    self.orderId = orderId
6896
    self.airwaybillNo = airwaybillNo
6897
    self.productName = productName
6898
    self.subject = subject
6899
    self.message = message
6900
 
6901
  def read(self, iprot):
6902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6904
      return
6905
    iprot.readStructBegin()
6906
    while True:
6907
      (fname, ftype, fid) = iprot.readFieldBegin()
6908
      if ftype == TType.STOP:
6909
        break
6910
      if fid == 1:
6911
        if ftype == TType.I64:
6912
          self.userId = iprot.readI64();
6913
        else:
6914
          iprot.skip(ftype)
6915
      elif fid == 2:
6916
        if ftype == TType.STRING:
6917
          self.replyTo = iprot.readString();
6918
        else:
6919
          iprot.skip(ftype)
6920
      elif fid == 3:
6921
        if ftype == TType.I64:
6922
          self.communicationType = iprot.readI64();
6923
        else:
6924
          iprot.skip(ftype)
6925
      elif fid == 4:
6926
        if ftype == TType.I64:
6927
          self.orderId = iprot.readI64();
6928
        else:
6929
          iprot.skip(ftype)
6930
      elif fid == 5:
6931
        if ftype == TType.STRING:
6932
          self.airwaybillNo = iprot.readString();
6933
        else:
6934
          iprot.skip(ftype)
6935
      elif fid == 6:
6936
        if ftype == TType.STRING:
6937
          self.productName = iprot.readString();
6938
        else:
6939
          iprot.skip(ftype)
6940
      elif fid == 7:
6941
        if ftype == TType.STRING:
6942
          self.subject = iprot.readString();
6943
        else:
6944
          iprot.skip(ftype)
6945
      elif fid == 8:
6946
        if ftype == TType.STRING:
6947
          self.message = iprot.readString();
6948
        else:
6949
          iprot.skip(ftype)
6950
      else:
6951
        iprot.skip(ftype)
6952
      iprot.readFieldEnd()
6953
    iprot.readStructEnd()
6954
 
6955
  def write(self, oprot):
6956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6958
      return
6959
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6960
    if self.userId is not None:
1274 varun.gupt 6961
      oprot.writeFieldBegin('userId', TType.I64, 1)
6962
      oprot.writeI64(self.userId)
6963
      oprot.writeFieldEnd()
3431 rajveer 6964
    if self.replyTo is not None:
1274 varun.gupt 6965
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6966
      oprot.writeString(self.replyTo)
6967
      oprot.writeFieldEnd()
3431 rajveer 6968
    if self.communicationType is not None:
1274 varun.gupt 6969
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6970
      oprot.writeI64(self.communicationType)
6971
      oprot.writeFieldEnd()
3431 rajveer 6972
    if self.orderId is not None:
1274 varun.gupt 6973
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6974
      oprot.writeI64(self.orderId)
6975
      oprot.writeFieldEnd()
3431 rajveer 6976
    if self.airwaybillNo is not None:
1274 varun.gupt 6977
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6978
      oprot.writeString(self.airwaybillNo)
6979
      oprot.writeFieldEnd()
3431 rajveer 6980
    if self.productName is not None:
1274 varun.gupt 6981
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6982
      oprot.writeString(self.productName)
6983
      oprot.writeFieldEnd()
3431 rajveer 6984
    if self.subject is not None:
1274 varun.gupt 6985
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6986
      oprot.writeString(self.subject)
6987
      oprot.writeFieldEnd()
3431 rajveer 6988
    if self.message is not None:
1274 varun.gupt 6989
      oprot.writeFieldBegin('message', TType.STRING, 8)
6990
      oprot.writeString(self.message)
6991
      oprot.writeFieldEnd()
6992
    oprot.writeFieldStop()
6993
    oprot.writeStructEnd()
6994
 
3431 rajveer 6995
  def validate(self):
6996
    return
6997
 
6998
 
1274 varun.gupt 6999
  def __repr__(self):
7000
    L = ['%s=%r' % (key, value)
7001
      for key, value in self.__dict__.iteritems()]
7002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7003
 
7004
  def __eq__(self, other):
7005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7006
 
7007
  def __ne__(self, other):
7008
    return not (self == other)
7009
 
7010
class saveUserCommunication_result:
7011
  """
7012
  Attributes:
7013
   - success
7014
   - ucx
7015
  """
7016
 
7017
  thrift_spec = (
7018
    (0, TType.BOOL, 'success', None, None, ), # 0
7019
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7020
  )
7021
 
7022
  def __init__(self, success=None, ucx=None,):
7023
    self.success = success
7024
    self.ucx = ucx
7025
 
7026
  def read(self, iprot):
7027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7029
      return
7030
    iprot.readStructBegin()
7031
    while True:
7032
      (fname, ftype, fid) = iprot.readFieldBegin()
7033
      if ftype == TType.STOP:
7034
        break
7035
      if fid == 0:
7036
        if ftype == TType.BOOL:
7037
          self.success = iprot.readBool();
7038
        else:
7039
          iprot.skip(ftype)
7040
      elif fid == 1:
7041
        if ftype == TType.STRUCT:
7042
          self.ucx = UserCommunicationException()
7043
          self.ucx.read(iprot)
7044
        else:
7045
          iprot.skip(ftype)
7046
      else:
7047
        iprot.skip(ftype)
7048
      iprot.readFieldEnd()
7049
    iprot.readStructEnd()
7050
 
7051
  def write(self, oprot):
7052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7054
      return
7055
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7056
    if self.success is not None:
1274 varun.gupt 7057
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7058
      oprot.writeBool(self.success)
7059
      oprot.writeFieldEnd()
3431 rajveer 7060
    if self.ucx is not None:
1274 varun.gupt 7061
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7062
      self.ucx.write(oprot)
7063
      oprot.writeFieldEnd()
7064
    oprot.writeFieldStop()
7065
    oprot.writeStructEnd()
7066
 
3431 rajveer 7067
  def validate(self):
7068
    return
7069
 
7070
 
1274 varun.gupt 7071
  def __repr__(self):
7072
    L = ['%s=%r' % (key, value)
7073
      for key, value in self.__dict__.iteritems()]
7074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7075
 
7076
  def __eq__(self, other):
7077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7078
 
7079
  def __ne__(self, other):
7080
    return not (self == other)
7081
 
1590 varun.gupt 7082
class getUserCommunicationById_args:
7083
  """
7084
  Attributes:
7085
   - id
7086
  """
7087
 
7088
  thrift_spec = (
7089
    None, # 0
7090
    (1, TType.I64, 'id', None, None, ), # 1
7091
  )
7092
 
7093
  def __init__(self, id=None,):
7094
    self.id = id
7095
 
7096
  def read(self, iprot):
7097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7099
      return
7100
    iprot.readStructBegin()
7101
    while True:
7102
      (fname, ftype, fid) = iprot.readFieldBegin()
7103
      if ftype == TType.STOP:
7104
        break
7105
      if fid == 1:
7106
        if ftype == TType.I64:
7107
          self.id = iprot.readI64();
7108
        else:
7109
          iprot.skip(ftype)
7110
      else:
7111
        iprot.skip(ftype)
7112
      iprot.readFieldEnd()
7113
    iprot.readStructEnd()
7114
 
7115
  def write(self, oprot):
7116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7118
      return
7119
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7120
    if self.id is not None:
1590 varun.gupt 7121
      oprot.writeFieldBegin('id', TType.I64, 1)
7122
      oprot.writeI64(self.id)
7123
      oprot.writeFieldEnd()
7124
    oprot.writeFieldStop()
7125
    oprot.writeStructEnd()
7126
 
3431 rajveer 7127
  def validate(self):
7128
    return
7129
 
7130
 
1590 varun.gupt 7131
  def __repr__(self):
7132
    L = ['%s=%r' % (key, value)
7133
      for key, value in self.__dict__.iteritems()]
7134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7135
 
7136
  def __eq__(self, other):
7137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7138
 
7139
  def __ne__(self, other):
7140
    return not (self == other)
7141
 
7142
class getUserCommunicationById_result:
7143
  """
7144
  Attributes:
7145
   - success
7146
   - ucx
7147
  """
7148
 
7149
  thrift_spec = (
7150
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7151
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7152
  )
7153
 
7154
  def __init__(self, success=None, ucx=None,):
7155
    self.success = success
7156
    self.ucx = ucx
7157
 
7158
  def read(self, iprot):
7159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7161
      return
7162
    iprot.readStructBegin()
7163
    while True:
7164
      (fname, ftype, fid) = iprot.readFieldBegin()
7165
      if ftype == TType.STOP:
7166
        break
7167
      if fid == 0:
7168
        if ftype == TType.STRUCT:
7169
          self.success = UserCommunication()
7170
          self.success.read(iprot)
7171
        else:
7172
          iprot.skip(ftype)
7173
      elif fid == 1:
7174
        if ftype == TType.STRUCT:
7175
          self.ucx = UserCommunicationException()
7176
          self.ucx.read(iprot)
7177
        else:
7178
          iprot.skip(ftype)
7179
      else:
7180
        iprot.skip(ftype)
7181
      iprot.readFieldEnd()
7182
    iprot.readStructEnd()
7183
 
7184
  def write(self, oprot):
7185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7187
      return
7188
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7189
    if self.success is not None:
1590 varun.gupt 7190
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7191
      self.success.write(oprot)
7192
      oprot.writeFieldEnd()
3431 rajveer 7193
    if self.ucx is not None:
1590 varun.gupt 7194
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7195
      self.ucx.write(oprot)
7196
      oprot.writeFieldEnd()
7197
    oprot.writeFieldStop()
7198
    oprot.writeStructEnd()
7199
 
3431 rajveer 7200
  def validate(self):
7201
    return
7202
 
7203
 
1590 varun.gupt 7204
  def __repr__(self):
7205
    L = ['%s=%r' % (key, value)
7206
      for key, value in self.__dict__.iteritems()]
7207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7208
 
7209
  def __eq__(self, other):
7210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7211
 
7212
  def __ne__(self, other):
7213
    return not (self == other)
7214
 
7215
class getUserCommunicationByUser_args:
7216
  """
7217
  Attributes:
7218
   - userId
7219
  """
7220
 
7221
  thrift_spec = (
7222
    None, # 0
7223
    (1, TType.I64, 'userId', None, None, ), # 1
7224
  )
7225
 
7226
  def __init__(self, userId=None,):
7227
    self.userId = userId
7228
 
7229
  def read(self, iprot):
7230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7232
      return
7233
    iprot.readStructBegin()
7234
    while True:
7235
      (fname, ftype, fid) = iprot.readFieldBegin()
7236
      if ftype == TType.STOP:
7237
        break
7238
      if fid == 1:
7239
        if ftype == TType.I64:
7240
          self.userId = iprot.readI64();
7241
        else:
7242
          iprot.skip(ftype)
7243
      else:
7244
        iprot.skip(ftype)
7245
      iprot.readFieldEnd()
7246
    iprot.readStructEnd()
7247
 
7248
  def write(self, oprot):
7249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7251
      return
7252
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7253
    if self.userId is not None:
1590 varun.gupt 7254
      oprot.writeFieldBegin('userId', TType.I64, 1)
7255
      oprot.writeI64(self.userId)
7256
      oprot.writeFieldEnd()
7257
    oprot.writeFieldStop()
7258
    oprot.writeStructEnd()
7259
 
3431 rajveer 7260
  def validate(self):
7261
    return
7262
 
7263
 
1590 varun.gupt 7264
  def __repr__(self):
7265
    L = ['%s=%r' % (key, value)
7266
      for key, value in self.__dict__.iteritems()]
7267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7268
 
7269
  def __eq__(self, other):
7270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7271
 
7272
  def __ne__(self, other):
7273
    return not (self == other)
7274
 
7275
class getUserCommunicationByUser_result:
7276
  """
7277
  Attributes:
7278
   - success
7279
   - ucx
7280
  """
7281
 
7282
  thrift_spec = (
7283
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7284
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7285
  )
7286
 
7287
  def __init__(self, success=None, ucx=None,):
7288
    self.success = success
7289
    self.ucx = ucx
7290
 
7291
  def read(self, iprot):
7292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7294
      return
7295
    iprot.readStructBegin()
7296
    while True:
7297
      (fname, ftype, fid) = iprot.readFieldBegin()
7298
      if ftype == TType.STOP:
7299
        break
7300
      if fid == 0:
7301
        if ftype == TType.LIST:
7302
          self.success = []
3385 varun.gupt 7303
          (_etype45, _size42) = iprot.readListBegin()
7304
          for _i46 in xrange(_size42):
7305
            _elem47 = UserCommunication()
7306
            _elem47.read(iprot)
7307
            self.success.append(_elem47)
1590 varun.gupt 7308
          iprot.readListEnd()
7309
        else:
7310
          iprot.skip(ftype)
7311
      elif fid == 1:
7312
        if ftype == TType.STRUCT:
7313
          self.ucx = UserCommunicationException()
7314
          self.ucx.read(iprot)
7315
        else:
7316
          iprot.skip(ftype)
7317
      else:
7318
        iprot.skip(ftype)
7319
      iprot.readFieldEnd()
7320
    iprot.readStructEnd()
7321
 
7322
  def write(self, oprot):
7323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7325
      return
7326
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7327
    if self.success is not None:
1590 varun.gupt 7328
      oprot.writeFieldBegin('success', TType.LIST, 0)
7329
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7330
      for iter48 in self.success:
7331
        iter48.write(oprot)
1590 varun.gupt 7332
      oprot.writeListEnd()
7333
      oprot.writeFieldEnd()
3431 rajveer 7334
    if self.ucx is not None:
1590 varun.gupt 7335
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7336
      self.ucx.write(oprot)
7337
      oprot.writeFieldEnd()
7338
    oprot.writeFieldStop()
7339
    oprot.writeStructEnd()
7340
 
3431 rajveer 7341
  def validate(self):
7342
    return
7343
 
7344
 
1590 varun.gupt 7345
  def __repr__(self):
7346
    L = ['%s=%r' % (key, value)
7347
      for key, value in self.__dict__.iteritems()]
7348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7349
 
7350
  def __eq__(self, other):
7351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7352
 
7353
  def __ne__(self, other):
7354
    return not (self == other)
7355
 
7356
class getAllUserCommunications_args:
7357
 
7358
  thrift_spec = (
7359
  )
7360
 
7361
  def read(self, iprot):
7362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7364
      return
7365
    iprot.readStructBegin()
7366
    while True:
7367
      (fname, ftype, fid) = iprot.readFieldBegin()
7368
      if ftype == TType.STOP:
7369
        break
7370
      else:
7371
        iprot.skip(ftype)
7372
      iprot.readFieldEnd()
7373
    iprot.readStructEnd()
7374
 
7375
  def write(self, oprot):
7376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7378
      return
7379
    oprot.writeStructBegin('getAllUserCommunications_args')
7380
    oprot.writeFieldStop()
7381
    oprot.writeStructEnd()
7382
 
3431 rajveer 7383
  def validate(self):
7384
    return
7385
 
7386
 
1590 varun.gupt 7387
  def __repr__(self):
7388
    L = ['%s=%r' % (key, value)
7389
      for key, value in self.__dict__.iteritems()]
7390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7391
 
7392
  def __eq__(self, other):
7393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7394
 
7395
  def __ne__(self, other):
7396
    return not (self == other)
7397
 
7398
class getAllUserCommunications_result:
7399
  """
7400
  Attributes:
7401
   - success
7402
   - ucx
7403
  """
7404
 
7405
  thrift_spec = (
7406
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7407
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7408
  )
7409
 
7410
  def __init__(self, success=None, ucx=None,):
7411
    self.success = success
7412
    self.ucx = ucx
7413
 
7414
  def read(self, iprot):
7415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7417
      return
7418
    iprot.readStructBegin()
7419
    while True:
7420
      (fname, ftype, fid) = iprot.readFieldBegin()
7421
      if ftype == TType.STOP:
7422
        break
7423
      if fid == 0:
7424
        if ftype == TType.LIST:
7425
          self.success = []
3385 varun.gupt 7426
          (_etype52, _size49) = iprot.readListBegin()
7427
          for _i53 in xrange(_size49):
7428
            _elem54 = UserCommunication()
7429
            _elem54.read(iprot)
7430
            self.success.append(_elem54)
1590 varun.gupt 7431
          iprot.readListEnd()
7432
        else:
7433
          iprot.skip(ftype)
7434
      elif fid == 1:
7435
        if ftype == TType.STRUCT:
7436
          self.ucx = UserCommunicationException()
7437
          self.ucx.read(iprot)
7438
        else:
7439
          iprot.skip(ftype)
7440
      else:
7441
        iprot.skip(ftype)
7442
      iprot.readFieldEnd()
7443
    iprot.readStructEnd()
7444
 
7445
  def write(self, oprot):
7446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7448
      return
7449
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7450
    if self.success is not None:
1590 varun.gupt 7451
      oprot.writeFieldBegin('success', TType.LIST, 0)
7452
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7453
      for iter55 in self.success:
7454
        iter55.write(oprot)
1590 varun.gupt 7455
      oprot.writeListEnd()
7456
      oprot.writeFieldEnd()
3431 rajveer 7457
    if self.ucx is not None:
1590 varun.gupt 7458
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7459
      self.ucx.write(oprot)
7460
      oprot.writeFieldEnd()
7461
    oprot.writeFieldStop()
7462
    oprot.writeStructEnd()
7463
 
3431 rajveer 7464
  def validate(self):
7465
    return
7466
 
7467
 
1590 varun.gupt 7468
  def __repr__(self):
7469
    L = ['%s=%r' % (key, value)
7470
      for key, value in self.__dict__.iteritems()]
7471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7472
 
7473
  def __eq__(self, other):
7474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7475
 
7476
  def __ne__(self, other):
7477
    return not (self == other)
7478
 
1845 vikas 7479
class createMasterAffiliate_args:
7480
  """
7481
  Attributes:
7482
   - name
1859 vikas 7483
   - addedOn
1845 vikas 7484
  """
7485
 
7486
  thrift_spec = (
7487
    None, # 0
7488
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7489
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7490
  )
7491
 
1859 vikas 7492
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7493
    self.name = name
1859 vikas 7494
    self.addedOn = addedOn
1845 vikas 7495
 
7496
  def read(self, iprot):
7497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7499
      return
7500
    iprot.readStructBegin()
7501
    while True:
7502
      (fname, ftype, fid) = iprot.readFieldBegin()
7503
      if ftype == TType.STOP:
7504
        break
7505
      if fid == 1:
7506
        if ftype == TType.STRING:
7507
          self.name = iprot.readString();
7508
        else:
7509
          iprot.skip(ftype)
1859 vikas 7510
      elif fid == 2:
7511
        if ftype == TType.I64:
7512
          self.addedOn = iprot.readI64();
7513
        else:
7514
          iprot.skip(ftype)
1845 vikas 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_args')
3431 rajveer 7525
    if self.name is not None:
1845 vikas 7526
      oprot.writeFieldBegin('name', TType.STRING, 1)
7527
      oprot.writeString(self.name)
7528
      oprot.writeFieldEnd()
3431 rajveer 7529
    if self.addedOn is not None:
1859 vikas 7530
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7531
      oprot.writeI64(self.addedOn)
7532
      oprot.writeFieldEnd()
1845 vikas 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
 
7551
class createMasterAffiliate_result:
7552
  """
7553
  Attributes:
7554
   - success
7555
   - utx
7556
  """
7557
 
7558
  thrift_spec = (
7559
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7560
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7561
  )
7562
 
7563
  def __init__(self, success=None, utx=None,):
7564
    self.success = success
7565
    self.utx = utx
7566
 
7567
  def read(self, iprot):
7568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7570
      return
7571
    iprot.readStructBegin()
7572
    while True:
7573
      (fname, ftype, fid) = iprot.readFieldBegin()
7574
      if ftype == TType.STOP:
7575
        break
7576
      if fid == 0:
7577
        if ftype == TType.STRUCT:
7578
          self.success = MasterAffiliate()
7579
          self.success.read(iprot)
7580
        else:
7581
          iprot.skip(ftype)
7582
      elif fid == 1:
7583
        if ftype == TType.STRUCT:
1996 vikas 7584
          self.utx = UserAffiliateException()
1845 vikas 7585
          self.utx.read(iprot)
7586
        else:
7587
          iprot.skip(ftype)
7588
      else:
7589
        iprot.skip(ftype)
7590
      iprot.readFieldEnd()
7591
    iprot.readStructEnd()
7592
 
7593
  def write(self, oprot):
7594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7596
      return
7597
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7598
    if self.success is not None:
1845 vikas 7599
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7600
      self.success.write(oprot)
7601
      oprot.writeFieldEnd()
3431 rajveer 7602
    if self.utx is not None:
1845 vikas 7603
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7604
      self.utx.write(oprot)
7605
      oprot.writeFieldEnd()
7606
    oprot.writeFieldStop()
7607
    oprot.writeStructEnd()
7608
 
3431 rajveer 7609
  def validate(self):
7610
    return
7611
 
7612
 
1845 vikas 7613
  def __repr__(self):
7614
    L = ['%s=%r' % (key, value)
7615
      for key, value in self.__dict__.iteritems()]
7616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7617
 
7618
  def __eq__(self, other):
7619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7620
 
7621
  def __ne__(self, other):
7622
    return not (self == other)
7623
 
1899 vikas 7624
class getAllMasterAffiliates_args:
7625
 
7626
  thrift_spec = (
7627
  )
7628
 
7629
  def read(self, iprot):
7630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7632
      return
7633
    iprot.readStructBegin()
7634
    while True:
7635
      (fname, ftype, fid) = iprot.readFieldBegin()
7636
      if ftype == TType.STOP:
7637
        break
7638
      else:
7639
        iprot.skip(ftype)
7640
      iprot.readFieldEnd()
7641
    iprot.readStructEnd()
7642
 
7643
  def write(self, oprot):
7644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7646
      return
7647
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7648
    oprot.writeFieldStop()
7649
    oprot.writeStructEnd()
7650
 
3431 rajveer 7651
  def validate(self):
7652
    return
7653
 
7654
 
1899 vikas 7655
  def __repr__(self):
7656
    L = ['%s=%r' % (key, value)
7657
      for key, value in self.__dict__.iteritems()]
7658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7659
 
7660
  def __eq__(self, other):
7661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7662
 
7663
  def __ne__(self, other):
7664
    return not (self == other)
7665
 
7666
class getAllMasterAffiliates_result:
7667
  """
7668
  Attributes:
7669
   - success
7670
   - utx
7671
  """
7672
 
7673
  thrift_spec = (
7674
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7675
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7676
  )
7677
 
7678
  def __init__(self, success=None, utx=None,):
7679
    self.success = success
7680
    self.utx = utx
7681
 
7682
  def read(self, iprot):
7683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7685
      return
7686
    iprot.readStructBegin()
7687
    while True:
7688
      (fname, ftype, fid) = iprot.readFieldBegin()
7689
      if ftype == TType.STOP:
7690
        break
7691
      if fid == 0:
7692
        if ftype == TType.LIST:
7693
          self.success = []
3385 varun.gupt 7694
          (_etype59, _size56) = iprot.readListBegin()
7695
          for _i60 in xrange(_size56):
7696
            _elem61 = MasterAffiliate()
7697
            _elem61.read(iprot)
7698
            self.success.append(_elem61)
1899 vikas 7699
          iprot.readListEnd()
7700
        else:
7701
          iprot.skip(ftype)
7702
      elif fid == 1:
7703
        if ftype == TType.STRUCT:
1996 vikas 7704
          self.utx = UserAffiliateException()
1899 vikas 7705
          self.utx.read(iprot)
7706
        else:
7707
          iprot.skip(ftype)
7708
      else:
7709
        iprot.skip(ftype)
7710
      iprot.readFieldEnd()
7711
    iprot.readStructEnd()
7712
 
7713
  def write(self, oprot):
7714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7716
      return
7717
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7718
    if self.success is not None:
1899 vikas 7719
      oprot.writeFieldBegin('success', TType.LIST, 0)
7720
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7721
      for iter62 in self.success:
7722
        iter62.write(oprot)
1899 vikas 7723
      oprot.writeListEnd()
7724
      oprot.writeFieldEnd()
3431 rajveer 7725
    if self.utx is not None:
1899 vikas 7726
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7727
      self.utx.write(oprot)
7728
      oprot.writeFieldEnd()
7729
    oprot.writeFieldStop()
7730
    oprot.writeStructEnd()
7731
 
3431 rajveer 7732
  def validate(self):
7733
    return
7734
 
7735
 
1899 vikas 7736
  def __repr__(self):
7737
    L = ['%s=%r' % (key, value)
7738
      for key, value in self.__dict__.iteritems()]
7739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7740
 
7741
  def __eq__(self, other):
7742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7743
 
7744
  def __ne__(self, other):
7745
    return not (self == other)
7746
 
1845 vikas 7747
class getMasterAffiliateById_args:
7748
  """
7749
  Attributes:
7750
   - id
7751
  """
7752
 
7753
  thrift_spec = (
7754
    None, # 0
7755
    (1, TType.I64, 'id', None, None, ), # 1
7756
  )
7757
 
7758
  def __init__(self, id=None,):
7759
    self.id = id
7760
 
7761
  def read(self, iprot):
7762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7764
      return
7765
    iprot.readStructBegin()
7766
    while True:
7767
      (fname, ftype, fid) = iprot.readFieldBegin()
7768
      if ftype == TType.STOP:
7769
        break
7770
      if fid == 1:
7771
        if ftype == TType.I64:
7772
          self.id = iprot.readI64();
7773
        else:
7774
          iprot.skip(ftype)
7775
      else:
7776
        iprot.skip(ftype)
7777
      iprot.readFieldEnd()
7778
    iprot.readStructEnd()
7779
 
7780
  def write(self, oprot):
7781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7783
      return
7784
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7785
    if self.id is not None:
1845 vikas 7786
      oprot.writeFieldBegin('id', TType.I64, 1)
7787
      oprot.writeI64(self.id)
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 getMasterAffiliateById_result:
7808
  """
7809
  Attributes:
7810
   - success
7811
   - utx
7812
  """
7813
 
7814
  thrift_spec = (
7815
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7816
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7817
  )
7818
 
7819
  def __init__(self, success=None, utx=None,):
7820
    self.success = success
7821
    self.utx = utx
7822
 
7823
  def read(self, iprot):
7824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7826
      return
7827
    iprot.readStructBegin()
7828
    while True:
7829
      (fname, ftype, fid) = iprot.readFieldBegin()
7830
      if ftype == TType.STOP:
7831
        break
7832
      if fid == 0:
7833
        if ftype == TType.STRUCT:
7834
          self.success = MasterAffiliate()
7835
          self.success.read(iprot)
7836
        else:
7837
          iprot.skip(ftype)
7838
      elif fid == 1:
7839
        if ftype == TType.STRUCT:
1996 vikas 7840
          self.utx = UserAffiliateException()
1845 vikas 7841
          self.utx.read(iprot)
7842
        else:
7843
          iprot.skip(ftype)
7844
      else:
7845
        iprot.skip(ftype)
7846
      iprot.readFieldEnd()
7847
    iprot.readStructEnd()
7848
 
7849
  def write(self, oprot):
7850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7852
      return
7853
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7854
    if self.success is not None:
1845 vikas 7855
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7856
      self.success.write(oprot)
7857
      oprot.writeFieldEnd()
3431 rajveer 7858
    if self.utx is not None:
1845 vikas 7859
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7860
      self.utx.write(oprot)
7861
      oprot.writeFieldEnd()
7862
    oprot.writeFieldStop()
7863
    oprot.writeStructEnd()
7864
 
3431 rajveer 7865
  def validate(self):
7866
    return
7867
 
7868
 
1845 vikas 7869
  def __repr__(self):
7870
    L = ['%s=%r' % (key, value)
7871
      for key, value in self.__dict__.iteritems()]
7872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7873
 
7874
  def __eq__(self, other):
7875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7876
 
7877
  def __ne__(self, other):
7878
    return not (self == other)
7879
 
7880
class getMasterAffiliateByName_args:
7881
  """
7882
  Attributes:
7883
   - name
7884
  """
7885
 
7886
  thrift_spec = (
7887
    None, # 0
7888
    (1, TType.STRING, 'name', None, None, ), # 1
7889
  )
7890
 
7891
  def __init__(self, name=None,):
7892
    self.name = name
7893
 
7894
  def read(self, iprot):
7895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7897
      return
7898
    iprot.readStructBegin()
7899
    while True:
7900
      (fname, ftype, fid) = iprot.readFieldBegin()
7901
      if ftype == TType.STOP:
7902
        break
7903
      if fid == 1:
7904
        if ftype == TType.STRING:
7905
          self.name = iprot.readString();
7906
        else:
7907
          iprot.skip(ftype)
7908
      else:
7909
        iprot.skip(ftype)
7910
      iprot.readFieldEnd()
7911
    iprot.readStructEnd()
7912
 
7913
  def write(self, oprot):
7914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7916
      return
7917
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7918
    if self.name is not None:
1845 vikas 7919
      oprot.writeFieldBegin('name', TType.STRING, 1)
7920
      oprot.writeString(self.name)
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 getMasterAffiliateByName_result:
7941
  """
7942
  Attributes:
7943
   - success
7944
   - utx
7945
  """
7946
 
7947
  thrift_spec = (
7948
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7949
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7950
  )
7951
 
7952
  def __init__(self, success=None, utx=None,):
7953
    self.success = success
7954
    self.utx = utx
7955
 
7956
  def read(self, iprot):
7957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7959
      return
7960
    iprot.readStructBegin()
7961
    while True:
7962
      (fname, ftype, fid) = iprot.readFieldBegin()
7963
      if ftype == TType.STOP:
7964
        break
7965
      if fid == 0:
7966
        if ftype == TType.STRUCT:
7967
          self.success = MasterAffiliate()
7968
          self.success.read(iprot)
7969
        else:
7970
          iprot.skip(ftype)
7971
      elif fid == 1:
7972
        if ftype == TType.STRUCT:
1996 vikas 7973
          self.utx = UserAffiliateException()
1845 vikas 7974
          self.utx.read(iprot)
7975
        else:
7976
          iprot.skip(ftype)
7977
      else:
7978
        iprot.skip(ftype)
7979
      iprot.readFieldEnd()
7980
    iprot.readStructEnd()
7981
 
7982
  def write(self, oprot):
7983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7985
      return
7986
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7987
    if self.success is not None:
1845 vikas 7988
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7989
      self.success.write(oprot)
7990
      oprot.writeFieldEnd()
3431 rajveer 7991
    if self.utx is not None:
1845 vikas 7992
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7993
      self.utx.write(oprot)
7994
      oprot.writeFieldEnd()
7995
    oprot.writeFieldStop()
7996
    oprot.writeStructEnd()
7997
 
3431 rajveer 7998
  def validate(self):
7999
    return
8000
 
8001
 
1845 vikas 8002
  def __repr__(self):
8003
    L = ['%s=%r' % (key, value)
8004
      for key, value in self.__dict__.iteritems()]
8005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8006
 
8007
  def __eq__(self, other):
8008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8009
 
8010
  def __ne__(self, other):
8011
    return not (self == other)
8012
 
8013
class createAffiliate_args:
8014
  """
8015
  Attributes:
8016
   - name
8017
   - url
8018
   - masterAffiliateId
1859 vikas 8019
   - addedOn
1845 vikas 8020
  """
8021
 
8022
  thrift_spec = (
8023
    None, # 0
8024
    (1, TType.STRING, 'name', None, None, ), # 1
8025
    (2, TType.STRING, 'url', None, None, ), # 2
8026
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8027
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8028
  )
8029
 
1859 vikas 8030
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8031
    self.name = name
8032
    self.url = url
8033
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8034
    self.addedOn = addedOn
1845 vikas 8035
 
8036
  def read(self, iprot):
8037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8039
      return
8040
    iprot.readStructBegin()
8041
    while True:
8042
      (fname, ftype, fid) = iprot.readFieldBegin()
8043
      if ftype == TType.STOP:
8044
        break
8045
      if fid == 1:
8046
        if ftype == TType.STRING:
8047
          self.name = iprot.readString();
8048
        else:
8049
          iprot.skip(ftype)
8050
      elif fid == 2:
8051
        if ftype == TType.STRING:
8052
          self.url = iprot.readString();
8053
        else:
8054
          iprot.skip(ftype)
8055
      elif fid == 3:
8056
        if ftype == TType.I64:
8057
          self.masterAffiliateId = iprot.readI64();
8058
        else:
8059
          iprot.skip(ftype)
1859 vikas 8060
      elif fid == 4:
8061
        if ftype == TType.I64:
8062
          self.addedOn = iprot.readI64();
8063
        else:
8064
          iprot.skip(ftype)
1845 vikas 8065
      else:
8066
        iprot.skip(ftype)
8067
      iprot.readFieldEnd()
8068
    iprot.readStructEnd()
8069
 
8070
  def write(self, oprot):
8071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8073
      return
8074
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8075
    if self.name is not None:
1845 vikas 8076
      oprot.writeFieldBegin('name', TType.STRING, 1)
8077
      oprot.writeString(self.name)
8078
      oprot.writeFieldEnd()
3431 rajveer 8079
    if self.url is not None:
1845 vikas 8080
      oprot.writeFieldBegin('url', TType.STRING, 2)
8081
      oprot.writeString(self.url)
8082
      oprot.writeFieldEnd()
3431 rajveer 8083
    if self.masterAffiliateId is not None:
1845 vikas 8084
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8085
      oprot.writeI64(self.masterAffiliateId)
8086
      oprot.writeFieldEnd()
3431 rajveer 8087
    if self.addedOn is not None:
1859 vikas 8088
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8089
      oprot.writeI64(self.addedOn)
8090
      oprot.writeFieldEnd()
1845 vikas 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 createAffiliate_result:
8110
  """
8111
  Attributes:
8112
   - success
8113
   - utx
8114
  """
8115
 
8116
  thrift_spec = (
8117
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8118
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8119
  )
8120
 
8121
  def __init__(self, success=None, utx=None,):
8122
    self.success = success
8123
    self.utx = utx
8124
 
8125
  def read(self, iprot):
8126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8128
      return
8129
    iprot.readStructBegin()
8130
    while True:
8131
      (fname, ftype, fid) = iprot.readFieldBegin()
8132
      if ftype == TType.STOP:
8133
        break
8134
      if fid == 0:
8135
        if ftype == TType.STRUCT:
8136
          self.success = Affiliate()
8137
          self.success.read(iprot)
8138
        else:
8139
          iprot.skip(ftype)
8140
      elif fid == 1:
8141
        if ftype == TType.STRUCT:
1996 vikas 8142
          self.utx = UserAffiliateException()
1845 vikas 8143
          self.utx.read(iprot)
8144
        else:
8145
          iprot.skip(ftype)
8146
      else:
8147
        iprot.skip(ftype)
8148
      iprot.readFieldEnd()
8149
    iprot.readStructEnd()
8150
 
8151
  def write(self, oprot):
8152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8154
      return
8155
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8156
    if self.success is not None:
1845 vikas 8157
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8158
      self.success.write(oprot)
8159
      oprot.writeFieldEnd()
3431 rajveer 8160
    if self.utx is not None:
1845 vikas 8161
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8162
      self.utx.write(oprot)
8163
      oprot.writeFieldEnd()
8164
    oprot.writeFieldStop()
8165
    oprot.writeStructEnd()
8166
 
3431 rajveer 8167
  def validate(self):
8168
    return
8169
 
8170
 
1845 vikas 8171
  def __repr__(self):
8172
    L = ['%s=%r' % (key, value)
8173
      for key, value in self.__dict__.iteritems()]
8174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8175
 
8176
  def __eq__(self, other):
8177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8178
 
8179
  def __ne__(self, other):
8180
    return not (self == other)
8181
 
8182
class getAffiliateById_args:
8183
  """
8184
  Attributes:
8185
   - id
8186
  """
8187
 
8188
  thrift_spec = (
8189
    None, # 0
8190
    (1, TType.I64, 'id', None, None, ), # 1
8191
  )
8192
 
8193
  def __init__(self, id=None,):
8194
    self.id = id
8195
 
8196
  def read(self, iprot):
8197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8199
      return
8200
    iprot.readStructBegin()
8201
    while True:
8202
      (fname, ftype, fid) = iprot.readFieldBegin()
8203
      if ftype == TType.STOP:
8204
        break
8205
      if fid == 1:
8206
        if ftype == TType.I64:
8207
          self.id = iprot.readI64();
8208
        else:
8209
          iprot.skip(ftype)
8210
      else:
8211
        iprot.skip(ftype)
8212
      iprot.readFieldEnd()
8213
    iprot.readStructEnd()
8214
 
8215
  def write(self, oprot):
8216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8218
      return
8219
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8220
    if self.id is not None:
1845 vikas 8221
      oprot.writeFieldBegin('id', TType.I64, 1)
8222
      oprot.writeI64(self.id)
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 getAffiliateById_result:
8243
  """
8244
  Attributes:
8245
   - success
8246
   - utx
8247
  """
8248
 
8249
  thrift_spec = (
8250
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8251
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8252
  )
8253
 
8254
  def __init__(self, success=None, utx=None,):
8255
    self.success = success
8256
    self.utx = utx
8257
 
8258
  def read(self, iprot):
8259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8261
      return
8262
    iprot.readStructBegin()
8263
    while True:
8264
      (fname, ftype, fid) = iprot.readFieldBegin()
8265
      if ftype == TType.STOP:
8266
        break
8267
      if fid == 0:
8268
        if ftype == TType.STRUCT:
8269
          self.success = Affiliate()
8270
          self.success.read(iprot)
8271
        else:
8272
          iprot.skip(ftype)
8273
      elif fid == 1:
8274
        if ftype == TType.STRUCT:
1996 vikas 8275
          self.utx = UserAffiliateException()
1845 vikas 8276
          self.utx.read(iprot)
8277
        else:
8278
          iprot.skip(ftype)
8279
      else:
8280
        iprot.skip(ftype)
8281
      iprot.readFieldEnd()
8282
    iprot.readStructEnd()
8283
 
8284
  def write(self, oprot):
8285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8287
      return
8288
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8289
    if self.success is not None:
1845 vikas 8290
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8291
      self.success.write(oprot)
8292
      oprot.writeFieldEnd()
3431 rajveer 8293
    if self.utx is not None:
1845 vikas 8294
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8295
      self.utx.write(oprot)
8296
      oprot.writeFieldEnd()
8297
    oprot.writeFieldStop()
8298
    oprot.writeStructEnd()
8299
 
3431 rajveer 8300
  def validate(self):
8301
    return
8302
 
8303
 
1845 vikas 8304
  def __repr__(self):
8305
    L = ['%s=%r' % (key, value)
8306
      for key, value in self.__dict__.iteritems()]
8307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8308
 
8309
  def __eq__(self, other):
8310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8311
 
8312
  def __ne__(self, other):
8313
    return not (self == other)
8314
 
8315
class getAffiliateByName_args:
8316
  """
8317
  Attributes:
8318
   - name
8319
  """
8320
 
8321
  thrift_spec = (
8322
    None, # 0
8323
    (1, TType.STRING, 'name', None, None, ), # 1
8324
  )
8325
 
8326
  def __init__(self, name=None,):
8327
    self.name = name
8328
 
8329
  def read(self, iprot):
8330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8332
      return
8333
    iprot.readStructBegin()
8334
    while True:
8335
      (fname, ftype, fid) = iprot.readFieldBegin()
8336
      if ftype == TType.STOP:
8337
        break
8338
      if fid == 1:
8339
        if ftype == TType.STRING:
8340
          self.name = iprot.readString();
8341
        else:
8342
          iprot.skip(ftype)
8343
      else:
8344
        iprot.skip(ftype)
8345
      iprot.readFieldEnd()
8346
    iprot.readStructEnd()
8347
 
8348
  def write(self, oprot):
8349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8351
      return
8352
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8353
    if self.name is not None:
1845 vikas 8354
      oprot.writeFieldBegin('name', TType.STRING, 1)
8355
      oprot.writeString(self.name)
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
 
8375
class getAffiliateByName_result:
8376
  """
8377
  Attributes:
8378
   - success
8379
   - utx
8380
  """
8381
 
8382
  thrift_spec = (
8383
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8384
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8385
  )
8386
 
8387
  def __init__(self, success=None, utx=None,):
8388
    self.success = success
8389
    self.utx = utx
8390
 
8391
  def read(self, iprot):
8392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8394
      return
8395
    iprot.readStructBegin()
8396
    while True:
8397
      (fname, ftype, fid) = iprot.readFieldBegin()
8398
      if ftype == TType.STOP:
8399
        break
8400
      if fid == 0:
8401
        if ftype == TType.STRUCT:
8402
          self.success = Affiliate()
8403
          self.success.read(iprot)
8404
        else:
8405
          iprot.skip(ftype)
8406
      elif fid == 1:
8407
        if ftype == TType.STRUCT:
1996 vikas 8408
          self.utx = UserAffiliateException()
1845 vikas 8409
          self.utx.read(iprot)
8410
        else:
8411
          iprot.skip(ftype)
8412
      else:
8413
        iprot.skip(ftype)
8414
      iprot.readFieldEnd()
8415
    iprot.readStructEnd()
8416
 
8417
  def write(self, oprot):
8418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8420
      return
8421
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8422
    if self.success is not None:
1845 vikas 8423
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8424
      self.success.write(oprot)
8425
      oprot.writeFieldEnd()
3431 rajveer 8426
    if self.utx is not None:
1845 vikas 8427
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8428
      self.utx.write(oprot)
8429
      oprot.writeFieldEnd()
8430
    oprot.writeFieldStop()
8431
    oprot.writeStructEnd()
8432
 
3431 rajveer 8433
  def validate(self):
8434
    return
8435
 
8436
 
1845 vikas 8437
  def __repr__(self):
8438
    L = ['%s=%r' % (key, value)
8439
      for key, value in self.__dict__.iteritems()]
8440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8441
 
8442
  def __eq__(self, other):
8443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8444
 
8445
  def __ne__(self, other):
8446
    return not (self == other)
8447
 
1996 vikas 8448
class getTrackerById_args:
1845 vikas 8449
  """
8450
  Attributes:
8451
   - id
8452
  """
8453
 
8454
  thrift_spec = (
8455
    None, # 0
8456
    (1, TType.I64, 'id', None, None, ), # 1
8457
  )
8458
 
8459
  def __init__(self, id=None,):
8460
    self.id = id
8461
 
8462
  def read(self, iprot):
8463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8465
      return
8466
    iprot.readStructBegin()
8467
    while True:
8468
      (fname, ftype, fid) = iprot.readFieldBegin()
8469
      if ftype == TType.STOP:
8470
        break
8471
      if fid == 1:
8472
        if ftype == TType.I64:
8473
          self.id = iprot.readI64();
8474
        else:
8475
          iprot.skip(ftype)
8476
      else:
8477
        iprot.skip(ftype)
8478
      iprot.readFieldEnd()
8479
    iprot.readStructEnd()
8480
 
8481
  def write(self, oprot):
8482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8484
      return
1996 vikas 8485
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8486
    if self.id is not None:
1845 vikas 8487
      oprot.writeFieldBegin('id', TType.I64, 1)
8488
      oprot.writeI64(self.id)
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
 
8508
class getTrackerById_result:
8509
  """
8510
  Attributes:
8511
   - success
8512
   - utx
8513
  """
8514
 
8515
  thrift_spec = (
8516
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8517
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8518
  )
8519
 
8520
  def __init__(self, success=None, utx=None,):
8521
    self.success = success
8522
    self.utx = utx
8523
 
8524
  def read(self, iprot):
8525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8527
      return
8528
    iprot.readStructBegin()
8529
    while True:
8530
      (fname, ftype, fid) = iprot.readFieldBegin()
8531
      if ftype == TType.STOP:
8532
        break
8533
      if fid == 0:
8534
        if ftype == TType.STRUCT:
8535
          self.success = Tracker()
8536
          self.success.read(iprot)
8537
        else:
8538
          iprot.skip(ftype)
8539
      elif fid == 1:
8540
        if ftype == TType.STRUCT:
1996 vikas 8541
          self.utx = UserAffiliateException()
1845 vikas 8542
          self.utx.read(iprot)
8543
        else:
8544
          iprot.skip(ftype)
8545
      else:
8546
        iprot.skip(ftype)
8547
      iprot.readFieldEnd()
8548
    iprot.readStructEnd()
8549
 
8550
  def write(self, oprot):
8551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8553
      return
8554
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8555
    if self.success is not None:
1845 vikas 8556
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8557
      self.success.write(oprot)
8558
      oprot.writeFieldEnd()
3431 rajveer 8559
    if self.utx is not None:
1845 vikas 8560
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8561
      self.utx.write(oprot)
8562
      oprot.writeFieldEnd()
8563
    oprot.writeFieldStop()
8564
    oprot.writeStructEnd()
8565
 
3431 rajveer 8566
  def validate(self):
8567
    return
8568
 
8569
 
1845 vikas 8570
  def __repr__(self):
8571
    L = ['%s=%r' % (key, value)
8572
      for key, value in self.__dict__.iteritems()]
8573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8574
 
8575
  def __eq__(self, other):
8576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8577
 
8578
  def __ne__(self, other):
8579
    return not (self == other)
8580
 
1996 vikas 8581
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8582
  """
8583
  Attributes:
1996 vikas 8584
   - id
1845 vikas 8585
  """
8586
 
8587
  thrift_spec = (
8588
    None, # 0
1996 vikas 8589
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8590
  )
8591
 
1996 vikas 8592
  def __init__(self, id=None,):
8593
    self.id = id
1845 vikas 8594
 
8595
  def read(self, iprot):
8596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8598
      return
8599
    iprot.readStructBegin()
8600
    while True:
8601
      (fname, ftype, fid) = iprot.readFieldBegin()
8602
      if ftype == TType.STOP:
8603
        break
8604
      if fid == 1:
8605
        if ftype == TType.I64:
1996 vikas 8606
          self.id = iprot.readI64();
1845 vikas 8607
        else:
8608
          iprot.skip(ftype)
8609
      else:
8610
        iprot.skip(ftype)
8611
      iprot.readFieldEnd()
8612
    iprot.readStructEnd()
8613
 
8614
  def write(self, oprot):
8615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8617
      return
1996 vikas 8618
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8619
    if self.id is not None:
1996 vikas 8620
      oprot.writeFieldBegin('id', TType.I64, 1)
8621
      oprot.writeI64(self.id)
1845 vikas 8622
      oprot.writeFieldEnd()
8623
    oprot.writeFieldStop()
8624
    oprot.writeStructEnd()
8625
 
3431 rajveer 8626
  def validate(self):
8627
    return
8628
 
8629
 
1845 vikas 8630
  def __repr__(self):
8631
    L = ['%s=%r' % (key, value)
8632
      for key, value in self.__dict__.iteritems()]
8633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8634
 
8635
  def __eq__(self, other):
8636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8637
 
8638
  def __ne__(self, other):
8639
    return not (self == other)
8640
 
1996 vikas 8641
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8642
  """
8643
  Attributes:
8644
   - success
8645
   - utx
8646
  """
8647
 
8648
  thrift_spec = (
1996 vikas 8649
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8650
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8651
  )
8652
 
8653
  def __init__(self, success=None, utx=None,):
8654
    self.success = success
8655
    self.utx = utx
8656
 
8657
  def read(self, iprot):
8658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8660
      return
8661
    iprot.readStructBegin()
8662
    while True:
8663
      (fname, ftype, fid) = iprot.readFieldBegin()
8664
      if ftype == TType.STOP:
8665
        break
8666
      if fid == 0:
8667
        if ftype == TType.LIST:
8668
          self.success = []
3385 varun.gupt 8669
          (_etype66, _size63) = iprot.readListBegin()
8670
          for _i67 in xrange(_size63):
8671
            _elem68 = Affiliate()
8672
            _elem68.read(iprot)
8673
            self.success.append(_elem68)
1845 vikas 8674
          iprot.readListEnd()
8675
        else:
8676
          iprot.skip(ftype)
8677
      elif fid == 1:
8678
        if ftype == TType.STRUCT:
1996 vikas 8679
          self.utx = UserAffiliateException()
1845 vikas 8680
          self.utx.read(iprot)
8681
        else:
8682
          iprot.skip(ftype)
8683
      else:
8684
        iprot.skip(ftype)
8685
      iprot.readFieldEnd()
8686
    iprot.readStructEnd()
8687
 
8688
  def write(self, oprot):
8689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8691
      return
1996 vikas 8692
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8693
    if self.success is not None:
1845 vikas 8694
      oprot.writeFieldBegin('success', TType.LIST, 0)
8695
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 8696
      for iter69 in self.success:
8697
        iter69.write(oprot)
1845 vikas 8698
      oprot.writeListEnd()
8699
      oprot.writeFieldEnd()
3431 rajveer 8700
    if self.utx is not None:
1845 vikas 8701
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8702
      self.utx.write(oprot)
8703
      oprot.writeFieldEnd()
8704
    oprot.writeFieldStop()
8705
    oprot.writeStructEnd()
8706
 
3431 rajveer 8707
  def validate(self):
8708
    return
8709
 
8710
 
1845 vikas 8711
  def __repr__(self):
8712
    L = ['%s=%r' % (key, value)
8713
      for key, value in self.__dict__.iteritems()]
8714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8715
 
8716
  def __eq__(self, other):
8717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8718
 
8719
  def __ne__(self, other):
8720
    return not (self == other)
8721
 
8722
class addTrackLog_args:
8723
  """
8724
  Attributes:
1996 vikas 8725
   - affiliateId
1845 vikas 8726
   - userId
8727
   - event
8728
   - url
8729
   - data
1859 vikas 8730
   - addedOn
1845 vikas 8731
  """
8732
 
8733
  thrift_spec = (
8734
    None, # 0
1996 vikas 8735
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8736
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8737
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8738
    (4, TType.STRING, 'url', None, None, ), # 4
8739
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8740
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8741
  )
8742
 
1996 vikas 8743
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8744
    self.affiliateId = affiliateId
1845 vikas 8745
    self.userId = userId
8746
    self.event = event
8747
    self.url = url
8748
    self.data = data
1859 vikas 8749
    self.addedOn = addedOn
1845 vikas 8750
 
8751
  def read(self, iprot):
8752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8754
      return
8755
    iprot.readStructBegin()
8756
    while True:
8757
      (fname, ftype, fid) = iprot.readFieldBegin()
8758
      if ftype == TType.STOP:
8759
        break
8760
      if fid == 1:
8761
        if ftype == TType.I64:
1996 vikas 8762
          self.affiliateId = iprot.readI64();
1845 vikas 8763
        else:
8764
          iprot.skip(ftype)
8765
      elif fid == 2:
8766
        if ftype == TType.I64:
8767
          self.userId = iprot.readI64();
8768
        else:
8769
          iprot.skip(ftype)
8770
      elif fid == 3:
3378 vikas 8771
        if ftype == TType.I32:
8772
          self.event = iprot.readI32();
1845 vikas 8773
        else:
8774
          iprot.skip(ftype)
8775
      elif fid == 4:
8776
        if ftype == TType.STRING:
8777
          self.url = iprot.readString();
8778
        else:
8779
          iprot.skip(ftype)
8780
      elif fid == 5:
8781
        if ftype == TType.STRING:
8782
          self.data = iprot.readString();
8783
        else:
8784
          iprot.skip(ftype)
1859 vikas 8785
      elif fid == 6:
8786
        if ftype == TType.I64:
8787
          self.addedOn = iprot.readI64();
8788
        else:
8789
          iprot.skip(ftype)
1845 vikas 8790
      else:
8791
        iprot.skip(ftype)
8792
      iprot.readFieldEnd()
8793
    iprot.readStructEnd()
8794
 
8795
  def write(self, oprot):
8796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8798
      return
8799
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8800
    if self.affiliateId is not None:
1996 vikas 8801
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8802
      oprot.writeI64(self.affiliateId)
1845 vikas 8803
      oprot.writeFieldEnd()
3431 rajveer 8804
    if self.userId is not None:
1845 vikas 8805
      oprot.writeFieldBegin('userId', TType.I64, 2)
8806
      oprot.writeI64(self.userId)
8807
      oprot.writeFieldEnd()
3431 rajveer 8808
    if self.event is not None:
3378 vikas 8809
      oprot.writeFieldBegin('event', TType.I32, 3)
8810
      oprot.writeI32(self.event)
1845 vikas 8811
      oprot.writeFieldEnd()
3431 rajveer 8812
    if self.url is not None:
1845 vikas 8813
      oprot.writeFieldBegin('url', TType.STRING, 4)
8814
      oprot.writeString(self.url)
8815
      oprot.writeFieldEnd()
3431 rajveer 8816
    if self.data is not None:
1845 vikas 8817
      oprot.writeFieldBegin('data', TType.STRING, 5)
8818
      oprot.writeString(self.data)
8819
      oprot.writeFieldEnd()
3431 rajveer 8820
    if self.addedOn is not None:
1859 vikas 8821
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8822
      oprot.writeI64(self.addedOn)
8823
      oprot.writeFieldEnd()
1845 vikas 8824
    oprot.writeFieldStop()
8825
    oprot.writeStructEnd()
8826
 
3431 rajveer 8827
  def validate(self):
8828
    return
8829
 
8830
 
1845 vikas 8831
  def __repr__(self):
8832
    L = ['%s=%r' % (key, value)
8833
      for key, value in self.__dict__.iteritems()]
8834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8835
 
8836
  def __eq__(self, other):
8837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8838
 
8839
  def __ne__(self, other):
8840
    return not (self == other)
8841
 
8842
class addTrackLog_result:
8843
  """
8844
  Attributes:
8845
   - success
8846
   - utx
8847
  """
8848
 
8849
  thrift_spec = (
8850
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8851
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8852
  )
8853
 
8854
  def __init__(self, success=None, utx=None,):
8855
    self.success = success
8856
    self.utx = utx
8857
 
8858
  def read(self, iprot):
8859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8861
      return
8862
    iprot.readStructBegin()
8863
    while True:
8864
      (fname, ftype, fid) = iprot.readFieldBegin()
8865
      if ftype == TType.STOP:
8866
        break
8867
      if fid == 0:
8868
        if ftype == TType.I64:
8869
          self.success = iprot.readI64();
8870
        else:
8871
          iprot.skip(ftype)
8872
      elif fid == 1:
8873
        if ftype == TType.STRUCT:
1996 vikas 8874
          self.utx = UserAffiliateException()
1845 vikas 8875
          self.utx.read(iprot)
8876
        else:
8877
          iprot.skip(ftype)
8878
      else:
8879
        iprot.skip(ftype)
8880
      iprot.readFieldEnd()
8881
    iprot.readStructEnd()
8882
 
8883
  def write(self, oprot):
8884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8886
      return
8887
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8888
    if self.success is not None:
1845 vikas 8889
      oprot.writeFieldBegin('success', TType.I64, 0)
8890
      oprot.writeI64(self.success)
8891
      oprot.writeFieldEnd()
3431 rajveer 8892
    if self.utx is not None:
1845 vikas 8893
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8894
      self.utx.write(oprot)
8895
      oprot.writeFieldEnd()
8896
    oprot.writeFieldStop()
8897
    oprot.writeStructEnd()
8898
 
3431 rajveer 8899
  def validate(self):
8900
    return
8901
 
8902
 
1845 vikas 8903
  def __repr__(self):
8904
    L = ['%s=%r' % (key, value)
8905
      for key, value in self.__dict__.iteritems()]
8906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8907
 
8908
  def __eq__(self, other):
8909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8910
 
8911
  def __ne__(self, other):
8912
    return not (self == other)
8913
 
8914
class getTrackLogById_args:
8915
  """
8916
  Attributes:
8917
   - id
8918
  """
8919
 
8920
  thrift_spec = (
8921
    None, # 0
8922
    (1, TType.I64, 'id', None, None, ), # 1
8923
  )
8924
 
8925
  def __init__(self, id=None,):
8926
    self.id = id
8927
 
8928
  def read(self, iprot):
8929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8931
      return
8932
    iprot.readStructBegin()
8933
    while True:
8934
      (fname, ftype, fid) = iprot.readFieldBegin()
8935
      if ftype == TType.STOP:
8936
        break
8937
      if fid == 1:
8938
        if ftype == TType.I64:
8939
          self.id = iprot.readI64();
8940
        else:
8941
          iprot.skip(ftype)
8942
      else:
8943
        iprot.skip(ftype)
8944
      iprot.readFieldEnd()
8945
    iprot.readStructEnd()
8946
 
8947
  def write(self, oprot):
8948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8950
      return
8951
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8952
    if self.id is not None:
1845 vikas 8953
      oprot.writeFieldBegin('id', TType.I64, 1)
8954
      oprot.writeI64(self.id)
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
 
8974
class getTrackLogById_result:
8975
  """
8976
  Attributes:
8977
   - success
8978
   - utx
8979
  """
8980
 
8981
  thrift_spec = (
8982
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8983
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8984
  )
8985
 
8986
  def __init__(self, success=None, utx=None,):
8987
    self.success = success
8988
    self.utx = utx
8989
 
8990
  def read(self, iprot):
8991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8993
      return
8994
    iprot.readStructBegin()
8995
    while True:
8996
      (fname, ftype, fid) = iprot.readFieldBegin()
8997
      if ftype == TType.STOP:
8998
        break
8999
      if fid == 0:
9000
        if ftype == TType.STRUCT:
9001
          self.success = TrackLog()
9002
          self.success.read(iprot)
9003
        else:
9004
          iprot.skip(ftype)
9005
      elif fid == 1:
9006
        if ftype == TType.STRUCT:
1996 vikas 9007
          self.utx = UserAffiliateException()
1845 vikas 9008
          self.utx.read(iprot)
9009
        else:
9010
          iprot.skip(ftype)
9011
      else:
9012
        iprot.skip(ftype)
9013
      iprot.readFieldEnd()
9014
    iprot.readStructEnd()
9015
 
9016
  def write(self, oprot):
9017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9019
      return
9020
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9021
    if self.success is not None:
1845 vikas 9022
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9023
      self.success.write(oprot)
9024
      oprot.writeFieldEnd()
3431 rajveer 9025
    if self.utx is not None:
1845 vikas 9026
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9027
      self.utx.write(oprot)
9028
      oprot.writeFieldEnd()
9029
    oprot.writeFieldStop()
9030
    oprot.writeStructEnd()
9031
 
3431 rajveer 9032
  def validate(self):
9033
    return
9034
 
9035
 
1845 vikas 9036
  def __repr__(self):
9037
    L = ['%s=%r' % (key, value)
9038
      for key, value in self.__dict__.iteritems()]
9039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9040
 
9041
  def __eq__(self, other):
9042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9043
 
9044
  def __ne__(self, other):
9045
    return not (self == other)
9046
 
1996 vikas 9047
class getTrackLogsByAffiliate_args:
1845 vikas 9048
  """
9049
  Attributes:
1996 vikas 9050
   - affiliateId
3293 vikas 9051
   - startDate
9052
   - endDate
1845 vikas 9053
  """
9054
 
9055
  thrift_spec = (
9056
    None, # 0
1996 vikas 9057
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9058
    (2, TType.I64, 'startDate', None, None, ), # 2
9059
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9060
  )
9061
 
3293 vikas 9062
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9063
    self.affiliateId = affiliateId
3293 vikas 9064
    self.startDate = startDate
9065
    self.endDate = endDate
1845 vikas 9066
 
9067
  def read(self, iprot):
9068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9070
      return
9071
    iprot.readStructBegin()
9072
    while True:
9073
      (fname, ftype, fid) = iprot.readFieldBegin()
9074
      if ftype == TType.STOP:
9075
        break
9076
      if fid == 1:
9077
        if ftype == TType.I64:
1996 vikas 9078
          self.affiliateId = iprot.readI64();
1845 vikas 9079
        else:
9080
          iprot.skip(ftype)
3293 vikas 9081
      elif fid == 2:
9082
        if ftype == TType.I64:
9083
          self.startDate = iprot.readI64();
9084
        else:
9085
          iprot.skip(ftype)
9086
      elif fid == 3:
9087
        if ftype == TType.I64:
9088
          self.endDate = iprot.readI64();
9089
        else:
9090
          iprot.skip(ftype)
1845 vikas 9091
      else:
9092
        iprot.skip(ftype)
9093
      iprot.readFieldEnd()
9094
    iprot.readStructEnd()
9095
 
9096
  def write(self, oprot):
9097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9099
      return
1996 vikas 9100
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9101
    if self.affiliateId is not None:
1996 vikas 9102
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9103
      oprot.writeI64(self.affiliateId)
1845 vikas 9104
      oprot.writeFieldEnd()
3431 rajveer 9105
    if self.startDate is not None:
3293 vikas 9106
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9107
      oprot.writeI64(self.startDate)
9108
      oprot.writeFieldEnd()
3431 rajveer 9109
    if self.endDate is not None:
3293 vikas 9110
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9111
      oprot.writeI64(self.endDate)
9112
      oprot.writeFieldEnd()
1845 vikas 9113
    oprot.writeFieldStop()
9114
    oprot.writeStructEnd()
9115
 
3431 rajveer 9116
  def validate(self):
9117
    return
9118
 
9119
 
1845 vikas 9120
  def __repr__(self):
9121
    L = ['%s=%r' % (key, value)
9122
      for key, value in self.__dict__.iteritems()]
9123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9124
 
9125
  def __eq__(self, other):
9126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9127
 
9128
  def __ne__(self, other):
9129
    return not (self == other)
9130
 
1996 vikas 9131
class getTrackLogsByAffiliate_result:
1845 vikas 9132
  """
9133
  Attributes:
9134
   - success
9135
   - utx
9136
  """
9137
 
9138
  thrift_spec = (
9139
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9140
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9141
  )
9142
 
9143
  def __init__(self, success=None, utx=None,):
9144
    self.success = success
9145
    self.utx = utx
9146
 
9147
  def read(self, iprot):
9148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9150
      return
9151
    iprot.readStructBegin()
9152
    while True:
9153
      (fname, ftype, fid) = iprot.readFieldBegin()
9154
      if ftype == TType.STOP:
9155
        break
9156
      if fid == 0:
9157
        if ftype == TType.LIST:
9158
          self.success = []
3385 varun.gupt 9159
          (_etype73, _size70) = iprot.readListBegin()
9160
          for _i74 in xrange(_size70):
9161
            _elem75 = TrackLog()
9162
            _elem75.read(iprot)
9163
            self.success.append(_elem75)
1845 vikas 9164
          iprot.readListEnd()
9165
        else:
9166
          iprot.skip(ftype)
9167
      elif fid == 1:
9168
        if ftype == TType.STRUCT:
1996 vikas 9169
          self.utx = UserAffiliateException()
1845 vikas 9170
          self.utx.read(iprot)
9171
        else:
9172
          iprot.skip(ftype)
9173
      else:
9174
        iprot.skip(ftype)
9175
      iprot.readFieldEnd()
9176
    iprot.readStructEnd()
9177
 
9178
  def write(self, oprot):
9179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9181
      return
1996 vikas 9182
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9183
    if self.success is not None:
1845 vikas 9184
      oprot.writeFieldBegin('success', TType.LIST, 0)
9185
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9186
      for iter76 in self.success:
9187
        iter76.write(oprot)
1845 vikas 9188
      oprot.writeListEnd()
9189
      oprot.writeFieldEnd()
3431 rajveer 9190
    if self.utx is not None:
1845 vikas 9191
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9192
      self.utx.write(oprot)
9193
      oprot.writeFieldEnd()
9194
    oprot.writeFieldStop()
9195
    oprot.writeStructEnd()
9196
 
3431 rajveer 9197
  def validate(self):
9198
    return
9199
 
9200
 
1845 vikas 9201
  def __repr__(self):
9202
    L = ['%s=%r' % (key, value)
9203
      for key, value in self.__dict__.iteritems()]
9204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9205
 
9206
  def __eq__(self, other):
9207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9208
 
9209
  def __ne__(self, other):
9210
    return not (self == other)
9211
 
9212
class getTrackLogsByUser_args:
9213
  """
9214
  Attributes:
9215
   - userId
9216
  """
9217
 
9218
  thrift_spec = (
9219
    None, # 0
9220
    (1, TType.I64, 'userId', None, None, ), # 1
9221
  )
9222
 
9223
  def __init__(self, userId=None,):
9224
    self.userId = userId
9225
 
9226
  def read(self, iprot):
9227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9229
      return
9230
    iprot.readStructBegin()
9231
    while True:
9232
      (fname, ftype, fid) = iprot.readFieldBegin()
9233
      if ftype == TType.STOP:
9234
        break
9235
      if fid == 1:
9236
        if ftype == TType.I64:
9237
          self.userId = iprot.readI64();
9238
        else:
9239
          iprot.skip(ftype)
9240
      else:
9241
        iprot.skip(ftype)
9242
      iprot.readFieldEnd()
9243
    iprot.readStructEnd()
9244
 
9245
  def write(self, oprot):
9246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9248
      return
9249
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9250
    if self.userId is not None:
1845 vikas 9251
      oprot.writeFieldBegin('userId', TType.I64, 1)
9252
      oprot.writeI64(self.userId)
9253
      oprot.writeFieldEnd()
9254
    oprot.writeFieldStop()
9255
    oprot.writeStructEnd()
9256
 
3431 rajveer 9257
  def validate(self):
9258
    return
9259
 
9260
 
1845 vikas 9261
  def __repr__(self):
9262
    L = ['%s=%r' % (key, value)
9263
      for key, value in self.__dict__.iteritems()]
9264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9265
 
9266
  def __eq__(self, other):
9267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9268
 
9269
  def __ne__(self, other):
9270
    return not (self == other)
9271
 
9272
class getTrackLogsByUser_result:
9273
  """
9274
  Attributes:
9275
   - success
9276
   - utx
9277
  """
9278
 
9279
  thrift_spec = (
9280
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9281
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9282
  )
9283
 
9284
  def __init__(self, success=None, utx=None,):
9285
    self.success = success
9286
    self.utx = utx
9287
 
9288
  def read(self, iprot):
9289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9291
      return
9292
    iprot.readStructBegin()
9293
    while True:
9294
      (fname, ftype, fid) = iprot.readFieldBegin()
9295
      if ftype == TType.STOP:
9296
        break
9297
      if fid == 0:
9298
        if ftype == TType.LIST:
9299
          self.success = []
3385 varun.gupt 9300
          (_etype80, _size77) = iprot.readListBegin()
9301
          for _i81 in xrange(_size77):
9302
            _elem82 = TrackLog()
9303
            _elem82.read(iprot)
9304
            self.success.append(_elem82)
1845 vikas 9305
          iprot.readListEnd()
9306
        else:
9307
          iprot.skip(ftype)
9308
      elif fid == 1:
9309
        if ftype == TType.STRUCT:
1996 vikas 9310
          self.utx = UserAffiliateException()
1845 vikas 9311
          self.utx.read(iprot)
9312
        else:
9313
          iprot.skip(ftype)
9314
      else:
9315
        iprot.skip(ftype)
9316
      iprot.readFieldEnd()
9317
    iprot.readStructEnd()
9318
 
9319
  def write(self, oprot):
9320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9322
      return
9323
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9324
    if self.success is not None:
1845 vikas 9325
      oprot.writeFieldBegin('success', TType.LIST, 0)
9326
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9327
      for iter83 in self.success:
9328
        iter83.write(oprot)
1845 vikas 9329
      oprot.writeListEnd()
9330
      oprot.writeFieldEnd()
3431 rajveer 9331
    if self.utx is not None:
1845 vikas 9332
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9333
      self.utx.write(oprot)
9334
      oprot.writeFieldEnd()
9335
    oprot.writeFieldStop()
9336
    oprot.writeStructEnd()
9337
 
3431 rajveer 9338
  def validate(self):
9339
    return
9340
 
9341
 
1845 vikas 9342
  def __repr__(self):
9343
    L = ['%s=%r' % (key, value)
9344
      for key, value in self.__dict__.iteritems()]
9345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9346
 
9347
  def __eq__(self, other):
9348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9349
 
9350
  def __ne__(self, other):
9351
    return not (self == other)
9352
 
9353
class getTrackLogs_args:
9354
  """
9355
  Attributes:
9356
   - userId
9357
   - event
9358
   - url
9359
  """
9360
 
9361
  thrift_spec = (
9362
    None, # 0
1996 vikas 9363
    (1, TType.I64, 'userId', None, None, ), # 1
9364
    (2, TType.STRING, 'event', None, None, ), # 2
9365
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9366
  )
9367
 
1996 vikas 9368
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9369
    self.userId = userId
9370
    self.event = event
9371
    self.url = url
9372
 
9373
  def read(self, iprot):
9374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9376
      return
9377
    iprot.readStructBegin()
9378
    while True:
9379
      (fname, ftype, fid) = iprot.readFieldBegin()
9380
      if ftype == TType.STOP:
9381
        break
9382
      if fid == 1:
9383
        if ftype == TType.I64:
1996 vikas 9384
          self.userId = iprot.readI64();
1845 vikas 9385
        else:
9386
          iprot.skip(ftype)
9387
      elif fid == 2:
9388
        if ftype == TType.STRING:
9389
          self.event = iprot.readString();
9390
        else:
9391
          iprot.skip(ftype)
1996 vikas 9392
      elif fid == 3:
1845 vikas 9393
        if ftype == TType.STRING:
9394
          self.url = iprot.readString();
9395
        else:
9396
          iprot.skip(ftype)
9397
      else:
9398
        iprot.skip(ftype)
9399
      iprot.readFieldEnd()
9400
    iprot.readStructEnd()
9401
 
9402
  def write(self, oprot):
9403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9405
      return
9406
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9407
    if self.userId is not None:
1996 vikas 9408
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9409
      oprot.writeI64(self.userId)
9410
      oprot.writeFieldEnd()
3431 rajveer 9411
    if self.event is not None:
1996 vikas 9412
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9413
      oprot.writeString(self.event)
9414
      oprot.writeFieldEnd()
3431 rajveer 9415
    if self.url is not None:
1996 vikas 9416
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9417
      oprot.writeString(self.url)
9418
      oprot.writeFieldEnd()
9419
    oprot.writeFieldStop()
9420
    oprot.writeStructEnd()
9421
 
3431 rajveer 9422
  def validate(self):
9423
    return
9424
 
9425
 
1845 vikas 9426
  def __repr__(self):
9427
    L = ['%s=%r' % (key, value)
9428
      for key, value in self.__dict__.iteritems()]
9429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9430
 
9431
  def __eq__(self, other):
9432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9433
 
9434
  def __ne__(self, other):
9435
    return not (self == other)
9436
 
9437
class getTrackLogs_result:
9438
  """
9439
  Attributes:
9440
   - success
9441
   - utx
9442
  """
9443
 
9444
  thrift_spec = (
9445
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9446
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9447
  )
9448
 
9449
  def __init__(self, success=None, utx=None,):
9450
    self.success = success
9451
    self.utx = utx
9452
 
9453
  def read(self, iprot):
9454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9456
      return
9457
    iprot.readStructBegin()
9458
    while True:
9459
      (fname, ftype, fid) = iprot.readFieldBegin()
9460
      if ftype == TType.STOP:
9461
        break
9462
      if fid == 0:
9463
        if ftype == TType.LIST:
9464
          self.success = []
3385 varun.gupt 9465
          (_etype87, _size84) = iprot.readListBegin()
9466
          for _i88 in xrange(_size84):
9467
            _elem89 = TrackLog()
9468
            _elem89.read(iprot)
9469
            self.success.append(_elem89)
1845 vikas 9470
          iprot.readListEnd()
9471
        else:
9472
          iprot.skip(ftype)
9473
      elif fid == 1:
9474
        if ftype == TType.STRUCT:
1996 vikas 9475
          self.utx = UserAffiliateException()
1845 vikas 9476
          self.utx.read(iprot)
9477
        else:
9478
          iprot.skip(ftype)
9479
      else:
9480
        iprot.skip(ftype)
9481
      iprot.readFieldEnd()
9482
    iprot.readStructEnd()
9483
 
9484
  def write(self, oprot):
9485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9487
      return
9488
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9489
    if self.success is not None:
1845 vikas 9490
      oprot.writeFieldBegin('success', TType.LIST, 0)
9491
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9492
      for iter90 in self.success:
9493
        iter90.write(oprot)
1845 vikas 9494
      oprot.writeListEnd()
9495
      oprot.writeFieldEnd()
3431 rajveer 9496
    if self.utx is not None:
1845 vikas 9497
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9498
      self.utx.write(oprot)
9499
      oprot.writeFieldEnd()
9500
    oprot.writeFieldStop()
9501
    oprot.writeStructEnd()
9502
 
3431 rajveer 9503
  def validate(self):
9504
    return
9505
 
9506
 
1845 vikas 9507
  def __repr__(self):
9508
    L = ['%s=%r' % (key, value)
9509
      for key, value in self.__dict__.iteritems()]
9510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9511
 
9512
  def __eq__(self, other):
9513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9514
 
9515
  def __ne__(self, other):
9516
    return not (self == other)
9517
 
559 chandransh 9518
class createCart_args:
94 ashish 9519
  """
9520
  Attributes:
559 chandransh 9521
   - userId
94 ashish 9522
  """
9523
 
9524
  thrift_spec = (
9525
    None, # 0
559 chandransh 9526
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9527
  )
9528
 
559 chandransh 9529
  def __init__(self, userId=None,):
9530
    self.userId = userId
94 ashish 9531
 
9532
  def read(self, iprot):
9533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9535
      return
9536
    iprot.readStructBegin()
9537
    while True:
9538
      (fname, ftype, fid) = iprot.readFieldBegin()
9539
      if ftype == TType.STOP:
9540
        break
9541
      if fid == 1:
9542
        if ftype == TType.I64:
559 chandransh 9543
          self.userId = iprot.readI64();
94 ashish 9544
        else:
9545
          iprot.skip(ftype)
559 chandransh 9546
      else:
9547
        iprot.skip(ftype)
9548
      iprot.readFieldEnd()
9549
    iprot.readStructEnd()
9550
 
9551
  def write(self, oprot):
9552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9554
      return
9555
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9556
    if self.userId is not None:
559 chandransh 9557
      oprot.writeFieldBegin('userId', TType.I64, 1)
9558
      oprot.writeI64(self.userId)
9559
      oprot.writeFieldEnd()
9560
    oprot.writeFieldStop()
9561
    oprot.writeStructEnd()
9562
 
3431 rajveer 9563
  def validate(self):
9564
    return
9565
 
9566
 
559 chandransh 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
 
9578
class createCart_result:
9579
  """
9580
  Attributes:
9581
   - success
9582
   - scx
9583
  """
9584
 
9585
  thrift_spec = (
9586
    (0, TType.I64, 'success', None, None, ), # 0
9587
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9588
  )
9589
 
9590
  def __init__(self, success=None, scx=None,):
9591
    self.success = success
9592
    self.scx = scx
9593
 
9594
  def read(self, iprot):
9595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9597
      return
9598
    iprot.readStructBegin()
9599
    while True:
9600
      (fname, ftype, fid) = iprot.readFieldBegin()
9601
      if ftype == TType.STOP:
9602
        break
9603
      if fid == 0:
94 ashish 9604
        if ftype == TType.I64:
559 chandransh 9605
          self.success = iprot.readI64();
94 ashish 9606
        else:
9607
          iprot.skip(ftype)
559 chandransh 9608
      elif fid == 1:
9609
        if ftype == TType.STRUCT:
9610
          self.scx = ShoppingCartException()
9611
          self.scx.read(iprot)
9612
        else:
9613
          iprot.skip(ftype)
94 ashish 9614
      else:
9615
        iprot.skip(ftype)
9616
      iprot.readFieldEnd()
9617
    iprot.readStructEnd()
9618
 
9619
  def write(self, oprot):
9620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9622
      return
559 chandransh 9623
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9624
    if self.success is not None:
559 chandransh 9625
      oprot.writeFieldBegin('success', TType.I64, 0)
9626
      oprot.writeI64(self.success)
94 ashish 9627
      oprot.writeFieldEnd()
3431 rajveer 9628
    if self.scx is not None:
559 chandransh 9629
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9630
      self.scx.write(oprot)
94 ashish 9631
      oprot.writeFieldEnd()
9632
    oprot.writeFieldStop()
9633
    oprot.writeStructEnd()
9634
 
3431 rajveer 9635
  def validate(self):
9636
    return
9637
 
9638
 
94 ashish 9639
  def __repr__(self):
9640
    L = ['%s=%r' % (key, value)
9641
      for key, value in self.__dict__.iteritems()]
9642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9643
 
9644
  def __eq__(self, other):
9645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9646
 
9647
  def __ne__(self, other):
9648
    return not (self == other)
9649
 
559 chandransh 9650
class getCurrentCart_args:
94 ashish 9651
  """
9652
  Attributes:
559 chandransh 9653
   - userId
9654
  """
9655
 
9656
  thrift_spec = (
9657
    None, # 0
9658
    (1, TType.I64, 'userId', None, None, ), # 1
9659
  )
9660
 
9661
  def __init__(self, userId=None,):
9662
    self.userId = userId
9663
 
9664
  def read(self, iprot):
9665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9667
      return
9668
    iprot.readStructBegin()
9669
    while True:
9670
      (fname, ftype, fid) = iprot.readFieldBegin()
9671
      if ftype == TType.STOP:
9672
        break
9673
      if fid == 1:
9674
        if ftype == TType.I64:
9675
          self.userId = iprot.readI64();
9676
        else:
9677
          iprot.skip(ftype)
9678
      else:
9679
        iprot.skip(ftype)
9680
      iprot.readFieldEnd()
9681
    iprot.readStructEnd()
9682
 
9683
  def write(self, oprot):
9684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9686
      return
9687
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9688
    if self.userId is not None:
559 chandransh 9689
      oprot.writeFieldBegin('userId', TType.I64, 1)
9690
      oprot.writeI64(self.userId)
9691
      oprot.writeFieldEnd()
9692
    oprot.writeFieldStop()
9693
    oprot.writeStructEnd()
9694
 
3431 rajveer 9695
  def validate(self):
9696
    return
9697
 
9698
 
559 chandransh 9699
  def __repr__(self):
9700
    L = ['%s=%r' % (key, value)
9701
      for key, value in self.__dict__.iteritems()]
9702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9703
 
9704
  def __eq__(self, other):
9705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9706
 
9707
  def __ne__(self, other):
9708
    return not (self == other)
9709
 
9710
class getCurrentCart_result:
9711
  """
9712
  Attributes:
94 ashish 9713
   - success
559 chandransh 9714
   - scx
94 ashish 9715
  """
9716
 
9717
  thrift_spec = (
559 chandransh 9718
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9719
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9720
  )
9721
 
559 chandransh 9722
  def __init__(self, success=None, scx=None,):
94 ashish 9723
    self.success = success
559 chandransh 9724
    self.scx = scx
94 ashish 9725
 
9726
  def read(self, iprot):
9727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9729
      return
9730
    iprot.readStructBegin()
9731
    while True:
9732
      (fname, ftype, fid) = iprot.readFieldBegin()
9733
      if ftype == TType.STOP:
9734
        break
9735
      if fid == 0:
559 chandransh 9736
        if ftype == TType.STRUCT:
9737
          self.success = Cart()
9738
          self.success.read(iprot)
94 ashish 9739
        else:
9740
          iprot.skip(ftype)
9741
      elif fid == 1:
9742
        if ftype == TType.STRUCT:
559 chandransh 9743
          self.scx = ShoppingCartException()
9744
          self.scx.read(iprot)
94 ashish 9745
        else:
9746
          iprot.skip(ftype)
9747
      else:
9748
        iprot.skip(ftype)
9749
      iprot.readFieldEnd()
9750
    iprot.readStructEnd()
9751
 
9752
  def write(self, oprot):
9753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9755
      return
559 chandransh 9756
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9757
    if self.success is not None:
559 chandransh 9758
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9759
      self.success.write(oprot)
94 ashish 9760
      oprot.writeFieldEnd()
3431 rajveer 9761
    if self.scx is not None:
559 chandransh 9762
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9763
      self.scx.write(oprot)
94 ashish 9764
      oprot.writeFieldEnd()
9765
    oprot.writeFieldStop()
9766
    oprot.writeStructEnd()
9767
 
3431 rajveer 9768
  def validate(self):
9769
    return
9770
 
9771
 
94 ashish 9772
  def __repr__(self):
9773
    L = ['%s=%r' % (key, value)
9774
      for key, value in self.__dict__.iteritems()]
9775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9776
 
9777
  def __eq__(self, other):
9778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9779
 
9780
  def __ne__(self, other):
9781
    return not (self == other)
9782
 
559 chandransh 9783
class getCart_args:
504 rajveer 9784
  """
9785
  Attributes:
559 chandransh 9786
   - cartId
504 rajveer 9787
  """
9788
 
9789
  thrift_spec = (
9790
    None, # 0
559 chandransh 9791
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9792
  )
9793
 
559 chandransh 9794
  def __init__(self, cartId=None,):
9795
    self.cartId = cartId
504 rajveer 9796
 
9797
  def read(self, iprot):
9798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9800
      return
9801
    iprot.readStructBegin()
9802
    while True:
9803
      (fname, ftype, fid) = iprot.readFieldBegin()
9804
      if ftype == TType.STOP:
9805
        break
9806
      if fid == 1:
9807
        if ftype == TType.I64:
559 chandransh 9808
          self.cartId = iprot.readI64();
504 rajveer 9809
        else:
9810
          iprot.skip(ftype)
9811
      else:
9812
        iprot.skip(ftype)
9813
      iprot.readFieldEnd()
9814
    iprot.readStructEnd()
9815
 
9816
  def write(self, oprot):
9817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9819
      return
559 chandransh 9820
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9821
    if self.cartId is not None:
559 chandransh 9822
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9823
      oprot.writeI64(self.cartId)
504 rajveer 9824
      oprot.writeFieldEnd()
9825
    oprot.writeFieldStop()
9826
    oprot.writeStructEnd()
9827
 
3431 rajveer 9828
  def validate(self):
9829
    return
9830
 
9831
 
504 rajveer 9832
  def __repr__(self):
9833
    L = ['%s=%r' % (key, value)
9834
      for key, value in self.__dict__.iteritems()]
9835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9836
 
9837
  def __eq__(self, other):
9838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9839
 
9840
  def __ne__(self, other):
9841
    return not (self == other)
9842
 
559 chandransh 9843
class getCart_result:
504 rajveer 9844
  """
9845
  Attributes:
9846
   - success
559 chandransh 9847
   - scx
504 rajveer 9848
  """
9849
 
9850
  thrift_spec = (
559 chandransh 9851
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9852
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9853
  )
9854
 
559 chandransh 9855
  def __init__(self, success=None, scx=None,):
504 rajveer 9856
    self.success = success
559 chandransh 9857
    self.scx = scx
504 rajveer 9858
 
9859
  def read(self, iprot):
9860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9862
      return
9863
    iprot.readStructBegin()
9864
    while True:
9865
      (fname, ftype, fid) = iprot.readFieldBegin()
9866
      if ftype == TType.STOP:
9867
        break
9868
      if fid == 0:
559 chandransh 9869
        if ftype == TType.STRUCT:
9870
          self.success = Cart()
9871
          self.success.read(iprot)
504 rajveer 9872
        else:
9873
          iprot.skip(ftype)
9874
      elif fid == 1:
9875
        if ftype == TType.STRUCT:
559 chandransh 9876
          self.scx = ShoppingCartException()
9877
          self.scx.read(iprot)
504 rajveer 9878
        else:
9879
          iprot.skip(ftype)
9880
      else:
9881
        iprot.skip(ftype)
9882
      iprot.readFieldEnd()
9883
    iprot.readStructEnd()
9884
 
9885
  def write(self, oprot):
9886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9888
      return
559 chandransh 9889
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9890
    if self.success is not None:
559 chandransh 9891
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9892
      self.success.write(oprot)
504 rajveer 9893
      oprot.writeFieldEnd()
3431 rajveer 9894
    if self.scx is not None:
559 chandransh 9895
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9896
      self.scx.write(oprot)
504 rajveer 9897
      oprot.writeFieldEnd()
9898
    oprot.writeFieldStop()
9899
    oprot.writeStructEnd()
9900
 
3431 rajveer 9901
  def validate(self):
9902
    return
9903
 
9904
 
504 rajveer 9905
  def __repr__(self):
9906
    L = ['%s=%r' % (key, value)
9907
      for key, value in self.__dict__.iteritems()]
9908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9909
 
9910
  def __eq__(self, other):
9911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9912
 
9913
  def __ne__(self, other):
9914
    return not (self == other)
9915
 
559 chandransh 9916
class getCartsForUser_args:
94 ashish 9917
  """
9918
  Attributes:
559 chandransh 9919
   - userId
9920
   - status
94 ashish 9921
  """
9922
 
9923
  thrift_spec = (
9924
    None, # 0
559 chandransh 9925
    (1, TType.I64, 'userId', None, None, ), # 1
9926
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 9927
  )
9928
 
559 chandransh 9929
  def __init__(self, userId=None, status=None,):
9930
    self.userId = userId
9931
    self.status = status
94 ashish 9932
 
9933
  def read(self, iprot):
9934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9936
      return
9937
    iprot.readStructBegin()
9938
    while True:
9939
      (fname, ftype, fid) = iprot.readFieldBegin()
9940
      if ftype == TType.STOP:
9941
        break
9942
      if fid == 1:
9943
        if ftype == TType.I64:
559 chandransh 9944
          self.userId = iprot.readI64();
94 ashish 9945
        else:
9946
          iprot.skip(ftype)
9947
      elif fid == 2:
559 chandransh 9948
        if ftype == TType.I32:
9949
          self.status = iprot.readI32();
94 ashish 9950
        else:
9951
          iprot.skip(ftype)
9952
      else:
9953
        iprot.skip(ftype)
9954
      iprot.readFieldEnd()
9955
    iprot.readStructEnd()
9956
 
9957
  def write(self, oprot):
9958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9960
      return
559 chandransh 9961
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 9962
    if self.userId is not None:
559 chandransh 9963
      oprot.writeFieldBegin('userId', TType.I64, 1)
9964
      oprot.writeI64(self.userId)
94 ashish 9965
      oprot.writeFieldEnd()
3431 rajveer 9966
    if self.status is not None:
559 chandransh 9967
      oprot.writeFieldBegin('status', TType.I32, 2)
9968
      oprot.writeI32(self.status)
94 ashish 9969
      oprot.writeFieldEnd()
9970
    oprot.writeFieldStop()
9971
    oprot.writeStructEnd()
9972
 
3431 rajveer 9973
  def validate(self):
9974
    return
9975
 
9976
 
94 ashish 9977
  def __repr__(self):
9978
    L = ['%s=%r' % (key, value)
9979
      for key, value in self.__dict__.iteritems()]
9980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9981
 
9982
  def __eq__(self, other):
9983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9984
 
9985
  def __ne__(self, other):
9986
    return not (self == other)
9987
 
559 chandransh 9988
class getCartsForUser_result:
94 ashish 9989
  """
9990
  Attributes:
9991
   - success
559 chandransh 9992
   - scx
94 ashish 9993
  """
9994
 
9995
  thrift_spec = (
559 chandransh 9996
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9997
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9998
  )
9999
 
559 chandransh 10000
  def __init__(self, success=None, scx=None,):
94 ashish 10001
    self.success = success
559 chandransh 10002
    self.scx = scx
94 ashish 10003
 
10004
  def read(self, iprot):
10005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10007
      return
10008
    iprot.readStructBegin()
10009
    while True:
10010
      (fname, ftype, fid) = iprot.readFieldBegin()
10011
      if ftype == TType.STOP:
10012
        break
10013
      if fid == 0:
559 chandransh 10014
        if ftype == TType.LIST:
10015
          self.success = []
3385 varun.gupt 10016
          (_etype94, _size91) = iprot.readListBegin()
10017
          for _i95 in xrange(_size91):
10018
            _elem96 = Cart()
10019
            _elem96.read(iprot)
10020
            self.success.append(_elem96)
559 chandransh 10021
          iprot.readListEnd()
94 ashish 10022
        else:
10023
          iprot.skip(ftype)
10024
      elif fid == 1:
10025
        if ftype == TType.STRUCT:
559 chandransh 10026
          self.scx = ShoppingCartException()
10027
          self.scx.read(iprot)
94 ashish 10028
        else:
10029
          iprot.skip(ftype)
10030
      else:
10031
        iprot.skip(ftype)
10032
      iprot.readFieldEnd()
10033
    iprot.readStructEnd()
10034
 
10035
  def write(self, oprot):
10036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10038
      return
559 chandransh 10039
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10040
    if self.success is not None:
559 chandransh 10041
      oprot.writeFieldBegin('success', TType.LIST, 0)
10042
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10043
      for iter97 in self.success:
10044
        iter97.write(oprot)
559 chandransh 10045
      oprot.writeListEnd()
94 ashish 10046
      oprot.writeFieldEnd()
3431 rajveer 10047
    if self.scx is not None:
559 chandransh 10048
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10049
      self.scx.write(oprot)
94 ashish 10050
      oprot.writeFieldEnd()
10051
    oprot.writeFieldStop()
10052
    oprot.writeStructEnd()
10053
 
3431 rajveer 10054
  def validate(self):
10055
    return
10056
 
10057
 
94 ashish 10058
  def __repr__(self):
10059
    L = ['%s=%r' % (key, value)
10060
      for key, value in self.__dict__.iteritems()]
10061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10062
 
10063
  def __eq__(self, other):
10064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10065
 
10066
  def __ne__(self, other):
10067
    return not (self == other)
10068
 
559 chandransh 10069
class getCartsByStatus_args:
94 ashish 10070
  """
10071
  Attributes:
559 chandransh 10072
   - status
94 ashish 10073
  """
10074
 
10075
  thrift_spec = (
10076
    None, # 0
559 chandransh 10077
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10078
  )
10079
 
559 chandransh 10080
  def __init__(self, status=None,):
10081
    self.status = status
94 ashish 10082
 
10083
  def read(self, iprot):
10084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10086
      return
10087
    iprot.readStructBegin()
10088
    while True:
10089
      (fname, ftype, fid) = iprot.readFieldBegin()
10090
      if ftype == TType.STOP:
10091
        break
10092
      if fid == 1:
559 chandransh 10093
        if ftype == TType.I32:
10094
          self.status = iprot.readI32();
10095
        else:
10096
          iprot.skip(ftype)
10097
      else:
10098
        iprot.skip(ftype)
10099
      iprot.readFieldEnd()
10100
    iprot.readStructEnd()
10101
 
10102
  def write(self, oprot):
10103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10105
      return
10106
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10107
    if self.status is not None:
559 chandransh 10108
      oprot.writeFieldBegin('status', TType.I32, 1)
10109
      oprot.writeI32(self.status)
10110
      oprot.writeFieldEnd()
10111
    oprot.writeFieldStop()
10112
    oprot.writeStructEnd()
10113
 
3431 rajveer 10114
  def validate(self):
10115
    return
10116
 
10117
 
559 chandransh 10118
  def __repr__(self):
10119
    L = ['%s=%r' % (key, value)
10120
      for key, value in self.__dict__.iteritems()]
10121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10122
 
10123
  def __eq__(self, other):
10124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10125
 
10126
  def __ne__(self, other):
10127
    return not (self == other)
10128
 
10129
class getCartsByStatus_result:
10130
  """
10131
  Attributes:
10132
   - success
10133
   - scx
10134
  """
10135
 
10136
  thrift_spec = (
10137
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10138
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10139
  )
10140
 
10141
  def __init__(self, success=None, scx=None,):
10142
    self.success = success
10143
    self.scx = scx
10144
 
10145
  def read(self, iprot):
10146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10148
      return
10149
    iprot.readStructBegin()
10150
    while True:
10151
      (fname, ftype, fid) = iprot.readFieldBegin()
10152
      if ftype == TType.STOP:
10153
        break
10154
      if fid == 0:
10155
        if ftype == TType.LIST:
10156
          self.success = []
3385 varun.gupt 10157
          (_etype101, _size98) = iprot.readListBegin()
10158
          for _i102 in xrange(_size98):
10159
            _elem103 = Cart()
10160
            _elem103.read(iprot)
10161
            self.success.append(_elem103)
559 chandransh 10162
          iprot.readListEnd()
10163
        else:
10164
          iprot.skip(ftype)
10165
      elif fid == 1:
10166
        if ftype == TType.STRUCT:
10167
          self.scx = ShoppingCartException()
10168
          self.scx.read(iprot)
10169
        else:
10170
          iprot.skip(ftype)
10171
      else:
10172
        iprot.skip(ftype)
10173
      iprot.readFieldEnd()
10174
    iprot.readStructEnd()
10175
 
10176
  def write(self, oprot):
10177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10179
      return
10180
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10181
    if self.success is not None:
559 chandransh 10182
      oprot.writeFieldBegin('success', TType.LIST, 0)
10183
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10184
      for iter104 in self.success:
10185
        iter104.write(oprot)
559 chandransh 10186
      oprot.writeListEnd()
10187
      oprot.writeFieldEnd()
3431 rajveer 10188
    if self.scx is not None:
559 chandransh 10189
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10190
      self.scx.write(oprot)
10191
      oprot.writeFieldEnd()
10192
    oprot.writeFieldStop()
10193
    oprot.writeStructEnd()
10194
 
3431 rajveer 10195
  def validate(self):
10196
    return
10197
 
10198
 
559 chandransh 10199
  def __repr__(self):
10200
    L = ['%s=%r' % (key, value)
10201
      for key, value in self.__dict__.iteritems()]
10202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10203
 
10204
  def __eq__(self, other):
10205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10206
 
10207
  def __ne__(self, other):
10208
    return not (self == other)
10209
 
10210
class getCartsByTime_args:
10211
  """
10212
  Attributes:
10213
   - from_time
10214
   - to_time
10215
   - status
10216
  """
10217
 
10218
  thrift_spec = (
10219
    None, # 0
10220
    (1, TType.I64, 'from_time', None, None, ), # 1
10221
    (2, TType.I64, 'to_time', None, None, ), # 2
10222
    (3, TType.I32, 'status', None, None, ), # 3
10223
  )
10224
 
10225
  def __init__(self, from_time=None, to_time=None, status=None,):
10226
    self.from_time = from_time
10227
    self.to_time = to_time
10228
    self.status = status
10229
 
10230
  def read(self, iprot):
10231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10233
      return
10234
    iprot.readStructBegin()
10235
    while True:
10236
      (fname, ftype, fid) = iprot.readFieldBegin()
10237
      if ftype == TType.STOP:
10238
        break
10239
      if fid == 1:
94 ashish 10240
        if ftype == TType.I64:
559 chandransh 10241
          self.from_time = iprot.readI64();
94 ashish 10242
        else:
10243
          iprot.skip(ftype)
122 ashish 10244
      elif fid == 2:
559 chandransh 10245
        if ftype == TType.I64:
10246
          self.to_time = iprot.readI64();
122 ashish 10247
        else:
10248
          iprot.skip(ftype)
559 chandransh 10249
      elif fid == 3:
10250
        if ftype == TType.I32:
10251
          self.status = iprot.readI32();
10252
        else:
10253
          iprot.skip(ftype)
94 ashish 10254
      else:
10255
        iprot.skip(ftype)
10256
      iprot.readFieldEnd()
10257
    iprot.readStructEnd()
10258
 
10259
  def write(self, oprot):
10260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10262
      return
559 chandransh 10263
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10264
    if self.from_time is not None:
559 chandransh 10265
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10266
      oprot.writeI64(self.from_time)
94 ashish 10267
      oprot.writeFieldEnd()
3431 rajveer 10268
    if self.to_time is not None:
559 chandransh 10269
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10270
      oprot.writeI64(self.to_time)
122 ashish 10271
      oprot.writeFieldEnd()
3431 rajveer 10272
    if self.status is not None:
559 chandransh 10273
      oprot.writeFieldBegin('status', TType.I32, 3)
10274
      oprot.writeI32(self.status)
10275
      oprot.writeFieldEnd()
94 ashish 10276
    oprot.writeFieldStop()
10277
    oprot.writeStructEnd()
10278
 
3431 rajveer 10279
  def validate(self):
10280
    return
10281
 
10282
 
94 ashish 10283
  def __repr__(self):
10284
    L = ['%s=%r' % (key, value)
10285
      for key, value in self.__dict__.iteritems()]
10286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10287
 
10288
  def __eq__(self, other):
10289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10290
 
10291
  def __ne__(self, other):
10292
    return not (self == other)
10293
 
559 chandransh 10294
class getCartsByTime_result:
94 ashish 10295
  """
10296
  Attributes:
10297
   - success
559 chandransh 10298
   - scx
94 ashish 10299
  """
10300
 
10301
  thrift_spec = (
559 chandransh 10302
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10303
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10304
  )
10305
 
559 chandransh 10306
  def __init__(self, success=None, scx=None,):
94 ashish 10307
    self.success = success
559 chandransh 10308
    self.scx = scx
94 ashish 10309
 
10310
  def read(self, iprot):
10311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10313
      return
10314
    iprot.readStructBegin()
10315
    while True:
10316
      (fname, ftype, fid) = iprot.readFieldBegin()
10317
      if ftype == TType.STOP:
10318
        break
10319
      if fid == 0:
559 chandransh 10320
        if ftype == TType.LIST:
10321
          self.success = []
3385 varun.gupt 10322
          (_etype108, _size105) = iprot.readListBegin()
10323
          for _i109 in xrange(_size105):
10324
            _elem110 = Cart()
10325
            _elem110.read(iprot)
10326
            self.success.append(_elem110)
559 chandransh 10327
          iprot.readListEnd()
94 ashish 10328
        else:
10329
          iprot.skip(ftype)
10330
      elif fid == 1:
10331
        if ftype == TType.STRUCT:
559 chandransh 10332
          self.scx = ShoppingCartException()
10333
          self.scx.read(iprot)
94 ashish 10334
        else:
10335
          iprot.skip(ftype)
10336
      else:
10337
        iprot.skip(ftype)
10338
      iprot.readFieldEnd()
10339
    iprot.readStructEnd()
10340
 
10341
  def write(self, oprot):
10342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10344
      return
559 chandransh 10345
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10346
    if self.success is not None:
559 chandransh 10347
      oprot.writeFieldBegin('success', TType.LIST, 0)
10348
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10349
      for iter111 in self.success:
10350
        iter111.write(oprot)
559 chandransh 10351
      oprot.writeListEnd()
94 ashish 10352
      oprot.writeFieldEnd()
3431 rajveer 10353
    if self.scx is not None:
559 chandransh 10354
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10355
      self.scx.write(oprot)
94 ashish 10356
      oprot.writeFieldEnd()
10357
    oprot.writeFieldStop()
10358
    oprot.writeStructEnd()
10359
 
3431 rajveer 10360
  def validate(self):
10361
    return
10362
 
10363
 
94 ashish 10364
  def __repr__(self):
10365
    L = ['%s=%r' % (key, value)
10366
      for key, value in self.__dict__.iteritems()]
10367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10368
 
10369
  def __eq__(self, other):
10370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10371
 
10372
  def __ne__(self, other):
10373
    return not (self == other)
10374
 
559 chandransh 10375
class changeCartStatus_args:
94 ashish 10376
  """
10377
  Attributes:
559 chandransh 10378
   - cartId
10379
   - status
94 ashish 10380
  """
10381
 
10382
  thrift_spec = (
10383
    None, # 0
559 chandransh 10384
    (1, TType.I64, 'cartId', None, None, ), # 1
10385
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10386
  )
10387
 
559 chandransh 10388
  def __init__(self, cartId=None, status=None,):
10389
    self.cartId = cartId
10390
    self.status = status
94 ashish 10391
 
10392
  def read(self, iprot):
10393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10395
      return
10396
    iprot.readStructBegin()
10397
    while True:
10398
      (fname, ftype, fid) = iprot.readFieldBegin()
10399
      if ftype == TType.STOP:
10400
        break
10401
      if fid == 1:
10402
        if ftype == TType.I64:
559 chandransh 10403
          self.cartId = iprot.readI64();
94 ashish 10404
        else:
10405
          iprot.skip(ftype)
559 chandransh 10406
      elif fid == 2:
10407
        if ftype == TType.I32:
10408
          self.status = iprot.readI32();
10409
        else:
10410
          iprot.skip(ftype)
94 ashish 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
559 chandransh 10420
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10421
    if self.cartId is not None:
559 chandransh 10422
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10423
      oprot.writeI64(self.cartId)
94 ashish 10424
      oprot.writeFieldEnd()
3431 rajveer 10425
    if self.status is not None:
559 chandransh 10426
      oprot.writeFieldBegin('status', TType.I32, 2)
10427
      oprot.writeI32(self.status)
10428
      oprot.writeFieldEnd()
94 ashish 10429
    oprot.writeFieldStop()
10430
    oprot.writeStructEnd()
10431
 
3431 rajveer 10432
  def validate(self):
10433
    return
10434
 
10435
 
94 ashish 10436
  def __repr__(self):
10437
    L = ['%s=%r' % (key, value)
10438
      for key, value in self.__dict__.iteritems()]
10439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10440
 
10441
  def __eq__(self, other):
10442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10443
 
10444
  def __ne__(self, other):
10445
    return not (self == other)
10446
 
559 chandransh 10447
class changeCartStatus_result:
94 ashish 10448
  """
10449
  Attributes:
559 chandransh 10450
   - scx
10451
  """
10452
 
10453
  thrift_spec = (
10454
    None, # 0
10455
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10456
  )
10457
 
10458
  def __init__(self, scx=None,):
10459
    self.scx = scx
10460
 
10461
  def read(self, iprot):
10462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10464
      return
10465
    iprot.readStructBegin()
10466
    while True:
10467
      (fname, ftype, fid) = iprot.readFieldBegin()
10468
      if ftype == TType.STOP:
10469
        break
10470
      if fid == 1:
10471
        if ftype == TType.STRUCT:
10472
          self.scx = ShoppingCartException()
10473
          self.scx.read(iprot)
10474
        else:
10475
          iprot.skip(ftype)
10476
      else:
10477
        iprot.skip(ftype)
10478
      iprot.readFieldEnd()
10479
    iprot.readStructEnd()
10480
 
10481
  def write(self, oprot):
10482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10484
      return
10485
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10486
    if self.scx is not None:
559 chandransh 10487
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10488
      self.scx.write(oprot)
10489
      oprot.writeFieldEnd()
10490
    oprot.writeFieldStop()
10491
    oprot.writeStructEnd()
10492
 
3431 rajveer 10493
  def validate(self):
10494
    return
10495
 
10496
 
559 chandransh 10497
  def __repr__(self):
10498
    L = ['%s=%r' % (key, value)
10499
      for key, value in self.__dict__.iteritems()]
10500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10501
 
10502
  def __eq__(self, other):
10503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10504
 
10505
  def __ne__(self, other):
10506
    return not (self == other)
10507
 
10508
class addItemToCart_args:
10509
  """
10510
  Attributes:
10511
   - cartId
10512
   - itemId
10513
   - quantity
10514
  """
10515
 
10516
  thrift_spec = (
10517
    None, # 0
10518
    (1, TType.I64, 'cartId', None, None, ), # 1
10519
    (2, TType.I64, 'itemId', None, None, ), # 2
10520
    (3, TType.I64, 'quantity', None, None, ), # 3
10521
  )
10522
 
10523
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10524
    self.cartId = cartId
10525
    self.itemId = itemId
10526
    self.quantity = quantity
10527
 
10528
  def read(self, iprot):
10529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10531
      return
10532
    iprot.readStructBegin()
10533
    while True:
10534
      (fname, ftype, fid) = iprot.readFieldBegin()
10535
      if ftype == TType.STOP:
10536
        break
10537
      if fid == 1:
10538
        if ftype == TType.I64:
10539
          self.cartId = iprot.readI64();
10540
        else:
10541
          iprot.skip(ftype)
10542
      elif fid == 2:
10543
        if ftype == TType.I64:
10544
          self.itemId = iprot.readI64();
10545
        else:
10546
          iprot.skip(ftype)
10547
      elif fid == 3:
10548
        if ftype == TType.I64:
10549
          self.quantity = iprot.readI64();
10550
        else:
10551
          iprot.skip(ftype)
10552
      else:
10553
        iprot.skip(ftype)
10554
      iprot.readFieldEnd()
10555
    iprot.readStructEnd()
10556
 
10557
  def write(self, oprot):
10558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10560
      return
10561
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10562
    if self.cartId is not None:
559 chandransh 10563
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10564
      oprot.writeI64(self.cartId)
10565
      oprot.writeFieldEnd()
3431 rajveer 10566
    if self.itemId is not None:
559 chandransh 10567
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10568
      oprot.writeI64(self.itemId)
10569
      oprot.writeFieldEnd()
3431 rajveer 10570
    if self.quantity is not None:
559 chandransh 10571
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10572
      oprot.writeI64(self.quantity)
10573
      oprot.writeFieldEnd()
10574
    oprot.writeFieldStop()
10575
    oprot.writeStructEnd()
10576
 
3431 rajveer 10577
  def validate(self):
10578
    return
10579
 
10580
 
559 chandransh 10581
  def __repr__(self):
10582
    L = ['%s=%r' % (key, value)
10583
      for key, value in self.__dict__.iteritems()]
10584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10585
 
10586
  def __eq__(self, other):
10587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10588
 
10589
  def __ne__(self, other):
10590
    return not (self == other)
10591
 
10592
class addItemToCart_result:
10593
  """
10594
  Attributes:
2035 rajveer 10595
   - success
559 chandransh 10596
   - scx
10597
  """
10598
 
10599
  thrift_spec = (
2035 rajveer 10600
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10601
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10602
  )
10603
 
2035 rajveer 10604
  def __init__(self, success=None, scx=None,):
10605
    self.success = success
559 chandransh 10606
    self.scx = scx
10607
 
10608
  def read(self, iprot):
10609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10611
      return
10612
    iprot.readStructBegin()
10613
    while True:
10614
      (fname, ftype, fid) = iprot.readFieldBegin()
10615
      if ftype == TType.STOP:
10616
        break
2035 rajveer 10617
      if fid == 0:
10618
        if ftype == TType.STRING:
10619
          self.success = iprot.readString();
10620
        else:
10621
          iprot.skip(ftype)
10622
      elif fid == 1:
559 chandransh 10623
        if ftype == TType.STRUCT:
10624
          self.scx = ShoppingCartException()
10625
          self.scx.read(iprot)
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('addItemToCart_result')
3431 rajveer 10638
    if self.success is not None:
2035 rajveer 10639
      oprot.writeFieldBegin('success', TType.STRING, 0)
10640
      oprot.writeString(self.success)
10641
      oprot.writeFieldEnd()
3431 rajveer 10642
    if self.scx is not None:
559 chandransh 10643
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10644
      self.scx.write(oprot)
10645
      oprot.writeFieldEnd()
10646
    oprot.writeFieldStop()
10647
    oprot.writeStructEnd()
10648
 
3431 rajveer 10649
  def validate(self):
10650
    return
10651
 
10652
 
559 chandransh 10653
  def __repr__(self):
10654
    L = ['%s=%r' % (key, value)
10655
      for key, value in self.__dict__.iteritems()]
10656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10657
 
10658
  def __eq__(self, other):
10659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10660
 
10661
  def __ne__(self, other):
10662
    return not (self == other)
10663
 
10664
class deleteItemFromCart_args:
10665
  """
10666
  Attributes:
10667
   - cartId
10668
   - itemId
10669
  """
10670
 
10671
  thrift_spec = (
10672
    None, # 0
10673
    (1, TType.I64, 'cartId', None, None, ), # 1
10674
    (2, TType.I64, 'itemId', None, None, ), # 2
10675
  )
10676
 
10677
  def __init__(self, cartId=None, itemId=None,):
10678
    self.cartId = cartId
10679
    self.itemId = itemId
10680
 
10681
  def read(self, iprot):
10682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10684
      return
10685
    iprot.readStructBegin()
10686
    while True:
10687
      (fname, ftype, fid) = iprot.readFieldBegin()
10688
      if ftype == TType.STOP:
10689
        break
10690
      if fid == 1:
10691
        if ftype == TType.I64:
10692
          self.cartId = iprot.readI64();
10693
        else:
10694
          iprot.skip(ftype)
10695
      elif fid == 2:
10696
        if ftype == TType.I64:
10697
          self.itemId = iprot.readI64();
10698
        else:
10699
          iprot.skip(ftype)
10700
      else:
10701
        iprot.skip(ftype)
10702
      iprot.readFieldEnd()
10703
    iprot.readStructEnd()
10704
 
10705
  def write(self, oprot):
10706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10708
      return
10709
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10710
    if self.cartId is not None:
559 chandransh 10711
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10712
      oprot.writeI64(self.cartId)
10713
      oprot.writeFieldEnd()
3431 rajveer 10714
    if self.itemId is not None:
559 chandransh 10715
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10716
      oprot.writeI64(self.itemId)
10717
      oprot.writeFieldEnd()
10718
    oprot.writeFieldStop()
10719
    oprot.writeStructEnd()
10720
 
3431 rajveer 10721
  def validate(self):
10722
    return
10723
 
10724
 
559 chandransh 10725
  def __repr__(self):
10726
    L = ['%s=%r' % (key, value)
10727
      for key, value in self.__dict__.iteritems()]
10728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10729
 
10730
  def __eq__(self, other):
10731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10732
 
10733
  def __ne__(self, other):
10734
    return not (self == other)
10735
 
10736
class deleteItemFromCart_result:
10737
  """
10738
  Attributes:
10739
   - scx
10740
  """
10741
 
10742
  thrift_spec = (
10743
    None, # 0
10744
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10745
  )
10746
 
10747
  def __init__(self, scx=None,):
10748
    self.scx = scx
10749
 
10750
  def read(self, iprot):
10751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10753
      return
10754
    iprot.readStructBegin()
10755
    while True:
10756
      (fname, ftype, fid) = iprot.readFieldBegin()
10757
      if ftype == TType.STOP:
10758
        break
10759
      if fid == 1:
10760
        if ftype == TType.STRUCT:
10761
          self.scx = ShoppingCartException()
10762
          self.scx.read(iprot)
10763
        else:
10764
          iprot.skip(ftype)
10765
      else:
10766
        iprot.skip(ftype)
10767
      iprot.readFieldEnd()
10768
    iprot.readStructEnd()
10769
 
10770
  def write(self, oprot):
10771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10773
      return
10774
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10775
    if self.scx is not None:
559 chandransh 10776
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10777
      self.scx.write(oprot)
10778
      oprot.writeFieldEnd()
10779
    oprot.writeFieldStop()
10780
    oprot.writeStructEnd()
10781
 
3431 rajveer 10782
  def validate(self):
10783
    return
10784
 
10785
 
559 chandransh 10786
  def __repr__(self):
10787
    L = ['%s=%r' % (key, value)
10788
      for key, value in self.__dict__.iteritems()]
10789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10790
 
10791
  def __eq__(self, other):
10792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10793
 
10794
  def __ne__(self, other):
10795
    return not (self == other)
10796
 
10797
class changeQuantity_args:
10798
  """
10799
  Attributes:
10800
   - cartId
10801
   - itemId
10802
   - quantity
10803
  """
10804
 
10805
  thrift_spec = (
10806
    None, # 0
10807
    (1, TType.I64, 'cartId', None, None, ), # 1
10808
    (2, TType.I64, 'itemId', None, None, ), # 2
10809
    (3, TType.I64, 'quantity', None, None, ), # 3
10810
  )
10811
 
10812
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10813
    self.cartId = cartId
10814
    self.itemId = itemId
10815
    self.quantity = quantity
10816
 
10817
  def read(self, iprot):
10818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10820
      return
10821
    iprot.readStructBegin()
10822
    while True:
10823
      (fname, ftype, fid) = iprot.readFieldBegin()
10824
      if ftype == TType.STOP:
10825
        break
10826
      if fid == 1:
10827
        if ftype == TType.I64:
10828
          self.cartId = iprot.readI64();
10829
        else:
10830
          iprot.skip(ftype)
10831
      elif fid == 2:
10832
        if ftype == TType.I64:
10833
          self.itemId = iprot.readI64();
10834
        else:
10835
          iprot.skip(ftype)
10836
      elif fid == 3:
10837
        if ftype == TType.I64:
10838
          self.quantity = iprot.readI64();
10839
        else:
10840
          iprot.skip(ftype)
10841
      else:
10842
        iprot.skip(ftype)
10843
      iprot.readFieldEnd()
10844
    iprot.readStructEnd()
10845
 
10846
  def write(self, oprot):
10847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10849
      return
10850
    oprot.writeStructBegin('changeQuantity_args')
3431 rajveer 10851
    if self.cartId is not None:
559 chandransh 10852
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10853
      oprot.writeI64(self.cartId)
10854
      oprot.writeFieldEnd()
3431 rajveer 10855
    if self.itemId is not None:
559 chandransh 10856
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10857
      oprot.writeI64(self.itemId)
10858
      oprot.writeFieldEnd()
3431 rajveer 10859
    if self.quantity is not None:
559 chandransh 10860
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10861
      oprot.writeI64(self.quantity)
10862
      oprot.writeFieldEnd()
10863
    oprot.writeFieldStop()
10864
    oprot.writeStructEnd()
10865
 
3431 rajveer 10866
  def validate(self):
10867
    return
10868
 
10869
 
559 chandransh 10870
  def __repr__(self):
10871
    L = ['%s=%r' % (key, value)
10872
      for key, value in self.__dict__.iteritems()]
10873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10874
 
10875
  def __eq__(self, other):
10876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10877
 
10878
  def __ne__(self, other):
10879
    return not (self == other)
10880
 
10881
class changeQuantity_result:
10882
  """
10883
  Attributes:
10884
   - scx
10885
  """
10886
 
10887
  thrift_spec = (
10888
    None, # 0
10889
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10890
  )
10891
 
10892
  def __init__(self, scx=None,):
10893
    self.scx = scx
10894
 
10895
  def read(self, iprot):
10896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10898
      return
10899
    iprot.readStructBegin()
10900
    while True:
10901
      (fname, ftype, fid) = iprot.readFieldBegin()
10902
      if ftype == TType.STOP:
10903
        break
10904
      if fid == 1:
10905
        if ftype == TType.STRUCT:
10906
          self.scx = ShoppingCartException()
10907
          self.scx.read(iprot)
10908
        else:
10909
          iprot.skip(ftype)
10910
      else:
10911
        iprot.skip(ftype)
10912
      iprot.readFieldEnd()
10913
    iprot.readStructEnd()
10914
 
10915
  def write(self, oprot):
10916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10918
      return
10919
    oprot.writeStructBegin('changeQuantity_result')
3431 rajveer 10920
    if self.scx is not None:
559 chandransh 10921
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10922
      self.scx.write(oprot)
10923
      oprot.writeFieldEnd()
10924
    oprot.writeFieldStop()
10925
    oprot.writeStructEnd()
10926
 
3431 rajveer 10927
  def validate(self):
10928
    return
10929
 
10930
 
559 chandransh 10931
  def __repr__(self):
10932
    L = ['%s=%r' % (key, value)
10933
      for key, value in self.__dict__.iteritems()]
10934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10935
 
10936
  def __eq__(self, other):
10937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10938
 
10939
  def __ne__(self, other):
10940
    return not (self == other)
10941
 
10942
class changeItemStatus_args:
10943
  """
10944
  Attributes:
10945
   - cartId
10946
   - itemId
10947
   - status
10948
  """
10949
 
10950
  thrift_spec = (
10951
    None, # 0
10952
    (1, TType.I64, 'cartId', None, None, ), # 1
10953
    (2, TType.I64, 'itemId', None, None, ), # 2
10954
    (3, TType.I32, 'status', None, None, ), # 3
10955
  )
10956
 
10957
  def __init__(self, cartId=None, itemId=None, status=None,):
10958
    self.cartId = cartId
10959
    self.itemId = itemId
10960
    self.status = status
10961
 
10962
  def read(self, iprot):
10963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10965
      return
10966
    iprot.readStructBegin()
10967
    while True:
10968
      (fname, ftype, fid) = iprot.readFieldBegin()
10969
      if ftype == TType.STOP:
10970
        break
10971
      if fid == 1:
10972
        if ftype == TType.I64:
10973
          self.cartId = iprot.readI64();
10974
        else:
10975
          iprot.skip(ftype)
10976
      elif fid == 2:
10977
        if ftype == TType.I64:
10978
          self.itemId = iprot.readI64();
10979
        else:
10980
          iprot.skip(ftype)
10981
      elif fid == 3:
10982
        if ftype == TType.I32:
10983
          self.status = iprot.readI32();
10984
        else:
10985
          iprot.skip(ftype)
10986
      else:
10987
        iprot.skip(ftype)
10988
      iprot.readFieldEnd()
10989
    iprot.readStructEnd()
10990
 
10991
  def write(self, oprot):
10992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10994
      return
10995
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10996
    if self.cartId is not None:
559 chandransh 10997
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10998
      oprot.writeI64(self.cartId)
10999
      oprot.writeFieldEnd()
3431 rajveer 11000
    if self.itemId is not None:
559 chandransh 11001
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11002
      oprot.writeI64(self.itemId)
11003
      oprot.writeFieldEnd()
3431 rajveer 11004
    if self.status is not None:
559 chandransh 11005
      oprot.writeFieldBegin('status', TType.I32, 3)
11006
      oprot.writeI32(self.status)
11007
      oprot.writeFieldEnd()
11008
    oprot.writeFieldStop()
11009
    oprot.writeStructEnd()
11010
 
3431 rajveer 11011
  def validate(self):
11012
    return
11013
 
11014
 
559 chandransh 11015
  def __repr__(self):
11016
    L = ['%s=%r' % (key, value)
11017
      for key, value in self.__dict__.iteritems()]
11018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11019
 
11020
  def __eq__(self, other):
11021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11022
 
11023
  def __ne__(self, other):
11024
    return not (self == other)
11025
 
11026
class changeItemStatus_result:
11027
  """
11028
  Attributes:
11029
   - scx
11030
  """
11031
 
11032
  thrift_spec = (
11033
    None, # 0
11034
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11035
  )
11036
 
11037
  def __init__(self, scx=None,):
11038
    self.scx = scx
11039
 
11040
  def read(self, iprot):
11041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11043
      return
11044
    iprot.readStructBegin()
11045
    while True:
11046
      (fname, ftype, fid) = iprot.readFieldBegin()
11047
      if ftype == TType.STOP:
11048
        break
11049
      if fid == 1:
11050
        if ftype == TType.STRUCT:
11051
          self.scx = ShoppingCartException()
11052
          self.scx.read(iprot)
11053
        else:
11054
          iprot.skip(ftype)
11055
      else:
11056
        iprot.skip(ftype)
11057
      iprot.readFieldEnd()
11058
    iprot.readStructEnd()
11059
 
11060
  def write(self, oprot):
11061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11063
      return
11064
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11065
    if self.scx is not None:
559 chandransh 11066
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11067
      self.scx.write(oprot)
11068
      oprot.writeFieldEnd()
11069
    oprot.writeFieldStop()
11070
    oprot.writeStructEnd()
11071
 
3431 rajveer 11072
  def validate(self):
11073
    return
11074
 
11075
 
559 chandransh 11076
  def __repr__(self):
11077
    L = ['%s=%r' % (key, value)
11078
      for key, value in self.__dict__.iteritems()]
11079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11080
 
11081
  def __eq__(self, other):
11082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11083
 
11084
  def __ne__(self, other):
11085
    return not (self == other)
11086
 
11087
class addAddressToCart_args:
11088
  """
11089
  Attributes:
11090
   - cartId
11091
   - addressId
11092
  """
11093
 
11094
  thrift_spec = (
11095
    None, # 0
11096
    (1, TType.I64, 'cartId', None, None, ), # 1
11097
    (2, TType.I64, 'addressId', None, None, ), # 2
11098
  )
11099
 
11100
  def __init__(self, cartId=None, addressId=None,):
11101
    self.cartId = cartId
11102
    self.addressId = addressId
11103
 
11104
  def read(self, iprot):
11105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11107
      return
11108
    iprot.readStructBegin()
11109
    while True:
11110
      (fname, ftype, fid) = iprot.readFieldBegin()
11111
      if ftype == TType.STOP:
11112
        break
11113
      if fid == 1:
11114
        if ftype == TType.I64:
11115
          self.cartId = iprot.readI64();
11116
        else:
11117
          iprot.skip(ftype)
11118
      elif fid == 2:
11119
        if ftype == TType.I64:
11120
          self.addressId = iprot.readI64();
11121
        else:
11122
          iprot.skip(ftype)
11123
      else:
11124
        iprot.skip(ftype)
11125
      iprot.readFieldEnd()
11126
    iprot.readStructEnd()
11127
 
11128
  def write(self, oprot):
11129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11131
      return
11132
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11133
    if self.cartId is not None:
559 chandransh 11134
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11135
      oprot.writeI64(self.cartId)
11136
      oprot.writeFieldEnd()
3431 rajveer 11137
    if self.addressId is not None:
559 chandransh 11138
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11139
      oprot.writeI64(self.addressId)
11140
      oprot.writeFieldEnd()
11141
    oprot.writeFieldStop()
11142
    oprot.writeStructEnd()
11143
 
3431 rajveer 11144
  def validate(self):
11145
    return
11146
 
11147
 
559 chandransh 11148
  def __repr__(self):
11149
    L = ['%s=%r' % (key, value)
11150
      for key, value in self.__dict__.iteritems()]
11151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11152
 
11153
  def __eq__(self, other):
11154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11155
 
11156
  def __ne__(self, other):
11157
    return not (self == other)
11158
 
11159
class addAddressToCart_result:
575 chandransh 11160
  """
11161
  Attributes:
11162
   - scx
11163
  """
559 chandransh 11164
 
11165
  thrift_spec = (
575 chandransh 11166
    None, # 0
11167
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11168
  )
11169
 
575 chandransh 11170
  def __init__(self, scx=None,):
11171
    self.scx = scx
11172
 
559 chandransh 11173
  def read(self, iprot):
11174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11176
      return
11177
    iprot.readStructBegin()
11178
    while True:
11179
      (fname, ftype, fid) = iprot.readFieldBegin()
11180
      if ftype == TType.STOP:
11181
        break
575 chandransh 11182
      if fid == 1:
11183
        if ftype == TType.STRUCT:
11184
          self.scx = ShoppingCartException()
11185
          self.scx.read(iprot)
11186
        else:
11187
          iprot.skip(ftype)
559 chandransh 11188
      else:
11189
        iprot.skip(ftype)
11190
      iprot.readFieldEnd()
11191
    iprot.readStructEnd()
11192
 
11193
  def write(self, oprot):
11194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11196
      return
11197
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11198
    if self.scx is not None:
575 chandransh 11199
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11200
      self.scx.write(oprot)
11201
      oprot.writeFieldEnd()
559 chandransh 11202
    oprot.writeFieldStop()
11203
    oprot.writeStructEnd()
11204
 
3431 rajveer 11205
  def validate(self):
11206
    return
11207
 
11208
 
559 chandransh 11209
  def __repr__(self):
11210
    L = ['%s=%r' % (key, value)
11211
      for key, value in self.__dict__.iteritems()]
11212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11213
 
11214
  def __eq__(self, other):
11215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11216
 
11217
  def __ne__(self, other):
11218
    return not (self == other)
11219
 
1976 varun.gupt 11220
class applyCouponToCart_args:
11221
  """
11222
  Attributes:
11223
   - cartId
11224
   - couponCode
11225
   - totalPrice
11226
   - discountedPrice
11227
  """
11228
 
11229
  thrift_spec = (
11230
    None, # 0
11231
    (1, TType.I64, 'cartId', None, None, ), # 1
11232
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11233
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11234
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11235
  )
11236
 
11237
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11238
    self.cartId = cartId
11239
    self.couponCode = couponCode
11240
    self.totalPrice = totalPrice
11241
    self.discountedPrice = discountedPrice
11242
 
11243
  def read(self, iprot):
11244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11246
      return
11247
    iprot.readStructBegin()
11248
    while True:
11249
      (fname, ftype, fid) = iprot.readFieldBegin()
11250
      if ftype == TType.STOP:
11251
        break
11252
      if fid == 1:
11253
        if ftype == TType.I64:
11254
          self.cartId = iprot.readI64();
11255
        else:
11256
          iprot.skip(ftype)
11257
      elif fid == 2:
11258
        if ftype == TType.STRING:
11259
          self.couponCode = iprot.readString();
11260
        else:
11261
          iprot.skip(ftype)
11262
      elif fid == 3:
11263
        if ftype == TType.DOUBLE:
11264
          self.totalPrice = iprot.readDouble();
11265
        else:
11266
          iprot.skip(ftype)
11267
      elif fid == 4:
11268
        if ftype == TType.DOUBLE:
11269
          self.discountedPrice = iprot.readDouble();
11270
        else:
11271
          iprot.skip(ftype)
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
11281
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11282
    if self.cartId is not None:
1976 varun.gupt 11283
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11284
      oprot.writeI64(self.cartId)
11285
      oprot.writeFieldEnd()
3431 rajveer 11286
    if self.couponCode is not None:
1976 varun.gupt 11287
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11288
      oprot.writeString(self.couponCode)
11289
      oprot.writeFieldEnd()
3431 rajveer 11290
    if self.totalPrice is not None:
1976 varun.gupt 11291
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11292
      oprot.writeDouble(self.totalPrice)
11293
      oprot.writeFieldEnd()
3431 rajveer 11294
    if self.discountedPrice is not None:
1976 varun.gupt 11295
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11296
      oprot.writeDouble(self.discountedPrice)
11297
      oprot.writeFieldEnd()
11298
    oprot.writeFieldStop()
11299
    oprot.writeStructEnd()
11300
 
3431 rajveer 11301
  def validate(self):
11302
    return
11303
 
11304
 
1976 varun.gupt 11305
  def __repr__(self):
11306
    L = ['%s=%r' % (key, value)
11307
      for key, value in self.__dict__.iteritems()]
11308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11309
 
11310
  def __eq__(self, other):
11311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11312
 
11313
  def __ne__(self, other):
11314
    return not (self == other)
11315
 
11316
class applyCouponToCart_result:
11317
  """
11318
  Attributes:
11319
   - scx
11320
  """
11321
 
11322
  thrift_spec = (
11323
    None, # 0
11324
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11325
  )
11326
 
11327
  def __init__(self, scx=None,):
11328
    self.scx = scx
11329
 
11330
  def read(self, iprot):
11331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11333
      return
11334
    iprot.readStructBegin()
11335
    while True:
11336
      (fname, ftype, fid) = iprot.readFieldBegin()
11337
      if ftype == TType.STOP:
11338
        break
11339
      if fid == 1:
11340
        if ftype == TType.STRUCT:
11341
          self.scx = ShoppingCartException()
11342
          self.scx.read(iprot)
11343
        else:
11344
          iprot.skip(ftype)
11345
      else:
11346
        iprot.skip(ftype)
11347
      iprot.readFieldEnd()
11348
    iprot.readStructEnd()
11349
 
11350
  def write(self, oprot):
11351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11353
      return
11354
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11355
    if self.scx is not None:
1976 varun.gupt 11356
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11357
      self.scx.write(oprot)
11358
      oprot.writeFieldEnd()
11359
    oprot.writeFieldStop()
11360
    oprot.writeStructEnd()
11361
 
3431 rajveer 11362
  def validate(self):
11363
    return
11364
 
11365
 
1976 varun.gupt 11366
  def __repr__(self):
11367
    L = ['%s=%r' % (key, value)
11368
      for key, value in self.__dict__.iteritems()]
11369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11370
 
11371
  def __eq__(self, other):
11372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11373
 
11374
  def __ne__(self, other):
11375
    return not (self == other)
11376
 
11377
class removeCoupon_args:
11378
  """
11379
  Attributes:
11380
   - cartId
11381
  """
11382
 
11383
  thrift_spec = (
11384
    None, # 0
11385
    (1, TType.I64, 'cartId', None, None, ), # 1
11386
  )
11387
 
11388
  def __init__(self, cartId=None,):
11389
    self.cartId = cartId
11390
 
11391
  def read(self, iprot):
11392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11394
      return
11395
    iprot.readStructBegin()
11396
    while True:
11397
      (fname, ftype, fid) = iprot.readFieldBegin()
11398
      if ftype == TType.STOP:
11399
        break
11400
      if fid == 1:
11401
        if ftype == TType.I64:
11402
          self.cartId = iprot.readI64();
11403
        else:
11404
          iprot.skip(ftype)
11405
      else:
11406
        iprot.skip(ftype)
11407
      iprot.readFieldEnd()
11408
    iprot.readStructEnd()
11409
 
11410
  def write(self, oprot):
11411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11413
      return
11414
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11415
    if self.cartId is not None:
1976 varun.gupt 11416
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11417
      oprot.writeI64(self.cartId)
11418
      oprot.writeFieldEnd()
11419
    oprot.writeFieldStop()
11420
    oprot.writeStructEnd()
11421
 
3431 rajveer 11422
  def validate(self):
11423
    return
11424
 
11425
 
1976 varun.gupt 11426
  def __repr__(self):
11427
    L = ['%s=%r' % (key, value)
11428
      for key, value in self.__dict__.iteritems()]
11429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11430
 
11431
  def __eq__(self, other):
11432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11433
 
11434
  def __ne__(self, other):
11435
    return not (self == other)
11436
 
11437
class removeCoupon_result:
11438
  """
11439
  Attributes:
11440
   - scx
11441
  """
11442
 
11443
  thrift_spec = (
11444
    None, # 0
11445
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11446
  )
11447
 
11448
  def __init__(self, scx=None,):
11449
    self.scx = scx
11450
 
11451
  def read(self, iprot):
11452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11454
      return
11455
    iprot.readStructBegin()
11456
    while True:
11457
      (fname, ftype, fid) = iprot.readFieldBegin()
11458
      if ftype == TType.STOP:
11459
        break
11460
      if fid == 1:
11461
        if ftype == TType.STRUCT:
11462
          self.scx = ShoppingCartException()
11463
          self.scx.read(iprot)
11464
        else:
11465
          iprot.skip(ftype)
11466
      else:
11467
        iprot.skip(ftype)
11468
      iprot.readFieldEnd()
11469
    iprot.readStructEnd()
11470
 
11471
  def write(self, oprot):
11472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11474
      return
11475
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11476
    if self.scx is not None:
1976 varun.gupt 11477
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11478
      self.scx.write(oprot)
11479
      oprot.writeFieldEnd()
11480
    oprot.writeFieldStop()
11481
    oprot.writeStructEnd()
11482
 
3431 rajveer 11483
  def validate(self):
11484
    return
11485
 
11486
 
1976 varun.gupt 11487
  def __repr__(self):
11488
    L = ['%s=%r' % (key, value)
11489
      for key, value in self.__dict__.iteritems()]
11490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11491
 
11492
  def __eq__(self, other):
11493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11494
 
11495
  def __ne__(self, other):
11496
    return not (self == other)
11497
 
690 chandransh 11498
class createOrders_args:
559 chandransh 11499
  """
11500
  Attributes:
11501
   - cartId
2815 vikas 11502
   - sessionSource
11503
   - sessionStartTime
559 chandransh 11504
  """
11505
 
11506
  thrift_spec = (
11507
    None, # 0
11508
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11509
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11510
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11511
  )
11512
 
2815 vikas 11513
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11514
    self.cartId = cartId
2815 vikas 11515
    self.sessionSource = sessionSource
11516
    self.sessionStartTime = sessionStartTime
559 chandransh 11517
 
11518
  def read(self, iprot):
11519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11521
      return
11522
    iprot.readStructBegin()
11523
    while True:
11524
      (fname, ftype, fid) = iprot.readFieldBegin()
11525
      if ftype == TType.STOP:
11526
        break
11527
      if fid == 1:
11528
        if ftype == TType.I64:
11529
          self.cartId = iprot.readI64();
11530
        else:
11531
          iprot.skip(ftype)
2815 vikas 11532
      elif fid == 2:
11533
        if ftype == TType.STRING:
11534
          self.sessionSource = iprot.readString();
11535
        else:
11536
          iprot.skip(ftype)
11537
      elif fid == 3:
11538
        if ftype == TType.I64:
11539
          self.sessionStartTime = iprot.readI64();
11540
        else:
11541
          iprot.skip(ftype)
559 chandransh 11542
      else:
11543
        iprot.skip(ftype)
11544
      iprot.readFieldEnd()
11545
    iprot.readStructEnd()
11546
 
11547
  def write(self, oprot):
11548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11550
      return
690 chandransh 11551
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11552
    if self.cartId is not None:
559 chandransh 11553
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11554
      oprot.writeI64(self.cartId)
11555
      oprot.writeFieldEnd()
3431 rajveer 11556
    if self.sessionSource is not None:
2815 vikas 11557
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11558
      oprot.writeString(self.sessionSource)
11559
      oprot.writeFieldEnd()
3431 rajveer 11560
    if self.sessionStartTime is not None:
2815 vikas 11561
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11562
      oprot.writeI64(self.sessionStartTime)
11563
      oprot.writeFieldEnd()
559 chandransh 11564
    oprot.writeFieldStop()
11565
    oprot.writeStructEnd()
11566
 
3431 rajveer 11567
  def validate(self):
11568
    return
11569
 
11570
 
559 chandransh 11571
  def __repr__(self):
11572
    L = ['%s=%r' % (key, value)
11573
      for key, value in self.__dict__.iteritems()]
11574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11575
 
11576
  def __eq__(self, other):
11577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11578
 
11579
  def __ne__(self, other):
11580
    return not (self == other)
11581
 
690 chandransh 11582
class createOrders_result:
559 chandransh 11583
  """
11584
  Attributes:
94 ashish 11585
   - success
559 chandransh 11586
   - scx
94 ashish 11587
  """
11588
 
11589
  thrift_spec = (
575 chandransh 11590
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11591
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11592
  )
11593
 
559 chandransh 11594
  def __init__(self, success=None, scx=None,):
94 ashish 11595
    self.success = success
559 chandransh 11596
    self.scx = scx
94 ashish 11597
 
11598
  def read(self, iprot):
11599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11601
      return
11602
    iprot.readStructBegin()
11603
    while True:
11604
      (fname, ftype, fid) = iprot.readFieldBegin()
11605
      if ftype == TType.STOP:
11606
        break
11607
      if fid == 0:
575 chandransh 11608
        if ftype == TType.I64:
11609
          self.success = iprot.readI64();
94 ashish 11610
        else:
11611
          iprot.skip(ftype)
11612
      elif fid == 1:
11613
        if ftype == TType.STRUCT:
559 chandransh 11614
          self.scx = ShoppingCartException()
11615
          self.scx.read(iprot)
94 ashish 11616
        else:
11617
          iprot.skip(ftype)
11618
      else:
11619
        iprot.skip(ftype)
11620
      iprot.readFieldEnd()
11621
    iprot.readStructEnd()
11622
 
11623
  def write(self, oprot):
11624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11626
      return
690 chandransh 11627
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11628
    if self.success is not None:
575 chandransh 11629
      oprot.writeFieldBegin('success', TType.I64, 0)
11630
      oprot.writeI64(self.success)
94 ashish 11631
      oprot.writeFieldEnd()
3431 rajveer 11632
    if self.scx is not None:
559 chandransh 11633
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11634
      self.scx.write(oprot)
94 ashish 11635
      oprot.writeFieldEnd()
11636
    oprot.writeFieldStop()
11637
    oprot.writeStructEnd()
11638
 
3431 rajveer 11639
  def validate(self):
11640
    return
11641
 
11642
 
94 ashish 11643
  def __repr__(self):
11644
    L = ['%s=%r' % (key, value)
11645
      for key, value in self.__dict__.iteritems()]
11646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11647
 
11648
  def __eq__(self, other):
11649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11650
 
11651
  def __ne__(self, other):
11652
    return not (self == other)
11653
 
559 chandransh 11654
class validateCart_args:
94 ashish 11655
  """
11656
  Attributes:
559 chandransh 11657
   - cartId
94 ashish 11658
  """
11659
 
11660
  thrift_spec = (
11661
    None, # 0
559 chandransh 11662
    (1, TType.I64, 'cartId', None, None, ), # 1
94 ashish 11663
  )
11664
 
559 chandransh 11665
  def __init__(self, cartId=None,):
11666
    self.cartId = cartId
94 ashish 11667
 
11668
  def read(self, iprot):
11669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11671
      return
11672
    iprot.readStructBegin()
11673
    while True:
11674
      (fname, ftype, fid) = iprot.readFieldBegin()
11675
      if ftype == TType.STOP:
11676
        break
11677
      if fid == 1:
11678
        if ftype == TType.I64:
559 chandransh 11679
          self.cartId = iprot.readI64();
94 ashish 11680
        else:
11681
          iprot.skip(ftype)
11682
      else:
11683
        iprot.skip(ftype)
11684
      iprot.readFieldEnd()
11685
    iprot.readStructEnd()
11686
 
11687
  def write(self, oprot):
11688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11690
      return
559 chandransh 11691
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11692
    if self.cartId is not None:
559 chandransh 11693
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11694
      oprot.writeI64(self.cartId)
94 ashish 11695
      oprot.writeFieldEnd()
11696
    oprot.writeFieldStop()
11697
    oprot.writeStructEnd()
11698
 
3431 rajveer 11699
  def validate(self):
11700
    return
11701
 
11702
 
94 ashish 11703
  def __repr__(self):
11704
    L = ['%s=%r' % (key, value)
11705
      for key, value in self.__dict__.iteritems()]
11706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11707
 
11708
  def __eq__(self, other):
11709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11710
 
11711
  def __ne__(self, other):
11712
    return not (self == other)
11713
 
559 chandransh 11714
class validateCart_result:
94 ashish 11715
  """
11716
  Attributes:
11717
   - success
575 chandransh 11718
   - scex
94 ashish 11719
  """
11720
 
11721
  thrift_spec = (
1466 ankur.sing 11722
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11723
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11724
  )
11725
 
575 chandransh 11726
  def __init__(self, success=None, scex=None,):
94 ashish 11727
    self.success = success
575 chandransh 11728
    self.scex = scex
94 ashish 11729
 
11730
  def read(self, iprot):
11731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11733
      return
11734
    iprot.readStructBegin()
11735
    while True:
11736
      (fname, ftype, fid) = iprot.readFieldBegin()
11737
      if ftype == TType.STOP:
11738
        break
11739
      if fid == 0:
1466 ankur.sing 11740
        if ftype == TType.STRING:
11741
          self.success = iprot.readString();
94 ashish 11742
        else:
11743
          iprot.skip(ftype)
575 chandransh 11744
      elif fid == 1:
11745
        if ftype == TType.STRUCT:
11746
          self.scex = ShoppingCartException()
11747
          self.scex.read(iprot)
11748
        else:
11749
          iprot.skip(ftype)
94 ashish 11750
      else:
11751
        iprot.skip(ftype)
11752
      iprot.readFieldEnd()
11753
    iprot.readStructEnd()
11754
 
11755
  def write(self, oprot):
11756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11758
      return
559 chandransh 11759
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11760
    if self.success is not None:
1466 ankur.sing 11761
      oprot.writeFieldBegin('success', TType.STRING, 0)
11762
      oprot.writeString(self.success)
94 ashish 11763
      oprot.writeFieldEnd()
3431 rajveer 11764
    if self.scex is not None:
575 chandransh 11765
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11766
      self.scex.write(oprot)
11767
      oprot.writeFieldEnd()
559 chandransh 11768
    oprot.writeFieldStop()
11769
    oprot.writeStructEnd()
11770
 
3431 rajveer 11771
  def validate(self):
11772
    return
11773
 
11774
 
559 chandransh 11775
  def __repr__(self):
11776
    L = ['%s=%r' % (key, value)
11777
      for key, value in self.__dict__.iteritems()]
11778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11779
 
11780
  def __eq__(self, other):
11781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11782
 
11783
  def __ne__(self, other):
11784
    return not (self == other)
11785
 
690 chandransh 11786
class mergeCart_args:
575 chandransh 11787
  """
11788
  Attributes:
690 chandransh 11789
   - fromCartId
11790
   - toCartId
11791
  """
11792
 
11793
  thrift_spec = (
11794
    None, # 0
11795
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11796
    (2, TType.I64, 'toCartId', None, None, ), # 2
11797
  )
11798
 
11799
  def __init__(self, fromCartId=None, toCartId=None,):
11800
    self.fromCartId = fromCartId
11801
    self.toCartId = toCartId
11802
 
11803
  def read(self, iprot):
11804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11806
      return
11807
    iprot.readStructBegin()
11808
    while True:
11809
      (fname, ftype, fid) = iprot.readFieldBegin()
11810
      if ftype == TType.STOP:
11811
        break
11812
      if fid == 1:
11813
        if ftype == TType.I64:
11814
          self.fromCartId = iprot.readI64();
11815
        else:
11816
          iprot.skip(ftype)
11817
      elif fid == 2:
11818
        if ftype == TType.I64:
11819
          self.toCartId = iprot.readI64();
11820
        else:
11821
          iprot.skip(ftype)
11822
      else:
11823
        iprot.skip(ftype)
11824
      iprot.readFieldEnd()
11825
    iprot.readStructEnd()
11826
 
11827
  def write(self, oprot):
11828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11830
      return
11831
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11832
    if self.fromCartId is not None:
690 chandransh 11833
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11834
      oprot.writeI64(self.fromCartId)
11835
      oprot.writeFieldEnd()
3431 rajveer 11836
    if self.toCartId is not None:
690 chandransh 11837
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11838
      oprot.writeI64(self.toCartId)
11839
      oprot.writeFieldEnd()
11840
    oprot.writeFieldStop()
11841
    oprot.writeStructEnd()
11842
 
3431 rajveer 11843
  def validate(self):
11844
    return
11845
 
11846
 
690 chandransh 11847
  def __repr__(self):
11848
    L = ['%s=%r' % (key, value)
11849
      for key, value in self.__dict__.iteritems()]
11850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11851
 
11852
  def __eq__(self, other):
11853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11854
 
11855
  def __ne__(self, other):
11856
    return not (self == other)
11857
 
11858
class mergeCart_result:
11859
 
11860
  thrift_spec = (
11861
  )
11862
 
11863
  def read(self, iprot):
11864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11866
      return
11867
    iprot.readStructBegin()
11868
    while True:
11869
      (fname, ftype, fid) = iprot.readFieldBegin()
11870
      if ftype == TType.STOP:
11871
        break
11872
      else:
11873
        iprot.skip(ftype)
11874
      iprot.readFieldEnd()
11875
    iprot.readStructEnd()
11876
 
11877
  def write(self, oprot):
11878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11880
      return
11881
    oprot.writeStructBegin('mergeCart_result')
11882
    oprot.writeFieldStop()
11883
    oprot.writeStructEnd()
11884
 
3431 rajveer 11885
  def validate(self):
11886
    return
11887
 
11888
 
690 chandransh 11889
  def __repr__(self):
11890
    L = ['%s=%r' % (key, value)
11891
      for key, value in self.__dict__.iteritems()]
11892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11893
 
11894
  def __eq__(self, other):
11895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11896
 
11897
  def __ne__(self, other):
11898
    return not (self == other)
11899
 
11900
class checkOut_args:
11901
  """
11902
  Attributes:
575 chandransh 11903
   - cartId
11904
  """
11905
 
11906
  thrift_spec = (
11907
    None, # 0
11908
    (1, TType.I64, 'cartId', None, None, ), # 1
11909
  )
11910
 
11911
  def __init__(self, cartId=None,):
11912
    self.cartId = cartId
11913
 
11914
  def read(self, iprot):
11915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11917
      return
11918
    iprot.readStructBegin()
11919
    while True:
11920
      (fname, ftype, fid) = iprot.readFieldBegin()
11921
      if ftype == TType.STOP:
11922
        break
11923
      if fid == 1:
11924
        if ftype == TType.I64:
11925
          self.cartId = iprot.readI64();
11926
        else:
11927
          iprot.skip(ftype)
11928
      else:
11929
        iprot.skip(ftype)
11930
      iprot.readFieldEnd()
11931
    iprot.readStructEnd()
11932
 
11933
  def write(self, oprot):
11934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11936
      return
690 chandransh 11937
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11938
    if self.cartId is not None:
575 chandransh 11939
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11940
      oprot.writeI64(self.cartId)
11941
      oprot.writeFieldEnd()
11942
    oprot.writeFieldStop()
11943
    oprot.writeStructEnd()
11944
 
3431 rajveer 11945
  def validate(self):
11946
    return
11947
 
11948
 
575 chandransh 11949
  def __repr__(self):
11950
    L = ['%s=%r' % (key, value)
11951
      for key, value in self.__dict__.iteritems()]
11952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11953
 
11954
  def __eq__(self, other):
11955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11956
 
11957
  def __ne__(self, other):
11958
    return not (self == other)
11959
 
690 chandransh 11960
class checkOut_result:
575 chandransh 11961
  """
11962
  Attributes:
11963
   - success
11964
   - scex
11965
  """
11966
 
11967
  thrift_spec = (
11968
    (0, TType.BOOL, 'success', None, None, ), # 0
11969
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11970
  )
11971
 
11972
  def __init__(self, success=None, scex=None,):
11973
    self.success = success
11974
    self.scex = scex
11975
 
11976
  def read(self, iprot):
11977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11979
      return
11980
    iprot.readStructBegin()
11981
    while True:
11982
      (fname, ftype, fid) = iprot.readFieldBegin()
11983
      if ftype == TType.STOP:
11984
        break
11985
      if fid == 0:
11986
        if ftype == TType.BOOL:
11987
          self.success = iprot.readBool();
11988
        else:
11989
          iprot.skip(ftype)
11990
      elif fid == 1:
11991
        if ftype == TType.STRUCT:
11992
          self.scex = ShoppingCartException()
11993
          self.scex.read(iprot)
11994
        else:
11995
          iprot.skip(ftype)
11996
      else:
11997
        iprot.skip(ftype)
11998
      iprot.readFieldEnd()
11999
    iprot.readStructEnd()
12000
 
12001
  def write(self, oprot):
12002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12004
      return
690 chandransh 12005
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12006
    if self.success is not None:
575 chandransh 12007
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12008
      oprot.writeBool(self.success)
12009
      oprot.writeFieldEnd()
3431 rajveer 12010
    if self.scex is not None:
575 chandransh 12011
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12012
      self.scex.write(oprot)
12013
      oprot.writeFieldEnd()
12014
    oprot.writeFieldStop()
12015
    oprot.writeStructEnd()
12016
 
3431 rajveer 12017
  def validate(self):
12018
    return
12019
 
12020
 
575 chandransh 12021
  def __repr__(self):
12022
    L = ['%s=%r' % (key, value)
12023
      for key, value in self.__dict__.iteritems()]
12024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12025
 
12026
  def __eq__(self, other):
12027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12028
 
12029
  def __ne__(self, other):
12030
    return not (self == other)
12031
 
690 chandransh 12032
class resetCart_args:
559 chandransh 12033
  """
12034
  Attributes:
690 chandransh 12035
   - cartId
12036
   - items
559 chandransh 12037
  """
12038
 
12039
  thrift_spec = (
12040
    None, # 0
690 chandransh 12041
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12042
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12043
  )
12044
 
690 chandransh 12045
  def __init__(self, cartId=None, items=None,):
12046
    self.cartId = cartId
12047
    self.items = items
559 chandransh 12048
 
12049
  def read(self, iprot):
12050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12052
      return
12053
    iprot.readStructBegin()
12054
    while True:
12055
      (fname, ftype, fid) = iprot.readFieldBegin()
12056
      if ftype == TType.STOP:
12057
        break
12058
      if fid == 1:
12059
        if ftype == TType.I64:
690 chandransh 12060
          self.cartId = iprot.readI64();
559 chandransh 12061
        else:
12062
          iprot.skip(ftype)
12063
      elif fid == 2:
690 chandransh 12064
        if ftype == TType.MAP:
12065
          self.items = {}
3385 varun.gupt 12066
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
12067
          for _i116 in xrange(_size112):
12068
            _key117 = iprot.readI64();
12069
            _val118 = iprot.readDouble();
12070
            self.items[_key117] = _val118
690 chandransh 12071
          iprot.readMapEnd()
559 chandransh 12072
        else:
12073
          iprot.skip(ftype)
12074
      else:
12075
        iprot.skip(ftype)
12076
      iprot.readFieldEnd()
12077
    iprot.readStructEnd()
12078
 
12079
  def write(self, oprot):
12080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12082
      return
690 chandransh 12083
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12084
    if self.cartId is not None:
690 chandransh 12085
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12086
      oprot.writeI64(self.cartId)
94 ashish 12087
      oprot.writeFieldEnd()
3431 rajveer 12088
    if self.items is not None:
690 chandransh 12089
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12090
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3385 varun.gupt 12091
      for kiter119,viter120 in self.items.items():
12092
        oprot.writeI64(kiter119)
12093
        oprot.writeDouble(viter120)
690 chandransh 12094
      oprot.writeMapEnd()
559 chandransh 12095
      oprot.writeFieldEnd()
94 ashish 12096
    oprot.writeFieldStop()
12097
    oprot.writeStructEnd()
12098
 
3431 rajveer 12099
  def validate(self):
12100
    return
12101
 
12102
 
94 ashish 12103
  def __repr__(self):
12104
    L = ['%s=%r' % (key, value)
12105
      for key, value in self.__dict__.iteritems()]
12106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12107
 
12108
  def __eq__(self, other):
12109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12110
 
12111
  def __ne__(self, other):
12112
    return not (self == other)
12113
 
690 chandransh 12114
class resetCart_result:
12115
  """
12116
  Attributes:
12117
   - success
12118
   - scex
12119
  """
559 chandransh 12120
 
12121
  thrift_spec = (
690 chandransh 12122
    (0, TType.BOOL, 'success', None, None, ), # 0
12123
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12124
  )
12125
 
690 chandransh 12126
  def __init__(self, success=None, scex=None,):
12127
    self.success = success
12128
    self.scex = scex
12129
 
559 chandransh 12130
  def read(self, iprot):
12131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12133
      return
12134
    iprot.readStructBegin()
12135
    while True:
12136
      (fname, ftype, fid) = iprot.readFieldBegin()
12137
      if ftype == TType.STOP:
12138
        break
690 chandransh 12139
      if fid == 0:
12140
        if ftype == TType.BOOL:
12141
          self.success = iprot.readBool();
12142
        else:
12143
          iprot.skip(ftype)
12144
      elif fid == 1:
12145
        if ftype == TType.STRUCT:
12146
          self.scex = ShoppingCartException()
12147
          self.scex.read(iprot)
12148
        else:
12149
          iprot.skip(ftype)
559 chandransh 12150
      else:
12151
        iprot.skip(ftype)
12152
      iprot.readFieldEnd()
12153
    iprot.readStructEnd()
12154
 
12155
  def write(self, oprot):
12156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12158
      return
690 chandransh 12159
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12160
    if self.success is not None:
690 chandransh 12161
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12162
      oprot.writeBool(self.success)
12163
      oprot.writeFieldEnd()
3431 rajveer 12164
    if self.scex is not None:
690 chandransh 12165
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12166
      self.scex.write(oprot)
12167
      oprot.writeFieldEnd()
559 chandransh 12168
    oprot.writeFieldStop()
12169
    oprot.writeStructEnd()
12170
 
3431 rajveer 12171
  def validate(self):
12172
    return
12173
 
12174
 
559 chandransh 12175
  def __repr__(self):
12176
    L = ['%s=%r' % (key, value)
12177
      for key, value in self.__dict__.iteritems()]
12178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12179
 
12180
  def __eq__(self, other):
12181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12182
 
12183
  def __ne__(self, other):
12184
    return not (self == other)
12185
 
2981 rajveer 12186
class getUserCount_args:
94 ashish 12187
  """
12188
  Attributes:
2981 rajveer 12189
   - userType
559 chandransh 12190
  """
12191
 
12192
  thrift_spec = (
12193
    None, # 0
2981 rajveer 12194
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12195
  )
12196
 
2981 rajveer 12197
  def __init__(self, userType=None,):
12198
    self.userType = userType
559 chandransh 12199
 
12200
  def read(self, iprot):
12201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12203
      return
12204
    iprot.readStructBegin()
12205
    while True:
12206
      (fname, ftype, fid) = iprot.readFieldBegin()
12207
      if ftype == TType.STOP:
12208
        break
12209
      if fid == 1:
2981 rajveer 12210
        if ftype == TType.I32:
12211
          self.userType = iprot.readI32();
559 chandransh 12212
        else:
12213
          iprot.skip(ftype)
12214
      else:
12215
        iprot.skip(ftype)
12216
      iprot.readFieldEnd()
12217
    iprot.readStructEnd()
12218
 
12219
  def write(self, oprot):
12220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12222
      return
2981 rajveer 12223
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12224
    if self.userType is not None:
2981 rajveer 12225
      oprot.writeFieldBegin('userType', TType.I32, 1)
12226
      oprot.writeI32(self.userType)
559 chandransh 12227
      oprot.writeFieldEnd()
12228
    oprot.writeFieldStop()
12229
    oprot.writeStructEnd()
12230
 
3431 rajveer 12231
  def validate(self):
12232
    return
12233
 
12234
 
559 chandransh 12235
  def __repr__(self):
12236
    L = ['%s=%r' % (key, value)
12237
      for key, value in self.__dict__.iteritems()]
12238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12239
 
12240
  def __eq__(self, other):
12241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12242
 
12243
  def __ne__(self, other):
12244
    return not (self == other)
12245
 
2981 rajveer 12246
class getUserCount_result:
94 ashish 12247
  """
12248
  Attributes:
12249
   - success
12250
  """
12251
 
12252
  thrift_spec = (
2981 rajveer 12253
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12254
  )
12255
 
2981 rajveer 12256
  def __init__(self, success=None,):
94 ashish 12257
    self.success = success
12258
 
12259
  def read(self, iprot):
12260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12262
      return
12263
    iprot.readStructBegin()
12264
    while True:
12265
      (fname, ftype, fid) = iprot.readFieldBegin()
12266
      if ftype == TType.STOP:
12267
        break
12268
      if fid == 0:
2981 rajveer 12269
        if ftype == TType.I64:
12270
          self.success = iprot.readI64();
94 ashish 12271
        else:
12272
          iprot.skip(ftype)
12273
      else:
12274
        iprot.skip(ftype)
12275
      iprot.readFieldEnd()
12276
    iprot.readStructEnd()
12277
 
12278
  def write(self, oprot):
12279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12281
      return
2981 rajveer 12282
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12283
    if self.success is not None:
2981 rajveer 12284
      oprot.writeFieldBegin('success', TType.I64, 0)
12285
      oprot.writeI64(self.success)
94 ashish 12286
      oprot.writeFieldEnd()
12287
    oprot.writeFieldStop()
12288
    oprot.writeStructEnd()
12289
 
3431 rajveer 12290
  def validate(self):
12291
    return
12292
 
12293
 
94 ashish 12294
  def __repr__(self):
12295
    L = ['%s=%r' % (key, value)
12296
      for key, value in self.__dict__.iteritems()]
12297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12298
 
12299
  def __eq__(self, other):
12300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12301
 
12302
  def __ne__(self, other):
12303
    return not (self == other)
12304
 
2981 rajveer 12305
class getAllUsers_args:
94 ashish 12306
  """
12307
  Attributes:
2981 rajveer 12308
   - userType
12309
   - startDate
12310
   - endDate
94 ashish 12311
  """
12312
 
12313
  thrift_spec = (
12314
    None, # 0
2981 rajveer 12315
    (1, TType.I32, 'userType', None, None, ), # 1
12316
    (2, TType.I64, 'startDate', None, None, ), # 2
12317
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12318
  )
12319
 
2981 rajveer 12320
  def __init__(self, userType=None, startDate=None, endDate=None,):
12321
    self.userType = userType
12322
    self.startDate = startDate
12323
    self.endDate = endDate
94 ashish 12324
 
12325
  def read(self, iprot):
12326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12328
      return
12329
    iprot.readStructBegin()
12330
    while True:
12331
      (fname, ftype, fid) = iprot.readFieldBegin()
12332
      if ftype == TType.STOP:
12333
        break
12334
      if fid == 1:
2981 rajveer 12335
        if ftype == TType.I32:
12336
          self.userType = iprot.readI32();
94 ashish 12337
        else:
12338
          iprot.skip(ftype)
12339
      elif fid == 2:
559 chandransh 12340
        if ftype == TType.I64:
2981 rajveer 12341
          self.startDate = iprot.readI64();
94 ashish 12342
        else:
12343
          iprot.skip(ftype)
2981 rajveer 12344
      elif fid == 3:
12345
        if ftype == TType.I64:
12346
          self.endDate = iprot.readI64();
12347
        else:
12348
          iprot.skip(ftype)
94 ashish 12349
      else:
12350
        iprot.skip(ftype)
12351
      iprot.readFieldEnd()
12352
    iprot.readStructEnd()
12353
 
12354
  def write(self, oprot):
12355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12357
      return
2981 rajveer 12358
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12359
    if self.userType is not None:
2981 rajveer 12360
      oprot.writeFieldBegin('userType', TType.I32, 1)
12361
      oprot.writeI32(self.userType)
94 ashish 12362
      oprot.writeFieldEnd()
3431 rajveer 12363
    if self.startDate is not None:
2981 rajveer 12364
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12365
      oprot.writeI64(self.startDate)
94 ashish 12366
      oprot.writeFieldEnd()
3431 rajveer 12367
    if self.endDate is not None:
2981 rajveer 12368
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12369
      oprot.writeI64(self.endDate)
12370
      oprot.writeFieldEnd()
94 ashish 12371
    oprot.writeFieldStop()
12372
    oprot.writeStructEnd()
12373
 
3431 rajveer 12374
  def validate(self):
12375
    return
12376
 
12377
 
94 ashish 12378
  def __repr__(self):
12379
    L = ['%s=%r' % (key, value)
12380
      for key, value in self.__dict__.iteritems()]
12381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12382
 
12383
  def __eq__(self, other):
12384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12385
 
12386
  def __ne__(self, other):
12387
    return not (self == other)
12388
 
2981 rajveer 12389
class getAllUsers_result:
94 ashish 12390
  """
12391
  Attributes:
12392
   - success
12393
  """
12394
 
12395
  thrift_spec = (
2981 rajveer 12396
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12397
  )
12398
 
2981 rajveer 12399
  def __init__(self, success=None,):
94 ashish 12400
    self.success = success
12401
 
12402
  def read(self, iprot):
12403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12405
      return
12406
    iprot.readStructBegin()
12407
    while True:
12408
      (fname, ftype, fid) = iprot.readFieldBegin()
12409
      if ftype == TType.STOP:
12410
        break
12411
      if fid == 0:
2981 rajveer 12412
        if ftype == TType.LIST:
12413
          self.success = []
3385 varun.gupt 12414
          (_etype124, _size121) = iprot.readListBegin()
12415
          for _i125 in xrange(_size121):
12416
            _elem126 = User()
12417
            _elem126.read(iprot)
12418
            self.success.append(_elem126)
2981 rajveer 12419
          iprot.readListEnd()
94 ashish 12420
        else:
12421
          iprot.skip(ftype)
12422
      else:
12423
        iprot.skip(ftype)
12424
      iprot.readFieldEnd()
12425
    iprot.readStructEnd()
12426
 
12427
  def write(self, oprot):
12428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12430
      return
2981 rajveer 12431
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12432
    if self.success is not None:
2981 rajveer 12433
      oprot.writeFieldBegin('success', TType.LIST, 0)
12434
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12435
      for iter127 in self.success:
12436
        iter127.write(oprot)
2981 rajveer 12437
      oprot.writeListEnd()
94 ashish 12438
      oprot.writeFieldEnd()
12439
    oprot.writeFieldStop()
12440
    oprot.writeStructEnd()
12441
 
3431 rajveer 12442
  def validate(self):
12443
    return
12444
 
12445
 
94 ashish 12446
  def __repr__(self):
12447
    L = ['%s=%r' % (key, value)
12448
      for key, value in self.__dict__.iteritems()]
12449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12450
 
12451
  def __eq__(self, other):
12452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12453
 
12454
  def __ne__(self, other):
12455
    return not (self == other)
12456
 
2981 rajveer 12457
class putUserNote_args:
130 ashish 12458
  """
12459
  Attributes:
2981 rajveer 12460
   - user_id
12461
   - entity_id
12462
   - slide
12463
   - note
130 ashish 12464
  """
94 ashish 12465
 
130 ashish 12466
  thrift_spec = (
12467
    None, # 0
2981 rajveer 12468
    (1, TType.I64, 'user_id', None, None, ), # 1
12469
    (2, TType.I64, 'entity_id', None, None, ), # 2
12470
    (3, TType.STRING, 'slide', None, None, ), # 3
12471
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12472
  )
12473
 
2981 rajveer 12474
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12475
    self.user_id = user_id
12476
    self.entity_id = entity_id
12477
    self.slide = slide
12478
    self.note = note
130 ashish 12479
 
12480
  def read(self, iprot):
12481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12483
      return
12484
    iprot.readStructBegin()
12485
    while True:
12486
      (fname, ftype, fid) = iprot.readFieldBegin()
12487
      if ftype == TType.STOP:
12488
        break
12489
      if fid == 1:
12490
        if ftype == TType.I64:
2981 rajveer 12491
          self.user_id = iprot.readI64();
130 ashish 12492
        else:
12493
          iprot.skip(ftype)
559 chandransh 12494
      elif fid == 2:
12495
        if ftype == TType.I64:
2981 rajveer 12496
          self.entity_id = iprot.readI64();
559 chandransh 12497
        else:
12498
          iprot.skip(ftype)
2981 rajveer 12499
      elif fid == 3:
12500
        if ftype == TType.STRING:
12501
          self.slide = iprot.readString();
12502
        else:
12503
          iprot.skip(ftype)
12504
      elif fid == 4:
12505
        if ftype == TType.STRING:
12506
          self.note = iprot.readString();
12507
        else:
12508
          iprot.skip(ftype)
130 ashish 12509
      else:
12510
        iprot.skip(ftype)
12511
      iprot.readFieldEnd()
12512
    iprot.readStructEnd()
12513
 
12514
  def write(self, oprot):
12515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12517
      return
2981 rajveer 12518
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12519
    if self.user_id is not None:
2981 rajveer 12520
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12521
      oprot.writeI64(self.user_id)
130 ashish 12522
      oprot.writeFieldEnd()
3431 rajveer 12523
    if self.entity_id is not None:
2981 rajveer 12524
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12525
      oprot.writeI64(self.entity_id)
559 chandransh 12526
      oprot.writeFieldEnd()
3431 rajveer 12527
    if self.slide is not None:
2981 rajveer 12528
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12529
      oprot.writeString(self.slide)
12530
      oprot.writeFieldEnd()
3431 rajveer 12531
    if self.note is not None:
2981 rajveer 12532
      oprot.writeFieldBegin('note', TType.STRING, 4)
12533
      oprot.writeString(self.note)
12534
      oprot.writeFieldEnd()
130 ashish 12535
    oprot.writeFieldStop()
12536
    oprot.writeStructEnd()
12537
 
3431 rajveer 12538
  def validate(self):
12539
    return
12540
 
12541
 
130 ashish 12542
  def __repr__(self):
12543
    L = ['%s=%r' % (key, value)
12544
      for key, value in self.__dict__.iteritems()]
12545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12546
 
12547
  def __eq__(self, other):
12548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12549
 
12550
  def __ne__(self, other):
12551
    return not (self == other)
12552
 
2981 rajveer 12553
class putUserNote_result:
559 chandransh 12554
 
12555
  thrift_spec = (
12556
  )
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
      else:
12568
        iprot.skip(ftype)
12569
      iprot.readFieldEnd()
12570
    iprot.readStructEnd()
12571
 
12572
  def write(self, oprot):
12573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12575
      return
2981 rajveer 12576
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12577
    oprot.writeFieldStop()
12578
    oprot.writeStructEnd()
12579
 
3431 rajveer 12580
  def validate(self):
12581
    return
12582
 
12583
 
559 chandransh 12584
  def __repr__(self):
12585
    L = ['%s=%r' % (key, value)
12586
      for key, value in self.__dict__.iteritems()]
12587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12588
 
12589
  def __eq__(self, other):
12590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12591
 
12592
  def __ne__(self, other):
12593
    return not (self == other)
12594
 
2981 rajveer 12595
class getUserNotes_args:
559 chandransh 12596
  """
12597
  Attributes:
2981 rajveer 12598
   - user_id
12599
   - entity_id
559 chandransh 12600
  """
12601
 
12602
  thrift_spec = (
12603
    None, # 0
2981 rajveer 12604
    (1, TType.I64, 'user_id', None, None, ), # 1
12605
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12606
  )
12607
 
2981 rajveer 12608
  def __init__(self, user_id=None, entity_id=None,):
12609
    self.user_id = user_id
12610
    self.entity_id = entity_id
559 chandransh 12611
 
12612
  def read(self, iprot):
12613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12615
      return
12616
    iprot.readStructBegin()
12617
    while True:
12618
      (fname, ftype, fid) = iprot.readFieldBegin()
12619
      if ftype == TType.STOP:
12620
        break
12621
      if fid == 1:
12622
        if ftype == TType.I64:
2981 rajveer 12623
          self.user_id = iprot.readI64();
559 chandransh 12624
        else:
12625
          iprot.skip(ftype)
12626
      elif fid == 2:
12627
        if ftype == TType.I64:
2981 rajveer 12628
          self.entity_id = iprot.readI64();
559 chandransh 12629
        else:
12630
          iprot.skip(ftype)
12631
      else:
12632
        iprot.skip(ftype)
12633
      iprot.readFieldEnd()
12634
    iprot.readStructEnd()
12635
 
12636
  def write(self, oprot):
12637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12639
      return
2981 rajveer 12640
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12641
    if self.user_id is not None:
2981 rajveer 12642
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12643
      oprot.writeI64(self.user_id)
559 chandransh 12644
      oprot.writeFieldEnd()
3431 rajveer 12645
    if self.entity_id is not None:
2981 rajveer 12646
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12647
      oprot.writeI64(self.entity_id)
559 chandransh 12648
      oprot.writeFieldEnd()
12649
    oprot.writeFieldStop()
12650
    oprot.writeStructEnd()
12651
 
3431 rajveer 12652
  def validate(self):
12653
    return
12654
 
12655
 
559 chandransh 12656
  def __repr__(self):
12657
    L = ['%s=%r' % (key, value)
12658
      for key, value in self.__dict__.iteritems()]
12659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12660
 
12661
  def __eq__(self, other):
12662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12663
 
12664
  def __ne__(self, other):
12665
    return not (self == other)
12666
 
2981 rajveer 12667
class getUserNotes_result:
12668
  """
12669
  Attributes:
12670
   - success
12671
  """
559 chandransh 12672
 
12673
  thrift_spec = (
2981 rajveer 12674
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12675
  )
12676
 
2981 rajveer 12677
  def __init__(self, success=None,):
12678
    self.success = success
12679
 
559 chandransh 12680
  def read(self, iprot):
12681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12683
      return
12684
    iprot.readStructBegin()
12685
    while True:
12686
      (fname, ftype, fid) = iprot.readFieldBegin()
12687
      if ftype == TType.STOP:
12688
        break
2981 rajveer 12689
      if fid == 0:
12690
        if ftype == TType.LIST:
12691
          self.success = []
3385 varun.gupt 12692
          (_etype131, _size128) = iprot.readListBegin()
12693
          for _i132 in xrange(_size128):
12694
            _elem133 = UserNote()
12695
            _elem133.read(iprot)
12696
            self.success.append(_elem133)
2981 rajveer 12697
          iprot.readListEnd()
12698
        else:
12699
          iprot.skip(ftype)
559 chandransh 12700
      else:
12701
        iprot.skip(ftype)
12702
      iprot.readFieldEnd()
12703
    iprot.readStructEnd()
12704
 
12705
  def write(self, oprot):
12706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12708
      return
2981 rajveer 12709
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12710
    if self.success is not None:
2981 rajveer 12711
      oprot.writeFieldBegin('success', TType.LIST, 0)
12712
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12713
      for iter134 in self.success:
12714
        iter134.write(oprot)
2981 rajveer 12715
      oprot.writeListEnd()
12716
      oprot.writeFieldEnd()
559 chandransh 12717
    oprot.writeFieldStop()
12718
    oprot.writeStructEnd()
12719
 
3431 rajveer 12720
  def validate(self):
12721
    return
12722
 
12723
 
559 chandransh 12724
  def __repr__(self):
12725
    L = ['%s=%r' % (key, value)
12726
      for key, value in self.__dict__.iteritems()]
12727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12728
 
12729
  def __eq__(self, other):
12730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12731
 
12732
  def __ne__(self, other):
12733
    return not (self == other)
12734
 
2981 rajveer 12735
class getMyResearchItems_args:
559 chandransh 12736
  """
12737
  Attributes:
772 rajveer 12738
   - userId
559 chandransh 12739
  """
12740
 
12741
  thrift_spec = (
12742
    None, # 0
772 rajveer 12743
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12744
  )
12745
 
772 rajveer 12746
  def __init__(self, userId=None,):
12747
    self.userId = userId
559 chandransh 12748
 
12749
  def read(self, iprot):
12750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12752
      return
12753
    iprot.readStructBegin()
12754
    while True:
12755
      (fname, ftype, fid) = iprot.readFieldBegin()
12756
      if ftype == TType.STOP:
12757
        break
12758
      if fid == 1:
12759
        if ftype == TType.I64:
772 rajveer 12760
          self.userId = iprot.readI64();
559 chandransh 12761
        else:
12762
          iprot.skip(ftype)
12763
      else:
12764
        iprot.skip(ftype)
12765
      iprot.readFieldEnd()
12766
    iprot.readStructEnd()
12767
 
12768
  def write(self, oprot):
12769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12771
      return
2981 rajveer 12772
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12773
    if self.userId is not None:
772 rajveer 12774
      oprot.writeFieldBegin('userId', TType.I64, 1)
12775
      oprot.writeI64(self.userId)
559 chandransh 12776
      oprot.writeFieldEnd()
12777
    oprot.writeFieldStop()
12778
    oprot.writeStructEnd()
12779
 
3431 rajveer 12780
  def validate(self):
12781
    return
12782
 
12783
 
559 chandransh 12784
  def __repr__(self):
12785
    L = ['%s=%r' % (key, value)
12786
      for key, value in self.__dict__.iteritems()]
12787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12788
 
12789
  def __eq__(self, other):
12790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12791
 
12792
  def __ne__(self, other):
12793
    return not (self == other)
12794
 
2981 rajveer 12795
class getMyResearchItems_result:
559 chandransh 12796
  """
12797
  Attributes:
130 ashish 12798
   - success
559 chandransh 12799
   - scx
130 ashish 12800
  """
12801
 
12802
  thrift_spec = (
2981 rajveer 12803
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12804
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12805
  )
12806
 
559 chandransh 12807
  def __init__(self, success=None, scx=None,):
130 ashish 12808
    self.success = success
559 chandransh 12809
    self.scx = scx
130 ashish 12810
 
12811
  def read(self, iprot):
12812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12814
      return
12815
    iprot.readStructBegin()
12816
    while True:
12817
      (fname, ftype, fid) = iprot.readFieldBegin()
12818
      if ftype == TType.STOP:
12819
        break
12820
      if fid == 0:
2981 rajveer 12821
        if ftype == TType.LIST:
12822
          self.success = []
3385 varun.gupt 12823
          (_etype138, _size135) = iprot.readListBegin()
12824
          for _i139 in xrange(_size135):
12825
            _elem140 = iprot.readI64();
12826
            self.success.append(_elem140)
2981 rajveer 12827
          iprot.readListEnd()
130 ashish 12828
        else:
12829
          iprot.skip(ftype)
12830
      elif fid == 1:
12831
        if ftype == TType.STRUCT:
559 chandransh 12832
          self.scx = WidgetException()
12833
          self.scx.read(iprot)
130 ashish 12834
        else:
12835
          iprot.skip(ftype)
12836
      else:
12837
        iprot.skip(ftype)
12838
      iprot.readFieldEnd()
12839
    iprot.readStructEnd()
12840
 
12841
  def write(self, oprot):
12842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12844
      return
2981 rajveer 12845
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12846
    if self.success is not None:
2981 rajveer 12847
      oprot.writeFieldBegin('success', TType.LIST, 0)
12848
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 12849
      for iter141 in self.success:
12850
        oprot.writeI64(iter141)
2981 rajveer 12851
      oprot.writeListEnd()
130 ashish 12852
      oprot.writeFieldEnd()
3431 rajveer 12853
    if self.scx is not None:
559 chandransh 12854
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12855
      self.scx.write(oprot)
130 ashish 12856
      oprot.writeFieldEnd()
12857
    oprot.writeFieldStop()
12858
    oprot.writeStructEnd()
12859
 
3431 rajveer 12860
  def validate(self):
12861
    return
12862
 
12863
 
130 ashish 12864
  def __repr__(self):
12865
    L = ['%s=%r' % (key, value)
12866
      for key, value in self.__dict__.iteritems()]
12867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12868
 
12869
  def __eq__(self, other):
12870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12871
 
12872
  def __ne__(self, other):
12873
    return not (self == other)
12874
 
2981 rajveer 12875
class updateMyResearch_args:
130 ashish 12876
  """
12877
  Attributes:
2981 rajveer 12878
   - userId
12879
   - itemId
130 ashish 12880
  """
12881
 
12882
  thrift_spec = (
12883
    None, # 0
2981 rajveer 12884
    (1, TType.I64, 'userId', None, None, ), # 1
12885
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12886
  )
12887
 
2981 rajveer 12888
  def __init__(self, userId=None, itemId=None,):
12889
    self.userId = userId
12890
    self.itemId = itemId
130 ashish 12891
 
12892
  def read(self, iprot):
12893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12895
      return
12896
    iprot.readStructBegin()
12897
    while True:
12898
      (fname, ftype, fid) = iprot.readFieldBegin()
12899
      if ftype == TType.STOP:
12900
        break
12901
      if fid == 1:
559 chandransh 12902
        if ftype == TType.I64:
2981 rajveer 12903
          self.userId = iprot.readI64();
130 ashish 12904
        else:
12905
          iprot.skip(ftype)
12906
      elif fid == 2:
559 chandransh 12907
        if ftype == TType.I64:
2981 rajveer 12908
          self.itemId = iprot.readI64();
559 chandransh 12909
        else:
12910
          iprot.skip(ftype)
130 ashish 12911
      else:
12912
        iprot.skip(ftype)
12913
      iprot.readFieldEnd()
12914
    iprot.readStructEnd()
12915
 
12916
  def write(self, oprot):
12917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12919
      return
2981 rajveer 12920
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12921
    if self.userId is not None:
2981 rajveer 12922
      oprot.writeFieldBegin('userId', TType.I64, 1)
12923
      oprot.writeI64(self.userId)
130 ashish 12924
      oprot.writeFieldEnd()
3431 rajveer 12925
    if self.itemId is not None:
2981 rajveer 12926
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12927
      oprot.writeI64(self.itemId)
130 ashish 12928
      oprot.writeFieldEnd()
12929
    oprot.writeFieldStop()
12930
    oprot.writeStructEnd()
12931
 
3431 rajveer 12932
  def validate(self):
12933
    return
12934
 
12935
 
130 ashish 12936
  def __repr__(self):
12937
    L = ['%s=%r' % (key, value)
12938
      for key, value in self.__dict__.iteritems()]
12939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12940
 
12941
  def __eq__(self, other):
12942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12943
 
12944
  def __ne__(self, other):
12945
    return not (self == other)
12946
 
2981 rajveer 12947
class updateMyResearch_result:
12948
  """
12949
  Attributes:
12950
   - success
12951
   - scx
12952
  """
559 chandransh 12953
 
12954
  thrift_spec = (
2981 rajveer 12955
    (0, TType.BOOL, 'success', None, None, ), # 0
12956
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12957
  )
12958
 
2981 rajveer 12959
  def __init__(self, success=None, scx=None,):
12960
    self.success = success
12961
    self.scx = scx
12962
 
559 chandransh 12963
  def read(self, iprot):
12964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12966
      return
12967
    iprot.readStructBegin()
12968
    while True:
12969
      (fname, ftype, fid) = iprot.readFieldBegin()
12970
      if ftype == TType.STOP:
12971
        break
2981 rajveer 12972
      if fid == 0:
12973
        if ftype == TType.BOOL:
12974
          self.success = iprot.readBool();
12975
        else:
12976
          iprot.skip(ftype)
12977
      elif fid == 1:
12978
        if ftype == TType.STRUCT:
12979
          self.scx = WidgetException()
12980
          self.scx.read(iprot)
12981
        else:
12982
          iprot.skip(ftype)
559 chandransh 12983
      else:
12984
        iprot.skip(ftype)
12985
      iprot.readFieldEnd()
12986
    iprot.readStructEnd()
12987
 
12988
  def write(self, oprot):
12989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12991
      return
2981 rajveer 12992
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12993
    if self.success is not None:
2981 rajveer 12994
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12995
      oprot.writeBool(self.success)
12996
      oprot.writeFieldEnd()
3431 rajveer 12997
    if self.scx is not None:
2981 rajveer 12998
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12999
      self.scx.write(oprot)
13000
      oprot.writeFieldEnd()
559 chandransh 13001
    oprot.writeFieldStop()
13002
    oprot.writeStructEnd()
13003
 
3431 rajveer 13004
  def validate(self):
13005
    return
13006
 
13007
 
559 chandransh 13008
  def __repr__(self):
13009
    L = ['%s=%r' % (key, value)
13010
      for key, value in self.__dict__.iteritems()]
13011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13012
 
13013
  def __eq__(self, other):
13014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13015
 
13016
  def __ne__(self, other):
13017
    return not (self == other)
13018
 
2981 rajveer 13019
class deleteItemFromMyResearch_args:
1596 ankur.sing 13020
  """
13021
  Attributes:
2981 rajveer 13022
   - userId
13023
   - itemId
1596 ankur.sing 13024
  """
559 chandransh 13025
 
1596 ankur.sing 13026
  thrift_spec = (
13027
    None, # 0
2981 rajveer 13028
    (1, TType.I64, 'userId', None, None, ), # 1
13029
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13030
  )
13031
 
2981 rajveer 13032
  def __init__(self, userId=None, itemId=None,):
13033
    self.userId = userId
13034
    self.itemId = itemId
1596 ankur.sing 13035
 
13036
  def read(self, iprot):
13037
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13038
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13039
      return
13040
    iprot.readStructBegin()
13041
    while True:
13042
      (fname, ftype, fid) = iprot.readFieldBegin()
13043
      if ftype == TType.STOP:
13044
        break
13045
      if fid == 1:
2981 rajveer 13046
        if ftype == TType.I64:
13047
          self.userId = iprot.readI64();
1596 ankur.sing 13048
        else:
13049
          iprot.skip(ftype)
2981 rajveer 13050
      elif fid == 2:
13051
        if ftype == TType.I64:
13052
          self.itemId = iprot.readI64();
13053
        else:
13054
          iprot.skip(ftype)
1596 ankur.sing 13055
      else:
13056
        iprot.skip(ftype)
13057
      iprot.readFieldEnd()
13058
    iprot.readStructEnd()
13059
 
13060
  def write(self, oprot):
13061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13063
      return
2981 rajveer 13064
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13065
    if self.userId is not None:
2981 rajveer 13066
      oprot.writeFieldBegin('userId', TType.I64, 1)
13067
      oprot.writeI64(self.userId)
1596 ankur.sing 13068
      oprot.writeFieldEnd()
3431 rajveer 13069
    if self.itemId is not None:
2981 rajveer 13070
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13071
      oprot.writeI64(self.itemId)
13072
      oprot.writeFieldEnd()
1596 ankur.sing 13073
    oprot.writeFieldStop()
13074
    oprot.writeStructEnd()
13075
 
3431 rajveer 13076
  def validate(self):
13077
    return
13078
 
13079
 
1596 ankur.sing 13080
  def __repr__(self):
13081
    L = ['%s=%r' % (key, value)
13082
      for key, value in self.__dict__.iteritems()]
13083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13084
 
13085
  def __eq__(self, other):
13086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13087
 
13088
  def __ne__(self, other):
13089
    return not (self == other)
13090
 
2981 rajveer 13091
class deleteItemFromMyResearch_result:
1596 ankur.sing 13092
  """
13093
  Attributes:
2981 rajveer 13094
   - scx
1596 ankur.sing 13095
  """
13096
 
13097
  thrift_spec = (
2981 rajveer 13098
    None, # 0
13099
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13100
  )
13101
 
2981 rajveer 13102
  def __init__(self, scx=None,):
13103
    self.scx = scx
1596 ankur.sing 13104
 
13105
  def read(self, iprot):
13106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13108
      return
13109
    iprot.readStructBegin()
13110
    while True:
13111
      (fname, ftype, fid) = iprot.readFieldBegin()
13112
      if ftype == TType.STOP:
13113
        break
2981 rajveer 13114
      if fid == 1:
13115
        if ftype == TType.STRUCT:
13116
          self.scx = WidgetException()
13117
          self.scx.read(iprot)
1596 ankur.sing 13118
        else:
13119
          iprot.skip(ftype)
13120
      else:
13121
        iprot.skip(ftype)
13122
      iprot.readFieldEnd()
13123
    iprot.readStructEnd()
13124
 
13125
  def write(self, oprot):
13126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13128
      return
2981 rajveer 13129
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13130
    if self.scx is not None:
2981 rajveer 13131
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13132
      self.scx.write(oprot)
1596 ankur.sing 13133
      oprot.writeFieldEnd()
13134
    oprot.writeFieldStop()
13135
    oprot.writeStructEnd()
13136
 
3431 rajveer 13137
  def validate(self):
13138
    return
13139
 
13140
 
1596 ankur.sing 13141
  def __repr__(self):
13142
    L = ['%s=%r' % (key, value)
13143
      for key, value in self.__dict__.iteritems()]
13144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13145
 
13146
  def __eq__(self, other):
13147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13148
 
13149
  def __ne__(self, other):
13150
    return not (self == other)
13151
 
2981 rajveer 13152
class getBrowseHistoryItems_args:
1673 ankur.sing 13153
  """
13154
  Attributes:
2981 rajveer 13155
   - userId
1673 ankur.sing 13156
  """
1596 ankur.sing 13157
 
1673 ankur.sing 13158
  thrift_spec = (
13159
    None, # 0
2981 rajveer 13160
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13161
  )
13162
 
2981 rajveer 13163
  def __init__(self, userId=None,):
13164
    self.userId = userId
1673 ankur.sing 13165
 
13166
  def read(self, iprot):
13167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13169
      return
13170
    iprot.readStructBegin()
13171
    while True:
13172
      (fname, ftype, fid) = iprot.readFieldBegin()
13173
      if ftype == TType.STOP:
13174
        break
13175
      if fid == 1:
1891 ankur.sing 13176
        if ftype == TType.I64:
2981 rajveer 13177
          self.userId = iprot.readI64();
1891 ankur.sing 13178
        else:
13179
          iprot.skip(ftype)
1673 ankur.sing 13180
      else:
13181
        iprot.skip(ftype)
13182
      iprot.readFieldEnd()
13183
    iprot.readStructEnd()
13184
 
13185
  def write(self, oprot):
13186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13188
      return
2981 rajveer 13189
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13190
    if self.userId is not None:
2981 rajveer 13191
      oprot.writeFieldBegin('userId', TType.I64, 1)
13192
      oprot.writeI64(self.userId)
1673 ankur.sing 13193
      oprot.writeFieldEnd()
13194
    oprot.writeFieldStop()
13195
    oprot.writeStructEnd()
13196
 
3431 rajveer 13197
  def validate(self):
13198
    return
13199
 
13200
 
1673 ankur.sing 13201
  def __repr__(self):
13202
    L = ['%s=%r' % (key, value)
13203
      for key, value in self.__dict__.iteritems()]
13204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13205
 
13206
  def __eq__(self, other):
13207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13208
 
13209
  def __ne__(self, other):
13210
    return not (self == other)
13211
 
2981 rajveer 13212
class getBrowseHistoryItems_result:
1673 ankur.sing 13213
  """
13214
  Attributes:
13215
   - success
2981 rajveer 13216
   - scx
1673 ankur.sing 13217
  """
13218
 
13219
  thrift_spec = (
2981 rajveer 13220
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13221
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13222
  )
13223
 
2981 rajveer 13224
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13225
    self.success = success
2981 rajveer 13226
    self.scx = scx
1673 ankur.sing 13227
 
13228
  def read(self, iprot):
13229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13231
      return
13232
    iprot.readStructBegin()
13233
    while True:
13234
      (fname, ftype, fid) = iprot.readFieldBegin()
13235
      if ftype == TType.STOP:
13236
        break
13237
      if fid == 0:
13238
        if ftype == TType.LIST:
13239
          self.success = []
3385 varun.gupt 13240
          (_etype145, _size142) = iprot.readListBegin()
13241
          for _i146 in xrange(_size142):
13242
            _elem147 = iprot.readI64();
13243
            self.success.append(_elem147)
1673 ankur.sing 13244
          iprot.readListEnd()
13245
        else:
13246
          iprot.skip(ftype)
2981 rajveer 13247
      elif fid == 1:
13248
        if ftype == TType.STRUCT:
13249
          self.scx = WidgetException()
13250
          self.scx.read(iprot)
13251
        else:
13252
          iprot.skip(ftype)
1673 ankur.sing 13253
      else:
13254
        iprot.skip(ftype)
13255
      iprot.readFieldEnd()
13256
    iprot.readStructEnd()
13257
 
13258
  def write(self, oprot):
13259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13261
      return
2981 rajveer 13262
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13263
    if self.success is not None:
1673 ankur.sing 13264
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13265
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 13266
      for iter148 in self.success:
13267
        oprot.writeI64(iter148)
1673 ankur.sing 13268
      oprot.writeListEnd()
13269
      oprot.writeFieldEnd()
3431 rajveer 13270
    if self.scx is not None:
2981 rajveer 13271
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13272
      self.scx.write(oprot)
2642 varun.gupt 13273
      oprot.writeFieldEnd()
13274
    oprot.writeFieldStop()
13275
    oprot.writeStructEnd()
13276
 
3431 rajveer 13277
  def validate(self):
13278
    return
13279
 
13280
 
2642 varun.gupt 13281
  def __repr__(self):
13282
    L = ['%s=%r' % (key, value)
13283
      for key, value in self.__dict__.iteritems()]
13284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13285
 
13286
  def __eq__(self, other):
13287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13288
 
13289
  def __ne__(self, other):
13290
    return not (self == other)
13291
 
2981 rajveer 13292
class updateBrowseHistory_args:
2642 varun.gupt 13293
  """
13294
  Attributes:
2981 rajveer 13295
   - userId
13296
   - itemId
2642 varun.gupt 13297
  """
13298
 
13299
  thrift_spec = (
13300
    None, # 0
2981 rajveer 13301
    (1, TType.I64, 'userId', None, None, ), # 1
13302
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13303
  )
13304
 
2981 rajveer 13305
  def __init__(self, userId=None, itemId=None,):
13306
    self.userId = userId
13307
    self.itemId = itemId
2642 varun.gupt 13308
 
13309
  def read(self, iprot):
13310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13312
      return
13313
    iprot.readStructBegin()
13314
    while True:
13315
      (fname, ftype, fid) = iprot.readFieldBegin()
13316
      if ftype == TType.STOP:
13317
        break
13318
      if fid == 1:
13319
        if ftype == TType.I64:
2981 rajveer 13320
          self.userId = iprot.readI64();
2642 varun.gupt 13321
        else:
13322
          iprot.skip(ftype)
13323
      elif fid == 2:
13324
        if ftype == TType.I64:
2981 rajveer 13325
          self.itemId = iprot.readI64();
2642 varun.gupt 13326
        else:
13327
          iprot.skip(ftype)
13328
      else:
13329
        iprot.skip(ftype)
13330
      iprot.readFieldEnd()
13331
    iprot.readStructEnd()
13332
 
13333
  def write(self, oprot):
13334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13336
      return
2981 rajveer 13337
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13338
    if self.userId is not None:
2981 rajveer 13339
      oprot.writeFieldBegin('userId', TType.I64, 1)
13340
      oprot.writeI64(self.userId)
2642 varun.gupt 13341
      oprot.writeFieldEnd()
3431 rajveer 13342
    if self.itemId is not None:
2981 rajveer 13343
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13344
      oprot.writeI64(self.itemId)
2642 varun.gupt 13345
      oprot.writeFieldEnd()
13346
    oprot.writeFieldStop()
13347
    oprot.writeStructEnd()
13348
 
3431 rajveer 13349
  def validate(self):
13350
    return
13351
 
13352
 
2642 varun.gupt 13353
  def __repr__(self):
13354
    L = ['%s=%r' % (key, value)
13355
      for key, value in self.__dict__.iteritems()]
13356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13357
 
13358
  def __eq__(self, other):
13359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13360
 
13361
  def __ne__(self, other):
13362
    return not (self == other)
13363
 
2981 rajveer 13364
class updateBrowseHistory_result:
2642 varun.gupt 13365
 
13366
  thrift_spec = (
13367
  )
13368
 
13369
  def read(self, iprot):
13370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13372
      return
13373
    iprot.readStructBegin()
13374
    while True:
13375
      (fname, ftype, fid) = iprot.readFieldBegin()
13376
      if ftype == TType.STOP:
13377
        break
13378
      else:
13379
        iprot.skip(ftype)
13380
      iprot.readFieldEnd()
13381
    iprot.readStructEnd()
13382
 
13383
  def write(self, oprot):
13384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13386
      return
2981 rajveer 13387
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13388
    oprot.writeFieldStop()
13389
    oprot.writeStructEnd()
13390
 
3431 rajveer 13391
  def validate(self):
13392
    return
13393
 
13394
 
2642 varun.gupt 13395
  def __repr__(self):
13396
    L = ['%s=%r' % (key, value)
13397
      for key, value in self.__dict__.iteritems()]
13398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13399
 
13400
  def __eq__(self, other):
13401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13402
 
13403
  def __ne__(self, other):
13404
    return not (self == other)
13405
 
3385 varun.gupt 13406
class getCartsWithCouponCount_args:
13407
  """
13408
  Attributes:
13409
   - couponCode
13410
  """
2642 varun.gupt 13411
 
3385 varun.gupt 13412
  thrift_spec = (
13413
    None, # 0
13414
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13415
  )
13416
 
13417
  def __init__(self, couponCode=None,):
13418
    self.couponCode = couponCode
13419
 
13420
  def read(self, iprot):
13421
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13422
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13423
      return
13424
    iprot.readStructBegin()
13425
    while True:
13426
      (fname, ftype, fid) = iprot.readFieldBegin()
13427
      if ftype == TType.STOP:
13428
        break
13429
      if fid == 1:
13430
        if ftype == TType.STRING:
13431
          self.couponCode = iprot.readString();
13432
        else:
13433
          iprot.skip(ftype)
13434
      else:
13435
        iprot.skip(ftype)
13436
      iprot.readFieldEnd()
13437
    iprot.readStructEnd()
13438
 
13439
  def write(self, oprot):
13440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13442
      return
13443
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13444
    if self.couponCode is not None:
3385 varun.gupt 13445
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13446
      oprot.writeString(self.couponCode)
13447
      oprot.writeFieldEnd()
13448
    oprot.writeFieldStop()
13449
    oprot.writeStructEnd()
13450
 
3431 rajveer 13451
  def validate(self):
13452
    return
13453
 
13454
 
3385 varun.gupt 13455
  def __repr__(self):
13456
    L = ['%s=%r' % (key, value)
13457
      for key, value in self.__dict__.iteritems()]
13458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13459
 
13460
  def __eq__(self, other):
13461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13462
 
13463
  def __ne__(self, other):
13464
    return not (self == other)
13465
 
13466
class getCartsWithCouponCount_result:
13467
  """
13468
  Attributes:
13469
   - success
13470
  """
13471
 
13472
  thrift_spec = (
13473
    (0, TType.I64, 'success', None, None, ), # 0
13474
  )
13475
 
13476
  def __init__(self, success=None,):
13477
    self.success = success
13478
 
13479
  def read(self, iprot):
13480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13482
      return
13483
    iprot.readStructBegin()
13484
    while True:
13485
      (fname, ftype, fid) = iprot.readFieldBegin()
13486
      if ftype == TType.STOP:
13487
        break
13488
      if fid == 0:
13489
        if ftype == TType.I64:
13490
          self.success = iprot.readI64();
13491
        else:
13492
          iprot.skip(ftype)
13493
      else:
13494
        iprot.skip(ftype)
13495
      iprot.readFieldEnd()
13496
    iprot.readStructEnd()
13497
 
13498
  def write(self, oprot):
13499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13501
      return
13502
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13503
    if self.success is not None:
3385 varun.gupt 13504
      oprot.writeFieldBegin('success', TType.I64, 0)
13505
      oprot.writeI64(self.success)
13506
      oprot.writeFieldEnd()
13507
    oprot.writeFieldStop()
13508
    oprot.writeStructEnd()
13509
 
3431 rajveer 13510
  def validate(self):
13511
    return
13512
 
13513
 
3385 varun.gupt 13514
  def __repr__(self):
13515
    L = ['%s=%r' % (key, value)
13516
      for key, value in self.__dict__.iteritems()]
13517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13518
 
13519
  def __eq__(self, other):
13520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13521
 
13522
  def __ne__(self, other):
13523
    return not (self == other)
3499 mandeep.dh 13524
 
13525
class increaseTrustLevel_args:
13526
  """
13527
  Attributes:
13528
   - userId
13529
   - trustLevelDelta
13530
  """
13531
 
13532
  thrift_spec = (
13533
    None, # 0
13534
    (1, TType.I64, 'userId', None, None, ), # 1
13535
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13536
  )
13537
 
13538
  def __init__(self, userId=None, trustLevelDelta=None,):
13539
    self.userId = userId
13540
    self.trustLevelDelta = trustLevelDelta
13541
 
13542
  def read(self, iprot):
13543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13545
      return
13546
    iprot.readStructBegin()
13547
    while True:
13548
      (fname, ftype, fid) = iprot.readFieldBegin()
13549
      if ftype == TType.STOP:
13550
        break
13551
      if fid == 1:
13552
        if ftype == TType.I64:
13553
          self.userId = iprot.readI64();
13554
        else:
13555
          iprot.skip(ftype)
13556
      elif fid == 2:
13557
        if ftype == TType.DOUBLE:
13558
          self.trustLevelDelta = iprot.readDouble();
13559
        else:
13560
          iprot.skip(ftype)
13561
      else:
13562
        iprot.skip(ftype)
13563
      iprot.readFieldEnd()
13564
    iprot.readStructEnd()
13565
 
13566
  def write(self, oprot):
13567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13569
      return
13570
    oprot.writeStructBegin('increaseTrustLevel_args')
13571
    if self.userId is not None:
13572
      oprot.writeFieldBegin('userId', TType.I64, 1)
13573
      oprot.writeI64(self.userId)
13574
      oprot.writeFieldEnd()
13575
    if self.trustLevelDelta is not None:
13576
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13577
      oprot.writeDouble(self.trustLevelDelta)
13578
      oprot.writeFieldEnd()
13579
    oprot.writeFieldStop()
13580
    oprot.writeStructEnd()
13581
 
13582
  def validate(self):
13583
    return
13584
 
13585
 
13586
  def __repr__(self):
13587
    L = ['%s=%r' % (key, value)
13588
      for key, value in self.__dict__.iteritems()]
13589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13590
 
13591
  def __eq__(self, other):
13592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13593
 
13594
  def __ne__(self, other):
13595
    return not (self == other)
13596
 
13597
class increaseTrustLevel_result:
13598
 
13599
  thrift_spec = (
13600
  )
13601
 
13602
  def read(self, iprot):
13603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13605
      return
13606
    iprot.readStructBegin()
13607
    while True:
13608
      (fname, ftype, fid) = iprot.readFieldBegin()
13609
      if ftype == TType.STOP:
13610
        break
13611
      else:
13612
        iprot.skip(ftype)
13613
      iprot.readFieldEnd()
13614
    iprot.readStructEnd()
13615
 
13616
  def write(self, oprot):
13617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13619
      return
13620
    oprot.writeStructBegin('increaseTrustLevel_result')
13621
    oprot.writeFieldStop()
13622
    oprot.writeStructEnd()
13623
 
13624
  def validate(self):
13625
    return
13626
 
13627
 
13628
  def __repr__(self):
13629
    L = ['%s=%r' % (key, value)
13630
      for key, value in self.__dict__.iteritems()]
13631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13632
 
13633
  def __eq__(self, other):
13634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13635
 
13636
  def __ne__(self, other):
13637
    return not (self == other)