Subversion Repositories SmartDukaan

Rev

Rev 4189 | Rev 5326 | 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
 
3557 rajveer 371
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
3557 rajveer 377
     - sourceId
130 ashish 378
    """
379
    pass
380
 
559 chandransh 381
  def deleteItemFromCart(self, cartId, itemId):
382
    """
383
    Parameters:
384
     - cartId
385
     - itemId
386
    """
387
    pass
130 ashish 388
 
559 chandransh 389
  def changeItemStatus(self, cartId, itemId, status):
390
    """
391
    Parameters:
392
     - cartId
393
     - itemId
394
     - status
395
    """
396
    pass
397
 
398
  def addAddressToCart(self, cartId, addressId):
399
    """
400
    Parameters:
401
     - cartId
402
     - addressId
403
    """
404
    pass
405
 
1976 varun.gupt 406
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
407
    """
408
    Parameters:
409
     - cartId
410
     - couponCode
411
     - totalPrice
412
     - discountedPrice
413
    """
414
    pass
415
 
416
  def removeCoupon(self, cartId):
417
    """
418
    Parameters:
419
     - cartId
420
    """
421
    pass
422
 
3554 varun.gupt 423
  def deleteDiscountsFromCart(self, cartId):
424
    """
425
    Deletes all the discounts associated with the cart
426
 
427
    Parameters:
428
     - cartId
429
    """
430
    pass
431
 
432
  def saveDiscounts(self, discounts):
433
    """
434
    Accepts a list of thrift objects of Discount type and saves them
435
 
436
    Parameters:
437
     - discounts
438
    """
439
    pass
440
 
3858 vikas 441
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
559 chandransh 442
    """
690 chandransh 443
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 444
 
559 chandransh 445
    Parameters:
446
     - cartId
2815 vikas 447
     - sessionSource
448
     - sessionStartTime
3858 vikas 449
     - firstSource
450
     - firstSourceTime
559 chandransh 451
    """
452
    pass
453
 
3557 rajveer 454
  def validateCart(self, cartId, sourceId):
559 chandransh 455
    """
690 chandransh 456
    Validates that:
457
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 458
    2. All of the lines in the cart are active items.
690 chandransh 459
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 460
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 461
 
559 chandransh 462
    Parameters:
463
     - cartId
3557 rajveer 464
     - sourceId
559 chandransh 465
    """
466
    pass
467
 
690 chandransh 468
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 469
    """
690 chandransh 470
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 471
 
575 chandransh 472
    Parameters:
690 chandransh 473
     - fromCartId
474
     - toCartId
475
    """
476
    pass
477
 
478
  def checkOut(self, cartId):
479
    """
480
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 481
 
690 chandransh 482
    Parameters:
575 chandransh 483
     - cartId
484
    """
485
    pass
486
 
690 chandransh 487
  def resetCart(self, cartId, items):
559 chandransh 488
    """
690 chandransh 489
    The second parameter is a map of item ids and their quantities which have been successfully processed.
490
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 491
 
559 chandransh 492
    Parameters:
690 chandransh 493
     - cartId
494
     - items
559 chandransh 495
    """
496
    pass
497
 
2981 rajveer 498
  def getUserCount(self, userType):
559 chandransh 499
    """
2981 rajveer 500
    Returns number of registered users.
501
    If userType = null, then it returns count of all users, including anonymous
502
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
503
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 504
 
559 chandransh 505
    Parameters:
2981 rajveer 506
     - userType
559 chandransh 507
    """
508
    pass
509
 
2981 rajveer 510
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 511
    """
2981 rajveer 512
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
513
    If any of startDate or endDate is -1, then that filter is ignored.
514
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 515
 
516
 
559 chandransh 517
    Parameters:
2981 rajveer 518
     - userType
519
     - startDate
520
     - endDate
559 chandransh 521
    """
522
    pass
523
 
2981 rajveer 524
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 525
    """
526
    Parameters:
2981 rajveer 527
     - user_id
528
     - entity_id
529
     - slide
530
     - note
559 chandransh 531
    """
532
    pass
533
 
2981 rajveer 534
  def getUserNotes(self, user_id, entity_id):
559 chandransh 535
    """
536
    Parameters:
2981 rajveer 537
     - user_id
538
     - entity_id
559 chandransh 539
    """
540
    pass
541
 
2981 rajveer 542
  def getMyResearchItems(self, userId):
559 chandransh 543
    """
2981 rajveer 544
    Returns list of item ids in myresearch for the user
3431 rajveer 545
 
559 chandransh 546
    Parameters:
547
     - userId
548
    """
549
    pass
550
 
2981 rajveer 551
  def updateMyResearch(self, userId, itemId):
559 chandransh 552
    """
2981 rajveer 553
    add item to my research for a user
3431 rajveer 554
 
559 chandransh 555
    Parameters:
2981 rajveer 556
     - userId
557
     - itemId
559 chandransh 558
    """
559
    pass
560
 
2981 rajveer 561
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 562
    """
2981 rajveer 563
    delete item from my research for a user
3431 rajveer 564
 
1596 ankur.sing 565
    Parameters:
2981 rajveer 566
     - userId
567
     - itemId
1596 ankur.sing 568
    """
569
    pass
559 chandransh 570
 
2981 rajveer 571
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 572
    """
2981 rajveer 573
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 574
 
1673 ankur.sing 575
    Parameters:
2981 rajveer 576
     - userId
1673 ankur.sing 577
    """
578
    pass
1596 ankur.sing 579
 
2981 rajveer 580
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 581
    """
2981 rajveer 582
    add item to browse history for a user
3431 rajveer 583
 
2642 varun.gupt 584
    Parameters:
2981 rajveer 585
     - userId
586
     - itemId
2642 varun.gupt 587
    """
588
    pass
1673 ankur.sing 589
 
3385 varun.gupt 590
  def getCartsWithCouponCount(self, couponCode):
591
    """
592
    Returns count of Carts with given coupon applied
3431 rajveer 593
 
3385 varun.gupt 594
    Parameters:
595
     - couponCode
596
    """
597
    pass
2642 varun.gupt 598
 
3499 mandeep.dh 599
  def increaseTrustLevel(self, userId, trustLevelDelta):
600
    """
601
    Updates COD trust level of a user
3385 varun.gupt 602
 
3499 mandeep.dh 603
    Parameters:
604
     - userId
605
     - trustLevelDelta
606
    """
607
    pass
608
 
4668 varun.gupt 609
  def showCODOption(self, cartId, sourceId, pincode):
610
    """
611
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 612
 
4668 varun.gupt 613
    Parameters:
614
     - cartId
615
     - sourceId
616
     - pincode
617
    """
618
    pass
619
 
620
 
3376 rajveer 621
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 622
  """
623
  service
624
  """
625
  def __init__(self, iprot, oprot=None):
3376 rajveer 626
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 627
 
559 chandransh 628
  def createAnonymousUser(self, jsessionId):
94 ashish 629
    """
630
    Parameters:
559 chandransh 631
     - jsessionId
94 ashish 632
    """
559 chandransh 633
    self.send_createAnonymousUser(jsessionId)
634
    return self.recv_createAnonymousUser()
94 ashish 635
 
559 chandransh 636
  def send_createAnonymousUser(self, jsessionId):
637
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
638
    args = createAnonymousUser_args()
639
    args.jsessionId = jsessionId
94 ashish 640
    args.write(self._oprot)
641
    self._oprot.writeMessageEnd()
642
    self._oprot.trans.flush()
643
 
559 chandransh 644
  def recv_createAnonymousUser(self, ):
94 ashish 645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
646
    if mtype == TMessageType.EXCEPTION:
647
      x = TApplicationException()
648
      x.read(self._iprot)
649
      self._iprot.readMessageEnd()
650
      raise x
559 chandransh 651
    result = createAnonymousUser_result()
94 ashish 652
    result.read(self._iprot)
653
    self._iprot.readMessageEnd()
3431 rajveer 654
    if result.success is not None:
94 ashish 655
      return result.success
3431 rajveer 656
    if result.ucex is not None:
559 chandransh 657
      raise result.ucex
658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 659
 
559 chandransh 660
  def getUserById(self, userId):
94 ashish 661
    """
662
    Parameters:
663
     - userId
664
    """
559 chandransh 665
    self.send_getUserById(userId)
666
    return self.recv_getUserById()
94 ashish 667
 
559 chandransh 668
  def send_getUserById(self, userId):
669
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
670
    args = getUserById_args()
94 ashish 671
    args.userId = userId
672
    args.write(self._oprot)
673
    self._oprot.writeMessageEnd()
674
    self._oprot.trans.flush()
675
 
559 chandransh 676
  def recv_getUserById(self, ):
94 ashish 677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
678
    if mtype == TMessageType.EXCEPTION:
679
      x = TApplicationException()
680
      x.read(self._iprot)
681
      self._iprot.readMessageEnd()
682
      raise x
559 chandransh 683
    result = getUserById_result()
94 ashish 684
    result.read(self._iprot)
685
    self._iprot.readMessageEnd()
3431 rajveer 686
    if result.success is not None:
94 ashish 687
      return result.success
3431 rajveer 688
    if result.ucex is not None:
559 chandransh 689
      raise result.ucex
690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 691
 
1491 vikas 692
  def getUserByEmail(self, email):
693
    """
694
    Parameters:
695
     - email
696
    """
697
    self.send_getUserByEmail(email)
698
    return self.recv_getUserByEmail()
699
 
700
  def send_getUserByEmail(self, email):
701
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
702
    args = getUserByEmail_args()
703
    args.email = email
704
    args.write(self._oprot)
705
    self._oprot.writeMessageEnd()
706
    self._oprot.trans.flush()
707
 
708
  def recv_getUserByEmail(self, ):
709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
710
    if mtype == TMessageType.EXCEPTION:
711
      x = TApplicationException()
712
      x.read(self._iprot)
713
      self._iprot.readMessageEnd()
714
      raise x
715
    result = getUserByEmail_result()
716
    result.read(self._iprot)
717
    self._iprot.readMessageEnd()
3431 rajveer 718
    if result.success is not None:
1491 vikas 719
      return result.success
3431 rajveer 720
    if result.ucex is not None:
1491 vikas 721
      raise result.ucex
722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
723
 
3032 mandeep.dh 724
  def getUserByMobileNumber(self, mobileNumber):
725
    """
726
    Parameters:
727
     - mobileNumber
728
    """
729
    self.send_getUserByMobileNumber(mobileNumber)
730
    return self.recv_getUserByMobileNumber()
731
 
732
  def send_getUserByMobileNumber(self, mobileNumber):
733
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
734
    args = getUserByMobileNumber_args()
735
    args.mobileNumber = mobileNumber
736
    args.write(self._oprot)
737
    self._oprot.writeMessageEnd()
738
    self._oprot.trans.flush()
739
 
740
  def recv_getUserByMobileNumber(self, ):
741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
742
    if mtype == TMessageType.EXCEPTION:
743
      x = TApplicationException()
744
      x.read(self._iprot)
745
      self._iprot.readMessageEnd()
746
      raise x
747
    result = getUserByMobileNumber_result()
748
    result.read(self._iprot)
749
    self._iprot.readMessageEnd()
3431 rajveer 750
    if result.success is not None:
3032 mandeep.dh 751
      return result.success
3431 rajveer 752
    if result.ucex is not None:
3032 mandeep.dh 753
      raise result.ucex
754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
755
 
559 chandransh 756
  def createUser(self, user):
94 ashish 757
    """
758
    Parameters:
559 chandransh 759
     - user
94 ashish 760
    """
559 chandransh 761
    self.send_createUser(user)
762
    return self.recv_createUser()
94 ashish 763
 
559 chandransh 764
  def send_createUser(self, user):
765
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
766
    args = createUser_args()
767
    args.user = user
94 ashish 768
    args.write(self._oprot)
769
    self._oprot.writeMessageEnd()
770
    self._oprot.trans.flush()
771
 
559 chandransh 772
  def recv_createUser(self, ):
94 ashish 773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
774
    if mtype == TMessageType.EXCEPTION:
775
      x = TApplicationException()
776
      x.read(self._iprot)
777
      self._iprot.readMessageEnd()
778
      raise x
559 chandransh 779
    result = createUser_result()
94 ashish 780
    result.read(self._iprot)
781
    self._iprot.readMessageEnd()
3431 rajveer 782
    if result.success is not None:
94 ashish 783
      return result.success
3431 rajveer 784
    if result.ucex is not None:
559 chandransh 785
      raise result.ucex
786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 787
 
559 chandransh 788
  def updateUser(self, user):
94 ashish 789
    """
790
    Parameters:
559 chandransh 791
     - user
94 ashish 792
    """
559 chandransh 793
    self.send_updateUser(user)
794
    return self.recv_updateUser()
94 ashish 795
 
559 chandransh 796
  def send_updateUser(self, user):
797
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
798
    args = updateUser_args()
799
    args.user = user
94 ashish 800
    args.write(self._oprot)
801
    self._oprot.writeMessageEnd()
802
    self._oprot.trans.flush()
803
 
559 chandransh 804
  def recv_updateUser(self, ):
94 ashish 805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
806
    if mtype == TMessageType.EXCEPTION:
807
      x = TApplicationException()
808
      x.read(self._iprot)
809
      self._iprot.readMessageEnd()
810
      raise x
559 chandransh 811
    result = updateUser_result()
94 ashish 812
    result.read(self._iprot)
813
    self._iprot.readMessageEnd()
3431 rajveer 814
    if result.success is not None:
94 ashish 815
      return result.success
3431 rajveer 816
    if result.ucex is not None:
559 chandransh 817
      raise result.ucex
818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 819
 
559 chandransh 820
  def deleteUser(self, userId):
94 ashish 821
    """
822
    Parameters:
823
     - userId
824
    """
559 chandransh 825
    self.send_deleteUser(userId)
826
    return self.recv_deleteUser()
94 ashish 827
 
559 chandransh 828
  def send_deleteUser(self, userId):
829
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
830
    args = deleteUser_args()
94 ashish 831
    args.userId = userId
832
    args.write(self._oprot)
833
    self._oprot.writeMessageEnd()
834
    self._oprot.trans.flush()
835
 
559 chandransh 836
  def recv_deleteUser(self, ):
94 ashish 837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
838
    if mtype == TMessageType.EXCEPTION:
839
      x = TApplicationException()
840
      x.read(self._iprot)
841
      self._iprot.readMessageEnd()
842
      raise x
559 chandransh 843
    result = deleteUser_result()
94 ashish 844
    result.read(self._iprot)
845
    self._iprot.readMessageEnd()
3431 rajveer 846
    if result.success is not None:
94 ashish 847
      return result.success
3431 rajveer 848
    if result.ucex is not None:
559 chandransh 849
      raise result.ucex
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 851
 
559 chandransh 852
  def getUserState(self, userId):
94 ashish 853
    """
854
    Parameters:
855
     - userId
856
    """
559 chandransh 857
    self.send_getUserState(userId)
858
    return self.recv_getUserState()
94 ashish 859
 
559 chandransh 860
  def send_getUserState(self, userId):
861
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
862
    args = getUserState_args()
94 ashish 863
    args.userId = userId
864
    args.write(self._oprot)
865
    self._oprot.writeMessageEnd()
866
    self._oprot.trans.flush()
867
 
559 chandransh 868
  def recv_getUserState(self, ):
94 ashish 869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
870
    if mtype == TMessageType.EXCEPTION:
871
      x = TApplicationException()
872
      x.read(self._iprot)
873
      self._iprot.readMessageEnd()
874
      raise x
559 chandransh 875
    result = getUserState_result()
94 ashish 876
    result.read(self._iprot)
877
    self._iprot.readMessageEnd()
3431 rajveer 878
    if result.success is not None:
94 ashish 879
      return result.success
3431 rajveer 880
    if result.ucex is not None:
559 chandransh 881
      raise result.ucex
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 883
 
559 chandransh 884
  def authenticateUser(self, email, password):
94 ashish 885
    """
886
    Parameters:
887
     - email
888
     - password
889
    """
559 chandransh 890
    self.send_authenticateUser(email, password)
122 ashish 891
    return self.recv_authenticateUser()
892
 
559 chandransh 893
  def send_authenticateUser(self, email, password):
122 ashish 894
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
895
    args = authenticateUser_args()
559 chandransh 896
    args.email = email
122 ashish 897
    args.password = password
898
    args.write(self._oprot)
899
    self._oprot.writeMessageEnd()
900
    self._oprot.trans.flush()
901
 
902
  def recv_authenticateUser(self, ):
903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
904
    if mtype == TMessageType.EXCEPTION:
905
      x = TApplicationException()
906
      x.read(self._iprot)
907
      self._iprot.readMessageEnd()
908
      raise x
909
    result = authenticateUser_result()
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
3431 rajveer 912
    if result.success is not None:
122 ashish 913
      return result.success
3431 rajveer 914
    if result.auex is not None:
559 chandransh 915
      raise result.auex
122 ashish 916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
917
 
94 ashish 918
  def userExists(self, email):
919
    """
920
    Parameters:
921
     - email
922
    """
923
    self.send_userExists(email)
924
    return self.recv_userExists()
925
 
926
  def send_userExists(self, email):
927
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
928
    args = userExists_args()
929
    args.email = email
930
    args.write(self._oprot)
931
    self._oprot.writeMessageEnd()
932
    self._oprot.trans.flush()
933
 
934
  def recv_userExists(self, ):
935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
936
    if mtype == TMessageType.EXCEPTION:
937
      x = TApplicationException()
938
      x.read(self._iprot)
939
      self._iprot.readMessageEnd()
940
      raise x
941
    result = userExists_result()
942
    result.read(self._iprot)
943
    self._iprot.readMessageEnd()
3431 rajveer 944
    if result.success is not None:
94 ashish 945
      return result.success
3431 rajveer 946
    if result.ucx is not None:
94 ashish 947
      raise result.ucx
948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
949
 
567 rajveer 950
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 951
    """
952
    Parameters:
953
     - userId
954
     - address
513 rajveer 955
     - setDefault
94 ashish 956
    """
567 rajveer 957
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 958
    return self.recv_addAddressForUser()
959
 
567 rajveer 960
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 961
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
962
    args = addAddressForUser_args()
559 chandransh 963
    args.userId = userId
94 ashish 964
    args.address = address
513 rajveer 965
    args.setDefault = setDefault
94 ashish 966
    args.write(self._oprot)
967
    self._oprot.writeMessageEnd()
968
    self._oprot.trans.flush()
969
 
970
  def recv_addAddressForUser(self, ):
971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
972
    if mtype == TMessageType.EXCEPTION:
973
      x = TApplicationException()
974
      x.read(self._iprot)
975
      self._iprot.readMessageEnd()
976
      raise x
977
    result = addAddressForUser_result()
978
    result.read(self._iprot)
979
    self._iprot.readMessageEnd()
3431 rajveer 980
    if result.success is not None:
94 ashish 981
      return result.success
3431 rajveer 982
    if result.ucx is not None:
94 ashish 983
      raise result.ucx
984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
985
 
986
  def removeAddressForUser(self, userid, addressId):
987
    """
988
    Parameters:
989
     - userid
990
     - addressId
991
    """
992
    self.send_removeAddressForUser(userid, addressId)
993
    return self.recv_removeAddressForUser()
994
 
995
  def send_removeAddressForUser(self, userid, addressId):
996
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
997
    args = removeAddressForUser_args()
998
    args.userid = userid
999
    args.addressId = addressId
1000
    args.write(self._oprot)
1001
    self._oprot.writeMessageEnd()
1002
    self._oprot.trans.flush()
1003
 
1004
  def recv_removeAddressForUser(self, ):
1005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1006
    if mtype == TMessageType.EXCEPTION:
1007
      x = TApplicationException()
1008
      x.read(self._iprot)
1009
      self._iprot.readMessageEnd()
1010
      raise x
1011
    result = removeAddressForUser_result()
1012
    result.read(self._iprot)
1013
    self._iprot.readMessageEnd()
3431 rajveer 1014
    if result.success is not None:
94 ashish 1015
      return result.success
3431 rajveer 1016
    if result.ucx is not None:
94 ashish 1017
      raise result.ucx
1018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1019
 
1020
  def setUserAsLoggedIn(self, userId, timestamp):
1021
    """
1022
    Parameters:
1023
     - userId
1024
     - timestamp
1025
    """
1026
    self.send_setUserAsLoggedIn(userId, timestamp)
1027
    return self.recv_setUserAsLoggedIn()
1028
 
1029
  def send_setUserAsLoggedIn(self, userId, timestamp):
1030
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1031
    args = setUserAsLoggedIn_args()
1032
    args.userId = userId
1033
    args.timestamp = timestamp
1034
    args.write(self._oprot)
1035
    self._oprot.writeMessageEnd()
1036
    self._oprot.trans.flush()
1037
 
1038
  def recv_setUserAsLoggedIn(self, ):
1039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1040
    if mtype == TMessageType.EXCEPTION:
1041
      x = TApplicationException()
1042
      x.read(self._iprot)
1043
      self._iprot.readMessageEnd()
1044
      raise x
1045
    result = setUserAsLoggedIn_result()
1046
    result.read(self._iprot)
1047
    self._iprot.readMessageEnd()
3431 rajveer 1048
    if result.success is not None:
94 ashish 1049
      return result.success
3431 rajveer 1050
    if result.ucx is not None:
94 ashish 1051
      raise result.ucx
1052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1053
 
1054
  def setUserAsLoggedOut(self, userid, timestamp):
1055
    """
1056
    Parameters:
1057
     - userid
1058
     - timestamp
1059
    """
1060
    self.send_setUserAsLoggedOut(userid, timestamp)
1061
    return self.recv_setUserAsLoggedOut()
1062
 
1063
  def send_setUserAsLoggedOut(self, userid, timestamp):
1064
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1065
    args = setUserAsLoggedOut_args()
1066
    args.userid = userid
1067
    args.timestamp = timestamp
1068
    args.write(self._oprot)
1069
    self._oprot.writeMessageEnd()
1070
    self._oprot.trans.flush()
1071
 
1072
  def recv_setUserAsLoggedOut(self, ):
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1074
    if mtype == TMessageType.EXCEPTION:
1075
      x = TApplicationException()
1076
      x.read(self._iprot)
1077
      self._iprot.readMessageEnd()
1078
      raise x
1079
    result = setUserAsLoggedOut_result()
1080
    result.read(self._iprot)
1081
    self._iprot.readMessageEnd()
3431 rajveer 1082
    if result.success is not None:
94 ashish 1083
      return result.success
3431 rajveer 1084
    if result.ucx is not None:
94 ashish 1085
      raise result.ucx
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1087
 
504 rajveer 1088
  def setDefaultAddress(self, userid, addressId):
1089
    """
1090
    Parameters:
1091
     - userid
1092
     - addressId
1093
    """
1094
    self.send_setDefaultAddress(userid, addressId)
1095
    return self.recv_setDefaultAddress()
1096
 
1097
  def send_setDefaultAddress(self, userid, addressId):
1098
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1099
    args = setDefaultAddress_args()
1100
    args.userid = userid
1101
    args.addressId = addressId
1102
    args.write(self._oprot)
1103
    self._oprot.writeMessageEnd()
1104
    self._oprot.trans.flush()
1105
 
1106
  def recv_setDefaultAddress(self, ):
1107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1108
    if mtype == TMessageType.EXCEPTION:
1109
      x = TApplicationException()
1110
      x.read(self._iprot)
1111
      self._iprot.readMessageEnd()
1112
      raise x
1113
    result = setDefaultAddress_result()
1114
    result.read(self._iprot)
1115
    self._iprot.readMessageEnd()
3431 rajveer 1116
    if result.success is not None:
504 rajveer 1117
      return result.success
3431 rajveer 1118
    if result.ucx is not None:
504 rajveer 1119
      raise result.ucx
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1121
 
594 rajveer 1122
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1123
    """
1124
    Parameters:
1125
     - userid
594 rajveer 1126
     - oldPassword
1127
     - newPassword
94 ashish 1128
    """
594 rajveer 1129
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1130
    return self.recv_updatePassword()
1131
 
594 rajveer 1132
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1133
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1134
    args = updatePassword_args()
1135
    args.userid = userid
594 rajveer 1136
    args.oldPassword = oldPassword
1137
    args.newPassword = newPassword
94 ashish 1138
    args.write(self._oprot)
1139
    self._oprot.writeMessageEnd()
1140
    self._oprot.trans.flush()
1141
 
1142
  def recv_updatePassword(self, ):
1143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1144
    if mtype == TMessageType.EXCEPTION:
1145
      x = TApplicationException()
1146
      x.read(self._iprot)
1147
      self._iprot.readMessageEnd()
1148
      raise x
1149
    result = updatePassword_result()
1150
    result.read(self._iprot)
1151
    self._iprot.readMessageEnd()
3431 rajveer 1152
    if result.success is not None:
94 ashish 1153
      return result.success
3431 rajveer 1154
    if result.ucx is not None:
94 ashish 1155
      raise result.ucx
1156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1157
 
884 rajveer 1158
  def forgotPassword(self, email, newPassword):
581 rajveer 1159
    """
1160
    Parameters:
1161
     - email
884 rajveer 1162
     - newPassword
581 rajveer 1163
    """
884 rajveer 1164
    self.send_forgotPassword(email, newPassword)
581 rajveer 1165
    return self.recv_forgotPassword()
1166
 
884 rajveer 1167
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1168
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1169
    args = forgotPassword_args()
1170
    args.email = email
884 rajveer 1171
    args.newPassword = newPassword
581 rajveer 1172
    args.write(self._oprot)
1173
    self._oprot.writeMessageEnd()
1174
    self._oprot.trans.flush()
1175
 
1176
  def recv_forgotPassword(self, ):
1177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1178
    if mtype == TMessageType.EXCEPTION:
1179
      x = TApplicationException()
1180
      x.read(self._iprot)
1181
      self._iprot.readMessageEnd()
1182
      raise x
1183
    result = forgotPassword_result()
1184
    result.read(self._iprot)
1185
    self._iprot.readMessageEnd()
3431 rajveer 1186
    if result.success is not None:
581 rajveer 1187
      return result.success
3431 rajveer 1188
    if result.ucx is not None:
581 rajveer 1189
      raise result.ucx
1190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1191
 
594 rajveer 1192
  def getAllAddressesForUser(self, userId):
1193
    """
1194
    Parameters:
1195
     - userId
1196
    """
1197
    self.send_getAllAddressesForUser(userId)
1198
    return self.recv_getAllAddressesForUser()
1199
 
1200
  def send_getAllAddressesForUser(self, userId):
1201
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1202
    args = getAllAddressesForUser_args()
1203
    args.userId = userId
1204
    args.write(self._oprot)
1205
    self._oprot.writeMessageEnd()
1206
    self._oprot.trans.flush()
1207
 
1208
  def recv_getAllAddressesForUser(self, ):
1209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1210
    if mtype == TMessageType.EXCEPTION:
1211
      x = TApplicationException()
1212
      x.read(self._iprot)
1213
      self._iprot.readMessageEnd()
1214
      raise x
1215
    result = getAllAddressesForUser_result()
1216
    result.read(self._iprot)
1217
    self._iprot.readMessageEnd()
3431 rajveer 1218
    if result.success is not None:
594 rajveer 1219
      return result.success
3431 rajveer 1220
    if result.ucx is not None:
594 rajveer 1221
      raise result.ucx
1222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1223
 
1894 vikas 1224
  def getAddressById(self, addressId):
1225
    """
1226
    Parameters:
1227
     - addressId
1228
    """
1229
    self.send_getAddressById(addressId)
1230
    return self.recv_getAddressById()
1231
 
1232
  def send_getAddressById(self, addressId):
1233
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1234
    args = getAddressById_args()
1235
    args.addressId = addressId
1236
    args.write(self._oprot)
1237
    self._oprot.writeMessageEnd()
1238
    self._oprot.trans.flush()
1239
 
1240
  def recv_getAddressById(self, ):
1241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1242
    if mtype == TMessageType.EXCEPTION:
1243
      x = TApplicationException()
1244
      x.read(self._iprot)
1245
      self._iprot.readMessageEnd()
1246
      raise x
1247
    result = getAddressById_result()
1248
    result.read(self._iprot)
1249
    self._iprot.readMessageEnd()
3431 rajveer 1250
    if result.success is not None:
1894 vikas 1251
      return result.success
3431 rajveer 1252
    if result.ucx is not None:
1894 vikas 1253
      raise result.ucx
1254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1255
 
594 rajveer 1256
  def getDefaultAddressId(self, userId):
1257
    """
1258
    Parameters:
1259
     - userId
1260
    """
1261
    self.send_getDefaultAddressId(userId)
1262
    return self.recv_getDefaultAddressId()
1263
 
1264
  def send_getDefaultAddressId(self, userId):
1265
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1266
    args = getDefaultAddressId_args()
1267
    args.userId = userId
1268
    args.write(self._oprot)
1269
    self._oprot.writeMessageEnd()
1270
    self._oprot.trans.flush()
1271
 
1272
  def recv_getDefaultAddressId(self, ):
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1274
    if mtype == TMessageType.EXCEPTION:
1275
      x = TApplicationException()
1276
      x.read(self._iprot)
1277
      self._iprot.readMessageEnd()
1278
      raise x
1279
    result = getDefaultAddressId_result()
1280
    result.read(self._iprot)
1281
    self._iprot.readMessageEnd()
3431 rajveer 1282
    if result.success is not None:
594 rajveer 1283
      return result.success
3431 rajveer 1284
    if result.ucx is not None:
594 rajveer 1285
      raise result.ucx
1286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1287
 
785 rajveer 1288
  def getDefaultPincode(self, userId):
1289
    """
1290
    Parameters:
1291
     - userId
1292
    """
1293
    self.send_getDefaultPincode(userId)
1294
    return self.recv_getDefaultPincode()
1295
 
1296
  def send_getDefaultPincode(self, userId):
1297
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1298
    args = getDefaultPincode_args()
1299
    args.userId = userId
1300
    args.write(self._oprot)
1301
    self._oprot.writeMessageEnd()
1302
    self._oprot.trans.flush()
1303
 
1304
  def recv_getDefaultPincode(self, ):
1305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1306
    if mtype == TMessageType.EXCEPTION:
1307
      x = TApplicationException()
1308
      x.read(self._iprot)
1309
      self._iprot.readMessageEnd()
1310
      raise x
1311
    result = getDefaultPincode_result()
1312
    result.read(self._iprot)
1313
    self._iprot.readMessageEnd()
3431 rajveer 1314
    if result.success is not None:
785 rajveer 1315
      return result.success
3431 rajveer 1316
    if result.ucx is not None:
785 rajveer 1317
      raise result.ucx
1318
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1319
 
1274 varun.gupt 1320
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1321
    """
1322
    Parameters:
1323
     - userId
1324
     - replyTo
1325
     - communicationType
1326
     - orderId
1327
     - airwaybillNo
1328
     - productName
1329
     - subject
1330
     - message
1331
    """
1332
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1333
    return self.recv_saveUserCommunication()
1334
 
1335
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1336
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1337
    args = saveUserCommunication_args()
1338
    args.userId = userId
1339
    args.replyTo = replyTo
1340
    args.communicationType = communicationType
1341
    args.orderId = orderId
1342
    args.airwaybillNo = airwaybillNo
1343
    args.productName = productName
1344
    args.subject = subject
1345
    args.message = message
1346
    args.write(self._oprot)
1347
    self._oprot.writeMessageEnd()
1348
    self._oprot.trans.flush()
1349
 
1350
  def recv_saveUserCommunication(self, ):
1351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1352
    if mtype == TMessageType.EXCEPTION:
1353
      x = TApplicationException()
1354
      x.read(self._iprot)
1355
      self._iprot.readMessageEnd()
1356
      raise x
1357
    result = saveUserCommunication_result()
1358
    result.read(self._iprot)
1359
    self._iprot.readMessageEnd()
3431 rajveer 1360
    if result.success is not None:
1274 varun.gupt 1361
      return result.success
3431 rajveer 1362
    if result.ucx is not None:
1274 varun.gupt 1363
      raise result.ucx
1364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1365
 
1590 varun.gupt 1366
  def getUserCommunicationById(self, id):
1367
    """
1368
    Parameters:
1369
     - id
1370
    """
1371
    self.send_getUserCommunicationById(id)
1372
    return self.recv_getUserCommunicationById()
1373
 
1374
  def send_getUserCommunicationById(self, id):
1375
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1376
    args = getUserCommunicationById_args()
1377
    args.id = id
1378
    args.write(self._oprot)
1379
    self._oprot.writeMessageEnd()
1380
    self._oprot.trans.flush()
1381
 
1382
  def recv_getUserCommunicationById(self, ):
1383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1384
    if mtype == TMessageType.EXCEPTION:
1385
      x = TApplicationException()
1386
      x.read(self._iprot)
1387
      self._iprot.readMessageEnd()
1388
      raise x
1389
    result = getUserCommunicationById_result()
1390
    result.read(self._iprot)
1391
    self._iprot.readMessageEnd()
3431 rajveer 1392
    if result.success is not None:
1590 varun.gupt 1393
      return result.success
3431 rajveer 1394
    if result.ucx is not None:
1590 varun.gupt 1395
      raise result.ucx
1396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1397
 
1398
  def getUserCommunicationByUser(self, userId):
1399
    """
1400
    Parameters:
1401
     - userId
1402
    """
1403
    self.send_getUserCommunicationByUser(userId)
1404
    return self.recv_getUserCommunicationByUser()
1405
 
1406
  def send_getUserCommunicationByUser(self, userId):
1407
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1408
    args = getUserCommunicationByUser_args()
1409
    args.userId = userId
1410
    args.write(self._oprot)
1411
    self._oprot.writeMessageEnd()
1412
    self._oprot.trans.flush()
1413
 
1414
  def recv_getUserCommunicationByUser(self, ):
1415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1416
    if mtype == TMessageType.EXCEPTION:
1417
      x = TApplicationException()
1418
      x.read(self._iprot)
1419
      self._iprot.readMessageEnd()
1420
      raise x
1421
    result = getUserCommunicationByUser_result()
1422
    result.read(self._iprot)
1423
    self._iprot.readMessageEnd()
3431 rajveer 1424
    if result.success is not None:
1590 varun.gupt 1425
      return result.success
3431 rajveer 1426
    if result.ucx is not None:
1590 varun.gupt 1427
      raise result.ucx
1428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1429
 
1430
  def getAllUserCommunications(self, ):
1431
    self.send_getAllUserCommunications()
1432
    return self.recv_getAllUserCommunications()
1433
 
1434
  def send_getAllUserCommunications(self, ):
1435
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1436
    args = getAllUserCommunications_args()
1437
    args.write(self._oprot)
1438
    self._oprot.writeMessageEnd()
1439
    self._oprot.trans.flush()
1440
 
1441
  def recv_getAllUserCommunications(self, ):
1442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1443
    if mtype == TMessageType.EXCEPTION:
1444
      x = TApplicationException()
1445
      x.read(self._iprot)
1446
      self._iprot.readMessageEnd()
1447
      raise x
1448
    result = getAllUserCommunications_result()
1449
    result.read(self._iprot)
1450
    self._iprot.readMessageEnd()
3431 rajveer 1451
    if result.success is not None:
1590 varun.gupt 1452
      return result.success
3431 rajveer 1453
    if result.ucx is not None:
1590 varun.gupt 1454
      raise result.ucx
1455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1456
 
1859 vikas 1457
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1458
    """
1459
    Parameters:
1460
     - name
1859 vikas 1461
     - addedOn
1845 vikas 1462
    """
1859 vikas 1463
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1464
    return self.recv_createMasterAffiliate()
1465
 
1859 vikas 1466
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1467
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1468
    args = createMasterAffiliate_args()
1469
    args.name = name
1859 vikas 1470
    args.addedOn = addedOn
1845 vikas 1471
    args.write(self._oprot)
1472
    self._oprot.writeMessageEnd()
1473
    self._oprot.trans.flush()
1474
 
1475
  def recv_createMasterAffiliate(self, ):
1476
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1477
    if mtype == TMessageType.EXCEPTION:
1478
      x = TApplicationException()
1479
      x.read(self._iprot)
1480
      self._iprot.readMessageEnd()
1481
      raise x
1482
    result = createMasterAffiliate_result()
1483
    result.read(self._iprot)
1484
    self._iprot.readMessageEnd()
3431 rajveer 1485
    if result.success is not None:
1845 vikas 1486
      return result.success
3431 rajveer 1487
    if result.utx is not None:
1845 vikas 1488
      raise result.utx
1489
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1490
 
1899 vikas 1491
  def getAllMasterAffiliates(self, ):
1492
    self.send_getAllMasterAffiliates()
1493
    return self.recv_getAllMasterAffiliates()
1494
 
1495
  def send_getAllMasterAffiliates(self, ):
1496
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1497
    args = getAllMasterAffiliates_args()
1498
    args.write(self._oprot)
1499
    self._oprot.writeMessageEnd()
1500
    self._oprot.trans.flush()
1501
 
1502
  def recv_getAllMasterAffiliates(self, ):
1503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1504
    if mtype == TMessageType.EXCEPTION:
1505
      x = TApplicationException()
1506
      x.read(self._iprot)
1507
      self._iprot.readMessageEnd()
1508
      raise x
1509
    result = getAllMasterAffiliates_result()
1510
    result.read(self._iprot)
1511
    self._iprot.readMessageEnd()
3431 rajveer 1512
    if result.success is not None:
1899 vikas 1513
      return result.success
3431 rajveer 1514
    if result.utx is not None:
1899 vikas 1515
      raise result.utx
1516
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1517
 
1845 vikas 1518
  def getMasterAffiliateById(self, id):
1519
    """
1520
    Parameters:
1521
     - id
1522
    """
1523
    self.send_getMasterAffiliateById(id)
1524
    return self.recv_getMasterAffiliateById()
1525
 
1526
  def send_getMasterAffiliateById(self, id):
1527
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1528
    args = getMasterAffiliateById_args()
1529
    args.id = id
1530
    args.write(self._oprot)
1531
    self._oprot.writeMessageEnd()
1532
    self._oprot.trans.flush()
1533
 
1534
  def recv_getMasterAffiliateById(self, ):
1535
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1536
    if mtype == TMessageType.EXCEPTION:
1537
      x = TApplicationException()
1538
      x.read(self._iprot)
1539
      self._iprot.readMessageEnd()
1540
      raise x
1541
    result = getMasterAffiliateById_result()
1542
    result.read(self._iprot)
1543
    self._iprot.readMessageEnd()
3431 rajveer 1544
    if result.success is not None:
1845 vikas 1545
      return result.success
3431 rajveer 1546
    if result.utx is not None:
1845 vikas 1547
      raise result.utx
1548
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1549
 
1550
  def getMasterAffiliateByName(self, name):
1551
    """
1552
    Parameters:
1553
     - name
1554
    """
1555
    self.send_getMasterAffiliateByName(name)
1556
    return self.recv_getMasterAffiliateByName()
1557
 
1558
  def send_getMasterAffiliateByName(self, name):
1559
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1560
    args = getMasterAffiliateByName_args()
1561
    args.name = name
1562
    args.write(self._oprot)
1563
    self._oprot.writeMessageEnd()
1564
    self._oprot.trans.flush()
1565
 
1566
  def recv_getMasterAffiliateByName(self, ):
1567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1568
    if mtype == TMessageType.EXCEPTION:
1569
      x = TApplicationException()
1570
      x.read(self._iprot)
1571
      self._iprot.readMessageEnd()
1572
      raise x
1573
    result = getMasterAffiliateByName_result()
1574
    result.read(self._iprot)
1575
    self._iprot.readMessageEnd()
3431 rajveer 1576
    if result.success is not None:
1845 vikas 1577
      return result.success
3431 rajveer 1578
    if result.utx is not None:
1845 vikas 1579
      raise result.utx
1580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1581
 
1859 vikas 1582
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1583
    """
1584
    Parameters:
1585
     - name
1586
     - url
1587
     - masterAffiliateId
1859 vikas 1588
     - addedOn
1845 vikas 1589
    """
1859 vikas 1590
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1591
    return self.recv_createAffiliate()
1592
 
1859 vikas 1593
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1594
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1595
    args = createAffiliate_args()
1596
    args.name = name
1597
    args.url = url
1598
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1599
    args.addedOn = addedOn
1845 vikas 1600
    args.write(self._oprot)
1601
    self._oprot.writeMessageEnd()
1602
    self._oprot.trans.flush()
1603
 
1604
  def recv_createAffiliate(self, ):
1605
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1606
    if mtype == TMessageType.EXCEPTION:
1607
      x = TApplicationException()
1608
      x.read(self._iprot)
1609
      self._iprot.readMessageEnd()
1610
      raise x
1611
    result = createAffiliate_result()
1612
    result.read(self._iprot)
1613
    self._iprot.readMessageEnd()
3431 rajveer 1614
    if result.success is not None:
1845 vikas 1615
      return result.success
3431 rajveer 1616
    if result.utx is not None:
1845 vikas 1617
      raise result.utx
1618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1619
 
1620
  def getAffiliateById(self, id):
1621
    """
1622
    Parameters:
1623
     - id
1624
    """
1625
    self.send_getAffiliateById(id)
1626
    return self.recv_getAffiliateById()
1627
 
1628
  def send_getAffiliateById(self, id):
1629
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1630
    args = getAffiliateById_args()
1631
    args.id = id
1632
    args.write(self._oprot)
1633
    self._oprot.writeMessageEnd()
1634
    self._oprot.trans.flush()
1635
 
1636
  def recv_getAffiliateById(self, ):
1637
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1638
    if mtype == TMessageType.EXCEPTION:
1639
      x = TApplicationException()
1640
      x.read(self._iprot)
1641
      self._iprot.readMessageEnd()
1642
      raise x
1643
    result = getAffiliateById_result()
1644
    result.read(self._iprot)
1645
    self._iprot.readMessageEnd()
3431 rajveer 1646
    if result.success is not None:
1845 vikas 1647
      return result.success
3431 rajveer 1648
    if result.utx is not None:
1845 vikas 1649
      raise result.utx
1650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1651
 
1652
  def getAffiliateByName(self, name):
1653
    """
1654
    Parameters:
1655
     - name
1656
    """
1657
    self.send_getAffiliateByName(name)
1658
    return self.recv_getAffiliateByName()
1659
 
1660
  def send_getAffiliateByName(self, name):
1661
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1662
    args = getAffiliateByName_args()
1663
    args.name = name
1664
    args.write(self._oprot)
1665
    self._oprot.writeMessageEnd()
1666
    self._oprot.trans.flush()
1667
 
1668
  def recv_getAffiliateByName(self, ):
1669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1670
    if mtype == TMessageType.EXCEPTION:
1671
      x = TApplicationException()
1672
      x.read(self._iprot)
1673
      self._iprot.readMessageEnd()
1674
      raise x
1675
    result = getAffiliateByName_result()
1676
    result.read(self._iprot)
1677
    self._iprot.readMessageEnd()
3431 rajveer 1678
    if result.success is not None:
1845 vikas 1679
      return result.success
3431 rajveer 1680
    if result.utx is not None:
1845 vikas 1681
      raise result.utx
1682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1683
 
1996 vikas 1684
  def getTrackerById(self, id):
1845 vikas 1685
    """
1686
    Parameters:
1687
     - id
1688
    """
1996 vikas 1689
    self.send_getTrackerById(id)
1845 vikas 1690
    return self.recv_getTrackerById()
1691
 
1996 vikas 1692
  def send_getTrackerById(self, id):
1845 vikas 1693
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1694
    args = getTrackerById_args()
1996 vikas 1695
    args.id = id
1845 vikas 1696
    args.write(self._oprot)
1697
    self._oprot.writeMessageEnd()
1698
    self._oprot.trans.flush()
1699
 
1700
  def recv_getTrackerById(self, ):
1701
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1702
    if mtype == TMessageType.EXCEPTION:
1703
      x = TApplicationException()
1704
      x.read(self._iprot)
1705
      self._iprot.readMessageEnd()
1706
      raise x
1707
    result = getTrackerById_result()
1708
    result.read(self._iprot)
1709
    self._iprot.readMessageEnd()
3431 rajveer 1710
    if result.success is not None:
1845 vikas 1711
      return result.success
3431 rajveer 1712
    if result.utx is not None:
1845 vikas 1713
      raise result.utx
1714
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1715
 
1996 vikas 1716
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1717
    """
1718
    Parameters:
1996 vikas 1719
     - id
1845 vikas 1720
    """
1996 vikas 1721
    self.send_getAffiliatesByMasterAffiliate(id)
1722
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1723
 
1996 vikas 1724
  def send_getAffiliatesByMasterAffiliate(self, id):
1725
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1726
    args = getAffiliatesByMasterAffiliate_args()
1727
    args.id = id
1845 vikas 1728
    args.write(self._oprot)
1729
    self._oprot.writeMessageEnd()
1730
    self._oprot.trans.flush()
1731
 
1996 vikas 1732
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1734
    if mtype == TMessageType.EXCEPTION:
1735
      x = TApplicationException()
1736
      x.read(self._iprot)
1737
      self._iprot.readMessageEnd()
1738
      raise x
1996 vikas 1739
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1740
    result.read(self._iprot)
1741
    self._iprot.readMessageEnd()
3431 rajveer 1742
    if result.success is not None:
1845 vikas 1743
      return result.success
3431 rajveer 1744
    if result.utx is not None:
1845 vikas 1745
      raise result.utx
1996 vikas 1746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1747
 
1996 vikas 1748
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1749
    """
1750
    Parameters:
1996 vikas 1751
     - affiliateId
1845 vikas 1752
     - userId
1753
     - event
1754
     - url
1755
     - data
1859 vikas 1756
     - addedOn
1845 vikas 1757
    """
1996 vikas 1758
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1759
    return self.recv_addTrackLog()
1760
 
1996 vikas 1761
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1762
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1763
    args = addTrackLog_args()
1996 vikas 1764
    args.affiliateId = affiliateId
1845 vikas 1765
    args.userId = userId
1766
    args.event = event
1767
    args.url = url
1768
    args.data = data
1859 vikas 1769
    args.addedOn = addedOn
1845 vikas 1770
    args.write(self._oprot)
1771
    self._oprot.writeMessageEnd()
1772
    self._oprot.trans.flush()
1773
 
1774
  def recv_addTrackLog(self, ):
1775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1776
    if mtype == TMessageType.EXCEPTION:
1777
      x = TApplicationException()
1778
      x.read(self._iprot)
1779
      self._iprot.readMessageEnd()
1780
      raise x
1781
    result = addTrackLog_result()
1782
    result.read(self._iprot)
1783
    self._iprot.readMessageEnd()
3431 rajveer 1784
    if result.success is not None:
1845 vikas 1785
      return result.success
3431 rajveer 1786
    if result.utx is not None:
1845 vikas 1787
      raise result.utx
1788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1789
 
1790
  def getTrackLogById(self, id):
1791
    """
1792
    Parameters:
1793
     - id
1794
    """
1795
    self.send_getTrackLogById(id)
1796
    return self.recv_getTrackLogById()
1797
 
1798
  def send_getTrackLogById(self, id):
1799
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1800
    args = getTrackLogById_args()
1801
    args.id = id
1802
    args.write(self._oprot)
1803
    self._oprot.writeMessageEnd()
1804
    self._oprot.trans.flush()
1805
 
1806
  def recv_getTrackLogById(self, ):
1807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1808
    if mtype == TMessageType.EXCEPTION:
1809
      x = TApplicationException()
1810
      x.read(self._iprot)
1811
      self._iprot.readMessageEnd()
1812
      raise x
1813
    result = getTrackLogById_result()
1814
    result.read(self._iprot)
1815
    self._iprot.readMessageEnd()
3431 rajveer 1816
    if result.success is not None:
1845 vikas 1817
      return result.success
3431 rajveer 1818
    if result.utx is not None:
1845 vikas 1819
      raise result.utx
1820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1821
 
3293 vikas 1822
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1823
    """
1824
    Parameters:
1996 vikas 1825
     - affiliateId
3293 vikas 1826
     - startDate
1827
     - endDate
1845 vikas 1828
    """
3293 vikas 1829
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1830
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1831
 
3293 vikas 1832
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1833
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1834
    args = getTrackLogsByAffiliate_args()
1835
    args.affiliateId = affiliateId
3293 vikas 1836
    args.startDate = startDate
1837
    args.endDate = endDate
1845 vikas 1838
    args.write(self._oprot)
1839
    self._oprot.writeMessageEnd()
1840
    self._oprot.trans.flush()
1841
 
1996 vikas 1842
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1844
    if mtype == TMessageType.EXCEPTION:
1845
      x = TApplicationException()
1846
      x.read(self._iprot)
1847
      self._iprot.readMessageEnd()
1848
      raise x
1996 vikas 1849
    result = getTrackLogsByAffiliate_result()
1845 vikas 1850
    result.read(self._iprot)
1851
    self._iprot.readMessageEnd()
3431 rajveer 1852
    if result.success is not None:
1845 vikas 1853
      return result.success
3431 rajveer 1854
    if result.utx is not None:
1845 vikas 1855
      raise result.utx
1996 vikas 1856
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1857
 
1858
  def getTrackLogsByUser(self, userId):
1859
    """
1860
    Parameters:
1861
     - userId
1862
    """
1863
    self.send_getTrackLogsByUser(userId)
1864
    return self.recv_getTrackLogsByUser()
1865
 
1866
  def send_getTrackLogsByUser(self, userId):
1867
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1868
    args = getTrackLogsByUser_args()
1869
    args.userId = userId
1870
    args.write(self._oprot)
1871
    self._oprot.writeMessageEnd()
1872
    self._oprot.trans.flush()
1873
 
1874
  def recv_getTrackLogsByUser(self, ):
1875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1876
    if mtype == TMessageType.EXCEPTION:
1877
      x = TApplicationException()
1878
      x.read(self._iprot)
1879
      self._iprot.readMessageEnd()
1880
      raise x
1881
    result = getTrackLogsByUser_result()
1882
    result.read(self._iprot)
1883
    self._iprot.readMessageEnd()
3431 rajveer 1884
    if result.success is not None:
1845 vikas 1885
      return result.success
3431 rajveer 1886
    if result.utx is not None:
1845 vikas 1887
      raise result.utx
1888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1889
 
1996 vikas 1890
  def getTrackLogs(self, userId, event, url):
1845 vikas 1891
    """
1892
    Parameters:
1893
     - userId
1894
     - event
1895
     - url
1896
    """
1996 vikas 1897
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1898
    return self.recv_getTrackLogs()
1899
 
1996 vikas 1900
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1901
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1902
    args = getTrackLogs_args()
1903
    args.userId = userId
1904
    args.event = event
1905
    args.url = url
1906
    args.write(self._oprot)
1907
    self._oprot.writeMessageEnd()
1908
    self._oprot.trans.flush()
1909
 
1910
  def recv_getTrackLogs(self, ):
1911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1912
    if mtype == TMessageType.EXCEPTION:
1913
      x = TApplicationException()
1914
      x.read(self._iprot)
1915
      self._iprot.readMessageEnd()
1916
      raise x
1917
    result = getTrackLogs_result()
1918
    result.read(self._iprot)
1919
    self._iprot.readMessageEnd()
3431 rajveer 1920
    if result.success is not None:
1845 vikas 1921
      return result.success
3431 rajveer 1922
    if result.utx is not None:
1845 vikas 1923
      raise result.utx
1924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1925
 
559 chandransh 1926
  def createCart(self, userId):
94 ashish 1927
    """
1928
    Parameters:
559 chandransh 1929
     - userId
94 ashish 1930
    """
559 chandransh 1931
    self.send_createCart(userId)
1932
    return self.recv_createCart()
94 ashish 1933
 
559 chandransh 1934
  def send_createCart(self, userId):
1935
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1936
    args = createCart_args()
1937
    args.userId = userId
94 ashish 1938
    args.write(self._oprot)
1939
    self._oprot.writeMessageEnd()
1940
    self._oprot.trans.flush()
1941
 
559 chandransh 1942
  def recv_createCart(self, ):
94 ashish 1943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1944
    if mtype == TMessageType.EXCEPTION:
1945
      x = TApplicationException()
1946
      x.read(self._iprot)
1947
      self._iprot.readMessageEnd()
1948
      raise x
559 chandransh 1949
    result = createCart_result()
94 ashish 1950
    result.read(self._iprot)
1951
    self._iprot.readMessageEnd()
3431 rajveer 1952
    if result.success is not None:
94 ashish 1953
      return result.success
3431 rajveer 1954
    if result.scx is not None:
559 chandransh 1955
      raise result.scx
1956
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1957
 
559 chandransh 1958
  def getCurrentCart(self, userId):
94 ashish 1959
    """
1960
    Parameters:
559 chandransh 1961
     - userId
94 ashish 1962
    """
559 chandransh 1963
    self.send_getCurrentCart(userId)
1964
    return self.recv_getCurrentCart()
94 ashish 1965
 
559 chandransh 1966
  def send_getCurrentCart(self, userId):
1967
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1968
    args = getCurrentCart_args()
1969
    args.userId = userId
94 ashish 1970
    args.write(self._oprot)
1971
    self._oprot.writeMessageEnd()
1972
    self._oprot.trans.flush()
1973
 
559 chandransh 1974
  def recv_getCurrentCart(self, ):
94 ashish 1975
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1976
    if mtype == TMessageType.EXCEPTION:
1977
      x = TApplicationException()
1978
      x.read(self._iprot)
1979
      self._iprot.readMessageEnd()
1980
      raise x
559 chandransh 1981
    result = getCurrentCart_result()
94 ashish 1982
    result.read(self._iprot)
1983
    self._iprot.readMessageEnd()
3431 rajveer 1984
    if result.success is not None:
94 ashish 1985
      return result.success
3431 rajveer 1986
    if result.scx is not None:
559 chandransh 1987
      raise result.scx
1988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1989
 
559 chandransh 1990
  def getCart(self, cartId):
94 ashish 1991
    """
1992
    Parameters:
559 chandransh 1993
     - cartId
94 ashish 1994
    """
559 chandransh 1995
    self.send_getCart(cartId)
1996
    return self.recv_getCart()
94 ashish 1997
 
559 chandransh 1998
  def send_getCart(self, cartId):
1999
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
2000
    args = getCart_args()
2001
    args.cartId = cartId
94 ashish 2002
    args.write(self._oprot)
2003
    self._oprot.writeMessageEnd()
2004
    self._oprot.trans.flush()
2005
 
559 chandransh 2006
  def recv_getCart(self, ):
94 ashish 2007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2008
    if mtype == TMessageType.EXCEPTION:
2009
      x = TApplicationException()
2010
      x.read(self._iprot)
2011
      self._iprot.readMessageEnd()
2012
      raise x
559 chandransh 2013
    result = getCart_result()
94 ashish 2014
    result.read(self._iprot)
2015
    self._iprot.readMessageEnd()
3431 rajveer 2016
    if result.success is not None:
94 ashish 2017
      return result.success
3431 rajveer 2018
    if result.scx is not None:
559 chandransh 2019
      raise result.scx
2020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2021
 
559 chandransh 2022
  def getCartsForUser(self, userId, status):
94 ashish 2023
    """
2024
    Parameters:
559 chandransh 2025
     - userId
2026
     - status
94 ashish 2027
    """
559 chandransh 2028
    self.send_getCartsForUser(userId, status)
2029
    return self.recv_getCartsForUser()
94 ashish 2030
 
559 chandransh 2031
  def send_getCartsForUser(self, userId, status):
2032
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2033
    args = getCartsForUser_args()
2034
    args.userId = userId
2035
    args.status = status
94 ashish 2036
    args.write(self._oprot)
2037
    self._oprot.writeMessageEnd()
2038
    self._oprot.trans.flush()
2039
 
559 chandransh 2040
  def recv_getCartsForUser(self, ):
94 ashish 2041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2042
    if mtype == TMessageType.EXCEPTION:
2043
      x = TApplicationException()
2044
      x.read(self._iprot)
2045
      self._iprot.readMessageEnd()
2046
      raise x
559 chandransh 2047
    result = getCartsForUser_result()
94 ashish 2048
    result.read(self._iprot)
2049
    self._iprot.readMessageEnd()
3431 rajveer 2050
    if result.success is not None:
94 ashish 2051
      return result.success
3431 rajveer 2052
    if result.scx is not None:
559 chandransh 2053
      raise result.scx
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2055
 
559 chandransh 2056
  def getCartsByStatus(self, status):
94 ashish 2057
    """
2058
    Parameters:
559 chandransh 2059
     - status
94 ashish 2060
    """
559 chandransh 2061
    self.send_getCartsByStatus(status)
2062
    return self.recv_getCartsByStatus()
94 ashish 2063
 
559 chandransh 2064
  def send_getCartsByStatus(self, status):
2065
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2066
    args = getCartsByStatus_args()
2067
    args.status = status
94 ashish 2068
    args.write(self._oprot)
2069
    self._oprot.writeMessageEnd()
2070
    self._oprot.trans.flush()
2071
 
559 chandransh 2072
  def recv_getCartsByStatus(self, ):
94 ashish 2073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2074
    if mtype == TMessageType.EXCEPTION:
2075
      x = TApplicationException()
2076
      x.read(self._iprot)
2077
      self._iprot.readMessageEnd()
2078
      raise x
559 chandransh 2079
    result = getCartsByStatus_result()
94 ashish 2080
    result.read(self._iprot)
2081
    self._iprot.readMessageEnd()
3431 rajveer 2082
    if result.success is not None:
94 ashish 2083
      return result.success
3431 rajveer 2084
    if result.scx is not None:
559 chandransh 2085
      raise result.scx
2086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2087
 
559 chandransh 2088
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2089
    """
2090
    Parameters:
559 chandransh 2091
     - from_time
2092
     - to_time
2093
     - status
94 ashish 2094
    """
559 chandransh 2095
    self.send_getCartsByTime(from_time, to_time, status)
2096
    return self.recv_getCartsByTime()
94 ashish 2097
 
559 chandransh 2098
  def send_getCartsByTime(self, from_time, to_time, status):
2099
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2100
    args = getCartsByTime_args()
2101
    args.from_time = from_time
2102
    args.to_time = to_time
2103
    args.status = status
94 ashish 2104
    args.write(self._oprot)
2105
    self._oprot.writeMessageEnd()
2106
    self._oprot.trans.flush()
2107
 
559 chandransh 2108
  def recv_getCartsByTime(self, ):
94 ashish 2109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2110
    if mtype == TMessageType.EXCEPTION:
2111
      x = TApplicationException()
2112
      x.read(self._iprot)
2113
      self._iprot.readMessageEnd()
2114
      raise x
559 chandransh 2115
    result = getCartsByTime_result()
94 ashish 2116
    result.read(self._iprot)
2117
    self._iprot.readMessageEnd()
3431 rajveer 2118
    if result.success is not None:
94 ashish 2119
      return result.success
3431 rajveer 2120
    if result.scx is not None:
559 chandransh 2121
      raise result.scx
2122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2123
 
559 chandransh 2124
  def changeCartStatus(self, cartId, status):
130 ashish 2125
    """
2126
    Parameters:
559 chandransh 2127
     - cartId
2128
     - status
130 ashish 2129
    """
559 chandransh 2130
    self.send_changeCartStatus(cartId, status)
2131
    self.recv_changeCartStatus()
94 ashish 2132
 
559 chandransh 2133
  def send_changeCartStatus(self, cartId, status):
2134
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2135
    args = changeCartStatus_args()
2136
    args.cartId = cartId
2137
    args.status = status
130 ashish 2138
    args.write(self._oprot)
2139
    self._oprot.writeMessageEnd()
2140
    self._oprot.trans.flush()
2141
 
559 chandransh 2142
  def recv_changeCartStatus(self, ):
130 ashish 2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144
    if mtype == TMessageType.EXCEPTION:
2145
      x = TApplicationException()
2146
      x.read(self._iprot)
2147
      self._iprot.readMessageEnd()
2148
      raise x
559 chandransh 2149
    result = changeCartStatus_result()
130 ashish 2150
    result.read(self._iprot)
2151
    self._iprot.readMessageEnd()
3431 rajveer 2152
    if result.scx is not None:
559 chandransh 2153
      raise result.scx
2154
    return
2155
 
3557 rajveer 2156
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2157
    """
2158
    Parameters:
2159
     - cartId
2160
     - itemId
2161
     - quantity
3557 rajveer 2162
     - sourceId
559 chandransh 2163
    """
3557 rajveer 2164
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2165
    return self.recv_addItemToCart()
559 chandransh 2166
 
3557 rajveer 2167
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2168
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2169
    args = addItemToCart_args()
2170
    args.cartId = cartId
2171
    args.itemId = itemId
2172
    args.quantity = quantity
3557 rajveer 2173
    args.sourceId = sourceId
559 chandransh 2174
    args.write(self._oprot)
2175
    self._oprot.writeMessageEnd()
2176
    self._oprot.trans.flush()
2177
 
2178
  def recv_addItemToCart(self, ):
2179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2180
    if mtype == TMessageType.EXCEPTION:
2181
      x = TApplicationException()
2182
      x.read(self._iprot)
2183
      self._iprot.readMessageEnd()
2184
      raise x
2185
    result = addItemToCart_result()
2186
    result.read(self._iprot)
2187
    self._iprot.readMessageEnd()
3431 rajveer 2188
    if result.success is not None:
2035 rajveer 2189
      return result.success
3431 rajveer 2190
    if result.scx is not None:
559 chandransh 2191
      raise result.scx
2035 rajveer 2192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2193
 
2194
  def deleteItemFromCart(self, cartId, itemId):
2195
    """
2196
    Parameters:
2197
     - cartId
2198
     - itemId
2199
    """
2200
    self.send_deleteItemFromCart(cartId, itemId)
2201
    self.recv_deleteItemFromCart()
2202
 
2203
  def send_deleteItemFromCart(self, cartId, itemId):
2204
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2205
    args = deleteItemFromCart_args()
2206
    args.cartId = cartId
2207
    args.itemId = itemId
2208
    args.write(self._oprot)
2209
    self._oprot.writeMessageEnd()
2210
    self._oprot.trans.flush()
2211
 
2212
  def recv_deleteItemFromCart(self, ):
2213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2214
    if mtype == TMessageType.EXCEPTION:
2215
      x = TApplicationException()
2216
      x.read(self._iprot)
2217
      self._iprot.readMessageEnd()
2218
      raise x
2219
    result = deleteItemFromCart_result()
2220
    result.read(self._iprot)
2221
    self._iprot.readMessageEnd()
3431 rajveer 2222
    if result.scx is not None:
559 chandransh 2223
      raise result.scx
2224
    return
2225
 
2226
  def changeItemStatus(self, cartId, itemId, status):
2227
    """
2228
    Parameters:
2229
     - cartId
2230
     - itemId
2231
     - status
2232
    """
2233
    self.send_changeItemStatus(cartId, itemId, status)
2234
    self.recv_changeItemStatus()
2235
 
2236
  def send_changeItemStatus(self, cartId, itemId, status):
2237
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2238
    args = changeItemStatus_args()
2239
    args.cartId = cartId
2240
    args.itemId = itemId
2241
    args.status = status
2242
    args.write(self._oprot)
2243
    self._oprot.writeMessageEnd()
2244
    self._oprot.trans.flush()
2245
 
2246
  def recv_changeItemStatus(self, ):
2247
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2248
    if mtype == TMessageType.EXCEPTION:
2249
      x = TApplicationException()
2250
      x.read(self._iprot)
2251
      self._iprot.readMessageEnd()
2252
      raise x
2253
    result = changeItemStatus_result()
2254
    result.read(self._iprot)
2255
    self._iprot.readMessageEnd()
3431 rajveer 2256
    if result.scx is not None:
559 chandransh 2257
      raise result.scx
2258
    return
2259
 
2260
  def addAddressToCart(self, cartId, addressId):
2261
    """
2262
    Parameters:
2263
     - cartId
2264
     - addressId
2265
    """
2266
    self.send_addAddressToCart(cartId, addressId)
2267
    self.recv_addAddressToCart()
2268
 
2269
  def send_addAddressToCart(self, cartId, addressId):
2270
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2271
    args = addAddressToCart_args()
2272
    args.cartId = cartId
2273
    args.addressId = addressId
2274
    args.write(self._oprot)
2275
    self._oprot.writeMessageEnd()
2276
    self._oprot.trans.flush()
2277
 
2278
  def recv_addAddressToCart(self, ):
2279
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2280
    if mtype == TMessageType.EXCEPTION:
2281
      x = TApplicationException()
2282
      x.read(self._iprot)
2283
      self._iprot.readMessageEnd()
2284
      raise x
2285
    result = addAddressToCart_result()
2286
    result.read(self._iprot)
2287
    self._iprot.readMessageEnd()
3431 rajveer 2288
    if result.scx is not None:
575 chandransh 2289
      raise result.scx
559 chandransh 2290
    return
2291
 
1976 varun.gupt 2292
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2293
    """
2294
    Parameters:
2295
     - cartId
2296
     - couponCode
2297
     - totalPrice
2298
     - discountedPrice
2299
    """
2300
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2301
    self.recv_applyCouponToCart()
2302
 
2303
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2304
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2305
    args = applyCouponToCart_args()
2306
    args.cartId = cartId
2307
    args.couponCode = couponCode
2308
    args.totalPrice = totalPrice
2309
    args.discountedPrice = discountedPrice
2310
    args.write(self._oprot)
2311
    self._oprot.writeMessageEnd()
2312
    self._oprot.trans.flush()
2313
 
2314
  def recv_applyCouponToCart(self, ):
2315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2316
    if mtype == TMessageType.EXCEPTION:
2317
      x = TApplicationException()
2318
      x.read(self._iprot)
2319
      self._iprot.readMessageEnd()
2320
      raise x
2321
    result = applyCouponToCart_result()
2322
    result.read(self._iprot)
2323
    self._iprot.readMessageEnd()
3431 rajveer 2324
    if result.scx is not None:
1976 varun.gupt 2325
      raise result.scx
2326
    return
2327
 
2328
  def removeCoupon(self, cartId):
2329
    """
2330
    Parameters:
2331
     - cartId
2332
    """
2333
    self.send_removeCoupon(cartId)
2334
    self.recv_removeCoupon()
2335
 
2336
  def send_removeCoupon(self, cartId):
2337
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2338
    args = removeCoupon_args()
2339
    args.cartId = cartId
2340
    args.write(self._oprot)
2341
    self._oprot.writeMessageEnd()
2342
    self._oprot.trans.flush()
2343
 
2344
  def recv_removeCoupon(self, ):
2345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2346
    if mtype == TMessageType.EXCEPTION:
2347
      x = TApplicationException()
2348
      x.read(self._iprot)
2349
      self._iprot.readMessageEnd()
2350
      raise x
2351
    result = removeCoupon_result()
2352
    result.read(self._iprot)
2353
    self._iprot.readMessageEnd()
3431 rajveer 2354
    if result.scx is not None:
1976 varun.gupt 2355
      raise result.scx
2356
    return
2357
 
3554 varun.gupt 2358
  def deleteDiscountsFromCart(self, cartId):
2359
    """
2360
    Deletes all the discounts associated with the cart
2361
 
2362
    Parameters:
2363
     - cartId
2364
    """
2365
    self.send_deleteDiscountsFromCart(cartId)
2366
    self.recv_deleteDiscountsFromCart()
2367
 
2368
  def send_deleteDiscountsFromCart(self, cartId):
2369
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2370
    args = deleteDiscountsFromCart_args()
2371
    args.cartId = cartId
2372
    args.write(self._oprot)
2373
    self._oprot.writeMessageEnd()
2374
    self._oprot.trans.flush()
2375
 
2376
  def recv_deleteDiscountsFromCart(self, ):
2377
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2378
    if mtype == TMessageType.EXCEPTION:
2379
      x = TApplicationException()
2380
      x.read(self._iprot)
2381
      self._iprot.readMessageEnd()
2382
      raise x
2383
    result = deleteDiscountsFromCart_result()
2384
    result.read(self._iprot)
2385
    self._iprot.readMessageEnd()
2386
    if result.scx is not None:
2387
      raise result.scx
2388
    return
2389
 
2390
  def saveDiscounts(self, discounts):
2391
    """
2392
    Accepts a list of thrift objects of Discount type and saves them
2393
 
2394
    Parameters:
2395
     - discounts
2396
    """
2397
    self.send_saveDiscounts(discounts)
2398
    self.recv_saveDiscounts()
2399
 
2400
  def send_saveDiscounts(self, discounts):
2401
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2402
    args = saveDiscounts_args()
2403
    args.discounts = discounts
2404
    args.write(self._oprot)
2405
    self._oprot.writeMessageEnd()
2406
    self._oprot.trans.flush()
2407
 
2408
  def recv_saveDiscounts(self, ):
2409
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2410
    if mtype == TMessageType.EXCEPTION:
2411
      x = TApplicationException()
2412
      x.read(self._iprot)
2413
      self._iprot.readMessageEnd()
2414
      raise x
2415
    result = saveDiscounts_result()
2416
    result.read(self._iprot)
2417
    self._iprot.readMessageEnd()
2418
    if result.scx is not None:
2419
      raise result.scx
2420
    return
2421
 
3858 vikas 2422
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
559 chandransh 2423
    """
690 chandransh 2424
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2425
 
559 chandransh 2426
    Parameters:
2427
     - cartId
2815 vikas 2428
     - sessionSource
2429
     - sessionStartTime
3858 vikas 2430
     - firstSource
2431
     - firstSourceTime
559 chandransh 2432
    """
3858 vikas 2433
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime)
690 chandransh 2434
    return self.recv_createOrders()
559 chandransh 2435
 
3858 vikas 2436
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
690 chandransh 2437
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2438
    args = createOrders_args()
559 chandransh 2439
    args.cartId = cartId
2815 vikas 2440
    args.sessionSource = sessionSource
2441
    args.sessionStartTime = sessionStartTime
3858 vikas 2442
    args.firstSource = firstSource
2443
    args.firstSourceTime = firstSourceTime
559 chandransh 2444
    args.write(self._oprot)
2445
    self._oprot.writeMessageEnd()
2446
    self._oprot.trans.flush()
2447
 
690 chandransh 2448
  def recv_createOrders(self, ):
559 chandransh 2449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2450
    if mtype == TMessageType.EXCEPTION:
2451
      x = TApplicationException()
2452
      x.read(self._iprot)
2453
      self._iprot.readMessageEnd()
2454
      raise x
690 chandransh 2455
    result = createOrders_result()
559 chandransh 2456
    result.read(self._iprot)
2457
    self._iprot.readMessageEnd()
3431 rajveer 2458
    if result.success is not None:
130 ashish 2459
      return result.success
3431 rajveer 2460
    if result.scx is not None:
559 chandransh 2461
      raise result.scx
690 chandransh 2462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2463
 
3557 rajveer 2464
  def validateCart(self, cartId, sourceId):
130 ashish 2465
    """
690 chandransh 2466
    Validates that:
2467
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2468
    2. All of the lines in the cart are active items.
690 chandransh 2469
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2470
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2471
 
130 ashish 2472
    Parameters:
559 chandransh 2473
     - cartId
3557 rajveer 2474
     - sourceId
130 ashish 2475
    """
3557 rajveer 2476
    self.send_validateCart(cartId, sourceId)
559 chandransh 2477
    return self.recv_validateCart()
130 ashish 2478
 
3557 rajveer 2479
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2480
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2481
    args = validateCart_args()
2482
    args.cartId = cartId
3557 rajveer 2483
    args.sourceId = sourceId
130 ashish 2484
    args.write(self._oprot)
2485
    self._oprot.writeMessageEnd()
2486
    self._oprot.trans.flush()
2487
 
559 chandransh 2488
  def recv_validateCart(self, ):
130 ashish 2489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2490
    if mtype == TMessageType.EXCEPTION:
2491
      x = TApplicationException()
2492
      x.read(self._iprot)
2493
      self._iprot.readMessageEnd()
2494
      raise x
559 chandransh 2495
    result = validateCart_result()
130 ashish 2496
    result.read(self._iprot)
2497
    self._iprot.readMessageEnd()
3431 rajveer 2498
    if result.success is not None:
130 ashish 2499
      return result.success
3431 rajveer 2500
    if result.scex is not None:
575 chandransh 2501
      raise result.scex
559 chandransh 2502
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2503
 
690 chandransh 2504
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2505
    """
690 chandransh 2506
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2507
 
575 chandransh 2508
    Parameters:
690 chandransh 2509
     - fromCartId
2510
     - toCartId
2511
    """
2512
    self.send_mergeCart(fromCartId, toCartId)
2513
    self.recv_mergeCart()
2514
 
2515
  def send_mergeCart(self, fromCartId, toCartId):
2516
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2517
    args = mergeCart_args()
2518
    args.fromCartId = fromCartId
2519
    args.toCartId = toCartId
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_mergeCart(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = mergeCart_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    return
2535
 
2536
  def checkOut(self, cartId):
2537
    """
2538
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2539
 
690 chandransh 2540
    Parameters:
575 chandransh 2541
     - cartId
2542
    """
690 chandransh 2543
    self.send_checkOut(cartId)
2544
    return self.recv_checkOut()
575 chandransh 2545
 
690 chandransh 2546
  def send_checkOut(self, cartId):
2547
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2548
    args = checkOut_args()
575 chandransh 2549
    args.cartId = cartId
2550
    args.write(self._oprot)
2551
    self._oprot.writeMessageEnd()
2552
    self._oprot.trans.flush()
2553
 
690 chandransh 2554
  def recv_checkOut(self, ):
575 chandransh 2555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2556
    if mtype == TMessageType.EXCEPTION:
2557
      x = TApplicationException()
2558
      x.read(self._iprot)
2559
      self._iprot.readMessageEnd()
2560
      raise x
690 chandransh 2561
    result = checkOut_result()
575 chandransh 2562
    result.read(self._iprot)
2563
    self._iprot.readMessageEnd()
3431 rajveer 2564
    if result.success is not None:
575 chandransh 2565
      return result.success
3431 rajveer 2566
    if result.scex is not None:
575 chandransh 2567
      raise result.scex
690 chandransh 2568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2569
 
690 chandransh 2570
  def resetCart(self, cartId, items):
559 chandransh 2571
    """
690 chandransh 2572
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2573
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2574
 
559 chandransh 2575
    Parameters:
690 chandransh 2576
     - cartId
2577
     - items
559 chandransh 2578
    """
690 chandransh 2579
    self.send_resetCart(cartId, items)
2580
    return self.recv_resetCart()
130 ashish 2581
 
690 chandransh 2582
  def send_resetCart(self, cartId, items):
2583
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2584
    args = resetCart_args()
2585
    args.cartId = cartId
2586
    args.items = items
559 chandransh 2587
    args.write(self._oprot)
2588
    self._oprot.writeMessageEnd()
2589
    self._oprot.trans.flush()
2590
 
690 chandransh 2591
  def recv_resetCart(self, ):
559 chandransh 2592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2593
    if mtype == TMessageType.EXCEPTION:
2594
      x = TApplicationException()
2595
      x.read(self._iprot)
2596
      self._iprot.readMessageEnd()
2597
      raise x
690 chandransh 2598
    result = resetCart_result()
559 chandransh 2599
    result.read(self._iprot)
2600
    self._iprot.readMessageEnd()
3431 rajveer 2601
    if result.success is not None:
690 chandransh 2602
      return result.success
3431 rajveer 2603
    if result.scex is not None:
690 chandransh 2604
      raise result.scex
2605
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2606
 
2981 rajveer 2607
  def getUserCount(self, userType):
559 chandransh 2608
    """
2981 rajveer 2609
    Returns number of registered users.
2610
    If userType = null, then it returns count of all users, including anonymous
2611
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2612
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2613
 
559 chandransh 2614
    Parameters:
2981 rajveer 2615
     - userType
559 chandransh 2616
    """
2981 rajveer 2617
    self.send_getUserCount(userType)
2618
    return self.recv_getUserCount()
559 chandransh 2619
 
2981 rajveer 2620
  def send_getUserCount(self, userType):
2621
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2622
    args = getUserCount_args()
2623
    args.userType = userType
559 chandransh 2624
    args.write(self._oprot)
2625
    self._oprot.writeMessageEnd()
2626
    self._oprot.trans.flush()
2627
 
2981 rajveer 2628
  def recv_getUserCount(self, ):
559 chandransh 2629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2630
    if mtype == TMessageType.EXCEPTION:
2631
      x = TApplicationException()
2632
      x.read(self._iprot)
2633
      self._iprot.readMessageEnd()
2634
      raise x
2981 rajveer 2635
    result = getUserCount_result()
559 chandransh 2636
    result.read(self._iprot)
2637
    self._iprot.readMessageEnd()
3431 rajveer 2638
    if result.success is not None:
559 chandransh 2639
      return result.success
2981 rajveer 2640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2641
 
2981 rajveer 2642
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2643
    """
2981 rajveer 2644
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2645
    If any of startDate or endDate is -1, then that filter is ignored.
2646
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2647
 
2648
 
559 chandransh 2649
    Parameters:
2981 rajveer 2650
     - userType
2651
     - startDate
2652
     - endDate
559 chandransh 2653
    """
2981 rajveer 2654
    self.send_getAllUsers(userType, startDate, endDate)
2655
    return self.recv_getAllUsers()
559 chandransh 2656
 
2981 rajveer 2657
  def send_getAllUsers(self, userType, startDate, endDate):
2658
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2659
    args = getAllUsers_args()
2660
    args.userType = userType
2661
    args.startDate = startDate
2662
    args.endDate = endDate
559 chandransh 2663
    args.write(self._oprot)
2664
    self._oprot.writeMessageEnd()
2665
    self._oprot.trans.flush()
2666
 
2981 rajveer 2667
  def recv_getAllUsers(self, ):
559 chandransh 2668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2669
    if mtype == TMessageType.EXCEPTION:
2670
      x = TApplicationException()
2671
      x.read(self._iprot)
2672
      self._iprot.readMessageEnd()
2673
      raise x
2981 rajveer 2674
    result = getAllUsers_result()
559 chandransh 2675
    result.read(self._iprot)
2676
    self._iprot.readMessageEnd()
3431 rajveer 2677
    if result.success is not None:
559 chandransh 2678
      return result.success
2981 rajveer 2679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2680
 
2981 rajveer 2681
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2682
    """
2683
    Parameters:
2981 rajveer 2684
     - user_id
2685
     - entity_id
2686
     - slide
2687
     - note
559 chandransh 2688
    """
2981 rajveer 2689
    self.send_putUserNote(user_id, entity_id, slide, note)
2690
    self.recv_putUserNote()
559 chandransh 2691
 
2981 rajveer 2692
  def send_putUserNote(self, user_id, entity_id, slide, note):
2693
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2694
    args = putUserNote_args()
2695
    args.user_id = user_id
2696
    args.entity_id = entity_id
2697
    args.slide = slide
2698
    args.note = note
559 chandransh 2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2981 rajveer 2703
  def recv_putUserNote(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 = putUserNote_result()
559 chandransh 2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
2713
    return
2714
 
2981 rajveer 2715
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2716
    """
2717
    Parameters:
2981 rajveer 2718
     - user_id
2719
     - entity_id
559 chandransh 2720
    """
2981 rajveer 2721
    self.send_getUserNotes(user_id, entity_id)
2722
    return self.recv_getUserNotes()
559 chandransh 2723
 
2981 rajveer 2724
  def send_getUserNotes(self, user_id, entity_id):
2725
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2726
    args = getUserNotes_args()
2727
    args.user_id = user_id
2728
    args.entity_id = entity_id
559 chandransh 2729
    args.write(self._oprot)
2730
    self._oprot.writeMessageEnd()
2731
    self._oprot.trans.flush()
2732
 
2981 rajveer 2733
  def recv_getUserNotes(self, ):
559 chandransh 2734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2735
    if mtype == TMessageType.EXCEPTION:
2736
      x = TApplicationException()
2737
      x.read(self._iprot)
2738
      self._iprot.readMessageEnd()
2739
      raise x
2981 rajveer 2740
    result = getUserNotes_result()
559 chandransh 2741
    result.read(self._iprot)
2742
    self._iprot.readMessageEnd()
3431 rajveer 2743
    if result.success is not None:
2981 rajveer 2744
      return result.success
2745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2746
 
2981 rajveer 2747
  def getMyResearchItems(self, userId):
559 chandransh 2748
    """
2981 rajveer 2749
    Returns list of item ids in myresearch for the user
3431 rajveer 2750
 
559 chandransh 2751
    Parameters:
772 rajveer 2752
     - userId
559 chandransh 2753
    """
2981 rajveer 2754
    self.send_getMyResearchItems(userId)
2755
    return self.recv_getMyResearchItems()
559 chandransh 2756
 
2981 rajveer 2757
  def send_getMyResearchItems(self, userId):
2758
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2759
    args = getMyResearchItems_args()
772 rajveer 2760
    args.userId = userId
559 chandransh 2761
    args.write(self._oprot)
2762
    self._oprot.writeMessageEnd()
2763
    self._oprot.trans.flush()
2764
 
2981 rajveer 2765
  def recv_getMyResearchItems(self, ):
559 chandransh 2766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2767
    if mtype == TMessageType.EXCEPTION:
2768
      x = TApplicationException()
2769
      x.read(self._iprot)
2770
      self._iprot.readMessageEnd()
2771
      raise x
2981 rajveer 2772
    result = getMyResearchItems_result()
559 chandransh 2773
    result.read(self._iprot)
2774
    self._iprot.readMessageEnd()
3431 rajveer 2775
    if result.success is not None:
559 chandransh 2776
      return result.success
3431 rajveer 2777
    if result.scx is not None:
559 chandransh 2778
      raise result.scx
2981 rajveer 2779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2780
 
2981 rajveer 2781
  def updateMyResearch(self, userId, itemId):
559 chandransh 2782
    """
2981 rajveer 2783
    add item to my research for a user
3431 rajveer 2784
 
559 chandransh 2785
    Parameters:
2981 rajveer 2786
     - userId
2787
     - itemId
559 chandransh 2788
    """
2981 rajveer 2789
    self.send_updateMyResearch(userId, itemId)
2790
    return self.recv_updateMyResearch()
559 chandransh 2791
 
2981 rajveer 2792
  def send_updateMyResearch(self, userId, itemId):
2793
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2794
    args = updateMyResearch_args()
2795
    args.userId = userId
2796
    args.itemId = itemId
559 chandransh 2797
    args.write(self._oprot)
2798
    self._oprot.writeMessageEnd()
2799
    self._oprot.trans.flush()
2800
 
2981 rajveer 2801
  def recv_updateMyResearch(self, ):
559 chandransh 2802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2803
    if mtype == TMessageType.EXCEPTION:
2804
      x = TApplicationException()
2805
      x.read(self._iprot)
2806
      self._iprot.readMessageEnd()
2807
      raise x
2981 rajveer 2808
    result = updateMyResearch_result()
559 chandransh 2809
    result.read(self._iprot)
2810
    self._iprot.readMessageEnd()
3431 rajveer 2811
    if result.success is not None:
2981 rajveer 2812
      return result.success
3431 rajveer 2813
    if result.scx is not None:
2981 rajveer 2814
      raise result.scx
2815
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2816
 
2981 rajveer 2817
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2818
    """
2981 rajveer 2819
    delete item from my research for a user
3431 rajveer 2820
 
1596 ankur.sing 2821
    Parameters:
2981 rajveer 2822
     - userId
2823
     - itemId
1596 ankur.sing 2824
    """
2981 rajveer 2825
    self.send_deleteItemFromMyResearch(userId, itemId)
2826
    self.recv_deleteItemFromMyResearch()
559 chandransh 2827
 
2981 rajveer 2828
  def send_deleteItemFromMyResearch(self, userId, itemId):
2829
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2830
    args = deleteItemFromMyResearch_args()
2831
    args.userId = userId
2832
    args.itemId = itemId
1596 ankur.sing 2833
    args.write(self._oprot)
2834
    self._oprot.writeMessageEnd()
2835
    self._oprot.trans.flush()
2836
 
2981 rajveer 2837
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2839
    if mtype == TMessageType.EXCEPTION:
2840
      x = TApplicationException()
2841
      x.read(self._iprot)
2842
      self._iprot.readMessageEnd()
2843
      raise x
2981 rajveer 2844
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2845
    result.read(self._iprot)
2846
    self._iprot.readMessageEnd()
3431 rajveer 2847
    if result.scx is not None:
2981 rajveer 2848
      raise result.scx
2849
    return
1596 ankur.sing 2850
 
2981 rajveer 2851
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2852
    """
2981 rajveer 2853
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2854
 
1673 ankur.sing 2855
    Parameters:
2981 rajveer 2856
     - userId
1673 ankur.sing 2857
    """
2981 rajveer 2858
    self.send_getBrowseHistoryItems(userId)
2859
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2860
 
2981 rajveer 2861
  def send_getBrowseHistoryItems(self, userId):
2862
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2863
    args = getBrowseHistoryItems_args()
2864
    args.userId = userId
1673 ankur.sing 2865
    args.write(self._oprot)
2866
    self._oprot.writeMessageEnd()
2867
    self._oprot.trans.flush()
2868
 
2981 rajveer 2869
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2871
    if mtype == TMessageType.EXCEPTION:
2872
      x = TApplicationException()
2873
      x.read(self._iprot)
2874
      self._iprot.readMessageEnd()
2875
      raise x
2981 rajveer 2876
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2877
    result.read(self._iprot)
2878
    self._iprot.readMessageEnd()
3431 rajveer 2879
    if result.success is not None:
1673 ankur.sing 2880
      return result.success
3431 rajveer 2881
    if result.scx is not None:
2981 rajveer 2882
      raise result.scx
2883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2884
 
2981 rajveer 2885
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2886
    """
2981 rajveer 2887
    add item to browse history for a user
3431 rajveer 2888
 
2642 varun.gupt 2889
    Parameters:
2981 rajveer 2890
     - userId
2891
     - itemId
2642 varun.gupt 2892
    """
2981 rajveer 2893
    self.send_updateBrowseHistory(userId, itemId)
2894
    self.recv_updateBrowseHistory()
1673 ankur.sing 2895
 
2981 rajveer 2896
  def send_updateBrowseHistory(self, userId, itemId):
2897
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2898
    args = updateBrowseHistory_args()
2899
    args.userId = userId
2900
    args.itemId = itemId
2642 varun.gupt 2901
    args.write(self._oprot)
2902
    self._oprot.writeMessageEnd()
2903
    self._oprot.trans.flush()
2904
 
2981 rajveer 2905
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2907
    if mtype == TMessageType.EXCEPTION:
2908
      x = TApplicationException()
2909
      x.read(self._iprot)
2910
      self._iprot.readMessageEnd()
2911
      raise x
2981 rajveer 2912
    result = updateBrowseHistory_result()
2642 varun.gupt 2913
    result.read(self._iprot)
2914
    self._iprot.readMessageEnd()
2915
    return
2916
 
3385 varun.gupt 2917
  def getCartsWithCouponCount(self, couponCode):
2918
    """
2919
    Returns count of Carts with given coupon applied
3431 rajveer 2920
 
3385 varun.gupt 2921
    Parameters:
2922
     - couponCode
2923
    """
2924
    self.send_getCartsWithCouponCount(couponCode)
2925
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2926
 
3385 varun.gupt 2927
  def send_getCartsWithCouponCount(self, couponCode):
2928
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2929
    args = getCartsWithCouponCount_args()
2930
    args.couponCode = couponCode
2931
    args.write(self._oprot)
2932
    self._oprot.writeMessageEnd()
2933
    self._oprot.trans.flush()
2934
 
2935
  def recv_getCartsWithCouponCount(self, ):
2936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2937
    if mtype == TMessageType.EXCEPTION:
2938
      x = TApplicationException()
2939
      x.read(self._iprot)
2940
      self._iprot.readMessageEnd()
2941
      raise x
2942
    result = getCartsWithCouponCount_result()
2943
    result.read(self._iprot)
2944
    self._iprot.readMessageEnd()
3431 rajveer 2945
    if result.success is not None:
3385 varun.gupt 2946
      return result.success
2947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2948
 
3499 mandeep.dh 2949
  def increaseTrustLevel(self, userId, trustLevelDelta):
2950
    """
2951
    Updates COD trust level of a user
3385 varun.gupt 2952
 
3499 mandeep.dh 2953
    Parameters:
2954
     - userId
2955
     - trustLevelDelta
2956
    """
2957
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2958
 
2959
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2960
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2961
    args = increaseTrustLevel_args()
2962
    args.userId = userId
2963
    args.trustLevelDelta = trustLevelDelta
2964
    args.write(self._oprot)
2965
    self._oprot.writeMessageEnd()
2966
    self._oprot.trans.flush()
4668 varun.gupt 2967
  def showCODOption(self, cartId, sourceId, pincode):
2968
    """
2969
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2970
 
4668 varun.gupt 2971
    Parameters:
2972
     - cartId
2973
     - sourceId
2974
     - pincode
2975
    """
2976
    self.send_showCODOption(cartId, sourceId, pincode)
2977
    return self.recv_showCODOption()
2978
 
2979
  def send_showCODOption(self, cartId, sourceId, pincode):
2980
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2981
    args = showCODOption_args()
2982
    args.cartId = cartId
2983
    args.sourceId = sourceId
2984
    args.pincode = pincode
2985
    args.write(self._oprot)
2986
    self._oprot.writeMessageEnd()
2987
    self._oprot.trans.flush()
2988
 
2989
  def recv_showCODOption(self, ):
2990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2991
    if mtype == TMessageType.EXCEPTION:
2992
      x = TApplicationException()
2993
      x.read(self._iprot)
2994
      self._iprot.readMessageEnd()
2995
      raise x
2996
    result = showCODOption_result()
2997
    result.read(self._iprot)
2998
    self._iprot.readMessageEnd()
2999
    if result.success is not None:
3000
      return result.success
3001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
3002
 
3003
 
3376 rajveer 3004
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3005
  def __init__(self, handler):
3376 rajveer 3006
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3007
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3008
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 3009
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3010
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3011
    self._processMap["createUser"] = Processor.process_createUser
3012
    self._processMap["updateUser"] = Processor.process_updateUser
3013
    self._processMap["deleteUser"] = Processor.process_deleteUser
3014
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 3015
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3016
    self._processMap["userExists"] = Processor.process_userExists
3017
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3018
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3019
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3020
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3021
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3022
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3023
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3024
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3025
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3026
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3027
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3028
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3029
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3030
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3031
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 3032
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3033
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3034
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3035
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3036
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3037
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3038
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3039
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3040
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3041
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3042
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3043
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3044
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3045
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3046
    self._processMap["createCart"] = Processor.process_createCart
3047
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3048
    self._processMap["getCart"] = Processor.process_getCart
3049
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
3050
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
3051
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3052
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
3053
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3054
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3055
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3056
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 3057
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3058
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3059
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3060
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3061
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3062
    self._processMap["validateCart"] = Processor.process_validateCart
3063
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3064
    self._processMap["checkOut"] = Processor.process_checkOut
3065
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3066
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3067
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 3068
    self._processMap["putUserNote"] = Processor.process_putUserNote
3069
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 3070
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3071
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3072
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3073
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3074
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3075
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3076
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
4668 varun.gupt 3077
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 3078
 
3079
  def process(self, iprot, oprot):
3080
    (name, type, seqid) = iprot.readMessageBegin()
3081
    if name not in self._processMap:
3082
      iprot.skip(TType.STRUCT)
3083
      iprot.readMessageEnd()
3084
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3085
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3086
      x.write(oprot)
3087
      oprot.writeMessageEnd()
3088
      oprot.trans.flush()
3089
      return
3090
    else:
3091
      self._processMap[name](self, seqid, iprot, oprot)
3092
    return True
3093
 
559 chandransh 3094
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3095
    args = createAnonymousUser_args()
94 ashish 3096
    args.read(iprot)
3097
    iprot.readMessageEnd()
559 chandransh 3098
    result = createAnonymousUser_result()
94 ashish 3099
    try:
559 chandransh 3100
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3101
    except UserContextException, ucex:
3102
      result.ucex = ucex
3103
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3104
    result.write(oprot)
3105
    oprot.writeMessageEnd()
3106
    oprot.trans.flush()
3107
 
559 chandransh 3108
  def process_getUserById(self, seqid, iprot, oprot):
3109
    args = getUserById_args()
94 ashish 3110
    args.read(iprot)
3111
    iprot.readMessageEnd()
559 chandransh 3112
    result = getUserById_result()
94 ashish 3113
    try:
559 chandransh 3114
      result.success = self._handler.getUserById(args.userId)
3115
    except UserContextException, ucex:
3116
      result.ucex = ucex
3117
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3118
    result.write(oprot)
3119
    oprot.writeMessageEnd()
3120
    oprot.trans.flush()
3121
 
1491 vikas 3122
  def process_getUserByEmail(self, seqid, iprot, oprot):
3123
    args = getUserByEmail_args()
3124
    args.read(iprot)
3125
    iprot.readMessageEnd()
3126
    result = getUserByEmail_result()
3127
    try:
3128
      result.success = self._handler.getUserByEmail(args.email)
3129
    except UserContextException, ucex:
3130
      result.ucex = ucex
3131
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3132
    result.write(oprot)
3133
    oprot.writeMessageEnd()
3134
    oprot.trans.flush()
3135
 
3032 mandeep.dh 3136
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3137
    args = getUserByMobileNumber_args()
3138
    args.read(iprot)
3139
    iprot.readMessageEnd()
3140
    result = getUserByMobileNumber_result()
3141
    try:
3142
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3143
    except UserContextException, ucex:
3144
      result.ucex = ucex
3145
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3146
    result.write(oprot)
3147
    oprot.writeMessageEnd()
3148
    oprot.trans.flush()
3149
 
559 chandransh 3150
  def process_createUser(self, seqid, iprot, oprot):
3151
    args = createUser_args()
94 ashish 3152
    args.read(iprot)
3153
    iprot.readMessageEnd()
559 chandransh 3154
    result = createUser_result()
94 ashish 3155
    try:
559 chandransh 3156
      result.success = self._handler.createUser(args.user)
3157
    except UserContextException, ucex:
3158
      result.ucex = ucex
3159
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3160
    result.write(oprot)
3161
    oprot.writeMessageEnd()
3162
    oprot.trans.flush()
3163
 
559 chandransh 3164
  def process_updateUser(self, seqid, iprot, oprot):
3165
    args = updateUser_args()
94 ashish 3166
    args.read(iprot)
3167
    iprot.readMessageEnd()
559 chandransh 3168
    result = updateUser_result()
94 ashish 3169
    try:
559 chandransh 3170
      result.success = self._handler.updateUser(args.user)
3171
    except UserContextException, ucex:
3172
      result.ucex = ucex
3173
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3174
    result.write(oprot)
3175
    oprot.writeMessageEnd()
3176
    oprot.trans.flush()
3177
 
559 chandransh 3178
  def process_deleteUser(self, seqid, iprot, oprot):
3179
    args = deleteUser_args()
94 ashish 3180
    args.read(iprot)
3181
    iprot.readMessageEnd()
559 chandransh 3182
    result = deleteUser_result()
94 ashish 3183
    try:
559 chandransh 3184
      result.success = self._handler.deleteUser(args.userId)
3185
    except UserContextException, ucex:
3186
      result.ucex = ucex
3187
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3188
    result.write(oprot)
3189
    oprot.writeMessageEnd()
3190
    oprot.trans.flush()
3191
 
559 chandransh 3192
  def process_getUserState(self, seqid, iprot, oprot):
3193
    args = getUserState_args()
94 ashish 3194
    args.read(iprot)
3195
    iprot.readMessageEnd()
559 chandransh 3196
    result = getUserState_result()
94 ashish 3197
    try:
559 chandransh 3198
      result.success = self._handler.getUserState(args.userId)
3199
    except UserContextException, ucex:
3200
      result.ucex = ucex
3201
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3202
    result.write(oprot)
3203
    oprot.writeMessageEnd()
3204
    oprot.trans.flush()
3205
 
122 ashish 3206
  def process_authenticateUser(self, seqid, iprot, oprot):
3207
    args = authenticateUser_args()
3208
    args.read(iprot)
3209
    iprot.readMessageEnd()
3210
    result = authenticateUser_result()
3211
    try:
559 chandransh 3212
      result.success = self._handler.authenticateUser(args.email, args.password)
3213
    except AuthenticationException, auex:
3214
      result.auex = auex
122 ashish 3215
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3216
    result.write(oprot)
3217
    oprot.writeMessageEnd()
3218
    oprot.trans.flush()
3219
 
94 ashish 3220
  def process_userExists(self, seqid, iprot, oprot):
3221
    args = userExists_args()
3222
    args.read(iprot)
3223
    iprot.readMessageEnd()
3224
    result = userExists_result()
3225
    try:
3226
      result.success = self._handler.userExists(args.email)
3227
    except UserContextException, ucx:
3228
      result.ucx = ucx
3229
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3230
    result.write(oprot)
3231
    oprot.writeMessageEnd()
3232
    oprot.trans.flush()
3233
 
3234
  def process_addAddressForUser(self, seqid, iprot, oprot):
3235
    args = addAddressForUser_args()
3236
    args.read(iprot)
3237
    iprot.readMessageEnd()
3238
    result = addAddressForUser_result()
3239
    try:
567 rajveer 3240
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3241
    except UserContextException, ucx:
3242
      result.ucx = ucx
3243
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3244
    result.write(oprot)
3245
    oprot.writeMessageEnd()
3246
    oprot.trans.flush()
3247
 
3248
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3249
    args = removeAddressForUser_args()
3250
    args.read(iprot)
3251
    iprot.readMessageEnd()
3252
    result = removeAddressForUser_result()
3253
    try:
3254
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3255
    except UserContextException, ucx:
3256
      result.ucx = ucx
3257
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3258
    result.write(oprot)
3259
    oprot.writeMessageEnd()
3260
    oprot.trans.flush()
3261
 
3262
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3263
    args = setUserAsLoggedIn_args()
3264
    args.read(iprot)
3265
    iprot.readMessageEnd()
3266
    result = setUserAsLoggedIn_result()
3267
    try:
3268
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3269
    except UserContextException, ucx:
3270
      result.ucx = ucx
3271
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3272
    result.write(oprot)
3273
    oprot.writeMessageEnd()
3274
    oprot.trans.flush()
3275
 
3276
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3277
    args = setUserAsLoggedOut_args()
3278
    args.read(iprot)
3279
    iprot.readMessageEnd()
3280
    result = setUserAsLoggedOut_result()
3281
    try:
3282
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3283
    except UserContextException, ucx:
3284
      result.ucx = ucx
3285
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3286
    result.write(oprot)
3287
    oprot.writeMessageEnd()
3288
    oprot.trans.flush()
3289
 
504 rajveer 3290
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3291
    args = setDefaultAddress_args()
3292
    args.read(iprot)
3293
    iprot.readMessageEnd()
3294
    result = setDefaultAddress_result()
3295
    try:
3296
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3297
    except UserContextException, ucx:
3298
      result.ucx = ucx
3299
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3300
    result.write(oprot)
3301
    oprot.writeMessageEnd()
3302
    oprot.trans.flush()
3303
 
94 ashish 3304
  def process_updatePassword(self, seqid, iprot, oprot):
3305
    args = updatePassword_args()
3306
    args.read(iprot)
3307
    iprot.readMessageEnd()
3308
    result = updatePassword_result()
3309
    try:
594 rajveer 3310
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3311
    except UserContextException, ucx:
3312
      result.ucx = ucx
3313
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
3317
 
581 rajveer 3318
  def process_forgotPassword(self, seqid, iprot, oprot):
3319
    args = forgotPassword_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = forgotPassword_result()
3323
    try:
884 rajveer 3324
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3325
    except UserContextException, ucx:
3326
      result.ucx = ucx
3327
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3328
    result.write(oprot)
3329
    oprot.writeMessageEnd()
3330
    oprot.trans.flush()
3331
 
594 rajveer 3332
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3333
    args = getAllAddressesForUser_args()
3334
    args.read(iprot)
3335
    iprot.readMessageEnd()
3336
    result = getAllAddressesForUser_result()
3337
    try:
3338
      result.success = self._handler.getAllAddressesForUser(args.userId)
3339
    except UserContextException, ucx:
3340
      result.ucx = ucx
3341
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3342
    result.write(oprot)
3343
    oprot.writeMessageEnd()
3344
    oprot.trans.flush()
3345
 
1894 vikas 3346
  def process_getAddressById(self, seqid, iprot, oprot):
3347
    args = getAddressById_args()
3348
    args.read(iprot)
3349
    iprot.readMessageEnd()
3350
    result = getAddressById_result()
3351
    try:
3352
      result.success = self._handler.getAddressById(args.addressId)
3353
    except UserContextException, ucx:
3354
      result.ucx = ucx
3355
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3356
    result.write(oprot)
3357
    oprot.writeMessageEnd()
3358
    oprot.trans.flush()
3359
 
594 rajveer 3360
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3361
    args = getDefaultAddressId_args()
3362
    args.read(iprot)
3363
    iprot.readMessageEnd()
3364
    result = getDefaultAddressId_result()
3365
    try:
3366
      result.success = self._handler.getDefaultAddressId(args.userId)
3367
    except UserContextException, ucx:
3368
      result.ucx = ucx
3369
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3370
    result.write(oprot)
3371
    oprot.writeMessageEnd()
3372
    oprot.trans.flush()
3373
 
785 rajveer 3374
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3375
    args = getDefaultPincode_args()
3376
    args.read(iprot)
3377
    iprot.readMessageEnd()
3378
    result = getDefaultPincode_result()
3379
    try:
3380
      result.success = self._handler.getDefaultPincode(args.userId)
3381
    except UserContextException, ucx:
3382
      result.ucx = ucx
3383
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3384
    result.write(oprot)
3385
    oprot.writeMessageEnd()
3386
    oprot.trans.flush()
3387
 
1274 varun.gupt 3388
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3389
    args = saveUserCommunication_args()
3390
    args.read(iprot)
3391
    iprot.readMessageEnd()
3392
    result = saveUserCommunication_result()
3393
    try:
3394
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3395
    except UserCommunicationException, ucx:
3396
      result.ucx = ucx
3397
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3398
    result.write(oprot)
3399
    oprot.writeMessageEnd()
3400
    oprot.trans.flush()
3401
 
1590 varun.gupt 3402
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3403
    args = getUserCommunicationById_args()
3404
    args.read(iprot)
3405
    iprot.readMessageEnd()
3406
    result = getUserCommunicationById_result()
3407
    try:
3408
      result.success = self._handler.getUserCommunicationById(args.id)
3409
    except UserCommunicationException, ucx:
3410
      result.ucx = ucx
3411
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3412
    result.write(oprot)
3413
    oprot.writeMessageEnd()
3414
    oprot.trans.flush()
3415
 
3416
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3417
    args = getUserCommunicationByUser_args()
3418
    args.read(iprot)
3419
    iprot.readMessageEnd()
3420
    result = getUserCommunicationByUser_result()
3421
    try:
3422
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3423
    except UserCommunicationException, ucx:
3424
      result.ucx = ucx
3425
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3426
    result.write(oprot)
3427
    oprot.writeMessageEnd()
3428
    oprot.trans.flush()
3429
 
3430
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3431
    args = getAllUserCommunications_args()
3432
    args.read(iprot)
3433
    iprot.readMessageEnd()
3434
    result = getAllUserCommunications_result()
3435
    try:
3436
      result.success = self._handler.getAllUserCommunications()
3437
    except UserCommunicationException, ucx:
3438
      result.ucx = ucx
3439
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3440
    result.write(oprot)
3441
    oprot.writeMessageEnd()
3442
    oprot.trans.flush()
3443
 
1845 vikas 3444
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3445
    args = createMasterAffiliate_args()
3446
    args.read(iprot)
3447
    iprot.readMessageEnd()
3448
    result = createMasterAffiliate_result()
3449
    try:
1859 vikas 3450
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3451
    except UserAffiliateException, utx:
1845 vikas 3452
      result.utx = utx
3453
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3454
    result.write(oprot)
3455
    oprot.writeMessageEnd()
3456
    oprot.trans.flush()
3457
 
1899 vikas 3458
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3459
    args = getAllMasterAffiliates_args()
3460
    args.read(iprot)
3461
    iprot.readMessageEnd()
3462
    result = getAllMasterAffiliates_result()
3463
    try:
3464
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3465
    except UserAffiliateException, utx:
1899 vikas 3466
      result.utx = utx
3467
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3468
    result.write(oprot)
3469
    oprot.writeMessageEnd()
3470
    oprot.trans.flush()
3471
 
1845 vikas 3472
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3473
    args = getMasterAffiliateById_args()
3474
    args.read(iprot)
3475
    iprot.readMessageEnd()
3476
    result = getMasterAffiliateById_result()
3477
    try:
3478
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3479
    except UserAffiliateException, utx:
1845 vikas 3480
      result.utx = utx
3481
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3482
    result.write(oprot)
3483
    oprot.writeMessageEnd()
3484
    oprot.trans.flush()
3485
 
3486
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3487
    args = getMasterAffiliateByName_args()
3488
    args.read(iprot)
3489
    iprot.readMessageEnd()
3490
    result = getMasterAffiliateByName_result()
3491
    try:
3492
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3493
    except UserAffiliateException, utx:
1845 vikas 3494
      result.utx = utx
3495
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3496
    result.write(oprot)
3497
    oprot.writeMessageEnd()
3498
    oprot.trans.flush()
3499
 
3500
  def process_createAffiliate(self, seqid, iprot, oprot):
3501
    args = createAffiliate_args()
3502
    args.read(iprot)
3503
    iprot.readMessageEnd()
3504
    result = createAffiliate_result()
3505
    try:
1859 vikas 3506
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3507
    except UserAffiliateException, utx:
1845 vikas 3508
      result.utx = utx
3509
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
3513
 
3514
  def process_getAffiliateById(self, seqid, iprot, oprot):
3515
    args = getAffiliateById_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = getAffiliateById_result()
3519
    try:
3520
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3521
    except UserAffiliateException, utx:
1845 vikas 3522
      result.utx = utx
3523
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3524
    result.write(oprot)
3525
    oprot.writeMessageEnd()
3526
    oprot.trans.flush()
3527
 
3528
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3529
    args = getAffiliateByName_args()
3530
    args.read(iprot)
3531
    iprot.readMessageEnd()
3532
    result = getAffiliateByName_result()
3533
    try:
3534
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3535
    except UserAffiliateException, utx:
1845 vikas 3536
      result.utx = utx
3537
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3538
    result.write(oprot)
3539
    oprot.writeMessageEnd()
3540
    oprot.trans.flush()
3541
 
3542
  def process_getTrackerById(self, seqid, iprot, oprot):
3543
    args = getTrackerById_args()
3544
    args.read(iprot)
3545
    iprot.readMessageEnd()
3546
    result = getTrackerById_result()
3547
    try:
1996 vikas 3548
      result.success = self._handler.getTrackerById(args.id)
3549
    except UserAffiliateException, utx:
1845 vikas 3550
      result.utx = utx
3551
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3552
    result.write(oprot)
3553
    oprot.writeMessageEnd()
3554
    oprot.trans.flush()
3555
 
1996 vikas 3556
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3557
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3558
    args.read(iprot)
3559
    iprot.readMessageEnd()
1996 vikas 3560
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3561
    try:
1996 vikas 3562
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3563
    except UserAffiliateException, utx:
1845 vikas 3564
      result.utx = utx
1996 vikas 3565
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_addTrackLog(self, seqid, iprot, oprot):
3571
    args = addTrackLog_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = addTrackLog_result()
3575
    try:
1996 vikas 3576
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3577
    except UserAffiliateException, utx:
1845 vikas 3578
      result.utx = utx
3579
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
3583
 
3584
  def process_getTrackLogById(self, seqid, iprot, oprot):
3585
    args = getTrackLogById_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getTrackLogById_result()
3589
    try:
3590
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3591
    except UserAffiliateException, utx:
1845 vikas 3592
      result.utx = utx
3593
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3594
    result.write(oprot)
3595
    oprot.writeMessageEnd()
3596
    oprot.trans.flush()
3597
 
1996 vikas 3598
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3599
    args = getTrackLogsByAffiliate_args()
1845 vikas 3600
    args.read(iprot)
3601
    iprot.readMessageEnd()
1996 vikas 3602
    result = getTrackLogsByAffiliate_result()
1845 vikas 3603
    try:
3293 vikas 3604
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3605
    except UserAffiliateException, utx:
1845 vikas 3606
      result.utx = utx
1996 vikas 3607
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3608
    result.write(oprot)
3609
    oprot.writeMessageEnd()
3610
    oprot.trans.flush()
3611
 
3612
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3613
    args = getTrackLogsByUser_args()
3614
    args.read(iprot)
3615
    iprot.readMessageEnd()
3616
    result = getTrackLogsByUser_result()
3617
    try:
3618
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3619
    except UserAffiliateException, utx:
1845 vikas 3620
      result.utx = utx
3621
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3622
    result.write(oprot)
3623
    oprot.writeMessageEnd()
3624
    oprot.trans.flush()
3625
 
3626
  def process_getTrackLogs(self, seqid, iprot, oprot):
3627
    args = getTrackLogs_args()
3628
    args.read(iprot)
3629
    iprot.readMessageEnd()
3630
    result = getTrackLogs_result()
3631
    try:
1996 vikas 3632
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3633
    except UserAffiliateException, utx:
1845 vikas 3634
      result.utx = utx
3635
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3636
    result.write(oprot)
3637
    oprot.writeMessageEnd()
3638
    oprot.trans.flush()
3639
 
559 chandransh 3640
  def process_createCart(self, seqid, iprot, oprot):
3641
    args = createCart_args()
94 ashish 3642
    args.read(iprot)
3643
    iprot.readMessageEnd()
559 chandransh 3644
    result = createCart_result()
94 ashish 3645
    try:
559 chandransh 3646
      result.success = self._handler.createCart(args.userId)
3647
    except ShoppingCartException, scx:
3648
      result.scx = scx
3649
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
3653
 
559 chandransh 3654
  def process_getCurrentCart(self, seqid, iprot, oprot):
3655
    args = getCurrentCart_args()
94 ashish 3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
559 chandransh 3658
    result = getCurrentCart_result()
94 ashish 3659
    try:
559 chandransh 3660
      result.success = self._handler.getCurrentCart(args.userId)
3661
    except ShoppingCartException, scx:
3662
      result.scx = scx
3663
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3664
    result.write(oprot)
3665
    oprot.writeMessageEnd()
3666
    oprot.trans.flush()
3667
 
559 chandransh 3668
  def process_getCart(self, seqid, iprot, oprot):
3669
    args = getCart_args()
94 ashish 3670
    args.read(iprot)
3671
    iprot.readMessageEnd()
559 chandransh 3672
    result = getCart_result()
94 ashish 3673
    try:
559 chandransh 3674
      result.success = self._handler.getCart(args.cartId)
3675
    except ShoppingCartException, scx:
3676
      result.scx = scx
3677
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
559 chandransh 3682
  def process_getCartsForUser(self, seqid, iprot, oprot):
3683
    args = getCartsForUser_args()
94 ashish 3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
559 chandransh 3686
    result = getCartsForUser_result()
94 ashish 3687
    try:
559 chandransh 3688
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3689
    except ShoppingCartException, scx:
3690
      result.scx = scx
3691
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
3695
 
559 chandransh 3696
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3697
    args = getCartsByStatus_args()
94 ashish 3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
559 chandransh 3700
    result = getCartsByStatus_result()
94 ashish 3701
    try:
559 chandransh 3702
      result.success = self._handler.getCartsByStatus(args.status)
3703
    except ShoppingCartException, scx:
3704
      result.scx = scx
3705
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
3709
 
559 chandransh 3710
  def process_getCartsByTime(self, seqid, iprot, oprot):
3711
    args = getCartsByTime_args()
94 ashish 3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
559 chandransh 3714
    result = getCartsByTime_result()
94 ashish 3715
    try:
559 chandransh 3716
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3717
    except ShoppingCartException, scx:
3718
      result.scx = scx
3719
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3720
    result.write(oprot)
3721
    oprot.writeMessageEnd()
3722
    oprot.trans.flush()
3723
 
559 chandransh 3724
  def process_changeCartStatus(self, seqid, iprot, oprot):
3725
    args = changeCartStatus_args()
130 ashish 3726
    args.read(iprot)
3727
    iprot.readMessageEnd()
559 chandransh 3728
    result = changeCartStatus_result()
130 ashish 3729
    try:
559 chandransh 3730
      self._handler.changeCartStatus(args.cartId, args.status)
3731
    except ShoppingCartException, scx:
3732
      result.scx = scx
3733
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
94 ashish 3737
 
559 chandransh 3738
  def process_addItemToCart(self, seqid, iprot, oprot):
3739
    args = addItemToCart_args()
130 ashish 3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
559 chandransh 3742
    result = addItemToCart_result()
130 ashish 3743
    try:
3557 rajveer 3744
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3745
    except ShoppingCartException, scx:
3746
      result.scx = scx
3747
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3748
    result.write(oprot)
3749
    oprot.writeMessageEnd()
3750
    oprot.trans.flush()
3751
 
559 chandransh 3752
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3753
    args = deleteItemFromCart_args()
3754
    args.read(iprot)
3755
    iprot.readMessageEnd()
3756
    result = deleteItemFromCart_result()
3757
    try:
3758
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3759
    except ShoppingCartException, scx:
3760
      result.scx = scx
3761
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3762
    result.write(oprot)
3763
    oprot.writeMessageEnd()
3764
    oprot.trans.flush()
130 ashish 3765
 
559 chandransh 3766
  def process_changeItemStatus(self, seqid, iprot, oprot):
3767
    args = changeItemStatus_args()
3768
    args.read(iprot)
3769
    iprot.readMessageEnd()
3770
    result = changeItemStatus_result()
3771
    try:
3772
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3773
    except ShoppingCartException, scx:
3774
      result.scx = scx
3775
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3776
    result.write(oprot)
3777
    oprot.writeMessageEnd()
3778
    oprot.trans.flush()
3779
 
3780
  def process_addAddressToCart(self, seqid, iprot, oprot):
3781
    args = addAddressToCart_args()
3782
    args.read(iprot)
3783
    iprot.readMessageEnd()
3784
    result = addAddressToCart_result()
575 chandransh 3785
    try:
3786
      self._handler.addAddressToCart(args.cartId, args.addressId)
3787
    except ShoppingCartException, scx:
3788
      result.scx = scx
559 chandransh 3789
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3790
    result.write(oprot)
3791
    oprot.writeMessageEnd()
3792
    oprot.trans.flush()
3793
 
1976 varun.gupt 3794
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3795
    args = applyCouponToCart_args()
3796
    args.read(iprot)
3797
    iprot.readMessageEnd()
3798
    result = applyCouponToCart_result()
3799
    try:
3800
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3801
    except ShoppingCartException, scx:
3802
      result.scx = scx
3803
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3804
    result.write(oprot)
3805
    oprot.writeMessageEnd()
3806
    oprot.trans.flush()
3807
 
3808
  def process_removeCoupon(self, seqid, iprot, oprot):
3809
    args = removeCoupon_args()
3810
    args.read(iprot)
3811
    iprot.readMessageEnd()
3812
    result = removeCoupon_result()
3813
    try:
3814
      self._handler.removeCoupon(args.cartId)
3815
    except ShoppingCartException, scx:
3816
      result.scx = scx
3817
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3818
    result.write(oprot)
3819
    oprot.writeMessageEnd()
3820
    oprot.trans.flush()
3821
 
3554 varun.gupt 3822
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3823
    args = deleteDiscountsFromCart_args()
3824
    args.read(iprot)
3825
    iprot.readMessageEnd()
3826
    result = deleteDiscountsFromCart_result()
3827
    try:
3828
      self._handler.deleteDiscountsFromCart(args.cartId)
3829
    except ShoppingCartException, scx:
3830
      result.scx = scx
3831
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3832
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
3835
 
3836
  def process_saveDiscounts(self, seqid, iprot, oprot):
3837
    args = saveDiscounts_args()
3838
    args.read(iprot)
3839
    iprot.readMessageEnd()
3840
    result = saveDiscounts_result()
3841
    try:
3842
      self._handler.saveDiscounts(args.discounts)
3843
    except ShoppingCartException, scx:
3844
      result.scx = scx
3845
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3846
    result.write(oprot)
3847
    oprot.writeMessageEnd()
3848
    oprot.trans.flush()
3849
 
690 chandransh 3850
  def process_createOrders(self, seqid, iprot, oprot):
3851
    args = createOrders_args()
559 chandransh 3852
    args.read(iprot)
3853
    iprot.readMessageEnd()
690 chandransh 3854
    result = createOrders_result()
559 chandransh 3855
    try:
3858 vikas 3856
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime)
559 chandransh 3857
    except ShoppingCartException, scx:
3858
      result.scx = scx
690 chandransh 3859
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3860
    result.write(oprot)
3861
    oprot.writeMessageEnd()
3862
    oprot.trans.flush()
3863
 
3864
  def process_validateCart(self, seqid, iprot, oprot):
3865
    args = validateCart_args()
3866
    args.read(iprot)
3867
    iprot.readMessageEnd()
3868
    result = validateCart_result()
575 chandransh 3869
    try:
3557 rajveer 3870
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3871
    except ShoppingCartException, scex:
3872
      result.scex = scex
559 chandransh 3873
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3874
    result.write(oprot)
3875
    oprot.writeMessageEnd()
3876
    oprot.trans.flush()
3877
 
690 chandransh 3878
  def process_mergeCart(self, seqid, iprot, oprot):
3879
    args = mergeCart_args()
575 chandransh 3880
    args.read(iprot)
3881
    iprot.readMessageEnd()
690 chandransh 3882
    result = mergeCart_result()
3883
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3884
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
3888
 
3889
  def process_checkOut(self, seqid, iprot, oprot):
3890
    args = checkOut_args()
3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
3893
    result = checkOut_result()
575 chandransh 3894
    try:
690 chandransh 3895
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3896
    except ShoppingCartException, scex:
3897
      result.scex = scex
690 chandransh 3898
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
3902
 
690 chandransh 3903
  def process_resetCart(self, seqid, iprot, oprot):
3904
    args = resetCart_args()
559 chandransh 3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
690 chandransh 3907
    result = resetCart_result()
3908
    try:
3909
      result.success = self._handler.resetCart(args.cartId, args.items)
3910
    except ShoppingCartException, scex:
3911
      result.scex = scex
3912
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
3916
 
2981 rajveer 3917
  def process_getUserCount(self, seqid, iprot, oprot):
3918
    args = getUserCount_args()
559 chandransh 3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
2981 rajveer 3921
    result = getUserCount_result()
3922
    result.success = self._handler.getUserCount(args.userType)
3923
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3924
    result.write(oprot)
3925
    oprot.writeMessageEnd()
3926
    oprot.trans.flush()
3927
 
2981 rajveer 3928
  def process_getAllUsers(self, seqid, iprot, oprot):
3929
    args = getAllUsers_args()
559 chandransh 3930
    args.read(iprot)
3931
    iprot.readMessageEnd()
2981 rajveer 3932
    result = getAllUsers_result()
3933
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3934
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3935
    result.write(oprot)
3936
    oprot.writeMessageEnd()
3937
    oprot.trans.flush()
3938
 
2981 rajveer 3939
  def process_putUserNote(self, seqid, iprot, oprot):
3940
    args = putUserNote_args()
559 chandransh 3941
    args.read(iprot)
3942
    iprot.readMessageEnd()
2981 rajveer 3943
    result = putUserNote_result()
3944
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3945
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3946
    result.write(oprot)
3947
    oprot.writeMessageEnd()
3948
    oprot.trans.flush()
3949
 
2981 rajveer 3950
  def process_getUserNotes(self, seqid, iprot, oprot):
3951
    args = getUserNotes_args()
559 chandransh 3952
    args.read(iprot)
3953
    iprot.readMessageEnd()
2981 rajveer 3954
    result = getUserNotes_result()
3955
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3956
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3957
    result.write(oprot)
3958
    oprot.writeMessageEnd()
3959
    oprot.trans.flush()
3960
 
2981 rajveer 3961
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3962
    args = getMyResearchItems_args()
559 chandransh 3963
    args.read(iprot)
3964
    iprot.readMessageEnd()
2981 rajveer 3965
    result = getMyResearchItems_result()
559 chandransh 3966
    try:
2981 rajveer 3967
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3968
    except WidgetException, scx:
3969
      result.scx = scx
2981 rajveer 3970
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3971
    result.write(oprot)
3972
    oprot.writeMessageEnd()
3973
    oprot.trans.flush()
3974
 
2981 rajveer 3975
  def process_updateMyResearch(self, seqid, iprot, oprot):
3976
    args = updateMyResearch_args()
772 rajveer 3977
    args.read(iprot)
3978
    iprot.readMessageEnd()
2981 rajveer 3979
    result = updateMyResearch_result()
3980
    try:
3981
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3982
    except WidgetException, scx:
3983
      result.scx = scx
3984
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3985
    result.write(oprot)
3986
    oprot.writeMessageEnd()
3987
    oprot.trans.flush()
559 chandransh 3988
 
2981 rajveer 3989
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3990
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3991
    args.read(iprot)
3992
    iprot.readMessageEnd()
2981 rajveer 3993
    result = deleteItemFromMyResearch_result()
3994
    try:
3995
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3996
    except WidgetException, scx:
3997
      result.scx = scx
3998
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3999
    result.write(oprot)
4000
    oprot.writeMessageEnd()
4001
    oprot.trans.flush()
772 rajveer 4002
 
2981 rajveer 4003
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
4004
    args = getBrowseHistoryItems_args()
1673 ankur.sing 4005
    args.read(iprot)
4006
    iprot.readMessageEnd()
2981 rajveer 4007
    result = getBrowseHistoryItems_result()
4008
    try:
4009
      result.success = self._handler.getBrowseHistoryItems(args.userId)
4010
    except WidgetException, scx:
4011
      result.scx = scx
4012
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4013
    result.write(oprot)
4014
    oprot.writeMessageEnd()
4015
    oprot.trans.flush()
1596 ankur.sing 4016
 
2981 rajveer 4017
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4018
    args = updateBrowseHistory_args()
2642 varun.gupt 4019
    args.read(iprot)
4020
    iprot.readMessageEnd()
2981 rajveer 4021
    result = updateBrowseHistory_result()
4022
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4023
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4024
    result.write(oprot)
4025
    oprot.writeMessageEnd()
4026
    oprot.trans.flush()
1673 ankur.sing 4027
 
3385 varun.gupt 4028
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4029
    args = getCartsWithCouponCount_args()
4030
    args.read(iprot)
4031
    iprot.readMessageEnd()
4032
    result = getCartsWithCouponCount_result()
4033
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4034
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4035
    result.write(oprot)
4036
    oprot.writeMessageEnd()
4037
    oprot.trans.flush()
2642 varun.gupt 4038
 
3499 mandeep.dh 4039
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4040
    args = increaseTrustLevel_args()
4041
    args.read(iprot)
4042
    iprot.readMessageEnd()
4043
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4044
    return
3385 varun.gupt 4045
 
4668 varun.gupt 4046
  def process_showCODOption(self, seqid, iprot, oprot):
4047
    args = showCODOption_args()
4048
    args.read(iprot)
4049
    iprot.readMessageEnd()
4050
    result = showCODOption_result()
4051
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4052
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4053
    result.write(oprot)
4054
    oprot.writeMessageEnd()
4055
    oprot.trans.flush()
3499 mandeep.dh 4056
 
4668 varun.gupt 4057
 
94 ashish 4058
# HELPER FUNCTIONS AND STRUCTURES
4059
 
559 chandransh 4060
class createAnonymousUser_args:
94 ashish 4061
  """
4062
  Attributes:
559 chandransh 4063
   - jsessionId
94 ashish 4064
  """
4065
 
4066
  thrift_spec = (
4067
    None, # 0
559 chandransh 4068
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4069
  )
4070
 
559 chandransh 4071
  def __init__(self, jsessionId=None,):
4072
    self.jsessionId = jsessionId
94 ashish 4073
 
4074
  def read(self, iprot):
4075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4077
      return
4078
    iprot.readStructBegin()
4079
    while True:
4080
      (fname, ftype, fid) = iprot.readFieldBegin()
4081
      if ftype == TType.STOP:
4082
        break
4083
      if fid == 1:
559 chandransh 4084
        if ftype == TType.STRING:
4085
          self.jsessionId = iprot.readString();
94 ashish 4086
        else:
4087
          iprot.skip(ftype)
4088
      else:
4089
        iprot.skip(ftype)
4090
      iprot.readFieldEnd()
4091
    iprot.readStructEnd()
4092
 
4093
  def write(self, oprot):
4094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4096
      return
559 chandransh 4097
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4098
    if self.jsessionId is not None:
559 chandransh 4099
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4100
      oprot.writeString(self.jsessionId)
94 ashish 4101
      oprot.writeFieldEnd()
4102
    oprot.writeFieldStop()
4103
    oprot.writeStructEnd()
4104
 
3431 rajveer 4105
  def validate(self):
4106
    return
4107
 
4108
 
94 ashish 4109
  def __repr__(self):
4110
    L = ['%s=%r' % (key, value)
4111
      for key, value in self.__dict__.iteritems()]
4112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4113
 
4114
  def __eq__(self, other):
4115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4116
 
4117
  def __ne__(self, other):
4118
    return not (self == other)
4119
 
559 chandransh 4120
class createAnonymousUser_result:
94 ashish 4121
  """
4122
  Attributes:
4123
   - success
559 chandransh 4124
   - ucex
94 ashish 4125
  """
4126
 
4127
  thrift_spec = (
559 chandransh 4128
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4129
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4130
  )
4131
 
559 chandransh 4132
  def __init__(self, success=None, ucex=None,):
94 ashish 4133
    self.success = success
559 chandransh 4134
    self.ucex = ucex
94 ashish 4135
 
4136
  def read(self, iprot):
4137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4139
      return
4140
    iprot.readStructBegin()
4141
    while True:
4142
      (fname, ftype, fid) = iprot.readFieldBegin()
4143
      if ftype == TType.STOP:
4144
        break
4145
      if fid == 0:
4146
        if ftype == TType.STRUCT:
559 chandransh 4147
          self.success = User()
94 ashish 4148
          self.success.read(iprot)
4149
        else:
4150
          iprot.skip(ftype)
4151
      elif fid == 1:
4152
        if ftype == TType.STRUCT:
559 chandransh 4153
          self.ucex = UserContextException()
4154
          self.ucex.read(iprot)
94 ashish 4155
        else:
4156
          iprot.skip(ftype)
4157
      else:
4158
        iprot.skip(ftype)
4159
      iprot.readFieldEnd()
4160
    iprot.readStructEnd()
4161
 
4162
  def write(self, oprot):
4163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4165
      return
559 chandransh 4166
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4167
    if self.success is not None:
94 ashish 4168
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4169
      self.success.write(oprot)
4170
      oprot.writeFieldEnd()
3431 rajveer 4171
    if self.ucex is not None:
559 chandransh 4172
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4173
      self.ucex.write(oprot)
94 ashish 4174
      oprot.writeFieldEnd()
4175
    oprot.writeFieldStop()
4176
    oprot.writeStructEnd()
4177
 
3431 rajveer 4178
  def validate(self):
4179
    return
4180
 
4181
 
94 ashish 4182
  def __repr__(self):
4183
    L = ['%s=%r' % (key, value)
4184
      for key, value in self.__dict__.iteritems()]
4185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4186
 
4187
  def __eq__(self, other):
4188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4189
 
4190
  def __ne__(self, other):
4191
    return not (self == other)
4192
 
559 chandransh 4193
class getUserById_args:
94 ashish 4194
  """
4195
  Attributes:
4196
   - userId
4197
  """
4198
 
4199
  thrift_spec = (
4200
    None, # 0
4201
    (1, TType.I64, 'userId', None, None, ), # 1
4202
  )
4203
 
559 chandransh 4204
  def __init__(self, userId=None,):
94 ashish 4205
    self.userId = userId
4206
 
4207
  def read(self, iprot):
4208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4210
      return
4211
    iprot.readStructBegin()
4212
    while True:
4213
      (fname, ftype, fid) = iprot.readFieldBegin()
4214
      if ftype == TType.STOP:
4215
        break
4216
      if fid == 1:
4217
        if ftype == TType.I64:
4218
          self.userId = iprot.readI64();
4219
        else:
4220
          iprot.skip(ftype)
4221
      else:
4222
        iprot.skip(ftype)
4223
      iprot.readFieldEnd()
4224
    iprot.readStructEnd()
4225
 
4226
  def write(self, oprot):
4227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4229
      return
559 chandransh 4230
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4231
    if self.userId is not None:
94 ashish 4232
      oprot.writeFieldBegin('userId', TType.I64, 1)
4233
      oprot.writeI64(self.userId)
4234
      oprot.writeFieldEnd()
4235
    oprot.writeFieldStop()
4236
    oprot.writeStructEnd()
4237
 
3431 rajveer 4238
  def validate(self):
4239
    return
4240
 
4241
 
94 ashish 4242
  def __repr__(self):
4243
    L = ['%s=%r' % (key, value)
4244
      for key, value in self.__dict__.iteritems()]
4245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4246
 
4247
  def __eq__(self, other):
4248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4249
 
4250
  def __ne__(self, other):
4251
    return not (self == other)
4252
 
559 chandransh 4253
class getUserById_result:
94 ashish 4254
  """
4255
  Attributes:
4256
   - success
559 chandransh 4257
   - ucex
94 ashish 4258
  """
4259
 
4260
  thrift_spec = (
559 chandransh 4261
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4262
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4263
  )
4264
 
559 chandransh 4265
  def __init__(self, success=None, ucex=None,):
94 ashish 4266
    self.success = success
559 chandransh 4267
    self.ucex = ucex
94 ashish 4268
 
4269
  def read(self, iprot):
4270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4272
      return
4273
    iprot.readStructBegin()
4274
    while True:
4275
      (fname, ftype, fid) = iprot.readFieldBegin()
4276
      if ftype == TType.STOP:
4277
        break
4278
      if fid == 0:
4279
        if ftype == TType.STRUCT:
559 chandransh 4280
          self.success = User()
94 ashish 4281
          self.success.read(iprot)
4282
        else:
4283
          iprot.skip(ftype)
4284
      elif fid == 1:
4285
        if ftype == TType.STRUCT:
559 chandransh 4286
          self.ucex = UserContextException()
4287
          self.ucex.read(iprot)
94 ashish 4288
        else:
4289
          iprot.skip(ftype)
4290
      else:
4291
        iprot.skip(ftype)
4292
      iprot.readFieldEnd()
4293
    iprot.readStructEnd()
4294
 
4295
  def write(self, oprot):
4296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4298
      return
559 chandransh 4299
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4300
    if self.success is not None:
94 ashish 4301
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4302
      self.success.write(oprot)
4303
      oprot.writeFieldEnd()
3431 rajveer 4304
    if self.ucex is not None:
559 chandransh 4305
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4306
      self.ucex.write(oprot)
94 ashish 4307
      oprot.writeFieldEnd()
4308
    oprot.writeFieldStop()
4309
    oprot.writeStructEnd()
4310
 
3431 rajveer 4311
  def validate(self):
4312
    return
4313
 
4314
 
94 ashish 4315
  def __repr__(self):
4316
    L = ['%s=%r' % (key, value)
4317
      for key, value in self.__dict__.iteritems()]
4318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4319
 
4320
  def __eq__(self, other):
4321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4322
 
4323
  def __ne__(self, other):
4324
    return not (self == other)
4325
 
1491 vikas 4326
class getUserByEmail_args:
4327
  """
4328
  Attributes:
4329
   - email
4330
  """
4331
 
4332
  thrift_spec = (
4333
    None, # 0
4334
    (1, TType.STRING, 'email', None, None, ), # 1
4335
  )
4336
 
4337
  def __init__(self, email=None,):
4338
    self.email = email
4339
 
4340
  def read(self, iprot):
4341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4343
      return
4344
    iprot.readStructBegin()
4345
    while True:
4346
      (fname, ftype, fid) = iprot.readFieldBegin()
4347
      if ftype == TType.STOP:
4348
        break
4349
      if fid == 1:
4350
        if ftype == TType.STRING:
4351
          self.email = iprot.readString();
4352
        else:
4353
          iprot.skip(ftype)
4354
      else:
4355
        iprot.skip(ftype)
4356
      iprot.readFieldEnd()
4357
    iprot.readStructEnd()
4358
 
4359
  def write(self, oprot):
4360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4362
      return
4363
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4364
    if self.email is not None:
1491 vikas 4365
      oprot.writeFieldBegin('email', TType.STRING, 1)
4366
      oprot.writeString(self.email)
4367
      oprot.writeFieldEnd()
4368
    oprot.writeFieldStop()
4369
    oprot.writeStructEnd()
4370
 
3431 rajveer 4371
  def validate(self):
4372
    return
4373
 
4374
 
1491 vikas 4375
  def __repr__(self):
4376
    L = ['%s=%r' % (key, value)
4377
      for key, value in self.__dict__.iteritems()]
4378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4379
 
4380
  def __eq__(self, other):
4381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4382
 
4383
  def __ne__(self, other):
4384
    return not (self == other)
4385
 
4386
class getUserByEmail_result:
4387
  """
4388
  Attributes:
4389
   - success
4390
   - ucex
4391
  """
4392
 
4393
  thrift_spec = (
4394
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4395
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4396
  )
4397
 
4398
  def __init__(self, success=None, ucex=None,):
4399
    self.success = success
4400
    self.ucex = ucex
4401
 
4402
  def read(self, iprot):
4403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4405
      return
4406
    iprot.readStructBegin()
4407
    while True:
4408
      (fname, ftype, fid) = iprot.readFieldBegin()
4409
      if ftype == TType.STOP:
4410
        break
4411
      if fid == 0:
4412
        if ftype == TType.STRUCT:
4413
          self.success = User()
4414
          self.success.read(iprot)
4415
        else:
4416
          iprot.skip(ftype)
4417
      elif fid == 1:
4418
        if ftype == TType.STRUCT:
4419
          self.ucex = UserContextException()
4420
          self.ucex.read(iprot)
4421
        else:
4422
          iprot.skip(ftype)
4423
      else:
4424
        iprot.skip(ftype)
4425
      iprot.readFieldEnd()
4426
    iprot.readStructEnd()
4427
 
4428
  def write(self, oprot):
4429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4431
      return
4432
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4433
    if self.success is not None:
1491 vikas 4434
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4435
      self.success.write(oprot)
4436
      oprot.writeFieldEnd()
3431 rajveer 4437
    if self.ucex is not None:
1491 vikas 4438
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4439
      self.ucex.write(oprot)
4440
      oprot.writeFieldEnd()
4441
    oprot.writeFieldStop()
4442
    oprot.writeStructEnd()
4443
 
3431 rajveer 4444
  def validate(self):
4445
    return
4446
 
4447
 
1491 vikas 4448
  def __repr__(self):
4449
    L = ['%s=%r' % (key, value)
4450
      for key, value in self.__dict__.iteritems()]
4451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4452
 
4453
  def __eq__(self, other):
4454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4455
 
4456
  def __ne__(self, other):
4457
    return not (self == other)
4458
 
3032 mandeep.dh 4459
class getUserByMobileNumber_args:
4460
  """
4461
  Attributes:
4462
   - mobileNumber
4463
  """
4464
 
4465
  thrift_spec = (
4466
    None, # 0
4467
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4468
  )
4469
 
4470
  def __init__(self, mobileNumber=None,):
4471
    self.mobileNumber = mobileNumber
4472
 
4473
  def read(self, iprot):
4474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4476
      return
4477
    iprot.readStructBegin()
4478
    while True:
4479
      (fname, ftype, fid) = iprot.readFieldBegin()
4480
      if ftype == TType.STOP:
4481
        break
4482
      if fid == 1:
4483
        if ftype == TType.I64:
4484
          self.mobileNumber = iprot.readI64();
4485
        else:
4486
          iprot.skip(ftype)
4487
      else:
4488
        iprot.skip(ftype)
4489
      iprot.readFieldEnd()
4490
    iprot.readStructEnd()
4491
 
4492
  def write(self, oprot):
4493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4495
      return
4496
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4497
    if self.mobileNumber is not None:
3032 mandeep.dh 4498
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4499
      oprot.writeI64(self.mobileNumber)
4500
      oprot.writeFieldEnd()
4501
    oprot.writeFieldStop()
4502
    oprot.writeStructEnd()
4503
 
3431 rajveer 4504
  def validate(self):
4505
    return
4506
 
4507
 
3032 mandeep.dh 4508
  def __repr__(self):
4509
    L = ['%s=%r' % (key, value)
4510
      for key, value in self.__dict__.iteritems()]
4511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4512
 
4513
  def __eq__(self, other):
4514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4515
 
4516
  def __ne__(self, other):
4517
    return not (self == other)
4518
 
4519
class getUserByMobileNumber_result:
4520
  """
4521
  Attributes:
4522
   - success
4523
   - ucex
4524
  """
4525
 
4526
  thrift_spec = (
4527
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4528
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4529
  )
4530
 
4531
  def __init__(self, success=None, ucex=None,):
4532
    self.success = success
4533
    self.ucex = ucex
4534
 
4535
  def read(self, iprot):
4536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4538
      return
4539
    iprot.readStructBegin()
4540
    while True:
4541
      (fname, ftype, fid) = iprot.readFieldBegin()
4542
      if ftype == TType.STOP:
4543
        break
4544
      if fid == 0:
4545
        if ftype == TType.STRUCT:
4546
          self.success = User()
4547
          self.success.read(iprot)
4548
        else:
4549
          iprot.skip(ftype)
4550
      elif fid == 1:
4551
        if ftype == TType.STRUCT:
4552
          self.ucex = UserContextException()
4553
          self.ucex.read(iprot)
4554
        else:
4555
          iprot.skip(ftype)
4556
      else:
4557
        iprot.skip(ftype)
4558
      iprot.readFieldEnd()
4559
    iprot.readStructEnd()
4560
 
4561
  def write(self, oprot):
4562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4564
      return
4565
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4566
    if self.success is not None:
3032 mandeep.dh 4567
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4568
      self.success.write(oprot)
4569
      oprot.writeFieldEnd()
3431 rajveer 4570
    if self.ucex is not None:
3032 mandeep.dh 4571
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4572
      self.ucex.write(oprot)
4573
      oprot.writeFieldEnd()
4574
    oprot.writeFieldStop()
4575
    oprot.writeStructEnd()
4576
 
3431 rajveer 4577
  def validate(self):
4578
    return
4579
 
4580
 
3032 mandeep.dh 4581
  def __repr__(self):
4582
    L = ['%s=%r' % (key, value)
4583
      for key, value in self.__dict__.iteritems()]
4584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4585
 
4586
  def __eq__(self, other):
4587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4588
 
4589
  def __ne__(self, other):
4590
    return not (self == other)
4591
 
559 chandransh 4592
class createUser_args:
94 ashish 4593
  """
4594
  Attributes:
559 chandransh 4595
   - user
94 ashish 4596
  """
4597
 
4598
  thrift_spec = (
4599
    None, # 0
559 chandransh 4600
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4601
  )
4602
 
559 chandransh 4603
  def __init__(self, user=None,):
4604
    self.user = user
94 ashish 4605
 
4606
  def read(self, iprot):
4607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4609
      return
4610
    iprot.readStructBegin()
4611
    while True:
4612
      (fname, ftype, fid) = iprot.readFieldBegin()
4613
      if ftype == TType.STOP:
4614
        break
4615
      if fid == 1:
559 chandransh 4616
        if ftype == TType.STRUCT:
4617
          self.user = User()
4618
          self.user.read(iprot)
94 ashish 4619
        else:
4620
          iprot.skip(ftype)
4621
      else:
4622
        iprot.skip(ftype)
4623
      iprot.readFieldEnd()
4624
    iprot.readStructEnd()
4625
 
4626
  def write(self, oprot):
4627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4629
      return
559 chandransh 4630
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4631
    if self.user is not None:
559 chandransh 4632
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4633
      self.user.write(oprot)
94 ashish 4634
      oprot.writeFieldEnd()
4635
    oprot.writeFieldStop()
4636
    oprot.writeStructEnd()
4637
 
3431 rajveer 4638
  def validate(self):
4639
    return
4640
 
4641
 
94 ashish 4642
  def __repr__(self):
4643
    L = ['%s=%r' % (key, value)
4644
      for key, value in self.__dict__.iteritems()]
4645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4646
 
4647
  def __eq__(self, other):
4648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4649
 
4650
  def __ne__(self, other):
4651
    return not (self == other)
4652
 
559 chandransh 4653
class createUser_result:
94 ashish 4654
  """
4655
  Attributes:
4656
   - success
559 chandransh 4657
   - ucex
94 ashish 4658
  """
4659
 
4660
  thrift_spec = (
559 chandransh 4661
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4662
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4663
  )
4664
 
559 chandransh 4665
  def __init__(self, success=None, ucex=None,):
94 ashish 4666
    self.success = success
559 chandransh 4667
    self.ucex = ucex
94 ashish 4668
 
4669
  def read(self, iprot):
4670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4672
      return
4673
    iprot.readStructBegin()
4674
    while True:
4675
      (fname, ftype, fid) = iprot.readFieldBegin()
4676
      if ftype == TType.STOP:
4677
        break
4678
      if fid == 0:
4679
        if ftype == TType.STRUCT:
559 chandransh 4680
          self.success = User()
94 ashish 4681
          self.success.read(iprot)
4682
        else:
4683
          iprot.skip(ftype)
4684
      elif fid == 1:
4685
        if ftype == TType.STRUCT:
559 chandransh 4686
          self.ucex = UserContextException()
4687
          self.ucex.read(iprot)
94 ashish 4688
        else:
4689
          iprot.skip(ftype)
4690
      else:
4691
        iprot.skip(ftype)
4692
      iprot.readFieldEnd()
4693
    iprot.readStructEnd()
4694
 
4695
  def write(self, oprot):
4696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4698
      return
559 chandransh 4699
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4700
    if self.success is not None:
94 ashish 4701
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4702
      self.success.write(oprot)
4703
      oprot.writeFieldEnd()
3431 rajveer 4704
    if self.ucex is not None:
559 chandransh 4705
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4706
      self.ucex.write(oprot)
94 ashish 4707
      oprot.writeFieldEnd()
4708
    oprot.writeFieldStop()
4709
    oprot.writeStructEnd()
4710
 
3431 rajveer 4711
  def validate(self):
4712
    return
4713
 
4714
 
94 ashish 4715
  def __repr__(self):
4716
    L = ['%s=%r' % (key, value)
4717
      for key, value in self.__dict__.iteritems()]
4718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4719
 
4720
  def __eq__(self, other):
4721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4722
 
4723
  def __ne__(self, other):
4724
    return not (self == other)
4725
 
559 chandransh 4726
class updateUser_args:
94 ashish 4727
  """
4728
  Attributes:
559 chandransh 4729
   - user
94 ashish 4730
  """
4731
 
4732
  thrift_spec = (
4733
    None, # 0
559 chandransh 4734
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4735
  )
4736
 
559 chandransh 4737
  def __init__(self, user=None,):
4738
    self.user = user
94 ashish 4739
 
4740
  def read(self, iprot):
4741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4743
      return
4744
    iprot.readStructBegin()
4745
    while True:
4746
      (fname, ftype, fid) = iprot.readFieldBegin()
4747
      if ftype == TType.STOP:
4748
        break
4749
      if fid == 1:
559 chandransh 4750
        if ftype == TType.STRUCT:
4751
          self.user = User()
4752
          self.user.read(iprot)
94 ashish 4753
        else:
4754
          iprot.skip(ftype)
4755
      else:
4756
        iprot.skip(ftype)
4757
      iprot.readFieldEnd()
4758
    iprot.readStructEnd()
4759
 
4760
  def write(self, oprot):
4761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4763
      return
559 chandransh 4764
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4765
    if self.user is not None:
559 chandransh 4766
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4767
      self.user.write(oprot)
94 ashish 4768
      oprot.writeFieldEnd()
4769
    oprot.writeFieldStop()
4770
    oprot.writeStructEnd()
4771
 
3431 rajveer 4772
  def validate(self):
4773
    return
4774
 
4775
 
94 ashish 4776
  def __repr__(self):
4777
    L = ['%s=%r' % (key, value)
4778
      for key, value in self.__dict__.iteritems()]
4779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4780
 
4781
  def __eq__(self, other):
4782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4783
 
4784
  def __ne__(self, other):
4785
    return not (self == other)
4786
 
559 chandransh 4787
class updateUser_result:
94 ashish 4788
  """
4789
  Attributes:
4790
   - success
559 chandransh 4791
   - ucex
94 ashish 4792
  """
4793
 
4794
  thrift_spec = (
559 chandransh 4795
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4796
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4797
  )
4798
 
559 chandransh 4799
  def __init__(self, success=None, ucex=None,):
94 ashish 4800
    self.success = success
559 chandransh 4801
    self.ucex = ucex
94 ashish 4802
 
4803
  def read(self, iprot):
4804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4806
      return
4807
    iprot.readStructBegin()
4808
    while True:
4809
      (fname, ftype, fid) = iprot.readFieldBegin()
4810
      if ftype == TType.STOP:
4811
        break
4812
      if fid == 0:
4813
        if ftype == TType.STRUCT:
559 chandransh 4814
          self.success = User()
94 ashish 4815
          self.success.read(iprot)
4816
        else:
4817
          iprot.skip(ftype)
4818
      elif fid == 1:
4819
        if ftype == TType.STRUCT:
559 chandransh 4820
          self.ucex = UserContextException()
4821
          self.ucex.read(iprot)
94 ashish 4822
        else:
4823
          iprot.skip(ftype)
4824
      else:
4825
        iprot.skip(ftype)
4826
      iprot.readFieldEnd()
4827
    iprot.readStructEnd()
4828
 
4829
  def write(self, oprot):
4830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4832
      return
559 chandransh 4833
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4834
    if self.success is not None:
94 ashish 4835
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4836
      self.success.write(oprot)
4837
      oprot.writeFieldEnd()
3431 rajveer 4838
    if self.ucex is not None:
559 chandransh 4839
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4840
      self.ucex.write(oprot)
94 ashish 4841
      oprot.writeFieldEnd()
4842
    oprot.writeFieldStop()
4843
    oprot.writeStructEnd()
4844
 
3431 rajveer 4845
  def validate(self):
4846
    return
4847
 
4848
 
94 ashish 4849
  def __repr__(self):
4850
    L = ['%s=%r' % (key, value)
4851
      for key, value in self.__dict__.iteritems()]
4852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4853
 
4854
  def __eq__(self, other):
4855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4856
 
4857
  def __ne__(self, other):
4858
    return not (self == other)
4859
 
559 chandransh 4860
class deleteUser_args:
94 ashish 4861
  """
4862
  Attributes:
4863
   - userId
4864
  """
4865
 
4866
  thrift_spec = (
4867
    None, # 0
4868
    (1, TType.I64, 'userId', None, None, ), # 1
4869
  )
4870
 
559 chandransh 4871
  def __init__(self, userId=None,):
94 ashish 4872
    self.userId = userId
4873
 
4874
  def read(self, iprot):
4875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4877
      return
4878
    iprot.readStructBegin()
4879
    while True:
4880
      (fname, ftype, fid) = iprot.readFieldBegin()
4881
      if ftype == TType.STOP:
4882
        break
4883
      if fid == 1:
4884
        if ftype == TType.I64:
4885
          self.userId = iprot.readI64();
4886
        else:
4887
          iprot.skip(ftype)
4888
      else:
4889
        iprot.skip(ftype)
4890
      iprot.readFieldEnd()
4891
    iprot.readStructEnd()
4892
 
4893
  def write(self, oprot):
4894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4896
      return
559 chandransh 4897
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4898
    if self.userId is not None:
94 ashish 4899
      oprot.writeFieldBegin('userId', TType.I64, 1)
4900
      oprot.writeI64(self.userId)
4901
      oprot.writeFieldEnd()
4902
    oprot.writeFieldStop()
4903
    oprot.writeStructEnd()
4904
 
3431 rajveer 4905
  def validate(self):
4906
    return
4907
 
4908
 
94 ashish 4909
  def __repr__(self):
4910
    L = ['%s=%r' % (key, value)
4911
      for key, value in self.__dict__.iteritems()]
4912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4913
 
4914
  def __eq__(self, other):
4915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4916
 
4917
  def __ne__(self, other):
4918
    return not (self == other)
4919
 
559 chandransh 4920
class deleteUser_result:
94 ashish 4921
  """
4922
  Attributes:
4923
   - success
559 chandransh 4924
   - ucex
94 ashish 4925
  """
4926
 
4927
  thrift_spec = (
559 chandransh 4928
    (0, TType.BOOL, 'success', None, None, ), # 0
4929
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4930
  )
4931
 
559 chandransh 4932
  def __init__(self, success=None, ucex=None,):
94 ashish 4933
    self.success = success
559 chandransh 4934
    self.ucex = ucex
94 ashish 4935
 
4936
  def read(self, iprot):
4937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4939
      return
4940
    iprot.readStructBegin()
4941
    while True:
4942
      (fname, ftype, fid) = iprot.readFieldBegin()
4943
      if ftype == TType.STOP:
4944
        break
4945
      if fid == 0:
559 chandransh 4946
        if ftype == TType.BOOL:
4947
          self.success = iprot.readBool();
94 ashish 4948
        else:
4949
          iprot.skip(ftype)
4950
      elif fid == 1:
4951
        if ftype == TType.STRUCT:
559 chandransh 4952
          self.ucex = UserContextException()
4953
          self.ucex.read(iprot)
94 ashish 4954
        else:
4955
          iprot.skip(ftype)
4956
      else:
4957
        iprot.skip(ftype)
4958
      iprot.readFieldEnd()
4959
    iprot.readStructEnd()
4960
 
4961
  def write(self, oprot):
4962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4964
      return
559 chandransh 4965
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4966
    if self.success is not None:
559 chandransh 4967
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4968
      oprot.writeBool(self.success)
94 ashish 4969
      oprot.writeFieldEnd()
3431 rajveer 4970
    if self.ucex is not None:
559 chandransh 4971
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4972
      self.ucex.write(oprot)
94 ashish 4973
      oprot.writeFieldEnd()
4974
    oprot.writeFieldStop()
4975
    oprot.writeStructEnd()
4976
 
3431 rajveer 4977
  def validate(self):
4978
    return
4979
 
4980
 
94 ashish 4981
  def __repr__(self):
4982
    L = ['%s=%r' % (key, value)
4983
      for key, value in self.__dict__.iteritems()]
4984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4985
 
4986
  def __eq__(self, other):
4987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4988
 
4989
  def __ne__(self, other):
4990
    return not (self == other)
4991
 
559 chandransh 4992
class getUserState_args:
94 ashish 4993
  """
4994
  Attributes:
4995
   - userId
4996
  """
4997
 
4998
  thrift_spec = (
4999
    None, # 0
5000
    (1, TType.I64, 'userId', None, None, ), # 1
5001
  )
5002
 
559 chandransh 5003
  def __init__(self, userId=None,):
94 ashish 5004
    self.userId = userId
5005
 
5006
  def read(self, iprot):
5007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5009
      return
5010
    iprot.readStructBegin()
5011
    while True:
5012
      (fname, ftype, fid) = iprot.readFieldBegin()
5013
      if ftype == TType.STOP:
5014
        break
5015
      if fid == 1:
5016
        if ftype == TType.I64:
5017
          self.userId = iprot.readI64();
5018
        else:
5019
          iprot.skip(ftype)
5020
      else:
5021
        iprot.skip(ftype)
5022
      iprot.readFieldEnd()
5023
    iprot.readStructEnd()
5024
 
5025
  def write(self, oprot):
5026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5028
      return
559 chandransh 5029
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 5030
    if self.userId is not None:
94 ashish 5031
      oprot.writeFieldBegin('userId', TType.I64, 1)
5032
      oprot.writeI64(self.userId)
5033
      oprot.writeFieldEnd()
5034
    oprot.writeFieldStop()
5035
    oprot.writeStructEnd()
5036
 
3431 rajveer 5037
  def validate(self):
5038
    return
5039
 
5040
 
94 ashish 5041
  def __repr__(self):
5042
    L = ['%s=%r' % (key, value)
5043
      for key, value in self.__dict__.iteritems()]
5044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5045
 
5046
  def __eq__(self, other):
5047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5048
 
5049
  def __ne__(self, other):
5050
    return not (self == other)
5051
 
559 chandransh 5052
class getUserState_result:
94 ashish 5053
  """
5054
  Attributes:
5055
   - success
559 chandransh 5056
   - ucex
94 ashish 5057
  """
5058
 
5059
  thrift_spec = (
559 chandransh 5060
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
5061
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5062
  )
5063
 
559 chandransh 5064
  def __init__(self, success=None, ucex=None,):
94 ashish 5065
    self.success = success
559 chandransh 5066
    self.ucex = ucex
94 ashish 5067
 
5068
  def read(self, iprot):
5069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5071
      return
5072
    iprot.readStructBegin()
5073
    while True:
5074
      (fname, ftype, fid) = iprot.readFieldBegin()
5075
      if ftype == TType.STOP:
5076
        break
5077
      if fid == 0:
5078
        if ftype == TType.STRUCT:
559 chandransh 5079
          self.success = UserState()
94 ashish 5080
          self.success.read(iprot)
5081
        else:
5082
          iprot.skip(ftype)
5083
      elif fid == 1:
5084
        if ftype == TType.STRUCT:
559 chandransh 5085
          self.ucex = UserContextException()
5086
          self.ucex.read(iprot)
94 ashish 5087
        else:
5088
          iprot.skip(ftype)
5089
      else:
5090
        iprot.skip(ftype)
5091
      iprot.readFieldEnd()
5092
    iprot.readStructEnd()
5093
 
5094
  def write(self, oprot):
5095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5097
      return
559 chandransh 5098
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 5099
    if self.success is not None:
94 ashish 5100
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5101
      self.success.write(oprot)
5102
      oprot.writeFieldEnd()
3431 rajveer 5103
    if self.ucex is not None:
559 chandransh 5104
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5105
      self.ucex.write(oprot)
94 ashish 5106
      oprot.writeFieldEnd()
5107
    oprot.writeFieldStop()
5108
    oprot.writeStructEnd()
5109
 
3431 rajveer 5110
  def validate(self):
5111
    return
5112
 
5113
 
94 ashish 5114
  def __repr__(self):
5115
    L = ['%s=%r' % (key, value)
5116
      for key, value in self.__dict__.iteritems()]
5117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5118
 
5119
  def __eq__(self, other):
5120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5121
 
5122
  def __ne__(self, other):
5123
    return not (self == other)
5124
 
559 chandransh 5125
class authenticateUser_args:
94 ashish 5126
  """
5127
  Attributes:
5128
   - email
5129
   - password
5130
  """
5131
 
5132
  thrift_spec = (
5133
    None, # 0
5134
    (1, TType.STRING, 'email', None, None, ), # 1
5135
    (2, TType.STRING, 'password', None, None, ), # 2
5136
  )
5137
 
5138
  def __init__(self, email=None, password=None,):
5139
    self.email = email
5140
    self.password = password
5141
 
5142
  def read(self, iprot):
5143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5145
      return
5146
    iprot.readStructBegin()
5147
    while True:
5148
      (fname, ftype, fid) = iprot.readFieldBegin()
5149
      if ftype == TType.STOP:
5150
        break
5151
      if fid == 1:
5152
        if ftype == TType.STRING:
5153
          self.email = iprot.readString();
5154
        else:
5155
          iprot.skip(ftype)
5156
      elif fid == 2:
5157
        if ftype == TType.STRING:
5158
          self.password = iprot.readString();
5159
        else:
5160
          iprot.skip(ftype)
5161
      else:
5162
        iprot.skip(ftype)
5163
      iprot.readFieldEnd()
5164
    iprot.readStructEnd()
5165
 
5166
  def write(self, oprot):
5167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5169
      return
559 chandransh 5170
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5171
    if self.email is not None:
94 ashish 5172
      oprot.writeFieldBegin('email', TType.STRING, 1)
5173
      oprot.writeString(self.email)
5174
      oprot.writeFieldEnd()
3431 rajveer 5175
    if self.password is not None:
94 ashish 5176
      oprot.writeFieldBegin('password', TType.STRING, 2)
5177
      oprot.writeString(self.password)
5178
      oprot.writeFieldEnd()
5179
    oprot.writeFieldStop()
5180
    oprot.writeStructEnd()
5181
 
3431 rajveer 5182
  def validate(self):
5183
    return
5184
 
5185
 
94 ashish 5186
  def __repr__(self):
5187
    L = ['%s=%r' % (key, value)
5188
      for key, value in self.__dict__.iteritems()]
5189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5190
 
5191
  def __eq__(self, other):
5192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5193
 
5194
  def __ne__(self, other):
5195
    return not (self == other)
5196
 
559 chandransh 5197
class authenticateUser_result:
94 ashish 5198
  """
5199
  Attributes:
5200
   - success
559 chandransh 5201
   - auex
94 ashish 5202
  """
5203
 
5204
  thrift_spec = (
559 chandransh 5205
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5206
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5207
  )
5208
 
559 chandransh 5209
  def __init__(self, success=None, auex=None,):
94 ashish 5210
    self.success = success
559 chandransh 5211
    self.auex = auex
94 ashish 5212
 
5213
  def read(self, iprot):
5214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5216
      return
5217
    iprot.readStructBegin()
5218
    while True:
5219
      (fname, ftype, fid) = iprot.readFieldBegin()
5220
      if ftype == TType.STOP:
5221
        break
5222
      if fid == 0:
5223
        if ftype == TType.STRUCT:
559 chandransh 5224
          self.success = User()
94 ashish 5225
          self.success.read(iprot)
5226
        else:
5227
          iprot.skip(ftype)
5228
      elif fid == 1:
5229
        if ftype == TType.STRUCT:
559 chandransh 5230
          self.auex = AuthenticationException()
5231
          self.auex.read(iprot)
94 ashish 5232
        else:
5233
          iprot.skip(ftype)
5234
      else:
5235
        iprot.skip(ftype)
5236
      iprot.readFieldEnd()
5237
    iprot.readStructEnd()
5238
 
5239
  def write(self, oprot):
5240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5242
      return
559 chandransh 5243
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5244
    if self.success is not None:
94 ashish 5245
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5246
      self.success.write(oprot)
5247
      oprot.writeFieldEnd()
3431 rajveer 5248
    if self.auex is not None:
559 chandransh 5249
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5250
      self.auex.write(oprot)
94 ashish 5251
      oprot.writeFieldEnd()
5252
    oprot.writeFieldStop()
5253
    oprot.writeStructEnd()
5254
 
3431 rajveer 5255
  def validate(self):
5256
    return
5257
 
5258
 
94 ashish 5259
  def __repr__(self):
5260
    L = ['%s=%r' % (key, value)
5261
      for key, value in self.__dict__.iteritems()]
5262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5263
 
5264
  def __eq__(self, other):
5265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5266
 
5267
  def __ne__(self, other):
5268
    return not (self == other)
5269
 
559 chandransh 5270
class userExists_args:
122 ashish 5271
  """
5272
  Attributes:
559 chandransh 5273
   - email
122 ashish 5274
  """
5275
 
5276
  thrift_spec = (
5277
    None, # 0
559 chandransh 5278
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5279
  )
5280
 
559 chandransh 5281
  def __init__(self, email=None,):
5282
    self.email = email
122 ashish 5283
 
5284
  def read(self, iprot):
5285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5287
      return
5288
    iprot.readStructBegin()
5289
    while True:
5290
      (fname, ftype, fid) = iprot.readFieldBegin()
5291
      if ftype == TType.STOP:
5292
        break
5293
      if fid == 1:
5294
        if ftype == TType.STRING:
559 chandransh 5295
          self.email = iprot.readString();
122 ashish 5296
        else:
5297
          iprot.skip(ftype)
559 chandransh 5298
      else:
5299
        iprot.skip(ftype)
5300
      iprot.readFieldEnd()
5301
    iprot.readStructEnd()
5302
 
5303
  def write(self, oprot):
5304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5306
      return
5307
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5308
    if self.email is not None:
559 chandransh 5309
      oprot.writeFieldBegin('email', TType.STRING, 1)
5310
      oprot.writeString(self.email)
5311
      oprot.writeFieldEnd()
5312
    oprot.writeFieldStop()
5313
    oprot.writeStructEnd()
5314
 
3431 rajveer 5315
  def validate(self):
5316
    return
5317
 
5318
 
559 chandransh 5319
  def __repr__(self):
5320
    L = ['%s=%r' % (key, value)
5321
      for key, value in self.__dict__.iteritems()]
5322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5323
 
5324
  def __eq__(self, other):
5325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5326
 
5327
  def __ne__(self, other):
5328
    return not (self == other)
5329
 
5330
class userExists_result:
5331
  """
5332
  Attributes:
5333
   - success
5334
   - ucx
5335
  """
5336
 
5337
  thrift_spec = (
5338
    (0, TType.BOOL, 'success', None, None, ), # 0
5339
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5340
  )
5341
 
5342
  def __init__(self, success=None, ucx=None,):
5343
    self.success = success
5344
    self.ucx = ucx
5345
 
5346
  def read(self, iprot):
5347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5349
      return
5350
    iprot.readStructBegin()
5351
    while True:
5352
      (fname, ftype, fid) = iprot.readFieldBegin()
5353
      if ftype == TType.STOP:
5354
        break
5355
      if fid == 0:
5356
        if ftype == TType.BOOL:
5357
          self.success = iprot.readBool();
5358
        else:
5359
          iprot.skip(ftype)
5360
      elif fid == 1:
5361
        if ftype == TType.STRUCT:
5362
          self.ucx = UserContextException()
5363
          self.ucx.read(iprot)
5364
        else:
5365
          iprot.skip(ftype)
5366
      else:
5367
        iprot.skip(ftype)
5368
      iprot.readFieldEnd()
5369
    iprot.readStructEnd()
5370
 
5371
  def write(self, oprot):
5372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5374
      return
5375
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5376
    if self.success is not None:
559 chandransh 5377
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5378
      oprot.writeBool(self.success)
5379
      oprot.writeFieldEnd()
3431 rajveer 5380
    if self.ucx is not None:
559 chandransh 5381
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5382
      self.ucx.write(oprot)
5383
      oprot.writeFieldEnd()
5384
    oprot.writeFieldStop()
5385
    oprot.writeStructEnd()
5386
 
3431 rajveer 5387
  def validate(self):
5388
    return
5389
 
5390
 
559 chandransh 5391
  def __repr__(self):
5392
    L = ['%s=%r' % (key, value)
5393
      for key, value in self.__dict__.iteritems()]
5394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5395
 
5396
  def __eq__(self, other):
5397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5398
 
5399
  def __ne__(self, other):
5400
    return not (self == other)
5401
 
5402
class addAddressForUser_args:
5403
  """
5404
  Attributes:
5405
   - userId
5406
   - address
5407
   - setDefault
5408
  """
5409
 
5410
  thrift_spec = (
5411
    None, # 0
5412
    (1, TType.I64, 'userId', None, None, ), # 1
5413
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5414
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5415
  )
5416
 
567 rajveer 5417
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5418
    self.userId = userId
5419
    self.address = address
5420
    self.setDefault = setDefault
5421
 
5422
  def read(self, iprot):
5423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5425
      return
5426
    iprot.readStructBegin()
5427
    while True:
5428
      (fname, ftype, fid) = iprot.readFieldBegin()
5429
      if ftype == TType.STOP:
5430
        break
5431
      if fid == 1:
5432
        if ftype == TType.I64:
5433
          self.userId = iprot.readI64();
5434
        else:
5435
          iprot.skip(ftype)
122 ashish 5436
      elif fid == 2:
559 chandransh 5437
        if ftype == TType.STRUCT:
5438
          self.address = Address()
5439
          self.address.read(iprot)
122 ashish 5440
        else:
5441
          iprot.skip(ftype)
5442
      elif fid == 3:
5443
        if ftype == TType.BOOL:
559 chandransh 5444
          self.setDefault = iprot.readBool();
122 ashish 5445
        else:
5446
          iprot.skip(ftype)
5447
      else:
5448
        iprot.skip(ftype)
5449
      iprot.readFieldEnd()
5450
    iprot.readStructEnd()
5451
 
5452
  def write(self, oprot):
5453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5455
      return
559 chandransh 5456
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5457
    if self.userId is not None:
559 chandransh 5458
      oprot.writeFieldBegin('userId', TType.I64, 1)
5459
      oprot.writeI64(self.userId)
122 ashish 5460
      oprot.writeFieldEnd()
3431 rajveer 5461
    if self.address is not None:
559 chandransh 5462
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5463
      self.address.write(oprot)
122 ashish 5464
      oprot.writeFieldEnd()
3431 rajveer 5465
    if self.setDefault is not None:
567 rajveer 5466
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5467
      oprot.writeBool(self.setDefault)
5468
      oprot.writeFieldEnd()
122 ashish 5469
    oprot.writeFieldStop()
5470
    oprot.writeStructEnd()
5471
 
3431 rajveer 5472
  def validate(self):
5473
    return
5474
 
5475
 
122 ashish 5476
  def __repr__(self):
5477
    L = ['%s=%r' % (key, value)
5478
      for key, value in self.__dict__.iteritems()]
5479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5480
 
5481
  def __eq__(self, other):
5482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5483
 
5484
  def __ne__(self, other):
5485
    return not (self == other)
5486
 
559 chandransh 5487
class addAddressForUser_result:
122 ashish 5488
  """
5489
  Attributes:
5490
   - success
559 chandransh 5491
   - ucx
122 ashish 5492
  """
5493
 
5494
  thrift_spec = (
567 rajveer 5495
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5496
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5497
  )
5498
 
559 chandransh 5499
  def __init__(self, success=None, ucx=None,):
122 ashish 5500
    self.success = success
559 chandransh 5501
    self.ucx = ucx
122 ashish 5502
 
5503
  def read(self, iprot):
5504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5506
      return
5507
    iprot.readStructBegin()
5508
    while True:
5509
      (fname, ftype, fid) = iprot.readFieldBegin()
5510
      if ftype == TType.STOP:
5511
        break
5512
      if fid == 0:
567 rajveer 5513
        if ftype == TType.I64:
5514
          self.success = iprot.readI64();
122 ashish 5515
        else:
5516
          iprot.skip(ftype)
5517
      elif fid == 1:
5518
        if ftype == TType.STRUCT:
559 chandransh 5519
          self.ucx = UserContextException()
5520
          self.ucx.read(iprot)
122 ashish 5521
        else:
5522
          iprot.skip(ftype)
5523
      else:
5524
        iprot.skip(ftype)
5525
      iprot.readFieldEnd()
5526
    iprot.readStructEnd()
5527
 
5528
  def write(self, oprot):
5529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5531
      return
559 chandransh 5532
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5533
    if self.success is not None:
567 rajveer 5534
      oprot.writeFieldBegin('success', TType.I64, 0)
5535
      oprot.writeI64(self.success)
122 ashish 5536
      oprot.writeFieldEnd()
3431 rajveer 5537
    if self.ucx is not None:
559 chandransh 5538
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5539
      self.ucx.write(oprot)
122 ashish 5540
      oprot.writeFieldEnd()
5541
    oprot.writeFieldStop()
5542
    oprot.writeStructEnd()
5543
 
3431 rajveer 5544
  def validate(self):
5545
    return
5546
 
5547
 
122 ashish 5548
  def __repr__(self):
5549
    L = ['%s=%r' % (key, value)
5550
      for key, value in self.__dict__.iteritems()]
5551
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5552
 
5553
  def __eq__(self, other):
5554
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5555
 
5556
  def __ne__(self, other):
5557
    return not (self == other)
5558
 
559 chandransh 5559
class removeAddressForUser_args:
94 ashish 5560
  """
5561
  Attributes:
559 chandransh 5562
   - userid
5563
   - addressId
94 ashish 5564
  """
5565
 
5566
  thrift_spec = (
5567
    None, # 0
559 chandransh 5568
    (1, TType.I64, 'userid', None, None, ), # 1
5569
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5570
  )
5571
 
559 chandransh 5572
  def __init__(self, userid=None, addressId=None,):
5573
    self.userid = userid
5574
    self.addressId = addressId
94 ashish 5575
 
5576
  def read(self, iprot):
5577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5579
      return
5580
    iprot.readStructBegin()
5581
    while True:
5582
      (fname, ftype, fid) = iprot.readFieldBegin()
5583
      if ftype == TType.STOP:
5584
        break
5585
      if fid == 1:
559 chandransh 5586
        if ftype == TType.I64:
5587
          self.userid = iprot.readI64();
94 ashish 5588
        else:
5589
          iprot.skip(ftype)
559 chandransh 5590
      elif fid == 2:
5591
        if ftype == TType.I64:
5592
          self.addressId = iprot.readI64();
5593
        else:
5594
          iprot.skip(ftype)
94 ashish 5595
      else:
5596
        iprot.skip(ftype)
5597
      iprot.readFieldEnd()
5598
    iprot.readStructEnd()
5599
 
5600
  def write(self, oprot):
5601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5603
      return
559 chandransh 5604
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5605
    if self.userid is not None:
559 chandransh 5606
      oprot.writeFieldBegin('userid', TType.I64, 1)
5607
      oprot.writeI64(self.userid)
94 ashish 5608
      oprot.writeFieldEnd()
3431 rajveer 5609
    if self.addressId is not None:
559 chandransh 5610
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5611
      oprot.writeI64(self.addressId)
5612
      oprot.writeFieldEnd()
94 ashish 5613
    oprot.writeFieldStop()
5614
    oprot.writeStructEnd()
5615
 
3431 rajveer 5616
  def validate(self):
5617
    return
5618
 
5619
 
94 ashish 5620
  def __repr__(self):
5621
    L = ['%s=%r' % (key, value)
5622
      for key, value in self.__dict__.iteritems()]
5623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5624
 
5625
  def __eq__(self, other):
5626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5627
 
5628
  def __ne__(self, other):
5629
    return not (self == other)
5630
 
559 chandransh 5631
class removeAddressForUser_result:
94 ashish 5632
  """
5633
  Attributes:
5634
   - success
5635
   - ucx
5636
  """
5637
 
5638
  thrift_spec = (
5639
    (0, TType.BOOL, 'success', None, None, ), # 0
5640
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5641
  )
5642
 
5643
  def __init__(self, success=None, ucx=None,):
5644
    self.success = success
5645
    self.ucx = ucx
5646
 
5647
  def read(self, iprot):
5648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5650
      return
5651
    iprot.readStructBegin()
5652
    while True:
5653
      (fname, ftype, fid) = iprot.readFieldBegin()
5654
      if ftype == TType.STOP:
5655
        break
5656
      if fid == 0:
5657
        if ftype == TType.BOOL:
5658
          self.success = iprot.readBool();
5659
        else:
5660
          iprot.skip(ftype)
5661
      elif fid == 1:
5662
        if ftype == TType.STRUCT:
5663
          self.ucx = UserContextException()
5664
          self.ucx.read(iprot)
5665
        else:
5666
          iprot.skip(ftype)
5667
      else:
5668
        iprot.skip(ftype)
5669
      iprot.readFieldEnd()
5670
    iprot.readStructEnd()
5671
 
5672
  def write(self, oprot):
5673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5675
      return
559 chandransh 5676
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5677
    if self.success is not None:
94 ashish 5678
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5679
      oprot.writeBool(self.success)
5680
      oprot.writeFieldEnd()
3431 rajveer 5681
    if self.ucx is not None:
94 ashish 5682
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5683
      self.ucx.write(oprot)
5684
      oprot.writeFieldEnd()
5685
    oprot.writeFieldStop()
5686
    oprot.writeStructEnd()
5687
 
3431 rajveer 5688
  def validate(self):
5689
    return
5690
 
5691
 
94 ashish 5692
  def __repr__(self):
5693
    L = ['%s=%r' % (key, value)
5694
      for key, value in self.__dict__.iteritems()]
5695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5696
 
5697
  def __eq__(self, other):
5698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5699
 
5700
  def __ne__(self, other):
5701
    return not (self == other)
5702
 
559 chandransh 5703
class setUserAsLoggedIn_args:
94 ashish 5704
  """
5705
  Attributes:
559 chandransh 5706
   - userId
94 ashish 5707
   - timestamp
5708
  """
5709
 
5710
  thrift_spec = (
5711
    None, # 0
559 chandransh 5712
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5713
    (2, TType.I64, 'timestamp', None, None, ), # 2
5714
  )
5715
 
559 chandransh 5716
  def __init__(self, userId=None, timestamp=None,):
5717
    self.userId = userId
94 ashish 5718
    self.timestamp = timestamp
5719
 
5720
  def read(self, iprot):
5721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5723
      return
5724
    iprot.readStructBegin()
5725
    while True:
5726
      (fname, ftype, fid) = iprot.readFieldBegin()
5727
      if ftype == TType.STOP:
5728
        break
5729
      if fid == 1:
559 chandransh 5730
        if ftype == TType.I64:
5731
          self.userId = iprot.readI64();
94 ashish 5732
        else:
5733
          iprot.skip(ftype)
5734
      elif fid == 2:
5735
        if ftype == TType.I64:
5736
          self.timestamp = iprot.readI64();
5737
        else:
5738
          iprot.skip(ftype)
5739
      else:
5740
        iprot.skip(ftype)
5741
      iprot.readFieldEnd()
5742
    iprot.readStructEnd()
5743
 
5744
  def write(self, oprot):
5745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5747
      return
559 chandransh 5748
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5749
    if self.userId is not None:
559 chandransh 5750
      oprot.writeFieldBegin('userId', TType.I64, 1)
5751
      oprot.writeI64(self.userId)
94 ashish 5752
      oprot.writeFieldEnd()
3431 rajveer 5753
    if self.timestamp is not None:
94 ashish 5754
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5755
      oprot.writeI64(self.timestamp)
5756
      oprot.writeFieldEnd()
5757
    oprot.writeFieldStop()
5758
    oprot.writeStructEnd()
5759
 
3431 rajveer 5760
  def validate(self):
5761
    return
5762
 
5763
 
94 ashish 5764
  def __repr__(self):
5765
    L = ['%s=%r' % (key, value)
5766
      for key, value in self.__dict__.iteritems()]
5767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5768
 
5769
  def __eq__(self, other):
5770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5771
 
5772
  def __ne__(self, other):
5773
    return not (self == other)
5774
 
559 chandransh 5775
class setUserAsLoggedIn_result:
94 ashish 5776
  """
5777
  Attributes:
5778
   - success
5779
   - ucx
5780
  """
5781
 
5782
  thrift_spec = (
5783
    (0, TType.BOOL, 'success', None, None, ), # 0
5784
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5785
  )
5786
 
5787
  def __init__(self, success=None, ucx=None,):
5788
    self.success = success
5789
    self.ucx = ucx
5790
 
5791
  def read(self, iprot):
5792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5794
      return
5795
    iprot.readStructBegin()
5796
    while True:
5797
      (fname, ftype, fid) = iprot.readFieldBegin()
5798
      if ftype == TType.STOP:
5799
        break
5800
      if fid == 0:
5801
        if ftype == TType.BOOL:
5802
          self.success = iprot.readBool();
5803
        else:
5804
          iprot.skip(ftype)
5805
      elif fid == 1:
5806
        if ftype == TType.STRUCT:
5807
          self.ucx = UserContextException()
5808
          self.ucx.read(iprot)
5809
        else:
5810
          iprot.skip(ftype)
5811
      else:
5812
        iprot.skip(ftype)
5813
      iprot.readFieldEnd()
5814
    iprot.readStructEnd()
5815
 
5816
  def write(self, oprot):
5817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5819
      return
559 chandransh 5820
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5821
    if self.success is not None:
94 ashish 5822
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5823
      oprot.writeBool(self.success)
5824
      oprot.writeFieldEnd()
3431 rajveer 5825
    if self.ucx is not None:
94 ashish 5826
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5827
      self.ucx.write(oprot)
5828
      oprot.writeFieldEnd()
5829
    oprot.writeFieldStop()
5830
    oprot.writeStructEnd()
5831
 
3431 rajveer 5832
  def validate(self):
5833
    return
5834
 
5835
 
94 ashish 5836
  def __repr__(self):
5837
    L = ['%s=%r' % (key, value)
5838
      for key, value in self.__dict__.iteritems()]
5839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5840
 
5841
  def __eq__(self, other):
5842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5843
 
5844
  def __ne__(self, other):
5845
    return not (self == other)
5846
 
559 chandransh 5847
class setUserAsLoggedOut_args:
94 ashish 5848
  """
5849
  Attributes:
5850
   - userid
5851
   - timestamp
5852
  """
5853
 
5854
  thrift_spec = (
5855
    None, # 0
559 chandransh 5856
    (1, TType.I64, 'userid', None, None, ), # 1
5857
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5858
  )
5859
 
559 chandransh 5860
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5861
    self.userid = userid
5862
    self.timestamp = timestamp
5863
 
5864
  def read(self, iprot):
5865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5867
      return
5868
    iprot.readStructBegin()
5869
    while True:
5870
      (fname, ftype, fid) = iprot.readFieldBegin()
5871
      if ftype == TType.STOP:
5872
        break
5873
      if fid == 1:
5874
        if ftype == TType.I64:
5875
          self.userid = iprot.readI64();
5876
        else:
5877
          iprot.skip(ftype)
559 chandransh 5878
      elif fid == 2:
94 ashish 5879
        if ftype == TType.I64:
5880
          self.timestamp = iprot.readI64();
5881
        else:
5882
          iprot.skip(ftype)
5883
      else:
5884
        iprot.skip(ftype)
5885
      iprot.readFieldEnd()
5886
    iprot.readStructEnd()
5887
 
5888
  def write(self, oprot):
5889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5891
      return
559 chandransh 5892
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5893
    if self.userid is not None:
559 chandransh 5894
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5895
      oprot.writeI64(self.userid)
5896
      oprot.writeFieldEnd()
3431 rajveer 5897
    if self.timestamp is not None:
559 chandransh 5898
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5899
      oprot.writeI64(self.timestamp)
5900
      oprot.writeFieldEnd()
5901
    oprot.writeFieldStop()
5902
    oprot.writeStructEnd()
5903
 
3431 rajveer 5904
  def validate(self):
5905
    return
5906
 
5907
 
94 ashish 5908
  def __repr__(self):
5909
    L = ['%s=%r' % (key, value)
5910
      for key, value in self.__dict__.iteritems()]
5911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5912
 
5913
  def __eq__(self, other):
5914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5915
 
5916
  def __ne__(self, other):
5917
    return not (self == other)
5918
 
559 chandransh 5919
class setUserAsLoggedOut_result:
94 ashish 5920
  """
5921
  Attributes:
5922
   - success
5923
   - ucx
5924
  """
5925
 
5926
  thrift_spec = (
5927
    (0, TType.BOOL, 'success', None, None, ), # 0
5928
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5929
  )
5930
 
5931
  def __init__(self, success=None, ucx=None,):
5932
    self.success = success
5933
    self.ucx = ucx
5934
 
5935
  def read(self, iprot):
5936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5938
      return
5939
    iprot.readStructBegin()
5940
    while True:
5941
      (fname, ftype, fid) = iprot.readFieldBegin()
5942
      if ftype == TType.STOP:
5943
        break
5944
      if fid == 0:
5945
        if ftype == TType.BOOL:
5946
          self.success = iprot.readBool();
5947
        else:
5948
          iprot.skip(ftype)
5949
      elif fid == 1:
5950
        if ftype == TType.STRUCT:
5951
          self.ucx = UserContextException()
5952
          self.ucx.read(iprot)
5953
        else:
5954
          iprot.skip(ftype)
5955
      else:
5956
        iprot.skip(ftype)
5957
      iprot.readFieldEnd()
5958
    iprot.readStructEnd()
5959
 
5960
  def write(self, oprot):
5961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5963
      return
559 chandransh 5964
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5965
    if self.success is not None:
94 ashish 5966
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5967
      oprot.writeBool(self.success)
5968
      oprot.writeFieldEnd()
3431 rajveer 5969
    if self.ucx is not None:
94 ashish 5970
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5971
      self.ucx.write(oprot)
5972
      oprot.writeFieldEnd()
5973
    oprot.writeFieldStop()
5974
    oprot.writeStructEnd()
5975
 
3431 rajveer 5976
  def validate(self):
5977
    return
5978
 
5979
 
94 ashish 5980
  def __repr__(self):
5981
    L = ['%s=%r' % (key, value)
5982
      for key, value in self.__dict__.iteritems()]
5983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5984
 
5985
  def __eq__(self, other):
5986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5987
 
5988
  def __ne__(self, other):
5989
    return not (self == other)
5990
 
559 chandransh 5991
class setDefaultAddress_args:
94 ashish 5992
  """
5993
  Attributes:
5994
   - userid
5995
   - addressId
5996
  """
5997
 
5998
  thrift_spec = (
5999
    None, # 0
6000
    (1, TType.I64, 'userid', None, None, ), # 1
6001
    (2, TType.I64, 'addressId', None, None, ), # 2
6002
  )
6003
 
6004
  def __init__(self, userid=None, addressId=None,):
6005
    self.userid = userid
6006
    self.addressId = addressId
6007
 
6008
  def read(self, iprot):
6009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6011
      return
6012
    iprot.readStructBegin()
6013
    while True:
6014
      (fname, ftype, fid) = iprot.readFieldBegin()
6015
      if ftype == TType.STOP:
6016
        break
6017
      if fid == 1:
6018
        if ftype == TType.I64:
6019
          self.userid = iprot.readI64();
6020
        else:
6021
          iprot.skip(ftype)
6022
      elif fid == 2:
6023
        if ftype == TType.I64:
6024
          self.addressId = iprot.readI64();
6025
        else:
6026
          iprot.skip(ftype)
6027
      else:
6028
        iprot.skip(ftype)
6029
      iprot.readFieldEnd()
6030
    iprot.readStructEnd()
6031
 
6032
  def write(self, oprot):
6033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6035
      return
559 chandransh 6036
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 6037
    if self.userid is not None:
94 ashish 6038
      oprot.writeFieldBegin('userid', TType.I64, 1)
6039
      oprot.writeI64(self.userid)
6040
      oprot.writeFieldEnd()
3431 rajveer 6041
    if self.addressId is not None:
94 ashish 6042
      oprot.writeFieldBegin('addressId', TType.I64, 2)
6043
      oprot.writeI64(self.addressId)
6044
      oprot.writeFieldEnd()
6045
    oprot.writeFieldStop()
6046
    oprot.writeStructEnd()
6047
 
3431 rajveer 6048
  def validate(self):
6049
    return
6050
 
6051
 
94 ashish 6052
  def __repr__(self):
6053
    L = ['%s=%r' % (key, value)
6054
      for key, value in self.__dict__.iteritems()]
6055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6056
 
6057
  def __eq__(self, other):
6058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6059
 
6060
  def __ne__(self, other):
6061
    return not (self == other)
6062
 
559 chandransh 6063
class setDefaultAddress_result:
94 ashish 6064
  """
6065
  Attributes:
6066
   - success
6067
   - ucx
6068
  """
6069
 
6070
  thrift_spec = (
6071
    (0, TType.BOOL, 'success', None, None, ), # 0
6072
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6073
  )
6074
 
6075
  def __init__(self, success=None, ucx=None,):
6076
    self.success = success
6077
    self.ucx = ucx
6078
 
6079
  def read(self, iprot):
6080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6082
      return
6083
    iprot.readStructBegin()
6084
    while True:
6085
      (fname, ftype, fid) = iprot.readFieldBegin()
6086
      if ftype == TType.STOP:
6087
        break
6088
      if fid == 0:
6089
        if ftype == TType.BOOL:
6090
          self.success = iprot.readBool();
6091
        else:
6092
          iprot.skip(ftype)
6093
      elif fid == 1:
6094
        if ftype == TType.STRUCT:
6095
          self.ucx = UserContextException()
6096
          self.ucx.read(iprot)
6097
        else:
6098
          iprot.skip(ftype)
6099
      else:
6100
        iprot.skip(ftype)
6101
      iprot.readFieldEnd()
6102
    iprot.readStructEnd()
6103
 
6104
  def write(self, oprot):
6105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6107
      return
559 chandransh 6108
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6109
    if self.success is not None:
94 ashish 6110
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6111
      oprot.writeBool(self.success)
6112
      oprot.writeFieldEnd()
3431 rajveer 6113
    if self.ucx is not None:
94 ashish 6114
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6115
      self.ucx.write(oprot)
6116
      oprot.writeFieldEnd()
6117
    oprot.writeFieldStop()
6118
    oprot.writeStructEnd()
6119
 
3431 rajveer 6120
  def validate(self):
6121
    return
6122
 
6123
 
94 ashish 6124
  def __repr__(self):
6125
    L = ['%s=%r' % (key, value)
6126
      for key, value in self.__dict__.iteritems()]
6127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6128
 
6129
  def __eq__(self, other):
6130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6131
 
6132
  def __ne__(self, other):
6133
    return not (self == other)
6134
 
559 chandransh 6135
class updatePassword_args:
94 ashish 6136
  """
6137
  Attributes:
559 chandransh 6138
   - userid
594 rajveer 6139
   - oldPassword
6140
   - newPassword
94 ashish 6141
  """
6142
 
6143
  thrift_spec = (
6144
    None, # 0
559 chandransh 6145
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6146
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6147
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6148
  )
6149
 
594 rajveer 6150
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6151
    self.userid = userid
594 rajveer 6152
    self.oldPassword = oldPassword
6153
    self.newPassword = newPassword
94 ashish 6154
 
6155
  def read(self, iprot):
6156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6158
      return
6159
    iprot.readStructBegin()
6160
    while True:
6161
      (fname, ftype, fid) = iprot.readFieldBegin()
6162
      if ftype == TType.STOP:
6163
        break
6164
      if fid == 1:
6165
        if ftype == TType.I64:
559 chandransh 6166
          self.userid = iprot.readI64();
94 ashish 6167
        else:
6168
          iprot.skip(ftype)
6169
      elif fid == 2:
559 chandransh 6170
        if ftype == TType.STRING:
594 rajveer 6171
          self.oldPassword = iprot.readString();
94 ashish 6172
        else:
6173
          iprot.skip(ftype)
594 rajveer 6174
      elif fid == 3:
6175
        if ftype == TType.STRING:
6176
          self.newPassword = iprot.readString();
6177
        else:
6178
          iprot.skip(ftype)
94 ashish 6179
      else:
6180
        iprot.skip(ftype)
6181
      iprot.readFieldEnd()
6182
    iprot.readStructEnd()
6183
 
6184
  def write(self, oprot):
6185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6187
      return
559 chandransh 6188
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6189
    if self.userid is not None:
559 chandransh 6190
      oprot.writeFieldBegin('userid', TType.I64, 1)
6191
      oprot.writeI64(self.userid)
94 ashish 6192
      oprot.writeFieldEnd()
3431 rajveer 6193
    if self.oldPassword is not None:
594 rajveer 6194
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6195
      oprot.writeString(self.oldPassword)
94 ashish 6196
      oprot.writeFieldEnd()
3431 rajveer 6197
    if self.newPassword is not None:
594 rajveer 6198
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6199
      oprot.writeString(self.newPassword)
6200
      oprot.writeFieldEnd()
94 ashish 6201
    oprot.writeFieldStop()
6202
    oprot.writeStructEnd()
6203
 
3431 rajveer 6204
  def validate(self):
6205
    return
6206
 
6207
 
94 ashish 6208
  def __repr__(self):
6209
    L = ['%s=%r' % (key, value)
6210
      for key, value in self.__dict__.iteritems()]
6211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6212
 
6213
  def __eq__(self, other):
6214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6215
 
6216
  def __ne__(self, other):
6217
    return not (self == other)
6218
 
559 chandransh 6219
class updatePassword_result:
94 ashish 6220
  """
6221
  Attributes:
6222
   - success
6223
   - ucx
6224
  """
6225
 
6226
  thrift_spec = (
6227
    (0, TType.BOOL, 'success', None, None, ), # 0
6228
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6229
  )
6230
 
6231
  def __init__(self, success=None, ucx=None,):
6232
    self.success = success
6233
    self.ucx = ucx
6234
 
6235
  def read(self, iprot):
6236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6238
      return
6239
    iprot.readStructBegin()
6240
    while True:
6241
      (fname, ftype, fid) = iprot.readFieldBegin()
6242
      if ftype == TType.STOP:
6243
        break
6244
      if fid == 0:
6245
        if ftype == TType.BOOL:
6246
          self.success = iprot.readBool();
6247
        else:
6248
          iprot.skip(ftype)
6249
      elif fid == 1:
6250
        if ftype == TType.STRUCT:
6251
          self.ucx = UserContextException()
6252
          self.ucx.read(iprot)
6253
        else:
6254
          iprot.skip(ftype)
6255
      else:
6256
        iprot.skip(ftype)
6257
      iprot.readFieldEnd()
6258
    iprot.readStructEnd()
6259
 
6260
  def write(self, oprot):
6261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6263
      return
559 chandransh 6264
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6265
    if self.success is not None:
94 ashish 6266
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6267
      oprot.writeBool(self.success)
6268
      oprot.writeFieldEnd()
3431 rajveer 6269
    if self.ucx is not None:
94 ashish 6270
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6271
      self.ucx.write(oprot)
6272
      oprot.writeFieldEnd()
6273
    oprot.writeFieldStop()
6274
    oprot.writeStructEnd()
6275
 
3431 rajveer 6276
  def validate(self):
6277
    return
6278
 
6279
 
94 ashish 6280
  def __repr__(self):
6281
    L = ['%s=%r' % (key, value)
6282
      for key, value in self.__dict__.iteritems()]
6283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6284
 
6285
  def __eq__(self, other):
6286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6287
 
6288
  def __ne__(self, other):
6289
    return not (self == other)
6290
 
581 rajveer 6291
class forgotPassword_args:
6292
  """
6293
  Attributes:
6294
   - email
884 rajveer 6295
   - newPassword
581 rajveer 6296
  """
6297
 
6298
  thrift_spec = (
6299
    None, # 0
6300
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6301
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6302
  )
6303
 
884 rajveer 6304
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6305
    self.email = email
884 rajveer 6306
    self.newPassword = newPassword
581 rajveer 6307
 
6308
  def read(self, iprot):
6309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6311
      return
6312
    iprot.readStructBegin()
6313
    while True:
6314
      (fname, ftype, fid) = iprot.readFieldBegin()
6315
      if ftype == TType.STOP:
6316
        break
6317
      if fid == 1:
6318
        if ftype == TType.STRING:
6319
          self.email = iprot.readString();
6320
        else:
6321
          iprot.skip(ftype)
884 rajveer 6322
      elif fid == 2:
6323
        if ftype == TType.STRING:
6324
          self.newPassword = iprot.readString();
6325
        else:
6326
          iprot.skip(ftype)
581 rajveer 6327
      else:
6328
        iprot.skip(ftype)
6329
      iprot.readFieldEnd()
6330
    iprot.readStructEnd()
6331
 
6332
  def write(self, oprot):
6333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6335
      return
6336
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6337
    if self.email is not None:
581 rajveer 6338
      oprot.writeFieldBegin('email', TType.STRING, 1)
6339
      oprot.writeString(self.email)
6340
      oprot.writeFieldEnd()
3431 rajveer 6341
    if self.newPassword is not None:
884 rajveer 6342
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6343
      oprot.writeString(self.newPassword)
6344
      oprot.writeFieldEnd()
581 rajveer 6345
    oprot.writeFieldStop()
6346
    oprot.writeStructEnd()
6347
 
3431 rajveer 6348
  def validate(self):
6349
    return
6350
 
6351
 
581 rajveer 6352
  def __repr__(self):
6353
    L = ['%s=%r' % (key, value)
6354
      for key, value in self.__dict__.iteritems()]
6355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6356
 
6357
  def __eq__(self, other):
6358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6359
 
6360
  def __ne__(self, other):
6361
    return not (self == other)
6362
 
6363
class forgotPassword_result:
6364
  """
6365
  Attributes:
6366
   - success
6367
   - ucx
6368
  """
6369
 
6370
  thrift_spec = (
6371
    (0, TType.BOOL, 'success', None, None, ), # 0
6372
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6373
  )
6374
 
6375
  def __init__(self, success=None, ucx=None,):
6376
    self.success = success
6377
    self.ucx = ucx
6378
 
6379
  def read(self, iprot):
6380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6382
      return
6383
    iprot.readStructBegin()
6384
    while True:
6385
      (fname, ftype, fid) = iprot.readFieldBegin()
6386
      if ftype == TType.STOP:
6387
        break
6388
      if fid == 0:
6389
        if ftype == TType.BOOL:
6390
          self.success = iprot.readBool();
6391
        else:
6392
          iprot.skip(ftype)
6393
      elif fid == 1:
6394
        if ftype == TType.STRUCT:
6395
          self.ucx = UserContextException()
6396
          self.ucx.read(iprot)
6397
        else:
6398
          iprot.skip(ftype)
6399
      else:
6400
        iprot.skip(ftype)
6401
      iprot.readFieldEnd()
6402
    iprot.readStructEnd()
6403
 
6404
  def write(self, oprot):
6405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6407
      return
6408
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6409
    if self.success is not None:
581 rajveer 6410
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6411
      oprot.writeBool(self.success)
6412
      oprot.writeFieldEnd()
3431 rajveer 6413
    if self.ucx is not None:
581 rajveer 6414
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6415
      self.ucx.write(oprot)
6416
      oprot.writeFieldEnd()
6417
    oprot.writeFieldStop()
6418
    oprot.writeStructEnd()
6419
 
3431 rajveer 6420
  def validate(self):
6421
    return
6422
 
6423
 
581 rajveer 6424
  def __repr__(self):
6425
    L = ['%s=%r' % (key, value)
6426
      for key, value in self.__dict__.iteritems()]
6427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6428
 
6429
  def __eq__(self, other):
6430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6431
 
6432
  def __ne__(self, other):
6433
    return not (self == other)
6434
 
594 rajveer 6435
class getAllAddressesForUser_args:
6436
  """
6437
  Attributes:
6438
   - userId
6439
  """
6440
 
6441
  thrift_spec = (
6442
    None, # 0
6443
    (1, TType.I64, 'userId', None, None, ), # 1
6444
  )
6445
 
6446
  def __init__(self, userId=None,):
6447
    self.userId = userId
6448
 
6449
  def read(self, iprot):
6450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6452
      return
6453
    iprot.readStructBegin()
6454
    while True:
6455
      (fname, ftype, fid) = iprot.readFieldBegin()
6456
      if ftype == TType.STOP:
6457
        break
6458
      if fid == 1:
6459
        if ftype == TType.I64:
6460
          self.userId = iprot.readI64();
6461
        else:
6462
          iprot.skip(ftype)
6463
      else:
6464
        iprot.skip(ftype)
6465
      iprot.readFieldEnd()
6466
    iprot.readStructEnd()
6467
 
6468
  def write(self, oprot):
6469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6471
      return
6472
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6473
    if self.userId is not None:
594 rajveer 6474
      oprot.writeFieldBegin('userId', TType.I64, 1)
6475
      oprot.writeI64(self.userId)
6476
      oprot.writeFieldEnd()
6477
    oprot.writeFieldStop()
6478
    oprot.writeStructEnd()
6479
 
3431 rajveer 6480
  def validate(self):
6481
    return
6482
 
6483
 
594 rajveer 6484
  def __repr__(self):
6485
    L = ['%s=%r' % (key, value)
6486
      for key, value in self.__dict__.iteritems()]
6487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6488
 
6489
  def __eq__(self, other):
6490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6491
 
6492
  def __ne__(self, other):
6493
    return not (self == other)
6494
 
6495
class getAllAddressesForUser_result:
6496
  """
6497
  Attributes:
6498
   - success
6499
   - ucx
6500
  """
6501
 
6502
  thrift_spec = (
6503
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6504
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6505
  )
6506
 
6507
  def __init__(self, success=None, ucx=None,):
6508
    self.success = success
6509
    self.ucx = ucx
6510
 
6511
  def read(self, iprot):
6512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6514
      return
6515
    iprot.readStructBegin()
6516
    while True:
6517
      (fname, ftype, fid) = iprot.readFieldBegin()
6518
      if ftype == TType.STOP:
6519
        break
6520
      if fid == 0:
6521
        if ftype == TType.LIST:
6522
          self.success = []
4668 varun.gupt 6523
          (_etype68, _size65) = iprot.readListBegin()
6524
          for _i69 in xrange(_size65):
6525
            _elem70 = Address()
6526
            _elem70.read(iprot)
6527
            self.success.append(_elem70)
594 rajveer 6528
          iprot.readListEnd()
6529
        else:
6530
          iprot.skip(ftype)
6531
      elif fid == 1:
6532
        if ftype == TType.STRUCT:
6533
          self.ucx = UserContextException()
6534
          self.ucx.read(iprot)
6535
        else:
6536
          iprot.skip(ftype)
6537
      else:
6538
        iprot.skip(ftype)
6539
      iprot.readFieldEnd()
6540
    iprot.readStructEnd()
6541
 
6542
  def write(self, oprot):
6543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6545
      return
6546
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6547
    if self.success is not None:
594 rajveer 6548
      oprot.writeFieldBegin('success', TType.LIST, 0)
6549
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 6550
      for iter71 in self.success:
6551
        iter71.write(oprot)
594 rajveer 6552
      oprot.writeListEnd()
6553
      oprot.writeFieldEnd()
3431 rajveer 6554
    if self.ucx is not None:
594 rajveer 6555
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6556
      self.ucx.write(oprot)
6557
      oprot.writeFieldEnd()
6558
    oprot.writeFieldStop()
6559
    oprot.writeStructEnd()
6560
 
3431 rajveer 6561
  def validate(self):
6562
    return
6563
 
6564
 
594 rajveer 6565
  def __repr__(self):
6566
    L = ['%s=%r' % (key, value)
6567
      for key, value in self.__dict__.iteritems()]
6568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6569
 
6570
  def __eq__(self, other):
6571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6572
 
6573
  def __ne__(self, other):
6574
    return not (self == other)
6575
 
1894 vikas 6576
class getAddressById_args:
6577
  """
6578
  Attributes:
6579
   - addressId
6580
  """
6581
 
6582
  thrift_spec = (
6583
    None, # 0
6584
    (1, TType.I64, 'addressId', None, None, ), # 1
6585
  )
6586
 
6587
  def __init__(self, addressId=None,):
6588
    self.addressId = addressId
6589
 
6590
  def read(self, iprot):
6591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6593
      return
6594
    iprot.readStructBegin()
6595
    while True:
6596
      (fname, ftype, fid) = iprot.readFieldBegin()
6597
      if ftype == TType.STOP:
6598
        break
6599
      if fid == 1:
6600
        if ftype == TType.I64:
6601
          self.addressId = iprot.readI64();
6602
        else:
6603
          iprot.skip(ftype)
6604
      else:
6605
        iprot.skip(ftype)
6606
      iprot.readFieldEnd()
6607
    iprot.readStructEnd()
6608
 
6609
  def write(self, oprot):
6610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6612
      return
6613
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6614
    if self.addressId is not None:
1894 vikas 6615
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6616
      oprot.writeI64(self.addressId)
6617
      oprot.writeFieldEnd()
6618
    oprot.writeFieldStop()
6619
    oprot.writeStructEnd()
6620
 
3431 rajveer 6621
  def validate(self):
6622
    return
6623
 
6624
 
1894 vikas 6625
  def __repr__(self):
6626
    L = ['%s=%r' % (key, value)
6627
      for key, value in self.__dict__.iteritems()]
6628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6629
 
6630
  def __eq__(self, other):
6631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6632
 
6633
  def __ne__(self, other):
6634
    return not (self == other)
6635
 
6636
class getAddressById_result:
6637
  """
6638
  Attributes:
6639
   - success
6640
   - ucx
6641
  """
6642
 
6643
  thrift_spec = (
6644
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6645
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6646
  )
6647
 
6648
  def __init__(self, success=None, ucx=None,):
6649
    self.success = success
6650
    self.ucx = ucx
6651
 
6652
  def read(self, iprot):
6653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6655
      return
6656
    iprot.readStructBegin()
6657
    while True:
6658
      (fname, ftype, fid) = iprot.readFieldBegin()
6659
      if ftype == TType.STOP:
6660
        break
6661
      if fid == 0:
6662
        if ftype == TType.STRUCT:
6663
          self.success = Address()
6664
          self.success.read(iprot)
6665
        else:
6666
          iprot.skip(ftype)
6667
      elif fid == 1:
6668
        if ftype == TType.STRUCT:
6669
          self.ucx = UserContextException()
6670
          self.ucx.read(iprot)
6671
        else:
6672
          iprot.skip(ftype)
6673
      else:
6674
        iprot.skip(ftype)
6675
      iprot.readFieldEnd()
6676
    iprot.readStructEnd()
6677
 
6678
  def write(self, oprot):
6679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6681
      return
6682
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6683
    if self.success is not None:
1894 vikas 6684
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6685
      self.success.write(oprot)
6686
      oprot.writeFieldEnd()
3431 rajveer 6687
    if self.ucx is not None:
1894 vikas 6688
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6689
      self.ucx.write(oprot)
6690
      oprot.writeFieldEnd()
6691
    oprot.writeFieldStop()
6692
    oprot.writeStructEnd()
6693
 
3431 rajveer 6694
  def validate(self):
6695
    return
6696
 
6697
 
1894 vikas 6698
  def __repr__(self):
6699
    L = ['%s=%r' % (key, value)
6700
      for key, value in self.__dict__.iteritems()]
6701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6702
 
6703
  def __eq__(self, other):
6704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6705
 
6706
  def __ne__(self, other):
6707
    return not (self == other)
6708
 
594 rajveer 6709
class getDefaultAddressId_args:
6710
  """
6711
  Attributes:
6712
   - userId
6713
  """
6714
 
6715
  thrift_spec = (
6716
    None, # 0
6717
    (1, TType.I64, 'userId', None, None, ), # 1
6718
  )
6719
 
6720
  def __init__(self, userId=None,):
6721
    self.userId = userId
6722
 
6723
  def read(self, iprot):
6724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6726
      return
6727
    iprot.readStructBegin()
6728
    while True:
6729
      (fname, ftype, fid) = iprot.readFieldBegin()
6730
      if ftype == TType.STOP:
6731
        break
6732
      if fid == 1:
6733
        if ftype == TType.I64:
6734
          self.userId = iprot.readI64();
6735
        else:
6736
          iprot.skip(ftype)
6737
      else:
6738
        iprot.skip(ftype)
6739
      iprot.readFieldEnd()
6740
    iprot.readStructEnd()
6741
 
6742
  def write(self, oprot):
6743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6745
      return
6746
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6747
    if self.userId is not None:
594 rajveer 6748
      oprot.writeFieldBegin('userId', TType.I64, 1)
6749
      oprot.writeI64(self.userId)
6750
      oprot.writeFieldEnd()
6751
    oprot.writeFieldStop()
6752
    oprot.writeStructEnd()
6753
 
3431 rajveer 6754
  def validate(self):
6755
    return
6756
 
6757
 
594 rajveer 6758
  def __repr__(self):
6759
    L = ['%s=%r' % (key, value)
6760
      for key, value in self.__dict__.iteritems()]
6761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6762
 
6763
  def __eq__(self, other):
6764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6765
 
6766
  def __ne__(self, other):
6767
    return not (self == other)
6768
 
6769
class getDefaultAddressId_result:
6770
  """
6771
  Attributes:
6772
   - success
6773
   - ucx
6774
  """
6775
 
6776
  thrift_spec = (
6777
    (0, TType.I64, 'success', None, None, ), # 0
6778
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6779
  )
6780
 
6781
  def __init__(self, success=None, ucx=None,):
6782
    self.success = success
6783
    self.ucx = ucx
6784
 
6785
  def read(self, iprot):
6786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6788
      return
6789
    iprot.readStructBegin()
6790
    while True:
6791
      (fname, ftype, fid) = iprot.readFieldBegin()
6792
      if ftype == TType.STOP:
6793
        break
6794
      if fid == 0:
6795
        if ftype == TType.I64:
6796
          self.success = iprot.readI64();
6797
        else:
6798
          iprot.skip(ftype)
6799
      elif fid == 1:
6800
        if ftype == TType.STRUCT:
6801
          self.ucx = UserContextException()
6802
          self.ucx.read(iprot)
6803
        else:
6804
          iprot.skip(ftype)
6805
      else:
6806
        iprot.skip(ftype)
6807
      iprot.readFieldEnd()
6808
    iprot.readStructEnd()
6809
 
6810
  def write(self, oprot):
6811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6813
      return
6814
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6815
    if self.success is not None:
594 rajveer 6816
      oprot.writeFieldBegin('success', TType.I64, 0)
6817
      oprot.writeI64(self.success)
6818
      oprot.writeFieldEnd()
3431 rajveer 6819
    if self.ucx is not None:
594 rajveer 6820
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6821
      self.ucx.write(oprot)
6822
      oprot.writeFieldEnd()
6823
    oprot.writeFieldStop()
6824
    oprot.writeStructEnd()
6825
 
3431 rajveer 6826
  def validate(self):
6827
    return
6828
 
6829
 
594 rajveer 6830
  def __repr__(self):
6831
    L = ['%s=%r' % (key, value)
6832
      for key, value in self.__dict__.iteritems()]
6833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6834
 
6835
  def __eq__(self, other):
6836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6837
 
6838
  def __ne__(self, other):
6839
    return not (self == other)
6840
 
785 rajveer 6841
class getDefaultPincode_args:
6842
  """
6843
  Attributes:
6844
   - userId
6845
  """
6846
 
6847
  thrift_spec = (
6848
    None, # 0
6849
    (1, TType.I64, 'userId', None, None, ), # 1
6850
  )
6851
 
6852
  def __init__(self, userId=None,):
6853
    self.userId = userId
6854
 
6855
  def read(self, iprot):
6856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6858
      return
6859
    iprot.readStructBegin()
6860
    while True:
6861
      (fname, ftype, fid) = iprot.readFieldBegin()
6862
      if ftype == TType.STOP:
6863
        break
6864
      if fid == 1:
6865
        if ftype == TType.I64:
6866
          self.userId = iprot.readI64();
6867
        else:
6868
          iprot.skip(ftype)
6869
      else:
6870
        iprot.skip(ftype)
6871
      iprot.readFieldEnd()
6872
    iprot.readStructEnd()
6873
 
6874
  def write(self, oprot):
6875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6877
      return
6878
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6879
    if self.userId is not None:
785 rajveer 6880
      oprot.writeFieldBegin('userId', TType.I64, 1)
6881
      oprot.writeI64(self.userId)
6882
      oprot.writeFieldEnd()
6883
    oprot.writeFieldStop()
6884
    oprot.writeStructEnd()
6885
 
3431 rajveer 6886
  def validate(self):
6887
    return
6888
 
6889
 
785 rajveer 6890
  def __repr__(self):
6891
    L = ['%s=%r' % (key, value)
6892
      for key, value in self.__dict__.iteritems()]
6893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6894
 
6895
  def __eq__(self, other):
6896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6897
 
6898
  def __ne__(self, other):
6899
    return not (self == other)
6900
 
6901
class getDefaultPincode_result:
6902
  """
6903
  Attributes:
6904
   - success
6905
   - ucx
6906
  """
6907
 
6908
  thrift_spec = (
6909
    (0, TType.STRING, 'success', None, None, ), # 0
6910
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6911
  )
6912
 
6913
  def __init__(self, success=None, ucx=None,):
6914
    self.success = success
6915
    self.ucx = ucx
6916
 
6917
  def read(self, iprot):
6918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6920
      return
6921
    iprot.readStructBegin()
6922
    while True:
6923
      (fname, ftype, fid) = iprot.readFieldBegin()
6924
      if ftype == TType.STOP:
6925
        break
6926
      if fid == 0:
6927
        if ftype == TType.STRING:
6928
          self.success = iprot.readString();
6929
        else:
6930
          iprot.skip(ftype)
6931
      elif fid == 1:
6932
        if ftype == TType.STRUCT:
6933
          self.ucx = UserContextException()
6934
          self.ucx.read(iprot)
6935
        else:
6936
          iprot.skip(ftype)
6937
      else:
6938
        iprot.skip(ftype)
6939
      iprot.readFieldEnd()
6940
    iprot.readStructEnd()
6941
 
6942
  def write(self, oprot):
6943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6945
      return
6946
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6947
    if self.success is not None:
785 rajveer 6948
      oprot.writeFieldBegin('success', TType.STRING, 0)
6949
      oprot.writeString(self.success)
6950
      oprot.writeFieldEnd()
3431 rajveer 6951
    if self.ucx is not None:
785 rajveer 6952
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6953
      self.ucx.write(oprot)
6954
      oprot.writeFieldEnd()
6955
    oprot.writeFieldStop()
6956
    oprot.writeStructEnd()
6957
 
3431 rajveer 6958
  def validate(self):
6959
    return
6960
 
6961
 
785 rajveer 6962
  def __repr__(self):
6963
    L = ['%s=%r' % (key, value)
6964
      for key, value in self.__dict__.iteritems()]
6965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6966
 
6967
  def __eq__(self, other):
6968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6969
 
6970
  def __ne__(self, other):
6971
    return not (self == other)
6972
 
1274 varun.gupt 6973
class saveUserCommunication_args:
6974
  """
6975
  Attributes:
6976
   - userId
6977
   - replyTo
6978
   - communicationType
6979
   - orderId
6980
   - airwaybillNo
6981
   - productName
6982
   - subject
6983
   - message
6984
  """
6985
 
6986
  thrift_spec = (
6987
    None, # 0
6988
    (1, TType.I64, 'userId', None, None, ), # 1
6989
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6990
    (3, TType.I64, 'communicationType', None, None, ), # 3
6991
    (4, TType.I64, 'orderId', None, None, ), # 4
6992
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6993
    (6, TType.STRING, 'productName', None, None, ), # 6
6994
    (7, TType.STRING, 'subject', None, None, ), # 7
6995
    (8, TType.STRING, 'message', None, None, ), # 8
6996
  )
6997
 
6998
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6999
    self.userId = userId
7000
    self.replyTo = replyTo
7001
    self.communicationType = communicationType
7002
    self.orderId = orderId
7003
    self.airwaybillNo = airwaybillNo
7004
    self.productName = productName
7005
    self.subject = subject
7006
    self.message = message
7007
 
7008
  def read(self, iprot):
7009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7011
      return
7012
    iprot.readStructBegin()
7013
    while True:
7014
      (fname, ftype, fid) = iprot.readFieldBegin()
7015
      if ftype == TType.STOP:
7016
        break
7017
      if fid == 1:
7018
        if ftype == TType.I64:
7019
          self.userId = iprot.readI64();
7020
        else:
7021
          iprot.skip(ftype)
7022
      elif fid == 2:
7023
        if ftype == TType.STRING:
7024
          self.replyTo = iprot.readString();
7025
        else:
7026
          iprot.skip(ftype)
7027
      elif fid == 3:
7028
        if ftype == TType.I64:
7029
          self.communicationType = iprot.readI64();
7030
        else:
7031
          iprot.skip(ftype)
7032
      elif fid == 4:
7033
        if ftype == TType.I64:
7034
          self.orderId = iprot.readI64();
7035
        else:
7036
          iprot.skip(ftype)
7037
      elif fid == 5:
7038
        if ftype == TType.STRING:
7039
          self.airwaybillNo = iprot.readString();
7040
        else:
7041
          iprot.skip(ftype)
7042
      elif fid == 6:
7043
        if ftype == TType.STRING:
7044
          self.productName = iprot.readString();
7045
        else:
7046
          iprot.skip(ftype)
7047
      elif fid == 7:
7048
        if ftype == TType.STRING:
7049
          self.subject = iprot.readString();
7050
        else:
7051
          iprot.skip(ftype)
7052
      elif fid == 8:
7053
        if ftype == TType.STRING:
7054
          self.message = iprot.readString();
7055
        else:
7056
          iprot.skip(ftype)
7057
      else:
7058
        iprot.skip(ftype)
7059
      iprot.readFieldEnd()
7060
    iprot.readStructEnd()
7061
 
7062
  def write(self, oprot):
7063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7065
      return
7066
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7067
    if self.userId is not None:
1274 varun.gupt 7068
      oprot.writeFieldBegin('userId', TType.I64, 1)
7069
      oprot.writeI64(self.userId)
7070
      oprot.writeFieldEnd()
3431 rajveer 7071
    if self.replyTo is not None:
1274 varun.gupt 7072
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7073
      oprot.writeString(self.replyTo)
7074
      oprot.writeFieldEnd()
3431 rajveer 7075
    if self.communicationType is not None:
1274 varun.gupt 7076
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7077
      oprot.writeI64(self.communicationType)
7078
      oprot.writeFieldEnd()
3431 rajveer 7079
    if self.orderId is not None:
1274 varun.gupt 7080
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7081
      oprot.writeI64(self.orderId)
7082
      oprot.writeFieldEnd()
3431 rajveer 7083
    if self.airwaybillNo is not None:
1274 varun.gupt 7084
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7085
      oprot.writeString(self.airwaybillNo)
7086
      oprot.writeFieldEnd()
3431 rajveer 7087
    if self.productName is not None:
1274 varun.gupt 7088
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7089
      oprot.writeString(self.productName)
7090
      oprot.writeFieldEnd()
3431 rajveer 7091
    if self.subject is not None:
1274 varun.gupt 7092
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7093
      oprot.writeString(self.subject)
7094
      oprot.writeFieldEnd()
3431 rajveer 7095
    if self.message is not None:
1274 varun.gupt 7096
      oprot.writeFieldBegin('message', TType.STRING, 8)
7097
      oprot.writeString(self.message)
7098
      oprot.writeFieldEnd()
7099
    oprot.writeFieldStop()
7100
    oprot.writeStructEnd()
7101
 
3431 rajveer 7102
  def validate(self):
7103
    return
7104
 
7105
 
1274 varun.gupt 7106
  def __repr__(self):
7107
    L = ['%s=%r' % (key, value)
7108
      for key, value in self.__dict__.iteritems()]
7109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7110
 
7111
  def __eq__(self, other):
7112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7113
 
7114
  def __ne__(self, other):
7115
    return not (self == other)
7116
 
7117
class saveUserCommunication_result:
7118
  """
7119
  Attributes:
7120
   - success
7121
   - ucx
7122
  """
7123
 
7124
  thrift_spec = (
7125
    (0, TType.BOOL, 'success', None, None, ), # 0
7126
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7127
  )
7128
 
7129
  def __init__(self, success=None, ucx=None,):
7130
    self.success = success
7131
    self.ucx = ucx
7132
 
7133
  def read(self, iprot):
7134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7136
      return
7137
    iprot.readStructBegin()
7138
    while True:
7139
      (fname, ftype, fid) = iprot.readFieldBegin()
7140
      if ftype == TType.STOP:
7141
        break
7142
      if fid == 0:
7143
        if ftype == TType.BOOL:
7144
          self.success = iprot.readBool();
7145
        else:
7146
          iprot.skip(ftype)
7147
      elif fid == 1:
7148
        if ftype == TType.STRUCT:
7149
          self.ucx = UserCommunicationException()
7150
          self.ucx.read(iprot)
7151
        else:
7152
          iprot.skip(ftype)
7153
      else:
7154
        iprot.skip(ftype)
7155
      iprot.readFieldEnd()
7156
    iprot.readStructEnd()
7157
 
7158
  def write(self, oprot):
7159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7161
      return
7162
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7163
    if self.success is not None:
1274 varun.gupt 7164
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7165
      oprot.writeBool(self.success)
7166
      oprot.writeFieldEnd()
3431 rajveer 7167
    if self.ucx is not None:
1274 varun.gupt 7168
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7169
      self.ucx.write(oprot)
7170
      oprot.writeFieldEnd()
7171
    oprot.writeFieldStop()
7172
    oprot.writeStructEnd()
7173
 
3431 rajveer 7174
  def validate(self):
7175
    return
7176
 
7177
 
1274 varun.gupt 7178
  def __repr__(self):
7179
    L = ['%s=%r' % (key, value)
7180
      for key, value in self.__dict__.iteritems()]
7181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7182
 
7183
  def __eq__(self, other):
7184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7185
 
7186
  def __ne__(self, other):
7187
    return not (self == other)
7188
 
1590 varun.gupt 7189
class getUserCommunicationById_args:
7190
  """
7191
  Attributes:
7192
   - id
7193
  """
7194
 
7195
  thrift_spec = (
7196
    None, # 0
7197
    (1, TType.I64, 'id', None, None, ), # 1
7198
  )
7199
 
7200
  def __init__(self, id=None,):
7201
    self.id = id
7202
 
7203
  def read(self, iprot):
7204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7206
      return
7207
    iprot.readStructBegin()
7208
    while True:
7209
      (fname, ftype, fid) = iprot.readFieldBegin()
7210
      if ftype == TType.STOP:
7211
        break
7212
      if fid == 1:
7213
        if ftype == TType.I64:
7214
          self.id = iprot.readI64();
7215
        else:
7216
          iprot.skip(ftype)
7217
      else:
7218
        iprot.skip(ftype)
7219
      iprot.readFieldEnd()
7220
    iprot.readStructEnd()
7221
 
7222
  def write(self, oprot):
7223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7225
      return
7226
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7227
    if self.id is not None:
1590 varun.gupt 7228
      oprot.writeFieldBegin('id', TType.I64, 1)
7229
      oprot.writeI64(self.id)
7230
      oprot.writeFieldEnd()
7231
    oprot.writeFieldStop()
7232
    oprot.writeStructEnd()
7233
 
3431 rajveer 7234
  def validate(self):
7235
    return
7236
 
7237
 
1590 varun.gupt 7238
  def __repr__(self):
7239
    L = ['%s=%r' % (key, value)
7240
      for key, value in self.__dict__.iteritems()]
7241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7242
 
7243
  def __eq__(self, other):
7244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7245
 
7246
  def __ne__(self, other):
7247
    return not (self == other)
7248
 
7249
class getUserCommunicationById_result:
7250
  """
7251
  Attributes:
7252
   - success
7253
   - ucx
7254
  """
7255
 
7256
  thrift_spec = (
7257
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7258
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7259
  )
7260
 
7261
  def __init__(self, success=None, ucx=None,):
7262
    self.success = success
7263
    self.ucx = ucx
7264
 
7265
  def read(self, iprot):
7266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7268
      return
7269
    iprot.readStructBegin()
7270
    while True:
7271
      (fname, ftype, fid) = iprot.readFieldBegin()
7272
      if ftype == TType.STOP:
7273
        break
7274
      if fid == 0:
7275
        if ftype == TType.STRUCT:
7276
          self.success = UserCommunication()
7277
          self.success.read(iprot)
7278
        else:
7279
          iprot.skip(ftype)
7280
      elif fid == 1:
7281
        if ftype == TType.STRUCT:
7282
          self.ucx = UserCommunicationException()
7283
          self.ucx.read(iprot)
7284
        else:
7285
          iprot.skip(ftype)
7286
      else:
7287
        iprot.skip(ftype)
7288
      iprot.readFieldEnd()
7289
    iprot.readStructEnd()
7290
 
7291
  def write(self, oprot):
7292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7294
      return
7295
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7296
    if self.success is not None:
1590 varun.gupt 7297
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7298
      self.success.write(oprot)
7299
      oprot.writeFieldEnd()
3431 rajveer 7300
    if self.ucx is not None:
1590 varun.gupt 7301
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7302
      self.ucx.write(oprot)
7303
      oprot.writeFieldEnd()
7304
    oprot.writeFieldStop()
7305
    oprot.writeStructEnd()
7306
 
3431 rajveer 7307
  def validate(self):
7308
    return
7309
 
7310
 
1590 varun.gupt 7311
  def __repr__(self):
7312
    L = ['%s=%r' % (key, value)
7313
      for key, value in self.__dict__.iteritems()]
7314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7315
 
7316
  def __eq__(self, other):
7317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7318
 
7319
  def __ne__(self, other):
7320
    return not (self == other)
7321
 
7322
class getUserCommunicationByUser_args:
7323
  """
7324
  Attributes:
7325
   - userId
7326
  """
7327
 
7328
  thrift_spec = (
7329
    None, # 0
7330
    (1, TType.I64, 'userId', None, None, ), # 1
7331
  )
7332
 
7333
  def __init__(self, userId=None,):
7334
    self.userId = userId
7335
 
7336
  def read(self, iprot):
7337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7339
      return
7340
    iprot.readStructBegin()
7341
    while True:
7342
      (fname, ftype, fid) = iprot.readFieldBegin()
7343
      if ftype == TType.STOP:
7344
        break
7345
      if fid == 1:
7346
        if ftype == TType.I64:
7347
          self.userId = iprot.readI64();
7348
        else:
7349
          iprot.skip(ftype)
7350
      else:
7351
        iprot.skip(ftype)
7352
      iprot.readFieldEnd()
7353
    iprot.readStructEnd()
7354
 
7355
  def write(self, oprot):
7356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7358
      return
7359
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7360
    if self.userId is not None:
1590 varun.gupt 7361
      oprot.writeFieldBegin('userId', TType.I64, 1)
7362
      oprot.writeI64(self.userId)
7363
      oprot.writeFieldEnd()
7364
    oprot.writeFieldStop()
7365
    oprot.writeStructEnd()
7366
 
3431 rajveer 7367
  def validate(self):
7368
    return
7369
 
7370
 
1590 varun.gupt 7371
  def __repr__(self):
7372
    L = ['%s=%r' % (key, value)
7373
      for key, value in self.__dict__.iteritems()]
7374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7375
 
7376
  def __eq__(self, other):
7377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7378
 
7379
  def __ne__(self, other):
7380
    return not (self == other)
7381
 
7382
class getUserCommunicationByUser_result:
7383
  """
7384
  Attributes:
7385
   - success
7386
   - ucx
7387
  """
7388
 
7389
  thrift_spec = (
7390
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7391
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7392
  )
7393
 
7394
  def __init__(self, success=None, ucx=None,):
7395
    self.success = success
7396
    self.ucx = ucx
7397
 
7398
  def read(self, iprot):
7399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7401
      return
7402
    iprot.readStructBegin()
7403
    while True:
7404
      (fname, ftype, fid) = iprot.readFieldBegin()
7405
      if ftype == TType.STOP:
7406
        break
7407
      if fid == 0:
7408
        if ftype == TType.LIST:
7409
          self.success = []
4668 varun.gupt 7410
          (_etype75, _size72) = iprot.readListBegin()
7411
          for _i76 in xrange(_size72):
7412
            _elem77 = UserCommunication()
7413
            _elem77.read(iprot)
7414
            self.success.append(_elem77)
1590 varun.gupt 7415
          iprot.readListEnd()
7416
        else:
7417
          iprot.skip(ftype)
7418
      elif fid == 1:
7419
        if ftype == TType.STRUCT:
7420
          self.ucx = UserCommunicationException()
7421
          self.ucx.read(iprot)
7422
        else:
7423
          iprot.skip(ftype)
7424
      else:
7425
        iprot.skip(ftype)
7426
      iprot.readFieldEnd()
7427
    iprot.readStructEnd()
7428
 
7429
  def write(self, oprot):
7430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7432
      return
7433
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7434
    if self.success is not None:
1590 varun.gupt 7435
      oprot.writeFieldBegin('success', TType.LIST, 0)
7436
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 7437
      for iter78 in self.success:
7438
        iter78.write(oprot)
1590 varun.gupt 7439
      oprot.writeListEnd()
7440
      oprot.writeFieldEnd()
3431 rajveer 7441
    if self.ucx is not None:
1590 varun.gupt 7442
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7443
      self.ucx.write(oprot)
7444
      oprot.writeFieldEnd()
7445
    oprot.writeFieldStop()
7446
    oprot.writeStructEnd()
7447
 
3431 rajveer 7448
  def validate(self):
7449
    return
7450
 
7451
 
1590 varun.gupt 7452
  def __repr__(self):
7453
    L = ['%s=%r' % (key, value)
7454
      for key, value in self.__dict__.iteritems()]
7455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7456
 
7457
  def __eq__(self, other):
7458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7459
 
7460
  def __ne__(self, other):
7461
    return not (self == other)
7462
 
7463
class getAllUserCommunications_args:
7464
 
7465
  thrift_spec = (
7466
  )
7467
 
7468
  def read(self, iprot):
7469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7471
      return
7472
    iprot.readStructBegin()
7473
    while True:
7474
      (fname, ftype, fid) = iprot.readFieldBegin()
7475
      if ftype == TType.STOP:
7476
        break
7477
      else:
7478
        iprot.skip(ftype)
7479
      iprot.readFieldEnd()
7480
    iprot.readStructEnd()
7481
 
7482
  def write(self, oprot):
7483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7485
      return
7486
    oprot.writeStructBegin('getAllUserCommunications_args')
7487
    oprot.writeFieldStop()
7488
    oprot.writeStructEnd()
7489
 
3431 rajveer 7490
  def validate(self):
7491
    return
7492
 
7493
 
1590 varun.gupt 7494
  def __repr__(self):
7495
    L = ['%s=%r' % (key, value)
7496
      for key, value in self.__dict__.iteritems()]
7497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7498
 
7499
  def __eq__(self, other):
7500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7501
 
7502
  def __ne__(self, other):
7503
    return not (self == other)
7504
 
7505
class getAllUserCommunications_result:
7506
  """
7507
  Attributes:
7508
   - success
7509
   - ucx
7510
  """
7511
 
7512
  thrift_spec = (
7513
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7514
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7515
  )
7516
 
7517
  def __init__(self, success=None, ucx=None,):
7518
    self.success = success
7519
    self.ucx = ucx
7520
 
7521
  def read(self, iprot):
7522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7524
      return
7525
    iprot.readStructBegin()
7526
    while True:
7527
      (fname, ftype, fid) = iprot.readFieldBegin()
7528
      if ftype == TType.STOP:
7529
        break
7530
      if fid == 0:
7531
        if ftype == TType.LIST:
7532
          self.success = []
4668 varun.gupt 7533
          (_etype82, _size79) = iprot.readListBegin()
7534
          for _i83 in xrange(_size79):
7535
            _elem84 = UserCommunication()
7536
            _elem84.read(iprot)
7537
            self.success.append(_elem84)
1590 varun.gupt 7538
          iprot.readListEnd()
7539
        else:
7540
          iprot.skip(ftype)
7541
      elif fid == 1:
7542
        if ftype == TType.STRUCT:
7543
          self.ucx = UserCommunicationException()
7544
          self.ucx.read(iprot)
7545
        else:
7546
          iprot.skip(ftype)
7547
      else:
7548
        iprot.skip(ftype)
7549
      iprot.readFieldEnd()
7550
    iprot.readStructEnd()
7551
 
7552
  def write(self, oprot):
7553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7555
      return
7556
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7557
    if self.success is not None:
1590 varun.gupt 7558
      oprot.writeFieldBegin('success', TType.LIST, 0)
7559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 7560
      for iter85 in self.success:
7561
        iter85.write(oprot)
1590 varun.gupt 7562
      oprot.writeListEnd()
7563
      oprot.writeFieldEnd()
3431 rajveer 7564
    if self.ucx is not None:
1590 varun.gupt 7565
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7566
      self.ucx.write(oprot)
7567
      oprot.writeFieldEnd()
7568
    oprot.writeFieldStop()
7569
    oprot.writeStructEnd()
7570
 
3431 rajveer 7571
  def validate(self):
7572
    return
7573
 
7574
 
1590 varun.gupt 7575
  def __repr__(self):
7576
    L = ['%s=%r' % (key, value)
7577
      for key, value in self.__dict__.iteritems()]
7578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7579
 
7580
  def __eq__(self, other):
7581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7582
 
7583
  def __ne__(self, other):
7584
    return not (self == other)
7585
 
1845 vikas 7586
class createMasterAffiliate_args:
7587
  """
7588
  Attributes:
7589
   - name
1859 vikas 7590
   - addedOn
1845 vikas 7591
  """
7592
 
7593
  thrift_spec = (
7594
    None, # 0
7595
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7596
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7597
  )
7598
 
1859 vikas 7599
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7600
    self.name = name
1859 vikas 7601
    self.addedOn = addedOn
1845 vikas 7602
 
7603
  def read(self, iprot):
7604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7606
      return
7607
    iprot.readStructBegin()
7608
    while True:
7609
      (fname, ftype, fid) = iprot.readFieldBegin()
7610
      if ftype == TType.STOP:
7611
        break
7612
      if fid == 1:
7613
        if ftype == TType.STRING:
7614
          self.name = iprot.readString();
7615
        else:
7616
          iprot.skip(ftype)
1859 vikas 7617
      elif fid == 2:
7618
        if ftype == TType.I64:
7619
          self.addedOn = iprot.readI64();
7620
        else:
7621
          iprot.skip(ftype)
1845 vikas 7622
      else:
7623
        iprot.skip(ftype)
7624
      iprot.readFieldEnd()
7625
    iprot.readStructEnd()
7626
 
7627
  def write(self, oprot):
7628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7630
      return
7631
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7632
    if self.name is not None:
1845 vikas 7633
      oprot.writeFieldBegin('name', TType.STRING, 1)
7634
      oprot.writeString(self.name)
7635
      oprot.writeFieldEnd()
3431 rajveer 7636
    if self.addedOn is not None:
1859 vikas 7637
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7638
      oprot.writeI64(self.addedOn)
7639
      oprot.writeFieldEnd()
1845 vikas 7640
    oprot.writeFieldStop()
7641
    oprot.writeStructEnd()
7642
 
3431 rajveer 7643
  def validate(self):
7644
    return
7645
 
7646
 
1845 vikas 7647
  def __repr__(self):
7648
    L = ['%s=%r' % (key, value)
7649
      for key, value in self.__dict__.iteritems()]
7650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7651
 
7652
  def __eq__(self, other):
7653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7654
 
7655
  def __ne__(self, other):
7656
    return not (self == other)
7657
 
7658
class createMasterAffiliate_result:
7659
  """
7660
  Attributes:
7661
   - success
7662
   - utx
7663
  """
7664
 
7665
  thrift_spec = (
7666
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7667
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7668
  )
7669
 
7670
  def __init__(self, success=None, utx=None,):
7671
    self.success = success
7672
    self.utx = utx
7673
 
7674
  def read(self, iprot):
7675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7677
      return
7678
    iprot.readStructBegin()
7679
    while True:
7680
      (fname, ftype, fid) = iprot.readFieldBegin()
7681
      if ftype == TType.STOP:
7682
        break
7683
      if fid == 0:
7684
        if ftype == TType.STRUCT:
7685
          self.success = MasterAffiliate()
7686
          self.success.read(iprot)
7687
        else:
7688
          iprot.skip(ftype)
7689
      elif fid == 1:
7690
        if ftype == TType.STRUCT:
1996 vikas 7691
          self.utx = UserAffiliateException()
1845 vikas 7692
          self.utx.read(iprot)
7693
        else:
7694
          iprot.skip(ftype)
7695
      else:
7696
        iprot.skip(ftype)
7697
      iprot.readFieldEnd()
7698
    iprot.readStructEnd()
7699
 
7700
  def write(self, oprot):
7701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7703
      return
7704
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7705
    if self.success is not None:
1845 vikas 7706
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7707
      self.success.write(oprot)
7708
      oprot.writeFieldEnd()
3431 rajveer 7709
    if self.utx is not None:
1845 vikas 7710
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7711
      self.utx.write(oprot)
7712
      oprot.writeFieldEnd()
7713
    oprot.writeFieldStop()
7714
    oprot.writeStructEnd()
7715
 
3431 rajveer 7716
  def validate(self):
7717
    return
7718
 
7719
 
1845 vikas 7720
  def __repr__(self):
7721
    L = ['%s=%r' % (key, value)
7722
      for key, value in self.__dict__.iteritems()]
7723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7724
 
7725
  def __eq__(self, other):
7726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7727
 
7728
  def __ne__(self, other):
7729
    return not (self == other)
7730
 
1899 vikas 7731
class getAllMasterAffiliates_args:
7732
 
7733
  thrift_spec = (
7734
  )
7735
 
7736
  def read(self, iprot):
7737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7739
      return
7740
    iprot.readStructBegin()
7741
    while True:
7742
      (fname, ftype, fid) = iprot.readFieldBegin()
7743
      if ftype == TType.STOP:
7744
        break
7745
      else:
7746
        iprot.skip(ftype)
7747
      iprot.readFieldEnd()
7748
    iprot.readStructEnd()
7749
 
7750
  def write(self, oprot):
7751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7753
      return
7754
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7755
    oprot.writeFieldStop()
7756
    oprot.writeStructEnd()
7757
 
3431 rajveer 7758
  def validate(self):
7759
    return
7760
 
7761
 
1899 vikas 7762
  def __repr__(self):
7763
    L = ['%s=%r' % (key, value)
7764
      for key, value in self.__dict__.iteritems()]
7765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7766
 
7767
  def __eq__(self, other):
7768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7769
 
7770
  def __ne__(self, other):
7771
    return not (self == other)
7772
 
7773
class getAllMasterAffiliates_result:
7774
  """
7775
  Attributes:
7776
   - success
7777
   - utx
7778
  """
7779
 
7780
  thrift_spec = (
7781
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7782
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7783
  )
7784
 
7785
  def __init__(self, success=None, utx=None,):
7786
    self.success = success
7787
    self.utx = utx
7788
 
7789
  def read(self, iprot):
7790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7792
      return
7793
    iprot.readStructBegin()
7794
    while True:
7795
      (fname, ftype, fid) = iprot.readFieldBegin()
7796
      if ftype == TType.STOP:
7797
        break
7798
      if fid == 0:
7799
        if ftype == TType.LIST:
7800
          self.success = []
4668 varun.gupt 7801
          (_etype89, _size86) = iprot.readListBegin()
7802
          for _i90 in xrange(_size86):
7803
            _elem91 = MasterAffiliate()
7804
            _elem91.read(iprot)
7805
            self.success.append(_elem91)
1899 vikas 7806
          iprot.readListEnd()
7807
        else:
7808
          iprot.skip(ftype)
7809
      elif fid == 1:
7810
        if ftype == TType.STRUCT:
1996 vikas 7811
          self.utx = UserAffiliateException()
1899 vikas 7812
          self.utx.read(iprot)
7813
        else:
7814
          iprot.skip(ftype)
7815
      else:
7816
        iprot.skip(ftype)
7817
      iprot.readFieldEnd()
7818
    iprot.readStructEnd()
7819
 
7820
  def write(self, oprot):
7821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7823
      return
7824
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7825
    if self.success is not None:
1899 vikas 7826
      oprot.writeFieldBegin('success', TType.LIST, 0)
7827
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 7828
      for iter92 in self.success:
7829
        iter92.write(oprot)
1899 vikas 7830
      oprot.writeListEnd()
7831
      oprot.writeFieldEnd()
3431 rajveer 7832
    if self.utx is not None:
1899 vikas 7833
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7834
      self.utx.write(oprot)
7835
      oprot.writeFieldEnd()
7836
    oprot.writeFieldStop()
7837
    oprot.writeStructEnd()
7838
 
3431 rajveer 7839
  def validate(self):
7840
    return
7841
 
7842
 
1899 vikas 7843
  def __repr__(self):
7844
    L = ['%s=%r' % (key, value)
7845
      for key, value in self.__dict__.iteritems()]
7846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7847
 
7848
  def __eq__(self, other):
7849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7850
 
7851
  def __ne__(self, other):
7852
    return not (self == other)
7853
 
1845 vikas 7854
class getMasterAffiliateById_args:
7855
  """
7856
  Attributes:
7857
   - id
7858
  """
7859
 
7860
  thrift_spec = (
7861
    None, # 0
7862
    (1, TType.I64, 'id', None, None, ), # 1
7863
  )
7864
 
7865
  def __init__(self, id=None,):
7866
    self.id = id
7867
 
7868
  def read(self, iprot):
7869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7871
      return
7872
    iprot.readStructBegin()
7873
    while True:
7874
      (fname, ftype, fid) = iprot.readFieldBegin()
7875
      if ftype == TType.STOP:
7876
        break
7877
      if fid == 1:
7878
        if ftype == TType.I64:
7879
          self.id = iprot.readI64();
7880
        else:
7881
          iprot.skip(ftype)
7882
      else:
7883
        iprot.skip(ftype)
7884
      iprot.readFieldEnd()
7885
    iprot.readStructEnd()
7886
 
7887
  def write(self, oprot):
7888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7890
      return
7891
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7892
    if self.id is not None:
1845 vikas 7893
      oprot.writeFieldBegin('id', TType.I64, 1)
7894
      oprot.writeI64(self.id)
7895
      oprot.writeFieldEnd()
7896
    oprot.writeFieldStop()
7897
    oprot.writeStructEnd()
7898
 
3431 rajveer 7899
  def validate(self):
7900
    return
7901
 
7902
 
1845 vikas 7903
  def __repr__(self):
7904
    L = ['%s=%r' % (key, value)
7905
      for key, value in self.__dict__.iteritems()]
7906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7907
 
7908
  def __eq__(self, other):
7909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7910
 
7911
  def __ne__(self, other):
7912
    return not (self == other)
7913
 
7914
class getMasterAffiliateById_result:
7915
  """
7916
  Attributes:
7917
   - success
7918
   - utx
7919
  """
7920
 
7921
  thrift_spec = (
7922
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7923
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7924
  )
7925
 
7926
  def __init__(self, success=None, utx=None,):
7927
    self.success = success
7928
    self.utx = utx
7929
 
7930
  def read(self, iprot):
7931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7933
      return
7934
    iprot.readStructBegin()
7935
    while True:
7936
      (fname, ftype, fid) = iprot.readFieldBegin()
7937
      if ftype == TType.STOP:
7938
        break
7939
      if fid == 0:
7940
        if ftype == TType.STRUCT:
7941
          self.success = MasterAffiliate()
7942
          self.success.read(iprot)
7943
        else:
7944
          iprot.skip(ftype)
7945
      elif fid == 1:
7946
        if ftype == TType.STRUCT:
1996 vikas 7947
          self.utx = UserAffiliateException()
1845 vikas 7948
          self.utx.read(iprot)
7949
        else:
7950
          iprot.skip(ftype)
7951
      else:
7952
        iprot.skip(ftype)
7953
      iprot.readFieldEnd()
7954
    iprot.readStructEnd()
7955
 
7956
  def write(self, oprot):
7957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7959
      return
7960
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7961
    if self.success is not None:
1845 vikas 7962
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7963
      self.success.write(oprot)
7964
      oprot.writeFieldEnd()
3431 rajveer 7965
    if self.utx is not None:
1845 vikas 7966
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7967
      self.utx.write(oprot)
7968
      oprot.writeFieldEnd()
7969
    oprot.writeFieldStop()
7970
    oprot.writeStructEnd()
7971
 
3431 rajveer 7972
  def validate(self):
7973
    return
7974
 
7975
 
1845 vikas 7976
  def __repr__(self):
7977
    L = ['%s=%r' % (key, value)
7978
      for key, value in self.__dict__.iteritems()]
7979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7980
 
7981
  def __eq__(self, other):
7982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7983
 
7984
  def __ne__(self, other):
7985
    return not (self == other)
7986
 
7987
class getMasterAffiliateByName_args:
7988
  """
7989
  Attributes:
7990
   - name
7991
  """
7992
 
7993
  thrift_spec = (
7994
    None, # 0
7995
    (1, TType.STRING, 'name', None, None, ), # 1
7996
  )
7997
 
7998
  def __init__(self, name=None,):
7999
    self.name = name
8000
 
8001
  def read(self, iprot):
8002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8004
      return
8005
    iprot.readStructBegin()
8006
    while True:
8007
      (fname, ftype, fid) = iprot.readFieldBegin()
8008
      if ftype == TType.STOP:
8009
        break
8010
      if fid == 1:
8011
        if ftype == TType.STRING:
8012
          self.name = iprot.readString();
8013
        else:
8014
          iprot.skip(ftype)
8015
      else:
8016
        iprot.skip(ftype)
8017
      iprot.readFieldEnd()
8018
    iprot.readStructEnd()
8019
 
8020
  def write(self, oprot):
8021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8023
      return
8024
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8025
    if self.name is not None:
1845 vikas 8026
      oprot.writeFieldBegin('name', TType.STRING, 1)
8027
      oprot.writeString(self.name)
8028
      oprot.writeFieldEnd()
8029
    oprot.writeFieldStop()
8030
    oprot.writeStructEnd()
8031
 
3431 rajveer 8032
  def validate(self):
8033
    return
8034
 
8035
 
1845 vikas 8036
  def __repr__(self):
8037
    L = ['%s=%r' % (key, value)
8038
      for key, value in self.__dict__.iteritems()]
8039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8040
 
8041
  def __eq__(self, other):
8042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8043
 
8044
  def __ne__(self, other):
8045
    return not (self == other)
8046
 
8047
class getMasterAffiliateByName_result:
8048
  """
8049
  Attributes:
8050
   - success
8051
   - utx
8052
  """
8053
 
8054
  thrift_spec = (
8055
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8056
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8057
  )
8058
 
8059
  def __init__(self, success=None, utx=None,):
8060
    self.success = success
8061
    self.utx = utx
8062
 
8063
  def read(self, iprot):
8064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8066
      return
8067
    iprot.readStructBegin()
8068
    while True:
8069
      (fname, ftype, fid) = iprot.readFieldBegin()
8070
      if ftype == TType.STOP:
8071
        break
8072
      if fid == 0:
8073
        if ftype == TType.STRUCT:
8074
          self.success = MasterAffiliate()
8075
          self.success.read(iprot)
8076
        else:
8077
          iprot.skip(ftype)
8078
      elif fid == 1:
8079
        if ftype == TType.STRUCT:
1996 vikas 8080
          self.utx = UserAffiliateException()
1845 vikas 8081
          self.utx.read(iprot)
8082
        else:
8083
          iprot.skip(ftype)
8084
      else:
8085
        iprot.skip(ftype)
8086
      iprot.readFieldEnd()
8087
    iprot.readStructEnd()
8088
 
8089
  def write(self, oprot):
8090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8092
      return
8093
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8094
    if self.success is not None:
1845 vikas 8095
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8096
      self.success.write(oprot)
8097
      oprot.writeFieldEnd()
3431 rajveer 8098
    if self.utx is not None:
1845 vikas 8099
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8100
      self.utx.write(oprot)
8101
      oprot.writeFieldEnd()
8102
    oprot.writeFieldStop()
8103
    oprot.writeStructEnd()
8104
 
3431 rajveer 8105
  def validate(self):
8106
    return
8107
 
8108
 
1845 vikas 8109
  def __repr__(self):
8110
    L = ['%s=%r' % (key, value)
8111
      for key, value in self.__dict__.iteritems()]
8112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8113
 
8114
  def __eq__(self, other):
8115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8116
 
8117
  def __ne__(self, other):
8118
    return not (self == other)
8119
 
8120
class createAffiliate_args:
8121
  """
8122
  Attributes:
8123
   - name
8124
   - url
8125
   - masterAffiliateId
1859 vikas 8126
   - addedOn
1845 vikas 8127
  """
8128
 
8129
  thrift_spec = (
8130
    None, # 0
8131
    (1, TType.STRING, 'name', None, None, ), # 1
8132
    (2, TType.STRING, 'url', None, None, ), # 2
8133
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8134
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8135
  )
8136
 
1859 vikas 8137
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8138
    self.name = name
8139
    self.url = url
8140
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8141
    self.addedOn = addedOn
1845 vikas 8142
 
8143
  def read(self, iprot):
8144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8146
      return
8147
    iprot.readStructBegin()
8148
    while True:
8149
      (fname, ftype, fid) = iprot.readFieldBegin()
8150
      if ftype == TType.STOP:
8151
        break
8152
      if fid == 1:
8153
        if ftype == TType.STRING:
8154
          self.name = iprot.readString();
8155
        else:
8156
          iprot.skip(ftype)
8157
      elif fid == 2:
8158
        if ftype == TType.STRING:
8159
          self.url = iprot.readString();
8160
        else:
8161
          iprot.skip(ftype)
8162
      elif fid == 3:
8163
        if ftype == TType.I64:
8164
          self.masterAffiliateId = iprot.readI64();
8165
        else:
8166
          iprot.skip(ftype)
1859 vikas 8167
      elif fid == 4:
8168
        if ftype == TType.I64:
8169
          self.addedOn = iprot.readI64();
8170
        else:
8171
          iprot.skip(ftype)
1845 vikas 8172
      else:
8173
        iprot.skip(ftype)
8174
      iprot.readFieldEnd()
8175
    iprot.readStructEnd()
8176
 
8177
  def write(self, oprot):
8178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8180
      return
8181
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8182
    if self.name is not None:
1845 vikas 8183
      oprot.writeFieldBegin('name', TType.STRING, 1)
8184
      oprot.writeString(self.name)
8185
      oprot.writeFieldEnd()
3431 rajveer 8186
    if self.url is not None:
1845 vikas 8187
      oprot.writeFieldBegin('url', TType.STRING, 2)
8188
      oprot.writeString(self.url)
8189
      oprot.writeFieldEnd()
3431 rajveer 8190
    if self.masterAffiliateId is not None:
1845 vikas 8191
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8192
      oprot.writeI64(self.masterAffiliateId)
8193
      oprot.writeFieldEnd()
3431 rajveer 8194
    if self.addedOn is not None:
1859 vikas 8195
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8196
      oprot.writeI64(self.addedOn)
8197
      oprot.writeFieldEnd()
1845 vikas 8198
    oprot.writeFieldStop()
8199
    oprot.writeStructEnd()
8200
 
3431 rajveer 8201
  def validate(self):
8202
    return
8203
 
8204
 
1845 vikas 8205
  def __repr__(self):
8206
    L = ['%s=%r' % (key, value)
8207
      for key, value in self.__dict__.iteritems()]
8208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8209
 
8210
  def __eq__(self, other):
8211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8212
 
8213
  def __ne__(self, other):
8214
    return not (self == other)
8215
 
8216
class createAffiliate_result:
8217
  """
8218
  Attributes:
8219
   - success
8220
   - utx
8221
  """
8222
 
8223
  thrift_spec = (
8224
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8225
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8226
  )
8227
 
8228
  def __init__(self, success=None, utx=None,):
8229
    self.success = success
8230
    self.utx = utx
8231
 
8232
  def read(self, iprot):
8233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8235
      return
8236
    iprot.readStructBegin()
8237
    while True:
8238
      (fname, ftype, fid) = iprot.readFieldBegin()
8239
      if ftype == TType.STOP:
8240
        break
8241
      if fid == 0:
8242
        if ftype == TType.STRUCT:
8243
          self.success = Affiliate()
8244
          self.success.read(iprot)
8245
        else:
8246
          iprot.skip(ftype)
8247
      elif fid == 1:
8248
        if ftype == TType.STRUCT:
1996 vikas 8249
          self.utx = UserAffiliateException()
1845 vikas 8250
          self.utx.read(iprot)
8251
        else:
8252
          iprot.skip(ftype)
8253
      else:
8254
        iprot.skip(ftype)
8255
      iprot.readFieldEnd()
8256
    iprot.readStructEnd()
8257
 
8258
  def write(self, oprot):
8259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8261
      return
8262
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8263
    if self.success is not None:
1845 vikas 8264
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8265
      self.success.write(oprot)
8266
      oprot.writeFieldEnd()
3431 rajveer 8267
    if self.utx is not None:
1845 vikas 8268
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8269
      self.utx.write(oprot)
8270
      oprot.writeFieldEnd()
8271
    oprot.writeFieldStop()
8272
    oprot.writeStructEnd()
8273
 
3431 rajveer 8274
  def validate(self):
8275
    return
8276
 
8277
 
1845 vikas 8278
  def __repr__(self):
8279
    L = ['%s=%r' % (key, value)
8280
      for key, value in self.__dict__.iteritems()]
8281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8282
 
8283
  def __eq__(self, other):
8284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8285
 
8286
  def __ne__(self, other):
8287
    return not (self == other)
8288
 
8289
class getAffiliateById_args:
8290
  """
8291
  Attributes:
8292
   - id
8293
  """
8294
 
8295
  thrift_spec = (
8296
    None, # 0
8297
    (1, TType.I64, 'id', None, None, ), # 1
8298
  )
8299
 
8300
  def __init__(self, id=None,):
8301
    self.id = id
8302
 
8303
  def read(self, iprot):
8304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8306
      return
8307
    iprot.readStructBegin()
8308
    while True:
8309
      (fname, ftype, fid) = iprot.readFieldBegin()
8310
      if ftype == TType.STOP:
8311
        break
8312
      if fid == 1:
8313
        if ftype == TType.I64:
8314
          self.id = iprot.readI64();
8315
        else:
8316
          iprot.skip(ftype)
8317
      else:
8318
        iprot.skip(ftype)
8319
      iprot.readFieldEnd()
8320
    iprot.readStructEnd()
8321
 
8322
  def write(self, oprot):
8323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8325
      return
8326
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8327
    if self.id is not None:
1845 vikas 8328
      oprot.writeFieldBegin('id', TType.I64, 1)
8329
      oprot.writeI64(self.id)
8330
      oprot.writeFieldEnd()
8331
    oprot.writeFieldStop()
8332
    oprot.writeStructEnd()
8333
 
3431 rajveer 8334
  def validate(self):
8335
    return
8336
 
8337
 
1845 vikas 8338
  def __repr__(self):
8339
    L = ['%s=%r' % (key, value)
8340
      for key, value in self.__dict__.iteritems()]
8341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8342
 
8343
  def __eq__(self, other):
8344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8345
 
8346
  def __ne__(self, other):
8347
    return not (self == other)
8348
 
8349
class getAffiliateById_result:
8350
  """
8351
  Attributes:
8352
   - success
8353
   - utx
8354
  """
8355
 
8356
  thrift_spec = (
8357
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8358
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8359
  )
8360
 
8361
  def __init__(self, success=None, utx=None,):
8362
    self.success = success
8363
    self.utx = utx
8364
 
8365
  def read(self, iprot):
8366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8368
      return
8369
    iprot.readStructBegin()
8370
    while True:
8371
      (fname, ftype, fid) = iprot.readFieldBegin()
8372
      if ftype == TType.STOP:
8373
        break
8374
      if fid == 0:
8375
        if ftype == TType.STRUCT:
8376
          self.success = Affiliate()
8377
          self.success.read(iprot)
8378
        else:
8379
          iprot.skip(ftype)
8380
      elif fid == 1:
8381
        if ftype == TType.STRUCT:
1996 vikas 8382
          self.utx = UserAffiliateException()
1845 vikas 8383
          self.utx.read(iprot)
8384
        else:
8385
          iprot.skip(ftype)
8386
      else:
8387
        iprot.skip(ftype)
8388
      iprot.readFieldEnd()
8389
    iprot.readStructEnd()
8390
 
8391
  def write(self, oprot):
8392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8394
      return
8395
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8396
    if self.success is not None:
1845 vikas 8397
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8398
      self.success.write(oprot)
8399
      oprot.writeFieldEnd()
3431 rajveer 8400
    if self.utx is not None:
1845 vikas 8401
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8402
      self.utx.write(oprot)
8403
      oprot.writeFieldEnd()
8404
    oprot.writeFieldStop()
8405
    oprot.writeStructEnd()
8406
 
3431 rajveer 8407
  def validate(self):
8408
    return
8409
 
8410
 
1845 vikas 8411
  def __repr__(self):
8412
    L = ['%s=%r' % (key, value)
8413
      for key, value in self.__dict__.iteritems()]
8414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8415
 
8416
  def __eq__(self, other):
8417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8418
 
8419
  def __ne__(self, other):
8420
    return not (self == other)
8421
 
8422
class getAffiliateByName_args:
8423
  """
8424
  Attributes:
8425
   - name
8426
  """
8427
 
8428
  thrift_spec = (
8429
    None, # 0
8430
    (1, TType.STRING, 'name', None, None, ), # 1
8431
  )
8432
 
8433
  def __init__(self, name=None,):
8434
    self.name = name
8435
 
8436
  def read(self, iprot):
8437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8439
      return
8440
    iprot.readStructBegin()
8441
    while True:
8442
      (fname, ftype, fid) = iprot.readFieldBegin()
8443
      if ftype == TType.STOP:
8444
        break
8445
      if fid == 1:
8446
        if ftype == TType.STRING:
8447
          self.name = iprot.readString();
8448
        else:
8449
          iprot.skip(ftype)
8450
      else:
8451
        iprot.skip(ftype)
8452
      iprot.readFieldEnd()
8453
    iprot.readStructEnd()
8454
 
8455
  def write(self, oprot):
8456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8458
      return
8459
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8460
    if self.name is not None:
1845 vikas 8461
      oprot.writeFieldBegin('name', TType.STRING, 1)
8462
      oprot.writeString(self.name)
8463
      oprot.writeFieldEnd()
8464
    oprot.writeFieldStop()
8465
    oprot.writeStructEnd()
8466
 
3431 rajveer 8467
  def validate(self):
8468
    return
8469
 
8470
 
1845 vikas 8471
  def __repr__(self):
8472
    L = ['%s=%r' % (key, value)
8473
      for key, value in self.__dict__.iteritems()]
8474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8475
 
8476
  def __eq__(self, other):
8477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8478
 
8479
  def __ne__(self, other):
8480
    return not (self == other)
8481
 
8482
class getAffiliateByName_result:
8483
  """
8484
  Attributes:
8485
   - success
8486
   - utx
8487
  """
8488
 
8489
  thrift_spec = (
8490
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8491
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8492
  )
8493
 
8494
  def __init__(self, success=None, utx=None,):
8495
    self.success = success
8496
    self.utx = utx
8497
 
8498
  def read(self, iprot):
8499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8501
      return
8502
    iprot.readStructBegin()
8503
    while True:
8504
      (fname, ftype, fid) = iprot.readFieldBegin()
8505
      if ftype == TType.STOP:
8506
        break
8507
      if fid == 0:
8508
        if ftype == TType.STRUCT:
8509
          self.success = Affiliate()
8510
          self.success.read(iprot)
8511
        else:
8512
          iprot.skip(ftype)
8513
      elif fid == 1:
8514
        if ftype == TType.STRUCT:
1996 vikas 8515
          self.utx = UserAffiliateException()
1845 vikas 8516
          self.utx.read(iprot)
8517
        else:
8518
          iprot.skip(ftype)
8519
      else:
8520
        iprot.skip(ftype)
8521
      iprot.readFieldEnd()
8522
    iprot.readStructEnd()
8523
 
8524
  def write(self, oprot):
8525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8527
      return
8528
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8529
    if self.success is not None:
1845 vikas 8530
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8531
      self.success.write(oprot)
8532
      oprot.writeFieldEnd()
3431 rajveer 8533
    if self.utx is not None:
1845 vikas 8534
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8535
      self.utx.write(oprot)
8536
      oprot.writeFieldEnd()
8537
    oprot.writeFieldStop()
8538
    oprot.writeStructEnd()
8539
 
3431 rajveer 8540
  def validate(self):
8541
    return
8542
 
8543
 
1845 vikas 8544
  def __repr__(self):
8545
    L = ['%s=%r' % (key, value)
8546
      for key, value in self.__dict__.iteritems()]
8547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8548
 
8549
  def __eq__(self, other):
8550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8551
 
8552
  def __ne__(self, other):
8553
    return not (self == other)
8554
 
1996 vikas 8555
class getTrackerById_args:
1845 vikas 8556
  """
8557
  Attributes:
8558
   - id
8559
  """
8560
 
8561
  thrift_spec = (
8562
    None, # 0
8563
    (1, TType.I64, 'id', None, None, ), # 1
8564
  )
8565
 
8566
  def __init__(self, id=None,):
8567
    self.id = id
8568
 
8569
  def read(self, iprot):
8570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8572
      return
8573
    iprot.readStructBegin()
8574
    while True:
8575
      (fname, ftype, fid) = iprot.readFieldBegin()
8576
      if ftype == TType.STOP:
8577
        break
8578
      if fid == 1:
8579
        if ftype == TType.I64:
8580
          self.id = iprot.readI64();
8581
        else:
8582
          iprot.skip(ftype)
8583
      else:
8584
        iprot.skip(ftype)
8585
      iprot.readFieldEnd()
8586
    iprot.readStructEnd()
8587
 
8588
  def write(self, oprot):
8589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8591
      return
1996 vikas 8592
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8593
    if self.id is not None:
1845 vikas 8594
      oprot.writeFieldBegin('id', TType.I64, 1)
8595
      oprot.writeI64(self.id)
8596
      oprot.writeFieldEnd()
8597
    oprot.writeFieldStop()
8598
    oprot.writeStructEnd()
8599
 
3431 rajveer 8600
  def validate(self):
8601
    return
8602
 
8603
 
1845 vikas 8604
  def __repr__(self):
8605
    L = ['%s=%r' % (key, value)
8606
      for key, value in self.__dict__.iteritems()]
8607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8608
 
8609
  def __eq__(self, other):
8610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8611
 
8612
  def __ne__(self, other):
8613
    return not (self == other)
8614
 
8615
class getTrackerById_result:
8616
  """
8617
  Attributes:
8618
   - success
8619
   - utx
8620
  """
8621
 
8622
  thrift_spec = (
8623
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8624
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8625
  )
8626
 
8627
  def __init__(self, success=None, utx=None,):
8628
    self.success = success
8629
    self.utx = utx
8630
 
8631
  def read(self, iprot):
8632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8634
      return
8635
    iprot.readStructBegin()
8636
    while True:
8637
      (fname, ftype, fid) = iprot.readFieldBegin()
8638
      if ftype == TType.STOP:
8639
        break
8640
      if fid == 0:
8641
        if ftype == TType.STRUCT:
8642
          self.success = Tracker()
8643
          self.success.read(iprot)
8644
        else:
8645
          iprot.skip(ftype)
8646
      elif fid == 1:
8647
        if ftype == TType.STRUCT:
1996 vikas 8648
          self.utx = UserAffiliateException()
1845 vikas 8649
          self.utx.read(iprot)
8650
        else:
8651
          iprot.skip(ftype)
8652
      else:
8653
        iprot.skip(ftype)
8654
      iprot.readFieldEnd()
8655
    iprot.readStructEnd()
8656
 
8657
  def write(self, oprot):
8658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8660
      return
8661
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8662
    if self.success is not None:
1845 vikas 8663
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8664
      self.success.write(oprot)
8665
      oprot.writeFieldEnd()
3431 rajveer 8666
    if self.utx is not None:
1845 vikas 8667
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8668
      self.utx.write(oprot)
8669
      oprot.writeFieldEnd()
8670
    oprot.writeFieldStop()
8671
    oprot.writeStructEnd()
8672
 
3431 rajveer 8673
  def validate(self):
8674
    return
8675
 
8676
 
1845 vikas 8677
  def __repr__(self):
8678
    L = ['%s=%r' % (key, value)
8679
      for key, value in self.__dict__.iteritems()]
8680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8681
 
8682
  def __eq__(self, other):
8683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8684
 
8685
  def __ne__(self, other):
8686
    return not (self == other)
8687
 
1996 vikas 8688
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8689
  """
8690
  Attributes:
1996 vikas 8691
   - id
1845 vikas 8692
  """
8693
 
8694
  thrift_spec = (
8695
    None, # 0
1996 vikas 8696
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8697
  )
8698
 
1996 vikas 8699
  def __init__(self, id=None,):
8700
    self.id = id
1845 vikas 8701
 
8702
  def read(self, iprot):
8703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8705
      return
8706
    iprot.readStructBegin()
8707
    while True:
8708
      (fname, ftype, fid) = iprot.readFieldBegin()
8709
      if ftype == TType.STOP:
8710
        break
8711
      if fid == 1:
8712
        if ftype == TType.I64:
1996 vikas 8713
          self.id = iprot.readI64();
1845 vikas 8714
        else:
8715
          iprot.skip(ftype)
8716
      else:
8717
        iprot.skip(ftype)
8718
      iprot.readFieldEnd()
8719
    iprot.readStructEnd()
8720
 
8721
  def write(self, oprot):
8722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8724
      return
1996 vikas 8725
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8726
    if self.id is not None:
1996 vikas 8727
      oprot.writeFieldBegin('id', TType.I64, 1)
8728
      oprot.writeI64(self.id)
1845 vikas 8729
      oprot.writeFieldEnd()
8730
    oprot.writeFieldStop()
8731
    oprot.writeStructEnd()
8732
 
3431 rajveer 8733
  def validate(self):
8734
    return
8735
 
8736
 
1845 vikas 8737
  def __repr__(self):
8738
    L = ['%s=%r' % (key, value)
8739
      for key, value in self.__dict__.iteritems()]
8740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8741
 
8742
  def __eq__(self, other):
8743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8744
 
8745
  def __ne__(self, other):
8746
    return not (self == other)
8747
 
1996 vikas 8748
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8749
  """
8750
  Attributes:
8751
   - success
8752
   - utx
8753
  """
8754
 
8755
  thrift_spec = (
1996 vikas 8756
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8757
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8758
  )
8759
 
8760
  def __init__(self, success=None, utx=None,):
8761
    self.success = success
8762
    self.utx = utx
8763
 
8764
  def read(self, iprot):
8765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8767
      return
8768
    iprot.readStructBegin()
8769
    while True:
8770
      (fname, ftype, fid) = iprot.readFieldBegin()
8771
      if ftype == TType.STOP:
8772
        break
8773
      if fid == 0:
8774
        if ftype == TType.LIST:
8775
          self.success = []
4668 varun.gupt 8776
          (_etype96, _size93) = iprot.readListBegin()
8777
          for _i97 in xrange(_size93):
8778
            _elem98 = Affiliate()
8779
            _elem98.read(iprot)
8780
            self.success.append(_elem98)
1845 vikas 8781
          iprot.readListEnd()
8782
        else:
8783
          iprot.skip(ftype)
8784
      elif fid == 1:
8785
        if ftype == TType.STRUCT:
1996 vikas 8786
          self.utx = UserAffiliateException()
1845 vikas 8787
          self.utx.read(iprot)
8788
        else:
8789
          iprot.skip(ftype)
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
1996 vikas 8799
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8800
    if self.success is not None:
1845 vikas 8801
      oprot.writeFieldBegin('success', TType.LIST, 0)
8802
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 8803
      for iter99 in self.success:
8804
        iter99.write(oprot)
1845 vikas 8805
      oprot.writeListEnd()
8806
      oprot.writeFieldEnd()
3431 rajveer 8807
    if self.utx is not None:
1845 vikas 8808
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8809
      self.utx.write(oprot)
8810
      oprot.writeFieldEnd()
8811
    oprot.writeFieldStop()
8812
    oprot.writeStructEnd()
8813
 
3431 rajveer 8814
  def validate(self):
8815
    return
8816
 
8817
 
1845 vikas 8818
  def __repr__(self):
8819
    L = ['%s=%r' % (key, value)
8820
      for key, value in self.__dict__.iteritems()]
8821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8822
 
8823
  def __eq__(self, other):
8824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8825
 
8826
  def __ne__(self, other):
8827
    return not (self == other)
8828
 
8829
class addTrackLog_args:
8830
  """
8831
  Attributes:
1996 vikas 8832
   - affiliateId
1845 vikas 8833
   - userId
8834
   - event
8835
   - url
8836
   - data
1859 vikas 8837
   - addedOn
1845 vikas 8838
  """
8839
 
8840
  thrift_spec = (
8841
    None, # 0
1996 vikas 8842
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8843
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8844
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8845
    (4, TType.STRING, 'url', None, None, ), # 4
8846
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8847
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8848
  )
8849
 
1996 vikas 8850
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8851
    self.affiliateId = affiliateId
1845 vikas 8852
    self.userId = userId
8853
    self.event = event
8854
    self.url = url
8855
    self.data = data
1859 vikas 8856
    self.addedOn = addedOn
1845 vikas 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 == 1:
8868
        if ftype == TType.I64:
1996 vikas 8869
          self.affiliateId = iprot.readI64();
1845 vikas 8870
        else:
8871
          iprot.skip(ftype)
8872
      elif fid == 2:
8873
        if ftype == TType.I64:
8874
          self.userId = iprot.readI64();
8875
        else:
8876
          iprot.skip(ftype)
8877
      elif fid == 3:
3378 vikas 8878
        if ftype == TType.I32:
8879
          self.event = iprot.readI32();
1845 vikas 8880
        else:
8881
          iprot.skip(ftype)
8882
      elif fid == 4:
8883
        if ftype == TType.STRING:
8884
          self.url = iprot.readString();
8885
        else:
8886
          iprot.skip(ftype)
8887
      elif fid == 5:
8888
        if ftype == TType.STRING:
8889
          self.data = iprot.readString();
8890
        else:
8891
          iprot.skip(ftype)
1859 vikas 8892
      elif fid == 6:
8893
        if ftype == TType.I64:
8894
          self.addedOn = iprot.readI64();
8895
        else:
8896
          iprot.skip(ftype)
1845 vikas 8897
      else:
8898
        iprot.skip(ftype)
8899
      iprot.readFieldEnd()
8900
    iprot.readStructEnd()
8901
 
8902
  def write(self, oprot):
8903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8905
      return
8906
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8907
    if self.affiliateId is not None:
1996 vikas 8908
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8909
      oprot.writeI64(self.affiliateId)
1845 vikas 8910
      oprot.writeFieldEnd()
3431 rajveer 8911
    if self.userId is not None:
1845 vikas 8912
      oprot.writeFieldBegin('userId', TType.I64, 2)
8913
      oprot.writeI64(self.userId)
8914
      oprot.writeFieldEnd()
3431 rajveer 8915
    if self.event is not None:
3378 vikas 8916
      oprot.writeFieldBegin('event', TType.I32, 3)
8917
      oprot.writeI32(self.event)
1845 vikas 8918
      oprot.writeFieldEnd()
3431 rajveer 8919
    if self.url is not None:
1845 vikas 8920
      oprot.writeFieldBegin('url', TType.STRING, 4)
8921
      oprot.writeString(self.url)
8922
      oprot.writeFieldEnd()
3431 rajveer 8923
    if self.data is not None:
1845 vikas 8924
      oprot.writeFieldBegin('data', TType.STRING, 5)
8925
      oprot.writeString(self.data)
8926
      oprot.writeFieldEnd()
3431 rajveer 8927
    if self.addedOn is not None:
1859 vikas 8928
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8929
      oprot.writeI64(self.addedOn)
8930
      oprot.writeFieldEnd()
1845 vikas 8931
    oprot.writeFieldStop()
8932
    oprot.writeStructEnd()
8933
 
3431 rajveer 8934
  def validate(self):
8935
    return
8936
 
8937
 
1845 vikas 8938
  def __repr__(self):
8939
    L = ['%s=%r' % (key, value)
8940
      for key, value in self.__dict__.iteritems()]
8941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8942
 
8943
  def __eq__(self, other):
8944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8945
 
8946
  def __ne__(self, other):
8947
    return not (self == other)
8948
 
8949
class addTrackLog_result:
8950
  """
8951
  Attributes:
8952
   - success
8953
   - utx
8954
  """
8955
 
8956
  thrift_spec = (
8957
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8958
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8959
  )
8960
 
8961
  def __init__(self, success=None, utx=None,):
8962
    self.success = success
8963
    self.utx = utx
8964
 
8965
  def read(self, iprot):
8966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8968
      return
8969
    iprot.readStructBegin()
8970
    while True:
8971
      (fname, ftype, fid) = iprot.readFieldBegin()
8972
      if ftype == TType.STOP:
8973
        break
8974
      if fid == 0:
8975
        if ftype == TType.I64:
8976
          self.success = iprot.readI64();
8977
        else:
8978
          iprot.skip(ftype)
8979
      elif fid == 1:
8980
        if ftype == TType.STRUCT:
1996 vikas 8981
          self.utx = UserAffiliateException()
1845 vikas 8982
          self.utx.read(iprot)
8983
        else:
8984
          iprot.skip(ftype)
8985
      else:
8986
        iprot.skip(ftype)
8987
      iprot.readFieldEnd()
8988
    iprot.readStructEnd()
8989
 
8990
  def write(self, oprot):
8991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8993
      return
8994
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8995
    if self.success is not None:
1845 vikas 8996
      oprot.writeFieldBegin('success', TType.I64, 0)
8997
      oprot.writeI64(self.success)
8998
      oprot.writeFieldEnd()
3431 rajveer 8999
    if self.utx is not None:
1845 vikas 9000
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9001
      self.utx.write(oprot)
9002
      oprot.writeFieldEnd()
9003
    oprot.writeFieldStop()
9004
    oprot.writeStructEnd()
9005
 
3431 rajveer 9006
  def validate(self):
9007
    return
9008
 
9009
 
1845 vikas 9010
  def __repr__(self):
9011
    L = ['%s=%r' % (key, value)
9012
      for key, value in self.__dict__.iteritems()]
9013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9014
 
9015
  def __eq__(self, other):
9016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9017
 
9018
  def __ne__(self, other):
9019
    return not (self == other)
9020
 
9021
class getTrackLogById_args:
9022
  """
9023
  Attributes:
9024
   - id
9025
  """
9026
 
9027
  thrift_spec = (
9028
    None, # 0
9029
    (1, TType.I64, 'id', None, None, ), # 1
9030
  )
9031
 
9032
  def __init__(self, id=None,):
9033
    self.id = id
9034
 
9035
  def read(self, iprot):
9036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9038
      return
9039
    iprot.readStructBegin()
9040
    while True:
9041
      (fname, ftype, fid) = iprot.readFieldBegin()
9042
      if ftype == TType.STOP:
9043
        break
9044
      if fid == 1:
9045
        if ftype == TType.I64:
9046
          self.id = iprot.readI64();
9047
        else:
9048
          iprot.skip(ftype)
9049
      else:
9050
        iprot.skip(ftype)
9051
      iprot.readFieldEnd()
9052
    iprot.readStructEnd()
9053
 
9054
  def write(self, oprot):
9055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9057
      return
9058
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9059
    if self.id is not None:
1845 vikas 9060
      oprot.writeFieldBegin('id', TType.I64, 1)
9061
      oprot.writeI64(self.id)
9062
      oprot.writeFieldEnd()
9063
    oprot.writeFieldStop()
9064
    oprot.writeStructEnd()
9065
 
3431 rajveer 9066
  def validate(self):
9067
    return
9068
 
9069
 
1845 vikas 9070
  def __repr__(self):
9071
    L = ['%s=%r' % (key, value)
9072
      for key, value in self.__dict__.iteritems()]
9073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9074
 
9075
  def __eq__(self, other):
9076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9077
 
9078
  def __ne__(self, other):
9079
    return not (self == other)
9080
 
9081
class getTrackLogById_result:
9082
  """
9083
  Attributes:
9084
   - success
9085
   - utx
9086
  """
9087
 
9088
  thrift_spec = (
9089
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9090
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9091
  )
9092
 
9093
  def __init__(self, success=None, utx=None,):
9094
    self.success = success
9095
    self.utx = utx
9096
 
9097
  def read(self, iprot):
9098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9100
      return
9101
    iprot.readStructBegin()
9102
    while True:
9103
      (fname, ftype, fid) = iprot.readFieldBegin()
9104
      if ftype == TType.STOP:
9105
        break
9106
      if fid == 0:
9107
        if ftype == TType.STRUCT:
9108
          self.success = TrackLog()
9109
          self.success.read(iprot)
9110
        else:
9111
          iprot.skip(ftype)
9112
      elif fid == 1:
9113
        if ftype == TType.STRUCT:
1996 vikas 9114
          self.utx = UserAffiliateException()
1845 vikas 9115
          self.utx.read(iprot)
9116
        else:
9117
          iprot.skip(ftype)
9118
      else:
9119
        iprot.skip(ftype)
9120
      iprot.readFieldEnd()
9121
    iprot.readStructEnd()
9122
 
9123
  def write(self, oprot):
9124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9126
      return
9127
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9128
    if self.success is not None:
1845 vikas 9129
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9130
      self.success.write(oprot)
9131
      oprot.writeFieldEnd()
3431 rajveer 9132
    if self.utx is not None:
1845 vikas 9133
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9134
      self.utx.write(oprot)
9135
      oprot.writeFieldEnd()
9136
    oprot.writeFieldStop()
9137
    oprot.writeStructEnd()
9138
 
3431 rajveer 9139
  def validate(self):
9140
    return
9141
 
9142
 
1845 vikas 9143
  def __repr__(self):
9144
    L = ['%s=%r' % (key, value)
9145
      for key, value in self.__dict__.iteritems()]
9146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9147
 
9148
  def __eq__(self, other):
9149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9150
 
9151
  def __ne__(self, other):
9152
    return not (self == other)
9153
 
1996 vikas 9154
class getTrackLogsByAffiliate_args:
1845 vikas 9155
  """
9156
  Attributes:
1996 vikas 9157
   - affiliateId
3293 vikas 9158
   - startDate
9159
   - endDate
1845 vikas 9160
  """
9161
 
9162
  thrift_spec = (
9163
    None, # 0
1996 vikas 9164
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9165
    (2, TType.I64, 'startDate', None, None, ), # 2
9166
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9167
  )
9168
 
3293 vikas 9169
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9170
    self.affiliateId = affiliateId
3293 vikas 9171
    self.startDate = startDate
9172
    self.endDate = endDate
1845 vikas 9173
 
9174
  def read(self, iprot):
9175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9177
      return
9178
    iprot.readStructBegin()
9179
    while True:
9180
      (fname, ftype, fid) = iprot.readFieldBegin()
9181
      if ftype == TType.STOP:
9182
        break
9183
      if fid == 1:
9184
        if ftype == TType.I64:
1996 vikas 9185
          self.affiliateId = iprot.readI64();
1845 vikas 9186
        else:
9187
          iprot.skip(ftype)
3293 vikas 9188
      elif fid == 2:
9189
        if ftype == TType.I64:
9190
          self.startDate = iprot.readI64();
9191
        else:
9192
          iprot.skip(ftype)
9193
      elif fid == 3:
9194
        if ftype == TType.I64:
9195
          self.endDate = iprot.readI64();
9196
        else:
9197
          iprot.skip(ftype)
1845 vikas 9198
      else:
9199
        iprot.skip(ftype)
9200
      iprot.readFieldEnd()
9201
    iprot.readStructEnd()
9202
 
9203
  def write(self, oprot):
9204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9206
      return
1996 vikas 9207
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9208
    if self.affiliateId is not None:
1996 vikas 9209
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9210
      oprot.writeI64(self.affiliateId)
1845 vikas 9211
      oprot.writeFieldEnd()
3431 rajveer 9212
    if self.startDate is not None:
3293 vikas 9213
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9214
      oprot.writeI64(self.startDate)
9215
      oprot.writeFieldEnd()
3431 rajveer 9216
    if self.endDate is not None:
3293 vikas 9217
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9218
      oprot.writeI64(self.endDate)
9219
      oprot.writeFieldEnd()
1845 vikas 9220
    oprot.writeFieldStop()
9221
    oprot.writeStructEnd()
9222
 
3431 rajveer 9223
  def validate(self):
9224
    return
9225
 
9226
 
1845 vikas 9227
  def __repr__(self):
9228
    L = ['%s=%r' % (key, value)
9229
      for key, value in self.__dict__.iteritems()]
9230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9231
 
9232
  def __eq__(self, other):
9233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9234
 
9235
  def __ne__(self, other):
9236
    return not (self == other)
9237
 
1996 vikas 9238
class getTrackLogsByAffiliate_result:
1845 vikas 9239
  """
9240
  Attributes:
9241
   - success
9242
   - utx
9243
  """
9244
 
9245
  thrift_spec = (
9246
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9247
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9248
  )
9249
 
9250
  def __init__(self, success=None, utx=None,):
9251
    self.success = success
9252
    self.utx = utx
9253
 
9254
  def read(self, iprot):
9255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9257
      return
9258
    iprot.readStructBegin()
9259
    while True:
9260
      (fname, ftype, fid) = iprot.readFieldBegin()
9261
      if ftype == TType.STOP:
9262
        break
9263
      if fid == 0:
9264
        if ftype == TType.LIST:
9265
          self.success = []
4668 varun.gupt 9266
          (_etype103, _size100) = iprot.readListBegin()
9267
          for _i104 in xrange(_size100):
9268
            _elem105 = TrackLog()
9269
            _elem105.read(iprot)
9270
            self.success.append(_elem105)
1845 vikas 9271
          iprot.readListEnd()
9272
        else:
9273
          iprot.skip(ftype)
9274
      elif fid == 1:
9275
        if ftype == TType.STRUCT:
1996 vikas 9276
          self.utx = UserAffiliateException()
1845 vikas 9277
          self.utx.read(iprot)
9278
        else:
9279
          iprot.skip(ftype)
9280
      else:
9281
        iprot.skip(ftype)
9282
      iprot.readFieldEnd()
9283
    iprot.readStructEnd()
9284
 
9285
  def write(self, oprot):
9286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9288
      return
1996 vikas 9289
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9290
    if self.success is not None:
1845 vikas 9291
      oprot.writeFieldBegin('success', TType.LIST, 0)
9292
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 9293
      for iter106 in self.success:
9294
        iter106.write(oprot)
1845 vikas 9295
      oprot.writeListEnd()
9296
      oprot.writeFieldEnd()
3431 rajveer 9297
    if self.utx is not None:
1845 vikas 9298
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9299
      self.utx.write(oprot)
9300
      oprot.writeFieldEnd()
9301
    oprot.writeFieldStop()
9302
    oprot.writeStructEnd()
9303
 
3431 rajveer 9304
  def validate(self):
9305
    return
9306
 
9307
 
1845 vikas 9308
  def __repr__(self):
9309
    L = ['%s=%r' % (key, value)
9310
      for key, value in self.__dict__.iteritems()]
9311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9312
 
9313
  def __eq__(self, other):
9314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9315
 
9316
  def __ne__(self, other):
9317
    return not (self == other)
9318
 
9319
class getTrackLogsByUser_args:
9320
  """
9321
  Attributes:
9322
   - userId
9323
  """
9324
 
9325
  thrift_spec = (
9326
    None, # 0
9327
    (1, TType.I64, 'userId', None, None, ), # 1
9328
  )
9329
 
9330
  def __init__(self, userId=None,):
9331
    self.userId = userId
9332
 
9333
  def read(self, iprot):
9334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9336
      return
9337
    iprot.readStructBegin()
9338
    while True:
9339
      (fname, ftype, fid) = iprot.readFieldBegin()
9340
      if ftype == TType.STOP:
9341
        break
9342
      if fid == 1:
9343
        if ftype == TType.I64:
9344
          self.userId = iprot.readI64();
9345
        else:
9346
          iprot.skip(ftype)
9347
      else:
9348
        iprot.skip(ftype)
9349
      iprot.readFieldEnd()
9350
    iprot.readStructEnd()
9351
 
9352
  def write(self, oprot):
9353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9355
      return
9356
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9357
    if self.userId is not None:
1845 vikas 9358
      oprot.writeFieldBegin('userId', TType.I64, 1)
9359
      oprot.writeI64(self.userId)
9360
      oprot.writeFieldEnd()
9361
    oprot.writeFieldStop()
9362
    oprot.writeStructEnd()
9363
 
3431 rajveer 9364
  def validate(self):
9365
    return
9366
 
9367
 
1845 vikas 9368
  def __repr__(self):
9369
    L = ['%s=%r' % (key, value)
9370
      for key, value in self.__dict__.iteritems()]
9371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9372
 
9373
  def __eq__(self, other):
9374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9375
 
9376
  def __ne__(self, other):
9377
    return not (self == other)
9378
 
9379
class getTrackLogsByUser_result:
9380
  """
9381
  Attributes:
9382
   - success
9383
   - utx
9384
  """
9385
 
9386
  thrift_spec = (
9387
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9388
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9389
  )
9390
 
9391
  def __init__(self, success=None, utx=None,):
9392
    self.success = success
9393
    self.utx = utx
9394
 
9395
  def read(self, iprot):
9396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9398
      return
9399
    iprot.readStructBegin()
9400
    while True:
9401
      (fname, ftype, fid) = iprot.readFieldBegin()
9402
      if ftype == TType.STOP:
9403
        break
9404
      if fid == 0:
9405
        if ftype == TType.LIST:
9406
          self.success = []
4668 varun.gupt 9407
          (_etype110, _size107) = iprot.readListBegin()
9408
          for _i111 in xrange(_size107):
9409
            _elem112 = TrackLog()
9410
            _elem112.read(iprot)
9411
            self.success.append(_elem112)
1845 vikas 9412
          iprot.readListEnd()
9413
        else:
9414
          iprot.skip(ftype)
9415
      elif fid == 1:
9416
        if ftype == TType.STRUCT:
1996 vikas 9417
          self.utx = UserAffiliateException()
1845 vikas 9418
          self.utx.read(iprot)
9419
        else:
9420
          iprot.skip(ftype)
9421
      else:
9422
        iprot.skip(ftype)
9423
      iprot.readFieldEnd()
9424
    iprot.readStructEnd()
9425
 
9426
  def write(self, oprot):
9427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9429
      return
9430
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9431
    if self.success is not None:
1845 vikas 9432
      oprot.writeFieldBegin('success', TType.LIST, 0)
9433
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 9434
      for iter113 in self.success:
9435
        iter113.write(oprot)
1845 vikas 9436
      oprot.writeListEnd()
9437
      oprot.writeFieldEnd()
3431 rajveer 9438
    if self.utx is not None:
1845 vikas 9439
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9440
      self.utx.write(oprot)
9441
      oprot.writeFieldEnd()
9442
    oprot.writeFieldStop()
9443
    oprot.writeStructEnd()
9444
 
3431 rajveer 9445
  def validate(self):
9446
    return
9447
 
9448
 
1845 vikas 9449
  def __repr__(self):
9450
    L = ['%s=%r' % (key, value)
9451
      for key, value in self.__dict__.iteritems()]
9452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9453
 
9454
  def __eq__(self, other):
9455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9456
 
9457
  def __ne__(self, other):
9458
    return not (self == other)
9459
 
9460
class getTrackLogs_args:
9461
  """
9462
  Attributes:
9463
   - userId
9464
   - event
9465
   - url
9466
  """
9467
 
9468
  thrift_spec = (
9469
    None, # 0
1996 vikas 9470
    (1, TType.I64, 'userId', None, None, ), # 1
9471
    (2, TType.STRING, 'event', None, None, ), # 2
9472
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9473
  )
9474
 
1996 vikas 9475
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9476
    self.userId = userId
9477
    self.event = event
9478
    self.url = url
9479
 
9480
  def read(self, iprot):
9481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9483
      return
9484
    iprot.readStructBegin()
9485
    while True:
9486
      (fname, ftype, fid) = iprot.readFieldBegin()
9487
      if ftype == TType.STOP:
9488
        break
9489
      if fid == 1:
9490
        if ftype == TType.I64:
1996 vikas 9491
          self.userId = iprot.readI64();
1845 vikas 9492
        else:
9493
          iprot.skip(ftype)
9494
      elif fid == 2:
9495
        if ftype == TType.STRING:
9496
          self.event = iprot.readString();
9497
        else:
9498
          iprot.skip(ftype)
1996 vikas 9499
      elif fid == 3:
1845 vikas 9500
        if ftype == TType.STRING:
9501
          self.url = iprot.readString();
9502
        else:
9503
          iprot.skip(ftype)
9504
      else:
9505
        iprot.skip(ftype)
9506
      iprot.readFieldEnd()
9507
    iprot.readStructEnd()
9508
 
9509
  def write(self, oprot):
9510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9512
      return
9513
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9514
    if self.userId is not None:
1996 vikas 9515
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9516
      oprot.writeI64(self.userId)
9517
      oprot.writeFieldEnd()
3431 rajveer 9518
    if self.event is not None:
1996 vikas 9519
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9520
      oprot.writeString(self.event)
9521
      oprot.writeFieldEnd()
3431 rajveer 9522
    if self.url is not None:
1996 vikas 9523
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9524
      oprot.writeString(self.url)
9525
      oprot.writeFieldEnd()
9526
    oprot.writeFieldStop()
9527
    oprot.writeStructEnd()
9528
 
3431 rajveer 9529
  def validate(self):
9530
    return
9531
 
9532
 
1845 vikas 9533
  def __repr__(self):
9534
    L = ['%s=%r' % (key, value)
9535
      for key, value in self.__dict__.iteritems()]
9536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9537
 
9538
  def __eq__(self, other):
9539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9540
 
9541
  def __ne__(self, other):
9542
    return not (self == other)
9543
 
9544
class getTrackLogs_result:
9545
  """
9546
  Attributes:
9547
   - success
9548
   - utx
9549
  """
9550
 
9551
  thrift_spec = (
9552
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9553
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9554
  )
9555
 
9556
  def __init__(self, success=None, utx=None,):
9557
    self.success = success
9558
    self.utx = utx
9559
 
9560
  def read(self, iprot):
9561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9563
      return
9564
    iprot.readStructBegin()
9565
    while True:
9566
      (fname, ftype, fid) = iprot.readFieldBegin()
9567
      if ftype == TType.STOP:
9568
        break
9569
      if fid == 0:
9570
        if ftype == TType.LIST:
9571
          self.success = []
4668 varun.gupt 9572
          (_etype117, _size114) = iprot.readListBegin()
9573
          for _i118 in xrange(_size114):
9574
            _elem119 = TrackLog()
9575
            _elem119.read(iprot)
9576
            self.success.append(_elem119)
1845 vikas 9577
          iprot.readListEnd()
9578
        else:
9579
          iprot.skip(ftype)
9580
      elif fid == 1:
9581
        if ftype == TType.STRUCT:
1996 vikas 9582
          self.utx = UserAffiliateException()
1845 vikas 9583
          self.utx.read(iprot)
9584
        else:
9585
          iprot.skip(ftype)
9586
      else:
9587
        iprot.skip(ftype)
9588
      iprot.readFieldEnd()
9589
    iprot.readStructEnd()
9590
 
9591
  def write(self, oprot):
9592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9594
      return
9595
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9596
    if self.success is not None:
1845 vikas 9597
      oprot.writeFieldBegin('success', TType.LIST, 0)
9598
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 9599
      for iter120 in self.success:
9600
        iter120.write(oprot)
1845 vikas 9601
      oprot.writeListEnd()
9602
      oprot.writeFieldEnd()
3431 rajveer 9603
    if self.utx is not None:
1845 vikas 9604
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9605
      self.utx.write(oprot)
9606
      oprot.writeFieldEnd()
9607
    oprot.writeFieldStop()
9608
    oprot.writeStructEnd()
9609
 
3431 rajveer 9610
  def validate(self):
9611
    return
9612
 
9613
 
1845 vikas 9614
  def __repr__(self):
9615
    L = ['%s=%r' % (key, value)
9616
      for key, value in self.__dict__.iteritems()]
9617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9618
 
9619
  def __eq__(self, other):
9620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9621
 
9622
  def __ne__(self, other):
9623
    return not (self == other)
9624
 
559 chandransh 9625
class createCart_args:
94 ashish 9626
  """
9627
  Attributes:
559 chandransh 9628
   - userId
94 ashish 9629
  """
9630
 
9631
  thrift_spec = (
9632
    None, # 0
559 chandransh 9633
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9634
  )
9635
 
559 chandransh 9636
  def __init__(self, userId=None,):
9637
    self.userId = userId
94 ashish 9638
 
9639
  def read(self, iprot):
9640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9642
      return
9643
    iprot.readStructBegin()
9644
    while True:
9645
      (fname, ftype, fid) = iprot.readFieldBegin()
9646
      if ftype == TType.STOP:
9647
        break
9648
      if fid == 1:
9649
        if ftype == TType.I64:
559 chandransh 9650
          self.userId = iprot.readI64();
94 ashish 9651
        else:
9652
          iprot.skip(ftype)
559 chandransh 9653
      else:
9654
        iprot.skip(ftype)
9655
      iprot.readFieldEnd()
9656
    iprot.readStructEnd()
9657
 
9658
  def write(self, oprot):
9659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9661
      return
9662
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9663
    if self.userId is not None:
559 chandransh 9664
      oprot.writeFieldBegin('userId', TType.I64, 1)
9665
      oprot.writeI64(self.userId)
9666
      oprot.writeFieldEnd()
9667
    oprot.writeFieldStop()
9668
    oprot.writeStructEnd()
9669
 
3431 rajveer 9670
  def validate(self):
9671
    return
9672
 
9673
 
559 chandransh 9674
  def __repr__(self):
9675
    L = ['%s=%r' % (key, value)
9676
      for key, value in self.__dict__.iteritems()]
9677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9678
 
9679
  def __eq__(self, other):
9680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9681
 
9682
  def __ne__(self, other):
9683
    return not (self == other)
9684
 
9685
class createCart_result:
9686
  """
9687
  Attributes:
9688
   - success
9689
   - scx
9690
  """
9691
 
9692
  thrift_spec = (
9693
    (0, TType.I64, 'success', None, None, ), # 0
9694
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9695
  )
9696
 
9697
  def __init__(self, success=None, scx=None,):
9698
    self.success = success
9699
    self.scx = scx
9700
 
9701
  def read(self, iprot):
9702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9704
      return
9705
    iprot.readStructBegin()
9706
    while True:
9707
      (fname, ftype, fid) = iprot.readFieldBegin()
9708
      if ftype == TType.STOP:
9709
        break
9710
      if fid == 0:
94 ashish 9711
        if ftype == TType.I64:
559 chandransh 9712
          self.success = iprot.readI64();
94 ashish 9713
        else:
9714
          iprot.skip(ftype)
559 chandransh 9715
      elif fid == 1:
9716
        if ftype == TType.STRUCT:
9717
          self.scx = ShoppingCartException()
9718
          self.scx.read(iprot)
9719
        else:
9720
          iprot.skip(ftype)
94 ashish 9721
      else:
9722
        iprot.skip(ftype)
9723
      iprot.readFieldEnd()
9724
    iprot.readStructEnd()
9725
 
9726
  def write(self, oprot):
9727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9729
      return
559 chandransh 9730
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9731
    if self.success is not None:
559 chandransh 9732
      oprot.writeFieldBegin('success', TType.I64, 0)
9733
      oprot.writeI64(self.success)
94 ashish 9734
      oprot.writeFieldEnd()
3431 rajveer 9735
    if self.scx is not None:
559 chandransh 9736
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9737
      self.scx.write(oprot)
94 ashish 9738
      oprot.writeFieldEnd()
9739
    oprot.writeFieldStop()
9740
    oprot.writeStructEnd()
9741
 
3431 rajveer 9742
  def validate(self):
9743
    return
9744
 
9745
 
94 ashish 9746
  def __repr__(self):
9747
    L = ['%s=%r' % (key, value)
9748
      for key, value in self.__dict__.iteritems()]
9749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9750
 
9751
  def __eq__(self, other):
9752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9753
 
9754
  def __ne__(self, other):
9755
    return not (self == other)
9756
 
559 chandransh 9757
class getCurrentCart_args:
94 ashish 9758
  """
9759
  Attributes:
559 chandransh 9760
   - userId
9761
  """
9762
 
9763
  thrift_spec = (
9764
    None, # 0
9765
    (1, TType.I64, 'userId', None, None, ), # 1
9766
  )
9767
 
9768
  def __init__(self, userId=None,):
9769
    self.userId = userId
9770
 
9771
  def read(self, iprot):
9772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9774
      return
9775
    iprot.readStructBegin()
9776
    while True:
9777
      (fname, ftype, fid) = iprot.readFieldBegin()
9778
      if ftype == TType.STOP:
9779
        break
9780
      if fid == 1:
9781
        if ftype == TType.I64:
9782
          self.userId = iprot.readI64();
9783
        else:
9784
          iprot.skip(ftype)
9785
      else:
9786
        iprot.skip(ftype)
9787
      iprot.readFieldEnd()
9788
    iprot.readStructEnd()
9789
 
9790
  def write(self, oprot):
9791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9793
      return
9794
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9795
    if self.userId is not None:
559 chandransh 9796
      oprot.writeFieldBegin('userId', TType.I64, 1)
9797
      oprot.writeI64(self.userId)
9798
      oprot.writeFieldEnd()
9799
    oprot.writeFieldStop()
9800
    oprot.writeStructEnd()
9801
 
3431 rajveer 9802
  def validate(self):
9803
    return
9804
 
9805
 
559 chandransh 9806
  def __repr__(self):
9807
    L = ['%s=%r' % (key, value)
9808
      for key, value in self.__dict__.iteritems()]
9809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9810
 
9811
  def __eq__(self, other):
9812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9813
 
9814
  def __ne__(self, other):
9815
    return not (self == other)
9816
 
9817
class getCurrentCart_result:
9818
  """
9819
  Attributes:
94 ashish 9820
   - success
559 chandransh 9821
   - scx
94 ashish 9822
  """
9823
 
9824
  thrift_spec = (
559 chandransh 9825
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9826
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9827
  )
9828
 
559 chandransh 9829
  def __init__(self, success=None, scx=None,):
94 ashish 9830
    self.success = success
559 chandransh 9831
    self.scx = scx
94 ashish 9832
 
9833
  def read(self, iprot):
9834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9836
      return
9837
    iprot.readStructBegin()
9838
    while True:
9839
      (fname, ftype, fid) = iprot.readFieldBegin()
9840
      if ftype == TType.STOP:
9841
        break
9842
      if fid == 0:
559 chandransh 9843
        if ftype == TType.STRUCT:
9844
          self.success = Cart()
9845
          self.success.read(iprot)
94 ashish 9846
        else:
9847
          iprot.skip(ftype)
9848
      elif fid == 1:
9849
        if ftype == TType.STRUCT:
559 chandransh 9850
          self.scx = ShoppingCartException()
9851
          self.scx.read(iprot)
94 ashish 9852
        else:
9853
          iprot.skip(ftype)
9854
      else:
9855
        iprot.skip(ftype)
9856
      iprot.readFieldEnd()
9857
    iprot.readStructEnd()
9858
 
9859
  def write(self, oprot):
9860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9862
      return
559 chandransh 9863
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9864
    if self.success is not None:
559 chandransh 9865
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9866
      self.success.write(oprot)
94 ashish 9867
      oprot.writeFieldEnd()
3431 rajveer 9868
    if self.scx is not None:
559 chandransh 9869
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9870
      self.scx.write(oprot)
94 ashish 9871
      oprot.writeFieldEnd()
9872
    oprot.writeFieldStop()
9873
    oprot.writeStructEnd()
9874
 
3431 rajveer 9875
  def validate(self):
9876
    return
9877
 
9878
 
94 ashish 9879
  def __repr__(self):
9880
    L = ['%s=%r' % (key, value)
9881
      for key, value in self.__dict__.iteritems()]
9882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9883
 
9884
  def __eq__(self, other):
9885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9886
 
9887
  def __ne__(self, other):
9888
    return not (self == other)
9889
 
559 chandransh 9890
class getCart_args:
504 rajveer 9891
  """
9892
  Attributes:
559 chandransh 9893
   - cartId
504 rajveer 9894
  """
9895
 
9896
  thrift_spec = (
9897
    None, # 0
559 chandransh 9898
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9899
  )
9900
 
559 chandransh 9901
  def __init__(self, cartId=None,):
9902
    self.cartId = cartId
504 rajveer 9903
 
9904
  def read(self, iprot):
9905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9907
      return
9908
    iprot.readStructBegin()
9909
    while True:
9910
      (fname, ftype, fid) = iprot.readFieldBegin()
9911
      if ftype == TType.STOP:
9912
        break
9913
      if fid == 1:
9914
        if ftype == TType.I64:
559 chandransh 9915
          self.cartId = iprot.readI64();
504 rajveer 9916
        else:
9917
          iprot.skip(ftype)
9918
      else:
9919
        iprot.skip(ftype)
9920
      iprot.readFieldEnd()
9921
    iprot.readStructEnd()
9922
 
9923
  def write(self, oprot):
9924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9926
      return
559 chandransh 9927
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9928
    if self.cartId is not None:
559 chandransh 9929
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9930
      oprot.writeI64(self.cartId)
504 rajveer 9931
      oprot.writeFieldEnd()
9932
    oprot.writeFieldStop()
9933
    oprot.writeStructEnd()
9934
 
3431 rajveer 9935
  def validate(self):
9936
    return
9937
 
9938
 
504 rajveer 9939
  def __repr__(self):
9940
    L = ['%s=%r' % (key, value)
9941
      for key, value in self.__dict__.iteritems()]
9942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9943
 
9944
  def __eq__(self, other):
9945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9946
 
9947
  def __ne__(self, other):
9948
    return not (self == other)
9949
 
559 chandransh 9950
class getCart_result:
504 rajveer 9951
  """
9952
  Attributes:
9953
   - success
559 chandransh 9954
   - scx
504 rajveer 9955
  """
9956
 
9957
  thrift_spec = (
559 chandransh 9958
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9959
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9960
  )
9961
 
559 chandransh 9962
  def __init__(self, success=None, scx=None,):
504 rajveer 9963
    self.success = success
559 chandransh 9964
    self.scx = scx
504 rajveer 9965
 
9966
  def read(self, iprot):
9967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9969
      return
9970
    iprot.readStructBegin()
9971
    while True:
9972
      (fname, ftype, fid) = iprot.readFieldBegin()
9973
      if ftype == TType.STOP:
9974
        break
9975
      if fid == 0:
559 chandransh 9976
        if ftype == TType.STRUCT:
9977
          self.success = Cart()
9978
          self.success.read(iprot)
504 rajveer 9979
        else:
9980
          iprot.skip(ftype)
9981
      elif fid == 1:
9982
        if ftype == TType.STRUCT:
559 chandransh 9983
          self.scx = ShoppingCartException()
9984
          self.scx.read(iprot)
504 rajveer 9985
        else:
9986
          iprot.skip(ftype)
9987
      else:
9988
        iprot.skip(ftype)
9989
      iprot.readFieldEnd()
9990
    iprot.readStructEnd()
9991
 
9992
  def write(self, oprot):
9993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9995
      return
559 chandransh 9996
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9997
    if self.success is not None:
559 chandransh 9998
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9999
      self.success.write(oprot)
504 rajveer 10000
      oprot.writeFieldEnd()
3431 rajveer 10001
    if self.scx is not None:
559 chandransh 10002
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10003
      self.scx.write(oprot)
504 rajveer 10004
      oprot.writeFieldEnd()
10005
    oprot.writeFieldStop()
10006
    oprot.writeStructEnd()
10007
 
3431 rajveer 10008
  def validate(self):
10009
    return
10010
 
10011
 
504 rajveer 10012
  def __repr__(self):
10013
    L = ['%s=%r' % (key, value)
10014
      for key, value in self.__dict__.iteritems()]
10015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10016
 
10017
  def __eq__(self, other):
10018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10019
 
10020
  def __ne__(self, other):
10021
    return not (self == other)
10022
 
559 chandransh 10023
class getCartsForUser_args:
94 ashish 10024
  """
10025
  Attributes:
559 chandransh 10026
   - userId
10027
   - status
94 ashish 10028
  """
10029
 
10030
  thrift_spec = (
10031
    None, # 0
559 chandransh 10032
    (1, TType.I64, 'userId', None, None, ), # 1
10033
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10034
  )
10035
 
559 chandransh 10036
  def __init__(self, userId=None, status=None,):
10037
    self.userId = userId
10038
    self.status = status
94 ashish 10039
 
10040
  def read(self, iprot):
10041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10043
      return
10044
    iprot.readStructBegin()
10045
    while True:
10046
      (fname, ftype, fid) = iprot.readFieldBegin()
10047
      if ftype == TType.STOP:
10048
        break
10049
      if fid == 1:
10050
        if ftype == TType.I64:
559 chandransh 10051
          self.userId = iprot.readI64();
94 ashish 10052
        else:
10053
          iprot.skip(ftype)
10054
      elif fid == 2:
559 chandransh 10055
        if ftype == TType.I32:
10056
          self.status = iprot.readI32();
94 ashish 10057
        else:
10058
          iprot.skip(ftype)
10059
      else:
10060
        iprot.skip(ftype)
10061
      iprot.readFieldEnd()
10062
    iprot.readStructEnd()
10063
 
10064
  def write(self, oprot):
10065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10067
      return
559 chandransh 10068
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 10069
    if self.userId is not None:
559 chandransh 10070
      oprot.writeFieldBegin('userId', TType.I64, 1)
10071
      oprot.writeI64(self.userId)
94 ashish 10072
      oprot.writeFieldEnd()
3431 rajveer 10073
    if self.status is not None:
559 chandransh 10074
      oprot.writeFieldBegin('status', TType.I32, 2)
10075
      oprot.writeI32(self.status)
94 ashish 10076
      oprot.writeFieldEnd()
10077
    oprot.writeFieldStop()
10078
    oprot.writeStructEnd()
10079
 
3431 rajveer 10080
  def validate(self):
10081
    return
10082
 
10083
 
94 ashish 10084
  def __repr__(self):
10085
    L = ['%s=%r' % (key, value)
10086
      for key, value in self.__dict__.iteritems()]
10087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10088
 
10089
  def __eq__(self, other):
10090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10091
 
10092
  def __ne__(self, other):
10093
    return not (self == other)
10094
 
559 chandransh 10095
class getCartsForUser_result:
94 ashish 10096
  """
10097
  Attributes:
10098
   - success
559 chandransh 10099
   - scx
94 ashish 10100
  """
10101
 
10102
  thrift_spec = (
559 chandransh 10103
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10104
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10105
  )
10106
 
559 chandransh 10107
  def __init__(self, success=None, scx=None,):
94 ashish 10108
    self.success = success
559 chandransh 10109
    self.scx = scx
94 ashish 10110
 
10111
  def read(self, iprot):
10112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10114
      return
10115
    iprot.readStructBegin()
10116
    while True:
10117
      (fname, ftype, fid) = iprot.readFieldBegin()
10118
      if ftype == TType.STOP:
10119
        break
10120
      if fid == 0:
559 chandransh 10121
        if ftype == TType.LIST:
10122
          self.success = []
4668 varun.gupt 10123
          (_etype124, _size121) = iprot.readListBegin()
10124
          for _i125 in xrange(_size121):
10125
            _elem126 = Cart()
10126
            _elem126.read(iprot)
10127
            self.success.append(_elem126)
559 chandransh 10128
          iprot.readListEnd()
94 ashish 10129
        else:
10130
          iprot.skip(ftype)
10131
      elif fid == 1:
10132
        if ftype == TType.STRUCT:
559 chandransh 10133
          self.scx = ShoppingCartException()
10134
          self.scx.read(iprot)
94 ashish 10135
        else:
10136
          iprot.skip(ftype)
10137
      else:
10138
        iprot.skip(ftype)
10139
      iprot.readFieldEnd()
10140
    iprot.readStructEnd()
10141
 
10142
  def write(self, oprot):
10143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10145
      return
559 chandransh 10146
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10147
    if self.success is not None:
559 chandransh 10148
      oprot.writeFieldBegin('success', TType.LIST, 0)
10149
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 10150
      for iter127 in self.success:
10151
        iter127.write(oprot)
559 chandransh 10152
      oprot.writeListEnd()
94 ashish 10153
      oprot.writeFieldEnd()
3431 rajveer 10154
    if self.scx is not None:
559 chandransh 10155
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10156
      self.scx.write(oprot)
94 ashish 10157
      oprot.writeFieldEnd()
10158
    oprot.writeFieldStop()
10159
    oprot.writeStructEnd()
10160
 
3431 rajveer 10161
  def validate(self):
10162
    return
10163
 
10164
 
94 ashish 10165
  def __repr__(self):
10166
    L = ['%s=%r' % (key, value)
10167
      for key, value in self.__dict__.iteritems()]
10168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10169
 
10170
  def __eq__(self, other):
10171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10172
 
10173
  def __ne__(self, other):
10174
    return not (self == other)
10175
 
559 chandransh 10176
class getCartsByStatus_args:
94 ashish 10177
  """
10178
  Attributes:
559 chandransh 10179
   - status
94 ashish 10180
  """
10181
 
10182
  thrift_spec = (
10183
    None, # 0
559 chandransh 10184
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10185
  )
10186
 
559 chandransh 10187
  def __init__(self, status=None,):
10188
    self.status = status
94 ashish 10189
 
10190
  def read(self, iprot):
10191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10193
      return
10194
    iprot.readStructBegin()
10195
    while True:
10196
      (fname, ftype, fid) = iprot.readFieldBegin()
10197
      if ftype == TType.STOP:
10198
        break
10199
      if fid == 1:
559 chandransh 10200
        if ftype == TType.I32:
10201
          self.status = iprot.readI32();
10202
        else:
10203
          iprot.skip(ftype)
10204
      else:
10205
        iprot.skip(ftype)
10206
      iprot.readFieldEnd()
10207
    iprot.readStructEnd()
10208
 
10209
  def write(self, oprot):
10210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10212
      return
10213
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10214
    if self.status is not None:
559 chandransh 10215
      oprot.writeFieldBegin('status', TType.I32, 1)
10216
      oprot.writeI32(self.status)
10217
      oprot.writeFieldEnd()
10218
    oprot.writeFieldStop()
10219
    oprot.writeStructEnd()
10220
 
3431 rajveer 10221
  def validate(self):
10222
    return
10223
 
10224
 
559 chandransh 10225
  def __repr__(self):
10226
    L = ['%s=%r' % (key, value)
10227
      for key, value in self.__dict__.iteritems()]
10228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10229
 
10230
  def __eq__(self, other):
10231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10232
 
10233
  def __ne__(self, other):
10234
    return not (self == other)
10235
 
10236
class getCartsByStatus_result:
10237
  """
10238
  Attributes:
10239
   - success
10240
   - scx
10241
  """
10242
 
10243
  thrift_spec = (
10244
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10245
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10246
  )
10247
 
10248
  def __init__(self, success=None, scx=None,):
10249
    self.success = success
10250
    self.scx = scx
10251
 
10252
  def read(self, iprot):
10253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10255
      return
10256
    iprot.readStructBegin()
10257
    while True:
10258
      (fname, ftype, fid) = iprot.readFieldBegin()
10259
      if ftype == TType.STOP:
10260
        break
10261
      if fid == 0:
10262
        if ftype == TType.LIST:
10263
          self.success = []
4668 varun.gupt 10264
          (_etype131, _size128) = iprot.readListBegin()
10265
          for _i132 in xrange(_size128):
10266
            _elem133 = Cart()
10267
            _elem133.read(iprot)
10268
            self.success.append(_elem133)
559 chandransh 10269
          iprot.readListEnd()
10270
        else:
10271
          iprot.skip(ftype)
10272
      elif fid == 1:
10273
        if ftype == TType.STRUCT:
10274
          self.scx = ShoppingCartException()
10275
          self.scx.read(iprot)
10276
        else:
10277
          iprot.skip(ftype)
10278
      else:
10279
        iprot.skip(ftype)
10280
      iprot.readFieldEnd()
10281
    iprot.readStructEnd()
10282
 
10283
  def write(self, oprot):
10284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10286
      return
10287
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10288
    if self.success is not None:
559 chandransh 10289
      oprot.writeFieldBegin('success', TType.LIST, 0)
10290
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 10291
      for iter134 in self.success:
10292
        iter134.write(oprot)
559 chandransh 10293
      oprot.writeListEnd()
10294
      oprot.writeFieldEnd()
3431 rajveer 10295
    if self.scx is not None:
559 chandransh 10296
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10297
      self.scx.write(oprot)
10298
      oprot.writeFieldEnd()
10299
    oprot.writeFieldStop()
10300
    oprot.writeStructEnd()
10301
 
3431 rajveer 10302
  def validate(self):
10303
    return
10304
 
10305
 
559 chandransh 10306
  def __repr__(self):
10307
    L = ['%s=%r' % (key, value)
10308
      for key, value in self.__dict__.iteritems()]
10309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10310
 
10311
  def __eq__(self, other):
10312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10313
 
10314
  def __ne__(self, other):
10315
    return not (self == other)
10316
 
10317
class getCartsByTime_args:
10318
  """
10319
  Attributes:
10320
   - from_time
10321
   - to_time
10322
   - status
10323
  """
10324
 
10325
  thrift_spec = (
10326
    None, # 0
10327
    (1, TType.I64, 'from_time', None, None, ), # 1
10328
    (2, TType.I64, 'to_time', None, None, ), # 2
10329
    (3, TType.I32, 'status', None, None, ), # 3
10330
  )
10331
 
10332
  def __init__(self, from_time=None, to_time=None, status=None,):
10333
    self.from_time = from_time
10334
    self.to_time = to_time
10335
    self.status = status
10336
 
10337
  def read(self, iprot):
10338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10340
      return
10341
    iprot.readStructBegin()
10342
    while True:
10343
      (fname, ftype, fid) = iprot.readFieldBegin()
10344
      if ftype == TType.STOP:
10345
        break
10346
      if fid == 1:
94 ashish 10347
        if ftype == TType.I64:
559 chandransh 10348
          self.from_time = iprot.readI64();
94 ashish 10349
        else:
10350
          iprot.skip(ftype)
122 ashish 10351
      elif fid == 2:
559 chandransh 10352
        if ftype == TType.I64:
10353
          self.to_time = iprot.readI64();
122 ashish 10354
        else:
10355
          iprot.skip(ftype)
559 chandransh 10356
      elif fid == 3:
10357
        if ftype == TType.I32:
10358
          self.status = iprot.readI32();
10359
        else:
10360
          iprot.skip(ftype)
94 ashish 10361
      else:
10362
        iprot.skip(ftype)
10363
      iprot.readFieldEnd()
10364
    iprot.readStructEnd()
10365
 
10366
  def write(self, oprot):
10367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10369
      return
559 chandransh 10370
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10371
    if self.from_time is not None:
559 chandransh 10372
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10373
      oprot.writeI64(self.from_time)
94 ashish 10374
      oprot.writeFieldEnd()
3431 rajveer 10375
    if self.to_time is not None:
559 chandransh 10376
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10377
      oprot.writeI64(self.to_time)
122 ashish 10378
      oprot.writeFieldEnd()
3431 rajveer 10379
    if self.status is not None:
559 chandransh 10380
      oprot.writeFieldBegin('status', TType.I32, 3)
10381
      oprot.writeI32(self.status)
10382
      oprot.writeFieldEnd()
94 ashish 10383
    oprot.writeFieldStop()
10384
    oprot.writeStructEnd()
10385
 
3431 rajveer 10386
  def validate(self):
10387
    return
10388
 
10389
 
94 ashish 10390
  def __repr__(self):
10391
    L = ['%s=%r' % (key, value)
10392
      for key, value in self.__dict__.iteritems()]
10393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10394
 
10395
  def __eq__(self, other):
10396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10397
 
10398
  def __ne__(self, other):
10399
    return not (self == other)
10400
 
559 chandransh 10401
class getCartsByTime_result:
94 ashish 10402
  """
10403
  Attributes:
10404
   - success
559 chandransh 10405
   - scx
94 ashish 10406
  """
10407
 
10408
  thrift_spec = (
559 chandransh 10409
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10410
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10411
  )
10412
 
559 chandransh 10413
  def __init__(self, success=None, scx=None,):
94 ashish 10414
    self.success = success
559 chandransh 10415
    self.scx = scx
94 ashish 10416
 
10417
  def read(self, iprot):
10418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10420
      return
10421
    iprot.readStructBegin()
10422
    while True:
10423
      (fname, ftype, fid) = iprot.readFieldBegin()
10424
      if ftype == TType.STOP:
10425
        break
10426
      if fid == 0:
559 chandransh 10427
        if ftype == TType.LIST:
10428
          self.success = []
4668 varun.gupt 10429
          (_etype138, _size135) = iprot.readListBegin()
10430
          for _i139 in xrange(_size135):
10431
            _elem140 = Cart()
10432
            _elem140.read(iprot)
10433
            self.success.append(_elem140)
559 chandransh 10434
          iprot.readListEnd()
94 ashish 10435
        else:
10436
          iprot.skip(ftype)
10437
      elif fid == 1:
10438
        if ftype == TType.STRUCT:
559 chandransh 10439
          self.scx = ShoppingCartException()
10440
          self.scx.read(iprot)
94 ashish 10441
        else:
10442
          iprot.skip(ftype)
10443
      else:
10444
        iprot.skip(ftype)
10445
      iprot.readFieldEnd()
10446
    iprot.readStructEnd()
10447
 
10448
  def write(self, oprot):
10449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10451
      return
559 chandransh 10452
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10453
    if self.success is not None:
559 chandransh 10454
      oprot.writeFieldBegin('success', TType.LIST, 0)
10455
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 10456
      for iter141 in self.success:
10457
        iter141.write(oprot)
559 chandransh 10458
      oprot.writeListEnd()
94 ashish 10459
      oprot.writeFieldEnd()
3431 rajveer 10460
    if self.scx is not None:
559 chandransh 10461
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10462
      self.scx.write(oprot)
94 ashish 10463
      oprot.writeFieldEnd()
10464
    oprot.writeFieldStop()
10465
    oprot.writeStructEnd()
10466
 
3431 rajveer 10467
  def validate(self):
10468
    return
10469
 
10470
 
94 ashish 10471
  def __repr__(self):
10472
    L = ['%s=%r' % (key, value)
10473
      for key, value in self.__dict__.iteritems()]
10474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10475
 
10476
  def __eq__(self, other):
10477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10478
 
10479
  def __ne__(self, other):
10480
    return not (self == other)
10481
 
559 chandransh 10482
class changeCartStatus_args:
94 ashish 10483
  """
10484
  Attributes:
559 chandransh 10485
   - cartId
10486
   - status
94 ashish 10487
  """
10488
 
10489
  thrift_spec = (
10490
    None, # 0
559 chandransh 10491
    (1, TType.I64, 'cartId', None, None, ), # 1
10492
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10493
  )
10494
 
559 chandransh 10495
  def __init__(self, cartId=None, status=None,):
10496
    self.cartId = cartId
10497
    self.status = status
94 ashish 10498
 
10499
  def read(self, iprot):
10500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10502
      return
10503
    iprot.readStructBegin()
10504
    while True:
10505
      (fname, ftype, fid) = iprot.readFieldBegin()
10506
      if ftype == TType.STOP:
10507
        break
10508
      if fid == 1:
10509
        if ftype == TType.I64:
559 chandransh 10510
          self.cartId = iprot.readI64();
94 ashish 10511
        else:
10512
          iprot.skip(ftype)
559 chandransh 10513
      elif fid == 2:
10514
        if ftype == TType.I32:
10515
          self.status = iprot.readI32();
10516
        else:
10517
          iprot.skip(ftype)
94 ashish 10518
      else:
10519
        iprot.skip(ftype)
10520
      iprot.readFieldEnd()
10521
    iprot.readStructEnd()
10522
 
10523
  def write(self, oprot):
10524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10526
      return
559 chandransh 10527
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10528
    if self.cartId is not None:
559 chandransh 10529
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10530
      oprot.writeI64(self.cartId)
94 ashish 10531
      oprot.writeFieldEnd()
3431 rajveer 10532
    if self.status is not None:
559 chandransh 10533
      oprot.writeFieldBegin('status', TType.I32, 2)
10534
      oprot.writeI32(self.status)
10535
      oprot.writeFieldEnd()
94 ashish 10536
    oprot.writeFieldStop()
10537
    oprot.writeStructEnd()
10538
 
3431 rajveer 10539
  def validate(self):
10540
    return
10541
 
10542
 
94 ashish 10543
  def __repr__(self):
10544
    L = ['%s=%r' % (key, value)
10545
      for key, value in self.__dict__.iteritems()]
10546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10547
 
10548
  def __eq__(self, other):
10549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10550
 
10551
  def __ne__(self, other):
10552
    return not (self == other)
10553
 
559 chandransh 10554
class changeCartStatus_result:
94 ashish 10555
  """
10556
  Attributes:
559 chandransh 10557
   - scx
10558
  """
10559
 
10560
  thrift_spec = (
10561
    None, # 0
10562
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10563
  )
10564
 
10565
  def __init__(self, scx=None,):
10566
    self.scx = scx
10567
 
10568
  def read(self, iprot):
10569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10571
      return
10572
    iprot.readStructBegin()
10573
    while True:
10574
      (fname, ftype, fid) = iprot.readFieldBegin()
10575
      if ftype == TType.STOP:
10576
        break
10577
      if fid == 1:
10578
        if ftype == TType.STRUCT:
10579
          self.scx = ShoppingCartException()
10580
          self.scx.read(iprot)
10581
        else:
10582
          iprot.skip(ftype)
10583
      else:
10584
        iprot.skip(ftype)
10585
      iprot.readFieldEnd()
10586
    iprot.readStructEnd()
10587
 
10588
  def write(self, oprot):
10589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10591
      return
10592
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10593
    if self.scx is not None:
559 chandransh 10594
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10595
      self.scx.write(oprot)
10596
      oprot.writeFieldEnd()
10597
    oprot.writeFieldStop()
10598
    oprot.writeStructEnd()
10599
 
3431 rajveer 10600
  def validate(self):
10601
    return
10602
 
10603
 
559 chandransh 10604
  def __repr__(self):
10605
    L = ['%s=%r' % (key, value)
10606
      for key, value in self.__dict__.iteritems()]
10607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10608
 
10609
  def __eq__(self, other):
10610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10611
 
10612
  def __ne__(self, other):
10613
    return not (self == other)
10614
 
10615
class addItemToCart_args:
10616
  """
10617
  Attributes:
10618
   - cartId
10619
   - itemId
10620
   - quantity
3557 rajveer 10621
   - sourceId
559 chandransh 10622
  """
10623
 
10624
  thrift_spec = (
10625
    None, # 0
10626
    (1, TType.I64, 'cartId', None, None, ), # 1
10627
    (2, TType.I64, 'itemId', None, None, ), # 2
10628
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10629
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10630
  )
10631
 
3557 rajveer 10632
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10633
    self.cartId = cartId
10634
    self.itemId = itemId
10635
    self.quantity = quantity
3557 rajveer 10636
    self.sourceId = sourceId
559 chandransh 10637
 
10638
  def read(self, iprot):
10639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10641
      return
10642
    iprot.readStructBegin()
10643
    while True:
10644
      (fname, ftype, fid) = iprot.readFieldBegin()
10645
      if ftype == TType.STOP:
10646
        break
10647
      if fid == 1:
10648
        if ftype == TType.I64:
10649
          self.cartId = iprot.readI64();
10650
        else:
10651
          iprot.skip(ftype)
10652
      elif fid == 2:
10653
        if ftype == TType.I64:
10654
          self.itemId = iprot.readI64();
10655
        else:
10656
          iprot.skip(ftype)
10657
      elif fid == 3:
10658
        if ftype == TType.I64:
10659
          self.quantity = iprot.readI64();
10660
        else:
10661
          iprot.skip(ftype)
3557 rajveer 10662
      elif fid == 4:
10663
        if ftype == TType.I64:
10664
          self.sourceId = iprot.readI64();
10665
        else:
10666
          iprot.skip(ftype)
559 chandransh 10667
      else:
10668
        iprot.skip(ftype)
10669
      iprot.readFieldEnd()
10670
    iprot.readStructEnd()
10671
 
10672
  def write(self, oprot):
10673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10675
      return
10676
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10677
    if self.cartId is not None:
559 chandransh 10678
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10679
      oprot.writeI64(self.cartId)
10680
      oprot.writeFieldEnd()
3431 rajveer 10681
    if self.itemId is not None:
559 chandransh 10682
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10683
      oprot.writeI64(self.itemId)
10684
      oprot.writeFieldEnd()
3431 rajveer 10685
    if self.quantity is not None:
559 chandransh 10686
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10687
      oprot.writeI64(self.quantity)
10688
      oprot.writeFieldEnd()
3557 rajveer 10689
    if self.sourceId is not None:
10690
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10691
      oprot.writeI64(self.sourceId)
10692
      oprot.writeFieldEnd()
559 chandransh 10693
    oprot.writeFieldStop()
10694
    oprot.writeStructEnd()
10695
 
3431 rajveer 10696
  def validate(self):
10697
    return
10698
 
10699
 
559 chandransh 10700
  def __repr__(self):
10701
    L = ['%s=%r' % (key, value)
10702
      for key, value in self.__dict__.iteritems()]
10703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10704
 
10705
  def __eq__(self, other):
10706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10707
 
10708
  def __ne__(self, other):
10709
    return not (self == other)
10710
 
10711
class addItemToCart_result:
10712
  """
10713
  Attributes:
2035 rajveer 10714
   - success
559 chandransh 10715
   - scx
10716
  """
10717
 
10718
  thrift_spec = (
2035 rajveer 10719
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10720
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10721
  )
10722
 
2035 rajveer 10723
  def __init__(self, success=None, scx=None,):
10724
    self.success = success
559 chandransh 10725
    self.scx = scx
10726
 
10727
  def read(self, iprot):
10728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10730
      return
10731
    iprot.readStructBegin()
10732
    while True:
10733
      (fname, ftype, fid) = iprot.readFieldBegin()
10734
      if ftype == TType.STOP:
10735
        break
2035 rajveer 10736
      if fid == 0:
10737
        if ftype == TType.STRING:
10738
          self.success = iprot.readString();
10739
        else:
10740
          iprot.skip(ftype)
10741
      elif fid == 1:
559 chandransh 10742
        if ftype == TType.STRUCT:
10743
          self.scx = ShoppingCartException()
10744
          self.scx.read(iprot)
10745
        else:
10746
          iprot.skip(ftype)
10747
      else:
10748
        iprot.skip(ftype)
10749
      iprot.readFieldEnd()
10750
    iprot.readStructEnd()
10751
 
10752
  def write(self, oprot):
10753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10755
      return
10756
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10757
    if self.success is not None:
2035 rajveer 10758
      oprot.writeFieldBegin('success', TType.STRING, 0)
10759
      oprot.writeString(self.success)
10760
      oprot.writeFieldEnd()
3431 rajveer 10761
    if self.scx is not None:
559 chandransh 10762
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10763
      self.scx.write(oprot)
10764
      oprot.writeFieldEnd()
10765
    oprot.writeFieldStop()
10766
    oprot.writeStructEnd()
10767
 
3431 rajveer 10768
  def validate(self):
10769
    return
10770
 
10771
 
559 chandransh 10772
  def __repr__(self):
10773
    L = ['%s=%r' % (key, value)
10774
      for key, value in self.__dict__.iteritems()]
10775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10776
 
10777
  def __eq__(self, other):
10778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10779
 
10780
  def __ne__(self, other):
10781
    return not (self == other)
10782
 
10783
class deleteItemFromCart_args:
10784
  """
10785
  Attributes:
10786
   - cartId
10787
   - itemId
10788
  """
10789
 
10790
  thrift_spec = (
10791
    None, # 0
10792
    (1, TType.I64, 'cartId', None, None, ), # 1
10793
    (2, TType.I64, 'itemId', None, None, ), # 2
10794
  )
10795
 
10796
  def __init__(self, cartId=None, itemId=None,):
10797
    self.cartId = cartId
10798
    self.itemId = itemId
10799
 
10800
  def read(self, iprot):
10801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10803
      return
10804
    iprot.readStructBegin()
10805
    while True:
10806
      (fname, ftype, fid) = iprot.readFieldBegin()
10807
      if ftype == TType.STOP:
10808
        break
10809
      if fid == 1:
10810
        if ftype == TType.I64:
10811
          self.cartId = iprot.readI64();
10812
        else:
10813
          iprot.skip(ftype)
10814
      elif fid == 2:
10815
        if ftype == TType.I64:
10816
          self.itemId = iprot.readI64();
10817
        else:
10818
          iprot.skip(ftype)
10819
      else:
10820
        iprot.skip(ftype)
10821
      iprot.readFieldEnd()
10822
    iprot.readStructEnd()
10823
 
10824
  def write(self, oprot):
10825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10827
      return
10828
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10829
    if self.cartId is not None:
559 chandransh 10830
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10831
      oprot.writeI64(self.cartId)
10832
      oprot.writeFieldEnd()
3431 rajveer 10833
    if self.itemId is not None:
559 chandransh 10834
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10835
      oprot.writeI64(self.itemId)
10836
      oprot.writeFieldEnd()
10837
    oprot.writeFieldStop()
10838
    oprot.writeStructEnd()
10839
 
3431 rajveer 10840
  def validate(self):
10841
    return
10842
 
10843
 
559 chandransh 10844
  def __repr__(self):
10845
    L = ['%s=%r' % (key, value)
10846
      for key, value in self.__dict__.iteritems()]
10847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10848
 
10849
  def __eq__(self, other):
10850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10851
 
10852
  def __ne__(self, other):
10853
    return not (self == other)
10854
 
10855
class deleteItemFromCart_result:
10856
  """
10857
  Attributes:
10858
   - scx
10859
  """
10860
 
10861
  thrift_spec = (
10862
    None, # 0
10863
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10864
  )
10865
 
10866
  def __init__(self, scx=None,):
10867
    self.scx = scx
10868
 
10869
  def read(self, iprot):
10870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10872
      return
10873
    iprot.readStructBegin()
10874
    while True:
10875
      (fname, ftype, fid) = iprot.readFieldBegin()
10876
      if ftype == TType.STOP:
10877
        break
10878
      if fid == 1:
10879
        if ftype == TType.STRUCT:
10880
          self.scx = ShoppingCartException()
10881
          self.scx.read(iprot)
10882
        else:
10883
          iprot.skip(ftype)
10884
      else:
10885
        iprot.skip(ftype)
10886
      iprot.readFieldEnd()
10887
    iprot.readStructEnd()
10888
 
10889
  def write(self, oprot):
10890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10892
      return
10893
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10894
    if self.scx is not None:
559 chandransh 10895
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10896
      self.scx.write(oprot)
10897
      oprot.writeFieldEnd()
10898
    oprot.writeFieldStop()
10899
    oprot.writeStructEnd()
10900
 
3431 rajveer 10901
  def validate(self):
10902
    return
10903
 
10904
 
559 chandransh 10905
  def __repr__(self):
10906
    L = ['%s=%r' % (key, value)
10907
      for key, value in self.__dict__.iteritems()]
10908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10909
 
10910
  def __eq__(self, other):
10911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10912
 
10913
  def __ne__(self, other):
10914
    return not (self == other)
10915
 
10916
class changeItemStatus_args:
10917
  """
10918
  Attributes:
10919
   - cartId
10920
   - itemId
10921
   - status
10922
  """
10923
 
10924
  thrift_spec = (
10925
    None, # 0
10926
    (1, TType.I64, 'cartId', None, None, ), # 1
10927
    (2, TType.I64, 'itemId', None, None, ), # 2
10928
    (3, TType.I32, 'status', None, None, ), # 3
10929
  )
10930
 
10931
  def __init__(self, cartId=None, itemId=None, status=None,):
10932
    self.cartId = cartId
10933
    self.itemId = itemId
10934
    self.status = status
10935
 
10936
  def read(self, iprot):
10937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10939
      return
10940
    iprot.readStructBegin()
10941
    while True:
10942
      (fname, ftype, fid) = iprot.readFieldBegin()
10943
      if ftype == TType.STOP:
10944
        break
10945
      if fid == 1:
10946
        if ftype == TType.I64:
10947
          self.cartId = iprot.readI64();
10948
        else:
10949
          iprot.skip(ftype)
10950
      elif fid == 2:
10951
        if ftype == TType.I64:
10952
          self.itemId = iprot.readI64();
10953
        else:
10954
          iprot.skip(ftype)
10955
      elif fid == 3:
10956
        if ftype == TType.I32:
10957
          self.status = iprot.readI32();
10958
        else:
10959
          iprot.skip(ftype)
10960
      else:
10961
        iprot.skip(ftype)
10962
      iprot.readFieldEnd()
10963
    iprot.readStructEnd()
10964
 
10965
  def write(self, oprot):
10966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10968
      return
10969
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10970
    if self.cartId is not None:
559 chandransh 10971
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10972
      oprot.writeI64(self.cartId)
10973
      oprot.writeFieldEnd()
3431 rajveer 10974
    if self.itemId is not None:
559 chandransh 10975
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10976
      oprot.writeI64(self.itemId)
10977
      oprot.writeFieldEnd()
3431 rajveer 10978
    if self.status is not None:
559 chandransh 10979
      oprot.writeFieldBegin('status', TType.I32, 3)
10980
      oprot.writeI32(self.status)
10981
      oprot.writeFieldEnd()
10982
    oprot.writeFieldStop()
10983
    oprot.writeStructEnd()
10984
 
3431 rajveer 10985
  def validate(self):
10986
    return
10987
 
10988
 
559 chandransh 10989
  def __repr__(self):
10990
    L = ['%s=%r' % (key, value)
10991
      for key, value in self.__dict__.iteritems()]
10992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10993
 
10994
  def __eq__(self, other):
10995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10996
 
10997
  def __ne__(self, other):
10998
    return not (self == other)
10999
 
11000
class changeItemStatus_result:
11001
  """
11002
  Attributes:
11003
   - scx
11004
  """
11005
 
11006
  thrift_spec = (
11007
    None, # 0
11008
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11009
  )
11010
 
11011
  def __init__(self, scx=None,):
11012
    self.scx = scx
11013
 
11014
  def read(self, iprot):
11015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11017
      return
11018
    iprot.readStructBegin()
11019
    while True:
11020
      (fname, ftype, fid) = iprot.readFieldBegin()
11021
      if ftype == TType.STOP:
11022
        break
11023
      if fid == 1:
11024
        if ftype == TType.STRUCT:
11025
          self.scx = ShoppingCartException()
11026
          self.scx.read(iprot)
11027
        else:
11028
          iprot.skip(ftype)
11029
      else:
11030
        iprot.skip(ftype)
11031
      iprot.readFieldEnd()
11032
    iprot.readStructEnd()
11033
 
11034
  def write(self, oprot):
11035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11037
      return
11038
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11039
    if self.scx is not None:
559 chandransh 11040
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11041
      self.scx.write(oprot)
11042
      oprot.writeFieldEnd()
11043
    oprot.writeFieldStop()
11044
    oprot.writeStructEnd()
11045
 
3431 rajveer 11046
  def validate(self):
11047
    return
11048
 
11049
 
559 chandransh 11050
  def __repr__(self):
11051
    L = ['%s=%r' % (key, value)
11052
      for key, value in self.__dict__.iteritems()]
11053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11054
 
11055
  def __eq__(self, other):
11056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11057
 
11058
  def __ne__(self, other):
11059
    return not (self == other)
11060
 
11061
class addAddressToCart_args:
11062
  """
11063
  Attributes:
11064
   - cartId
11065
   - addressId
11066
  """
11067
 
11068
  thrift_spec = (
11069
    None, # 0
11070
    (1, TType.I64, 'cartId', None, None, ), # 1
11071
    (2, TType.I64, 'addressId', None, None, ), # 2
11072
  )
11073
 
11074
  def __init__(self, cartId=None, addressId=None,):
11075
    self.cartId = cartId
11076
    self.addressId = addressId
11077
 
11078
  def read(self, iprot):
11079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11081
      return
11082
    iprot.readStructBegin()
11083
    while True:
11084
      (fname, ftype, fid) = iprot.readFieldBegin()
11085
      if ftype == TType.STOP:
11086
        break
11087
      if fid == 1:
11088
        if ftype == TType.I64:
11089
          self.cartId = iprot.readI64();
11090
        else:
11091
          iprot.skip(ftype)
11092
      elif fid == 2:
11093
        if ftype == TType.I64:
11094
          self.addressId = iprot.readI64();
11095
        else:
11096
          iprot.skip(ftype)
11097
      else:
11098
        iprot.skip(ftype)
11099
      iprot.readFieldEnd()
11100
    iprot.readStructEnd()
11101
 
11102
  def write(self, oprot):
11103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11105
      return
11106
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11107
    if self.cartId is not None:
559 chandransh 11108
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11109
      oprot.writeI64(self.cartId)
11110
      oprot.writeFieldEnd()
3431 rajveer 11111
    if self.addressId is not None:
559 chandransh 11112
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11113
      oprot.writeI64(self.addressId)
11114
      oprot.writeFieldEnd()
11115
    oprot.writeFieldStop()
11116
    oprot.writeStructEnd()
11117
 
3431 rajveer 11118
  def validate(self):
11119
    return
11120
 
11121
 
559 chandransh 11122
  def __repr__(self):
11123
    L = ['%s=%r' % (key, value)
11124
      for key, value in self.__dict__.iteritems()]
11125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11126
 
11127
  def __eq__(self, other):
11128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11129
 
11130
  def __ne__(self, other):
11131
    return not (self == other)
11132
 
11133
class addAddressToCart_result:
575 chandransh 11134
  """
11135
  Attributes:
11136
   - scx
11137
  """
559 chandransh 11138
 
11139
  thrift_spec = (
575 chandransh 11140
    None, # 0
11141
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11142
  )
11143
 
575 chandransh 11144
  def __init__(self, scx=None,):
11145
    self.scx = scx
11146
 
559 chandransh 11147
  def read(self, iprot):
11148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11150
      return
11151
    iprot.readStructBegin()
11152
    while True:
11153
      (fname, ftype, fid) = iprot.readFieldBegin()
11154
      if ftype == TType.STOP:
11155
        break
575 chandransh 11156
      if fid == 1:
11157
        if ftype == TType.STRUCT:
11158
          self.scx = ShoppingCartException()
11159
          self.scx.read(iprot)
11160
        else:
11161
          iprot.skip(ftype)
559 chandransh 11162
      else:
11163
        iprot.skip(ftype)
11164
      iprot.readFieldEnd()
11165
    iprot.readStructEnd()
11166
 
11167
  def write(self, oprot):
11168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11170
      return
11171
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11172
    if self.scx is not None:
575 chandransh 11173
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11174
      self.scx.write(oprot)
11175
      oprot.writeFieldEnd()
559 chandransh 11176
    oprot.writeFieldStop()
11177
    oprot.writeStructEnd()
11178
 
3431 rajveer 11179
  def validate(self):
11180
    return
11181
 
11182
 
559 chandransh 11183
  def __repr__(self):
11184
    L = ['%s=%r' % (key, value)
11185
      for key, value in self.__dict__.iteritems()]
11186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11187
 
11188
  def __eq__(self, other):
11189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11190
 
11191
  def __ne__(self, other):
11192
    return not (self == other)
11193
 
1976 varun.gupt 11194
class applyCouponToCart_args:
11195
  """
11196
  Attributes:
11197
   - cartId
11198
   - couponCode
11199
   - totalPrice
11200
   - discountedPrice
11201
  """
11202
 
11203
  thrift_spec = (
11204
    None, # 0
11205
    (1, TType.I64, 'cartId', None, None, ), # 1
11206
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11207
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11208
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11209
  )
11210
 
11211
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11212
    self.cartId = cartId
11213
    self.couponCode = couponCode
11214
    self.totalPrice = totalPrice
11215
    self.discountedPrice = discountedPrice
11216
 
11217
  def read(self, iprot):
11218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11220
      return
11221
    iprot.readStructBegin()
11222
    while True:
11223
      (fname, ftype, fid) = iprot.readFieldBegin()
11224
      if ftype == TType.STOP:
11225
        break
11226
      if fid == 1:
11227
        if ftype == TType.I64:
11228
          self.cartId = iprot.readI64();
11229
        else:
11230
          iprot.skip(ftype)
11231
      elif fid == 2:
11232
        if ftype == TType.STRING:
11233
          self.couponCode = iprot.readString();
11234
        else:
11235
          iprot.skip(ftype)
11236
      elif fid == 3:
11237
        if ftype == TType.DOUBLE:
11238
          self.totalPrice = iprot.readDouble();
11239
        else:
11240
          iprot.skip(ftype)
11241
      elif fid == 4:
11242
        if ftype == TType.DOUBLE:
11243
          self.discountedPrice = iprot.readDouble();
11244
        else:
11245
          iprot.skip(ftype)
11246
      else:
11247
        iprot.skip(ftype)
11248
      iprot.readFieldEnd()
11249
    iprot.readStructEnd()
11250
 
11251
  def write(self, oprot):
11252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11254
      return
11255
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11256
    if self.cartId is not None:
1976 varun.gupt 11257
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11258
      oprot.writeI64(self.cartId)
11259
      oprot.writeFieldEnd()
3431 rajveer 11260
    if self.couponCode is not None:
1976 varun.gupt 11261
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11262
      oprot.writeString(self.couponCode)
11263
      oprot.writeFieldEnd()
3431 rajveer 11264
    if self.totalPrice is not None:
1976 varun.gupt 11265
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11266
      oprot.writeDouble(self.totalPrice)
11267
      oprot.writeFieldEnd()
3431 rajveer 11268
    if self.discountedPrice is not None:
1976 varun.gupt 11269
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11270
      oprot.writeDouble(self.discountedPrice)
11271
      oprot.writeFieldEnd()
11272
    oprot.writeFieldStop()
11273
    oprot.writeStructEnd()
11274
 
3431 rajveer 11275
  def validate(self):
11276
    return
11277
 
11278
 
1976 varun.gupt 11279
  def __repr__(self):
11280
    L = ['%s=%r' % (key, value)
11281
      for key, value in self.__dict__.iteritems()]
11282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11283
 
11284
  def __eq__(self, other):
11285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11286
 
11287
  def __ne__(self, other):
11288
    return not (self == other)
11289
 
11290
class applyCouponToCart_result:
11291
  """
11292
  Attributes:
11293
   - scx
11294
  """
11295
 
11296
  thrift_spec = (
11297
    None, # 0
11298
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11299
  )
11300
 
11301
  def __init__(self, scx=None,):
11302
    self.scx = scx
11303
 
11304
  def read(self, iprot):
11305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11307
      return
11308
    iprot.readStructBegin()
11309
    while True:
11310
      (fname, ftype, fid) = iprot.readFieldBegin()
11311
      if ftype == TType.STOP:
11312
        break
11313
      if fid == 1:
11314
        if ftype == TType.STRUCT:
11315
          self.scx = ShoppingCartException()
11316
          self.scx.read(iprot)
11317
        else:
11318
          iprot.skip(ftype)
11319
      else:
11320
        iprot.skip(ftype)
11321
      iprot.readFieldEnd()
11322
    iprot.readStructEnd()
11323
 
11324
  def write(self, oprot):
11325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11327
      return
11328
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11329
    if self.scx is not None:
1976 varun.gupt 11330
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11331
      self.scx.write(oprot)
11332
      oprot.writeFieldEnd()
11333
    oprot.writeFieldStop()
11334
    oprot.writeStructEnd()
11335
 
3431 rajveer 11336
  def validate(self):
11337
    return
11338
 
11339
 
1976 varun.gupt 11340
  def __repr__(self):
11341
    L = ['%s=%r' % (key, value)
11342
      for key, value in self.__dict__.iteritems()]
11343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11344
 
11345
  def __eq__(self, other):
11346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11347
 
11348
  def __ne__(self, other):
11349
    return not (self == other)
11350
 
11351
class removeCoupon_args:
11352
  """
11353
  Attributes:
11354
   - cartId
11355
  """
11356
 
11357
  thrift_spec = (
11358
    None, # 0
11359
    (1, TType.I64, 'cartId', None, None, ), # 1
11360
  )
11361
 
11362
  def __init__(self, cartId=None,):
11363
    self.cartId = cartId
11364
 
11365
  def read(self, iprot):
11366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11368
      return
11369
    iprot.readStructBegin()
11370
    while True:
11371
      (fname, ftype, fid) = iprot.readFieldBegin()
11372
      if ftype == TType.STOP:
11373
        break
11374
      if fid == 1:
11375
        if ftype == TType.I64:
11376
          self.cartId = iprot.readI64();
11377
        else:
11378
          iprot.skip(ftype)
11379
      else:
11380
        iprot.skip(ftype)
11381
      iprot.readFieldEnd()
11382
    iprot.readStructEnd()
11383
 
11384
  def write(self, oprot):
11385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11387
      return
11388
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11389
    if self.cartId is not None:
1976 varun.gupt 11390
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11391
      oprot.writeI64(self.cartId)
11392
      oprot.writeFieldEnd()
11393
    oprot.writeFieldStop()
11394
    oprot.writeStructEnd()
11395
 
3431 rajveer 11396
  def validate(self):
11397
    return
11398
 
11399
 
1976 varun.gupt 11400
  def __repr__(self):
11401
    L = ['%s=%r' % (key, value)
11402
      for key, value in self.__dict__.iteritems()]
11403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11404
 
11405
  def __eq__(self, other):
11406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11407
 
11408
  def __ne__(self, other):
11409
    return not (self == other)
11410
 
11411
class removeCoupon_result:
11412
  """
11413
  Attributes:
11414
   - scx
11415
  """
11416
 
11417
  thrift_spec = (
11418
    None, # 0
11419
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11420
  )
11421
 
11422
  def __init__(self, scx=None,):
11423
    self.scx = scx
11424
 
11425
  def read(self, iprot):
11426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11428
      return
11429
    iprot.readStructBegin()
11430
    while True:
11431
      (fname, ftype, fid) = iprot.readFieldBegin()
11432
      if ftype == TType.STOP:
11433
        break
11434
      if fid == 1:
11435
        if ftype == TType.STRUCT:
11436
          self.scx = ShoppingCartException()
11437
          self.scx.read(iprot)
11438
        else:
11439
          iprot.skip(ftype)
11440
      else:
11441
        iprot.skip(ftype)
11442
      iprot.readFieldEnd()
11443
    iprot.readStructEnd()
11444
 
11445
  def write(self, oprot):
11446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11448
      return
11449
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11450
    if self.scx is not None:
1976 varun.gupt 11451
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11452
      self.scx.write(oprot)
11453
      oprot.writeFieldEnd()
11454
    oprot.writeFieldStop()
11455
    oprot.writeStructEnd()
11456
 
3431 rajveer 11457
  def validate(self):
11458
    return
11459
 
11460
 
1976 varun.gupt 11461
  def __repr__(self):
11462
    L = ['%s=%r' % (key, value)
11463
      for key, value in self.__dict__.iteritems()]
11464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11465
 
11466
  def __eq__(self, other):
11467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11468
 
11469
  def __ne__(self, other):
11470
    return not (self == other)
11471
 
3554 varun.gupt 11472
class deleteDiscountsFromCart_args:
11473
  """
11474
  Attributes:
11475
   - cartId
11476
  """
11477
 
11478
  thrift_spec = (
11479
    None, # 0
11480
    (1, TType.I64, 'cartId', None, None, ), # 1
11481
  )
11482
 
11483
  def __init__(self, cartId=None,):
11484
    self.cartId = cartId
11485
 
11486
  def read(self, iprot):
11487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11489
      return
11490
    iprot.readStructBegin()
11491
    while True:
11492
      (fname, ftype, fid) = iprot.readFieldBegin()
11493
      if ftype == TType.STOP:
11494
        break
11495
      if fid == 1:
11496
        if ftype == TType.I64:
11497
          self.cartId = iprot.readI64();
11498
        else:
11499
          iprot.skip(ftype)
11500
      else:
11501
        iprot.skip(ftype)
11502
      iprot.readFieldEnd()
11503
    iprot.readStructEnd()
11504
 
11505
  def write(self, oprot):
11506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11508
      return
11509
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11510
    if self.cartId is not None:
11511
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11512
      oprot.writeI64(self.cartId)
11513
      oprot.writeFieldEnd()
11514
    oprot.writeFieldStop()
11515
    oprot.writeStructEnd()
11516
 
11517
  def validate(self):
11518
    return
11519
 
11520
 
11521
  def __repr__(self):
11522
    L = ['%s=%r' % (key, value)
11523
      for key, value in self.__dict__.iteritems()]
11524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11525
 
11526
  def __eq__(self, other):
11527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11528
 
11529
  def __ne__(self, other):
11530
    return not (self == other)
11531
 
11532
class deleteDiscountsFromCart_result:
11533
  """
11534
  Attributes:
11535
   - scx
11536
  """
11537
 
11538
  thrift_spec = (
11539
    None, # 0
11540
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11541
  )
11542
 
11543
  def __init__(self, scx=None,):
11544
    self.scx = scx
11545
 
11546
  def read(self, iprot):
11547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11549
      return
11550
    iprot.readStructBegin()
11551
    while True:
11552
      (fname, ftype, fid) = iprot.readFieldBegin()
11553
      if ftype == TType.STOP:
11554
        break
11555
      if fid == 1:
11556
        if ftype == TType.STRUCT:
11557
          self.scx = ShoppingCartException()
11558
          self.scx.read(iprot)
11559
        else:
11560
          iprot.skip(ftype)
11561
      else:
11562
        iprot.skip(ftype)
11563
      iprot.readFieldEnd()
11564
    iprot.readStructEnd()
11565
 
11566
  def write(self, oprot):
11567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11569
      return
11570
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11571
    if self.scx is not None:
11572
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11573
      self.scx.write(oprot)
11574
      oprot.writeFieldEnd()
11575
    oprot.writeFieldStop()
11576
    oprot.writeStructEnd()
11577
 
11578
  def validate(self):
11579
    return
11580
 
11581
 
11582
  def __repr__(self):
11583
    L = ['%s=%r' % (key, value)
11584
      for key, value in self.__dict__.iteritems()]
11585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11586
 
11587
  def __eq__(self, other):
11588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11589
 
11590
  def __ne__(self, other):
11591
    return not (self == other)
11592
 
11593
class saveDiscounts_args:
11594
  """
11595
  Attributes:
11596
   - discounts
11597
  """
11598
 
11599
  thrift_spec = (
11600
    None, # 0
11601
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11602
  )
11603
 
11604
  def __init__(self, discounts=None,):
11605
    self.discounts = discounts
11606
 
11607
  def read(self, iprot):
11608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11610
      return
11611
    iprot.readStructBegin()
11612
    while True:
11613
      (fname, ftype, fid) = iprot.readFieldBegin()
11614
      if ftype == TType.STOP:
11615
        break
11616
      if fid == 1:
11617
        if ftype == TType.LIST:
11618
          self.discounts = []
4668 varun.gupt 11619
          (_etype145, _size142) = iprot.readListBegin()
11620
          for _i146 in xrange(_size142):
11621
            _elem147 = Discount()
11622
            _elem147.read(iprot)
11623
            self.discounts.append(_elem147)
3554 varun.gupt 11624
          iprot.readListEnd()
11625
        else:
11626
          iprot.skip(ftype)
11627
      else:
11628
        iprot.skip(ftype)
11629
      iprot.readFieldEnd()
11630
    iprot.readStructEnd()
11631
 
11632
  def write(self, oprot):
11633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11635
      return
11636
    oprot.writeStructBegin('saveDiscounts_args')
11637
    if self.discounts is not None:
11638
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11639
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
4668 varun.gupt 11640
      for iter148 in self.discounts:
11641
        iter148.write(oprot)
3554 varun.gupt 11642
      oprot.writeListEnd()
11643
      oprot.writeFieldEnd()
11644
    oprot.writeFieldStop()
11645
    oprot.writeStructEnd()
11646
 
11647
  def validate(self):
11648
    return
11649
 
11650
 
11651
  def __repr__(self):
11652
    L = ['%s=%r' % (key, value)
11653
      for key, value in self.__dict__.iteritems()]
11654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11655
 
11656
  def __eq__(self, other):
11657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11658
 
11659
  def __ne__(self, other):
11660
    return not (self == other)
11661
 
11662
class saveDiscounts_result:
11663
  """
11664
  Attributes:
11665
   - scx
11666
  """
11667
 
11668
  thrift_spec = (
11669
    None, # 0
11670
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11671
  )
11672
 
11673
  def __init__(self, scx=None,):
11674
    self.scx = scx
11675
 
11676
  def read(self, iprot):
11677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11679
      return
11680
    iprot.readStructBegin()
11681
    while True:
11682
      (fname, ftype, fid) = iprot.readFieldBegin()
11683
      if ftype == TType.STOP:
11684
        break
11685
      if fid == 1:
11686
        if ftype == TType.STRUCT:
11687
          self.scx = ShoppingCartException()
11688
          self.scx.read(iprot)
11689
        else:
11690
          iprot.skip(ftype)
11691
      else:
11692
        iprot.skip(ftype)
11693
      iprot.readFieldEnd()
11694
    iprot.readStructEnd()
11695
 
11696
  def write(self, oprot):
11697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11699
      return
11700
    oprot.writeStructBegin('saveDiscounts_result')
11701
    if self.scx is not None:
11702
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11703
      self.scx.write(oprot)
11704
      oprot.writeFieldEnd()
11705
    oprot.writeFieldStop()
11706
    oprot.writeStructEnd()
11707
 
11708
  def validate(self):
11709
    return
11710
 
11711
 
11712
  def __repr__(self):
11713
    L = ['%s=%r' % (key, value)
11714
      for key, value in self.__dict__.iteritems()]
11715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11716
 
11717
  def __eq__(self, other):
11718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11719
 
11720
  def __ne__(self, other):
11721
    return not (self == other)
11722
 
690 chandransh 11723
class createOrders_args:
559 chandransh 11724
  """
11725
  Attributes:
11726
   - cartId
2815 vikas 11727
   - sessionSource
11728
   - sessionStartTime
3858 vikas 11729
   - firstSource
11730
   - firstSourceTime
559 chandransh 11731
  """
11732
 
11733
  thrift_spec = (
11734
    None, # 0
11735
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11736
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11737
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11738
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11739
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
559 chandransh 11740
  )
11741
 
3858 vikas 11742
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None,):
559 chandransh 11743
    self.cartId = cartId
2815 vikas 11744
    self.sessionSource = sessionSource
11745
    self.sessionStartTime = sessionStartTime
3858 vikas 11746
    self.firstSource = firstSource
11747
    self.firstSourceTime = firstSourceTime
559 chandransh 11748
 
11749
  def read(self, iprot):
11750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11752
      return
11753
    iprot.readStructBegin()
11754
    while True:
11755
      (fname, ftype, fid) = iprot.readFieldBegin()
11756
      if ftype == TType.STOP:
11757
        break
11758
      if fid == 1:
11759
        if ftype == TType.I64:
11760
          self.cartId = iprot.readI64();
11761
        else:
11762
          iprot.skip(ftype)
2815 vikas 11763
      elif fid == 2:
11764
        if ftype == TType.STRING:
11765
          self.sessionSource = iprot.readString();
11766
        else:
11767
          iprot.skip(ftype)
11768
      elif fid == 3:
11769
        if ftype == TType.I64:
11770
          self.sessionStartTime = iprot.readI64();
11771
        else:
11772
          iprot.skip(ftype)
3858 vikas 11773
      elif fid == 4:
11774
        if ftype == TType.STRING:
11775
          self.firstSource = iprot.readString();
11776
        else:
11777
          iprot.skip(ftype)
11778
      elif fid == 5:
11779
        if ftype == TType.I64:
11780
          self.firstSourceTime = iprot.readI64();
11781
        else:
11782
          iprot.skip(ftype)
559 chandransh 11783
      else:
11784
        iprot.skip(ftype)
11785
      iprot.readFieldEnd()
11786
    iprot.readStructEnd()
11787
 
11788
  def write(self, oprot):
11789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11791
      return
690 chandransh 11792
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11793
    if self.cartId is not None:
559 chandransh 11794
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11795
      oprot.writeI64(self.cartId)
11796
      oprot.writeFieldEnd()
3431 rajveer 11797
    if self.sessionSource is not None:
2815 vikas 11798
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11799
      oprot.writeString(self.sessionSource)
11800
      oprot.writeFieldEnd()
3431 rajveer 11801
    if self.sessionStartTime is not None:
2815 vikas 11802
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11803
      oprot.writeI64(self.sessionStartTime)
11804
      oprot.writeFieldEnd()
3858 vikas 11805
    if self.firstSource is not None:
11806
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11807
      oprot.writeString(self.firstSource)
11808
      oprot.writeFieldEnd()
11809
    if self.firstSourceTime is not None:
11810
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11811
      oprot.writeI64(self.firstSourceTime)
11812
      oprot.writeFieldEnd()
559 chandransh 11813
    oprot.writeFieldStop()
11814
    oprot.writeStructEnd()
11815
 
3431 rajveer 11816
  def validate(self):
11817
    return
11818
 
11819
 
559 chandransh 11820
  def __repr__(self):
11821
    L = ['%s=%r' % (key, value)
11822
      for key, value in self.__dict__.iteritems()]
11823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11824
 
11825
  def __eq__(self, other):
11826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11827
 
11828
  def __ne__(self, other):
11829
    return not (self == other)
11830
 
690 chandransh 11831
class createOrders_result:
559 chandransh 11832
  """
11833
  Attributes:
94 ashish 11834
   - success
559 chandransh 11835
   - scx
94 ashish 11836
  """
11837
 
11838
  thrift_spec = (
575 chandransh 11839
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11840
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11841
  )
11842
 
559 chandransh 11843
  def __init__(self, success=None, scx=None,):
94 ashish 11844
    self.success = success
559 chandransh 11845
    self.scx = scx
94 ashish 11846
 
11847
  def read(self, iprot):
11848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11850
      return
11851
    iprot.readStructBegin()
11852
    while True:
11853
      (fname, ftype, fid) = iprot.readFieldBegin()
11854
      if ftype == TType.STOP:
11855
        break
11856
      if fid == 0:
575 chandransh 11857
        if ftype == TType.I64:
11858
          self.success = iprot.readI64();
94 ashish 11859
        else:
11860
          iprot.skip(ftype)
11861
      elif fid == 1:
11862
        if ftype == TType.STRUCT:
559 chandransh 11863
          self.scx = ShoppingCartException()
11864
          self.scx.read(iprot)
94 ashish 11865
        else:
11866
          iprot.skip(ftype)
11867
      else:
11868
        iprot.skip(ftype)
11869
      iprot.readFieldEnd()
11870
    iprot.readStructEnd()
11871
 
11872
  def write(self, oprot):
11873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11875
      return
690 chandransh 11876
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11877
    if self.success is not None:
575 chandransh 11878
      oprot.writeFieldBegin('success', TType.I64, 0)
11879
      oprot.writeI64(self.success)
94 ashish 11880
      oprot.writeFieldEnd()
3431 rajveer 11881
    if self.scx is not None:
559 chandransh 11882
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11883
      self.scx.write(oprot)
94 ashish 11884
      oprot.writeFieldEnd()
11885
    oprot.writeFieldStop()
11886
    oprot.writeStructEnd()
11887
 
3431 rajveer 11888
  def validate(self):
11889
    return
11890
 
11891
 
94 ashish 11892
  def __repr__(self):
11893
    L = ['%s=%r' % (key, value)
11894
      for key, value in self.__dict__.iteritems()]
11895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11896
 
11897
  def __eq__(self, other):
11898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11899
 
11900
  def __ne__(self, other):
11901
    return not (self == other)
11902
 
559 chandransh 11903
class validateCart_args:
94 ashish 11904
  """
11905
  Attributes:
559 chandransh 11906
   - cartId
3557 rajveer 11907
   - sourceId
94 ashish 11908
  """
11909
 
11910
  thrift_spec = (
11911
    None, # 0
559 chandransh 11912
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11913
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11914
  )
11915
 
3557 rajveer 11916
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11917
    self.cartId = cartId
3557 rajveer 11918
    self.sourceId = sourceId
94 ashish 11919
 
11920
  def read(self, iprot):
11921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11923
      return
11924
    iprot.readStructBegin()
11925
    while True:
11926
      (fname, ftype, fid) = iprot.readFieldBegin()
11927
      if ftype == TType.STOP:
11928
        break
11929
      if fid == 1:
11930
        if ftype == TType.I64:
559 chandransh 11931
          self.cartId = iprot.readI64();
94 ashish 11932
        else:
11933
          iprot.skip(ftype)
3557 rajveer 11934
      elif fid == 2:
11935
        if ftype == TType.I64:
11936
          self.sourceId = iprot.readI64();
11937
        else:
11938
          iprot.skip(ftype)
94 ashish 11939
      else:
11940
        iprot.skip(ftype)
11941
      iprot.readFieldEnd()
11942
    iprot.readStructEnd()
11943
 
11944
  def write(self, oprot):
11945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11947
      return
559 chandransh 11948
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11949
    if self.cartId is not None:
559 chandransh 11950
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11951
      oprot.writeI64(self.cartId)
94 ashish 11952
      oprot.writeFieldEnd()
3557 rajveer 11953
    if self.sourceId is not None:
11954
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11955
      oprot.writeI64(self.sourceId)
11956
      oprot.writeFieldEnd()
94 ashish 11957
    oprot.writeFieldStop()
11958
    oprot.writeStructEnd()
11959
 
3431 rajveer 11960
  def validate(self):
11961
    return
11962
 
11963
 
94 ashish 11964
  def __repr__(self):
11965
    L = ['%s=%r' % (key, value)
11966
      for key, value in self.__dict__.iteritems()]
11967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11968
 
11969
  def __eq__(self, other):
11970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11971
 
11972
  def __ne__(self, other):
11973
    return not (self == other)
11974
 
559 chandransh 11975
class validateCart_result:
94 ashish 11976
  """
11977
  Attributes:
11978
   - success
575 chandransh 11979
   - scex
94 ashish 11980
  """
11981
 
11982
  thrift_spec = (
1466 ankur.sing 11983
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11984
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11985
  )
11986
 
575 chandransh 11987
  def __init__(self, success=None, scex=None,):
94 ashish 11988
    self.success = success
575 chandransh 11989
    self.scex = scex
94 ashish 11990
 
11991
  def read(self, iprot):
11992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11994
      return
11995
    iprot.readStructBegin()
11996
    while True:
11997
      (fname, ftype, fid) = iprot.readFieldBegin()
11998
      if ftype == TType.STOP:
11999
        break
12000
      if fid == 0:
1466 ankur.sing 12001
        if ftype == TType.STRING:
12002
          self.success = iprot.readString();
94 ashish 12003
        else:
12004
          iprot.skip(ftype)
575 chandransh 12005
      elif fid == 1:
12006
        if ftype == TType.STRUCT:
12007
          self.scex = ShoppingCartException()
12008
          self.scex.read(iprot)
12009
        else:
12010
          iprot.skip(ftype)
94 ashish 12011
      else:
12012
        iprot.skip(ftype)
12013
      iprot.readFieldEnd()
12014
    iprot.readStructEnd()
12015
 
12016
  def write(self, oprot):
12017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12019
      return
559 chandransh 12020
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 12021
    if self.success is not None:
1466 ankur.sing 12022
      oprot.writeFieldBegin('success', TType.STRING, 0)
12023
      oprot.writeString(self.success)
94 ashish 12024
      oprot.writeFieldEnd()
3431 rajveer 12025
    if self.scex is not None:
575 chandransh 12026
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12027
      self.scex.write(oprot)
12028
      oprot.writeFieldEnd()
559 chandransh 12029
    oprot.writeFieldStop()
12030
    oprot.writeStructEnd()
12031
 
3431 rajveer 12032
  def validate(self):
12033
    return
12034
 
12035
 
559 chandransh 12036
  def __repr__(self):
12037
    L = ['%s=%r' % (key, value)
12038
      for key, value in self.__dict__.iteritems()]
12039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12040
 
12041
  def __eq__(self, other):
12042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12043
 
12044
  def __ne__(self, other):
12045
    return not (self == other)
12046
 
690 chandransh 12047
class mergeCart_args:
575 chandransh 12048
  """
12049
  Attributes:
690 chandransh 12050
   - fromCartId
12051
   - toCartId
12052
  """
12053
 
12054
  thrift_spec = (
12055
    None, # 0
12056
    (1, TType.I64, 'fromCartId', None, None, ), # 1
12057
    (2, TType.I64, 'toCartId', None, None, ), # 2
12058
  )
12059
 
12060
  def __init__(self, fromCartId=None, toCartId=None,):
12061
    self.fromCartId = fromCartId
12062
    self.toCartId = toCartId
12063
 
12064
  def read(self, iprot):
12065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12067
      return
12068
    iprot.readStructBegin()
12069
    while True:
12070
      (fname, ftype, fid) = iprot.readFieldBegin()
12071
      if ftype == TType.STOP:
12072
        break
12073
      if fid == 1:
12074
        if ftype == TType.I64:
12075
          self.fromCartId = iprot.readI64();
12076
        else:
12077
          iprot.skip(ftype)
12078
      elif fid == 2:
12079
        if ftype == TType.I64:
12080
          self.toCartId = iprot.readI64();
12081
        else:
12082
          iprot.skip(ftype)
12083
      else:
12084
        iprot.skip(ftype)
12085
      iprot.readFieldEnd()
12086
    iprot.readStructEnd()
12087
 
12088
  def write(self, oprot):
12089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12091
      return
12092
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 12093
    if self.fromCartId is not None:
690 chandransh 12094
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
12095
      oprot.writeI64(self.fromCartId)
12096
      oprot.writeFieldEnd()
3431 rajveer 12097
    if self.toCartId is not None:
690 chandransh 12098
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
12099
      oprot.writeI64(self.toCartId)
12100
      oprot.writeFieldEnd()
12101
    oprot.writeFieldStop()
12102
    oprot.writeStructEnd()
12103
 
3431 rajveer 12104
  def validate(self):
12105
    return
12106
 
12107
 
690 chandransh 12108
  def __repr__(self):
12109
    L = ['%s=%r' % (key, value)
12110
      for key, value in self.__dict__.iteritems()]
12111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12112
 
12113
  def __eq__(self, other):
12114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12115
 
12116
  def __ne__(self, other):
12117
    return not (self == other)
12118
 
12119
class mergeCart_result:
12120
 
12121
  thrift_spec = (
12122
  )
12123
 
12124
  def read(self, iprot):
12125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12127
      return
12128
    iprot.readStructBegin()
12129
    while True:
12130
      (fname, ftype, fid) = iprot.readFieldBegin()
12131
      if ftype == TType.STOP:
12132
        break
12133
      else:
12134
        iprot.skip(ftype)
12135
      iprot.readFieldEnd()
12136
    iprot.readStructEnd()
12137
 
12138
  def write(self, oprot):
12139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12141
      return
12142
    oprot.writeStructBegin('mergeCart_result')
12143
    oprot.writeFieldStop()
12144
    oprot.writeStructEnd()
12145
 
3431 rajveer 12146
  def validate(self):
12147
    return
12148
 
12149
 
690 chandransh 12150
  def __repr__(self):
12151
    L = ['%s=%r' % (key, value)
12152
      for key, value in self.__dict__.iteritems()]
12153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12154
 
12155
  def __eq__(self, other):
12156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12157
 
12158
  def __ne__(self, other):
12159
    return not (self == other)
12160
 
12161
class checkOut_args:
12162
  """
12163
  Attributes:
575 chandransh 12164
   - cartId
12165
  """
12166
 
12167
  thrift_spec = (
12168
    None, # 0
12169
    (1, TType.I64, 'cartId', None, None, ), # 1
12170
  )
12171
 
12172
  def __init__(self, cartId=None,):
12173
    self.cartId = cartId
12174
 
12175
  def read(self, iprot):
12176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12178
      return
12179
    iprot.readStructBegin()
12180
    while True:
12181
      (fname, ftype, fid) = iprot.readFieldBegin()
12182
      if ftype == TType.STOP:
12183
        break
12184
      if fid == 1:
12185
        if ftype == TType.I64:
12186
          self.cartId = iprot.readI64();
12187
        else:
12188
          iprot.skip(ftype)
12189
      else:
12190
        iprot.skip(ftype)
12191
      iprot.readFieldEnd()
12192
    iprot.readStructEnd()
12193
 
12194
  def write(self, oprot):
12195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12197
      return
690 chandransh 12198
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 12199
    if self.cartId is not None:
575 chandransh 12200
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12201
      oprot.writeI64(self.cartId)
12202
      oprot.writeFieldEnd()
12203
    oprot.writeFieldStop()
12204
    oprot.writeStructEnd()
12205
 
3431 rajveer 12206
  def validate(self):
12207
    return
12208
 
12209
 
575 chandransh 12210
  def __repr__(self):
12211
    L = ['%s=%r' % (key, value)
12212
      for key, value in self.__dict__.iteritems()]
12213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12214
 
12215
  def __eq__(self, other):
12216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12217
 
12218
  def __ne__(self, other):
12219
    return not (self == other)
12220
 
690 chandransh 12221
class checkOut_result:
575 chandransh 12222
  """
12223
  Attributes:
12224
   - success
12225
   - scex
12226
  """
12227
 
12228
  thrift_spec = (
12229
    (0, TType.BOOL, 'success', None, None, ), # 0
12230
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
12231
  )
12232
 
12233
  def __init__(self, success=None, scex=None,):
12234
    self.success = success
12235
    self.scex = scex
12236
 
12237
  def read(self, iprot):
12238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12240
      return
12241
    iprot.readStructBegin()
12242
    while True:
12243
      (fname, ftype, fid) = iprot.readFieldBegin()
12244
      if ftype == TType.STOP:
12245
        break
12246
      if fid == 0:
12247
        if ftype == TType.BOOL:
12248
          self.success = iprot.readBool();
12249
        else:
12250
          iprot.skip(ftype)
12251
      elif fid == 1:
12252
        if ftype == TType.STRUCT:
12253
          self.scex = ShoppingCartException()
12254
          self.scex.read(iprot)
12255
        else:
12256
          iprot.skip(ftype)
12257
      else:
12258
        iprot.skip(ftype)
12259
      iprot.readFieldEnd()
12260
    iprot.readStructEnd()
12261
 
12262
  def write(self, oprot):
12263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12265
      return
690 chandransh 12266
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12267
    if self.success is not None:
575 chandransh 12268
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12269
      oprot.writeBool(self.success)
12270
      oprot.writeFieldEnd()
3431 rajveer 12271
    if self.scex is not None:
575 chandransh 12272
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12273
      self.scex.write(oprot)
12274
      oprot.writeFieldEnd()
12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
3431 rajveer 12278
  def validate(self):
12279
    return
12280
 
12281
 
575 chandransh 12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
12292
 
690 chandransh 12293
class resetCart_args:
559 chandransh 12294
  """
12295
  Attributes:
690 chandransh 12296
   - cartId
12297
   - items
559 chandransh 12298
  """
12299
 
12300
  thrift_spec = (
12301
    None, # 0
690 chandransh 12302
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12303
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12304
  )
12305
 
690 chandransh 12306
  def __init__(self, cartId=None, items=None,):
12307
    self.cartId = cartId
12308
    self.items = items
559 chandransh 12309
 
12310
  def read(self, iprot):
12311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12313
      return
12314
    iprot.readStructBegin()
12315
    while True:
12316
      (fname, ftype, fid) = iprot.readFieldBegin()
12317
      if ftype == TType.STOP:
12318
        break
12319
      if fid == 1:
12320
        if ftype == TType.I64:
690 chandransh 12321
          self.cartId = iprot.readI64();
559 chandransh 12322
        else:
12323
          iprot.skip(ftype)
12324
      elif fid == 2:
690 chandransh 12325
        if ftype == TType.MAP:
12326
          self.items = {}
4668 varun.gupt 12327
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
12328
          for _i153 in xrange(_size149):
12329
            _key154 = iprot.readI64();
12330
            _val155 = iprot.readDouble();
12331
            self.items[_key154] = _val155
690 chandransh 12332
          iprot.readMapEnd()
559 chandransh 12333
        else:
12334
          iprot.skip(ftype)
12335
      else:
12336
        iprot.skip(ftype)
12337
      iprot.readFieldEnd()
12338
    iprot.readStructEnd()
12339
 
12340
  def write(self, oprot):
12341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12343
      return
690 chandransh 12344
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12345
    if self.cartId is not None:
690 chandransh 12346
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12347
      oprot.writeI64(self.cartId)
94 ashish 12348
      oprot.writeFieldEnd()
3431 rajveer 12349
    if self.items is not None:
690 chandransh 12350
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12351
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
4668 varun.gupt 12352
      for kiter156,viter157 in self.items.items():
12353
        oprot.writeI64(kiter156)
12354
        oprot.writeDouble(viter157)
690 chandransh 12355
      oprot.writeMapEnd()
559 chandransh 12356
      oprot.writeFieldEnd()
94 ashish 12357
    oprot.writeFieldStop()
12358
    oprot.writeStructEnd()
12359
 
3431 rajveer 12360
  def validate(self):
12361
    return
12362
 
12363
 
94 ashish 12364
  def __repr__(self):
12365
    L = ['%s=%r' % (key, value)
12366
      for key, value in self.__dict__.iteritems()]
12367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12368
 
12369
  def __eq__(self, other):
12370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12371
 
12372
  def __ne__(self, other):
12373
    return not (self == other)
12374
 
690 chandransh 12375
class resetCart_result:
12376
  """
12377
  Attributes:
12378
   - success
12379
   - scex
12380
  """
559 chandransh 12381
 
12382
  thrift_spec = (
690 chandransh 12383
    (0, TType.BOOL, 'success', None, None, ), # 0
12384
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12385
  )
12386
 
690 chandransh 12387
  def __init__(self, success=None, scex=None,):
12388
    self.success = success
12389
    self.scex = scex
12390
 
559 chandransh 12391
  def read(self, iprot):
12392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12394
      return
12395
    iprot.readStructBegin()
12396
    while True:
12397
      (fname, ftype, fid) = iprot.readFieldBegin()
12398
      if ftype == TType.STOP:
12399
        break
690 chandransh 12400
      if fid == 0:
12401
        if ftype == TType.BOOL:
12402
          self.success = iprot.readBool();
12403
        else:
12404
          iprot.skip(ftype)
12405
      elif fid == 1:
12406
        if ftype == TType.STRUCT:
12407
          self.scex = ShoppingCartException()
12408
          self.scex.read(iprot)
12409
        else:
12410
          iprot.skip(ftype)
559 chandransh 12411
      else:
12412
        iprot.skip(ftype)
12413
      iprot.readFieldEnd()
12414
    iprot.readStructEnd()
12415
 
12416
  def write(self, oprot):
12417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12419
      return
690 chandransh 12420
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12421
    if self.success is not None:
690 chandransh 12422
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12423
      oprot.writeBool(self.success)
12424
      oprot.writeFieldEnd()
3431 rajveer 12425
    if self.scex is not None:
690 chandransh 12426
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12427
      self.scex.write(oprot)
12428
      oprot.writeFieldEnd()
559 chandransh 12429
    oprot.writeFieldStop()
12430
    oprot.writeStructEnd()
12431
 
3431 rajveer 12432
  def validate(self):
12433
    return
12434
 
12435
 
559 chandransh 12436
  def __repr__(self):
12437
    L = ['%s=%r' % (key, value)
12438
      for key, value in self.__dict__.iteritems()]
12439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12440
 
12441
  def __eq__(self, other):
12442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12443
 
12444
  def __ne__(self, other):
12445
    return not (self == other)
12446
 
2981 rajveer 12447
class getUserCount_args:
94 ashish 12448
  """
12449
  Attributes:
2981 rajveer 12450
   - userType
559 chandransh 12451
  """
12452
 
12453
  thrift_spec = (
12454
    None, # 0
2981 rajveer 12455
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12456
  )
12457
 
2981 rajveer 12458
  def __init__(self, userType=None,):
12459
    self.userType = userType
559 chandransh 12460
 
12461
  def read(self, iprot):
12462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12464
      return
12465
    iprot.readStructBegin()
12466
    while True:
12467
      (fname, ftype, fid) = iprot.readFieldBegin()
12468
      if ftype == TType.STOP:
12469
        break
12470
      if fid == 1:
2981 rajveer 12471
        if ftype == TType.I32:
12472
          self.userType = iprot.readI32();
559 chandransh 12473
        else:
12474
          iprot.skip(ftype)
12475
      else:
12476
        iprot.skip(ftype)
12477
      iprot.readFieldEnd()
12478
    iprot.readStructEnd()
12479
 
12480
  def write(self, oprot):
12481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12483
      return
2981 rajveer 12484
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12485
    if self.userType is not None:
2981 rajveer 12486
      oprot.writeFieldBegin('userType', TType.I32, 1)
12487
      oprot.writeI32(self.userType)
559 chandransh 12488
      oprot.writeFieldEnd()
12489
    oprot.writeFieldStop()
12490
    oprot.writeStructEnd()
12491
 
3431 rajveer 12492
  def validate(self):
12493
    return
12494
 
12495
 
559 chandransh 12496
  def __repr__(self):
12497
    L = ['%s=%r' % (key, value)
12498
      for key, value in self.__dict__.iteritems()]
12499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12500
 
12501
  def __eq__(self, other):
12502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12503
 
12504
  def __ne__(self, other):
12505
    return not (self == other)
12506
 
2981 rajveer 12507
class getUserCount_result:
94 ashish 12508
  """
12509
  Attributes:
12510
   - success
12511
  """
12512
 
12513
  thrift_spec = (
2981 rajveer 12514
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12515
  )
12516
 
2981 rajveer 12517
  def __init__(self, success=None,):
94 ashish 12518
    self.success = success
12519
 
12520
  def read(self, iprot):
12521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12523
      return
12524
    iprot.readStructBegin()
12525
    while True:
12526
      (fname, ftype, fid) = iprot.readFieldBegin()
12527
      if ftype == TType.STOP:
12528
        break
12529
      if fid == 0:
2981 rajveer 12530
        if ftype == TType.I64:
12531
          self.success = iprot.readI64();
94 ashish 12532
        else:
12533
          iprot.skip(ftype)
12534
      else:
12535
        iprot.skip(ftype)
12536
      iprot.readFieldEnd()
12537
    iprot.readStructEnd()
12538
 
12539
  def write(self, oprot):
12540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12542
      return
2981 rajveer 12543
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12544
    if self.success is not None:
2981 rajveer 12545
      oprot.writeFieldBegin('success', TType.I64, 0)
12546
      oprot.writeI64(self.success)
94 ashish 12547
      oprot.writeFieldEnd()
12548
    oprot.writeFieldStop()
12549
    oprot.writeStructEnd()
12550
 
3431 rajveer 12551
  def validate(self):
12552
    return
12553
 
12554
 
94 ashish 12555
  def __repr__(self):
12556
    L = ['%s=%r' % (key, value)
12557
      for key, value in self.__dict__.iteritems()]
12558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12559
 
12560
  def __eq__(self, other):
12561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12562
 
12563
  def __ne__(self, other):
12564
    return not (self == other)
12565
 
2981 rajveer 12566
class getAllUsers_args:
94 ashish 12567
  """
12568
  Attributes:
2981 rajveer 12569
   - userType
12570
   - startDate
12571
   - endDate
94 ashish 12572
  """
12573
 
12574
  thrift_spec = (
12575
    None, # 0
2981 rajveer 12576
    (1, TType.I32, 'userType', None, None, ), # 1
12577
    (2, TType.I64, 'startDate', None, None, ), # 2
12578
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12579
  )
12580
 
2981 rajveer 12581
  def __init__(self, userType=None, startDate=None, endDate=None,):
12582
    self.userType = userType
12583
    self.startDate = startDate
12584
    self.endDate = endDate
94 ashish 12585
 
12586
  def read(self, iprot):
12587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12589
      return
12590
    iprot.readStructBegin()
12591
    while True:
12592
      (fname, ftype, fid) = iprot.readFieldBegin()
12593
      if ftype == TType.STOP:
12594
        break
12595
      if fid == 1:
2981 rajveer 12596
        if ftype == TType.I32:
12597
          self.userType = iprot.readI32();
94 ashish 12598
        else:
12599
          iprot.skip(ftype)
12600
      elif fid == 2:
559 chandransh 12601
        if ftype == TType.I64:
2981 rajveer 12602
          self.startDate = iprot.readI64();
94 ashish 12603
        else:
12604
          iprot.skip(ftype)
2981 rajveer 12605
      elif fid == 3:
12606
        if ftype == TType.I64:
12607
          self.endDate = iprot.readI64();
12608
        else:
12609
          iprot.skip(ftype)
94 ashish 12610
      else:
12611
        iprot.skip(ftype)
12612
      iprot.readFieldEnd()
12613
    iprot.readStructEnd()
12614
 
12615
  def write(self, oprot):
12616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12618
      return
2981 rajveer 12619
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12620
    if self.userType is not None:
2981 rajveer 12621
      oprot.writeFieldBegin('userType', TType.I32, 1)
12622
      oprot.writeI32(self.userType)
94 ashish 12623
      oprot.writeFieldEnd()
3431 rajveer 12624
    if self.startDate is not None:
2981 rajveer 12625
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12626
      oprot.writeI64(self.startDate)
94 ashish 12627
      oprot.writeFieldEnd()
3431 rajveer 12628
    if self.endDate is not None:
2981 rajveer 12629
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12630
      oprot.writeI64(self.endDate)
12631
      oprot.writeFieldEnd()
94 ashish 12632
    oprot.writeFieldStop()
12633
    oprot.writeStructEnd()
12634
 
3431 rajveer 12635
  def validate(self):
12636
    return
12637
 
12638
 
94 ashish 12639
  def __repr__(self):
12640
    L = ['%s=%r' % (key, value)
12641
      for key, value in self.__dict__.iteritems()]
12642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12643
 
12644
  def __eq__(self, other):
12645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12646
 
12647
  def __ne__(self, other):
12648
    return not (self == other)
12649
 
2981 rajveer 12650
class getAllUsers_result:
94 ashish 12651
  """
12652
  Attributes:
12653
   - success
12654
  """
12655
 
12656
  thrift_spec = (
2981 rajveer 12657
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12658
  )
12659
 
2981 rajveer 12660
  def __init__(self, success=None,):
94 ashish 12661
    self.success = success
12662
 
12663
  def read(self, iprot):
12664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12666
      return
12667
    iprot.readStructBegin()
12668
    while True:
12669
      (fname, ftype, fid) = iprot.readFieldBegin()
12670
      if ftype == TType.STOP:
12671
        break
12672
      if fid == 0:
2981 rajveer 12673
        if ftype == TType.LIST:
12674
          self.success = []
4668 varun.gupt 12675
          (_etype161, _size158) = iprot.readListBegin()
12676
          for _i162 in xrange(_size158):
12677
            _elem163 = User()
12678
            _elem163.read(iprot)
12679
            self.success.append(_elem163)
2981 rajveer 12680
          iprot.readListEnd()
94 ashish 12681
        else:
12682
          iprot.skip(ftype)
12683
      else:
12684
        iprot.skip(ftype)
12685
      iprot.readFieldEnd()
12686
    iprot.readStructEnd()
12687
 
12688
  def write(self, oprot):
12689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12691
      return
2981 rajveer 12692
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12693
    if self.success is not None:
2981 rajveer 12694
      oprot.writeFieldBegin('success', TType.LIST, 0)
12695
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 12696
      for iter164 in self.success:
12697
        iter164.write(oprot)
2981 rajveer 12698
      oprot.writeListEnd()
94 ashish 12699
      oprot.writeFieldEnd()
12700
    oprot.writeFieldStop()
12701
    oprot.writeStructEnd()
12702
 
3431 rajveer 12703
  def validate(self):
12704
    return
12705
 
12706
 
94 ashish 12707
  def __repr__(self):
12708
    L = ['%s=%r' % (key, value)
12709
      for key, value in self.__dict__.iteritems()]
12710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12711
 
12712
  def __eq__(self, other):
12713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12714
 
12715
  def __ne__(self, other):
12716
    return not (self == other)
12717
 
2981 rajveer 12718
class putUserNote_args:
130 ashish 12719
  """
12720
  Attributes:
2981 rajveer 12721
   - user_id
12722
   - entity_id
12723
   - slide
12724
   - note
130 ashish 12725
  """
94 ashish 12726
 
130 ashish 12727
  thrift_spec = (
12728
    None, # 0
2981 rajveer 12729
    (1, TType.I64, 'user_id', None, None, ), # 1
12730
    (2, TType.I64, 'entity_id', None, None, ), # 2
12731
    (3, TType.STRING, 'slide', None, None, ), # 3
12732
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12733
  )
12734
 
2981 rajveer 12735
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12736
    self.user_id = user_id
12737
    self.entity_id = entity_id
12738
    self.slide = slide
12739
    self.note = note
130 ashish 12740
 
12741
  def read(self, iprot):
12742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12744
      return
12745
    iprot.readStructBegin()
12746
    while True:
12747
      (fname, ftype, fid) = iprot.readFieldBegin()
12748
      if ftype == TType.STOP:
12749
        break
12750
      if fid == 1:
12751
        if ftype == TType.I64:
2981 rajveer 12752
          self.user_id = iprot.readI64();
130 ashish 12753
        else:
12754
          iprot.skip(ftype)
559 chandransh 12755
      elif fid == 2:
12756
        if ftype == TType.I64:
2981 rajveer 12757
          self.entity_id = iprot.readI64();
559 chandransh 12758
        else:
12759
          iprot.skip(ftype)
2981 rajveer 12760
      elif fid == 3:
12761
        if ftype == TType.STRING:
12762
          self.slide = iprot.readString();
12763
        else:
12764
          iprot.skip(ftype)
12765
      elif fid == 4:
12766
        if ftype == TType.STRING:
12767
          self.note = iprot.readString();
12768
        else:
12769
          iprot.skip(ftype)
130 ashish 12770
      else:
12771
        iprot.skip(ftype)
12772
      iprot.readFieldEnd()
12773
    iprot.readStructEnd()
12774
 
12775
  def write(self, oprot):
12776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12778
      return
2981 rajveer 12779
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12780
    if self.user_id is not None:
2981 rajveer 12781
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12782
      oprot.writeI64(self.user_id)
130 ashish 12783
      oprot.writeFieldEnd()
3431 rajveer 12784
    if self.entity_id is not None:
2981 rajveer 12785
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12786
      oprot.writeI64(self.entity_id)
559 chandransh 12787
      oprot.writeFieldEnd()
3431 rajveer 12788
    if self.slide is not None:
2981 rajveer 12789
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12790
      oprot.writeString(self.slide)
12791
      oprot.writeFieldEnd()
3431 rajveer 12792
    if self.note is not None:
2981 rajveer 12793
      oprot.writeFieldBegin('note', TType.STRING, 4)
12794
      oprot.writeString(self.note)
12795
      oprot.writeFieldEnd()
130 ashish 12796
    oprot.writeFieldStop()
12797
    oprot.writeStructEnd()
12798
 
3431 rajveer 12799
  def validate(self):
12800
    return
12801
 
12802
 
130 ashish 12803
  def __repr__(self):
12804
    L = ['%s=%r' % (key, value)
12805
      for key, value in self.__dict__.iteritems()]
12806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12807
 
12808
  def __eq__(self, other):
12809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12810
 
12811
  def __ne__(self, other):
12812
    return not (self == other)
12813
 
2981 rajveer 12814
class putUserNote_result:
559 chandransh 12815
 
12816
  thrift_spec = (
12817
  )
12818
 
12819
  def read(self, iprot):
12820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12822
      return
12823
    iprot.readStructBegin()
12824
    while True:
12825
      (fname, ftype, fid) = iprot.readFieldBegin()
12826
      if ftype == TType.STOP:
12827
        break
12828
      else:
12829
        iprot.skip(ftype)
12830
      iprot.readFieldEnd()
12831
    iprot.readStructEnd()
12832
 
12833
  def write(self, oprot):
12834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12836
      return
2981 rajveer 12837
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12838
    oprot.writeFieldStop()
12839
    oprot.writeStructEnd()
12840
 
3431 rajveer 12841
  def validate(self):
12842
    return
12843
 
12844
 
559 chandransh 12845
  def __repr__(self):
12846
    L = ['%s=%r' % (key, value)
12847
      for key, value in self.__dict__.iteritems()]
12848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12849
 
12850
  def __eq__(self, other):
12851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12852
 
12853
  def __ne__(self, other):
12854
    return not (self == other)
12855
 
2981 rajveer 12856
class getUserNotes_args:
559 chandransh 12857
  """
12858
  Attributes:
2981 rajveer 12859
   - user_id
12860
   - entity_id
559 chandransh 12861
  """
12862
 
12863
  thrift_spec = (
12864
    None, # 0
2981 rajveer 12865
    (1, TType.I64, 'user_id', None, None, ), # 1
12866
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12867
  )
12868
 
2981 rajveer 12869
  def __init__(self, user_id=None, entity_id=None,):
12870
    self.user_id = user_id
12871
    self.entity_id = entity_id
559 chandransh 12872
 
12873
  def read(self, iprot):
12874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12876
      return
12877
    iprot.readStructBegin()
12878
    while True:
12879
      (fname, ftype, fid) = iprot.readFieldBegin()
12880
      if ftype == TType.STOP:
12881
        break
12882
      if fid == 1:
12883
        if ftype == TType.I64:
2981 rajveer 12884
          self.user_id = iprot.readI64();
559 chandransh 12885
        else:
12886
          iprot.skip(ftype)
12887
      elif fid == 2:
12888
        if ftype == TType.I64:
2981 rajveer 12889
          self.entity_id = iprot.readI64();
559 chandransh 12890
        else:
12891
          iprot.skip(ftype)
12892
      else:
12893
        iprot.skip(ftype)
12894
      iprot.readFieldEnd()
12895
    iprot.readStructEnd()
12896
 
12897
  def write(self, oprot):
12898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12900
      return
2981 rajveer 12901
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12902
    if self.user_id is not None:
2981 rajveer 12903
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12904
      oprot.writeI64(self.user_id)
559 chandransh 12905
      oprot.writeFieldEnd()
3431 rajveer 12906
    if self.entity_id is not None:
2981 rajveer 12907
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12908
      oprot.writeI64(self.entity_id)
559 chandransh 12909
      oprot.writeFieldEnd()
12910
    oprot.writeFieldStop()
12911
    oprot.writeStructEnd()
12912
 
3431 rajveer 12913
  def validate(self):
12914
    return
12915
 
12916
 
559 chandransh 12917
  def __repr__(self):
12918
    L = ['%s=%r' % (key, value)
12919
      for key, value in self.__dict__.iteritems()]
12920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12921
 
12922
  def __eq__(self, other):
12923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12924
 
12925
  def __ne__(self, other):
12926
    return not (self == other)
12927
 
2981 rajveer 12928
class getUserNotes_result:
12929
  """
12930
  Attributes:
12931
   - success
12932
  """
559 chandransh 12933
 
12934
  thrift_spec = (
2981 rajveer 12935
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12936
  )
12937
 
2981 rajveer 12938
  def __init__(self, success=None,):
12939
    self.success = success
12940
 
559 chandransh 12941
  def read(self, iprot):
12942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12944
      return
12945
    iprot.readStructBegin()
12946
    while True:
12947
      (fname, ftype, fid) = iprot.readFieldBegin()
12948
      if ftype == TType.STOP:
12949
        break
2981 rajveer 12950
      if fid == 0:
12951
        if ftype == TType.LIST:
12952
          self.success = []
4668 varun.gupt 12953
          (_etype168, _size165) = iprot.readListBegin()
12954
          for _i169 in xrange(_size165):
12955
            _elem170 = UserNote()
12956
            _elem170.read(iprot)
12957
            self.success.append(_elem170)
2981 rajveer 12958
          iprot.readListEnd()
12959
        else:
12960
          iprot.skip(ftype)
559 chandransh 12961
      else:
12962
        iprot.skip(ftype)
12963
      iprot.readFieldEnd()
12964
    iprot.readStructEnd()
12965
 
12966
  def write(self, oprot):
12967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12969
      return
2981 rajveer 12970
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12971
    if self.success is not None:
2981 rajveer 12972
      oprot.writeFieldBegin('success', TType.LIST, 0)
12973
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4668 varun.gupt 12974
      for iter171 in self.success:
12975
        iter171.write(oprot)
2981 rajveer 12976
      oprot.writeListEnd()
12977
      oprot.writeFieldEnd()
559 chandransh 12978
    oprot.writeFieldStop()
12979
    oprot.writeStructEnd()
12980
 
3431 rajveer 12981
  def validate(self):
12982
    return
12983
 
12984
 
559 chandransh 12985
  def __repr__(self):
12986
    L = ['%s=%r' % (key, value)
12987
      for key, value in self.__dict__.iteritems()]
12988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12989
 
12990
  def __eq__(self, other):
12991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12992
 
12993
  def __ne__(self, other):
12994
    return not (self == other)
12995
 
2981 rajveer 12996
class getMyResearchItems_args:
559 chandransh 12997
  """
12998
  Attributes:
772 rajveer 12999
   - userId
559 chandransh 13000
  """
13001
 
13002
  thrift_spec = (
13003
    None, # 0
772 rajveer 13004
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 13005
  )
13006
 
772 rajveer 13007
  def __init__(self, userId=None,):
13008
    self.userId = userId
559 chandransh 13009
 
13010
  def read(self, iprot):
13011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13013
      return
13014
    iprot.readStructBegin()
13015
    while True:
13016
      (fname, ftype, fid) = iprot.readFieldBegin()
13017
      if ftype == TType.STOP:
13018
        break
13019
      if fid == 1:
13020
        if ftype == TType.I64:
772 rajveer 13021
          self.userId = iprot.readI64();
559 chandransh 13022
        else:
13023
          iprot.skip(ftype)
13024
      else:
13025
        iprot.skip(ftype)
13026
      iprot.readFieldEnd()
13027
    iprot.readStructEnd()
13028
 
13029
  def write(self, oprot):
13030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13032
      return
2981 rajveer 13033
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 13034
    if self.userId is not None:
772 rajveer 13035
      oprot.writeFieldBegin('userId', TType.I64, 1)
13036
      oprot.writeI64(self.userId)
559 chandransh 13037
      oprot.writeFieldEnd()
13038
    oprot.writeFieldStop()
13039
    oprot.writeStructEnd()
13040
 
3431 rajveer 13041
  def validate(self):
13042
    return
13043
 
13044
 
559 chandransh 13045
  def __repr__(self):
13046
    L = ['%s=%r' % (key, value)
13047
      for key, value in self.__dict__.iteritems()]
13048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13049
 
13050
  def __eq__(self, other):
13051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13052
 
13053
  def __ne__(self, other):
13054
    return not (self == other)
13055
 
2981 rajveer 13056
class getMyResearchItems_result:
559 chandransh 13057
  """
13058
  Attributes:
130 ashish 13059
   - success
559 chandransh 13060
   - scx
130 ashish 13061
  """
13062
 
13063
  thrift_spec = (
2981 rajveer 13064
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 13065
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 13066
  )
13067
 
559 chandransh 13068
  def __init__(self, success=None, scx=None,):
130 ashish 13069
    self.success = success
559 chandransh 13070
    self.scx = scx
130 ashish 13071
 
13072
  def read(self, iprot):
13073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13075
      return
13076
    iprot.readStructBegin()
13077
    while True:
13078
      (fname, ftype, fid) = iprot.readFieldBegin()
13079
      if ftype == TType.STOP:
13080
        break
13081
      if fid == 0:
2981 rajveer 13082
        if ftype == TType.LIST:
13083
          self.success = []
4668 varun.gupt 13084
          (_etype175, _size172) = iprot.readListBegin()
13085
          for _i176 in xrange(_size172):
13086
            _elem177 = iprot.readI64();
13087
            self.success.append(_elem177)
2981 rajveer 13088
          iprot.readListEnd()
130 ashish 13089
        else:
13090
          iprot.skip(ftype)
13091
      elif fid == 1:
13092
        if ftype == TType.STRUCT:
559 chandransh 13093
          self.scx = WidgetException()
13094
          self.scx.read(iprot)
130 ashish 13095
        else:
13096
          iprot.skip(ftype)
13097
      else:
13098
        iprot.skip(ftype)
13099
      iprot.readFieldEnd()
13100
    iprot.readStructEnd()
13101
 
13102
  def write(self, oprot):
13103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13105
      return
2981 rajveer 13106
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 13107
    if self.success is not None:
2981 rajveer 13108
      oprot.writeFieldBegin('success', TType.LIST, 0)
13109
      oprot.writeListBegin(TType.I64, len(self.success))
4668 varun.gupt 13110
      for iter178 in self.success:
13111
        oprot.writeI64(iter178)
2981 rajveer 13112
      oprot.writeListEnd()
130 ashish 13113
      oprot.writeFieldEnd()
3431 rajveer 13114
    if self.scx is not None:
559 chandransh 13115
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13116
      self.scx.write(oprot)
130 ashish 13117
      oprot.writeFieldEnd()
13118
    oprot.writeFieldStop()
13119
    oprot.writeStructEnd()
13120
 
3431 rajveer 13121
  def validate(self):
13122
    return
13123
 
13124
 
130 ashish 13125
  def __repr__(self):
13126
    L = ['%s=%r' % (key, value)
13127
      for key, value in self.__dict__.iteritems()]
13128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13129
 
13130
  def __eq__(self, other):
13131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13132
 
13133
  def __ne__(self, other):
13134
    return not (self == other)
13135
 
2981 rajveer 13136
class updateMyResearch_args:
130 ashish 13137
  """
13138
  Attributes:
2981 rajveer 13139
   - userId
13140
   - itemId
130 ashish 13141
  """
13142
 
13143
  thrift_spec = (
13144
    None, # 0
2981 rajveer 13145
    (1, TType.I64, 'userId', None, None, ), # 1
13146
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 13147
  )
13148
 
2981 rajveer 13149
  def __init__(self, userId=None, itemId=None,):
13150
    self.userId = userId
13151
    self.itemId = itemId
130 ashish 13152
 
13153
  def read(self, iprot):
13154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13156
      return
13157
    iprot.readStructBegin()
13158
    while True:
13159
      (fname, ftype, fid) = iprot.readFieldBegin()
13160
      if ftype == TType.STOP:
13161
        break
13162
      if fid == 1:
559 chandransh 13163
        if ftype == TType.I64:
2981 rajveer 13164
          self.userId = iprot.readI64();
130 ashish 13165
        else:
13166
          iprot.skip(ftype)
13167
      elif fid == 2:
559 chandransh 13168
        if ftype == TType.I64:
2981 rajveer 13169
          self.itemId = iprot.readI64();
559 chandransh 13170
        else:
13171
          iprot.skip(ftype)
130 ashish 13172
      else:
13173
        iprot.skip(ftype)
13174
      iprot.readFieldEnd()
13175
    iprot.readStructEnd()
13176
 
13177
  def write(self, oprot):
13178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13180
      return
2981 rajveer 13181
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 13182
    if self.userId is not None:
2981 rajveer 13183
      oprot.writeFieldBegin('userId', TType.I64, 1)
13184
      oprot.writeI64(self.userId)
130 ashish 13185
      oprot.writeFieldEnd()
3431 rajveer 13186
    if self.itemId is not None:
2981 rajveer 13187
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13188
      oprot.writeI64(self.itemId)
130 ashish 13189
      oprot.writeFieldEnd()
13190
    oprot.writeFieldStop()
13191
    oprot.writeStructEnd()
13192
 
3431 rajveer 13193
  def validate(self):
13194
    return
13195
 
13196
 
130 ashish 13197
  def __repr__(self):
13198
    L = ['%s=%r' % (key, value)
13199
      for key, value in self.__dict__.iteritems()]
13200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13201
 
13202
  def __eq__(self, other):
13203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13204
 
13205
  def __ne__(self, other):
13206
    return not (self == other)
13207
 
2981 rajveer 13208
class updateMyResearch_result:
13209
  """
13210
  Attributes:
13211
   - success
13212
   - scx
13213
  """
559 chandransh 13214
 
13215
  thrift_spec = (
2981 rajveer 13216
    (0, TType.BOOL, 'success', None, None, ), # 0
13217
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 13218
  )
13219
 
2981 rajveer 13220
  def __init__(self, success=None, scx=None,):
13221
    self.success = success
13222
    self.scx = scx
13223
 
559 chandransh 13224
  def read(self, iprot):
13225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13227
      return
13228
    iprot.readStructBegin()
13229
    while True:
13230
      (fname, ftype, fid) = iprot.readFieldBegin()
13231
      if ftype == TType.STOP:
13232
        break
2981 rajveer 13233
      if fid == 0:
13234
        if ftype == TType.BOOL:
13235
          self.success = iprot.readBool();
13236
        else:
13237
          iprot.skip(ftype)
13238
      elif fid == 1:
13239
        if ftype == TType.STRUCT:
13240
          self.scx = WidgetException()
13241
          self.scx.read(iprot)
13242
        else:
13243
          iprot.skip(ftype)
559 chandransh 13244
      else:
13245
        iprot.skip(ftype)
13246
      iprot.readFieldEnd()
13247
    iprot.readStructEnd()
13248
 
13249
  def write(self, oprot):
13250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13252
      return
2981 rajveer 13253
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 13254
    if self.success is not None:
2981 rajveer 13255
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13256
      oprot.writeBool(self.success)
13257
      oprot.writeFieldEnd()
3431 rajveer 13258
    if self.scx is not None:
2981 rajveer 13259
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13260
      self.scx.write(oprot)
13261
      oprot.writeFieldEnd()
559 chandransh 13262
    oprot.writeFieldStop()
13263
    oprot.writeStructEnd()
13264
 
3431 rajveer 13265
  def validate(self):
13266
    return
13267
 
13268
 
559 chandransh 13269
  def __repr__(self):
13270
    L = ['%s=%r' % (key, value)
13271
      for key, value in self.__dict__.iteritems()]
13272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13273
 
13274
  def __eq__(self, other):
13275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13276
 
13277
  def __ne__(self, other):
13278
    return not (self == other)
13279
 
2981 rajveer 13280
class deleteItemFromMyResearch_args:
1596 ankur.sing 13281
  """
13282
  Attributes:
2981 rajveer 13283
   - userId
13284
   - itemId
1596 ankur.sing 13285
  """
559 chandransh 13286
 
1596 ankur.sing 13287
  thrift_spec = (
13288
    None, # 0
2981 rajveer 13289
    (1, TType.I64, 'userId', None, None, ), # 1
13290
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13291
  )
13292
 
2981 rajveer 13293
  def __init__(self, userId=None, itemId=None,):
13294
    self.userId = userId
13295
    self.itemId = itemId
1596 ankur.sing 13296
 
13297
  def read(self, iprot):
13298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13300
      return
13301
    iprot.readStructBegin()
13302
    while True:
13303
      (fname, ftype, fid) = iprot.readFieldBegin()
13304
      if ftype == TType.STOP:
13305
        break
13306
      if fid == 1:
2981 rajveer 13307
        if ftype == TType.I64:
13308
          self.userId = iprot.readI64();
1596 ankur.sing 13309
        else:
13310
          iprot.skip(ftype)
2981 rajveer 13311
      elif fid == 2:
13312
        if ftype == TType.I64:
13313
          self.itemId = iprot.readI64();
13314
        else:
13315
          iprot.skip(ftype)
1596 ankur.sing 13316
      else:
13317
        iprot.skip(ftype)
13318
      iprot.readFieldEnd()
13319
    iprot.readStructEnd()
13320
 
13321
  def write(self, oprot):
13322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13324
      return
2981 rajveer 13325
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13326
    if self.userId is not None:
2981 rajveer 13327
      oprot.writeFieldBegin('userId', TType.I64, 1)
13328
      oprot.writeI64(self.userId)
1596 ankur.sing 13329
      oprot.writeFieldEnd()
3431 rajveer 13330
    if self.itemId is not None:
2981 rajveer 13331
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13332
      oprot.writeI64(self.itemId)
13333
      oprot.writeFieldEnd()
1596 ankur.sing 13334
    oprot.writeFieldStop()
13335
    oprot.writeStructEnd()
13336
 
3431 rajveer 13337
  def validate(self):
13338
    return
13339
 
13340
 
1596 ankur.sing 13341
  def __repr__(self):
13342
    L = ['%s=%r' % (key, value)
13343
      for key, value in self.__dict__.iteritems()]
13344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13345
 
13346
  def __eq__(self, other):
13347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13348
 
13349
  def __ne__(self, other):
13350
    return not (self == other)
13351
 
2981 rajveer 13352
class deleteItemFromMyResearch_result:
1596 ankur.sing 13353
  """
13354
  Attributes:
2981 rajveer 13355
   - scx
1596 ankur.sing 13356
  """
13357
 
13358
  thrift_spec = (
2981 rajveer 13359
    None, # 0
13360
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13361
  )
13362
 
2981 rajveer 13363
  def __init__(self, scx=None,):
13364
    self.scx = scx
1596 ankur.sing 13365
 
13366
  def read(self, iprot):
13367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13369
      return
13370
    iprot.readStructBegin()
13371
    while True:
13372
      (fname, ftype, fid) = iprot.readFieldBegin()
13373
      if ftype == TType.STOP:
13374
        break
2981 rajveer 13375
      if fid == 1:
13376
        if ftype == TType.STRUCT:
13377
          self.scx = WidgetException()
13378
          self.scx.read(iprot)
1596 ankur.sing 13379
        else:
13380
          iprot.skip(ftype)
13381
      else:
13382
        iprot.skip(ftype)
13383
      iprot.readFieldEnd()
13384
    iprot.readStructEnd()
13385
 
13386
  def write(self, oprot):
13387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13389
      return
2981 rajveer 13390
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13391
    if self.scx is not None:
2981 rajveer 13392
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13393
      self.scx.write(oprot)
1596 ankur.sing 13394
      oprot.writeFieldEnd()
13395
    oprot.writeFieldStop()
13396
    oprot.writeStructEnd()
13397
 
3431 rajveer 13398
  def validate(self):
13399
    return
13400
 
13401
 
1596 ankur.sing 13402
  def __repr__(self):
13403
    L = ['%s=%r' % (key, value)
13404
      for key, value in self.__dict__.iteritems()]
13405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13406
 
13407
  def __eq__(self, other):
13408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13409
 
13410
  def __ne__(self, other):
13411
    return not (self == other)
13412
 
2981 rajveer 13413
class getBrowseHistoryItems_args:
1673 ankur.sing 13414
  """
13415
  Attributes:
2981 rajveer 13416
   - userId
1673 ankur.sing 13417
  """
1596 ankur.sing 13418
 
1673 ankur.sing 13419
  thrift_spec = (
13420
    None, # 0
2981 rajveer 13421
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13422
  )
13423
 
2981 rajveer 13424
  def __init__(self, userId=None,):
13425
    self.userId = userId
1673 ankur.sing 13426
 
13427
  def read(self, iprot):
13428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13430
      return
13431
    iprot.readStructBegin()
13432
    while True:
13433
      (fname, ftype, fid) = iprot.readFieldBegin()
13434
      if ftype == TType.STOP:
13435
        break
13436
      if fid == 1:
1891 ankur.sing 13437
        if ftype == TType.I64:
2981 rajveer 13438
          self.userId = iprot.readI64();
1891 ankur.sing 13439
        else:
13440
          iprot.skip(ftype)
1673 ankur.sing 13441
      else:
13442
        iprot.skip(ftype)
13443
      iprot.readFieldEnd()
13444
    iprot.readStructEnd()
13445
 
13446
  def write(self, oprot):
13447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13449
      return
2981 rajveer 13450
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13451
    if self.userId is not None:
2981 rajveer 13452
      oprot.writeFieldBegin('userId', TType.I64, 1)
13453
      oprot.writeI64(self.userId)
1673 ankur.sing 13454
      oprot.writeFieldEnd()
13455
    oprot.writeFieldStop()
13456
    oprot.writeStructEnd()
13457
 
3431 rajveer 13458
  def validate(self):
13459
    return
13460
 
13461
 
1673 ankur.sing 13462
  def __repr__(self):
13463
    L = ['%s=%r' % (key, value)
13464
      for key, value in self.__dict__.iteritems()]
13465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13466
 
13467
  def __eq__(self, other):
13468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13469
 
13470
  def __ne__(self, other):
13471
    return not (self == other)
13472
 
2981 rajveer 13473
class getBrowseHistoryItems_result:
1673 ankur.sing 13474
  """
13475
  Attributes:
13476
   - success
2981 rajveer 13477
   - scx
1673 ankur.sing 13478
  """
13479
 
13480
  thrift_spec = (
2981 rajveer 13481
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13482
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13483
  )
13484
 
2981 rajveer 13485
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13486
    self.success = success
2981 rajveer 13487
    self.scx = scx
1673 ankur.sing 13488
 
13489
  def read(self, iprot):
13490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13492
      return
13493
    iprot.readStructBegin()
13494
    while True:
13495
      (fname, ftype, fid) = iprot.readFieldBegin()
13496
      if ftype == TType.STOP:
13497
        break
13498
      if fid == 0:
13499
        if ftype == TType.LIST:
13500
          self.success = []
4668 varun.gupt 13501
          (_etype182, _size179) = iprot.readListBegin()
13502
          for _i183 in xrange(_size179):
13503
            _elem184 = iprot.readI64();
13504
            self.success.append(_elem184)
1673 ankur.sing 13505
          iprot.readListEnd()
13506
        else:
13507
          iprot.skip(ftype)
2981 rajveer 13508
      elif fid == 1:
13509
        if ftype == TType.STRUCT:
13510
          self.scx = WidgetException()
13511
          self.scx.read(iprot)
13512
        else:
13513
          iprot.skip(ftype)
1673 ankur.sing 13514
      else:
13515
        iprot.skip(ftype)
13516
      iprot.readFieldEnd()
13517
    iprot.readStructEnd()
13518
 
13519
  def write(self, oprot):
13520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13522
      return
2981 rajveer 13523
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13524
    if self.success is not None:
1673 ankur.sing 13525
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13526
      oprot.writeListBegin(TType.I64, len(self.success))
4668 varun.gupt 13527
      for iter185 in self.success:
13528
        oprot.writeI64(iter185)
1673 ankur.sing 13529
      oprot.writeListEnd()
13530
      oprot.writeFieldEnd()
3431 rajveer 13531
    if self.scx is not None:
2981 rajveer 13532
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13533
      self.scx.write(oprot)
2642 varun.gupt 13534
      oprot.writeFieldEnd()
13535
    oprot.writeFieldStop()
13536
    oprot.writeStructEnd()
13537
 
3431 rajveer 13538
  def validate(self):
13539
    return
13540
 
13541
 
2642 varun.gupt 13542
  def __repr__(self):
13543
    L = ['%s=%r' % (key, value)
13544
      for key, value in self.__dict__.iteritems()]
13545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13546
 
13547
  def __eq__(self, other):
13548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13549
 
13550
  def __ne__(self, other):
13551
    return not (self == other)
13552
 
2981 rajveer 13553
class updateBrowseHistory_args:
2642 varun.gupt 13554
  """
13555
  Attributes:
2981 rajveer 13556
   - userId
13557
   - itemId
2642 varun.gupt 13558
  """
13559
 
13560
  thrift_spec = (
13561
    None, # 0
2981 rajveer 13562
    (1, TType.I64, 'userId', None, None, ), # 1
13563
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13564
  )
13565
 
2981 rajveer 13566
  def __init__(self, userId=None, itemId=None,):
13567
    self.userId = userId
13568
    self.itemId = itemId
2642 varun.gupt 13569
 
13570
  def read(self, iprot):
13571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13573
      return
13574
    iprot.readStructBegin()
13575
    while True:
13576
      (fname, ftype, fid) = iprot.readFieldBegin()
13577
      if ftype == TType.STOP:
13578
        break
13579
      if fid == 1:
13580
        if ftype == TType.I64:
2981 rajveer 13581
          self.userId = iprot.readI64();
2642 varun.gupt 13582
        else:
13583
          iprot.skip(ftype)
13584
      elif fid == 2:
13585
        if ftype == TType.I64:
2981 rajveer 13586
          self.itemId = iprot.readI64();
2642 varun.gupt 13587
        else:
13588
          iprot.skip(ftype)
13589
      else:
13590
        iprot.skip(ftype)
13591
      iprot.readFieldEnd()
13592
    iprot.readStructEnd()
13593
 
13594
  def write(self, oprot):
13595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13597
      return
2981 rajveer 13598
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13599
    if self.userId is not None:
2981 rajveer 13600
      oprot.writeFieldBegin('userId', TType.I64, 1)
13601
      oprot.writeI64(self.userId)
2642 varun.gupt 13602
      oprot.writeFieldEnd()
3431 rajveer 13603
    if self.itemId is not None:
2981 rajveer 13604
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13605
      oprot.writeI64(self.itemId)
2642 varun.gupt 13606
      oprot.writeFieldEnd()
13607
    oprot.writeFieldStop()
13608
    oprot.writeStructEnd()
13609
 
3431 rajveer 13610
  def validate(self):
13611
    return
13612
 
13613
 
2642 varun.gupt 13614
  def __repr__(self):
13615
    L = ['%s=%r' % (key, value)
13616
      for key, value in self.__dict__.iteritems()]
13617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13618
 
13619
  def __eq__(self, other):
13620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13621
 
13622
  def __ne__(self, other):
13623
    return not (self == other)
13624
 
2981 rajveer 13625
class updateBrowseHistory_result:
2642 varun.gupt 13626
 
13627
  thrift_spec = (
13628
  )
13629
 
13630
  def read(self, iprot):
13631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13633
      return
13634
    iprot.readStructBegin()
13635
    while True:
13636
      (fname, ftype, fid) = iprot.readFieldBegin()
13637
      if ftype == TType.STOP:
13638
        break
13639
      else:
13640
        iprot.skip(ftype)
13641
      iprot.readFieldEnd()
13642
    iprot.readStructEnd()
13643
 
13644
  def write(self, oprot):
13645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13647
      return
2981 rajveer 13648
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13649
    oprot.writeFieldStop()
13650
    oprot.writeStructEnd()
13651
 
3431 rajveer 13652
  def validate(self):
13653
    return
13654
 
13655
 
2642 varun.gupt 13656
  def __repr__(self):
13657
    L = ['%s=%r' % (key, value)
13658
      for key, value in self.__dict__.iteritems()]
13659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13660
 
13661
  def __eq__(self, other):
13662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13663
 
13664
  def __ne__(self, other):
13665
    return not (self == other)
13666
 
3385 varun.gupt 13667
class getCartsWithCouponCount_args:
13668
  """
13669
  Attributes:
13670
   - couponCode
13671
  """
2642 varun.gupt 13672
 
3385 varun.gupt 13673
  thrift_spec = (
13674
    None, # 0
13675
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13676
  )
13677
 
13678
  def __init__(self, couponCode=None,):
13679
    self.couponCode = couponCode
13680
 
13681
  def read(self, iprot):
13682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13684
      return
13685
    iprot.readStructBegin()
13686
    while True:
13687
      (fname, ftype, fid) = iprot.readFieldBegin()
13688
      if ftype == TType.STOP:
13689
        break
13690
      if fid == 1:
13691
        if ftype == TType.STRING:
13692
          self.couponCode = iprot.readString();
13693
        else:
13694
          iprot.skip(ftype)
13695
      else:
13696
        iprot.skip(ftype)
13697
      iprot.readFieldEnd()
13698
    iprot.readStructEnd()
13699
 
13700
  def write(self, oprot):
13701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13703
      return
13704
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13705
    if self.couponCode is not None:
3385 varun.gupt 13706
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13707
      oprot.writeString(self.couponCode)
13708
      oprot.writeFieldEnd()
13709
    oprot.writeFieldStop()
13710
    oprot.writeStructEnd()
13711
 
3431 rajveer 13712
  def validate(self):
13713
    return
13714
 
13715
 
3385 varun.gupt 13716
  def __repr__(self):
13717
    L = ['%s=%r' % (key, value)
13718
      for key, value in self.__dict__.iteritems()]
13719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13720
 
13721
  def __eq__(self, other):
13722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13723
 
13724
  def __ne__(self, other):
13725
    return not (self == other)
13726
 
13727
class getCartsWithCouponCount_result:
13728
  """
13729
  Attributes:
13730
   - success
13731
  """
13732
 
13733
  thrift_spec = (
13734
    (0, TType.I64, 'success', None, None, ), # 0
13735
  )
13736
 
13737
  def __init__(self, success=None,):
13738
    self.success = success
13739
 
13740
  def read(self, iprot):
13741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13743
      return
13744
    iprot.readStructBegin()
13745
    while True:
13746
      (fname, ftype, fid) = iprot.readFieldBegin()
13747
      if ftype == TType.STOP:
13748
        break
13749
      if fid == 0:
13750
        if ftype == TType.I64:
13751
          self.success = iprot.readI64();
13752
        else:
13753
          iprot.skip(ftype)
13754
      else:
13755
        iprot.skip(ftype)
13756
      iprot.readFieldEnd()
13757
    iprot.readStructEnd()
13758
 
13759
  def write(self, oprot):
13760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13762
      return
13763
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13764
    if self.success is not None:
3385 varun.gupt 13765
      oprot.writeFieldBegin('success', TType.I64, 0)
13766
      oprot.writeI64(self.success)
13767
      oprot.writeFieldEnd()
13768
    oprot.writeFieldStop()
13769
    oprot.writeStructEnd()
13770
 
3431 rajveer 13771
  def validate(self):
13772
    return
13773
 
13774
 
3385 varun.gupt 13775
  def __repr__(self):
13776
    L = ['%s=%r' % (key, value)
13777
      for key, value in self.__dict__.iteritems()]
13778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13779
 
13780
  def __eq__(self, other):
13781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13782
 
13783
  def __ne__(self, other):
13784
    return not (self == other)
3499 mandeep.dh 13785
 
13786
class increaseTrustLevel_args:
13787
  """
13788
  Attributes:
13789
   - userId
13790
   - trustLevelDelta
13791
  """
13792
 
13793
  thrift_spec = (
13794
    None, # 0
13795
    (1, TType.I64, 'userId', None, None, ), # 1
13796
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13797
  )
13798
 
13799
  def __init__(self, userId=None, trustLevelDelta=None,):
13800
    self.userId = userId
13801
    self.trustLevelDelta = trustLevelDelta
13802
 
13803
  def read(self, iprot):
13804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13806
      return
13807
    iprot.readStructBegin()
13808
    while True:
13809
      (fname, ftype, fid) = iprot.readFieldBegin()
13810
      if ftype == TType.STOP:
13811
        break
13812
      if fid == 1:
13813
        if ftype == TType.I64:
13814
          self.userId = iprot.readI64();
13815
        else:
13816
          iprot.skip(ftype)
13817
      elif fid == 2:
13818
        if ftype == TType.DOUBLE:
13819
          self.trustLevelDelta = iprot.readDouble();
13820
        else:
13821
          iprot.skip(ftype)
13822
      else:
13823
        iprot.skip(ftype)
13824
      iprot.readFieldEnd()
13825
    iprot.readStructEnd()
13826
 
13827
  def write(self, oprot):
13828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13830
      return
13831
    oprot.writeStructBegin('increaseTrustLevel_args')
13832
    if self.userId is not None:
13833
      oprot.writeFieldBegin('userId', TType.I64, 1)
13834
      oprot.writeI64(self.userId)
13835
      oprot.writeFieldEnd()
13836
    if self.trustLevelDelta is not None:
13837
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13838
      oprot.writeDouble(self.trustLevelDelta)
13839
      oprot.writeFieldEnd()
13840
    oprot.writeFieldStop()
13841
    oprot.writeStructEnd()
13842
 
13843
  def validate(self):
13844
    return
13845
 
13846
 
13847
  def __repr__(self):
13848
    L = ['%s=%r' % (key, value)
13849
      for key, value in self.__dict__.iteritems()]
13850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13851
 
13852
  def __eq__(self, other):
13853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13854
 
13855
  def __ne__(self, other):
13856
    return not (self == other)
4668 varun.gupt 13857
 
13858
class showCODOption_args:
13859
  """
13860
  Attributes:
13861
   - cartId
13862
   - sourceId
13863
   - pincode
13864
  """
13865
 
13866
  thrift_spec = (
13867
    None, # 0
13868
    (1, TType.I64, 'cartId', None, None, ), # 1
13869
    (2, TType.I64, 'sourceId', None, None, ), # 2
13870
    (3, TType.STRING, 'pincode', None, None, ), # 3
13871
  )
13872
 
13873
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13874
    self.cartId = cartId
13875
    self.sourceId = sourceId
13876
    self.pincode = pincode
13877
 
13878
  def read(self, iprot):
13879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13881
      return
13882
    iprot.readStructBegin()
13883
    while True:
13884
      (fname, ftype, fid) = iprot.readFieldBegin()
13885
      if ftype == TType.STOP:
13886
        break
13887
      if fid == 1:
13888
        if ftype == TType.I64:
13889
          self.cartId = iprot.readI64();
13890
        else:
13891
          iprot.skip(ftype)
13892
      elif fid == 2:
13893
        if ftype == TType.I64:
13894
          self.sourceId = iprot.readI64();
13895
        else:
13896
          iprot.skip(ftype)
13897
      elif fid == 3:
13898
        if ftype == TType.STRING:
13899
          self.pincode = iprot.readString();
13900
        else:
13901
          iprot.skip(ftype)
13902
      else:
13903
        iprot.skip(ftype)
13904
      iprot.readFieldEnd()
13905
    iprot.readStructEnd()
13906
 
13907
  def write(self, oprot):
13908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13910
      return
13911
    oprot.writeStructBegin('showCODOption_args')
13912
    if self.cartId is not None:
13913
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13914
      oprot.writeI64(self.cartId)
13915
      oprot.writeFieldEnd()
13916
    if self.sourceId is not None:
13917
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13918
      oprot.writeI64(self.sourceId)
13919
      oprot.writeFieldEnd()
13920
    if self.pincode is not None:
13921
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13922
      oprot.writeString(self.pincode)
13923
      oprot.writeFieldEnd()
13924
    oprot.writeFieldStop()
13925
    oprot.writeStructEnd()
13926
 
13927
  def validate(self):
13928
    return
13929
 
13930
 
13931
  def __repr__(self):
13932
    L = ['%s=%r' % (key, value)
13933
      for key, value in self.__dict__.iteritems()]
13934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13935
 
13936
  def __eq__(self, other):
13937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13938
 
13939
  def __ne__(self, other):
13940
    return not (self == other)
13941
 
13942
class showCODOption_result:
13943
  """
13944
  Attributes:
13945
   - success
13946
  """
13947
 
13948
  thrift_spec = (
13949
    (0, TType.BOOL, 'success', None, None, ), # 0
13950
  )
13951
 
13952
  def __init__(self, success=None,):
13953
    self.success = success
13954
 
13955
  def read(self, iprot):
13956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13958
      return
13959
    iprot.readStructBegin()
13960
    while True:
13961
      (fname, ftype, fid) = iprot.readFieldBegin()
13962
      if ftype == TType.STOP:
13963
        break
13964
      if fid == 0:
13965
        if ftype == TType.BOOL:
13966
          self.success = iprot.readBool();
13967
        else:
13968
          iprot.skip(ftype)
13969
      else:
13970
        iprot.skip(ftype)
13971
      iprot.readFieldEnd()
13972
    iprot.readStructEnd()
13973
 
13974
  def write(self, oprot):
13975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13977
      return
13978
    oprot.writeStructBegin('showCODOption_result')
13979
    if self.success is not None:
13980
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13981
      oprot.writeBool(self.success)
13982
      oprot.writeFieldEnd()
13983
    oprot.writeFieldStop()
13984
    oprot.writeStructEnd()
13985
 
13986
  def validate(self):
13987
    return
13988
 
13989
 
13990
  def __repr__(self):
13991
    L = ['%s=%r' % (key, value)
13992
      for key, value in self.__dict__.iteritems()]
13993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13994
 
13995
  def __eq__(self, other):
13996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13997
 
13998
  def __ne__(self, other):
13999
    return not (self == other)