Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
5407 amar.kumar 204
  def removeUserCommunication(self, id):
205
    """
206
    Parameters:
207
     - id
208
    """
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
1976 varun.gupt 367
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
368
    """
369
    Parameters:
370
     - cartId
371
     - couponCode
372
     - totalPrice
373
     - discountedPrice
374
    """
375
    pass
376
 
377
  def removeCoupon(self, cartId):
378
    """
379
    Parameters:
380
     - cartId
381
    """
382
    pass
383
 
3554 varun.gupt 384
  def deleteDiscountsFromCart(self, cartId):
385
    """
386
    Deletes all the discounts associated with the cart
387
 
388
    Parameters:
389
     - cartId
390
    """
391
    pass
392
 
393
  def saveDiscounts(self, discounts):
394
    """
395
    Accepts a list of thrift objects of Discount type and saves them
396
 
397
    Parameters:
398
     - discounts
399
    """
400
    pass
401
 
5326 rajveer 402
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 403
    """
690 chandransh 404
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 405
 
559 chandransh 406
    Parameters:
407
     - cartId
2815 vikas 408
     - sessionSource
409
     - sessionStartTime
3858 vikas 410
     - firstSource
411
     - firstSourceTime
5326 rajveer 412
     - userId
559 chandransh 413
    """
414
    pass
415
 
3557 rajveer 416
  def validateCart(self, cartId, sourceId):
559 chandransh 417
    """
690 chandransh 418
    Validates that:
419
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 420
    2. All of the lines in the cart are active items.
690 chandransh 421
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 422
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 423
 
559 chandransh 424
    Parameters:
425
     - cartId
3557 rajveer 426
     - sourceId
559 chandransh 427
    """
428
    pass
429
 
690 chandransh 430
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 431
    """
690 chandransh 432
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 433
 
575 chandransh 434
    Parameters:
690 chandransh 435
     - fromCartId
436
     - toCartId
437
    """
438
    pass
439
 
440
  def checkOut(self, cartId):
441
    """
442
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 443
 
690 chandransh 444
    Parameters:
575 chandransh 445
     - cartId
446
    """
447
    pass
448
 
690 chandransh 449
  def resetCart(self, cartId, items):
559 chandransh 450
    """
690 chandransh 451
    The second parameter is a map of item ids and their quantities which have been successfully processed.
452
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 453
 
559 chandransh 454
    Parameters:
690 chandransh 455
     - cartId
456
     - items
559 chandransh 457
    """
458
    pass
459
 
2981 rajveer 460
  def getUserCount(self, userType):
559 chandransh 461
    """
2981 rajveer 462
    Returns number of registered users.
463
    If userType = null, then it returns count of all users, including anonymous
464
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
465
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 466
 
559 chandransh 467
    Parameters:
2981 rajveer 468
     - userType
559 chandransh 469
    """
470
    pass
471
 
2981 rajveer 472
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 473
    """
2981 rajveer 474
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
475
    If any of startDate or endDate is -1, then that filter is ignored.
476
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 477
 
478
 
559 chandransh 479
    Parameters:
2981 rajveer 480
     - userType
481
     - startDate
482
     - endDate
559 chandransh 483
    """
484
    pass
485
 
2981 rajveer 486
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 487
    """
488
    Parameters:
2981 rajveer 489
     - user_id
490
     - entity_id
491
     - slide
492
     - note
559 chandransh 493
    """
494
    pass
495
 
2981 rajveer 496
  def getUserNotes(self, user_id, entity_id):
559 chandransh 497
    """
498
    Parameters:
2981 rajveer 499
     - user_id
500
     - entity_id
559 chandransh 501
    """
502
    pass
503
 
2981 rajveer 504
  def getMyResearchItems(self, userId):
559 chandransh 505
    """
2981 rajveer 506
    Returns list of item ids in myresearch for the user
3431 rajveer 507
 
559 chandransh 508
    Parameters:
509
     - userId
510
    """
511
    pass
512
 
2981 rajveer 513
  def updateMyResearch(self, userId, itemId):
559 chandransh 514
    """
2981 rajveer 515
    add item to my research for a user
3431 rajveer 516
 
559 chandransh 517
    Parameters:
2981 rajveer 518
     - userId
519
     - itemId
559 chandransh 520
    """
521
    pass
522
 
2981 rajveer 523
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 524
    """
2981 rajveer 525
    delete item from my research for a user
3431 rajveer 526
 
1596 ankur.sing 527
    Parameters:
2981 rajveer 528
     - userId
529
     - itemId
1596 ankur.sing 530
    """
531
    pass
559 chandransh 532
 
2981 rajveer 533
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 534
    """
2981 rajveer 535
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 536
 
1673 ankur.sing 537
    Parameters:
2981 rajveer 538
     - userId
1673 ankur.sing 539
    """
540
    pass
1596 ankur.sing 541
 
2981 rajveer 542
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 543
    """
2981 rajveer 544
    add item to browse history for a user
3431 rajveer 545
 
2642 varun.gupt 546
    Parameters:
2981 rajveer 547
     - userId
548
     - itemId
2642 varun.gupt 549
    """
550
    pass
1673 ankur.sing 551
 
3385 varun.gupt 552
  def getCartsWithCouponCount(self, couponCode):
553
    """
554
    Returns count of Carts with given coupon applied
3431 rajveer 555
 
3385 varun.gupt 556
    Parameters:
557
     - couponCode
558
    """
559
    pass
2642 varun.gupt 560
 
3499 mandeep.dh 561
  def increaseTrustLevel(self, userId, trustLevelDelta):
562
    """
563
    Updates COD trust level of a user
3385 varun.gupt 564
 
3499 mandeep.dh 565
    Parameters:
566
     - userId
567
     - trustLevelDelta
568
    """
569
    pass
570
 
5407 amar.kumar 571
  def getTrustLevel(self, userId):
572
    """
573
    Get trust level of a user
574
 
575
    Parameters:
576
     - userId
577
    """
578
    pass
579
 
4668 varun.gupt 580
  def showCODOption(self, cartId, sourceId, pincode):
581
    """
582
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 583
 
4668 varun.gupt 584
    Parameters:
585
     - cartId
586
     - sourceId
587
     - pincode
588
    """
589
    pass
590
 
591
 
3376 rajveer 592
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 593
  """
594
  service
595
  """
596
  def __init__(self, iprot, oprot=None):
3376 rajveer 597
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 598
 
559 chandransh 599
  def createAnonymousUser(self, jsessionId):
94 ashish 600
    """
601
    Parameters:
559 chandransh 602
     - jsessionId
94 ashish 603
    """
559 chandransh 604
    self.send_createAnonymousUser(jsessionId)
605
    return self.recv_createAnonymousUser()
94 ashish 606
 
559 chandransh 607
  def send_createAnonymousUser(self, jsessionId):
608
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
609
    args = createAnonymousUser_args()
610
    args.jsessionId = jsessionId
94 ashish 611
    args.write(self._oprot)
612
    self._oprot.writeMessageEnd()
613
    self._oprot.trans.flush()
614
 
559 chandransh 615
  def recv_createAnonymousUser(self, ):
94 ashish 616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
617
    if mtype == TMessageType.EXCEPTION:
618
      x = TApplicationException()
619
      x.read(self._iprot)
620
      self._iprot.readMessageEnd()
621
      raise x
559 chandransh 622
    result = createAnonymousUser_result()
94 ashish 623
    result.read(self._iprot)
624
    self._iprot.readMessageEnd()
3431 rajveer 625
    if result.success is not None:
94 ashish 626
      return result.success
3431 rajveer 627
    if result.ucex is not None:
559 chandransh 628
      raise result.ucex
629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 630
 
559 chandransh 631
  def getUserById(self, userId):
94 ashish 632
    """
633
    Parameters:
634
     - userId
635
    """
559 chandransh 636
    self.send_getUserById(userId)
637
    return self.recv_getUserById()
94 ashish 638
 
559 chandransh 639
  def send_getUserById(self, userId):
640
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
641
    args = getUserById_args()
94 ashish 642
    args.userId = userId
643
    args.write(self._oprot)
644
    self._oprot.writeMessageEnd()
645
    self._oprot.trans.flush()
646
 
559 chandransh 647
  def recv_getUserById(self, ):
94 ashish 648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
649
    if mtype == TMessageType.EXCEPTION:
650
      x = TApplicationException()
651
      x.read(self._iprot)
652
      self._iprot.readMessageEnd()
653
      raise x
559 chandransh 654
    result = getUserById_result()
94 ashish 655
    result.read(self._iprot)
656
    self._iprot.readMessageEnd()
3431 rajveer 657
    if result.success is not None:
94 ashish 658
      return result.success
3431 rajveer 659
    if result.ucex is not None:
559 chandransh 660
      raise result.ucex
661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 662
 
5326 rajveer 663
  def getUserByCartId(self, cartId):
664
    """
665
    Parameters:
666
     - cartId
667
    """
668
    self.send_getUserByCartId(cartId)
669
    return self.recv_getUserByCartId()
670
 
671
  def send_getUserByCartId(self, cartId):
672
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
673
    args = getUserByCartId_args()
674
    args.cartId = cartId
675
    args.write(self._oprot)
676
    self._oprot.writeMessageEnd()
677
    self._oprot.trans.flush()
678
 
679
  def recv_getUserByCartId(self, ):
680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
681
    if mtype == TMessageType.EXCEPTION:
682
      x = TApplicationException()
683
      x.read(self._iprot)
684
      self._iprot.readMessageEnd()
685
      raise x
686
    result = getUserByCartId_result()
687
    result.read(self._iprot)
688
    self._iprot.readMessageEnd()
689
    if result.success is not None:
690
      return result.success
691
    if result.ucex is not None:
692
      raise result.ucex
693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
694
 
1491 vikas 695
  def getUserByEmail(self, email):
696
    """
697
    Parameters:
698
     - email
699
    """
700
    self.send_getUserByEmail(email)
701
    return self.recv_getUserByEmail()
702
 
703
  def send_getUserByEmail(self, email):
704
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
705
    args = getUserByEmail_args()
706
    args.email = email
707
    args.write(self._oprot)
708
    self._oprot.writeMessageEnd()
709
    self._oprot.trans.flush()
710
 
711
  def recv_getUserByEmail(self, ):
712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
713
    if mtype == TMessageType.EXCEPTION:
714
      x = TApplicationException()
715
      x.read(self._iprot)
716
      self._iprot.readMessageEnd()
717
      raise x
718
    result = getUserByEmail_result()
719
    result.read(self._iprot)
720
    self._iprot.readMessageEnd()
3431 rajveer 721
    if result.success is not None:
1491 vikas 722
      return result.success
3431 rajveer 723
    if result.ucex is not None:
1491 vikas 724
      raise result.ucex
725
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
726
 
3032 mandeep.dh 727
  def getUserByMobileNumber(self, mobileNumber):
728
    """
729
    Parameters:
730
     - mobileNumber
731
    """
732
    self.send_getUserByMobileNumber(mobileNumber)
733
    return self.recv_getUserByMobileNumber()
734
 
735
  def send_getUserByMobileNumber(self, mobileNumber):
736
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
737
    args = getUserByMobileNumber_args()
738
    args.mobileNumber = mobileNumber
739
    args.write(self._oprot)
740
    self._oprot.writeMessageEnd()
741
    self._oprot.trans.flush()
742
 
743
  def recv_getUserByMobileNumber(self, ):
744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
745
    if mtype == TMessageType.EXCEPTION:
746
      x = TApplicationException()
747
      x.read(self._iprot)
748
      self._iprot.readMessageEnd()
749
      raise x
750
    result = getUserByMobileNumber_result()
751
    result.read(self._iprot)
752
    self._iprot.readMessageEnd()
3431 rajveer 753
    if result.success is not None:
3032 mandeep.dh 754
      return result.success
3431 rajveer 755
    if result.ucex is not None:
3032 mandeep.dh 756
      raise result.ucex
757
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
758
 
559 chandransh 759
  def createUser(self, user):
94 ashish 760
    """
761
    Parameters:
559 chandransh 762
     - user
94 ashish 763
    """
559 chandransh 764
    self.send_createUser(user)
765
    return self.recv_createUser()
94 ashish 766
 
559 chandransh 767
  def send_createUser(self, user):
768
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
769
    args = createUser_args()
770
    args.user = user
94 ashish 771
    args.write(self._oprot)
772
    self._oprot.writeMessageEnd()
773
    self._oprot.trans.flush()
774
 
559 chandransh 775
  def recv_createUser(self, ):
94 ashish 776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
777
    if mtype == TMessageType.EXCEPTION:
778
      x = TApplicationException()
779
      x.read(self._iprot)
780
      self._iprot.readMessageEnd()
781
      raise x
559 chandransh 782
    result = createUser_result()
94 ashish 783
    result.read(self._iprot)
784
    self._iprot.readMessageEnd()
3431 rajveer 785
    if result.success is not None:
94 ashish 786
      return result.success
3431 rajveer 787
    if result.ucex is not None:
559 chandransh 788
      raise result.ucex
789
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 790
 
559 chandransh 791
  def updateUser(self, user):
94 ashish 792
    """
793
    Parameters:
559 chandransh 794
     - user
94 ashish 795
    """
559 chandransh 796
    self.send_updateUser(user)
797
    return self.recv_updateUser()
94 ashish 798
 
559 chandransh 799
  def send_updateUser(self, user):
800
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
801
    args = updateUser_args()
802
    args.user = user
94 ashish 803
    args.write(self._oprot)
804
    self._oprot.writeMessageEnd()
805
    self._oprot.trans.flush()
806
 
559 chandransh 807
  def recv_updateUser(self, ):
94 ashish 808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
809
    if mtype == TMessageType.EXCEPTION:
810
      x = TApplicationException()
811
      x.read(self._iprot)
812
      self._iprot.readMessageEnd()
813
      raise x
559 chandransh 814
    result = updateUser_result()
94 ashish 815
    result.read(self._iprot)
816
    self._iprot.readMessageEnd()
3431 rajveer 817
    if result.success is not None:
94 ashish 818
      return result.success
3431 rajveer 819
    if result.ucex is not None:
559 chandransh 820
      raise result.ucex
821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 822
 
559 chandransh 823
  def authenticateUser(self, email, password):
94 ashish 824
    """
825
    Parameters:
826
     - email
827
     - password
828
    """
559 chandransh 829
    self.send_authenticateUser(email, password)
122 ashish 830
    return self.recv_authenticateUser()
831
 
559 chandransh 832
  def send_authenticateUser(self, email, password):
122 ashish 833
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
834
    args = authenticateUser_args()
559 chandransh 835
    args.email = email
122 ashish 836
    args.password = password
837
    args.write(self._oprot)
838
    self._oprot.writeMessageEnd()
839
    self._oprot.trans.flush()
840
 
841
  def recv_authenticateUser(self, ):
842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
843
    if mtype == TMessageType.EXCEPTION:
844
      x = TApplicationException()
845
      x.read(self._iprot)
846
      self._iprot.readMessageEnd()
847
      raise x
848
    result = authenticateUser_result()
849
    result.read(self._iprot)
850
    self._iprot.readMessageEnd()
3431 rajveer 851
    if result.success is not None:
122 ashish 852
      return result.success
3431 rajveer 853
    if result.auex is not None:
559 chandransh 854
      raise result.auex
122 ashish 855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
856
 
94 ashish 857
  def userExists(self, email):
858
    """
859
    Parameters:
860
     - email
861
    """
862
    self.send_userExists(email)
863
    return self.recv_userExists()
864
 
865
  def send_userExists(self, email):
866
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
867
    args = userExists_args()
868
    args.email = email
869
    args.write(self._oprot)
870
    self._oprot.writeMessageEnd()
871
    self._oprot.trans.flush()
872
 
873
  def recv_userExists(self, ):
874
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
875
    if mtype == TMessageType.EXCEPTION:
876
      x = TApplicationException()
877
      x.read(self._iprot)
878
      self._iprot.readMessageEnd()
879
      raise x
880
    result = userExists_result()
881
    result.read(self._iprot)
882
    self._iprot.readMessageEnd()
3431 rajveer 883
    if result.success is not None:
94 ashish 884
      return result.success
3431 rajveer 885
    if result.ucx is not None:
94 ashish 886
      raise result.ucx
887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
888
 
567 rajveer 889
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 890
    """
891
    Parameters:
892
     - userId
893
     - address
513 rajveer 894
     - setDefault
94 ashish 895
    """
567 rajveer 896
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 897
    return self.recv_addAddressForUser()
898
 
567 rajveer 899
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 900
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
901
    args = addAddressForUser_args()
559 chandransh 902
    args.userId = userId
94 ashish 903
    args.address = address
513 rajveer 904
    args.setDefault = setDefault
94 ashish 905
    args.write(self._oprot)
906
    self._oprot.writeMessageEnd()
907
    self._oprot.trans.flush()
908
 
909
  def recv_addAddressForUser(self, ):
910
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
911
    if mtype == TMessageType.EXCEPTION:
912
      x = TApplicationException()
913
      x.read(self._iprot)
914
      self._iprot.readMessageEnd()
915
      raise x
916
    result = addAddressForUser_result()
917
    result.read(self._iprot)
918
    self._iprot.readMessageEnd()
3431 rajveer 919
    if result.success is not None:
94 ashish 920
      return result.success
3431 rajveer 921
    if result.ucx is not None:
94 ashish 922
      raise result.ucx
923
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
924
 
925
  def removeAddressForUser(self, userid, addressId):
926
    """
927
    Parameters:
928
     - userid
929
     - addressId
930
    """
931
    self.send_removeAddressForUser(userid, addressId)
932
    return self.recv_removeAddressForUser()
933
 
934
  def send_removeAddressForUser(self, userid, addressId):
935
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
936
    args = removeAddressForUser_args()
937
    args.userid = userid
938
    args.addressId = addressId
939
    args.write(self._oprot)
940
    self._oprot.writeMessageEnd()
941
    self._oprot.trans.flush()
942
 
943
  def recv_removeAddressForUser(self, ):
944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
945
    if mtype == TMessageType.EXCEPTION:
946
      x = TApplicationException()
947
      x.read(self._iprot)
948
      self._iprot.readMessageEnd()
949
      raise x
950
    result = removeAddressForUser_result()
951
    result.read(self._iprot)
952
    self._iprot.readMessageEnd()
3431 rajveer 953
    if result.success is not None:
94 ashish 954
      return result.success
3431 rajveer 955
    if result.ucx is not None:
94 ashish 956
      raise result.ucx
957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
958
 
959
  def setUserAsLoggedIn(self, userId, timestamp):
960
    """
961
    Parameters:
962
     - userId
963
     - timestamp
964
    """
965
    self.send_setUserAsLoggedIn(userId, timestamp)
966
    return self.recv_setUserAsLoggedIn()
967
 
968
  def send_setUserAsLoggedIn(self, userId, timestamp):
969
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
970
    args = setUserAsLoggedIn_args()
971
    args.userId = userId
972
    args.timestamp = timestamp
973
    args.write(self._oprot)
974
    self._oprot.writeMessageEnd()
975
    self._oprot.trans.flush()
976
 
977
  def recv_setUserAsLoggedIn(self, ):
978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
979
    if mtype == TMessageType.EXCEPTION:
980
      x = TApplicationException()
981
      x.read(self._iprot)
982
      self._iprot.readMessageEnd()
983
      raise x
984
    result = setUserAsLoggedIn_result()
985
    result.read(self._iprot)
986
    self._iprot.readMessageEnd()
3431 rajveer 987
    if result.success is not None:
94 ashish 988
      return result.success
3431 rajveer 989
    if result.ucx is not None:
94 ashish 990
      raise result.ucx
991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
992
 
993
  def setUserAsLoggedOut(self, userid, timestamp):
994
    """
995
    Parameters:
996
     - userid
997
     - timestamp
998
    """
999
    self.send_setUserAsLoggedOut(userid, timestamp)
1000
    return self.recv_setUserAsLoggedOut()
1001
 
1002
  def send_setUserAsLoggedOut(self, userid, timestamp):
1003
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1004
    args = setUserAsLoggedOut_args()
1005
    args.userid = userid
1006
    args.timestamp = timestamp
1007
    args.write(self._oprot)
1008
    self._oprot.writeMessageEnd()
1009
    self._oprot.trans.flush()
1010
 
1011
  def recv_setUserAsLoggedOut(self, ):
1012
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1013
    if mtype == TMessageType.EXCEPTION:
1014
      x = TApplicationException()
1015
      x.read(self._iprot)
1016
      self._iprot.readMessageEnd()
1017
      raise x
1018
    result = setUserAsLoggedOut_result()
1019
    result.read(self._iprot)
1020
    self._iprot.readMessageEnd()
3431 rajveer 1021
    if result.success is not None:
94 ashish 1022
      return result.success
3431 rajveer 1023
    if result.ucx is not None:
94 ashish 1024
      raise result.ucx
1025
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1026
 
504 rajveer 1027
  def setDefaultAddress(self, userid, addressId):
1028
    """
1029
    Parameters:
1030
     - userid
1031
     - addressId
1032
    """
1033
    self.send_setDefaultAddress(userid, addressId)
1034
    return self.recv_setDefaultAddress()
1035
 
1036
  def send_setDefaultAddress(self, userid, addressId):
1037
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1038
    args = setDefaultAddress_args()
1039
    args.userid = userid
1040
    args.addressId = addressId
1041
    args.write(self._oprot)
1042
    self._oprot.writeMessageEnd()
1043
    self._oprot.trans.flush()
1044
 
1045
  def recv_setDefaultAddress(self, ):
1046
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1047
    if mtype == TMessageType.EXCEPTION:
1048
      x = TApplicationException()
1049
      x.read(self._iprot)
1050
      self._iprot.readMessageEnd()
1051
      raise x
1052
    result = setDefaultAddress_result()
1053
    result.read(self._iprot)
1054
    self._iprot.readMessageEnd()
3431 rajveer 1055
    if result.success is not None:
504 rajveer 1056
      return result.success
3431 rajveer 1057
    if result.ucx is not None:
504 rajveer 1058
      raise result.ucx
1059
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1060
 
594 rajveer 1061
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1062
    """
1063
    Parameters:
1064
     - userid
594 rajveer 1065
     - oldPassword
1066
     - newPassword
94 ashish 1067
    """
594 rajveer 1068
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1069
    return self.recv_updatePassword()
1070
 
594 rajveer 1071
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1072
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1073
    args = updatePassword_args()
1074
    args.userid = userid
594 rajveer 1075
    args.oldPassword = oldPassword
1076
    args.newPassword = newPassword
94 ashish 1077
    args.write(self._oprot)
1078
    self._oprot.writeMessageEnd()
1079
    self._oprot.trans.flush()
1080
 
1081
  def recv_updatePassword(self, ):
1082
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1083
    if mtype == TMessageType.EXCEPTION:
1084
      x = TApplicationException()
1085
      x.read(self._iprot)
1086
      self._iprot.readMessageEnd()
1087
      raise x
1088
    result = updatePassword_result()
1089
    result.read(self._iprot)
1090
    self._iprot.readMessageEnd()
3431 rajveer 1091
    if result.success is not None:
94 ashish 1092
      return result.success
3431 rajveer 1093
    if result.ucx is not None:
94 ashish 1094
      raise result.ucx
1095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1096
 
884 rajveer 1097
  def forgotPassword(self, email, newPassword):
581 rajveer 1098
    """
1099
    Parameters:
1100
     - email
884 rajveer 1101
     - newPassword
581 rajveer 1102
    """
884 rajveer 1103
    self.send_forgotPassword(email, newPassword)
581 rajveer 1104
    return self.recv_forgotPassword()
1105
 
884 rajveer 1106
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1107
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1108
    args = forgotPassword_args()
1109
    args.email = email
884 rajveer 1110
    args.newPassword = newPassword
581 rajveer 1111
    args.write(self._oprot)
1112
    self._oprot.writeMessageEnd()
1113
    self._oprot.trans.flush()
1114
 
1115
  def recv_forgotPassword(self, ):
1116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1117
    if mtype == TMessageType.EXCEPTION:
1118
      x = TApplicationException()
1119
      x.read(self._iprot)
1120
      self._iprot.readMessageEnd()
1121
      raise x
1122
    result = forgotPassword_result()
1123
    result.read(self._iprot)
1124
    self._iprot.readMessageEnd()
3431 rajveer 1125
    if result.success is not None:
581 rajveer 1126
      return result.success
3431 rajveer 1127
    if result.ucx is not None:
581 rajveer 1128
      raise result.ucx
1129
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1130
 
594 rajveer 1131
  def getAllAddressesForUser(self, userId):
1132
    """
1133
    Parameters:
1134
     - userId
1135
    """
1136
    self.send_getAllAddressesForUser(userId)
1137
    return self.recv_getAllAddressesForUser()
1138
 
1139
  def send_getAllAddressesForUser(self, userId):
1140
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1141
    args = getAllAddressesForUser_args()
1142
    args.userId = userId
1143
    args.write(self._oprot)
1144
    self._oprot.writeMessageEnd()
1145
    self._oprot.trans.flush()
1146
 
1147
  def recv_getAllAddressesForUser(self, ):
1148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1149
    if mtype == TMessageType.EXCEPTION:
1150
      x = TApplicationException()
1151
      x.read(self._iprot)
1152
      self._iprot.readMessageEnd()
1153
      raise x
1154
    result = getAllAddressesForUser_result()
1155
    result.read(self._iprot)
1156
    self._iprot.readMessageEnd()
3431 rajveer 1157
    if result.success is not None:
594 rajveer 1158
      return result.success
3431 rajveer 1159
    if result.ucx is not None:
594 rajveer 1160
      raise result.ucx
1161
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1162
 
1894 vikas 1163
  def getAddressById(self, addressId):
1164
    """
1165
    Parameters:
1166
     - addressId
1167
    """
1168
    self.send_getAddressById(addressId)
1169
    return self.recv_getAddressById()
1170
 
1171
  def send_getAddressById(self, addressId):
1172
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1173
    args = getAddressById_args()
1174
    args.addressId = addressId
1175
    args.write(self._oprot)
1176
    self._oprot.writeMessageEnd()
1177
    self._oprot.trans.flush()
1178
 
1179
  def recv_getAddressById(self, ):
1180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1181
    if mtype == TMessageType.EXCEPTION:
1182
      x = TApplicationException()
1183
      x.read(self._iprot)
1184
      self._iprot.readMessageEnd()
1185
      raise x
1186
    result = getAddressById_result()
1187
    result.read(self._iprot)
1188
    self._iprot.readMessageEnd()
3431 rajveer 1189
    if result.success is not None:
1894 vikas 1190
      return result.success
3431 rajveer 1191
    if result.ucx is not None:
1894 vikas 1192
      raise result.ucx
1193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1194
 
594 rajveer 1195
  def getDefaultAddressId(self, userId):
1196
    """
1197
    Parameters:
1198
     - userId
1199
    """
1200
    self.send_getDefaultAddressId(userId)
1201
    return self.recv_getDefaultAddressId()
1202
 
1203
  def send_getDefaultAddressId(self, userId):
1204
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1205
    args = getDefaultAddressId_args()
1206
    args.userId = userId
1207
    args.write(self._oprot)
1208
    self._oprot.writeMessageEnd()
1209
    self._oprot.trans.flush()
1210
 
1211
  def recv_getDefaultAddressId(self, ):
1212
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1213
    if mtype == TMessageType.EXCEPTION:
1214
      x = TApplicationException()
1215
      x.read(self._iprot)
1216
      self._iprot.readMessageEnd()
1217
      raise x
1218
    result = getDefaultAddressId_result()
1219
    result.read(self._iprot)
1220
    self._iprot.readMessageEnd()
3431 rajveer 1221
    if result.success is not None:
594 rajveer 1222
      return result.success
3431 rajveer 1223
    if result.ucx is not None:
594 rajveer 1224
      raise result.ucx
1225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1226
 
785 rajveer 1227
  def getDefaultPincode(self, userId):
1228
    """
1229
    Parameters:
1230
     - userId
1231
    """
1232
    self.send_getDefaultPincode(userId)
1233
    return self.recv_getDefaultPincode()
1234
 
1235
  def send_getDefaultPincode(self, userId):
1236
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1237
    args = getDefaultPincode_args()
1238
    args.userId = userId
1239
    args.write(self._oprot)
1240
    self._oprot.writeMessageEnd()
1241
    self._oprot.trans.flush()
1242
 
1243
  def recv_getDefaultPincode(self, ):
1244
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1245
    if mtype == TMessageType.EXCEPTION:
1246
      x = TApplicationException()
1247
      x.read(self._iprot)
1248
      self._iprot.readMessageEnd()
1249
      raise x
1250
    result = getDefaultPincode_result()
1251
    result.read(self._iprot)
1252
    self._iprot.readMessageEnd()
3431 rajveer 1253
    if result.success is not None:
785 rajveer 1254
      return result.success
3431 rajveer 1255
    if result.ucx is not None:
785 rajveer 1256
      raise result.ucx
1257
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1258
 
1274 varun.gupt 1259
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1260
    """
1261
    Parameters:
1262
     - userId
1263
     - replyTo
1264
     - communicationType
1265
     - orderId
1266
     - airwaybillNo
1267
     - productName
1268
     - subject
1269
     - message
1270
    """
1271
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1272
    return self.recv_saveUserCommunication()
1273
 
1274
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1275
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1276
    args = saveUserCommunication_args()
1277
    args.userId = userId
1278
    args.replyTo = replyTo
1279
    args.communicationType = communicationType
1280
    args.orderId = orderId
1281
    args.airwaybillNo = airwaybillNo
1282
    args.productName = productName
1283
    args.subject = subject
1284
    args.message = message
1285
    args.write(self._oprot)
1286
    self._oprot.writeMessageEnd()
1287
    self._oprot.trans.flush()
1288
 
1289
  def recv_saveUserCommunication(self, ):
1290
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1291
    if mtype == TMessageType.EXCEPTION:
1292
      x = TApplicationException()
1293
      x.read(self._iprot)
1294
      self._iprot.readMessageEnd()
1295
      raise x
1296
    result = saveUserCommunication_result()
1297
    result.read(self._iprot)
1298
    self._iprot.readMessageEnd()
3431 rajveer 1299
    if result.success is not None:
1274 varun.gupt 1300
      return result.success
3431 rajveer 1301
    if result.ucx is not None:
1274 varun.gupt 1302
      raise result.ucx
1303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1304
 
1590 varun.gupt 1305
  def getUserCommunicationById(self, id):
1306
    """
1307
    Parameters:
1308
     - id
1309
    """
1310
    self.send_getUserCommunicationById(id)
1311
    return self.recv_getUserCommunicationById()
1312
 
1313
  def send_getUserCommunicationById(self, id):
1314
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1315
    args = getUserCommunicationById_args()
1316
    args.id = id
1317
    args.write(self._oprot)
1318
    self._oprot.writeMessageEnd()
1319
    self._oprot.trans.flush()
1320
 
1321
  def recv_getUserCommunicationById(self, ):
1322
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1323
    if mtype == TMessageType.EXCEPTION:
1324
      x = TApplicationException()
1325
      x.read(self._iprot)
1326
      self._iprot.readMessageEnd()
1327
      raise x
1328
    result = getUserCommunicationById_result()
1329
    result.read(self._iprot)
1330
    self._iprot.readMessageEnd()
3431 rajveer 1331
    if result.success is not None:
1590 varun.gupt 1332
      return result.success
3431 rajveer 1333
    if result.ucx is not None:
1590 varun.gupt 1334
      raise result.ucx
1335
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1336
 
1337
  def getUserCommunicationByUser(self, userId):
1338
    """
1339
    Parameters:
1340
     - userId
1341
    """
1342
    self.send_getUserCommunicationByUser(userId)
1343
    return self.recv_getUserCommunicationByUser()
1344
 
1345
  def send_getUserCommunicationByUser(self, userId):
1346
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1347
    args = getUserCommunicationByUser_args()
1348
    args.userId = userId
1349
    args.write(self._oprot)
1350
    self._oprot.writeMessageEnd()
1351
    self._oprot.trans.flush()
1352
 
1353
  def recv_getUserCommunicationByUser(self, ):
1354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1355
    if mtype == TMessageType.EXCEPTION:
1356
      x = TApplicationException()
1357
      x.read(self._iprot)
1358
      self._iprot.readMessageEnd()
1359
      raise x
1360
    result = getUserCommunicationByUser_result()
1361
    result.read(self._iprot)
1362
    self._iprot.readMessageEnd()
3431 rajveer 1363
    if result.success is not None:
1590 varun.gupt 1364
      return result.success
3431 rajveer 1365
    if result.ucx is not None:
1590 varun.gupt 1366
      raise result.ucx
1367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1368
 
1369
  def getAllUserCommunications(self, ):
1370
    self.send_getAllUserCommunications()
1371
    return self.recv_getAllUserCommunications()
1372
 
1373
  def send_getAllUserCommunications(self, ):
1374
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1375
    args = getAllUserCommunications_args()
1376
    args.write(self._oprot)
1377
    self._oprot.writeMessageEnd()
1378
    self._oprot.trans.flush()
1379
 
1380
  def recv_getAllUserCommunications(self, ):
1381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1382
    if mtype == TMessageType.EXCEPTION:
1383
      x = TApplicationException()
1384
      x.read(self._iprot)
1385
      self._iprot.readMessageEnd()
1386
      raise x
1387
    result = getAllUserCommunications_result()
1388
    result.read(self._iprot)
1389
    self._iprot.readMessageEnd()
3431 rajveer 1390
    if result.success is not None:
1590 varun.gupt 1391
      return result.success
3431 rajveer 1392
    if result.ucx is not None:
1590 varun.gupt 1393
      raise result.ucx
1394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1395
 
5407 amar.kumar 1396
  def removeUserCommunication(self, id):
1397
    """
1398
    Parameters:
1399
     - id
1400
    """
1401
    self.send_removeUserCommunication(id)
1402
    self.recv_removeUserCommunication()
1403
 
1404
  def send_removeUserCommunication(self, id):
1405
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1406
    args = removeUserCommunication_args()
1407
    args.id = id
1408
    args.write(self._oprot)
1409
    self._oprot.writeMessageEnd()
1410
    self._oprot.trans.flush()
1411
 
1412
  def recv_removeUserCommunication(self, ):
1413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1414
    if mtype == TMessageType.EXCEPTION:
1415
      x = TApplicationException()
1416
      x.read(self._iprot)
1417
      self._iprot.readMessageEnd()
1418
      raise x
1419
    result = removeUserCommunication_result()
1420
    result.read(self._iprot)
1421
    self._iprot.readMessageEnd()
1422
    if result.ucx is not None:
1423
      raise result.ucx
1424
    return
1425
 
1859 vikas 1426
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1427
    """
1428
    Parameters:
1429
     - name
1859 vikas 1430
     - addedOn
1845 vikas 1431
    """
1859 vikas 1432
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1433
    return self.recv_createMasterAffiliate()
1434
 
1859 vikas 1435
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1436
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1437
    args = createMasterAffiliate_args()
1438
    args.name = name
1859 vikas 1439
    args.addedOn = addedOn
1845 vikas 1440
    args.write(self._oprot)
1441
    self._oprot.writeMessageEnd()
1442
    self._oprot.trans.flush()
1443
 
1444
  def recv_createMasterAffiliate(self, ):
1445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1446
    if mtype == TMessageType.EXCEPTION:
1447
      x = TApplicationException()
1448
      x.read(self._iprot)
1449
      self._iprot.readMessageEnd()
1450
      raise x
1451
    result = createMasterAffiliate_result()
1452
    result.read(self._iprot)
1453
    self._iprot.readMessageEnd()
3431 rajveer 1454
    if result.success is not None:
1845 vikas 1455
      return result.success
3431 rajveer 1456
    if result.utx is not None:
1845 vikas 1457
      raise result.utx
1458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1459
 
1899 vikas 1460
  def getAllMasterAffiliates(self, ):
1461
    self.send_getAllMasterAffiliates()
1462
    return self.recv_getAllMasterAffiliates()
1463
 
1464
  def send_getAllMasterAffiliates(self, ):
1465
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1466
    args = getAllMasterAffiliates_args()
1467
    args.write(self._oprot)
1468
    self._oprot.writeMessageEnd()
1469
    self._oprot.trans.flush()
1470
 
1471
  def recv_getAllMasterAffiliates(self, ):
1472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1473
    if mtype == TMessageType.EXCEPTION:
1474
      x = TApplicationException()
1475
      x.read(self._iprot)
1476
      self._iprot.readMessageEnd()
1477
      raise x
1478
    result = getAllMasterAffiliates_result()
1479
    result.read(self._iprot)
1480
    self._iprot.readMessageEnd()
3431 rajveer 1481
    if result.success is not None:
1899 vikas 1482
      return result.success
3431 rajveer 1483
    if result.utx is not None:
1899 vikas 1484
      raise result.utx
1485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1486
 
1845 vikas 1487
  def getMasterAffiliateById(self, id):
1488
    """
1489
    Parameters:
1490
     - id
1491
    """
1492
    self.send_getMasterAffiliateById(id)
1493
    return self.recv_getMasterAffiliateById()
1494
 
1495
  def send_getMasterAffiliateById(self, id):
1496
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1497
    args = getMasterAffiliateById_args()
1498
    args.id = id
1499
    args.write(self._oprot)
1500
    self._oprot.writeMessageEnd()
1501
    self._oprot.trans.flush()
1502
 
1503
  def recv_getMasterAffiliateById(self, ):
1504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1505
    if mtype == TMessageType.EXCEPTION:
1506
      x = TApplicationException()
1507
      x.read(self._iprot)
1508
      self._iprot.readMessageEnd()
1509
      raise x
1510
    result = getMasterAffiliateById_result()
1511
    result.read(self._iprot)
1512
    self._iprot.readMessageEnd()
3431 rajveer 1513
    if result.success is not None:
1845 vikas 1514
      return result.success
3431 rajveer 1515
    if result.utx is not None:
1845 vikas 1516
      raise result.utx
1517
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1518
 
1519
  def getMasterAffiliateByName(self, name):
1520
    """
1521
    Parameters:
1522
     - name
1523
    """
1524
    self.send_getMasterAffiliateByName(name)
1525
    return self.recv_getMasterAffiliateByName()
1526
 
1527
  def send_getMasterAffiliateByName(self, name):
1528
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1529
    args = getMasterAffiliateByName_args()
1530
    args.name = name
1531
    args.write(self._oprot)
1532
    self._oprot.writeMessageEnd()
1533
    self._oprot.trans.flush()
1534
 
1535
  def recv_getMasterAffiliateByName(self, ):
1536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1537
    if mtype == TMessageType.EXCEPTION:
1538
      x = TApplicationException()
1539
      x.read(self._iprot)
1540
      self._iprot.readMessageEnd()
1541
      raise x
1542
    result = getMasterAffiliateByName_result()
1543
    result.read(self._iprot)
1544
    self._iprot.readMessageEnd()
3431 rajveer 1545
    if result.success is not None:
1845 vikas 1546
      return result.success
3431 rajveer 1547
    if result.utx is not None:
1845 vikas 1548
      raise result.utx
1549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1550
 
1859 vikas 1551
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1552
    """
1553
    Parameters:
1554
     - name
1555
     - url
1556
     - masterAffiliateId
1859 vikas 1557
     - addedOn
1845 vikas 1558
    """
1859 vikas 1559
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1560
    return self.recv_createAffiliate()
1561
 
1859 vikas 1562
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1563
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1564
    args = createAffiliate_args()
1565
    args.name = name
1566
    args.url = url
1567
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1568
    args.addedOn = addedOn
1845 vikas 1569
    args.write(self._oprot)
1570
    self._oprot.writeMessageEnd()
1571
    self._oprot.trans.flush()
1572
 
1573
  def recv_createAffiliate(self, ):
1574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1575
    if mtype == TMessageType.EXCEPTION:
1576
      x = TApplicationException()
1577
      x.read(self._iprot)
1578
      self._iprot.readMessageEnd()
1579
      raise x
1580
    result = createAffiliate_result()
1581
    result.read(self._iprot)
1582
    self._iprot.readMessageEnd()
3431 rajveer 1583
    if result.success is not None:
1845 vikas 1584
      return result.success
3431 rajveer 1585
    if result.utx is not None:
1845 vikas 1586
      raise result.utx
1587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1588
 
1589
  def getAffiliateById(self, id):
1590
    """
1591
    Parameters:
1592
     - id
1593
    """
1594
    self.send_getAffiliateById(id)
1595
    return self.recv_getAffiliateById()
1596
 
1597
  def send_getAffiliateById(self, id):
1598
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1599
    args = getAffiliateById_args()
1600
    args.id = id
1601
    args.write(self._oprot)
1602
    self._oprot.writeMessageEnd()
1603
    self._oprot.trans.flush()
1604
 
1605
  def recv_getAffiliateById(self, ):
1606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1607
    if mtype == TMessageType.EXCEPTION:
1608
      x = TApplicationException()
1609
      x.read(self._iprot)
1610
      self._iprot.readMessageEnd()
1611
      raise x
1612
    result = getAffiliateById_result()
1613
    result.read(self._iprot)
1614
    self._iprot.readMessageEnd()
3431 rajveer 1615
    if result.success is not None:
1845 vikas 1616
      return result.success
3431 rajveer 1617
    if result.utx is not None:
1845 vikas 1618
      raise result.utx
1619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1620
 
1621
  def getAffiliateByName(self, name):
1622
    """
1623
    Parameters:
1624
     - name
1625
    """
1626
    self.send_getAffiliateByName(name)
1627
    return self.recv_getAffiliateByName()
1628
 
1629
  def send_getAffiliateByName(self, name):
1630
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1631
    args = getAffiliateByName_args()
1632
    args.name = name
1633
    args.write(self._oprot)
1634
    self._oprot.writeMessageEnd()
1635
    self._oprot.trans.flush()
1636
 
1637
  def recv_getAffiliateByName(self, ):
1638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1639
    if mtype == TMessageType.EXCEPTION:
1640
      x = TApplicationException()
1641
      x.read(self._iprot)
1642
      self._iprot.readMessageEnd()
1643
      raise x
1644
    result = getAffiliateByName_result()
1645
    result.read(self._iprot)
1646
    self._iprot.readMessageEnd()
3431 rajveer 1647
    if result.success is not None:
1845 vikas 1648
      return result.success
3431 rajveer 1649
    if result.utx is not None:
1845 vikas 1650
      raise result.utx
1651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1652
 
1996 vikas 1653
  def getTrackerById(self, id):
1845 vikas 1654
    """
1655
    Parameters:
1656
     - id
1657
    """
1996 vikas 1658
    self.send_getTrackerById(id)
1845 vikas 1659
    return self.recv_getTrackerById()
1660
 
1996 vikas 1661
  def send_getTrackerById(self, id):
1845 vikas 1662
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1663
    args = getTrackerById_args()
1996 vikas 1664
    args.id = id
1845 vikas 1665
    args.write(self._oprot)
1666
    self._oprot.writeMessageEnd()
1667
    self._oprot.trans.flush()
1668
 
1669
  def recv_getTrackerById(self, ):
1670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1671
    if mtype == TMessageType.EXCEPTION:
1672
      x = TApplicationException()
1673
      x.read(self._iprot)
1674
      self._iprot.readMessageEnd()
1675
      raise x
1676
    result = getTrackerById_result()
1677
    result.read(self._iprot)
1678
    self._iprot.readMessageEnd()
3431 rajveer 1679
    if result.success is not None:
1845 vikas 1680
      return result.success
3431 rajveer 1681
    if result.utx is not None:
1845 vikas 1682
      raise result.utx
1683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1684
 
1996 vikas 1685
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1686
    """
1687
    Parameters:
1996 vikas 1688
     - id
1845 vikas 1689
    """
1996 vikas 1690
    self.send_getAffiliatesByMasterAffiliate(id)
1691
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1692
 
1996 vikas 1693
  def send_getAffiliatesByMasterAffiliate(self, id):
1694
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1695
    args = getAffiliatesByMasterAffiliate_args()
1696
    args.id = id
1845 vikas 1697
    args.write(self._oprot)
1698
    self._oprot.writeMessageEnd()
1699
    self._oprot.trans.flush()
1700
 
1996 vikas 1701
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1703
    if mtype == TMessageType.EXCEPTION:
1704
      x = TApplicationException()
1705
      x.read(self._iprot)
1706
      self._iprot.readMessageEnd()
1707
      raise x
1996 vikas 1708
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1709
    result.read(self._iprot)
1710
    self._iprot.readMessageEnd()
3431 rajveer 1711
    if result.success is not None:
1845 vikas 1712
      return result.success
3431 rajveer 1713
    if result.utx is not None:
1845 vikas 1714
      raise result.utx
1996 vikas 1715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1716
 
1996 vikas 1717
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1718
    """
1719
    Parameters:
1996 vikas 1720
     - affiliateId
1845 vikas 1721
     - userId
1722
     - event
1723
     - url
1724
     - data
1859 vikas 1725
     - addedOn
1845 vikas 1726
    """
1996 vikas 1727
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1728
    return self.recv_addTrackLog()
1729
 
1996 vikas 1730
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1731
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1732
    args = addTrackLog_args()
1996 vikas 1733
    args.affiliateId = affiliateId
1845 vikas 1734
    args.userId = userId
1735
    args.event = event
1736
    args.url = url
1737
    args.data = data
1859 vikas 1738
    args.addedOn = addedOn
1845 vikas 1739
    args.write(self._oprot)
1740
    self._oprot.writeMessageEnd()
1741
    self._oprot.trans.flush()
1742
 
1743
  def recv_addTrackLog(self, ):
1744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1745
    if mtype == TMessageType.EXCEPTION:
1746
      x = TApplicationException()
1747
      x.read(self._iprot)
1748
      self._iprot.readMessageEnd()
1749
      raise x
1750
    result = addTrackLog_result()
1751
    result.read(self._iprot)
1752
    self._iprot.readMessageEnd()
3431 rajveer 1753
    if result.success is not None:
1845 vikas 1754
      return result.success
3431 rajveer 1755
    if result.utx is not None:
1845 vikas 1756
      raise result.utx
1757
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1758
 
1759
  def getTrackLogById(self, id):
1760
    """
1761
    Parameters:
1762
     - id
1763
    """
1764
    self.send_getTrackLogById(id)
1765
    return self.recv_getTrackLogById()
1766
 
1767
  def send_getTrackLogById(self, id):
1768
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1769
    args = getTrackLogById_args()
1770
    args.id = id
1771
    args.write(self._oprot)
1772
    self._oprot.writeMessageEnd()
1773
    self._oprot.trans.flush()
1774
 
1775
  def recv_getTrackLogById(self, ):
1776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1777
    if mtype == TMessageType.EXCEPTION:
1778
      x = TApplicationException()
1779
      x.read(self._iprot)
1780
      self._iprot.readMessageEnd()
1781
      raise x
1782
    result = getTrackLogById_result()
1783
    result.read(self._iprot)
1784
    self._iprot.readMessageEnd()
3431 rajveer 1785
    if result.success is not None:
1845 vikas 1786
      return result.success
3431 rajveer 1787
    if result.utx is not None:
1845 vikas 1788
      raise result.utx
1789
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1790
 
3293 vikas 1791
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1792
    """
1793
    Parameters:
1996 vikas 1794
     - affiliateId
3293 vikas 1795
     - startDate
1796
     - endDate
1845 vikas 1797
    """
3293 vikas 1798
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1799
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1800
 
3293 vikas 1801
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1802
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1803
    args = getTrackLogsByAffiliate_args()
1804
    args.affiliateId = affiliateId
3293 vikas 1805
    args.startDate = startDate
1806
    args.endDate = endDate
1845 vikas 1807
    args.write(self._oprot)
1808
    self._oprot.writeMessageEnd()
1809
    self._oprot.trans.flush()
1810
 
1996 vikas 1811
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1813
    if mtype == TMessageType.EXCEPTION:
1814
      x = TApplicationException()
1815
      x.read(self._iprot)
1816
      self._iprot.readMessageEnd()
1817
      raise x
1996 vikas 1818
    result = getTrackLogsByAffiliate_result()
1845 vikas 1819
    result.read(self._iprot)
1820
    self._iprot.readMessageEnd()
3431 rajveer 1821
    if result.success is not None:
1845 vikas 1822
      return result.success
3431 rajveer 1823
    if result.utx is not None:
1845 vikas 1824
      raise result.utx
1996 vikas 1825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1826
 
1827
  def getTrackLogsByUser(self, userId):
1828
    """
1829
    Parameters:
1830
     - userId
1831
    """
1832
    self.send_getTrackLogsByUser(userId)
1833
    return self.recv_getTrackLogsByUser()
1834
 
1835
  def send_getTrackLogsByUser(self, userId):
1836
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1837
    args = getTrackLogsByUser_args()
1838
    args.userId = userId
1839
    args.write(self._oprot)
1840
    self._oprot.writeMessageEnd()
1841
    self._oprot.trans.flush()
1842
 
1843
  def recv_getTrackLogsByUser(self, ):
1844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1845
    if mtype == TMessageType.EXCEPTION:
1846
      x = TApplicationException()
1847
      x.read(self._iprot)
1848
      self._iprot.readMessageEnd()
1849
      raise x
1850
    result = getTrackLogsByUser_result()
1851
    result.read(self._iprot)
1852
    self._iprot.readMessageEnd()
3431 rajveer 1853
    if result.success is not None:
1845 vikas 1854
      return result.success
3431 rajveer 1855
    if result.utx is not None:
1845 vikas 1856
      raise result.utx
1857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1858
 
1996 vikas 1859
  def getTrackLogs(self, userId, event, url):
1845 vikas 1860
    """
1861
    Parameters:
1862
     - userId
1863
     - event
1864
     - url
1865
    """
1996 vikas 1866
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1867
    return self.recv_getTrackLogs()
1868
 
1996 vikas 1869
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1870
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1871
    args = getTrackLogs_args()
1872
    args.userId = userId
1873
    args.event = event
1874
    args.url = url
1875
    args.write(self._oprot)
1876
    self._oprot.writeMessageEnd()
1877
    self._oprot.trans.flush()
1878
 
1879
  def recv_getTrackLogs(self, ):
1880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1881
    if mtype == TMessageType.EXCEPTION:
1882
      x = TApplicationException()
1883
      x.read(self._iprot)
1884
      self._iprot.readMessageEnd()
1885
      raise x
1886
    result = getTrackLogs_result()
1887
    result.read(self._iprot)
1888
    self._iprot.readMessageEnd()
3431 rajveer 1889
    if result.success is not None:
1845 vikas 1890
      return result.success
3431 rajveer 1891
    if result.utx is not None:
1845 vikas 1892
      raise result.utx
1893
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1894
 
559 chandransh 1895
  def getCurrentCart(self, userId):
94 ashish 1896
    """
1897
    Parameters:
559 chandransh 1898
     - userId
94 ashish 1899
    """
559 chandransh 1900
    self.send_getCurrentCart(userId)
1901
    return self.recv_getCurrentCart()
94 ashish 1902
 
559 chandransh 1903
  def send_getCurrentCart(self, userId):
1904
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1905
    args = getCurrentCart_args()
1906
    args.userId = userId
94 ashish 1907
    args.write(self._oprot)
1908
    self._oprot.writeMessageEnd()
1909
    self._oprot.trans.flush()
1910
 
559 chandransh 1911
  def recv_getCurrentCart(self, ):
94 ashish 1912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1913
    if mtype == TMessageType.EXCEPTION:
1914
      x = TApplicationException()
1915
      x.read(self._iprot)
1916
      self._iprot.readMessageEnd()
1917
      raise x
559 chandransh 1918
    result = getCurrentCart_result()
94 ashish 1919
    result.read(self._iprot)
1920
    self._iprot.readMessageEnd()
3431 rajveer 1921
    if result.success is not None:
94 ashish 1922
      return result.success
3431 rajveer 1923
    if result.scx is not None:
559 chandransh 1924
      raise result.scx
1925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1926
 
559 chandransh 1927
  def getCart(self, cartId):
94 ashish 1928
    """
1929
    Parameters:
559 chandransh 1930
     - cartId
94 ashish 1931
    """
559 chandransh 1932
    self.send_getCart(cartId)
1933
    return self.recv_getCart()
94 ashish 1934
 
559 chandransh 1935
  def send_getCart(self, cartId):
1936
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1937
    args = getCart_args()
1938
    args.cartId = cartId
94 ashish 1939
    args.write(self._oprot)
1940
    self._oprot.writeMessageEnd()
1941
    self._oprot.trans.flush()
1942
 
559 chandransh 1943
  def recv_getCart(self, ):
94 ashish 1944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1945
    if mtype == TMessageType.EXCEPTION:
1946
      x = TApplicationException()
1947
      x.read(self._iprot)
1948
      self._iprot.readMessageEnd()
1949
      raise x
559 chandransh 1950
    result = getCart_result()
94 ashish 1951
    result.read(self._iprot)
1952
    self._iprot.readMessageEnd()
3431 rajveer 1953
    if result.success is not None:
94 ashish 1954
      return result.success
3431 rajveer 1955
    if result.scx is not None:
559 chandransh 1956
      raise result.scx
1957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1958
 
559 chandransh 1959
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1960
    """
1961
    Parameters:
559 chandransh 1962
     - from_time
1963
     - to_time
1964
     - status
94 ashish 1965
    """
559 chandransh 1966
    self.send_getCartsByTime(from_time, to_time, status)
1967
    return self.recv_getCartsByTime()
94 ashish 1968
 
559 chandransh 1969
  def send_getCartsByTime(self, from_time, to_time, status):
1970
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1971
    args = getCartsByTime_args()
1972
    args.from_time = from_time
1973
    args.to_time = to_time
1974
    args.status = status
94 ashish 1975
    args.write(self._oprot)
1976
    self._oprot.writeMessageEnd()
1977
    self._oprot.trans.flush()
1978
 
559 chandransh 1979
  def recv_getCartsByTime(self, ):
94 ashish 1980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1981
    if mtype == TMessageType.EXCEPTION:
1982
      x = TApplicationException()
1983
      x.read(self._iprot)
1984
      self._iprot.readMessageEnd()
1985
      raise x
559 chandransh 1986
    result = getCartsByTime_result()
94 ashish 1987
    result.read(self._iprot)
1988
    self._iprot.readMessageEnd()
3431 rajveer 1989
    if result.success is not None:
94 ashish 1990
      return result.success
3431 rajveer 1991
    if result.scx is not None:
559 chandransh 1992
      raise result.scx
1993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 1994
 
3557 rajveer 1995
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 1996
    """
1997
    Parameters:
1998
     - cartId
1999
     - itemId
2000
     - quantity
3557 rajveer 2001
     - sourceId
559 chandransh 2002
    """
3557 rajveer 2003
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2004
    return self.recv_addItemToCart()
559 chandransh 2005
 
3557 rajveer 2006
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2007
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2008
    args = addItemToCart_args()
2009
    args.cartId = cartId
2010
    args.itemId = itemId
2011
    args.quantity = quantity
3557 rajveer 2012
    args.sourceId = sourceId
559 chandransh 2013
    args.write(self._oprot)
2014
    self._oprot.writeMessageEnd()
2015
    self._oprot.trans.flush()
2016
 
2017
  def recv_addItemToCart(self, ):
2018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2019
    if mtype == TMessageType.EXCEPTION:
2020
      x = TApplicationException()
2021
      x.read(self._iprot)
2022
      self._iprot.readMessageEnd()
2023
      raise x
2024
    result = addItemToCart_result()
2025
    result.read(self._iprot)
2026
    self._iprot.readMessageEnd()
3431 rajveer 2027
    if result.success is not None:
2035 rajveer 2028
      return result.success
3431 rajveer 2029
    if result.scx is not None:
559 chandransh 2030
      raise result.scx
2035 rajveer 2031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2032
 
2033
  def deleteItemFromCart(self, cartId, itemId):
2034
    """
2035
    Parameters:
2036
     - cartId
2037
     - itemId
2038
    """
2039
    self.send_deleteItemFromCart(cartId, itemId)
2040
    self.recv_deleteItemFromCart()
2041
 
2042
  def send_deleteItemFromCart(self, cartId, itemId):
2043
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2044
    args = deleteItemFromCart_args()
2045
    args.cartId = cartId
2046
    args.itemId = itemId
2047
    args.write(self._oprot)
2048
    self._oprot.writeMessageEnd()
2049
    self._oprot.trans.flush()
2050
 
2051
  def recv_deleteItemFromCart(self, ):
2052
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2053
    if mtype == TMessageType.EXCEPTION:
2054
      x = TApplicationException()
2055
      x.read(self._iprot)
2056
      self._iprot.readMessageEnd()
2057
      raise x
2058
    result = deleteItemFromCart_result()
2059
    result.read(self._iprot)
2060
    self._iprot.readMessageEnd()
3431 rajveer 2061
    if result.scx is not None:
559 chandransh 2062
      raise result.scx
2063
    return
2064
 
2065
  def addAddressToCart(self, cartId, addressId):
2066
    """
2067
    Parameters:
2068
     - cartId
2069
     - addressId
2070
    """
2071
    self.send_addAddressToCart(cartId, addressId)
2072
    self.recv_addAddressToCart()
2073
 
2074
  def send_addAddressToCart(self, cartId, addressId):
2075
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2076
    args = addAddressToCart_args()
2077
    args.cartId = cartId
2078
    args.addressId = addressId
2079
    args.write(self._oprot)
2080
    self._oprot.writeMessageEnd()
2081
    self._oprot.trans.flush()
2082
 
2083
  def recv_addAddressToCart(self, ):
2084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2085
    if mtype == TMessageType.EXCEPTION:
2086
      x = TApplicationException()
2087
      x.read(self._iprot)
2088
      self._iprot.readMessageEnd()
2089
      raise x
2090
    result = addAddressToCart_result()
2091
    result.read(self._iprot)
2092
    self._iprot.readMessageEnd()
3431 rajveer 2093
    if result.scx is not None:
575 chandransh 2094
      raise result.scx
559 chandransh 2095
    return
2096
 
1976 varun.gupt 2097
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2098
    """
2099
    Parameters:
2100
     - cartId
2101
     - couponCode
2102
     - totalPrice
2103
     - discountedPrice
2104
    """
2105
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2106
    self.recv_applyCouponToCart()
2107
 
2108
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2109
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2110
    args = applyCouponToCart_args()
2111
    args.cartId = cartId
2112
    args.couponCode = couponCode
2113
    args.totalPrice = totalPrice
2114
    args.discountedPrice = discountedPrice
2115
    args.write(self._oprot)
2116
    self._oprot.writeMessageEnd()
2117
    self._oprot.trans.flush()
2118
 
2119
  def recv_applyCouponToCart(self, ):
2120
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2121
    if mtype == TMessageType.EXCEPTION:
2122
      x = TApplicationException()
2123
      x.read(self._iprot)
2124
      self._iprot.readMessageEnd()
2125
      raise x
2126
    result = applyCouponToCart_result()
2127
    result.read(self._iprot)
2128
    self._iprot.readMessageEnd()
3431 rajveer 2129
    if result.scx is not None:
1976 varun.gupt 2130
      raise result.scx
2131
    return
2132
 
2133
  def removeCoupon(self, cartId):
2134
    """
2135
    Parameters:
2136
     - cartId
2137
    """
2138
    self.send_removeCoupon(cartId)
2139
    self.recv_removeCoupon()
2140
 
2141
  def send_removeCoupon(self, cartId):
2142
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2143
    args = removeCoupon_args()
2144
    args.cartId = cartId
2145
    args.write(self._oprot)
2146
    self._oprot.writeMessageEnd()
2147
    self._oprot.trans.flush()
2148
 
2149
  def recv_removeCoupon(self, ):
2150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2151
    if mtype == TMessageType.EXCEPTION:
2152
      x = TApplicationException()
2153
      x.read(self._iprot)
2154
      self._iprot.readMessageEnd()
2155
      raise x
2156
    result = removeCoupon_result()
2157
    result.read(self._iprot)
2158
    self._iprot.readMessageEnd()
3431 rajveer 2159
    if result.scx is not None:
1976 varun.gupt 2160
      raise result.scx
2161
    return
2162
 
3554 varun.gupt 2163
  def deleteDiscountsFromCart(self, cartId):
2164
    """
2165
    Deletes all the discounts associated with the cart
2166
 
2167
    Parameters:
2168
     - cartId
2169
    """
2170
    self.send_deleteDiscountsFromCart(cartId)
2171
    self.recv_deleteDiscountsFromCart()
2172
 
2173
  def send_deleteDiscountsFromCart(self, cartId):
2174
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2175
    args = deleteDiscountsFromCart_args()
2176
    args.cartId = cartId
2177
    args.write(self._oprot)
2178
    self._oprot.writeMessageEnd()
2179
    self._oprot.trans.flush()
2180
 
2181
  def recv_deleteDiscountsFromCart(self, ):
2182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2183
    if mtype == TMessageType.EXCEPTION:
2184
      x = TApplicationException()
2185
      x.read(self._iprot)
2186
      self._iprot.readMessageEnd()
2187
      raise x
2188
    result = deleteDiscountsFromCart_result()
2189
    result.read(self._iprot)
2190
    self._iprot.readMessageEnd()
2191
    if result.scx is not None:
2192
      raise result.scx
2193
    return
2194
 
2195
  def saveDiscounts(self, discounts):
2196
    """
2197
    Accepts a list of thrift objects of Discount type and saves them
2198
 
2199
    Parameters:
2200
     - discounts
2201
    """
2202
    self.send_saveDiscounts(discounts)
2203
    self.recv_saveDiscounts()
2204
 
2205
  def send_saveDiscounts(self, discounts):
2206
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2207
    args = saveDiscounts_args()
2208
    args.discounts = discounts
2209
    args.write(self._oprot)
2210
    self._oprot.writeMessageEnd()
2211
    self._oprot.trans.flush()
2212
 
2213
  def recv_saveDiscounts(self, ):
2214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2215
    if mtype == TMessageType.EXCEPTION:
2216
      x = TApplicationException()
2217
      x.read(self._iprot)
2218
      self._iprot.readMessageEnd()
2219
      raise x
2220
    result = saveDiscounts_result()
2221
    result.read(self._iprot)
2222
    self._iprot.readMessageEnd()
2223
    if result.scx is not None:
2224
      raise result.scx
2225
    return
2226
 
5326 rajveer 2227
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2228
    """
690 chandransh 2229
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2230
 
559 chandransh 2231
    Parameters:
2232
     - cartId
2815 vikas 2233
     - sessionSource
2234
     - sessionStartTime
3858 vikas 2235
     - firstSource
2236
     - firstSourceTime
5326 rajveer 2237
     - userId
559 chandransh 2238
    """
5326 rajveer 2239
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2240
    return self.recv_createOrders()
559 chandransh 2241
 
5326 rajveer 2242
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2243
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2244
    args = createOrders_args()
559 chandransh 2245
    args.cartId = cartId
2815 vikas 2246
    args.sessionSource = sessionSource
2247
    args.sessionStartTime = sessionStartTime
3858 vikas 2248
    args.firstSource = firstSource
2249
    args.firstSourceTime = firstSourceTime
5326 rajveer 2250
    args.userId = userId
559 chandransh 2251
    args.write(self._oprot)
2252
    self._oprot.writeMessageEnd()
2253
    self._oprot.trans.flush()
2254
 
690 chandransh 2255
  def recv_createOrders(self, ):
559 chandransh 2256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2257
    if mtype == TMessageType.EXCEPTION:
2258
      x = TApplicationException()
2259
      x.read(self._iprot)
2260
      self._iprot.readMessageEnd()
2261
      raise x
690 chandransh 2262
    result = createOrders_result()
559 chandransh 2263
    result.read(self._iprot)
2264
    self._iprot.readMessageEnd()
3431 rajveer 2265
    if result.success is not None:
130 ashish 2266
      return result.success
3431 rajveer 2267
    if result.scx is not None:
559 chandransh 2268
      raise result.scx
690 chandransh 2269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2270
 
3557 rajveer 2271
  def validateCart(self, cartId, sourceId):
130 ashish 2272
    """
690 chandransh 2273
    Validates that:
2274
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2275
    2. All of the lines in the cart are active items.
690 chandransh 2276
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2277
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2278
 
130 ashish 2279
    Parameters:
559 chandransh 2280
     - cartId
3557 rajveer 2281
     - sourceId
130 ashish 2282
    """
3557 rajveer 2283
    self.send_validateCart(cartId, sourceId)
559 chandransh 2284
    return self.recv_validateCart()
130 ashish 2285
 
3557 rajveer 2286
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2287
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2288
    args = validateCart_args()
2289
    args.cartId = cartId
3557 rajveer 2290
    args.sourceId = sourceId
130 ashish 2291
    args.write(self._oprot)
2292
    self._oprot.writeMessageEnd()
2293
    self._oprot.trans.flush()
2294
 
559 chandransh 2295
  def recv_validateCart(self, ):
130 ashish 2296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2297
    if mtype == TMessageType.EXCEPTION:
2298
      x = TApplicationException()
2299
      x.read(self._iprot)
2300
      self._iprot.readMessageEnd()
2301
      raise x
559 chandransh 2302
    result = validateCart_result()
130 ashish 2303
    result.read(self._iprot)
2304
    self._iprot.readMessageEnd()
3431 rajveer 2305
    if result.success is not None:
130 ashish 2306
      return result.success
3431 rajveer 2307
    if result.scex is not None:
575 chandransh 2308
      raise result.scex
559 chandransh 2309
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2310
 
690 chandransh 2311
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2312
    """
690 chandransh 2313
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2314
 
575 chandransh 2315
    Parameters:
690 chandransh 2316
     - fromCartId
2317
     - toCartId
2318
    """
2319
    self.send_mergeCart(fromCartId, toCartId)
2320
    self.recv_mergeCart()
2321
 
2322
  def send_mergeCart(self, fromCartId, toCartId):
2323
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2324
    args = mergeCart_args()
2325
    args.fromCartId = fromCartId
2326
    args.toCartId = toCartId
2327
    args.write(self._oprot)
2328
    self._oprot.writeMessageEnd()
2329
    self._oprot.trans.flush()
2330
 
2331
  def recv_mergeCart(self, ):
2332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2333
    if mtype == TMessageType.EXCEPTION:
2334
      x = TApplicationException()
2335
      x.read(self._iprot)
2336
      self._iprot.readMessageEnd()
2337
      raise x
2338
    result = mergeCart_result()
2339
    result.read(self._iprot)
2340
    self._iprot.readMessageEnd()
2341
    return
2342
 
2343
  def checkOut(self, cartId):
2344
    """
2345
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2346
 
690 chandransh 2347
    Parameters:
575 chandransh 2348
     - cartId
2349
    """
690 chandransh 2350
    self.send_checkOut(cartId)
2351
    return self.recv_checkOut()
575 chandransh 2352
 
690 chandransh 2353
  def send_checkOut(self, cartId):
2354
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2355
    args = checkOut_args()
575 chandransh 2356
    args.cartId = cartId
2357
    args.write(self._oprot)
2358
    self._oprot.writeMessageEnd()
2359
    self._oprot.trans.flush()
2360
 
690 chandransh 2361
  def recv_checkOut(self, ):
575 chandransh 2362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2363
    if mtype == TMessageType.EXCEPTION:
2364
      x = TApplicationException()
2365
      x.read(self._iprot)
2366
      self._iprot.readMessageEnd()
2367
      raise x
690 chandransh 2368
    result = checkOut_result()
575 chandransh 2369
    result.read(self._iprot)
2370
    self._iprot.readMessageEnd()
3431 rajveer 2371
    if result.success is not None:
575 chandransh 2372
      return result.success
3431 rajveer 2373
    if result.scex is not None:
575 chandransh 2374
      raise result.scex
690 chandransh 2375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2376
 
690 chandransh 2377
  def resetCart(self, cartId, items):
559 chandransh 2378
    """
690 chandransh 2379
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2380
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2381
 
559 chandransh 2382
    Parameters:
690 chandransh 2383
     - cartId
2384
     - items
559 chandransh 2385
    """
690 chandransh 2386
    self.send_resetCart(cartId, items)
2387
    return self.recv_resetCart()
130 ashish 2388
 
690 chandransh 2389
  def send_resetCart(self, cartId, items):
2390
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2391
    args = resetCart_args()
2392
    args.cartId = cartId
2393
    args.items = items
559 chandransh 2394
    args.write(self._oprot)
2395
    self._oprot.writeMessageEnd()
2396
    self._oprot.trans.flush()
2397
 
690 chandransh 2398
  def recv_resetCart(self, ):
559 chandransh 2399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2400
    if mtype == TMessageType.EXCEPTION:
2401
      x = TApplicationException()
2402
      x.read(self._iprot)
2403
      self._iprot.readMessageEnd()
2404
      raise x
690 chandransh 2405
    result = resetCart_result()
559 chandransh 2406
    result.read(self._iprot)
2407
    self._iprot.readMessageEnd()
3431 rajveer 2408
    if result.success is not None:
690 chandransh 2409
      return result.success
3431 rajveer 2410
    if result.scex is not None:
690 chandransh 2411
      raise result.scex
2412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2413
 
2981 rajveer 2414
  def getUserCount(self, userType):
559 chandransh 2415
    """
2981 rajveer 2416
    Returns number of registered users.
2417
    If userType = null, then it returns count of all users, including anonymous
2418
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2419
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2420
 
559 chandransh 2421
    Parameters:
2981 rajveer 2422
     - userType
559 chandransh 2423
    """
2981 rajveer 2424
    self.send_getUserCount(userType)
2425
    return self.recv_getUserCount()
559 chandransh 2426
 
2981 rajveer 2427
  def send_getUserCount(self, userType):
2428
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2429
    args = getUserCount_args()
2430
    args.userType = userType
559 chandransh 2431
    args.write(self._oprot)
2432
    self._oprot.writeMessageEnd()
2433
    self._oprot.trans.flush()
2434
 
2981 rajveer 2435
  def recv_getUserCount(self, ):
559 chandransh 2436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2437
    if mtype == TMessageType.EXCEPTION:
2438
      x = TApplicationException()
2439
      x.read(self._iprot)
2440
      self._iprot.readMessageEnd()
2441
      raise x
2981 rajveer 2442
    result = getUserCount_result()
559 chandransh 2443
    result.read(self._iprot)
2444
    self._iprot.readMessageEnd()
3431 rajveer 2445
    if result.success is not None:
559 chandransh 2446
      return result.success
2981 rajveer 2447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2448
 
2981 rajveer 2449
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2450
    """
2981 rajveer 2451
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2452
    If any of startDate or endDate is -1, then that filter is ignored.
2453
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2454
 
2455
 
559 chandransh 2456
    Parameters:
2981 rajveer 2457
     - userType
2458
     - startDate
2459
     - endDate
559 chandransh 2460
    """
2981 rajveer 2461
    self.send_getAllUsers(userType, startDate, endDate)
2462
    return self.recv_getAllUsers()
559 chandransh 2463
 
2981 rajveer 2464
  def send_getAllUsers(self, userType, startDate, endDate):
2465
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2466
    args = getAllUsers_args()
2467
    args.userType = userType
2468
    args.startDate = startDate
2469
    args.endDate = endDate
559 chandransh 2470
    args.write(self._oprot)
2471
    self._oprot.writeMessageEnd()
2472
    self._oprot.trans.flush()
2473
 
2981 rajveer 2474
  def recv_getAllUsers(self, ):
559 chandransh 2475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2476
    if mtype == TMessageType.EXCEPTION:
2477
      x = TApplicationException()
2478
      x.read(self._iprot)
2479
      self._iprot.readMessageEnd()
2480
      raise x
2981 rajveer 2481
    result = getAllUsers_result()
559 chandransh 2482
    result.read(self._iprot)
2483
    self._iprot.readMessageEnd()
3431 rajveer 2484
    if result.success is not None:
559 chandransh 2485
      return result.success
2981 rajveer 2486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2487
 
2981 rajveer 2488
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2489
    """
2490
    Parameters:
2981 rajveer 2491
     - user_id
2492
     - entity_id
2493
     - slide
2494
     - note
559 chandransh 2495
    """
2981 rajveer 2496
    self.send_putUserNote(user_id, entity_id, slide, note)
2497
    self.recv_putUserNote()
559 chandransh 2498
 
2981 rajveer 2499
  def send_putUserNote(self, user_id, entity_id, slide, note):
2500
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2501
    args = putUserNote_args()
2502
    args.user_id = user_id
2503
    args.entity_id = entity_id
2504
    args.slide = slide
2505
    args.note = note
559 chandransh 2506
    args.write(self._oprot)
2507
    self._oprot.writeMessageEnd()
2508
    self._oprot.trans.flush()
2509
 
2981 rajveer 2510
  def recv_putUserNote(self, ):
559 chandransh 2511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2512
    if mtype == TMessageType.EXCEPTION:
2513
      x = TApplicationException()
2514
      x.read(self._iprot)
2515
      self._iprot.readMessageEnd()
2516
      raise x
2981 rajveer 2517
    result = putUserNote_result()
559 chandransh 2518
    result.read(self._iprot)
2519
    self._iprot.readMessageEnd()
2520
    return
2521
 
2981 rajveer 2522
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2523
    """
2524
    Parameters:
2981 rajveer 2525
     - user_id
2526
     - entity_id
559 chandransh 2527
    """
2981 rajveer 2528
    self.send_getUserNotes(user_id, entity_id)
2529
    return self.recv_getUserNotes()
559 chandransh 2530
 
2981 rajveer 2531
  def send_getUserNotes(self, user_id, entity_id):
2532
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2533
    args = getUserNotes_args()
2534
    args.user_id = user_id
2535
    args.entity_id = entity_id
559 chandransh 2536
    args.write(self._oprot)
2537
    self._oprot.writeMessageEnd()
2538
    self._oprot.trans.flush()
2539
 
2981 rajveer 2540
  def recv_getUserNotes(self, ):
559 chandransh 2541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2542
    if mtype == TMessageType.EXCEPTION:
2543
      x = TApplicationException()
2544
      x.read(self._iprot)
2545
      self._iprot.readMessageEnd()
2546
      raise x
2981 rajveer 2547
    result = getUserNotes_result()
559 chandransh 2548
    result.read(self._iprot)
2549
    self._iprot.readMessageEnd()
3431 rajveer 2550
    if result.success is not None:
2981 rajveer 2551
      return result.success
2552
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2553
 
2981 rajveer 2554
  def getMyResearchItems(self, userId):
559 chandransh 2555
    """
2981 rajveer 2556
    Returns list of item ids in myresearch for the user
3431 rajveer 2557
 
559 chandransh 2558
    Parameters:
772 rajveer 2559
     - userId
559 chandransh 2560
    """
2981 rajveer 2561
    self.send_getMyResearchItems(userId)
2562
    return self.recv_getMyResearchItems()
559 chandransh 2563
 
2981 rajveer 2564
  def send_getMyResearchItems(self, userId):
2565
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2566
    args = getMyResearchItems_args()
772 rajveer 2567
    args.userId = userId
559 chandransh 2568
    args.write(self._oprot)
2569
    self._oprot.writeMessageEnd()
2570
    self._oprot.trans.flush()
2571
 
2981 rajveer 2572
  def recv_getMyResearchItems(self, ):
559 chandransh 2573
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2574
    if mtype == TMessageType.EXCEPTION:
2575
      x = TApplicationException()
2576
      x.read(self._iprot)
2577
      self._iprot.readMessageEnd()
2578
      raise x
2981 rajveer 2579
    result = getMyResearchItems_result()
559 chandransh 2580
    result.read(self._iprot)
2581
    self._iprot.readMessageEnd()
3431 rajveer 2582
    if result.success is not None:
559 chandransh 2583
      return result.success
3431 rajveer 2584
    if result.scx is not None:
559 chandransh 2585
      raise result.scx
2981 rajveer 2586
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2587
 
2981 rajveer 2588
  def updateMyResearch(self, userId, itemId):
559 chandransh 2589
    """
2981 rajveer 2590
    add item to my research for a user
3431 rajveer 2591
 
559 chandransh 2592
    Parameters:
2981 rajveer 2593
     - userId
2594
     - itemId
559 chandransh 2595
    """
2981 rajveer 2596
    self.send_updateMyResearch(userId, itemId)
2597
    return self.recv_updateMyResearch()
559 chandransh 2598
 
2981 rajveer 2599
  def send_updateMyResearch(self, userId, itemId):
2600
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2601
    args = updateMyResearch_args()
2602
    args.userId = userId
2603
    args.itemId = itemId
559 chandransh 2604
    args.write(self._oprot)
2605
    self._oprot.writeMessageEnd()
2606
    self._oprot.trans.flush()
2607
 
2981 rajveer 2608
  def recv_updateMyResearch(self, ):
559 chandransh 2609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2610
    if mtype == TMessageType.EXCEPTION:
2611
      x = TApplicationException()
2612
      x.read(self._iprot)
2613
      self._iprot.readMessageEnd()
2614
      raise x
2981 rajveer 2615
    result = updateMyResearch_result()
559 chandransh 2616
    result.read(self._iprot)
2617
    self._iprot.readMessageEnd()
3431 rajveer 2618
    if result.success is not None:
2981 rajveer 2619
      return result.success
3431 rajveer 2620
    if result.scx is not None:
2981 rajveer 2621
      raise result.scx
2622
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2623
 
2981 rajveer 2624
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2625
    """
2981 rajveer 2626
    delete item from my research for a user
3431 rajveer 2627
 
1596 ankur.sing 2628
    Parameters:
2981 rajveer 2629
     - userId
2630
     - itemId
1596 ankur.sing 2631
    """
2981 rajveer 2632
    self.send_deleteItemFromMyResearch(userId, itemId)
2633
    self.recv_deleteItemFromMyResearch()
559 chandransh 2634
 
2981 rajveer 2635
  def send_deleteItemFromMyResearch(self, userId, itemId):
2636
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2637
    args = deleteItemFromMyResearch_args()
2638
    args.userId = userId
2639
    args.itemId = itemId
1596 ankur.sing 2640
    args.write(self._oprot)
2641
    self._oprot.writeMessageEnd()
2642
    self._oprot.trans.flush()
2643
 
2981 rajveer 2644
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2646
    if mtype == TMessageType.EXCEPTION:
2647
      x = TApplicationException()
2648
      x.read(self._iprot)
2649
      self._iprot.readMessageEnd()
2650
      raise x
2981 rajveer 2651
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2652
    result.read(self._iprot)
2653
    self._iprot.readMessageEnd()
3431 rajveer 2654
    if result.scx is not None:
2981 rajveer 2655
      raise result.scx
2656
    return
1596 ankur.sing 2657
 
2981 rajveer 2658
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2659
    """
2981 rajveer 2660
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2661
 
1673 ankur.sing 2662
    Parameters:
2981 rajveer 2663
     - userId
1673 ankur.sing 2664
    """
2981 rajveer 2665
    self.send_getBrowseHistoryItems(userId)
2666
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2667
 
2981 rajveer 2668
  def send_getBrowseHistoryItems(self, userId):
2669
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2670
    args = getBrowseHistoryItems_args()
2671
    args.userId = userId
1673 ankur.sing 2672
    args.write(self._oprot)
2673
    self._oprot.writeMessageEnd()
2674
    self._oprot.trans.flush()
2675
 
2981 rajveer 2676
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2678
    if mtype == TMessageType.EXCEPTION:
2679
      x = TApplicationException()
2680
      x.read(self._iprot)
2681
      self._iprot.readMessageEnd()
2682
      raise x
2981 rajveer 2683
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2684
    result.read(self._iprot)
2685
    self._iprot.readMessageEnd()
3431 rajveer 2686
    if result.success is not None:
1673 ankur.sing 2687
      return result.success
3431 rajveer 2688
    if result.scx is not None:
2981 rajveer 2689
      raise result.scx
2690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2691
 
2981 rajveer 2692
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2693
    """
2981 rajveer 2694
    add item to browse history for a user
3431 rajveer 2695
 
2642 varun.gupt 2696
    Parameters:
2981 rajveer 2697
     - userId
2698
     - itemId
2642 varun.gupt 2699
    """
2981 rajveer 2700
    self.send_updateBrowseHistory(userId, itemId)
2701
    self.recv_updateBrowseHistory()
1673 ankur.sing 2702
 
2981 rajveer 2703
  def send_updateBrowseHistory(self, userId, itemId):
2704
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2705
    args = updateBrowseHistory_args()
2706
    args.userId = userId
2707
    args.itemId = itemId
2642 varun.gupt 2708
    args.write(self._oprot)
2709
    self._oprot.writeMessageEnd()
2710
    self._oprot.trans.flush()
2711
 
2981 rajveer 2712
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2714
    if mtype == TMessageType.EXCEPTION:
2715
      x = TApplicationException()
2716
      x.read(self._iprot)
2717
      self._iprot.readMessageEnd()
2718
      raise x
2981 rajveer 2719
    result = updateBrowseHistory_result()
2642 varun.gupt 2720
    result.read(self._iprot)
2721
    self._iprot.readMessageEnd()
2722
    return
2723
 
3385 varun.gupt 2724
  def getCartsWithCouponCount(self, couponCode):
2725
    """
2726
    Returns count of Carts with given coupon applied
3431 rajveer 2727
 
3385 varun.gupt 2728
    Parameters:
2729
     - couponCode
2730
    """
2731
    self.send_getCartsWithCouponCount(couponCode)
2732
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2733
 
3385 varun.gupt 2734
  def send_getCartsWithCouponCount(self, couponCode):
2735
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2736
    args = getCartsWithCouponCount_args()
2737
    args.couponCode = couponCode
2738
    args.write(self._oprot)
2739
    self._oprot.writeMessageEnd()
2740
    self._oprot.trans.flush()
2741
 
2742
  def recv_getCartsWithCouponCount(self, ):
2743
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2744
    if mtype == TMessageType.EXCEPTION:
2745
      x = TApplicationException()
2746
      x.read(self._iprot)
2747
      self._iprot.readMessageEnd()
2748
      raise x
2749
    result = getCartsWithCouponCount_result()
2750
    result.read(self._iprot)
2751
    self._iprot.readMessageEnd()
3431 rajveer 2752
    if result.success is not None:
3385 varun.gupt 2753
      return result.success
2754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2755
 
3499 mandeep.dh 2756
  def increaseTrustLevel(self, userId, trustLevelDelta):
2757
    """
2758
    Updates COD trust level of a user
3385 varun.gupt 2759
 
3499 mandeep.dh 2760
    Parameters:
2761
     - userId
2762
     - trustLevelDelta
2763
    """
2764
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2765
 
2766
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2767
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2768
    args = increaseTrustLevel_args()
2769
    args.userId = userId
2770
    args.trustLevelDelta = trustLevelDelta
2771
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
5407 amar.kumar 2774
  def getTrustLevel(self, userId):
2775
    """
2776
    Get trust level of a user
2777
 
2778
    Parameters:
2779
     - userId
2780
    """
2781
    self.send_getTrustLevel(userId)
2782
    return self.recv_getTrustLevel()
2783
 
2784
  def send_getTrustLevel(self, userId):
2785
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2786
    args = getTrustLevel_args()
2787
    args.userId = userId
2788
    args.write(self._oprot)
2789
    self._oprot.writeMessageEnd()
2790
    self._oprot.trans.flush()
2791
 
2792
  def recv_getTrustLevel(self, ):
2793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2794
    if mtype == TMessageType.EXCEPTION:
2795
      x = TApplicationException()
2796
      x.read(self._iprot)
2797
      self._iprot.readMessageEnd()
2798
      raise x
2799
    result = getTrustLevel_result()
2800
    result.read(self._iprot)
2801
    self._iprot.readMessageEnd()
2802
    if result.success is not None:
2803
      return result.success
2804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2805
 
4668 varun.gupt 2806
  def showCODOption(self, cartId, sourceId, pincode):
2807
    """
2808
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2809
 
4668 varun.gupt 2810
    Parameters:
2811
     - cartId
2812
     - sourceId
2813
     - pincode
2814
    """
2815
    self.send_showCODOption(cartId, sourceId, pincode)
2816
    return self.recv_showCODOption()
2817
 
2818
  def send_showCODOption(self, cartId, sourceId, pincode):
2819
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2820
    args = showCODOption_args()
2821
    args.cartId = cartId
2822
    args.sourceId = sourceId
2823
    args.pincode = pincode
2824
    args.write(self._oprot)
2825
    self._oprot.writeMessageEnd()
2826
    self._oprot.trans.flush()
2827
 
2828
  def recv_showCODOption(self, ):
2829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2830
    if mtype == TMessageType.EXCEPTION:
2831
      x = TApplicationException()
2832
      x.read(self._iprot)
2833
      self._iprot.readMessageEnd()
2834
      raise x
2835
    result = showCODOption_result()
2836
    result.read(self._iprot)
2837
    self._iprot.readMessageEnd()
2838
    if result.success is not None:
2839
      return result.success
2840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2841
 
2842
 
3376 rajveer 2843
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2844
  def __init__(self, handler):
3376 rajveer 2845
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2846
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2847
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2848
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2849
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2850
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2851
    self._processMap["createUser"] = Processor.process_createUser
2852
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2853
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2854
    self._processMap["userExists"] = Processor.process_userExists
2855
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2856
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2857
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2858
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2859
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2860
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2861
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2862
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2863
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2864
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2865
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2866
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2867
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2868
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2869
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 2870
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 2871
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2872
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2873
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2874
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2875
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2876
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2877
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2878
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2879
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2880
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2881
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2882
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2883
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2884
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2885
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2886
    self._processMap["getCart"] = Processor.process_getCart
2887
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2888
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2889
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2890
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2891
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2892
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2893
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2894
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2895
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2896
    self._processMap["validateCart"] = Processor.process_validateCart
2897
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2898
    self._processMap["checkOut"] = Processor.process_checkOut
2899
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2900
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2901
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2902
    self._processMap["putUserNote"] = Processor.process_putUserNote
2903
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2904
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2905
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2906
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2907
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2908
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2909
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2910
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 2911
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 2912
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 2913
 
2914
  def process(self, iprot, oprot):
2915
    (name, type, seqid) = iprot.readMessageBegin()
2916
    if name not in self._processMap:
2917
      iprot.skip(TType.STRUCT)
2918
      iprot.readMessageEnd()
2919
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2920
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2921
      x.write(oprot)
2922
      oprot.writeMessageEnd()
2923
      oprot.trans.flush()
2924
      return
2925
    else:
2926
      self._processMap[name](self, seqid, iprot, oprot)
2927
    return True
2928
 
559 chandransh 2929
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2930
    args = createAnonymousUser_args()
94 ashish 2931
    args.read(iprot)
2932
    iprot.readMessageEnd()
559 chandransh 2933
    result = createAnonymousUser_result()
94 ashish 2934
    try:
559 chandransh 2935
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2936
    except UserContextException, ucex:
2937
      result.ucex = ucex
2938
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2939
    result.write(oprot)
2940
    oprot.writeMessageEnd()
2941
    oprot.trans.flush()
2942
 
559 chandransh 2943
  def process_getUserById(self, seqid, iprot, oprot):
2944
    args = getUserById_args()
94 ashish 2945
    args.read(iprot)
2946
    iprot.readMessageEnd()
559 chandransh 2947
    result = getUserById_result()
94 ashish 2948
    try:
559 chandransh 2949
      result.success = self._handler.getUserById(args.userId)
2950
    except UserContextException, ucex:
2951
      result.ucex = ucex
2952
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2953
    result.write(oprot)
2954
    oprot.writeMessageEnd()
2955
    oprot.trans.flush()
2956
 
5326 rajveer 2957
  def process_getUserByCartId(self, seqid, iprot, oprot):
2958
    args = getUserByCartId_args()
2959
    args.read(iprot)
2960
    iprot.readMessageEnd()
2961
    result = getUserByCartId_result()
2962
    try:
2963
      result.success = self._handler.getUserByCartId(args.cartId)
2964
    except UserContextException, ucex:
2965
      result.ucex = ucex
2966
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
2967
    result.write(oprot)
2968
    oprot.writeMessageEnd()
2969
    oprot.trans.flush()
2970
 
1491 vikas 2971
  def process_getUserByEmail(self, seqid, iprot, oprot):
2972
    args = getUserByEmail_args()
2973
    args.read(iprot)
2974
    iprot.readMessageEnd()
2975
    result = getUserByEmail_result()
2976
    try:
2977
      result.success = self._handler.getUserByEmail(args.email)
2978
    except UserContextException, ucex:
2979
      result.ucex = ucex
2980
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
2981
    result.write(oprot)
2982
    oprot.writeMessageEnd()
2983
    oprot.trans.flush()
2984
 
3032 mandeep.dh 2985
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
2986
    args = getUserByMobileNumber_args()
2987
    args.read(iprot)
2988
    iprot.readMessageEnd()
2989
    result = getUserByMobileNumber_result()
2990
    try:
2991
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
2992
    except UserContextException, ucex:
2993
      result.ucex = ucex
2994
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
2995
    result.write(oprot)
2996
    oprot.writeMessageEnd()
2997
    oprot.trans.flush()
2998
 
559 chandransh 2999
  def process_createUser(self, seqid, iprot, oprot):
3000
    args = createUser_args()
94 ashish 3001
    args.read(iprot)
3002
    iprot.readMessageEnd()
559 chandransh 3003
    result = createUser_result()
94 ashish 3004
    try:
559 chandransh 3005
      result.success = self._handler.createUser(args.user)
3006
    except UserContextException, ucex:
3007
      result.ucex = ucex
3008
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3009
    result.write(oprot)
3010
    oprot.writeMessageEnd()
3011
    oprot.trans.flush()
3012
 
559 chandransh 3013
  def process_updateUser(self, seqid, iprot, oprot):
3014
    args = updateUser_args()
94 ashish 3015
    args.read(iprot)
3016
    iprot.readMessageEnd()
559 chandransh 3017
    result = updateUser_result()
94 ashish 3018
    try:
559 chandransh 3019
      result.success = self._handler.updateUser(args.user)
3020
    except UserContextException, ucex:
3021
      result.ucex = ucex
3022
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3023
    result.write(oprot)
3024
    oprot.writeMessageEnd()
3025
    oprot.trans.flush()
3026
 
122 ashish 3027
  def process_authenticateUser(self, seqid, iprot, oprot):
3028
    args = authenticateUser_args()
3029
    args.read(iprot)
3030
    iprot.readMessageEnd()
3031
    result = authenticateUser_result()
3032
    try:
559 chandransh 3033
      result.success = self._handler.authenticateUser(args.email, args.password)
3034
    except AuthenticationException, auex:
3035
      result.auex = auex
122 ashish 3036
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3037
    result.write(oprot)
3038
    oprot.writeMessageEnd()
3039
    oprot.trans.flush()
3040
 
94 ashish 3041
  def process_userExists(self, seqid, iprot, oprot):
3042
    args = userExists_args()
3043
    args.read(iprot)
3044
    iprot.readMessageEnd()
3045
    result = userExists_result()
3046
    try:
3047
      result.success = self._handler.userExists(args.email)
3048
    except UserContextException, ucx:
3049
      result.ucx = ucx
3050
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3051
    result.write(oprot)
3052
    oprot.writeMessageEnd()
3053
    oprot.trans.flush()
3054
 
3055
  def process_addAddressForUser(self, seqid, iprot, oprot):
3056
    args = addAddressForUser_args()
3057
    args.read(iprot)
3058
    iprot.readMessageEnd()
3059
    result = addAddressForUser_result()
3060
    try:
567 rajveer 3061
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3062
    except UserContextException, ucx:
3063
      result.ucx = ucx
3064
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3065
    result.write(oprot)
3066
    oprot.writeMessageEnd()
3067
    oprot.trans.flush()
3068
 
3069
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3070
    args = removeAddressForUser_args()
3071
    args.read(iprot)
3072
    iprot.readMessageEnd()
3073
    result = removeAddressForUser_result()
3074
    try:
3075
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3076
    except UserContextException, ucx:
3077
      result.ucx = ucx
3078
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3079
    result.write(oprot)
3080
    oprot.writeMessageEnd()
3081
    oprot.trans.flush()
3082
 
3083
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3084
    args = setUserAsLoggedIn_args()
3085
    args.read(iprot)
3086
    iprot.readMessageEnd()
3087
    result = setUserAsLoggedIn_result()
3088
    try:
3089
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3090
    except UserContextException, ucx:
3091
      result.ucx = ucx
3092
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3093
    result.write(oprot)
3094
    oprot.writeMessageEnd()
3095
    oprot.trans.flush()
3096
 
3097
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3098
    args = setUserAsLoggedOut_args()
3099
    args.read(iprot)
3100
    iprot.readMessageEnd()
3101
    result = setUserAsLoggedOut_result()
3102
    try:
3103
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3104
    except UserContextException, ucx:
3105
      result.ucx = ucx
3106
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3107
    result.write(oprot)
3108
    oprot.writeMessageEnd()
3109
    oprot.trans.flush()
3110
 
504 rajveer 3111
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3112
    args = setDefaultAddress_args()
3113
    args.read(iprot)
3114
    iprot.readMessageEnd()
3115
    result = setDefaultAddress_result()
3116
    try:
3117
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3118
    except UserContextException, ucx:
3119
      result.ucx = ucx
3120
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3121
    result.write(oprot)
3122
    oprot.writeMessageEnd()
3123
    oprot.trans.flush()
3124
 
94 ashish 3125
  def process_updatePassword(self, seqid, iprot, oprot):
3126
    args = updatePassword_args()
3127
    args.read(iprot)
3128
    iprot.readMessageEnd()
3129
    result = updatePassword_result()
3130
    try:
594 rajveer 3131
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3132
    except UserContextException, ucx:
3133
      result.ucx = ucx
3134
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3135
    result.write(oprot)
3136
    oprot.writeMessageEnd()
3137
    oprot.trans.flush()
3138
 
581 rajveer 3139
  def process_forgotPassword(self, seqid, iprot, oprot):
3140
    args = forgotPassword_args()
3141
    args.read(iprot)
3142
    iprot.readMessageEnd()
3143
    result = forgotPassword_result()
3144
    try:
884 rajveer 3145
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3146
    except UserContextException, ucx:
3147
      result.ucx = ucx
3148
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3149
    result.write(oprot)
3150
    oprot.writeMessageEnd()
3151
    oprot.trans.flush()
3152
 
594 rajveer 3153
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3154
    args = getAllAddressesForUser_args()
3155
    args.read(iprot)
3156
    iprot.readMessageEnd()
3157
    result = getAllAddressesForUser_result()
3158
    try:
3159
      result.success = self._handler.getAllAddressesForUser(args.userId)
3160
    except UserContextException, ucx:
3161
      result.ucx = ucx
3162
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3163
    result.write(oprot)
3164
    oprot.writeMessageEnd()
3165
    oprot.trans.flush()
3166
 
1894 vikas 3167
  def process_getAddressById(self, seqid, iprot, oprot):
3168
    args = getAddressById_args()
3169
    args.read(iprot)
3170
    iprot.readMessageEnd()
3171
    result = getAddressById_result()
3172
    try:
3173
      result.success = self._handler.getAddressById(args.addressId)
3174
    except UserContextException, ucx:
3175
      result.ucx = ucx
3176
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3177
    result.write(oprot)
3178
    oprot.writeMessageEnd()
3179
    oprot.trans.flush()
3180
 
594 rajveer 3181
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3182
    args = getDefaultAddressId_args()
3183
    args.read(iprot)
3184
    iprot.readMessageEnd()
3185
    result = getDefaultAddressId_result()
3186
    try:
3187
      result.success = self._handler.getDefaultAddressId(args.userId)
3188
    except UserContextException, ucx:
3189
      result.ucx = ucx
3190
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3191
    result.write(oprot)
3192
    oprot.writeMessageEnd()
3193
    oprot.trans.flush()
3194
 
785 rajveer 3195
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3196
    args = getDefaultPincode_args()
3197
    args.read(iprot)
3198
    iprot.readMessageEnd()
3199
    result = getDefaultPincode_result()
3200
    try:
3201
      result.success = self._handler.getDefaultPincode(args.userId)
3202
    except UserContextException, ucx:
3203
      result.ucx = ucx
3204
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3205
    result.write(oprot)
3206
    oprot.writeMessageEnd()
3207
    oprot.trans.flush()
3208
 
1274 varun.gupt 3209
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3210
    args = saveUserCommunication_args()
3211
    args.read(iprot)
3212
    iprot.readMessageEnd()
3213
    result = saveUserCommunication_result()
3214
    try:
3215
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3216
    except UserCommunicationException, ucx:
3217
      result.ucx = ucx
3218
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3219
    result.write(oprot)
3220
    oprot.writeMessageEnd()
3221
    oprot.trans.flush()
3222
 
1590 varun.gupt 3223
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3224
    args = getUserCommunicationById_args()
3225
    args.read(iprot)
3226
    iprot.readMessageEnd()
3227
    result = getUserCommunicationById_result()
3228
    try:
3229
      result.success = self._handler.getUserCommunicationById(args.id)
3230
    except UserCommunicationException, ucx:
3231
      result.ucx = ucx
3232
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3233
    result.write(oprot)
3234
    oprot.writeMessageEnd()
3235
    oprot.trans.flush()
3236
 
3237
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3238
    args = getUserCommunicationByUser_args()
3239
    args.read(iprot)
3240
    iprot.readMessageEnd()
3241
    result = getUserCommunicationByUser_result()
3242
    try:
3243
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3244
    except UserCommunicationException, ucx:
3245
      result.ucx = ucx
3246
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3247
    result.write(oprot)
3248
    oprot.writeMessageEnd()
3249
    oprot.trans.flush()
3250
 
3251
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3252
    args = getAllUserCommunications_args()
3253
    args.read(iprot)
3254
    iprot.readMessageEnd()
3255
    result = getAllUserCommunications_result()
3256
    try:
3257
      result.success = self._handler.getAllUserCommunications()
3258
    except UserCommunicationException, ucx:
3259
      result.ucx = ucx
3260
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3261
    result.write(oprot)
3262
    oprot.writeMessageEnd()
3263
    oprot.trans.flush()
3264
 
5407 amar.kumar 3265
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3266
    args = removeUserCommunication_args()
3267
    args.read(iprot)
3268
    iprot.readMessageEnd()
3269
    result = removeUserCommunication_result()
3270
    try:
3271
      self._handler.removeUserCommunication(args.id)
3272
    except UserCommunicationException, ucx:
3273
      result.ucx = ucx
3274
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3275
    result.write(oprot)
3276
    oprot.writeMessageEnd()
3277
    oprot.trans.flush()
3278
 
1845 vikas 3279
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3280
    args = createMasterAffiliate_args()
3281
    args.read(iprot)
3282
    iprot.readMessageEnd()
3283
    result = createMasterAffiliate_result()
3284
    try:
1859 vikas 3285
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3286
    except UserAffiliateException, utx:
1845 vikas 3287
      result.utx = utx
3288
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3289
    result.write(oprot)
3290
    oprot.writeMessageEnd()
3291
    oprot.trans.flush()
3292
 
1899 vikas 3293
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3294
    args = getAllMasterAffiliates_args()
3295
    args.read(iprot)
3296
    iprot.readMessageEnd()
3297
    result = getAllMasterAffiliates_result()
3298
    try:
3299
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3300
    except UserAffiliateException, utx:
1899 vikas 3301
      result.utx = utx
3302
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3303
    result.write(oprot)
3304
    oprot.writeMessageEnd()
3305
    oprot.trans.flush()
3306
 
1845 vikas 3307
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3308
    args = getMasterAffiliateById_args()
3309
    args.read(iprot)
3310
    iprot.readMessageEnd()
3311
    result = getMasterAffiliateById_result()
3312
    try:
3313
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3314
    except UserAffiliateException, utx:
1845 vikas 3315
      result.utx = utx
3316
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3317
    result.write(oprot)
3318
    oprot.writeMessageEnd()
3319
    oprot.trans.flush()
3320
 
3321
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3322
    args = getMasterAffiliateByName_args()
3323
    args.read(iprot)
3324
    iprot.readMessageEnd()
3325
    result = getMasterAffiliateByName_result()
3326
    try:
3327
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3328
    except UserAffiliateException, utx:
1845 vikas 3329
      result.utx = utx
3330
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3331
    result.write(oprot)
3332
    oprot.writeMessageEnd()
3333
    oprot.trans.flush()
3334
 
3335
  def process_createAffiliate(self, seqid, iprot, oprot):
3336
    args = createAffiliate_args()
3337
    args.read(iprot)
3338
    iprot.readMessageEnd()
3339
    result = createAffiliate_result()
3340
    try:
1859 vikas 3341
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3342
    except UserAffiliateException, utx:
1845 vikas 3343
      result.utx = utx
3344
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3345
    result.write(oprot)
3346
    oprot.writeMessageEnd()
3347
    oprot.trans.flush()
3348
 
3349
  def process_getAffiliateById(self, seqid, iprot, oprot):
3350
    args = getAffiliateById_args()
3351
    args.read(iprot)
3352
    iprot.readMessageEnd()
3353
    result = getAffiliateById_result()
3354
    try:
3355
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3356
    except UserAffiliateException, utx:
1845 vikas 3357
      result.utx = utx
3358
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3359
    result.write(oprot)
3360
    oprot.writeMessageEnd()
3361
    oprot.trans.flush()
3362
 
3363
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3364
    args = getAffiliateByName_args()
3365
    args.read(iprot)
3366
    iprot.readMessageEnd()
3367
    result = getAffiliateByName_result()
3368
    try:
3369
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3370
    except UserAffiliateException, utx:
1845 vikas 3371
      result.utx = utx
3372
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3373
    result.write(oprot)
3374
    oprot.writeMessageEnd()
3375
    oprot.trans.flush()
3376
 
3377
  def process_getTrackerById(self, seqid, iprot, oprot):
3378
    args = getTrackerById_args()
3379
    args.read(iprot)
3380
    iprot.readMessageEnd()
3381
    result = getTrackerById_result()
3382
    try:
1996 vikas 3383
      result.success = self._handler.getTrackerById(args.id)
3384
    except UserAffiliateException, utx:
1845 vikas 3385
      result.utx = utx
3386
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3387
    result.write(oprot)
3388
    oprot.writeMessageEnd()
3389
    oprot.trans.flush()
3390
 
1996 vikas 3391
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3392
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3393
    args.read(iprot)
3394
    iprot.readMessageEnd()
1996 vikas 3395
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3396
    try:
1996 vikas 3397
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3398
    except UserAffiliateException, utx:
1845 vikas 3399
      result.utx = utx
1996 vikas 3400
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3401
    result.write(oprot)
3402
    oprot.writeMessageEnd()
3403
    oprot.trans.flush()
3404
 
3405
  def process_addTrackLog(self, seqid, iprot, oprot):
3406
    args = addTrackLog_args()
3407
    args.read(iprot)
3408
    iprot.readMessageEnd()
3409
    result = addTrackLog_result()
3410
    try:
1996 vikas 3411
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3412
    except UserAffiliateException, utx:
1845 vikas 3413
      result.utx = utx
3414
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3415
    result.write(oprot)
3416
    oprot.writeMessageEnd()
3417
    oprot.trans.flush()
3418
 
3419
  def process_getTrackLogById(self, seqid, iprot, oprot):
3420
    args = getTrackLogById_args()
3421
    args.read(iprot)
3422
    iprot.readMessageEnd()
3423
    result = getTrackLogById_result()
3424
    try:
3425
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3426
    except UserAffiliateException, utx:
1845 vikas 3427
      result.utx = utx
3428
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3429
    result.write(oprot)
3430
    oprot.writeMessageEnd()
3431
    oprot.trans.flush()
3432
 
1996 vikas 3433
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3434
    args = getTrackLogsByAffiliate_args()
1845 vikas 3435
    args.read(iprot)
3436
    iprot.readMessageEnd()
1996 vikas 3437
    result = getTrackLogsByAffiliate_result()
1845 vikas 3438
    try:
3293 vikas 3439
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3440
    except UserAffiliateException, utx:
1845 vikas 3441
      result.utx = utx
1996 vikas 3442
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3443
    result.write(oprot)
3444
    oprot.writeMessageEnd()
3445
    oprot.trans.flush()
3446
 
3447
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3448
    args = getTrackLogsByUser_args()
3449
    args.read(iprot)
3450
    iprot.readMessageEnd()
3451
    result = getTrackLogsByUser_result()
3452
    try:
3453
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3454
    except UserAffiliateException, utx:
1845 vikas 3455
      result.utx = utx
3456
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3457
    result.write(oprot)
3458
    oprot.writeMessageEnd()
3459
    oprot.trans.flush()
3460
 
3461
  def process_getTrackLogs(self, seqid, iprot, oprot):
3462
    args = getTrackLogs_args()
3463
    args.read(iprot)
3464
    iprot.readMessageEnd()
3465
    result = getTrackLogs_result()
3466
    try:
1996 vikas 3467
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3468
    except UserAffiliateException, utx:
1845 vikas 3469
      result.utx = utx
3470
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3471
    result.write(oprot)
3472
    oprot.writeMessageEnd()
3473
    oprot.trans.flush()
3474
 
559 chandransh 3475
  def process_getCurrentCart(self, seqid, iprot, oprot):
3476
    args = getCurrentCart_args()
94 ashish 3477
    args.read(iprot)
3478
    iprot.readMessageEnd()
559 chandransh 3479
    result = getCurrentCart_result()
94 ashish 3480
    try:
559 chandransh 3481
      result.success = self._handler.getCurrentCart(args.userId)
3482
    except ShoppingCartException, scx:
3483
      result.scx = scx
3484
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3485
    result.write(oprot)
3486
    oprot.writeMessageEnd()
3487
    oprot.trans.flush()
3488
 
559 chandransh 3489
  def process_getCart(self, seqid, iprot, oprot):
3490
    args = getCart_args()
94 ashish 3491
    args.read(iprot)
3492
    iprot.readMessageEnd()
559 chandransh 3493
    result = getCart_result()
94 ashish 3494
    try:
559 chandransh 3495
      result.success = self._handler.getCart(args.cartId)
3496
    except ShoppingCartException, scx:
3497
      result.scx = scx
3498
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3499
    result.write(oprot)
3500
    oprot.writeMessageEnd()
3501
    oprot.trans.flush()
3502
 
559 chandransh 3503
  def process_getCartsByTime(self, seqid, iprot, oprot):
3504
    args = getCartsByTime_args()
94 ashish 3505
    args.read(iprot)
3506
    iprot.readMessageEnd()
559 chandransh 3507
    result = getCartsByTime_result()
94 ashish 3508
    try:
559 chandransh 3509
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3510
    except ShoppingCartException, scx:
3511
      result.scx = scx
3512
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3513
    result.write(oprot)
3514
    oprot.writeMessageEnd()
3515
    oprot.trans.flush()
3516
 
559 chandransh 3517
  def process_addItemToCart(self, seqid, iprot, oprot):
3518
    args = addItemToCart_args()
130 ashish 3519
    args.read(iprot)
3520
    iprot.readMessageEnd()
559 chandransh 3521
    result = addItemToCart_result()
130 ashish 3522
    try:
3557 rajveer 3523
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3524
    except ShoppingCartException, scx:
3525
      result.scx = scx
3526
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3527
    result.write(oprot)
3528
    oprot.writeMessageEnd()
3529
    oprot.trans.flush()
3530
 
559 chandransh 3531
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3532
    args = deleteItemFromCart_args()
3533
    args.read(iprot)
3534
    iprot.readMessageEnd()
3535
    result = deleteItemFromCart_result()
3536
    try:
3537
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3538
    except ShoppingCartException, scx:
3539
      result.scx = scx
3540
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3541
    result.write(oprot)
3542
    oprot.writeMessageEnd()
3543
    oprot.trans.flush()
130 ashish 3544
 
559 chandransh 3545
  def process_addAddressToCart(self, seqid, iprot, oprot):
3546
    args = addAddressToCart_args()
3547
    args.read(iprot)
3548
    iprot.readMessageEnd()
3549
    result = addAddressToCart_result()
575 chandransh 3550
    try:
3551
      self._handler.addAddressToCart(args.cartId, args.addressId)
3552
    except ShoppingCartException, scx:
3553
      result.scx = scx
559 chandransh 3554
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3555
    result.write(oprot)
3556
    oprot.writeMessageEnd()
3557
    oprot.trans.flush()
3558
 
1976 varun.gupt 3559
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3560
    args = applyCouponToCart_args()
3561
    args.read(iprot)
3562
    iprot.readMessageEnd()
3563
    result = applyCouponToCart_result()
3564
    try:
3565
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3566
    except ShoppingCartException, scx:
3567
      result.scx = scx
3568
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3569
    result.write(oprot)
3570
    oprot.writeMessageEnd()
3571
    oprot.trans.flush()
3572
 
3573
  def process_removeCoupon(self, seqid, iprot, oprot):
3574
    args = removeCoupon_args()
3575
    args.read(iprot)
3576
    iprot.readMessageEnd()
3577
    result = removeCoupon_result()
3578
    try:
3579
      self._handler.removeCoupon(args.cartId)
3580
    except ShoppingCartException, scx:
3581
      result.scx = scx
3582
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3583
    result.write(oprot)
3584
    oprot.writeMessageEnd()
3585
    oprot.trans.flush()
3586
 
3554 varun.gupt 3587
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3588
    args = deleteDiscountsFromCart_args()
3589
    args.read(iprot)
3590
    iprot.readMessageEnd()
3591
    result = deleteDiscountsFromCart_result()
3592
    try:
3593
      self._handler.deleteDiscountsFromCart(args.cartId)
3594
    except ShoppingCartException, scx:
3595
      result.scx = scx
3596
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3597
    result.write(oprot)
3598
    oprot.writeMessageEnd()
3599
    oprot.trans.flush()
3600
 
3601
  def process_saveDiscounts(self, seqid, iprot, oprot):
3602
    args = saveDiscounts_args()
3603
    args.read(iprot)
3604
    iprot.readMessageEnd()
3605
    result = saveDiscounts_result()
3606
    try:
3607
      self._handler.saveDiscounts(args.discounts)
3608
    except ShoppingCartException, scx:
3609
      result.scx = scx
3610
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3611
    result.write(oprot)
3612
    oprot.writeMessageEnd()
3613
    oprot.trans.flush()
3614
 
690 chandransh 3615
  def process_createOrders(self, seqid, iprot, oprot):
3616
    args = createOrders_args()
559 chandransh 3617
    args.read(iprot)
3618
    iprot.readMessageEnd()
690 chandransh 3619
    result = createOrders_result()
559 chandransh 3620
    try:
5326 rajveer 3621
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3622
    except ShoppingCartException, scx:
3623
      result.scx = scx
690 chandransh 3624
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3625
    result.write(oprot)
3626
    oprot.writeMessageEnd()
3627
    oprot.trans.flush()
3628
 
3629
  def process_validateCart(self, seqid, iprot, oprot):
3630
    args = validateCart_args()
3631
    args.read(iprot)
3632
    iprot.readMessageEnd()
3633
    result = validateCart_result()
575 chandransh 3634
    try:
3557 rajveer 3635
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3636
    except ShoppingCartException, scex:
3637
      result.scex = scex
559 chandransh 3638
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3639
    result.write(oprot)
3640
    oprot.writeMessageEnd()
3641
    oprot.trans.flush()
3642
 
690 chandransh 3643
  def process_mergeCart(self, seqid, iprot, oprot):
3644
    args = mergeCart_args()
575 chandransh 3645
    args.read(iprot)
3646
    iprot.readMessageEnd()
690 chandransh 3647
    result = mergeCart_result()
3648
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3649
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
3653
 
3654
  def process_checkOut(self, seqid, iprot, oprot):
3655
    args = checkOut_args()
3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
3658
    result = checkOut_result()
575 chandransh 3659
    try:
690 chandransh 3660
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3661
    except ShoppingCartException, scex:
3662
      result.scex = scex
690 chandransh 3663
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3664
    result.write(oprot)
3665
    oprot.writeMessageEnd()
3666
    oprot.trans.flush()
3667
 
690 chandransh 3668
  def process_resetCart(self, seqid, iprot, oprot):
3669
    args = resetCart_args()
559 chandransh 3670
    args.read(iprot)
3671
    iprot.readMessageEnd()
690 chandransh 3672
    result = resetCart_result()
3673
    try:
3674
      result.success = self._handler.resetCart(args.cartId, args.items)
3675
    except ShoppingCartException, scex:
3676
      result.scex = scex
3677
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
2981 rajveer 3682
  def process_getUserCount(self, seqid, iprot, oprot):
3683
    args = getUserCount_args()
559 chandransh 3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
2981 rajveer 3686
    result = getUserCount_result()
3687
    result.success = self._handler.getUserCount(args.userType)
3688
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3689
    result.write(oprot)
3690
    oprot.writeMessageEnd()
3691
    oprot.trans.flush()
3692
 
2981 rajveer 3693
  def process_getAllUsers(self, seqid, iprot, oprot):
3694
    args = getAllUsers_args()
559 chandransh 3695
    args.read(iprot)
3696
    iprot.readMessageEnd()
2981 rajveer 3697
    result = getAllUsers_result()
3698
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3699
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3700
    result.write(oprot)
3701
    oprot.writeMessageEnd()
3702
    oprot.trans.flush()
3703
 
2981 rajveer 3704
  def process_putUserNote(self, seqid, iprot, oprot):
3705
    args = putUserNote_args()
559 chandransh 3706
    args.read(iprot)
3707
    iprot.readMessageEnd()
2981 rajveer 3708
    result = putUserNote_result()
3709
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3710
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3711
    result.write(oprot)
3712
    oprot.writeMessageEnd()
3713
    oprot.trans.flush()
3714
 
2981 rajveer 3715
  def process_getUserNotes(self, seqid, iprot, oprot):
3716
    args = getUserNotes_args()
559 chandransh 3717
    args.read(iprot)
3718
    iprot.readMessageEnd()
2981 rajveer 3719
    result = getUserNotes_result()
3720
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3721
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3722
    result.write(oprot)
3723
    oprot.writeMessageEnd()
3724
    oprot.trans.flush()
3725
 
2981 rajveer 3726
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3727
    args = getMyResearchItems_args()
559 chandransh 3728
    args.read(iprot)
3729
    iprot.readMessageEnd()
2981 rajveer 3730
    result = getMyResearchItems_result()
559 chandransh 3731
    try:
2981 rajveer 3732
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3733
    except WidgetException, scx:
3734
      result.scx = scx
2981 rajveer 3735
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3736
    result.write(oprot)
3737
    oprot.writeMessageEnd()
3738
    oprot.trans.flush()
3739
 
2981 rajveer 3740
  def process_updateMyResearch(self, seqid, iprot, oprot):
3741
    args = updateMyResearch_args()
772 rajveer 3742
    args.read(iprot)
3743
    iprot.readMessageEnd()
2981 rajveer 3744
    result = updateMyResearch_result()
3745
    try:
3746
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3747
    except WidgetException, scx:
3748
      result.scx = scx
3749
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
559 chandransh 3753
 
2981 rajveer 3754
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3755
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
2981 rajveer 3758
    result = deleteItemFromMyResearch_result()
3759
    try:
3760
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3761
    except WidgetException, scx:
3762
      result.scx = scx
3763
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3764
    result.write(oprot)
3765
    oprot.writeMessageEnd()
3766
    oprot.trans.flush()
772 rajveer 3767
 
2981 rajveer 3768
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3769
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3770
    args.read(iprot)
3771
    iprot.readMessageEnd()
2981 rajveer 3772
    result = getBrowseHistoryItems_result()
3773
    try:
3774
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3775
    except WidgetException, scx:
3776
      result.scx = scx
3777
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
1596 ankur.sing 3781
 
2981 rajveer 3782
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3783
    args = updateBrowseHistory_args()
2642 varun.gupt 3784
    args.read(iprot)
3785
    iprot.readMessageEnd()
2981 rajveer 3786
    result = updateBrowseHistory_result()
3787
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3788
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3789
    result.write(oprot)
3790
    oprot.writeMessageEnd()
3791
    oprot.trans.flush()
1673 ankur.sing 3792
 
3385 varun.gupt 3793
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3794
    args = getCartsWithCouponCount_args()
3795
    args.read(iprot)
3796
    iprot.readMessageEnd()
3797
    result = getCartsWithCouponCount_result()
3798
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3799
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
2642 varun.gupt 3803
 
3499 mandeep.dh 3804
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3805
    args = increaseTrustLevel_args()
3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
3808
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3809
    return
3385 varun.gupt 3810
 
5407 amar.kumar 3811
  def process_getTrustLevel(self, seqid, iprot, oprot):
3812
    args = getTrustLevel_args()
3813
    args.read(iprot)
3814
    iprot.readMessageEnd()
3815
    result = getTrustLevel_result()
3816
    result.success = self._handler.getTrustLevel(args.userId)
3817
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
3818
    result.write(oprot)
3819
    oprot.writeMessageEnd()
3820
    oprot.trans.flush()
3821
 
4668 varun.gupt 3822
  def process_showCODOption(self, seqid, iprot, oprot):
3823
    args = showCODOption_args()
3824
    args.read(iprot)
3825
    iprot.readMessageEnd()
3826
    result = showCODOption_result()
3827
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3828
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3829
    result.write(oprot)
3830
    oprot.writeMessageEnd()
3831
    oprot.trans.flush()
3499 mandeep.dh 3832
 
4668 varun.gupt 3833
 
94 ashish 3834
# HELPER FUNCTIONS AND STRUCTURES
3835
 
559 chandransh 3836
class createAnonymousUser_args:
94 ashish 3837
  """
3838
  Attributes:
559 chandransh 3839
   - jsessionId
94 ashish 3840
  """
3841
 
3842
  thrift_spec = (
3843
    None, # 0
559 chandransh 3844
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3845
  )
3846
 
559 chandransh 3847
  def __init__(self, jsessionId=None,):
3848
    self.jsessionId = jsessionId
94 ashish 3849
 
3850
  def read(self, iprot):
3851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3853
      return
3854
    iprot.readStructBegin()
3855
    while True:
3856
      (fname, ftype, fid) = iprot.readFieldBegin()
3857
      if ftype == TType.STOP:
3858
        break
3859
      if fid == 1:
559 chandransh 3860
        if ftype == TType.STRING:
3861
          self.jsessionId = iprot.readString();
94 ashish 3862
        else:
3863
          iprot.skip(ftype)
3864
      else:
3865
        iprot.skip(ftype)
3866
      iprot.readFieldEnd()
3867
    iprot.readStructEnd()
3868
 
3869
  def write(self, oprot):
3870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3872
      return
559 chandransh 3873
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3874
    if self.jsessionId is not None:
559 chandransh 3875
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3876
      oprot.writeString(self.jsessionId)
94 ashish 3877
      oprot.writeFieldEnd()
3878
    oprot.writeFieldStop()
3879
    oprot.writeStructEnd()
3880
 
3431 rajveer 3881
  def validate(self):
3882
    return
3883
 
3884
 
94 ashish 3885
  def __repr__(self):
3886
    L = ['%s=%r' % (key, value)
3887
      for key, value in self.__dict__.iteritems()]
3888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3889
 
3890
  def __eq__(self, other):
3891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3892
 
3893
  def __ne__(self, other):
3894
    return not (self == other)
3895
 
559 chandransh 3896
class createAnonymousUser_result:
94 ashish 3897
  """
3898
  Attributes:
3899
   - success
559 chandransh 3900
   - ucex
94 ashish 3901
  """
3902
 
3903
  thrift_spec = (
559 chandransh 3904
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3905
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3906
  )
3907
 
559 chandransh 3908
  def __init__(self, success=None, ucex=None,):
94 ashish 3909
    self.success = success
559 chandransh 3910
    self.ucex = ucex
94 ashish 3911
 
3912
  def read(self, iprot):
3913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3915
      return
3916
    iprot.readStructBegin()
3917
    while True:
3918
      (fname, ftype, fid) = iprot.readFieldBegin()
3919
      if ftype == TType.STOP:
3920
        break
3921
      if fid == 0:
3922
        if ftype == TType.STRUCT:
559 chandransh 3923
          self.success = User()
94 ashish 3924
          self.success.read(iprot)
3925
        else:
3926
          iprot.skip(ftype)
3927
      elif fid == 1:
3928
        if ftype == TType.STRUCT:
559 chandransh 3929
          self.ucex = UserContextException()
3930
          self.ucex.read(iprot)
94 ashish 3931
        else:
3932
          iprot.skip(ftype)
3933
      else:
3934
        iprot.skip(ftype)
3935
      iprot.readFieldEnd()
3936
    iprot.readStructEnd()
3937
 
3938
  def write(self, oprot):
3939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3941
      return
559 chandransh 3942
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 3943
    if self.success is not None:
94 ashish 3944
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3945
      self.success.write(oprot)
3946
      oprot.writeFieldEnd()
3431 rajveer 3947
    if self.ucex is not None:
559 chandransh 3948
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3949
      self.ucex.write(oprot)
94 ashish 3950
      oprot.writeFieldEnd()
3951
    oprot.writeFieldStop()
3952
    oprot.writeStructEnd()
3953
 
3431 rajveer 3954
  def validate(self):
3955
    return
3956
 
3957
 
94 ashish 3958
  def __repr__(self):
3959
    L = ['%s=%r' % (key, value)
3960
      for key, value in self.__dict__.iteritems()]
3961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3962
 
3963
  def __eq__(self, other):
3964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3965
 
3966
  def __ne__(self, other):
3967
    return not (self == other)
3968
 
559 chandransh 3969
class getUserById_args:
94 ashish 3970
  """
3971
  Attributes:
3972
   - userId
3973
  """
3974
 
3975
  thrift_spec = (
3976
    None, # 0
3977
    (1, TType.I64, 'userId', None, None, ), # 1
3978
  )
3979
 
559 chandransh 3980
  def __init__(self, userId=None,):
94 ashish 3981
    self.userId = userId
3982
 
3983
  def read(self, iprot):
3984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3986
      return
3987
    iprot.readStructBegin()
3988
    while True:
3989
      (fname, ftype, fid) = iprot.readFieldBegin()
3990
      if ftype == TType.STOP:
3991
        break
3992
      if fid == 1:
3993
        if ftype == TType.I64:
3994
          self.userId = iprot.readI64();
3995
        else:
3996
          iprot.skip(ftype)
3997
      else:
3998
        iprot.skip(ftype)
3999
      iprot.readFieldEnd()
4000
    iprot.readStructEnd()
4001
 
4002
  def write(self, oprot):
4003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4005
      return
559 chandransh 4006
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4007
    if self.userId is not None:
94 ashish 4008
      oprot.writeFieldBegin('userId', TType.I64, 1)
4009
      oprot.writeI64(self.userId)
4010
      oprot.writeFieldEnd()
4011
    oprot.writeFieldStop()
4012
    oprot.writeStructEnd()
4013
 
3431 rajveer 4014
  def validate(self):
4015
    return
4016
 
4017
 
94 ashish 4018
  def __repr__(self):
4019
    L = ['%s=%r' % (key, value)
4020
      for key, value in self.__dict__.iteritems()]
4021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4022
 
4023
  def __eq__(self, other):
4024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4025
 
4026
  def __ne__(self, other):
4027
    return not (self == other)
4028
 
559 chandransh 4029
class getUserById_result:
94 ashish 4030
  """
4031
  Attributes:
4032
   - success
559 chandransh 4033
   - ucex
94 ashish 4034
  """
4035
 
4036
  thrift_spec = (
559 chandransh 4037
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4038
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4039
  )
4040
 
559 chandransh 4041
  def __init__(self, success=None, ucex=None,):
94 ashish 4042
    self.success = success
559 chandransh 4043
    self.ucex = ucex
94 ashish 4044
 
4045
  def read(self, iprot):
4046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4048
      return
4049
    iprot.readStructBegin()
4050
    while True:
4051
      (fname, ftype, fid) = iprot.readFieldBegin()
4052
      if ftype == TType.STOP:
4053
        break
4054
      if fid == 0:
4055
        if ftype == TType.STRUCT:
559 chandransh 4056
          self.success = User()
94 ashish 4057
          self.success.read(iprot)
4058
        else:
4059
          iprot.skip(ftype)
4060
      elif fid == 1:
4061
        if ftype == TType.STRUCT:
559 chandransh 4062
          self.ucex = UserContextException()
4063
          self.ucex.read(iprot)
94 ashish 4064
        else:
4065
          iprot.skip(ftype)
4066
      else:
4067
        iprot.skip(ftype)
4068
      iprot.readFieldEnd()
4069
    iprot.readStructEnd()
4070
 
4071
  def write(self, oprot):
4072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4074
      return
559 chandransh 4075
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4076
    if self.success is not None:
94 ashish 4077
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4078
      self.success.write(oprot)
4079
      oprot.writeFieldEnd()
3431 rajveer 4080
    if self.ucex is not None:
559 chandransh 4081
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4082
      self.ucex.write(oprot)
94 ashish 4083
      oprot.writeFieldEnd()
4084
    oprot.writeFieldStop()
4085
    oprot.writeStructEnd()
4086
 
3431 rajveer 4087
  def validate(self):
4088
    return
4089
 
4090
 
94 ashish 4091
  def __repr__(self):
4092
    L = ['%s=%r' % (key, value)
4093
      for key, value in self.__dict__.iteritems()]
4094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4095
 
4096
  def __eq__(self, other):
4097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4098
 
4099
  def __ne__(self, other):
4100
    return not (self == other)
4101
 
5326 rajveer 4102
class getUserByCartId_args:
1491 vikas 4103
  """
4104
  Attributes:
5326 rajveer 4105
   - cartId
1491 vikas 4106
  """
4107
 
4108
  thrift_spec = (
4109
    None, # 0
5326 rajveer 4110
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4111
  )
4112
 
5326 rajveer 4113
  def __init__(self, cartId=None,):
4114
    self.cartId = cartId
1491 vikas 4115
 
4116
  def read(self, iprot):
4117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4119
      return
4120
    iprot.readStructBegin()
4121
    while True:
4122
      (fname, ftype, fid) = iprot.readFieldBegin()
4123
      if ftype == TType.STOP:
4124
        break
4125
      if fid == 1:
5326 rajveer 4126
        if ftype == TType.I64:
4127
          self.cartId = iprot.readI64();
1491 vikas 4128
        else:
4129
          iprot.skip(ftype)
4130
      else:
4131
        iprot.skip(ftype)
4132
      iprot.readFieldEnd()
4133
    iprot.readStructEnd()
4134
 
4135
  def write(self, oprot):
4136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4138
      return
5326 rajveer 4139
    oprot.writeStructBegin('getUserByCartId_args')
4140
    if self.cartId is not None:
4141
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4142
      oprot.writeI64(self.cartId)
1491 vikas 4143
      oprot.writeFieldEnd()
4144
    oprot.writeFieldStop()
4145
    oprot.writeStructEnd()
4146
 
3431 rajveer 4147
  def validate(self):
4148
    return
4149
 
4150
 
1491 vikas 4151
  def __repr__(self):
4152
    L = ['%s=%r' % (key, value)
4153
      for key, value in self.__dict__.iteritems()]
4154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4155
 
4156
  def __eq__(self, other):
4157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4158
 
4159
  def __ne__(self, other):
4160
    return not (self == other)
4161
 
5326 rajveer 4162
class getUserByCartId_result:
1491 vikas 4163
  """
4164
  Attributes:
4165
   - success
4166
   - ucex
4167
  """
4168
 
4169
  thrift_spec = (
4170
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4171
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4172
  )
4173
 
4174
  def __init__(self, success=None, ucex=None,):
4175
    self.success = success
4176
    self.ucex = ucex
4177
 
4178
  def read(self, iprot):
4179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4181
      return
4182
    iprot.readStructBegin()
4183
    while True:
4184
      (fname, ftype, fid) = iprot.readFieldBegin()
4185
      if ftype == TType.STOP:
4186
        break
4187
      if fid == 0:
4188
        if ftype == TType.STRUCT:
4189
          self.success = User()
4190
          self.success.read(iprot)
4191
        else:
4192
          iprot.skip(ftype)
4193
      elif fid == 1:
4194
        if ftype == TType.STRUCT:
4195
          self.ucex = UserContextException()
4196
          self.ucex.read(iprot)
4197
        else:
4198
          iprot.skip(ftype)
4199
      else:
4200
        iprot.skip(ftype)
4201
      iprot.readFieldEnd()
4202
    iprot.readStructEnd()
4203
 
4204
  def write(self, oprot):
4205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4207
      return
5326 rajveer 4208
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4209
    if self.success is not None:
1491 vikas 4210
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4211
      self.success.write(oprot)
4212
      oprot.writeFieldEnd()
3431 rajveer 4213
    if self.ucex is not None:
1491 vikas 4214
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4215
      self.ucex.write(oprot)
4216
      oprot.writeFieldEnd()
4217
    oprot.writeFieldStop()
4218
    oprot.writeStructEnd()
4219
 
3431 rajveer 4220
  def validate(self):
4221
    return
4222
 
4223
 
1491 vikas 4224
  def __repr__(self):
4225
    L = ['%s=%r' % (key, value)
4226
      for key, value in self.__dict__.iteritems()]
4227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4228
 
4229
  def __eq__(self, other):
4230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4231
 
4232
  def __ne__(self, other):
4233
    return not (self == other)
4234
 
5326 rajveer 4235
class getUserByEmail_args:
3032 mandeep.dh 4236
  """
4237
  Attributes:
5326 rajveer 4238
   - email
3032 mandeep.dh 4239
  """
4240
 
4241
  thrift_spec = (
4242
    None, # 0
5326 rajveer 4243
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4244
  )
4245
 
5326 rajveer 4246
  def __init__(self, email=None,):
4247
    self.email = email
3032 mandeep.dh 4248
 
4249
  def read(self, iprot):
4250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4252
      return
4253
    iprot.readStructBegin()
4254
    while True:
4255
      (fname, ftype, fid) = iprot.readFieldBegin()
4256
      if ftype == TType.STOP:
4257
        break
4258
      if fid == 1:
5326 rajveer 4259
        if ftype == TType.STRING:
4260
          self.email = iprot.readString();
3032 mandeep.dh 4261
        else:
4262
          iprot.skip(ftype)
4263
      else:
4264
        iprot.skip(ftype)
4265
      iprot.readFieldEnd()
4266
    iprot.readStructEnd()
4267
 
4268
  def write(self, oprot):
4269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4271
      return
5326 rajveer 4272
    oprot.writeStructBegin('getUserByEmail_args')
4273
    if self.email is not None:
4274
      oprot.writeFieldBegin('email', TType.STRING, 1)
4275
      oprot.writeString(self.email)
3032 mandeep.dh 4276
      oprot.writeFieldEnd()
4277
    oprot.writeFieldStop()
4278
    oprot.writeStructEnd()
4279
 
3431 rajveer 4280
  def validate(self):
4281
    return
4282
 
4283
 
3032 mandeep.dh 4284
  def __repr__(self):
4285
    L = ['%s=%r' % (key, value)
4286
      for key, value in self.__dict__.iteritems()]
4287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4288
 
4289
  def __eq__(self, other):
4290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4291
 
4292
  def __ne__(self, other):
4293
    return not (self == other)
4294
 
5326 rajveer 4295
class getUserByEmail_result:
3032 mandeep.dh 4296
  """
4297
  Attributes:
4298
   - success
4299
   - ucex
4300
  """
4301
 
4302
  thrift_spec = (
4303
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4304
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4305
  )
4306
 
4307
  def __init__(self, success=None, ucex=None,):
4308
    self.success = success
4309
    self.ucex = ucex
4310
 
4311
  def read(self, iprot):
4312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4314
      return
4315
    iprot.readStructBegin()
4316
    while True:
4317
      (fname, ftype, fid) = iprot.readFieldBegin()
4318
      if ftype == TType.STOP:
4319
        break
4320
      if fid == 0:
4321
        if ftype == TType.STRUCT:
4322
          self.success = User()
4323
          self.success.read(iprot)
4324
        else:
4325
          iprot.skip(ftype)
4326
      elif fid == 1:
4327
        if ftype == TType.STRUCT:
4328
          self.ucex = UserContextException()
4329
          self.ucex.read(iprot)
4330
        else:
4331
          iprot.skip(ftype)
4332
      else:
4333
        iprot.skip(ftype)
4334
      iprot.readFieldEnd()
4335
    iprot.readStructEnd()
4336
 
4337
  def write(self, oprot):
4338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4340
      return
5326 rajveer 4341
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4342
    if self.success is not None:
3032 mandeep.dh 4343
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4344
      self.success.write(oprot)
4345
      oprot.writeFieldEnd()
3431 rajveer 4346
    if self.ucex is not None:
3032 mandeep.dh 4347
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4348
      self.ucex.write(oprot)
4349
      oprot.writeFieldEnd()
4350
    oprot.writeFieldStop()
4351
    oprot.writeStructEnd()
4352
 
3431 rajveer 4353
  def validate(self):
4354
    return
4355
 
4356
 
3032 mandeep.dh 4357
  def __repr__(self):
4358
    L = ['%s=%r' % (key, value)
4359
      for key, value in self.__dict__.iteritems()]
4360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4361
 
4362
  def __eq__(self, other):
4363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4364
 
4365
  def __ne__(self, other):
4366
    return not (self == other)
4367
 
5326 rajveer 4368
class getUserByMobileNumber_args:
94 ashish 4369
  """
4370
  Attributes:
5326 rajveer 4371
   - mobileNumber
94 ashish 4372
  """
4373
 
4374
  thrift_spec = (
4375
    None, # 0
5326 rajveer 4376
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4377
  )
4378
 
5326 rajveer 4379
  def __init__(self, mobileNumber=None,):
4380
    self.mobileNumber = mobileNumber
94 ashish 4381
 
4382
  def read(self, iprot):
4383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4385
      return
4386
    iprot.readStructBegin()
4387
    while True:
4388
      (fname, ftype, fid) = iprot.readFieldBegin()
4389
      if ftype == TType.STOP:
4390
        break
4391
      if fid == 1:
5326 rajveer 4392
        if ftype == TType.I64:
4393
          self.mobileNumber = iprot.readI64();
94 ashish 4394
        else:
4395
          iprot.skip(ftype)
4396
      else:
4397
        iprot.skip(ftype)
4398
      iprot.readFieldEnd()
4399
    iprot.readStructEnd()
4400
 
4401
  def write(self, oprot):
4402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4404
      return
5326 rajveer 4405
    oprot.writeStructBegin('getUserByMobileNumber_args')
4406
    if self.mobileNumber is not None:
4407
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4408
      oprot.writeI64(self.mobileNumber)
94 ashish 4409
      oprot.writeFieldEnd()
4410
    oprot.writeFieldStop()
4411
    oprot.writeStructEnd()
4412
 
3431 rajveer 4413
  def validate(self):
4414
    return
4415
 
4416
 
94 ashish 4417
  def __repr__(self):
4418
    L = ['%s=%r' % (key, value)
4419
      for key, value in self.__dict__.iteritems()]
4420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4421
 
4422
  def __eq__(self, other):
4423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4424
 
4425
  def __ne__(self, other):
4426
    return not (self == other)
4427
 
5326 rajveer 4428
class getUserByMobileNumber_result:
94 ashish 4429
  """
4430
  Attributes:
4431
   - success
559 chandransh 4432
   - ucex
94 ashish 4433
  """
4434
 
4435
  thrift_spec = (
559 chandransh 4436
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4437
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4438
  )
4439
 
559 chandransh 4440
  def __init__(self, success=None, ucex=None,):
94 ashish 4441
    self.success = success
559 chandransh 4442
    self.ucex = ucex
94 ashish 4443
 
4444
  def read(self, iprot):
4445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4447
      return
4448
    iprot.readStructBegin()
4449
    while True:
4450
      (fname, ftype, fid) = iprot.readFieldBegin()
4451
      if ftype == TType.STOP:
4452
        break
4453
      if fid == 0:
4454
        if ftype == TType.STRUCT:
559 chandransh 4455
          self.success = User()
94 ashish 4456
          self.success.read(iprot)
4457
        else:
4458
          iprot.skip(ftype)
4459
      elif fid == 1:
4460
        if ftype == TType.STRUCT:
559 chandransh 4461
          self.ucex = UserContextException()
4462
          self.ucex.read(iprot)
94 ashish 4463
        else:
4464
          iprot.skip(ftype)
4465
      else:
4466
        iprot.skip(ftype)
4467
      iprot.readFieldEnd()
4468
    iprot.readStructEnd()
4469
 
4470
  def write(self, oprot):
4471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4473
      return
5326 rajveer 4474
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4475
    if self.success is not None:
94 ashish 4476
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4477
      self.success.write(oprot)
4478
      oprot.writeFieldEnd()
3431 rajveer 4479
    if self.ucex is not None:
559 chandransh 4480
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4481
      self.ucex.write(oprot)
94 ashish 4482
      oprot.writeFieldEnd()
4483
    oprot.writeFieldStop()
4484
    oprot.writeStructEnd()
4485
 
3431 rajveer 4486
  def validate(self):
4487
    return
4488
 
4489
 
94 ashish 4490
  def __repr__(self):
4491
    L = ['%s=%r' % (key, value)
4492
      for key, value in self.__dict__.iteritems()]
4493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4494
 
4495
  def __eq__(self, other):
4496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4497
 
4498
  def __ne__(self, other):
4499
    return not (self == other)
4500
 
5326 rajveer 4501
class createUser_args:
94 ashish 4502
  """
4503
  Attributes:
559 chandransh 4504
   - user
94 ashish 4505
  """
4506
 
4507
  thrift_spec = (
4508
    None, # 0
559 chandransh 4509
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4510
  )
4511
 
559 chandransh 4512
  def __init__(self, user=None,):
4513
    self.user = user
94 ashish 4514
 
4515
  def read(self, iprot):
4516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4518
      return
4519
    iprot.readStructBegin()
4520
    while True:
4521
      (fname, ftype, fid) = iprot.readFieldBegin()
4522
      if ftype == TType.STOP:
4523
        break
4524
      if fid == 1:
559 chandransh 4525
        if ftype == TType.STRUCT:
4526
          self.user = User()
4527
          self.user.read(iprot)
94 ashish 4528
        else:
4529
          iprot.skip(ftype)
4530
      else:
4531
        iprot.skip(ftype)
4532
      iprot.readFieldEnd()
4533
    iprot.readStructEnd()
4534
 
4535
  def write(self, oprot):
4536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4538
      return
5326 rajveer 4539
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4540
    if self.user is not None:
559 chandransh 4541
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4542
      self.user.write(oprot)
94 ashish 4543
      oprot.writeFieldEnd()
4544
    oprot.writeFieldStop()
4545
    oprot.writeStructEnd()
4546
 
3431 rajveer 4547
  def validate(self):
4548
    return
4549
 
4550
 
94 ashish 4551
  def __repr__(self):
4552
    L = ['%s=%r' % (key, value)
4553
      for key, value in self.__dict__.iteritems()]
4554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4555
 
4556
  def __eq__(self, other):
4557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4558
 
4559
  def __ne__(self, other):
4560
    return not (self == other)
4561
 
5326 rajveer 4562
class createUser_result:
94 ashish 4563
  """
4564
  Attributes:
4565
   - success
559 chandransh 4566
   - ucex
94 ashish 4567
  """
4568
 
4569
  thrift_spec = (
559 chandransh 4570
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4571
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4572
  )
4573
 
559 chandransh 4574
  def __init__(self, success=None, ucex=None,):
94 ashish 4575
    self.success = success
559 chandransh 4576
    self.ucex = ucex
94 ashish 4577
 
4578
  def read(self, iprot):
4579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4581
      return
4582
    iprot.readStructBegin()
4583
    while True:
4584
      (fname, ftype, fid) = iprot.readFieldBegin()
4585
      if ftype == TType.STOP:
4586
        break
4587
      if fid == 0:
4588
        if ftype == TType.STRUCT:
559 chandransh 4589
          self.success = User()
94 ashish 4590
          self.success.read(iprot)
4591
        else:
4592
          iprot.skip(ftype)
4593
      elif fid == 1:
4594
        if ftype == TType.STRUCT:
559 chandransh 4595
          self.ucex = UserContextException()
4596
          self.ucex.read(iprot)
94 ashish 4597
        else:
4598
          iprot.skip(ftype)
4599
      else:
4600
        iprot.skip(ftype)
4601
      iprot.readFieldEnd()
4602
    iprot.readStructEnd()
4603
 
4604
  def write(self, oprot):
4605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4607
      return
5326 rajveer 4608
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4609
    if self.success is not None:
94 ashish 4610
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4611
      self.success.write(oprot)
4612
      oprot.writeFieldEnd()
3431 rajveer 4613
    if self.ucex is not None:
559 chandransh 4614
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4615
      self.ucex.write(oprot)
94 ashish 4616
      oprot.writeFieldEnd()
4617
    oprot.writeFieldStop()
4618
    oprot.writeStructEnd()
4619
 
3431 rajveer 4620
  def validate(self):
4621
    return
4622
 
4623
 
94 ashish 4624
  def __repr__(self):
4625
    L = ['%s=%r' % (key, value)
4626
      for key, value in self.__dict__.iteritems()]
4627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4628
 
4629
  def __eq__(self, other):
4630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4631
 
4632
  def __ne__(self, other):
4633
    return not (self == other)
4634
 
5326 rajveer 4635
class updateUser_args:
94 ashish 4636
  """
4637
  Attributes:
5326 rajveer 4638
   - user
94 ashish 4639
  """
4640
 
4641
  thrift_spec = (
4642
    None, # 0
5326 rajveer 4643
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4644
  )
4645
 
5326 rajveer 4646
  def __init__(self, user=None,):
4647
    self.user = user
94 ashish 4648
 
4649
  def read(self, iprot):
4650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4652
      return
4653
    iprot.readStructBegin()
4654
    while True:
4655
      (fname, ftype, fid) = iprot.readFieldBegin()
4656
      if ftype == TType.STOP:
4657
        break
4658
      if fid == 1:
5326 rajveer 4659
        if ftype == TType.STRUCT:
4660
          self.user = User()
4661
          self.user.read(iprot)
94 ashish 4662
        else:
4663
          iprot.skip(ftype)
4664
      else:
4665
        iprot.skip(ftype)
4666
      iprot.readFieldEnd()
4667
    iprot.readStructEnd()
4668
 
4669
  def write(self, oprot):
4670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4672
      return
5326 rajveer 4673
    oprot.writeStructBegin('updateUser_args')
4674
    if self.user is not None:
4675
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4676
      self.user.write(oprot)
94 ashish 4677
      oprot.writeFieldEnd()
4678
    oprot.writeFieldStop()
4679
    oprot.writeStructEnd()
4680
 
3431 rajveer 4681
  def validate(self):
4682
    return
4683
 
4684
 
94 ashish 4685
  def __repr__(self):
4686
    L = ['%s=%r' % (key, value)
4687
      for key, value in self.__dict__.iteritems()]
4688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4689
 
4690
  def __eq__(self, other):
4691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4692
 
4693
  def __ne__(self, other):
4694
    return not (self == other)
4695
 
5326 rajveer 4696
class updateUser_result:
94 ashish 4697
  """
4698
  Attributes:
4699
   - success
559 chandransh 4700
   - ucex
94 ashish 4701
  """
4702
 
4703
  thrift_spec = (
5326 rajveer 4704
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4705
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4706
  )
4707
 
559 chandransh 4708
  def __init__(self, success=None, ucex=None,):
94 ashish 4709
    self.success = success
559 chandransh 4710
    self.ucex = ucex
94 ashish 4711
 
4712
  def read(self, iprot):
4713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4715
      return
4716
    iprot.readStructBegin()
4717
    while True:
4718
      (fname, ftype, fid) = iprot.readFieldBegin()
4719
      if ftype == TType.STOP:
4720
        break
4721
      if fid == 0:
5326 rajveer 4722
        if ftype == TType.STRUCT:
4723
          self.success = User()
4724
          self.success.read(iprot)
94 ashish 4725
        else:
4726
          iprot.skip(ftype)
4727
      elif fid == 1:
4728
        if ftype == TType.STRUCT:
559 chandransh 4729
          self.ucex = UserContextException()
4730
          self.ucex.read(iprot)
94 ashish 4731
        else:
4732
          iprot.skip(ftype)
4733
      else:
4734
        iprot.skip(ftype)
4735
      iprot.readFieldEnd()
4736
    iprot.readStructEnd()
4737
 
4738
  def write(self, oprot):
4739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4741
      return
5326 rajveer 4742
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4743
    if self.success is not None:
5326 rajveer 4744
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4745
      self.success.write(oprot)
94 ashish 4746
      oprot.writeFieldEnd()
3431 rajveer 4747
    if self.ucex is not None:
559 chandransh 4748
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4749
      self.ucex.write(oprot)
94 ashish 4750
      oprot.writeFieldEnd()
4751
    oprot.writeFieldStop()
4752
    oprot.writeStructEnd()
4753
 
3431 rajveer 4754
  def validate(self):
4755
    return
4756
 
4757
 
94 ashish 4758
  def __repr__(self):
4759
    L = ['%s=%r' % (key, value)
4760
      for key, value in self.__dict__.iteritems()]
4761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4762
 
4763
  def __eq__(self, other):
4764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4765
 
4766
  def __ne__(self, other):
4767
    return not (self == other)
4768
 
559 chandransh 4769
class authenticateUser_args:
94 ashish 4770
  """
4771
  Attributes:
4772
   - email
4773
   - password
4774
  """
4775
 
4776
  thrift_spec = (
4777
    None, # 0
4778
    (1, TType.STRING, 'email', None, None, ), # 1
4779
    (2, TType.STRING, 'password', None, None, ), # 2
4780
  )
4781
 
4782
  def __init__(self, email=None, password=None,):
4783
    self.email = email
4784
    self.password = password
4785
 
4786
  def read(self, iprot):
4787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4789
      return
4790
    iprot.readStructBegin()
4791
    while True:
4792
      (fname, ftype, fid) = iprot.readFieldBegin()
4793
      if ftype == TType.STOP:
4794
        break
4795
      if fid == 1:
4796
        if ftype == TType.STRING:
4797
          self.email = iprot.readString();
4798
        else:
4799
          iprot.skip(ftype)
4800
      elif fid == 2:
4801
        if ftype == TType.STRING:
4802
          self.password = iprot.readString();
4803
        else:
4804
          iprot.skip(ftype)
4805
      else:
4806
        iprot.skip(ftype)
4807
      iprot.readFieldEnd()
4808
    iprot.readStructEnd()
4809
 
4810
  def write(self, oprot):
4811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4813
      return
559 chandransh 4814
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4815
    if self.email is not None:
94 ashish 4816
      oprot.writeFieldBegin('email', TType.STRING, 1)
4817
      oprot.writeString(self.email)
4818
      oprot.writeFieldEnd()
3431 rajveer 4819
    if self.password is not None:
94 ashish 4820
      oprot.writeFieldBegin('password', TType.STRING, 2)
4821
      oprot.writeString(self.password)
4822
      oprot.writeFieldEnd()
4823
    oprot.writeFieldStop()
4824
    oprot.writeStructEnd()
4825
 
3431 rajveer 4826
  def validate(self):
4827
    return
4828
 
4829
 
94 ashish 4830
  def __repr__(self):
4831
    L = ['%s=%r' % (key, value)
4832
      for key, value in self.__dict__.iteritems()]
4833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4834
 
4835
  def __eq__(self, other):
4836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4837
 
4838
  def __ne__(self, other):
4839
    return not (self == other)
4840
 
559 chandransh 4841
class authenticateUser_result:
94 ashish 4842
  """
4843
  Attributes:
4844
   - success
559 chandransh 4845
   - auex
94 ashish 4846
  """
4847
 
4848
  thrift_spec = (
559 chandransh 4849
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4850
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4851
  )
4852
 
559 chandransh 4853
  def __init__(self, success=None, auex=None,):
94 ashish 4854
    self.success = success
559 chandransh 4855
    self.auex = auex
94 ashish 4856
 
4857
  def read(self, iprot):
4858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4860
      return
4861
    iprot.readStructBegin()
4862
    while True:
4863
      (fname, ftype, fid) = iprot.readFieldBegin()
4864
      if ftype == TType.STOP:
4865
        break
4866
      if fid == 0:
4867
        if ftype == TType.STRUCT:
559 chandransh 4868
          self.success = User()
94 ashish 4869
          self.success.read(iprot)
4870
        else:
4871
          iprot.skip(ftype)
4872
      elif fid == 1:
4873
        if ftype == TType.STRUCT:
559 chandransh 4874
          self.auex = AuthenticationException()
4875
          self.auex.read(iprot)
94 ashish 4876
        else:
4877
          iprot.skip(ftype)
4878
      else:
4879
        iprot.skip(ftype)
4880
      iprot.readFieldEnd()
4881
    iprot.readStructEnd()
4882
 
4883
  def write(self, oprot):
4884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4886
      return
559 chandransh 4887
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4888
    if self.success is not None:
94 ashish 4889
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4890
      self.success.write(oprot)
4891
      oprot.writeFieldEnd()
3431 rajveer 4892
    if self.auex is not None:
559 chandransh 4893
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4894
      self.auex.write(oprot)
94 ashish 4895
      oprot.writeFieldEnd()
4896
    oprot.writeFieldStop()
4897
    oprot.writeStructEnd()
4898
 
3431 rajveer 4899
  def validate(self):
4900
    return
4901
 
4902
 
94 ashish 4903
  def __repr__(self):
4904
    L = ['%s=%r' % (key, value)
4905
      for key, value in self.__dict__.iteritems()]
4906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4907
 
4908
  def __eq__(self, other):
4909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4910
 
4911
  def __ne__(self, other):
4912
    return not (self == other)
4913
 
559 chandransh 4914
class userExists_args:
122 ashish 4915
  """
4916
  Attributes:
559 chandransh 4917
   - email
122 ashish 4918
  """
4919
 
4920
  thrift_spec = (
4921
    None, # 0
559 chandransh 4922
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4923
  )
4924
 
559 chandransh 4925
  def __init__(self, email=None,):
4926
    self.email = email
122 ashish 4927
 
4928
  def read(self, iprot):
4929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4931
      return
4932
    iprot.readStructBegin()
4933
    while True:
4934
      (fname, ftype, fid) = iprot.readFieldBegin()
4935
      if ftype == TType.STOP:
4936
        break
4937
      if fid == 1:
4938
        if ftype == TType.STRING:
559 chandransh 4939
          self.email = iprot.readString();
122 ashish 4940
        else:
4941
          iprot.skip(ftype)
559 chandransh 4942
      else:
4943
        iprot.skip(ftype)
4944
      iprot.readFieldEnd()
4945
    iprot.readStructEnd()
4946
 
4947
  def write(self, oprot):
4948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4950
      return
4951
    oprot.writeStructBegin('userExists_args')
3431 rajveer 4952
    if self.email is not None:
559 chandransh 4953
      oprot.writeFieldBegin('email', TType.STRING, 1)
4954
      oprot.writeString(self.email)
4955
      oprot.writeFieldEnd()
4956
    oprot.writeFieldStop()
4957
    oprot.writeStructEnd()
4958
 
3431 rajveer 4959
  def validate(self):
4960
    return
4961
 
4962
 
559 chandransh 4963
  def __repr__(self):
4964
    L = ['%s=%r' % (key, value)
4965
      for key, value in self.__dict__.iteritems()]
4966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4967
 
4968
  def __eq__(self, other):
4969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4970
 
4971
  def __ne__(self, other):
4972
    return not (self == other)
4973
 
4974
class userExists_result:
4975
  """
4976
  Attributes:
4977
   - success
4978
   - ucx
4979
  """
4980
 
4981
  thrift_spec = (
4982
    (0, TType.BOOL, 'success', None, None, ), # 0
4983
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4984
  )
4985
 
4986
  def __init__(self, success=None, ucx=None,):
4987
    self.success = success
4988
    self.ucx = ucx
4989
 
4990
  def read(self, iprot):
4991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4993
      return
4994
    iprot.readStructBegin()
4995
    while True:
4996
      (fname, ftype, fid) = iprot.readFieldBegin()
4997
      if ftype == TType.STOP:
4998
        break
4999
      if fid == 0:
5000
        if ftype == TType.BOOL:
5001
          self.success = iprot.readBool();
5002
        else:
5003
          iprot.skip(ftype)
5004
      elif fid == 1:
5005
        if ftype == TType.STRUCT:
5006
          self.ucx = UserContextException()
5007
          self.ucx.read(iprot)
5008
        else:
5009
          iprot.skip(ftype)
5010
      else:
5011
        iprot.skip(ftype)
5012
      iprot.readFieldEnd()
5013
    iprot.readStructEnd()
5014
 
5015
  def write(self, oprot):
5016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5018
      return
5019
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5020
    if self.success is not None:
559 chandransh 5021
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5022
      oprot.writeBool(self.success)
5023
      oprot.writeFieldEnd()
3431 rajveer 5024
    if self.ucx is not None:
559 chandransh 5025
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5026
      self.ucx.write(oprot)
5027
      oprot.writeFieldEnd()
5028
    oprot.writeFieldStop()
5029
    oprot.writeStructEnd()
5030
 
3431 rajveer 5031
  def validate(self):
5032
    return
5033
 
5034
 
559 chandransh 5035
  def __repr__(self):
5036
    L = ['%s=%r' % (key, value)
5037
      for key, value in self.__dict__.iteritems()]
5038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5039
 
5040
  def __eq__(self, other):
5041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5042
 
5043
  def __ne__(self, other):
5044
    return not (self == other)
5045
 
5046
class addAddressForUser_args:
5047
  """
5048
  Attributes:
5049
   - userId
5050
   - address
5051
   - setDefault
5052
  """
5053
 
5054
  thrift_spec = (
5055
    None, # 0
5056
    (1, TType.I64, 'userId', None, None, ), # 1
5057
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5058
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5059
  )
5060
 
567 rajveer 5061
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5062
    self.userId = userId
5063
    self.address = address
5064
    self.setDefault = setDefault
5065
 
5066
  def read(self, iprot):
5067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5069
      return
5070
    iprot.readStructBegin()
5071
    while True:
5072
      (fname, ftype, fid) = iprot.readFieldBegin()
5073
      if ftype == TType.STOP:
5074
        break
5075
      if fid == 1:
5076
        if ftype == TType.I64:
5077
          self.userId = iprot.readI64();
5078
        else:
5079
          iprot.skip(ftype)
122 ashish 5080
      elif fid == 2:
559 chandransh 5081
        if ftype == TType.STRUCT:
5082
          self.address = Address()
5083
          self.address.read(iprot)
122 ashish 5084
        else:
5085
          iprot.skip(ftype)
5086
      elif fid == 3:
5087
        if ftype == TType.BOOL:
559 chandransh 5088
          self.setDefault = iprot.readBool();
122 ashish 5089
        else:
5090
          iprot.skip(ftype)
5091
      else:
5092
        iprot.skip(ftype)
5093
      iprot.readFieldEnd()
5094
    iprot.readStructEnd()
5095
 
5096
  def write(self, oprot):
5097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5099
      return
559 chandransh 5100
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5101
    if self.userId is not None:
559 chandransh 5102
      oprot.writeFieldBegin('userId', TType.I64, 1)
5103
      oprot.writeI64(self.userId)
122 ashish 5104
      oprot.writeFieldEnd()
3431 rajveer 5105
    if self.address is not None:
559 chandransh 5106
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5107
      self.address.write(oprot)
122 ashish 5108
      oprot.writeFieldEnd()
3431 rajveer 5109
    if self.setDefault is not None:
567 rajveer 5110
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5111
      oprot.writeBool(self.setDefault)
5112
      oprot.writeFieldEnd()
122 ashish 5113
    oprot.writeFieldStop()
5114
    oprot.writeStructEnd()
5115
 
3431 rajveer 5116
  def validate(self):
5117
    return
5118
 
5119
 
122 ashish 5120
  def __repr__(self):
5121
    L = ['%s=%r' % (key, value)
5122
      for key, value in self.__dict__.iteritems()]
5123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5124
 
5125
  def __eq__(self, other):
5126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5127
 
5128
  def __ne__(self, other):
5129
    return not (self == other)
5130
 
559 chandransh 5131
class addAddressForUser_result:
122 ashish 5132
  """
5133
  Attributes:
5134
   - success
559 chandransh 5135
   - ucx
122 ashish 5136
  """
5137
 
5138
  thrift_spec = (
567 rajveer 5139
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5140
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5141
  )
5142
 
559 chandransh 5143
  def __init__(self, success=None, ucx=None,):
122 ashish 5144
    self.success = success
559 chandransh 5145
    self.ucx = ucx
122 ashish 5146
 
5147
  def read(self, iprot):
5148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5150
      return
5151
    iprot.readStructBegin()
5152
    while True:
5153
      (fname, ftype, fid) = iprot.readFieldBegin()
5154
      if ftype == TType.STOP:
5155
        break
5156
      if fid == 0:
567 rajveer 5157
        if ftype == TType.I64:
5158
          self.success = iprot.readI64();
122 ashish 5159
        else:
5160
          iprot.skip(ftype)
5161
      elif fid == 1:
5162
        if ftype == TType.STRUCT:
559 chandransh 5163
          self.ucx = UserContextException()
5164
          self.ucx.read(iprot)
122 ashish 5165
        else:
5166
          iprot.skip(ftype)
5167
      else:
5168
        iprot.skip(ftype)
5169
      iprot.readFieldEnd()
5170
    iprot.readStructEnd()
5171
 
5172
  def write(self, oprot):
5173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5175
      return
559 chandransh 5176
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5177
    if self.success is not None:
567 rajveer 5178
      oprot.writeFieldBegin('success', TType.I64, 0)
5179
      oprot.writeI64(self.success)
122 ashish 5180
      oprot.writeFieldEnd()
3431 rajveer 5181
    if self.ucx is not None:
559 chandransh 5182
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5183
      self.ucx.write(oprot)
122 ashish 5184
      oprot.writeFieldEnd()
5185
    oprot.writeFieldStop()
5186
    oprot.writeStructEnd()
5187
 
3431 rajveer 5188
  def validate(self):
5189
    return
5190
 
5191
 
122 ashish 5192
  def __repr__(self):
5193
    L = ['%s=%r' % (key, value)
5194
      for key, value in self.__dict__.iteritems()]
5195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5196
 
5197
  def __eq__(self, other):
5198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5199
 
5200
  def __ne__(self, other):
5201
    return not (self == other)
5202
 
559 chandransh 5203
class removeAddressForUser_args:
94 ashish 5204
  """
5205
  Attributes:
559 chandransh 5206
   - userid
5207
   - addressId
94 ashish 5208
  """
5209
 
5210
  thrift_spec = (
5211
    None, # 0
559 chandransh 5212
    (1, TType.I64, 'userid', None, None, ), # 1
5213
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5214
  )
5215
 
559 chandransh 5216
  def __init__(self, userid=None, addressId=None,):
5217
    self.userid = userid
5218
    self.addressId = addressId
94 ashish 5219
 
5220
  def read(self, iprot):
5221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5223
      return
5224
    iprot.readStructBegin()
5225
    while True:
5226
      (fname, ftype, fid) = iprot.readFieldBegin()
5227
      if ftype == TType.STOP:
5228
        break
5229
      if fid == 1:
559 chandransh 5230
        if ftype == TType.I64:
5231
          self.userid = iprot.readI64();
94 ashish 5232
        else:
5233
          iprot.skip(ftype)
559 chandransh 5234
      elif fid == 2:
5235
        if ftype == TType.I64:
5236
          self.addressId = iprot.readI64();
5237
        else:
5238
          iprot.skip(ftype)
94 ashish 5239
      else:
5240
        iprot.skip(ftype)
5241
      iprot.readFieldEnd()
5242
    iprot.readStructEnd()
5243
 
5244
  def write(self, oprot):
5245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5247
      return
559 chandransh 5248
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5249
    if self.userid is not None:
559 chandransh 5250
      oprot.writeFieldBegin('userid', TType.I64, 1)
5251
      oprot.writeI64(self.userid)
94 ashish 5252
      oprot.writeFieldEnd()
3431 rajveer 5253
    if self.addressId is not None:
559 chandransh 5254
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5255
      oprot.writeI64(self.addressId)
5256
      oprot.writeFieldEnd()
94 ashish 5257
    oprot.writeFieldStop()
5258
    oprot.writeStructEnd()
5259
 
3431 rajveer 5260
  def validate(self):
5261
    return
5262
 
5263
 
94 ashish 5264
  def __repr__(self):
5265
    L = ['%s=%r' % (key, value)
5266
      for key, value in self.__dict__.iteritems()]
5267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5268
 
5269
  def __eq__(self, other):
5270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5271
 
5272
  def __ne__(self, other):
5273
    return not (self == other)
5274
 
559 chandransh 5275
class removeAddressForUser_result:
94 ashish 5276
  """
5277
  Attributes:
5278
   - success
5279
   - ucx
5280
  """
5281
 
5282
  thrift_spec = (
5283
    (0, TType.BOOL, 'success', None, None, ), # 0
5284
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5285
  )
5286
 
5287
  def __init__(self, success=None, ucx=None,):
5288
    self.success = success
5289
    self.ucx = ucx
5290
 
5291
  def read(self, iprot):
5292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5294
      return
5295
    iprot.readStructBegin()
5296
    while True:
5297
      (fname, ftype, fid) = iprot.readFieldBegin()
5298
      if ftype == TType.STOP:
5299
        break
5300
      if fid == 0:
5301
        if ftype == TType.BOOL:
5302
          self.success = iprot.readBool();
5303
        else:
5304
          iprot.skip(ftype)
5305
      elif fid == 1:
5306
        if ftype == TType.STRUCT:
5307
          self.ucx = UserContextException()
5308
          self.ucx.read(iprot)
5309
        else:
5310
          iprot.skip(ftype)
5311
      else:
5312
        iprot.skip(ftype)
5313
      iprot.readFieldEnd()
5314
    iprot.readStructEnd()
5315
 
5316
  def write(self, oprot):
5317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5319
      return
559 chandransh 5320
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5321
    if self.success is not None:
94 ashish 5322
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5323
      oprot.writeBool(self.success)
5324
      oprot.writeFieldEnd()
3431 rajveer 5325
    if self.ucx is not None:
94 ashish 5326
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5327
      self.ucx.write(oprot)
5328
      oprot.writeFieldEnd()
5329
    oprot.writeFieldStop()
5330
    oprot.writeStructEnd()
5331
 
3431 rajveer 5332
  def validate(self):
5333
    return
5334
 
5335
 
94 ashish 5336
  def __repr__(self):
5337
    L = ['%s=%r' % (key, value)
5338
      for key, value in self.__dict__.iteritems()]
5339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5340
 
5341
  def __eq__(self, other):
5342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5343
 
5344
  def __ne__(self, other):
5345
    return not (self == other)
5346
 
559 chandransh 5347
class setUserAsLoggedIn_args:
94 ashish 5348
  """
5349
  Attributes:
559 chandransh 5350
   - userId
94 ashish 5351
   - timestamp
5352
  """
5353
 
5354
  thrift_spec = (
5355
    None, # 0
559 chandransh 5356
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5357
    (2, TType.I64, 'timestamp', None, None, ), # 2
5358
  )
5359
 
559 chandransh 5360
  def __init__(self, userId=None, timestamp=None,):
5361
    self.userId = userId
94 ashish 5362
    self.timestamp = timestamp
5363
 
5364
  def read(self, iprot):
5365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5367
      return
5368
    iprot.readStructBegin()
5369
    while True:
5370
      (fname, ftype, fid) = iprot.readFieldBegin()
5371
      if ftype == TType.STOP:
5372
        break
5373
      if fid == 1:
559 chandransh 5374
        if ftype == TType.I64:
5375
          self.userId = iprot.readI64();
94 ashish 5376
        else:
5377
          iprot.skip(ftype)
5378
      elif fid == 2:
5379
        if ftype == TType.I64:
5380
          self.timestamp = iprot.readI64();
5381
        else:
5382
          iprot.skip(ftype)
5383
      else:
5384
        iprot.skip(ftype)
5385
      iprot.readFieldEnd()
5386
    iprot.readStructEnd()
5387
 
5388
  def write(self, oprot):
5389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5391
      return
559 chandransh 5392
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5393
    if self.userId is not None:
559 chandransh 5394
      oprot.writeFieldBegin('userId', TType.I64, 1)
5395
      oprot.writeI64(self.userId)
94 ashish 5396
      oprot.writeFieldEnd()
3431 rajveer 5397
    if self.timestamp is not None:
94 ashish 5398
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5399
      oprot.writeI64(self.timestamp)
5400
      oprot.writeFieldEnd()
5401
    oprot.writeFieldStop()
5402
    oprot.writeStructEnd()
5403
 
3431 rajveer 5404
  def validate(self):
5405
    return
5406
 
5407
 
94 ashish 5408
  def __repr__(self):
5409
    L = ['%s=%r' % (key, value)
5410
      for key, value in self.__dict__.iteritems()]
5411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5412
 
5413
  def __eq__(self, other):
5414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5415
 
5416
  def __ne__(self, other):
5417
    return not (self == other)
5418
 
559 chandransh 5419
class setUserAsLoggedIn_result:
94 ashish 5420
  """
5421
  Attributes:
5422
   - success
5423
   - ucx
5424
  """
5425
 
5426
  thrift_spec = (
5427
    (0, TType.BOOL, 'success', None, None, ), # 0
5428
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5429
  )
5430
 
5431
  def __init__(self, success=None, ucx=None,):
5432
    self.success = success
5433
    self.ucx = ucx
5434
 
5435
  def read(self, iprot):
5436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5438
      return
5439
    iprot.readStructBegin()
5440
    while True:
5441
      (fname, ftype, fid) = iprot.readFieldBegin()
5442
      if ftype == TType.STOP:
5443
        break
5444
      if fid == 0:
5445
        if ftype == TType.BOOL:
5446
          self.success = iprot.readBool();
5447
        else:
5448
          iprot.skip(ftype)
5449
      elif fid == 1:
5450
        if ftype == TType.STRUCT:
5451
          self.ucx = UserContextException()
5452
          self.ucx.read(iprot)
5453
        else:
5454
          iprot.skip(ftype)
5455
      else:
5456
        iprot.skip(ftype)
5457
      iprot.readFieldEnd()
5458
    iprot.readStructEnd()
5459
 
5460
  def write(self, oprot):
5461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5463
      return
559 chandransh 5464
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5465
    if self.success is not None:
94 ashish 5466
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5467
      oprot.writeBool(self.success)
5468
      oprot.writeFieldEnd()
3431 rajveer 5469
    if self.ucx is not None:
94 ashish 5470
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5471
      self.ucx.write(oprot)
5472
      oprot.writeFieldEnd()
5473
    oprot.writeFieldStop()
5474
    oprot.writeStructEnd()
5475
 
3431 rajveer 5476
  def validate(self):
5477
    return
5478
 
5479
 
94 ashish 5480
  def __repr__(self):
5481
    L = ['%s=%r' % (key, value)
5482
      for key, value in self.__dict__.iteritems()]
5483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5484
 
5485
  def __eq__(self, other):
5486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5487
 
5488
  def __ne__(self, other):
5489
    return not (self == other)
5490
 
559 chandransh 5491
class setUserAsLoggedOut_args:
94 ashish 5492
  """
5493
  Attributes:
5494
   - userid
5495
   - timestamp
5496
  """
5497
 
5498
  thrift_spec = (
5499
    None, # 0
559 chandransh 5500
    (1, TType.I64, 'userid', None, None, ), # 1
5501
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5502
  )
5503
 
559 chandransh 5504
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5505
    self.userid = userid
5506
    self.timestamp = timestamp
5507
 
5508
  def read(self, iprot):
5509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5511
      return
5512
    iprot.readStructBegin()
5513
    while True:
5514
      (fname, ftype, fid) = iprot.readFieldBegin()
5515
      if ftype == TType.STOP:
5516
        break
5517
      if fid == 1:
5518
        if ftype == TType.I64:
5519
          self.userid = iprot.readI64();
5520
        else:
5521
          iprot.skip(ftype)
559 chandransh 5522
      elif fid == 2:
94 ashish 5523
        if ftype == TType.I64:
5524
          self.timestamp = iprot.readI64();
5525
        else:
5526
          iprot.skip(ftype)
5527
      else:
5528
        iprot.skip(ftype)
5529
      iprot.readFieldEnd()
5530
    iprot.readStructEnd()
5531
 
5532
  def write(self, oprot):
5533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5535
      return
559 chandransh 5536
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5537
    if self.userid is not None:
559 chandransh 5538
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5539
      oprot.writeI64(self.userid)
5540
      oprot.writeFieldEnd()
3431 rajveer 5541
    if self.timestamp is not None:
559 chandransh 5542
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5543
      oprot.writeI64(self.timestamp)
5544
      oprot.writeFieldEnd()
5545
    oprot.writeFieldStop()
5546
    oprot.writeStructEnd()
5547
 
3431 rajveer 5548
  def validate(self):
5549
    return
5550
 
5551
 
94 ashish 5552
  def __repr__(self):
5553
    L = ['%s=%r' % (key, value)
5554
      for key, value in self.__dict__.iteritems()]
5555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5556
 
5557
  def __eq__(self, other):
5558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5559
 
5560
  def __ne__(self, other):
5561
    return not (self == other)
5562
 
559 chandransh 5563
class setUserAsLoggedOut_result:
94 ashish 5564
  """
5565
  Attributes:
5566
   - success
5567
   - ucx
5568
  """
5569
 
5570
  thrift_spec = (
5571
    (0, TType.BOOL, 'success', None, None, ), # 0
5572
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5573
  )
5574
 
5575
  def __init__(self, success=None, ucx=None,):
5576
    self.success = success
5577
    self.ucx = ucx
5578
 
5579
  def read(self, iprot):
5580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5582
      return
5583
    iprot.readStructBegin()
5584
    while True:
5585
      (fname, ftype, fid) = iprot.readFieldBegin()
5586
      if ftype == TType.STOP:
5587
        break
5588
      if fid == 0:
5589
        if ftype == TType.BOOL:
5590
          self.success = iprot.readBool();
5591
        else:
5592
          iprot.skip(ftype)
5593
      elif fid == 1:
5594
        if ftype == TType.STRUCT:
5595
          self.ucx = UserContextException()
5596
          self.ucx.read(iprot)
5597
        else:
5598
          iprot.skip(ftype)
5599
      else:
5600
        iprot.skip(ftype)
5601
      iprot.readFieldEnd()
5602
    iprot.readStructEnd()
5603
 
5604
  def write(self, oprot):
5605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5607
      return
559 chandransh 5608
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5609
    if self.success is not None:
94 ashish 5610
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5611
      oprot.writeBool(self.success)
5612
      oprot.writeFieldEnd()
3431 rajveer 5613
    if self.ucx is not None:
94 ashish 5614
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5615
      self.ucx.write(oprot)
5616
      oprot.writeFieldEnd()
5617
    oprot.writeFieldStop()
5618
    oprot.writeStructEnd()
5619
 
3431 rajveer 5620
  def validate(self):
5621
    return
5622
 
5623
 
94 ashish 5624
  def __repr__(self):
5625
    L = ['%s=%r' % (key, value)
5626
      for key, value in self.__dict__.iteritems()]
5627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5628
 
5629
  def __eq__(self, other):
5630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5631
 
5632
  def __ne__(self, other):
5633
    return not (self == other)
5634
 
559 chandransh 5635
class setDefaultAddress_args:
94 ashish 5636
  """
5637
  Attributes:
5638
   - userid
5639
   - addressId
5640
  """
5641
 
5642
  thrift_spec = (
5643
    None, # 0
5644
    (1, TType.I64, 'userid', None, None, ), # 1
5645
    (2, TType.I64, 'addressId', None, None, ), # 2
5646
  )
5647
 
5648
  def __init__(self, userid=None, addressId=None,):
5649
    self.userid = userid
5650
    self.addressId = addressId
5651
 
5652
  def read(self, iprot):
5653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5655
      return
5656
    iprot.readStructBegin()
5657
    while True:
5658
      (fname, ftype, fid) = iprot.readFieldBegin()
5659
      if ftype == TType.STOP:
5660
        break
5661
      if fid == 1:
5662
        if ftype == TType.I64:
5663
          self.userid = iprot.readI64();
5664
        else:
5665
          iprot.skip(ftype)
5666
      elif fid == 2:
5667
        if ftype == TType.I64:
5668
          self.addressId = iprot.readI64();
5669
        else:
5670
          iprot.skip(ftype)
5671
      else:
5672
        iprot.skip(ftype)
5673
      iprot.readFieldEnd()
5674
    iprot.readStructEnd()
5675
 
5676
  def write(self, oprot):
5677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5679
      return
559 chandransh 5680
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5681
    if self.userid is not None:
94 ashish 5682
      oprot.writeFieldBegin('userid', TType.I64, 1)
5683
      oprot.writeI64(self.userid)
5684
      oprot.writeFieldEnd()
3431 rajveer 5685
    if self.addressId is not None:
94 ashish 5686
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5687
      oprot.writeI64(self.addressId)
5688
      oprot.writeFieldEnd()
5689
    oprot.writeFieldStop()
5690
    oprot.writeStructEnd()
5691
 
3431 rajveer 5692
  def validate(self):
5693
    return
5694
 
5695
 
94 ashish 5696
  def __repr__(self):
5697
    L = ['%s=%r' % (key, value)
5698
      for key, value in self.__dict__.iteritems()]
5699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5700
 
5701
  def __eq__(self, other):
5702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5703
 
5704
  def __ne__(self, other):
5705
    return not (self == other)
5706
 
559 chandransh 5707
class setDefaultAddress_result:
94 ashish 5708
  """
5709
  Attributes:
5710
   - success
5711
   - ucx
5712
  """
5713
 
5714
  thrift_spec = (
5715
    (0, TType.BOOL, 'success', None, None, ), # 0
5716
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5717
  )
5718
 
5719
  def __init__(self, success=None, ucx=None,):
5720
    self.success = success
5721
    self.ucx = ucx
5722
 
5723
  def read(self, iprot):
5724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5726
      return
5727
    iprot.readStructBegin()
5728
    while True:
5729
      (fname, ftype, fid) = iprot.readFieldBegin()
5730
      if ftype == TType.STOP:
5731
        break
5732
      if fid == 0:
5733
        if ftype == TType.BOOL:
5734
          self.success = iprot.readBool();
5735
        else:
5736
          iprot.skip(ftype)
5737
      elif fid == 1:
5738
        if ftype == TType.STRUCT:
5739
          self.ucx = UserContextException()
5740
          self.ucx.read(iprot)
5741
        else:
5742
          iprot.skip(ftype)
5743
      else:
5744
        iprot.skip(ftype)
5745
      iprot.readFieldEnd()
5746
    iprot.readStructEnd()
5747
 
5748
  def write(self, oprot):
5749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5751
      return
559 chandransh 5752
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5753
    if self.success is not None:
94 ashish 5754
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5755
      oprot.writeBool(self.success)
5756
      oprot.writeFieldEnd()
3431 rajveer 5757
    if self.ucx is not None:
94 ashish 5758
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5759
      self.ucx.write(oprot)
5760
      oprot.writeFieldEnd()
5761
    oprot.writeFieldStop()
5762
    oprot.writeStructEnd()
5763
 
3431 rajveer 5764
  def validate(self):
5765
    return
5766
 
5767
 
94 ashish 5768
  def __repr__(self):
5769
    L = ['%s=%r' % (key, value)
5770
      for key, value in self.__dict__.iteritems()]
5771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5772
 
5773
  def __eq__(self, other):
5774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5775
 
5776
  def __ne__(self, other):
5777
    return not (self == other)
5778
 
559 chandransh 5779
class updatePassword_args:
94 ashish 5780
  """
5781
  Attributes:
559 chandransh 5782
   - userid
594 rajveer 5783
   - oldPassword
5784
   - newPassword
94 ashish 5785
  """
5786
 
5787
  thrift_spec = (
5788
    None, # 0
559 chandransh 5789
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5790
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5791
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5792
  )
5793
 
594 rajveer 5794
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5795
    self.userid = userid
594 rajveer 5796
    self.oldPassword = oldPassword
5797
    self.newPassword = newPassword
94 ashish 5798
 
5799
  def read(self, iprot):
5800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5802
      return
5803
    iprot.readStructBegin()
5804
    while True:
5805
      (fname, ftype, fid) = iprot.readFieldBegin()
5806
      if ftype == TType.STOP:
5807
        break
5808
      if fid == 1:
5809
        if ftype == TType.I64:
559 chandransh 5810
          self.userid = iprot.readI64();
94 ashish 5811
        else:
5812
          iprot.skip(ftype)
5813
      elif fid == 2:
559 chandransh 5814
        if ftype == TType.STRING:
594 rajveer 5815
          self.oldPassword = iprot.readString();
94 ashish 5816
        else:
5817
          iprot.skip(ftype)
594 rajveer 5818
      elif fid == 3:
5819
        if ftype == TType.STRING:
5820
          self.newPassword = iprot.readString();
5821
        else:
5822
          iprot.skip(ftype)
94 ashish 5823
      else:
5824
        iprot.skip(ftype)
5825
      iprot.readFieldEnd()
5826
    iprot.readStructEnd()
5827
 
5828
  def write(self, oprot):
5829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5831
      return
559 chandransh 5832
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5833
    if self.userid is not None:
559 chandransh 5834
      oprot.writeFieldBegin('userid', TType.I64, 1)
5835
      oprot.writeI64(self.userid)
94 ashish 5836
      oprot.writeFieldEnd()
3431 rajveer 5837
    if self.oldPassword is not None:
594 rajveer 5838
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5839
      oprot.writeString(self.oldPassword)
94 ashish 5840
      oprot.writeFieldEnd()
3431 rajveer 5841
    if self.newPassword is not None:
594 rajveer 5842
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5843
      oprot.writeString(self.newPassword)
5844
      oprot.writeFieldEnd()
94 ashish 5845
    oprot.writeFieldStop()
5846
    oprot.writeStructEnd()
5847
 
3431 rajveer 5848
  def validate(self):
5849
    return
5850
 
5851
 
94 ashish 5852
  def __repr__(self):
5853
    L = ['%s=%r' % (key, value)
5854
      for key, value in self.__dict__.iteritems()]
5855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5856
 
5857
  def __eq__(self, other):
5858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5859
 
5860
  def __ne__(self, other):
5861
    return not (self == other)
5862
 
559 chandransh 5863
class updatePassword_result:
94 ashish 5864
  """
5865
  Attributes:
5866
   - success
5867
   - ucx
5868
  """
5869
 
5870
  thrift_spec = (
5871
    (0, TType.BOOL, 'success', None, None, ), # 0
5872
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5873
  )
5874
 
5875
  def __init__(self, success=None, ucx=None,):
5876
    self.success = success
5877
    self.ucx = ucx
5878
 
5879
  def read(self, iprot):
5880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5882
      return
5883
    iprot.readStructBegin()
5884
    while True:
5885
      (fname, ftype, fid) = iprot.readFieldBegin()
5886
      if ftype == TType.STOP:
5887
        break
5888
      if fid == 0:
5889
        if ftype == TType.BOOL:
5890
          self.success = iprot.readBool();
5891
        else:
5892
          iprot.skip(ftype)
5893
      elif fid == 1:
5894
        if ftype == TType.STRUCT:
5895
          self.ucx = UserContextException()
5896
          self.ucx.read(iprot)
5897
        else:
5898
          iprot.skip(ftype)
5899
      else:
5900
        iprot.skip(ftype)
5901
      iprot.readFieldEnd()
5902
    iprot.readStructEnd()
5903
 
5904
  def write(self, oprot):
5905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5907
      return
559 chandransh 5908
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5909
    if self.success is not None:
94 ashish 5910
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5911
      oprot.writeBool(self.success)
5912
      oprot.writeFieldEnd()
3431 rajveer 5913
    if self.ucx is not None:
94 ashish 5914
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5915
      self.ucx.write(oprot)
5916
      oprot.writeFieldEnd()
5917
    oprot.writeFieldStop()
5918
    oprot.writeStructEnd()
5919
 
3431 rajveer 5920
  def validate(self):
5921
    return
5922
 
5923
 
94 ashish 5924
  def __repr__(self):
5925
    L = ['%s=%r' % (key, value)
5926
      for key, value in self.__dict__.iteritems()]
5927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5928
 
5929
  def __eq__(self, other):
5930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5931
 
5932
  def __ne__(self, other):
5933
    return not (self == other)
5934
 
581 rajveer 5935
class forgotPassword_args:
5936
  """
5937
  Attributes:
5938
   - email
884 rajveer 5939
   - newPassword
581 rajveer 5940
  """
5941
 
5942
  thrift_spec = (
5943
    None, # 0
5944
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 5945
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 5946
  )
5947
 
884 rajveer 5948
  def __init__(self, email=None, newPassword=None,):
581 rajveer 5949
    self.email = email
884 rajveer 5950
    self.newPassword = newPassword
581 rajveer 5951
 
5952
  def read(self, iprot):
5953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5955
      return
5956
    iprot.readStructBegin()
5957
    while True:
5958
      (fname, ftype, fid) = iprot.readFieldBegin()
5959
      if ftype == TType.STOP:
5960
        break
5961
      if fid == 1:
5962
        if ftype == TType.STRING:
5963
          self.email = iprot.readString();
5964
        else:
5965
          iprot.skip(ftype)
884 rajveer 5966
      elif fid == 2:
5967
        if ftype == TType.STRING:
5968
          self.newPassword = iprot.readString();
5969
        else:
5970
          iprot.skip(ftype)
581 rajveer 5971
      else:
5972
        iprot.skip(ftype)
5973
      iprot.readFieldEnd()
5974
    iprot.readStructEnd()
5975
 
5976
  def write(self, oprot):
5977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5979
      return
5980
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 5981
    if self.email is not None:
581 rajveer 5982
      oprot.writeFieldBegin('email', TType.STRING, 1)
5983
      oprot.writeString(self.email)
5984
      oprot.writeFieldEnd()
3431 rajveer 5985
    if self.newPassword is not None:
884 rajveer 5986
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
5987
      oprot.writeString(self.newPassword)
5988
      oprot.writeFieldEnd()
581 rajveer 5989
    oprot.writeFieldStop()
5990
    oprot.writeStructEnd()
5991
 
3431 rajveer 5992
  def validate(self):
5993
    return
5994
 
5995
 
581 rajveer 5996
  def __repr__(self):
5997
    L = ['%s=%r' % (key, value)
5998
      for key, value in self.__dict__.iteritems()]
5999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6000
 
6001
  def __eq__(self, other):
6002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6003
 
6004
  def __ne__(self, other):
6005
    return not (self == other)
6006
 
6007
class forgotPassword_result:
6008
  """
6009
  Attributes:
6010
   - success
6011
   - ucx
6012
  """
6013
 
6014
  thrift_spec = (
6015
    (0, TType.BOOL, 'success', None, None, ), # 0
6016
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6017
  )
6018
 
6019
  def __init__(self, success=None, ucx=None,):
6020
    self.success = success
6021
    self.ucx = ucx
6022
 
6023
  def read(self, iprot):
6024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6026
      return
6027
    iprot.readStructBegin()
6028
    while True:
6029
      (fname, ftype, fid) = iprot.readFieldBegin()
6030
      if ftype == TType.STOP:
6031
        break
6032
      if fid == 0:
6033
        if ftype == TType.BOOL:
6034
          self.success = iprot.readBool();
6035
        else:
6036
          iprot.skip(ftype)
6037
      elif fid == 1:
6038
        if ftype == TType.STRUCT:
6039
          self.ucx = UserContextException()
6040
          self.ucx.read(iprot)
6041
        else:
6042
          iprot.skip(ftype)
6043
      else:
6044
        iprot.skip(ftype)
6045
      iprot.readFieldEnd()
6046
    iprot.readStructEnd()
6047
 
6048
  def write(self, oprot):
6049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6051
      return
6052
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6053
    if self.success is not None:
581 rajveer 6054
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6055
      oprot.writeBool(self.success)
6056
      oprot.writeFieldEnd()
3431 rajveer 6057
    if self.ucx is not None:
581 rajveer 6058
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6059
      self.ucx.write(oprot)
6060
      oprot.writeFieldEnd()
6061
    oprot.writeFieldStop()
6062
    oprot.writeStructEnd()
6063
 
3431 rajveer 6064
  def validate(self):
6065
    return
6066
 
6067
 
581 rajveer 6068
  def __repr__(self):
6069
    L = ['%s=%r' % (key, value)
6070
      for key, value in self.__dict__.iteritems()]
6071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6072
 
6073
  def __eq__(self, other):
6074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6075
 
6076
  def __ne__(self, other):
6077
    return not (self == other)
6078
 
594 rajveer 6079
class getAllAddressesForUser_args:
6080
  """
6081
  Attributes:
6082
   - userId
6083
  """
6084
 
6085
  thrift_spec = (
6086
    None, # 0
6087
    (1, TType.I64, 'userId', None, None, ), # 1
6088
  )
6089
 
6090
  def __init__(self, userId=None,):
6091
    self.userId = userId
6092
 
6093
  def read(self, iprot):
6094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6096
      return
6097
    iprot.readStructBegin()
6098
    while True:
6099
      (fname, ftype, fid) = iprot.readFieldBegin()
6100
      if ftype == TType.STOP:
6101
        break
6102
      if fid == 1:
6103
        if ftype == TType.I64:
6104
          self.userId = iprot.readI64();
6105
        else:
6106
          iprot.skip(ftype)
6107
      else:
6108
        iprot.skip(ftype)
6109
      iprot.readFieldEnd()
6110
    iprot.readStructEnd()
6111
 
6112
  def write(self, oprot):
6113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6115
      return
6116
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6117
    if self.userId is not None:
594 rajveer 6118
      oprot.writeFieldBegin('userId', TType.I64, 1)
6119
      oprot.writeI64(self.userId)
6120
      oprot.writeFieldEnd()
6121
    oprot.writeFieldStop()
6122
    oprot.writeStructEnd()
6123
 
3431 rajveer 6124
  def validate(self):
6125
    return
6126
 
6127
 
594 rajveer 6128
  def __repr__(self):
6129
    L = ['%s=%r' % (key, value)
6130
      for key, value in self.__dict__.iteritems()]
6131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6132
 
6133
  def __eq__(self, other):
6134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6135
 
6136
  def __ne__(self, other):
6137
    return not (self == other)
6138
 
6139
class getAllAddressesForUser_result:
6140
  """
6141
  Attributes:
6142
   - success
6143
   - ucx
6144
  """
6145
 
6146
  thrift_spec = (
6147
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6148
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6149
  )
6150
 
6151
  def __init__(self, success=None, ucx=None,):
6152
    self.success = success
6153
    self.ucx = ucx
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 == 0:
6165
        if ftype == TType.LIST:
6166
          self.success = []
5326 rajveer 6167
          (_etype61, _size58) = iprot.readListBegin()
6168
          for _i62 in xrange(_size58):
6169
            _elem63 = Address()
6170
            _elem63.read(iprot)
6171
            self.success.append(_elem63)
594 rajveer 6172
          iprot.readListEnd()
6173
        else:
6174
          iprot.skip(ftype)
6175
      elif fid == 1:
6176
        if ftype == TType.STRUCT:
6177
          self.ucx = UserContextException()
6178
          self.ucx.read(iprot)
6179
        else:
6180
          iprot.skip(ftype)
6181
      else:
6182
        iprot.skip(ftype)
6183
      iprot.readFieldEnd()
6184
    iprot.readStructEnd()
6185
 
6186
  def write(self, oprot):
6187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6189
      return
6190
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6191
    if self.success is not None:
594 rajveer 6192
      oprot.writeFieldBegin('success', TType.LIST, 0)
6193
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6194
      for iter64 in self.success:
6195
        iter64.write(oprot)
594 rajveer 6196
      oprot.writeListEnd()
6197
      oprot.writeFieldEnd()
3431 rajveer 6198
    if self.ucx is not None:
594 rajveer 6199
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6200
      self.ucx.write(oprot)
6201
      oprot.writeFieldEnd()
6202
    oprot.writeFieldStop()
6203
    oprot.writeStructEnd()
6204
 
3431 rajveer 6205
  def validate(self):
6206
    return
6207
 
6208
 
594 rajveer 6209
  def __repr__(self):
6210
    L = ['%s=%r' % (key, value)
6211
      for key, value in self.__dict__.iteritems()]
6212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6213
 
6214
  def __eq__(self, other):
6215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6216
 
6217
  def __ne__(self, other):
6218
    return not (self == other)
6219
 
1894 vikas 6220
class getAddressById_args:
6221
  """
6222
  Attributes:
6223
   - addressId
6224
  """
6225
 
6226
  thrift_spec = (
6227
    None, # 0
6228
    (1, TType.I64, 'addressId', None, None, ), # 1
6229
  )
6230
 
6231
  def __init__(self, addressId=None,):
6232
    self.addressId = addressId
6233
 
6234
  def read(self, iprot):
6235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6237
      return
6238
    iprot.readStructBegin()
6239
    while True:
6240
      (fname, ftype, fid) = iprot.readFieldBegin()
6241
      if ftype == TType.STOP:
6242
        break
6243
      if fid == 1:
6244
        if ftype == TType.I64:
6245
          self.addressId = iprot.readI64();
6246
        else:
6247
          iprot.skip(ftype)
6248
      else:
6249
        iprot.skip(ftype)
6250
      iprot.readFieldEnd()
6251
    iprot.readStructEnd()
6252
 
6253
  def write(self, oprot):
6254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6256
      return
6257
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6258
    if self.addressId is not None:
1894 vikas 6259
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6260
      oprot.writeI64(self.addressId)
6261
      oprot.writeFieldEnd()
6262
    oprot.writeFieldStop()
6263
    oprot.writeStructEnd()
6264
 
3431 rajveer 6265
  def validate(self):
6266
    return
6267
 
6268
 
1894 vikas 6269
  def __repr__(self):
6270
    L = ['%s=%r' % (key, value)
6271
      for key, value in self.__dict__.iteritems()]
6272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6273
 
6274
  def __eq__(self, other):
6275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6276
 
6277
  def __ne__(self, other):
6278
    return not (self == other)
6279
 
6280
class getAddressById_result:
6281
  """
6282
  Attributes:
6283
   - success
6284
   - ucx
6285
  """
6286
 
6287
  thrift_spec = (
6288
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6289
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6290
  )
6291
 
6292
  def __init__(self, success=None, ucx=None,):
6293
    self.success = success
6294
    self.ucx = ucx
6295
 
6296
  def read(self, iprot):
6297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6299
      return
6300
    iprot.readStructBegin()
6301
    while True:
6302
      (fname, ftype, fid) = iprot.readFieldBegin()
6303
      if ftype == TType.STOP:
6304
        break
6305
      if fid == 0:
6306
        if ftype == TType.STRUCT:
6307
          self.success = Address()
6308
          self.success.read(iprot)
6309
        else:
6310
          iprot.skip(ftype)
6311
      elif fid == 1:
6312
        if ftype == TType.STRUCT:
6313
          self.ucx = UserContextException()
6314
          self.ucx.read(iprot)
6315
        else:
6316
          iprot.skip(ftype)
6317
      else:
6318
        iprot.skip(ftype)
6319
      iprot.readFieldEnd()
6320
    iprot.readStructEnd()
6321
 
6322
  def write(self, oprot):
6323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6325
      return
6326
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6327
    if self.success is not None:
1894 vikas 6328
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6329
      self.success.write(oprot)
6330
      oprot.writeFieldEnd()
3431 rajveer 6331
    if self.ucx is not None:
1894 vikas 6332
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6333
      self.ucx.write(oprot)
6334
      oprot.writeFieldEnd()
6335
    oprot.writeFieldStop()
6336
    oprot.writeStructEnd()
6337
 
3431 rajveer 6338
  def validate(self):
6339
    return
6340
 
6341
 
1894 vikas 6342
  def __repr__(self):
6343
    L = ['%s=%r' % (key, value)
6344
      for key, value in self.__dict__.iteritems()]
6345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6346
 
6347
  def __eq__(self, other):
6348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6349
 
6350
  def __ne__(self, other):
6351
    return not (self == other)
6352
 
594 rajveer 6353
class getDefaultAddressId_args:
6354
  """
6355
  Attributes:
6356
   - userId
6357
  """
6358
 
6359
  thrift_spec = (
6360
    None, # 0
6361
    (1, TType.I64, 'userId', None, None, ), # 1
6362
  )
6363
 
6364
  def __init__(self, userId=None,):
6365
    self.userId = userId
6366
 
6367
  def read(self, iprot):
6368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6370
      return
6371
    iprot.readStructBegin()
6372
    while True:
6373
      (fname, ftype, fid) = iprot.readFieldBegin()
6374
      if ftype == TType.STOP:
6375
        break
6376
      if fid == 1:
6377
        if ftype == TType.I64:
6378
          self.userId = iprot.readI64();
6379
        else:
6380
          iprot.skip(ftype)
6381
      else:
6382
        iprot.skip(ftype)
6383
      iprot.readFieldEnd()
6384
    iprot.readStructEnd()
6385
 
6386
  def write(self, oprot):
6387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6389
      return
6390
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6391
    if self.userId is not None:
594 rajveer 6392
      oprot.writeFieldBegin('userId', TType.I64, 1)
6393
      oprot.writeI64(self.userId)
6394
      oprot.writeFieldEnd()
6395
    oprot.writeFieldStop()
6396
    oprot.writeStructEnd()
6397
 
3431 rajveer 6398
  def validate(self):
6399
    return
6400
 
6401
 
594 rajveer 6402
  def __repr__(self):
6403
    L = ['%s=%r' % (key, value)
6404
      for key, value in self.__dict__.iteritems()]
6405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6406
 
6407
  def __eq__(self, other):
6408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6409
 
6410
  def __ne__(self, other):
6411
    return not (self == other)
6412
 
6413
class getDefaultAddressId_result:
6414
  """
6415
  Attributes:
6416
   - success
6417
   - ucx
6418
  """
6419
 
6420
  thrift_spec = (
6421
    (0, TType.I64, 'success', None, None, ), # 0
6422
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6423
  )
6424
 
6425
  def __init__(self, success=None, ucx=None,):
6426
    self.success = success
6427
    self.ucx = ucx
6428
 
6429
  def read(self, iprot):
6430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6432
      return
6433
    iprot.readStructBegin()
6434
    while True:
6435
      (fname, ftype, fid) = iprot.readFieldBegin()
6436
      if ftype == TType.STOP:
6437
        break
6438
      if fid == 0:
6439
        if ftype == TType.I64:
6440
          self.success = iprot.readI64();
6441
        else:
6442
          iprot.skip(ftype)
6443
      elif fid == 1:
6444
        if ftype == TType.STRUCT:
6445
          self.ucx = UserContextException()
6446
          self.ucx.read(iprot)
6447
        else:
6448
          iprot.skip(ftype)
6449
      else:
6450
        iprot.skip(ftype)
6451
      iprot.readFieldEnd()
6452
    iprot.readStructEnd()
6453
 
6454
  def write(self, oprot):
6455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6457
      return
6458
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6459
    if self.success is not None:
594 rajveer 6460
      oprot.writeFieldBegin('success', TType.I64, 0)
6461
      oprot.writeI64(self.success)
6462
      oprot.writeFieldEnd()
3431 rajveer 6463
    if self.ucx is not None:
594 rajveer 6464
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6465
      self.ucx.write(oprot)
6466
      oprot.writeFieldEnd()
6467
    oprot.writeFieldStop()
6468
    oprot.writeStructEnd()
6469
 
3431 rajveer 6470
  def validate(self):
6471
    return
6472
 
6473
 
594 rajveer 6474
  def __repr__(self):
6475
    L = ['%s=%r' % (key, value)
6476
      for key, value in self.__dict__.iteritems()]
6477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6478
 
6479
  def __eq__(self, other):
6480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6481
 
6482
  def __ne__(self, other):
6483
    return not (self == other)
6484
 
785 rajveer 6485
class getDefaultPincode_args:
6486
  """
6487
  Attributes:
6488
   - userId
6489
  """
6490
 
6491
  thrift_spec = (
6492
    None, # 0
6493
    (1, TType.I64, 'userId', None, None, ), # 1
6494
  )
6495
 
6496
  def __init__(self, userId=None,):
6497
    self.userId = userId
6498
 
6499
  def read(self, iprot):
6500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6502
      return
6503
    iprot.readStructBegin()
6504
    while True:
6505
      (fname, ftype, fid) = iprot.readFieldBegin()
6506
      if ftype == TType.STOP:
6507
        break
6508
      if fid == 1:
6509
        if ftype == TType.I64:
6510
          self.userId = iprot.readI64();
6511
        else:
6512
          iprot.skip(ftype)
6513
      else:
6514
        iprot.skip(ftype)
6515
      iprot.readFieldEnd()
6516
    iprot.readStructEnd()
6517
 
6518
  def write(self, oprot):
6519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6521
      return
6522
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6523
    if self.userId is not None:
785 rajveer 6524
      oprot.writeFieldBegin('userId', TType.I64, 1)
6525
      oprot.writeI64(self.userId)
6526
      oprot.writeFieldEnd()
6527
    oprot.writeFieldStop()
6528
    oprot.writeStructEnd()
6529
 
3431 rajveer 6530
  def validate(self):
6531
    return
6532
 
6533
 
785 rajveer 6534
  def __repr__(self):
6535
    L = ['%s=%r' % (key, value)
6536
      for key, value in self.__dict__.iteritems()]
6537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6538
 
6539
  def __eq__(self, other):
6540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6541
 
6542
  def __ne__(self, other):
6543
    return not (self == other)
6544
 
6545
class getDefaultPincode_result:
6546
  """
6547
  Attributes:
6548
   - success
6549
   - ucx
6550
  """
6551
 
6552
  thrift_spec = (
6553
    (0, TType.STRING, 'success', None, None, ), # 0
6554
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6555
  )
6556
 
6557
  def __init__(self, success=None, ucx=None,):
6558
    self.success = success
6559
    self.ucx = ucx
6560
 
6561
  def read(self, iprot):
6562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6564
      return
6565
    iprot.readStructBegin()
6566
    while True:
6567
      (fname, ftype, fid) = iprot.readFieldBegin()
6568
      if ftype == TType.STOP:
6569
        break
6570
      if fid == 0:
6571
        if ftype == TType.STRING:
6572
          self.success = iprot.readString();
6573
        else:
6574
          iprot.skip(ftype)
6575
      elif fid == 1:
6576
        if ftype == TType.STRUCT:
6577
          self.ucx = UserContextException()
6578
          self.ucx.read(iprot)
6579
        else:
6580
          iprot.skip(ftype)
6581
      else:
6582
        iprot.skip(ftype)
6583
      iprot.readFieldEnd()
6584
    iprot.readStructEnd()
6585
 
6586
  def write(self, oprot):
6587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6589
      return
6590
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6591
    if self.success is not None:
785 rajveer 6592
      oprot.writeFieldBegin('success', TType.STRING, 0)
6593
      oprot.writeString(self.success)
6594
      oprot.writeFieldEnd()
3431 rajveer 6595
    if self.ucx is not None:
785 rajveer 6596
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6597
      self.ucx.write(oprot)
6598
      oprot.writeFieldEnd()
6599
    oprot.writeFieldStop()
6600
    oprot.writeStructEnd()
6601
 
3431 rajveer 6602
  def validate(self):
6603
    return
6604
 
6605
 
785 rajveer 6606
  def __repr__(self):
6607
    L = ['%s=%r' % (key, value)
6608
      for key, value in self.__dict__.iteritems()]
6609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6610
 
6611
  def __eq__(self, other):
6612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6613
 
6614
  def __ne__(self, other):
6615
    return not (self == other)
6616
 
1274 varun.gupt 6617
class saveUserCommunication_args:
6618
  """
6619
  Attributes:
6620
   - userId
6621
   - replyTo
6622
   - communicationType
6623
   - orderId
6624
   - airwaybillNo
6625
   - productName
6626
   - subject
6627
   - message
6628
  """
6629
 
6630
  thrift_spec = (
6631
    None, # 0
6632
    (1, TType.I64, 'userId', None, None, ), # 1
6633
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6634
    (3, TType.I64, 'communicationType', None, None, ), # 3
6635
    (4, TType.I64, 'orderId', None, None, ), # 4
6636
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6637
    (6, TType.STRING, 'productName', None, None, ), # 6
6638
    (7, TType.STRING, 'subject', None, None, ), # 7
6639
    (8, TType.STRING, 'message', None, None, ), # 8
6640
  )
6641
 
6642
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6643
    self.userId = userId
6644
    self.replyTo = replyTo
6645
    self.communicationType = communicationType
6646
    self.orderId = orderId
6647
    self.airwaybillNo = airwaybillNo
6648
    self.productName = productName
6649
    self.subject = subject
6650
    self.message = message
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 == 1:
6662
        if ftype == TType.I64:
6663
          self.userId = iprot.readI64();
6664
        else:
6665
          iprot.skip(ftype)
6666
      elif fid == 2:
6667
        if ftype == TType.STRING:
6668
          self.replyTo = iprot.readString();
6669
        else:
6670
          iprot.skip(ftype)
6671
      elif fid == 3:
6672
        if ftype == TType.I64:
6673
          self.communicationType = iprot.readI64();
6674
        else:
6675
          iprot.skip(ftype)
6676
      elif fid == 4:
6677
        if ftype == TType.I64:
6678
          self.orderId = iprot.readI64();
6679
        else:
6680
          iprot.skip(ftype)
6681
      elif fid == 5:
6682
        if ftype == TType.STRING:
6683
          self.airwaybillNo = iprot.readString();
6684
        else:
6685
          iprot.skip(ftype)
6686
      elif fid == 6:
6687
        if ftype == TType.STRING:
6688
          self.productName = iprot.readString();
6689
        else:
6690
          iprot.skip(ftype)
6691
      elif fid == 7:
6692
        if ftype == TType.STRING:
6693
          self.subject = iprot.readString();
6694
        else:
6695
          iprot.skip(ftype)
6696
      elif fid == 8:
6697
        if ftype == TType.STRING:
6698
          self.message = iprot.readString();
6699
        else:
6700
          iprot.skip(ftype)
6701
      else:
6702
        iprot.skip(ftype)
6703
      iprot.readFieldEnd()
6704
    iprot.readStructEnd()
6705
 
6706
  def write(self, oprot):
6707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6709
      return
6710
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6711
    if self.userId is not None:
1274 varun.gupt 6712
      oprot.writeFieldBegin('userId', TType.I64, 1)
6713
      oprot.writeI64(self.userId)
6714
      oprot.writeFieldEnd()
3431 rajveer 6715
    if self.replyTo is not None:
1274 varun.gupt 6716
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6717
      oprot.writeString(self.replyTo)
6718
      oprot.writeFieldEnd()
3431 rajveer 6719
    if self.communicationType is not None:
1274 varun.gupt 6720
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6721
      oprot.writeI64(self.communicationType)
6722
      oprot.writeFieldEnd()
3431 rajveer 6723
    if self.orderId is not None:
1274 varun.gupt 6724
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6725
      oprot.writeI64(self.orderId)
6726
      oprot.writeFieldEnd()
3431 rajveer 6727
    if self.airwaybillNo is not None:
1274 varun.gupt 6728
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6729
      oprot.writeString(self.airwaybillNo)
6730
      oprot.writeFieldEnd()
3431 rajveer 6731
    if self.productName is not None:
1274 varun.gupt 6732
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6733
      oprot.writeString(self.productName)
6734
      oprot.writeFieldEnd()
3431 rajveer 6735
    if self.subject is not None:
1274 varun.gupt 6736
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6737
      oprot.writeString(self.subject)
6738
      oprot.writeFieldEnd()
3431 rajveer 6739
    if self.message is not None:
1274 varun.gupt 6740
      oprot.writeFieldBegin('message', TType.STRING, 8)
6741
      oprot.writeString(self.message)
6742
      oprot.writeFieldEnd()
6743
    oprot.writeFieldStop()
6744
    oprot.writeStructEnd()
6745
 
3431 rajveer 6746
  def validate(self):
6747
    return
6748
 
6749
 
1274 varun.gupt 6750
  def __repr__(self):
6751
    L = ['%s=%r' % (key, value)
6752
      for key, value in self.__dict__.iteritems()]
6753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6754
 
6755
  def __eq__(self, other):
6756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6757
 
6758
  def __ne__(self, other):
6759
    return not (self == other)
6760
 
6761
class saveUserCommunication_result:
6762
  """
6763
  Attributes:
6764
   - success
6765
   - ucx
6766
  """
6767
 
6768
  thrift_spec = (
6769
    (0, TType.BOOL, 'success', None, None, ), # 0
6770
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6771
  )
6772
 
6773
  def __init__(self, success=None, ucx=None,):
6774
    self.success = success
6775
    self.ucx = ucx
6776
 
6777
  def read(self, iprot):
6778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6780
      return
6781
    iprot.readStructBegin()
6782
    while True:
6783
      (fname, ftype, fid) = iprot.readFieldBegin()
6784
      if ftype == TType.STOP:
6785
        break
6786
      if fid == 0:
6787
        if ftype == TType.BOOL:
6788
          self.success = iprot.readBool();
6789
        else:
6790
          iprot.skip(ftype)
6791
      elif fid == 1:
6792
        if ftype == TType.STRUCT:
6793
          self.ucx = UserCommunicationException()
6794
          self.ucx.read(iprot)
6795
        else:
6796
          iprot.skip(ftype)
6797
      else:
6798
        iprot.skip(ftype)
6799
      iprot.readFieldEnd()
6800
    iprot.readStructEnd()
6801
 
6802
  def write(self, oprot):
6803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6805
      return
6806
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6807
    if self.success is not None:
1274 varun.gupt 6808
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6809
      oprot.writeBool(self.success)
6810
      oprot.writeFieldEnd()
3431 rajveer 6811
    if self.ucx is not None:
1274 varun.gupt 6812
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6813
      self.ucx.write(oprot)
6814
      oprot.writeFieldEnd()
6815
    oprot.writeFieldStop()
6816
    oprot.writeStructEnd()
6817
 
3431 rajveer 6818
  def validate(self):
6819
    return
6820
 
6821
 
1274 varun.gupt 6822
  def __repr__(self):
6823
    L = ['%s=%r' % (key, value)
6824
      for key, value in self.__dict__.iteritems()]
6825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6826
 
6827
  def __eq__(self, other):
6828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6829
 
6830
  def __ne__(self, other):
6831
    return not (self == other)
6832
 
1590 varun.gupt 6833
class getUserCommunicationById_args:
6834
  """
6835
  Attributes:
6836
   - id
6837
  """
6838
 
6839
  thrift_spec = (
6840
    None, # 0
6841
    (1, TType.I64, 'id', None, None, ), # 1
6842
  )
6843
 
6844
  def __init__(self, id=None,):
6845
    self.id = id
6846
 
6847
  def read(self, iprot):
6848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6850
      return
6851
    iprot.readStructBegin()
6852
    while True:
6853
      (fname, ftype, fid) = iprot.readFieldBegin()
6854
      if ftype == TType.STOP:
6855
        break
6856
      if fid == 1:
6857
        if ftype == TType.I64:
6858
          self.id = iprot.readI64();
6859
        else:
6860
          iprot.skip(ftype)
6861
      else:
6862
        iprot.skip(ftype)
6863
      iprot.readFieldEnd()
6864
    iprot.readStructEnd()
6865
 
6866
  def write(self, oprot):
6867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6869
      return
6870
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6871
    if self.id is not None:
1590 varun.gupt 6872
      oprot.writeFieldBegin('id', TType.I64, 1)
6873
      oprot.writeI64(self.id)
6874
      oprot.writeFieldEnd()
6875
    oprot.writeFieldStop()
6876
    oprot.writeStructEnd()
6877
 
3431 rajveer 6878
  def validate(self):
6879
    return
6880
 
6881
 
1590 varun.gupt 6882
  def __repr__(self):
6883
    L = ['%s=%r' % (key, value)
6884
      for key, value in self.__dict__.iteritems()]
6885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6886
 
6887
  def __eq__(self, other):
6888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6889
 
6890
  def __ne__(self, other):
6891
    return not (self == other)
6892
 
6893
class getUserCommunicationById_result:
6894
  """
6895
  Attributes:
6896
   - success
6897
   - ucx
6898
  """
6899
 
6900
  thrift_spec = (
6901
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6902
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6903
  )
6904
 
6905
  def __init__(self, success=None, ucx=None,):
6906
    self.success = success
6907
    self.ucx = ucx
6908
 
6909
  def read(self, iprot):
6910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6912
      return
6913
    iprot.readStructBegin()
6914
    while True:
6915
      (fname, ftype, fid) = iprot.readFieldBegin()
6916
      if ftype == TType.STOP:
6917
        break
6918
      if fid == 0:
6919
        if ftype == TType.STRUCT:
6920
          self.success = UserCommunication()
6921
          self.success.read(iprot)
6922
        else:
6923
          iprot.skip(ftype)
6924
      elif fid == 1:
6925
        if ftype == TType.STRUCT:
6926
          self.ucx = UserCommunicationException()
6927
          self.ucx.read(iprot)
6928
        else:
6929
          iprot.skip(ftype)
6930
      else:
6931
        iprot.skip(ftype)
6932
      iprot.readFieldEnd()
6933
    iprot.readStructEnd()
6934
 
6935
  def write(self, oprot):
6936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6938
      return
6939
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 6940
    if self.success is not None:
1590 varun.gupt 6941
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6942
      self.success.write(oprot)
6943
      oprot.writeFieldEnd()
3431 rajveer 6944
    if self.ucx is not None:
1590 varun.gupt 6945
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6946
      self.ucx.write(oprot)
6947
      oprot.writeFieldEnd()
6948
    oprot.writeFieldStop()
6949
    oprot.writeStructEnd()
6950
 
3431 rajveer 6951
  def validate(self):
6952
    return
6953
 
6954
 
1590 varun.gupt 6955
  def __repr__(self):
6956
    L = ['%s=%r' % (key, value)
6957
      for key, value in self.__dict__.iteritems()]
6958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6959
 
6960
  def __eq__(self, other):
6961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6962
 
6963
  def __ne__(self, other):
6964
    return not (self == other)
6965
 
6966
class getUserCommunicationByUser_args:
6967
  """
6968
  Attributes:
6969
   - userId
6970
  """
6971
 
6972
  thrift_spec = (
6973
    None, # 0
6974
    (1, TType.I64, 'userId', None, None, ), # 1
6975
  )
6976
 
6977
  def __init__(self, userId=None,):
6978
    self.userId = userId
6979
 
6980
  def read(self, iprot):
6981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6983
      return
6984
    iprot.readStructBegin()
6985
    while True:
6986
      (fname, ftype, fid) = iprot.readFieldBegin()
6987
      if ftype == TType.STOP:
6988
        break
6989
      if fid == 1:
6990
        if ftype == TType.I64:
6991
          self.userId = iprot.readI64();
6992
        else:
6993
          iprot.skip(ftype)
6994
      else:
6995
        iprot.skip(ftype)
6996
      iprot.readFieldEnd()
6997
    iprot.readStructEnd()
6998
 
6999
  def write(self, oprot):
7000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7002
      return
7003
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7004
    if self.userId is not None:
1590 varun.gupt 7005
      oprot.writeFieldBegin('userId', TType.I64, 1)
7006
      oprot.writeI64(self.userId)
7007
      oprot.writeFieldEnd()
7008
    oprot.writeFieldStop()
7009
    oprot.writeStructEnd()
7010
 
3431 rajveer 7011
  def validate(self):
7012
    return
7013
 
7014
 
1590 varun.gupt 7015
  def __repr__(self):
7016
    L = ['%s=%r' % (key, value)
7017
      for key, value in self.__dict__.iteritems()]
7018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7019
 
7020
  def __eq__(self, other):
7021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7022
 
7023
  def __ne__(self, other):
7024
    return not (self == other)
7025
 
7026
class getUserCommunicationByUser_result:
7027
  """
7028
  Attributes:
7029
   - success
7030
   - ucx
7031
  """
7032
 
7033
  thrift_spec = (
7034
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7035
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7036
  )
7037
 
7038
  def __init__(self, success=None, ucx=None,):
7039
    self.success = success
7040
    self.ucx = ucx
7041
 
7042
  def read(self, iprot):
7043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7045
      return
7046
    iprot.readStructBegin()
7047
    while True:
7048
      (fname, ftype, fid) = iprot.readFieldBegin()
7049
      if ftype == TType.STOP:
7050
        break
7051
      if fid == 0:
7052
        if ftype == TType.LIST:
7053
          self.success = []
5326 rajveer 7054
          (_etype68, _size65) = iprot.readListBegin()
7055
          for _i69 in xrange(_size65):
7056
            _elem70 = UserCommunication()
7057
            _elem70.read(iprot)
7058
            self.success.append(_elem70)
1590 varun.gupt 7059
          iprot.readListEnd()
7060
        else:
7061
          iprot.skip(ftype)
7062
      elif fid == 1:
7063
        if ftype == TType.STRUCT:
7064
          self.ucx = UserCommunicationException()
7065
          self.ucx.read(iprot)
7066
        else:
7067
          iprot.skip(ftype)
7068
      else:
7069
        iprot.skip(ftype)
7070
      iprot.readFieldEnd()
7071
    iprot.readStructEnd()
7072
 
7073
  def write(self, oprot):
7074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7076
      return
7077
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7078
    if self.success is not None:
1590 varun.gupt 7079
      oprot.writeFieldBegin('success', TType.LIST, 0)
7080
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7081
      for iter71 in self.success:
7082
        iter71.write(oprot)
1590 varun.gupt 7083
      oprot.writeListEnd()
7084
      oprot.writeFieldEnd()
3431 rajveer 7085
    if self.ucx is not None:
1590 varun.gupt 7086
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7087
      self.ucx.write(oprot)
7088
      oprot.writeFieldEnd()
7089
    oprot.writeFieldStop()
7090
    oprot.writeStructEnd()
7091
 
3431 rajveer 7092
  def validate(self):
7093
    return
7094
 
7095
 
1590 varun.gupt 7096
  def __repr__(self):
7097
    L = ['%s=%r' % (key, value)
7098
      for key, value in self.__dict__.iteritems()]
7099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7100
 
7101
  def __eq__(self, other):
7102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7103
 
7104
  def __ne__(self, other):
7105
    return not (self == other)
7106
 
7107
class getAllUserCommunications_args:
7108
 
7109
  thrift_spec = (
7110
  )
7111
 
7112
  def read(self, iprot):
7113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7115
      return
7116
    iprot.readStructBegin()
7117
    while True:
7118
      (fname, ftype, fid) = iprot.readFieldBegin()
7119
      if ftype == TType.STOP:
7120
        break
7121
      else:
7122
        iprot.skip(ftype)
7123
      iprot.readFieldEnd()
7124
    iprot.readStructEnd()
7125
 
7126
  def write(self, oprot):
7127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7129
      return
7130
    oprot.writeStructBegin('getAllUserCommunications_args')
7131
    oprot.writeFieldStop()
7132
    oprot.writeStructEnd()
7133
 
3431 rajveer 7134
  def validate(self):
7135
    return
7136
 
7137
 
1590 varun.gupt 7138
  def __repr__(self):
7139
    L = ['%s=%r' % (key, value)
7140
      for key, value in self.__dict__.iteritems()]
7141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7142
 
7143
  def __eq__(self, other):
7144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7145
 
7146
  def __ne__(self, other):
7147
    return not (self == other)
7148
 
7149
class getAllUserCommunications_result:
7150
  """
7151
  Attributes:
7152
   - success
7153
   - ucx
7154
  """
7155
 
7156
  thrift_spec = (
7157
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7158
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7159
  )
7160
 
7161
  def __init__(self, success=None, ucx=None,):
7162
    self.success = success
7163
    self.ucx = ucx
7164
 
7165
  def read(self, iprot):
7166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7168
      return
7169
    iprot.readStructBegin()
7170
    while True:
7171
      (fname, ftype, fid) = iprot.readFieldBegin()
7172
      if ftype == TType.STOP:
7173
        break
7174
      if fid == 0:
7175
        if ftype == TType.LIST:
7176
          self.success = []
5326 rajveer 7177
          (_etype75, _size72) = iprot.readListBegin()
7178
          for _i76 in xrange(_size72):
7179
            _elem77 = UserCommunication()
7180
            _elem77.read(iprot)
7181
            self.success.append(_elem77)
1590 varun.gupt 7182
          iprot.readListEnd()
7183
        else:
7184
          iprot.skip(ftype)
7185
      elif fid == 1:
7186
        if ftype == TType.STRUCT:
7187
          self.ucx = UserCommunicationException()
7188
          self.ucx.read(iprot)
7189
        else:
7190
          iprot.skip(ftype)
7191
      else:
7192
        iprot.skip(ftype)
7193
      iprot.readFieldEnd()
7194
    iprot.readStructEnd()
7195
 
7196
  def write(self, oprot):
7197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7199
      return
7200
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7201
    if self.success is not None:
1590 varun.gupt 7202
      oprot.writeFieldBegin('success', TType.LIST, 0)
7203
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7204
      for iter78 in self.success:
7205
        iter78.write(oprot)
1590 varun.gupt 7206
      oprot.writeListEnd()
7207
      oprot.writeFieldEnd()
3431 rajveer 7208
    if self.ucx is not None:
1590 varun.gupt 7209
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7210
      self.ucx.write(oprot)
7211
      oprot.writeFieldEnd()
7212
    oprot.writeFieldStop()
7213
    oprot.writeStructEnd()
7214
 
3431 rajveer 7215
  def validate(self):
7216
    return
7217
 
7218
 
1590 varun.gupt 7219
  def __repr__(self):
7220
    L = ['%s=%r' % (key, value)
7221
      for key, value in self.__dict__.iteritems()]
7222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7223
 
7224
  def __eq__(self, other):
7225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7226
 
7227
  def __ne__(self, other):
7228
    return not (self == other)
7229
 
5407 amar.kumar 7230
class removeUserCommunication_args:
7231
  """
7232
  Attributes:
7233
   - id
7234
  """
7235
 
7236
  thrift_spec = (
7237
    None, # 0
7238
    (1, TType.I64, 'id', None, None, ), # 1
7239
  )
7240
 
7241
  def __init__(self, id=None,):
7242
    self.id = id
7243
 
7244
  def read(self, iprot):
7245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7247
      return
7248
    iprot.readStructBegin()
7249
    while True:
7250
      (fname, ftype, fid) = iprot.readFieldBegin()
7251
      if ftype == TType.STOP:
7252
        break
7253
      if fid == 1:
7254
        if ftype == TType.I64:
7255
          self.id = iprot.readI64();
7256
        else:
7257
          iprot.skip(ftype)
7258
      else:
7259
        iprot.skip(ftype)
7260
      iprot.readFieldEnd()
7261
    iprot.readStructEnd()
7262
 
7263
  def write(self, oprot):
7264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7266
      return
7267
    oprot.writeStructBegin('removeUserCommunication_args')
7268
    if self.id is not None:
7269
      oprot.writeFieldBegin('id', TType.I64, 1)
7270
      oprot.writeI64(self.id)
7271
      oprot.writeFieldEnd()
7272
    oprot.writeFieldStop()
7273
    oprot.writeStructEnd()
7274
 
7275
  def validate(self):
7276
    return
7277
 
7278
 
7279
  def __repr__(self):
7280
    L = ['%s=%r' % (key, value)
7281
      for key, value in self.__dict__.iteritems()]
7282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7283
 
7284
  def __eq__(self, other):
7285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7286
 
7287
  def __ne__(self, other):
7288
    return not (self == other)
7289
 
7290
class removeUserCommunication_result:
7291
  """
7292
  Attributes:
7293
   - ucx
7294
  """
7295
 
7296
  thrift_spec = (
7297
    None, # 0
7298
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7299
  )
7300
 
7301
  def __init__(self, ucx=None,):
7302
    self.ucx = ucx
7303
 
7304
  def read(self, iprot):
7305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7307
      return
7308
    iprot.readStructBegin()
7309
    while True:
7310
      (fname, ftype, fid) = iprot.readFieldBegin()
7311
      if ftype == TType.STOP:
7312
        break
7313
      if fid == 1:
7314
        if ftype == TType.STRUCT:
7315
          self.ucx = UserCommunicationException()
7316
          self.ucx.read(iprot)
7317
        else:
7318
          iprot.skip(ftype)
7319
      else:
7320
        iprot.skip(ftype)
7321
      iprot.readFieldEnd()
7322
    iprot.readStructEnd()
7323
 
7324
  def write(self, oprot):
7325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7327
      return
7328
    oprot.writeStructBegin('removeUserCommunication_result')
7329
    if self.ucx is not None:
7330
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7331
      self.ucx.write(oprot)
7332
      oprot.writeFieldEnd()
7333
    oprot.writeFieldStop()
7334
    oprot.writeStructEnd()
7335
 
7336
  def validate(self):
7337
    return
7338
 
7339
 
7340
  def __repr__(self):
7341
    L = ['%s=%r' % (key, value)
7342
      for key, value in self.__dict__.iteritems()]
7343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7344
 
7345
  def __eq__(self, other):
7346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7347
 
7348
  def __ne__(self, other):
7349
    return not (self == other)
7350
 
1845 vikas 7351
class createMasterAffiliate_args:
7352
  """
7353
  Attributes:
7354
   - name
1859 vikas 7355
   - addedOn
1845 vikas 7356
  """
7357
 
7358
  thrift_spec = (
7359
    None, # 0
7360
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7361
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7362
  )
7363
 
1859 vikas 7364
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7365
    self.name = name
1859 vikas 7366
    self.addedOn = addedOn
1845 vikas 7367
 
7368
  def read(self, iprot):
7369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7371
      return
7372
    iprot.readStructBegin()
7373
    while True:
7374
      (fname, ftype, fid) = iprot.readFieldBegin()
7375
      if ftype == TType.STOP:
7376
        break
7377
      if fid == 1:
7378
        if ftype == TType.STRING:
7379
          self.name = iprot.readString();
7380
        else:
7381
          iprot.skip(ftype)
1859 vikas 7382
      elif fid == 2:
7383
        if ftype == TType.I64:
7384
          self.addedOn = iprot.readI64();
7385
        else:
7386
          iprot.skip(ftype)
1845 vikas 7387
      else:
7388
        iprot.skip(ftype)
7389
      iprot.readFieldEnd()
7390
    iprot.readStructEnd()
7391
 
7392
  def write(self, oprot):
7393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7395
      return
7396
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7397
    if self.name is not None:
1845 vikas 7398
      oprot.writeFieldBegin('name', TType.STRING, 1)
7399
      oprot.writeString(self.name)
7400
      oprot.writeFieldEnd()
3431 rajveer 7401
    if self.addedOn is not None:
1859 vikas 7402
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7403
      oprot.writeI64(self.addedOn)
7404
      oprot.writeFieldEnd()
1845 vikas 7405
    oprot.writeFieldStop()
7406
    oprot.writeStructEnd()
7407
 
3431 rajveer 7408
  def validate(self):
7409
    return
7410
 
7411
 
1845 vikas 7412
  def __repr__(self):
7413
    L = ['%s=%r' % (key, value)
7414
      for key, value in self.__dict__.iteritems()]
7415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7416
 
7417
  def __eq__(self, other):
7418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7419
 
7420
  def __ne__(self, other):
7421
    return not (self == other)
7422
 
7423
class createMasterAffiliate_result:
7424
  """
7425
  Attributes:
7426
   - success
7427
   - utx
7428
  """
7429
 
7430
  thrift_spec = (
7431
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7432
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7433
  )
7434
 
7435
  def __init__(self, success=None, utx=None,):
7436
    self.success = success
7437
    self.utx = utx
7438
 
7439
  def read(self, iprot):
7440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7442
      return
7443
    iprot.readStructBegin()
7444
    while True:
7445
      (fname, ftype, fid) = iprot.readFieldBegin()
7446
      if ftype == TType.STOP:
7447
        break
7448
      if fid == 0:
7449
        if ftype == TType.STRUCT:
7450
          self.success = MasterAffiliate()
7451
          self.success.read(iprot)
7452
        else:
7453
          iprot.skip(ftype)
7454
      elif fid == 1:
7455
        if ftype == TType.STRUCT:
1996 vikas 7456
          self.utx = UserAffiliateException()
1845 vikas 7457
          self.utx.read(iprot)
7458
        else:
7459
          iprot.skip(ftype)
7460
      else:
7461
        iprot.skip(ftype)
7462
      iprot.readFieldEnd()
7463
    iprot.readStructEnd()
7464
 
7465
  def write(self, oprot):
7466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7468
      return
7469
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7470
    if self.success is not None:
1845 vikas 7471
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7472
      self.success.write(oprot)
7473
      oprot.writeFieldEnd()
3431 rajveer 7474
    if self.utx is not None:
1845 vikas 7475
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7476
      self.utx.write(oprot)
7477
      oprot.writeFieldEnd()
7478
    oprot.writeFieldStop()
7479
    oprot.writeStructEnd()
7480
 
3431 rajveer 7481
  def validate(self):
7482
    return
7483
 
7484
 
1845 vikas 7485
  def __repr__(self):
7486
    L = ['%s=%r' % (key, value)
7487
      for key, value in self.__dict__.iteritems()]
7488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7489
 
7490
  def __eq__(self, other):
7491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7492
 
7493
  def __ne__(self, other):
7494
    return not (self == other)
7495
 
1899 vikas 7496
class getAllMasterAffiliates_args:
7497
 
7498
  thrift_spec = (
7499
  )
7500
 
7501
  def read(self, iprot):
7502
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7503
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7504
      return
7505
    iprot.readStructBegin()
7506
    while True:
7507
      (fname, ftype, fid) = iprot.readFieldBegin()
7508
      if ftype == TType.STOP:
7509
        break
7510
      else:
7511
        iprot.skip(ftype)
7512
      iprot.readFieldEnd()
7513
    iprot.readStructEnd()
7514
 
7515
  def write(self, oprot):
7516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7518
      return
7519
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7520
    oprot.writeFieldStop()
7521
    oprot.writeStructEnd()
7522
 
3431 rajveer 7523
  def validate(self):
7524
    return
7525
 
7526
 
1899 vikas 7527
  def __repr__(self):
7528
    L = ['%s=%r' % (key, value)
7529
      for key, value in self.__dict__.iteritems()]
7530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7531
 
7532
  def __eq__(self, other):
7533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7534
 
7535
  def __ne__(self, other):
7536
    return not (self == other)
7537
 
7538
class getAllMasterAffiliates_result:
7539
  """
7540
  Attributes:
7541
   - success
7542
   - utx
7543
  """
7544
 
7545
  thrift_spec = (
7546
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7547
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7548
  )
7549
 
7550
  def __init__(self, success=None, utx=None,):
7551
    self.success = success
7552
    self.utx = utx
7553
 
7554
  def read(self, iprot):
7555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7557
      return
7558
    iprot.readStructBegin()
7559
    while True:
7560
      (fname, ftype, fid) = iprot.readFieldBegin()
7561
      if ftype == TType.STOP:
7562
        break
7563
      if fid == 0:
7564
        if ftype == TType.LIST:
7565
          self.success = []
5326 rajveer 7566
          (_etype82, _size79) = iprot.readListBegin()
7567
          for _i83 in xrange(_size79):
7568
            _elem84 = MasterAffiliate()
7569
            _elem84.read(iprot)
7570
            self.success.append(_elem84)
1899 vikas 7571
          iprot.readListEnd()
7572
        else:
7573
          iprot.skip(ftype)
7574
      elif fid == 1:
7575
        if ftype == TType.STRUCT:
1996 vikas 7576
          self.utx = UserAffiliateException()
1899 vikas 7577
          self.utx.read(iprot)
7578
        else:
7579
          iprot.skip(ftype)
7580
      else:
7581
        iprot.skip(ftype)
7582
      iprot.readFieldEnd()
7583
    iprot.readStructEnd()
7584
 
7585
  def write(self, oprot):
7586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7588
      return
7589
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7590
    if self.success is not None:
1899 vikas 7591
      oprot.writeFieldBegin('success', TType.LIST, 0)
7592
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7593
      for iter85 in self.success:
7594
        iter85.write(oprot)
1899 vikas 7595
      oprot.writeListEnd()
7596
      oprot.writeFieldEnd()
3431 rajveer 7597
    if self.utx is not None:
1899 vikas 7598
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7599
      self.utx.write(oprot)
7600
      oprot.writeFieldEnd()
7601
    oprot.writeFieldStop()
7602
    oprot.writeStructEnd()
7603
 
3431 rajveer 7604
  def validate(self):
7605
    return
7606
 
7607
 
1899 vikas 7608
  def __repr__(self):
7609
    L = ['%s=%r' % (key, value)
7610
      for key, value in self.__dict__.iteritems()]
7611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7612
 
7613
  def __eq__(self, other):
7614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7615
 
7616
  def __ne__(self, other):
7617
    return not (self == other)
7618
 
1845 vikas 7619
class getMasterAffiliateById_args:
7620
  """
7621
  Attributes:
7622
   - id
7623
  """
7624
 
7625
  thrift_spec = (
7626
    None, # 0
7627
    (1, TType.I64, 'id', None, None, ), # 1
7628
  )
7629
 
7630
  def __init__(self, id=None,):
7631
    self.id = id
7632
 
7633
  def read(self, iprot):
7634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7636
      return
7637
    iprot.readStructBegin()
7638
    while True:
7639
      (fname, ftype, fid) = iprot.readFieldBegin()
7640
      if ftype == TType.STOP:
7641
        break
7642
      if fid == 1:
7643
        if ftype == TType.I64:
7644
          self.id = iprot.readI64();
7645
        else:
7646
          iprot.skip(ftype)
7647
      else:
7648
        iprot.skip(ftype)
7649
      iprot.readFieldEnd()
7650
    iprot.readStructEnd()
7651
 
7652
  def write(self, oprot):
7653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7655
      return
7656
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7657
    if self.id is not None:
1845 vikas 7658
      oprot.writeFieldBegin('id', TType.I64, 1)
7659
      oprot.writeI64(self.id)
7660
      oprot.writeFieldEnd()
7661
    oprot.writeFieldStop()
7662
    oprot.writeStructEnd()
7663
 
3431 rajveer 7664
  def validate(self):
7665
    return
7666
 
7667
 
1845 vikas 7668
  def __repr__(self):
7669
    L = ['%s=%r' % (key, value)
7670
      for key, value in self.__dict__.iteritems()]
7671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7672
 
7673
  def __eq__(self, other):
7674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7675
 
7676
  def __ne__(self, other):
7677
    return not (self == other)
7678
 
7679
class getMasterAffiliateById_result:
7680
  """
7681
  Attributes:
7682
   - success
7683
   - utx
7684
  """
7685
 
7686
  thrift_spec = (
7687
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7688
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7689
  )
7690
 
7691
  def __init__(self, success=None, utx=None,):
7692
    self.success = success
7693
    self.utx = utx
7694
 
7695
  def read(self, iprot):
7696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7698
      return
7699
    iprot.readStructBegin()
7700
    while True:
7701
      (fname, ftype, fid) = iprot.readFieldBegin()
7702
      if ftype == TType.STOP:
7703
        break
7704
      if fid == 0:
7705
        if ftype == TType.STRUCT:
7706
          self.success = MasterAffiliate()
7707
          self.success.read(iprot)
7708
        else:
7709
          iprot.skip(ftype)
7710
      elif fid == 1:
7711
        if ftype == TType.STRUCT:
1996 vikas 7712
          self.utx = UserAffiliateException()
1845 vikas 7713
          self.utx.read(iprot)
7714
        else:
7715
          iprot.skip(ftype)
7716
      else:
7717
        iprot.skip(ftype)
7718
      iprot.readFieldEnd()
7719
    iprot.readStructEnd()
7720
 
7721
  def write(self, oprot):
7722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7724
      return
7725
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7726
    if self.success is not None:
1845 vikas 7727
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7728
      self.success.write(oprot)
7729
      oprot.writeFieldEnd()
3431 rajveer 7730
    if self.utx is not None:
1845 vikas 7731
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7732
      self.utx.write(oprot)
7733
      oprot.writeFieldEnd()
7734
    oprot.writeFieldStop()
7735
    oprot.writeStructEnd()
7736
 
3431 rajveer 7737
  def validate(self):
7738
    return
7739
 
7740
 
1845 vikas 7741
  def __repr__(self):
7742
    L = ['%s=%r' % (key, value)
7743
      for key, value in self.__dict__.iteritems()]
7744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7745
 
7746
  def __eq__(self, other):
7747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7748
 
7749
  def __ne__(self, other):
7750
    return not (self == other)
7751
 
7752
class getMasterAffiliateByName_args:
7753
  """
7754
  Attributes:
7755
   - name
7756
  """
7757
 
7758
  thrift_spec = (
7759
    None, # 0
7760
    (1, TType.STRING, 'name', None, None, ), # 1
7761
  )
7762
 
7763
  def __init__(self, name=None,):
7764
    self.name = name
7765
 
7766
  def read(self, iprot):
7767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7769
      return
7770
    iprot.readStructBegin()
7771
    while True:
7772
      (fname, ftype, fid) = iprot.readFieldBegin()
7773
      if ftype == TType.STOP:
7774
        break
7775
      if fid == 1:
7776
        if ftype == TType.STRING:
7777
          self.name = iprot.readString();
7778
        else:
7779
          iprot.skip(ftype)
7780
      else:
7781
        iprot.skip(ftype)
7782
      iprot.readFieldEnd()
7783
    iprot.readStructEnd()
7784
 
7785
  def write(self, oprot):
7786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7788
      return
7789
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7790
    if self.name is not None:
1845 vikas 7791
      oprot.writeFieldBegin('name', TType.STRING, 1)
7792
      oprot.writeString(self.name)
7793
      oprot.writeFieldEnd()
7794
    oprot.writeFieldStop()
7795
    oprot.writeStructEnd()
7796
 
3431 rajveer 7797
  def validate(self):
7798
    return
7799
 
7800
 
1845 vikas 7801
  def __repr__(self):
7802
    L = ['%s=%r' % (key, value)
7803
      for key, value in self.__dict__.iteritems()]
7804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7805
 
7806
  def __eq__(self, other):
7807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7808
 
7809
  def __ne__(self, other):
7810
    return not (self == other)
7811
 
7812
class getMasterAffiliateByName_result:
7813
  """
7814
  Attributes:
7815
   - success
7816
   - utx
7817
  """
7818
 
7819
  thrift_spec = (
7820
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7821
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7822
  )
7823
 
7824
  def __init__(self, success=None, utx=None,):
7825
    self.success = success
7826
    self.utx = utx
7827
 
7828
  def read(self, iprot):
7829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7831
      return
7832
    iprot.readStructBegin()
7833
    while True:
7834
      (fname, ftype, fid) = iprot.readFieldBegin()
7835
      if ftype == TType.STOP:
7836
        break
7837
      if fid == 0:
7838
        if ftype == TType.STRUCT:
7839
          self.success = MasterAffiliate()
7840
          self.success.read(iprot)
7841
        else:
7842
          iprot.skip(ftype)
7843
      elif fid == 1:
7844
        if ftype == TType.STRUCT:
1996 vikas 7845
          self.utx = UserAffiliateException()
1845 vikas 7846
          self.utx.read(iprot)
7847
        else:
7848
          iprot.skip(ftype)
7849
      else:
7850
        iprot.skip(ftype)
7851
      iprot.readFieldEnd()
7852
    iprot.readStructEnd()
7853
 
7854
  def write(self, oprot):
7855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7857
      return
7858
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7859
    if self.success is not None:
1845 vikas 7860
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7861
      self.success.write(oprot)
7862
      oprot.writeFieldEnd()
3431 rajveer 7863
    if self.utx is not None:
1845 vikas 7864
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7865
      self.utx.write(oprot)
7866
      oprot.writeFieldEnd()
7867
    oprot.writeFieldStop()
7868
    oprot.writeStructEnd()
7869
 
3431 rajveer 7870
  def validate(self):
7871
    return
7872
 
7873
 
1845 vikas 7874
  def __repr__(self):
7875
    L = ['%s=%r' % (key, value)
7876
      for key, value in self.__dict__.iteritems()]
7877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7878
 
7879
  def __eq__(self, other):
7880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7881
 
7882
  def __ne__(self, other):
7883
    return not (self == other)
7884
 
7885
class createAffiliate_args:
7886
  """
7887
  Attributes:
7888
   - name
7889
   - url
7890
   - masterAffiliateId
1859 vikas 7891
   - addedOn
1845 vikas 7892
  """
7893
 
7894
  thrift_spec = (
7895
    None, # 0
7896
    (1, TType.STRING, 'name', None, None, ), # 1
7897
    (2, TType.STRING, 'url', None, None, ), # 2
7898
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7899
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7900
  )
7901
 
1859 vikas 7902
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7903
    self.name = name
7904
    self.url = url
7905
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7906
    self.addedOn = addedOn
1845 vikas 7907
 
7908
  def read(self, iprot):
7909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7911
      return
7912
    iprot.readStructBegin()
7913
    while True:
7914
      (fname, ftype, fid) = iprot.readFieldBegin()
7915
      if ftype == TType.STOP:
7916
        break
7917
      if fid == 1:
7918
        if ftype == TType.STRING:
7919
          self.name = iprot.readString();
7920
        else:
7921
          iprot.skip(ftype)
7922
      elif fid == 2:
7923
        if ftype == TType.STRING:
7924
          self.url = iprot.readString();
7925
        else:
7926
          iprot.skip(ftype)
7927
      elif fid == 3:
7928
        if ftype == TType.I64:
7929
          self.masterAffiliateId = iprot.readI64();
7930
        else:
7931
          iprot.skip(ftype)
1859 vikas 7932
      elif fid == 4:
7933
        if ftype == TType.I64:
7934
          self.addedOn = iprot.readI64();
7935
        else:
7936
          iprot.skip(ftype)
1845 vikas 7937
      else:
7938
        iprot.skip(ftype)
7939
      iprot.readFieldEnd()
7940
    iprot.readStructEnd()
7941
 
7942
  def write(self, oprot):
7943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7945
      return
7946
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 7947
    if self.name is not None:
1845 vikas 7948
      oprot.writeFieldBegin('name', TType.STRING, 1)
7949
      oprot.writeString(self.name)
7950
      oprot.writeFieldEnd()
3431 rajveer 7951
    if self.url is not None:
1845 vikas 7952
      oprot.writeFieldBegin('url', TType.STRING, 2)
7953
      oprot.writeString(self.url)
7954
      oprot.writeFieldEnd()
3431 rajveer 7955
    if self.masterAffiliateId is not None:
1845 vikas 7956
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
7957
      oprot.writeI64(self.masterAffiliateId)
7958
      oprot.writeFieldEnd()
3431 rajveer 7959
    if self.addedOn is not None:
1859 vikas 7960
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
7961
      oprot.writeI64(self.addedOn)
7962
      oprot.writeFieldEnd()
1845 vikas 7963
    oprot.writeFieldStop()
7964
    oprot.writeStructEnd()
7965
 
3431 rajveer 7966
  def validate(self):
7967
    return
7968
 
7969
 
1845 vikas 7970
  def __repr__(self):
7971
    L = ['%s=%r' % (key, value)
7972
      for key, value in self.__dict__.iteritems()]
7973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7974
 
7975
  def __eq__(self, other):
7976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7977
 
7978
  def __ne__(self, other):
7979
    return not (self == other)
7980
 
7981
class createAffiliate_result:
7982
  """
7983
  Attributes:
7984
   - success
7985
   - utx
7986
  """
7987
 
7988
  thrift_spec = (
7989
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7990
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7991
  )
7992
 
7993
  def __init__(self, success=None, utx=None,):
7994
    self.success = success
7995
    self.utx = utx
7996
 
7997
  def read(self, iprot):
7998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8000
      return
8001
    iprot.readStructBegin()
8002
    while True:
8003
      (fname, ftype, fid) = iprot.readFieldBegin()
8004
      if ftype == TType.STOP:
8005
        break
8006
      if fid == 0:
8007
        if ftype == TType.STRUCT:
8008
          self.success = Affiliate()
8009
          self.success.read(iprot)
8010
        else:
8011
          iprot.skip(ftype)
8012
      elif fid == 1:
8013
        if ftype == TType.STRUCT:
1996 vikas 8014
          self.utx = UserAffiliateException()
1845 vikas 8015
          self.utx.read(iprot)
8016
        else:
8017
          iprot.skip(ftype)
8018
      else:
8019
        iprot.skip(ftype)
8020
      iprot.readFieldEnd()
8021
    iprot.readStructEnd()
8022
 
8023
  def write(self, oprot):
8024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8026
      return
8027
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8028
    if self.success is not None:
1845 vikas 8029
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8030
      self.success.write(oprot)
8031
      oprot.writeFieldEnd()
3431 rajveer 8032
    if self.utx is not None:
1845 vikas 8033
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8034
      self.utx.write(oprot)
8035
      oprot.writeFieldEnd()
8036
    oprot.writeFieldStop()
8037
    oprot.writeStructEnd()
8038
 
3431 rajveer 8039
  def validate(self):
8040
    return
8041
 
8042
 
1845 vikas 8043
  def __repr__(self):
8044
    L = ['%s=%r' % (key, value)
8045
      for key, value in self.__dict__.iteritems()]
8046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8047
 
8048
  def __eq__(self, other):
8049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8050
 
8051
  def __ne__(self, other):
8052
    return not (self == other)
8053
 
8054
class getAffiliateById_args:
8055
  """
8056
  Attributes:
8057
   - id
8058
  """
8059
 
8060
  thrift_spec = (
8061
    None, # 0
8062
    (1, TType.I64, 'id', None, None, ), # 1
8063
  )
8064
 
8065
  def __init__(self, id=None,):
8066
    self.id = id
8067
 
8068
  def read(self, iprot):
8069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8071
      return
8072
    iprot.readStructBegin()
8073
    while True:
8074
      (fname, ftype, fid) = iprot.readFieldBegin()
8075
      if ftype == TType.STOP:
8076
        break
8077
      if fid == 1:
8078
        if ftype == TType.I64:
8079
          self.id = iprot.readI64();
8080
        else:
8081
          iprot.skip(ftype)
8082
      else:
8083
        iprot.skip(ftype)
8084
      iprot.readFieldEnd()
8085
    iprot.readStructEnd()
8086
 
8087
  def write(self, oprot):
8088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8090
      return
8091
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8092
    if self.id is not None:
1845 vikas 8093
      oprot.writeFieldBegin('id', TType.I64, 1)
8094
      oprot.writeI64(self.id)
8095
      oprot.writeFieldEnd()
8096
    oprot.writeFieldStop()
8097
    oprot.writeStructEnd()
8098
 
3431 rajveer 8099
  def validate(self):
8100
    return
8101
 
8102
 
1845 vikas 8103
  def __repr__(self):
8104
    L = ['%s=%r' % (key, value)
8105
      for key, value in self.__dict__.iteritems()]
8106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8107
 
8108
  def __eq__(self, other):
8109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8110
 
8111
  def __ne__(self, other):
8112
    return not (self == other)
8113
 
8114
class getAffiliateById_result:
8115
  """
8116
  Attributes:
8117
   - success
8118
   - utx
8119
  """
8120
 
8121
  thrift_spec = (
8122
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8123
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8124
  )
8125
 
8126
  def __init__(self, success=None, utx=None,):
8127
    self.success = success
8128
    self.utx = utx
8129
 
8130
  def read(self, iprot):
8131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8133
      return
8134
    iprot.readStructBegin()
8135
    while True:
8136
      (fname, ftype, fid) = iprot.readFieldBegin()
8137
      if ftype == TType.STOP:
8138
        break
8139
      if fid == 0:
8140
        if ftype == TType.STRUCT:
8141
          self.success = Affiliate()
8142
          self.success.read(iprot)
8143
        else:
8144
          iprot.skip(ftype)
8145
      elif fid == 1:
8146
        if ftype == TType.STRUCT:
1996 vikas 8147
          self.utx = UserAffiliateException()
1845 vikas 8148
          self.utx.read(iprot)
8149
        else:
8150
          iprot.skip(ftype)
8151
      else:
8152
        iprot.skip(ftype)
8153
      iprot.readFieldEnd()
8154
    iprot.readStructEnd()
8155
 
8156
  def write(self, oprot):
8157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8159
      return
8160
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8161
    if self.success is not None:
1845 vikas 8162
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8163
      self.success.write(oprot)
8164
      oprot.writeFieldEnd()
3431 rajveer 8165
    if self.utx is not None:
1845 vikas 8166
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8167
      self.utx.write(oprot)
8168
      oprot.writeFieldEnd()
8169
    oprot.writeFieldStop()
8170
    oprot.writeStructEnd()
8171
 
3431 rajveer 8172
  def validate(self):
8173
    return
8174
 
8175
 
1845 vikas 8176
  def __repr__(self):
8177
    L = ['%s=%r' % (key, value)
8178
      for key, value in self.__dict__.iteritems()]
8179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8180
 
8181
  def __eq__(self, other):
8182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8183
 
8184
  def __ne__(self, other):
8185
    return not (self == other)
8186
 
8187
class getAffiliateByName_args:
8188
  """
8189
  Attributes:
8190
   - name
8191
  """
8192
 
8193
  thrift_spec = (
8194
    None, # 0
8195
    (1, TType.STRING, 'name', None, None, ), # 1
8196
  )
8197
 
8198
  def __init__(self, name=None,):
8199
    self.name = name
8200
 
8201
  def read(self, iprot):
8202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8204
      return
8205
    iprot.readStructBegin()
8206
    while True:
8207
      (fname, ftype, fid) = iprot.readFieldBegin()
8208
      if ftype == TType.STOP:
8209
        break
8210
      if fid == 1:
8211
        if ftype == TType.STRING:
8212
          self.name = iprot.readString();
8213
        else:
8214
          iprot.skip(ftype)
8215
      else:
8216
        iprot.skip(ftype)
8217
      iprot.readFieldEnd()
8218
    iprot.readStructEnd()
8219
 
8220
  def write(self, oprot):
8221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8223
      return
8224
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8225
    if self.name is not None:
1845 vikas 8226
      oprot.writeFieldBegin('name', TType.STRING, 1)
8227
      oprot.writeString(self.name)
8228
      oprot.writeFieldEnd()
8229
    oprot.writeFieldStop()
8230
    oprot.writeStructEnd()
8231
 
3431 rajveer 8232
  def validate(self):
8233
    return
8234
 
8235
 
1845 vikas 8236
  def __repr__(self):
8237
    L = ['%s=%r' % (key, value)
8238
      for key, value in self.__dict__.iteritems()]
8239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8240
 
8241
  def __eq__(self, other):
8242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8243
 
8244
  def __ne__(self, other):
8245
    return not (self == other)
8246
 
8247
class getAffiliateByName_result:
8248
  """
8249
  Attributes:
8250
   - success
8251
   - utx
8252
  """
8253
 
8254
  thrift_spec = (
8255
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8256
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8257
  )
8258
 
8259
  def __init__(self, success=None, utx=None,):
8260
    self.success = success
8261
    self.utx = utx
8262
 
8263
  def read(self, iprot):
8264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8266
      return
8267
    iprot.readStructBegin()
8268
    while True:
8269
      (fname, ftype, fid) = iprot.readFieldBegin()
8270
      if ftype == TType.STOP:
8271
        break
8272
      if fid == 0:
8273
        if ftype == TType.STRUCT:
8274
          self.success = Affiliate()
8275
          self.success.read(iprot)
8276
        else:
8277
          iprot.skip(ftype)
8278
      elif fid == 1:
8279
        if ftype == TType.STRUCT:
1996 vikas 8280
          self.utx = UserAffiliateException()
1845 vikas 8281
          self.utx.read(iprot)
8282
        else:
8283
          iprot.skip(ftype)
8284
      else:
8285
        iprot.skip(ftype)
8286
      iprot.readFieldEnd()
8287
    iprot.readStructEnd()
8288
 
8289
  def write(self, oprot):
8290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8292
      return
8293
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8294
    if self.success is not None:
1845 vikas 8295
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8296
      self.success.write(oprot)
8297
      oprot.writeFieldEnd()
3431 rajveer 8298
    if self.utx is not None:
1845 vikas 8299
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8300
      self.utx.write(oprot)
8301
      oprot.writeFieldEnd()
8302
    oprot.writeFieldStop()
8303
    oprot.writeStructEnd()
8304
 
3431 rajveer 8305
  def validate(self):
8306
    return
8307
 
8308
 
1845 vikas 8309
  def __repr__(self):
8310
    L = ['%s=%r' % (key, value)
8311
      for key, value in self.__dict__.iteritems()]
8312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8313
 
8314
  def __eq__(self, other):
8315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8316
 
8317
  def __ne__(self, other):
8318
    return not (self == other)
8319
 
1996 vikas 8320
class getTrackerById_args:
1845 vikas 8321
  """
8322
  Attributes:
8323
   - id
8324
  """
8325
 
8326
  thrift_spec = (
8327
    None, # 0
8328
    (1, TType.I64, 'id', None, None, ), # 1
8329
  )
8330
 
8331
  def __init__(self, id=None,):
8332
    self.id = id
8333
 
8334
  def read(self, iprot):
8335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8337
      return
8338
    iprot.readStructBegin()
8339
    while True:
8340
      (fname, ftype, fid) = iprot.readFieldBegin()
8341
      if ftype == TType.STOP:
8342
        break
8343
      if fid == 1:
8344
        if ftype == TType.I64:
8345
          self.id = iprot.readI64();
8346
        else:
8347
          iprot.skip(ftype)
8348
      else:
8349
        iprot.skip(ftype)
8350
      iprot.readFieldEnd()
8351
    iprot.readStructEnd()
8352
 
8353
  def write(self, oprot):
8354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8356
      return
1996 vikas 8357
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8358
    if self.id is not None:
1845 vikas 8359
      oprot.writeFieldBegin('id', TType.I64, 1)
8360
      oprot.writeI64(self.id)
8361
      oprot.writeFieldEnd()
8362
    oprot.writeFieldStop()
8363
    oprot.writeStructEnd()
8364
 
3431 rajveer 8365
  def validate(self):
8366
    return
8367
 
8368
 
1845 vikas 8369
  def __repr__(self):
8370
    L = ['%s=%r' % (key, value)
8371
      for key, value in self.__dict__.iteritems()]
8372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8373
 
8374
  def __eq__(self, other):
8375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8376
 
8377
  def __ne__(self, other):
8378
    return not (self == other)
8379
 
8380
class getTrackerById_result:
8381
  """
8382
  Attributes:
8383
   - success
8384
   - utx
8385
  """
8386
 
8387
  thrift_spec = (
8388
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8389
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8390
  )
8391
 
8392
  def __init__(self, success=None, utx=None,):
8393
    self.success = success
8394
    self.utx = utx
8395
 
8396
  def read(self, iprot):
8397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8399
      return
8400
    iprot.readStructBegin()
8401
    while True:
8402
      (fname, ftype, fid) = iprot.readFieldBegin()
8403
      if ftype == TType.STOP:
8404
        break
8405
      if fid == 0:
8406
        if ftype == TType.STRUCT:
8407
          self.success = Tracker()
8408
          self.success.read(iprot)
8409
        else:
8410
          iprot.skip(ftype)
8411
      elif fid == 1:
8412
        if ftype == TType.STRUCT:
1996 vikas 8413
          self.utx = UserAffiliateException()
1845 vikas 8414
          self.utx.read(iprot)
8415
        else:
8416
          iprot.skip(ftype)
8417
      else:
8418
        iprot.skip(ftype)
8419
      iprot.readFieldEnd()
8420
    iprot.readStructEnd()
8421
 
8422
  def write(self, oprot):
8423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8425
      return
8426
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8427
    if self.success is not None:
1845 vikas 8428
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8429
      self.success.write(oprot)
8430
      oprot.writeFieldEnd()
3431 rajveer 8431
    if self.utx is not None:
1845 vikas 8432
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8433
      self.utx.write(oprot)
8434
      oprot.writeFieldEnd()
8435
    oprot.writeFieldStop()
8436
    oprot.writeStructEnd()
8437
 
3431 rajveer 8438
  def validate(self):
8439
    return
8440
 
8441
 
1845 vikas 8442
  def __repr__(self):
8443
    L = ['%s=%r' % (key, value)
8444
      for key, value in self.__dict__.iteritems()]
8445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8446
 
8447
  def __eq__(self, other):
8448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8449
 
8450
  def __ne__(self, other):
8451
    return not (self == other)
8452
 
1996 vikas 8453
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8454
  """
8455
  Attributes:
1996 vikas 8456
   - id
1845 vikas 8457
  """
8458
 
8459
  thrift_spec = (
8460
    None, # 0
1996 vikas 8461
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8462
  )
8463
 
1996 vikas 8464
  def __init__(self, id=None,):
8465
    self.id = id
1845 vikas 8466
 
8467
  def read(self, iprot):
8468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8470
      return
8471
    iprot.readStructBegin()
8472
    while True:
8473
      (fname, ftype, fid) = iprot.readFieldBegin()
8474
      if ftype == TType.STOP:
8475
        break
8476
      if fid == 1:
8477
        if ftype == TType.I64:
1996 vikas 8478
          self.id = iprot.readI64();
1845 vikas 8479
        else:
8480
          iprot.skip(ftype)
8481
      else:
8482
        iprot.skip(ftype)
8483
      iprot.readFieldEnd()
8484
    iprot.readStructEnd()
8485
 
8486
  def write(self, oprot):
8487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8489
      return
1996 vikas 8490
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8491
    if self.id is not None:
1996 vikas 8492
      oprot.writeFieldBegin('id', TType.I64, 1)
8493
      oprot.writeI64(self.id)
1845 vikas 8494
      oprot.writeFieldEnd()
8495
    oprot.writeFieldStop()
8496
    oprot.writeStructEnd()
8497
 
3431 rajveer 8498
  def validate(self):
8499
    return
8500
 
8501
 
1845 vikas 8502
  def __repr__(self):
8503
    L = ['%s=%r' % (key, value)
8504
      for key, value in self.__dict__.iteritems()]
8505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8506
 
8507
  def __eq__(self, other):
8508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8509
 
8510
  def __ne__(self, other):
8511
    return not (self == other)
8512
 
1996 vikas 8513
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8514
  """
8515
  Attributes:
8516
   - success
8517
   - utx
8518
  """
8519
 
8520
  thrift_spec = (
1996 vikas 8521
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8522
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8523
  )
8524
 
8525
  def __init__(self, success=None, utx=None,):
8526
    self.success = success
8527
    self.utx = utx
8528
 
8529
  def read(self, iprot):
8530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8532
      return
8533
    iprot.readStructBegin()
8534
    while True:
8535
      (fname, ftype, fid) = iprot.readFieldBegin()
8536
      if ftype == TType.STOP:
8537
        break
8538
      if fid == 0:
8539
        if ftype == TType.LIST:
8540
          self.success = []
5326 rajveer 8541
          (_etype89, _size86) = iprot.readListBegin()
8542
          for _i90 in xrange(_size86):
8543
            _elem91 = Affiliate()
8544
            _elem91.read(iprot)
8545
            self.success.append(_elem91)
1845 vikas 8546
          iprot.readListEnd()
8547
        else:
8548
          iprot.skip(ftype)
8549
      elif fid == 1:
8550
        if ftype == TType.STRUCT:
1996 vikas 8551
          self.utx = UserAffiliateException()
1845 vikas 8552
          self.utx.read(iprot)
8553
        else:
8554
          iprot.skip(ftype)
8555
      else:
8556
        iprot.skip(ftype)
8557
      iprot.readFieldEnd()
8558
    iprot.readStructEnd()
8559
 
8560
  def write(self, oprot):
8561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8563
      return
1996 vikas 8564
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8565
    if self.success is not None:
1845 vikas 8566
      oprot.writeFieldBegin('success', TType.LIST, 0)
8567
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8568
      for iter92 in self.success:
8569
        iter92.write(oprot)
1845 vikas 8570
      oprot.writeListEnd()
8571
      oprot.writeFieldEnd()
3431 rajveer 8572
    if self.utx is not None:
1845 vikas 8573
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8574
      self.utx.write(oprot)
8575
      oprot.writeFieldEnd()
8576
    oprot.writeFieldStop()
8577
    oprot.writeStructEnd()
8578
 
3431 rajveer 8579
  def validate(self):
8580
    return
8581
 
8582
 
1845 vikas 8583
  def __repr__(self):
8584
    L = ['%s=%r' % (key, value)
8585
      for key, value in self.__dict__.iteritems()]
8586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8587
 
8588
  def __eq__(self, other):
8589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8590
 
8591
  def __ne__(self, other):
8592
    return not (self == other)
8593
 
8594
class addTrackLog_args:
8595
  """
8596
  Attributes:
1996 vikas 8597
   - affiliateId
1845 vikas 8598
   - userId
8599
   - event
8600
   - url
8601
   - data
1859 vikas 8602
   - addedOn
1845 vikas 8603
  """
8604
 
8605
  thrift_spec = (
8606
    None, # 0
1996 vikas 8607
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8608
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8609
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8610
    (4, TType.STRING, 'url', None, None, ), # 4
8611
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8612
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8613
  )
8614
 
1996 vikas 8615
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8616
    self.affiliateId = affiliateId
1845 vikas 8617
    self.userId = userId
8618
    self.event = event
8619
    self.url = url
8620
    self.data = data
1859 vikas 8621
    self.addedOn = addedOn
1845 vikas 8622
 
8623
  def read(self, iprot):
8624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8626
      return
8627
    iprot.readStructBegin()
8628
    while True:
8629
      (fname, ftype, fid) = iprot.readFieldBegin()
8630
      if ftype == TType.STOP:
8631
        break
8632
      if fid == 1:
8633
        if ftype == TType.I64:
1996 vikas 8634
          self.affiliateId = iprot.readI64();
1845 vikas 8635
        else:
8636
          iprot.skip(ftype)
8637
      elif fid == 2:
8638
        if ftype == TType.I64:
8639
          self.userId = iprot.readI64();
8640
        else:
8641
          iprot.skip(ftype)
8642
      elif fid == 3:
3378 vikas 8643
        if ftype == TType.I32:
8644
          self.event = iprot.readI32();
1845 vikas 8645
        else:
8646
          iprot.skip(ftype)
8647
      elif fid == 4:
8648
        if ftype == TType.STRING:
8649
          self.url = iprot.readString();
8650
        else:
8651
          iprot.skip(ftype)
8652
      elif fid == 5:
8653
        if ftype == TType.STRING:
8654
          self.data = iprot.readString();
8655
        else:
8656
          iprot.skip(ftype)
1859 vikas 8657
      elif fid == 6:
8658
        if ftype == TType.I64:
8659
          self.addedOn = iprot.readI64();
8660
        else:
8661
          iprot.skip(ftype)
1845 vikas 8662
      else:
8663
        iprot.skip(ftype)
8664
      iprot.readFieldEnd()
8665
    iprot.readStructEnd()
8666
 
8667
  def write(self, oprot):
8668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8670
      return
8671
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8672
    if self.affiliateId is not None:
1996 vikas 8673
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8674
      oprot.writeI64(self.affiliateId)
1845 vikas 8675
      oprot.writeFieldEnd()
3431 rajveer 8676
    if self.userId is not None:
1845 vikas 8677
      oprot.writeFieldBegin('userId', TType.I64, 2)
8678
      oprot.writeI64(self.userId)
8679
      oprot.writeFieldEnd()
3431 rajveer 8680
    if self.event is not None:
3378 vikas 8681
      oprot.writeFieldBegin('event', TType.I32, 3)
8682
      oprot.writeI32(self.event)
1845 vikas 8683
      oprot.writeFieldEnd()
3431 rajveer 8684
    if self.url is not None:
1845 vikas 8685
      oprot.writeFieldBegin('url', TType.STRING, 4)
8686
      oprot.writeString(self.url)
8687
      oprot.writeFieldEnd()
3431 rajveer 8688
    if self.data is not None:
1845 vikas 8689
      oprot.writeFieldBegin('data', TType.STRING, 5)
8690
      oprot.writeString(self.data)
8691
      oprot.writeFieldEnd()
3431 rajveer 8692
    if self.addedOn is not None:
1859 vikas 8693
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8694
      oprot.writeI64(self.addedOn)
8695
      oprot.writeFieldEnd()
1845 vikas 8696
    oprot.writeFieldStop()
8697
    oprot.writeStructEnd()
8698
 
3431 rajveer 8699
  def validate(self):
8700
    return
8701
 
8702
 
1845 vikas 8703
  def __repr__(self):
8704
    L = ['%s=%r' % (key, value)
8705
      for key, value in self.__dict__.iteritems()]
8706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8707
 
8708
  def __eq__(self, other):
8709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8710
 
8711
  def __ne__(self, other):
8712
    return not (self == other)
8713
 
8714
class addTrackLog_result:
8715
  """
8716
  Attributes:
8717
   - success
8718
   - utx
8719
  """
8720
 
8721
  thrift_spec = (
8722
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8723
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8724
  )
8725
 
8726
  def __init__(self, success=None, utx=None,):
8727
    self.success = success
8728
    self.utx = utx
8729
 
8730
  def read(self, iprot):
8731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8733
      return
8734
    iprot.readStructBegin()
8735
    while True:
8736
      (fname, ftype, fid) = iprot.readFieldBegin()
8737
      if ftype == TType.STOP:
8738
        break
8739
      if fid == 0:
8740
        if ftype == TType.I64:
8741
          self.success = iprot.readI64();
8742
        else:
8743
          iprot.skip(ftype)
8744
      elif fid == 1:
8745
        if ftype == TType.STRUCT:
1996 vikas 8746
          self.utx = UserAffiliateException()
1845 vikas 8747
          self.utx.read(iprot)
8748
        else:
8749
          iprot.skip(ftype)
8750
      else:
8751
        iprot.skip(ftype)
8752
      iprot.readFieldEnd()
8753
    iprot.readStructEnd()
8754
 
8755
  def write(self, oprot):
8756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8758
      return
8759
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8760
    if self.success is not None:
1845 vikas 8761
      oprot.writeFieldBegin('success', TType.I64, 0)
8762
      oprot.writeI64(self.success)
8763
      oprot.writeFieldEnd()
3431 rajveer 8764
    if self.utx is not None:
1845 vikas 8765
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8766
      self.utx.write(oprot)
8767
      oprot.writeFieldEnd()
8768
    oprot.writeFieldStop()
8769
    oprot.writeStructEnd()
8770
 
3431 rajveer 8771
  def validate(self):
8772
    return
8773
 
8774
 
1845 vikas 8775
  def __repr__(self):
8776
    L = ['%s=%r' % (key, value)
8777
      for key, value in self.__dict__.iteritems()]
8778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8779
 
8780
  def __eq__(self, other):
8781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8782
 
8783
  def __ne__(self, other):
8784
    return not (self == other)
8785
 
8786
class getTrackLogById_args:
8787
  """
8788
  Attributes:
8789
   - id
8790
  """
8791
 
8792
  thrift_spec = (
8793
    None, # 0
8794
    (1, TType.I64, 'id', None, None, ), # 1
8795
  )
8796
 
8797
  def __init__(self, id=None,):
8798
    self.id = id
8799
 
8800
  def read(self, iprot):
8801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8803
      return
8804
    iprot.readStructBegin()
8805
    while True:
8806
      (fname, ftype, fid) = iprot.readFieldBegin()
8807
      if ftype == TType.STOP:
8808
        break
8809
      if fid == 1:
8810
        if ftype == TType.I64:
8811
          self.id = iprot.readI64();
8812
        else:
8813
          iprot.skip(ftype)
8814
      else:
8815
        iprot.skip(ftype)
8816
      iprot.readFieldEnd()
8817
    iprot.readStructEnd()
8818
 
8819
  def write(self, oprot):
8820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8822
      return
8823
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8824
    if self.id is not None:
1845 vikas 8825
      oprot.writeFieldBegin('id', TType.I64, 1)
8826
      oprot.writeI64(self.id)
8827
      oprot.writeFieldEnd()
8828
    oprot.writeFieldStop()
8829
    oprot.writeStructEnd()
8830
 
3431 rajveer 8831
  def validate(self):
8832
    return
8833
 
8834
 
1845 vikas 8835
  def __repr__(self):
8836
    L = ['%s=%r' % (key, value)
8837
      for key, value in self.__dict__.iteritems()]
8838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8839
 
8840
  def __eq__(self, other):
8841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8842
 
8843
  def __ne__(self, other):
8844
    return not (self == other)
8845
 
8846
class getTrackLogById_result:
8847
  """
8848
  Attributes:
8849
   - success
8850
   - utx
8851
  """
8852
 
8853
  thrift_spec = (
8854
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8855
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8856
  )
8857
 
8858
  def __init__(self, success=None, utx=None,):
8859
    self.success = success
8860
    self.utx = utx
8861
 
8862
  def read(self, iprot):
8863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8865
      return
8866
    iprot.readStructBegin()
8867
    while True:
8868
      (fname, ftype, fid) = iprot.readFieldBegin()
8869
      if ftype == TType.STOP:
8870
        break
8871
      if fid == 0:
8872
        if ftype == TType.STRUCT:
8873
          self.success = TrackLog()
8874
          self.success.read(iprot)
8875
        else:
8876
          iprot.skip(ftype)
8877
      elif fid == 1:
8878
        if ftype == TType.STRUCT:
1996 vikas 8879
          self.utx = UserAffiliateException()
1845 vikas 8880
          self.utx.read(iprot)
8881
        else:
8882
          iprot.skip(ftype)
8883
      else:
8884
        iprot.skip(ftype)
8885
      iprot.readFieldEnd()
8886
    iprot.readStructEnd()
8887
 
8888
  def write(self, oprot):
8889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8891
      return
8892
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8893
    if self.success is not None:
1845 vikas 8894
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8895
      self.success.write(oprot)
8896
      oprot.writeFieldEnd()
3431 rajveer 8897
    if self.utx is not None:
1845 vikas 8898
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8899
      self.utx.write(oprot)
8900
      oprot.writeFieldEnd()
8901
    oprot.writeFieldStop()
8902
    oprot.writeStructEnd()
8903
 
3431 rajveer 8904
  def validate(self):
8905
    return
8906
 
8907
 
1845 vikas 8908
  def __repr__(self):
8909
    L = ['%s=%r' % (key, value)
8910
      for key, value in self.__dict__.iteritems()]
8911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8912
 
8913
  def __eq__(self, other):
8914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8915
 
8916
  def __ne__(self, other):
8917
    return not (self == other)
8918
 
1996 vikas 8919
class getTrackLogsByAffiliate_args:
1845 vikas 8920
  """
8921
  Attributes:
1996 vikas 8922
   - affiliateId
3293 vikas 8923
   - startDate
8924
   - endDate
1845 vikas 8925
  """
8926
 
8927
  thrift_spec = (
8928
    None, # 0
1996 vikas 8929
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8930
    (2, TType.I64, 'startDate', None, None, ), # 2
8931
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8932
  )
8933
 
3293 vikas 8934
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 8935
    self.affiliateId = affiliateId
3293 vikas 8936
    self.startDate = startDate
8937
    self.endDate = endDate
1845 vikas 8938
 
8939
  def read(self, iprot):
8940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8942
      return
8943
    iprot.readStructBegin()
8944
    while True:
8945
      (fname, ftype, fid) = iprot.readFieldBegin()
8946
      if ftype == TType.STOP:
8947
        break
8948
      if fid == 1:
8949
        if ftype == TType.I64:
1996 vikas 8950
          self.affiliateId = iprot.readI64();
1845 vikas 8951
        else:
8952
          iprot.skip(ftype)
3293 vikas 8953
      elif fid == 2:
8954
        if ftype == TType.I64:
8955
          self.startDate = iprot.readI64();
8956
        else:
8957
          iprot.skip(ftype)
8958
      elif fid == 3:
8959
        if ftype == TType.I64:
8960
          self.endDate = iprot.readI64();
8961
        else:
8962
          iprot.skip(ftype)
1845 vikas 8963
      else:
8964
        iprot.skip(ftype)
8965
      iprot.readFieldEnd()
8966
    iprot.readStructEnd()
8967
 
8968
  def write(self, oprot):
8969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8971
      return
1996 vikas 8972
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 8973
    if self.affiliateId is not None:
1996 vikas 8974
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8975
      oprot.writeI64(self.affiliateId)
1845 vikas 8976
      oprot.writeFieldEnd()
3431 rajveer 8977
    if self.startDate is not None:
3293 vikas 8978
      oprot.writeFieldBegin('startDate', TType.I64, 2)
8979
      oprot.writeI64(self.startDate)
8980
      oprot.writeFieldEnd()
3431 rajveer 8981
    if self.endDate is not None:
3293 vikas 8982
      oprot.writeFieldBegin('endDate', TType.I64, 3)
8983
      oprot.writeI64(self.endDate)
8984
      oprot.writeFieldEnd()
1845 vikas 8985
    oprot.writeFieldStop()
8986
    oprot.writeStructEnd()
8987
 
3431 rajveer 8988
  def validate(self):
8989
    return
8990
 
8991
 
1845 vikas 8992
  def __repr__(self):
8993
    L = ['%s=%r' % (key, value)
8994
      for key, value in self.__dict__.iteritems()]
8995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8996
 
8997
  def __eq__(self, other):
8998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8999
 
9000
  def __ne__(self, other):
9001
    return not (self == other)
9002
 
1996 vikas 9003
class getTrackLogsByAffiliate_result:
1845 vikas 9004
  """
9005
  Attributes:
9006
   - success
9007
   - utx
9008
  """
9009
 
9010
  thrift_spec = (
9011
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9012
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9013
  )
9014
 
9015
  def __init__(self, success=None, utx=None,):
9016
    self.success = success
9017
    self.utx = utx
9018
 
9019
  def read(self, iprot):
9020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9022
      return
9023
    iprot.readStructBegin()
9024
    while True:
9025
      (fname, ftype, fid) = iprot.readFieldBegin()
9026
      if ftype == TType.STOP:
9027
        break
9028
      if fid == 0:
9029
        if ftype == TType.LIST:
9030
          self.success = []
5326 rajveer 9031
          (_etype96, _size93) = iprot.readListBegin()
9032
          for _i97 in xrange(_size93):
9033
            _elem98 = TrackLog()
9034
            _elem98.read(iprot)
9035
            self.success.append(_elem98)
1845 vikas 9036
          iprot.readListEnd()
9037
        else:
9038
          iprot.skip(ftype)
9039
      elif fid == 1:
9040
        if ftype == TType.STRUCT:
1996 vikas 9041
          self.utx = UserAffiliateException()
1845 vikas 9042
          self.utx.read(iprot)
9043
        else:
9044
          iprot.skip(ftype)
9045
      else:
9046
        iprot.skip(ftype)
9047
      iprot.readFieldEnd()
9048
    iprot.readStructEnd()
9049
 
9050
  def write(self, oprot):
9051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9053
      return
1996 vikas 9054
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9055
    if self.success is not None:
1845 vikas 9056
      oprot.writeFieldBegin('success', TType.LIST, 0)
9057
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9058
      for iter99 in self.success:
9059
        iter99.write(oprot)
1845 vikas 9060
      oprot.writeListEnd()
9061
      oprot.writeFieldEnd()
3431 rajveer 9062
    if self.utx is not None:
1845 vikas 9063
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9064
      self.utx.write(oprot)
9065
      oprot.writeFieldEnd()
9066
    oprot.writeFieldStop()
9067
    oprot.writeStructEnd()
9068
 
3431 rajveer 9069
  def validate(self):
9070
    return
9071
 
9072
 
1845 vikas 9073
  def __repr__(self):
9074
    L = ['%s=%r' % (key, value)
9075
      for key, value in self.__dict__.iteritems()]
9076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9077
 
9078
  def __eq__(self, other):
9079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9080
 
9081
  def __ne__(self, other):
9082
    return not (self == other)
9083
 
9084
class getTrackLogsByUser_args:
9085
  """
9086
  Attributes:
9087
   - userId
9088
  """
9089
 
9090
  thrift_spec = (
9091
    None, # 0
9092
    (1, TType.I64, 'userId', None, None, ), # 1
9093
  )
9094
 
9095
  def __init__(self, userId=None,):
9096
    self.userId = userId
9097
 
9098
  def read(self, iprot):
9099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9101
      return
9102
    iprot.readStructBegin()
9103
    while True:
9104
      (fname, ftype, fid) = iprot.readFieldBegin()
9105
      if ftype == TType.STOP:
9106
        break
9107
      if fid == 1:
9108
        if ftype == TType.I64:
9109
          self.userId = iprot.readI64();
9110
        else:
9111
          iprot.skip(ftype)
9112
      else:
9113
        iprot.skip(ftype)
9114
      iprot.readFieldEnd()
9115
    iprot.readStructEnd()
9116
 
9117
  def write(self, oprot):
9118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9120
      return
9121
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9122
    if self.userId is not None:
1845 vikas 9123
      oprot.writeFieldBegin('userId', TType.I64, 1)
9124
      oprot.writeI64(self.userId)
9125
      oprot.writeFieldEnd()
9126
    oprot.writeFieldStop()
9127
    oprot.writeStructEnd()
9128
 
3431 rajveer 9129
  def validate(self):
9130
    return
9131
 
9132
 
1845 vikas 9133
  def __repr__(self):
9134
    L = ['%s=%r' % (key, value)
9135
      for key, value in self.__dict__.iteritems()]
9136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9137
 
9138
  def __eq__(self, other):
9139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9140
 
9141
  def __ne__(self, other):
9142
    return not (self == other)
9143
 
9144
class getTrackLogsByUser_result:
9145
  """
9146
  Attributes:
9147
   - success
9148
   - utx
9149
  """
9150
 
9151
  thrift_spec = (
9152
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9153
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9154
  )
9155
 
9156
  def __init__(self, success=None, utx=None,):
9157
    self.success = success
9158
    self.utx = utx
9159
 
9160
  def read(self, iprot):
9161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9163
      return
9164
    iprot.readStructBegin()
9165
    while True:
9166
      (fname, ftype, fid) = iprot.readFieldBegin()
9167
      if ftype == TType.STOP:
9168
        break
9169
      if fid == 0:
9170
        if ftype == TType.LIST:
9171
          self.success = []
5326 rajveer 9172
          (_etype103, _size100) = iprot.readListBegin()
9173
          for _i104 in xrange(_size100):
9174
            _elem105 = TrackLog()
9175
            _elem105.read(iprot)
9176
            self.success.append(_elem105)
1845 vikas 9177
          iprot.readListEnd()
9178
        else:
9179
          iprot.skip(ftype)
9180
      elif fid == 1:
9181
        if ftype == TType.STRUCT:
1996 vikas 9182
          self.utx = UserAffiliateException()
1845 vikas 9183
          self.utx.read(iprot)
9184
        else:
9185
          iprot.skip(ftype)
9186
      else:
9187
        iprot.skip(ftype)
9188
      iprot.readFieldEnd()
9189
    iprot.readStructEnd()
9190
 
9191
  def write(self, oprot):
9192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9194
      return
9195
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9196
    if self.success is not None:
1845 vikas 9197
      oprot.writeFieldBegin('success', TType.LIST, 0)
9198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9199
      for iter106 in self.success:
9200
        iter106.write(oprot)
1845 vikas 9201
      oprot.writeListEnd()
9202
      oprot.writeFieldEnd()
3431 rajveer 9203
    if self.utx is not None:
1845 vikas 9204
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9205
      self.utx.write(oprot)
9206
      oprot.writeFieldEnd()
9207
    oprot.writeFieldStop()
9208
    oprot.writeStructEnd()
9209
 
3431 rajveer 9210
  def validate(self):
9211
    return
9212
 
9213
 
1845 vikas 9214
  def __repr__(self):
9215
    L = ['%s=%r' % (key, value)
9216
      for key, value in self.__dict__.iteritems()]
9217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9218
 
9219
  def __eq__(self, other):
9220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9221
 
9222
  def __ne__(self, other):
9223
    return not (self == other)
9224
 
9225
class getTrackLogs_args:
9226
  """
9227
  Attributes:
9228
   - userId
9229
   - event
9230
   - url
9231
  """
9232
 
9233
  thrift_spec = (
9234
    None, # 0
1996 vikas 9235
    (1, TType.I64, 'userId', None, None, ), # 1
9236
    (2, TType.STRING, 'event', None, None, ), # 2
9237
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9238
  )
9239
 
1996 vikas 9240
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9241
    self.userId = userId
9242
    self.event = event
9243
    self.url = url
9244
 
9245
  def read(self, iprot):
9246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9248
      return
9249
    iprot.readStructBegin()
9250
    while True:
9251
      (fname, ftype, fid) = iprot.readFieldBegin()
9252
      if ftype == TType.STOP:
9253
        break
9254
      if fid == 1:
9255
        if ftype == TType.I64:
1996 vikas 9256
          self.userId = iprot.readI64();
1845 vikas 9257
        else:
9258
          iprot.skip(ftype)
9259
      elif fid == 2:
9260
        if ftype == TType.STRING:
9261
          self.event = iprot.readString();
9262
        else:
9263
          iprot.skip(ftype)
1996 vikas 9264
      elif fid == 3:
1845 vikas 9265
        if ftype == TType.STRING:
9266
          self.url = iprot.readString();
9267
        else:
9268
          iprot.skip(ftype)
9269
      else:
9270
        iprot.skip(ftype)
9271
      iprot.readFieldEnd()
9272
    iprot.readStructEnd()
9273
 
9274
  def write(self, oprot):
9275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9277
      return
9278
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9279
    if self.userId is not None:
1996 vikas 9280
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9281
      oprot.writeI64(self.userId)
9282
      oprot.writeFieldEnd()
3431 rajveer 9283
    if self.event is not None:
1996 vikas 9284
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9285
      oprot.writeString(self.event)
9286
      oprot.writeFieldEnd()
3431 rajveer 9287
    if self.url is not None:
1996 vikas 9288
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9289
      oprot.writeString(self.url)
9290
      oprot.writeFieldEnd()
9291
    oprot.writeFieldStop()
9292
    oprot.writeStructEnd()
9293
 
3431 rajveer 9294
  def validate(self):
9295
    return
9296
 
9297
 
1845 vikas 9298
  def __repr__(self):
9299
    L = ['%s=%r' % (key, value)
9300
      for key, value in self.__dict__.iteritems()]
9301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9302
 
9303
  def __eq__(self, other):
9304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9305
 
9306
  def __ne__(self, other):
9307
    return not (self == other)
9308
 
9309
class getTrackLogs_result:
9310
  """
9311
  Attributes:
9312
   - success
9313
   - utx
9314
  """
9315
 
9316
  thrift_spec = (
9317
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9318
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9319
  )
9320
 
9321
  def __init__(self, success=None, utx=None,):
9322
    self.success = success
9323
    self.utx = utx
9324
 
9325
  def read(self, iprot):
9326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9328
      return
9329
    iprot.readStructBegin()
9330
    while True:
9331
      (fname, ftype, fid) = iprot.readFieldBegin()
9332
      if ftype == TType.STOP:
9333
        break
9334
      if fid == 0:
9335
        if ftype == TType.LIST:
9336
          self.success = []
5326 rajveer 9337
          (_etype110, _size107) = iprot.readListBegin()
9338
          for _i111 in xrange(_size107):
9339
            _elem112 = TrackLog()
9340
            _elem112.read(iprot)
9341
            self.success.append(_elem112)
1845 vikas 9342
          iprot.readListEnd()
9343
        else:
9344
          iprot.skip(ftype)
9345
      elif fid == 1:
9346
        if ftype == TType.STRUCT:
1996 vikas 9347
          self.utx = UserAffiliateException()
1845 vikas 9348
          self.utx.read(iprot)
9349
        else:
9350
          iprot.skip(ftype)
9351
      else:
9352
        iprot.skip(ftype)
9353
      iprot.readFieldEnd()
9354
    iprot.readStructEnd()
9355
 
9356
  def write(self, oprot):
9357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9359
      return
9360
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9361
    if self.success is not None:
1845 vikas 9362
      oprot.writeFieldBegin('success', TType.LIST, 0)
9363
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9364
      for iter113 in self.success:
9365
        iter113.write(oprot)
1845 vikas 9366
      oprot.writeListEnd()
9367
      oprot.writeFieldEnd()
3431 rajveer 9368
    if self.utx is not None:
1845 vikas 9369
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9370
      self.utx.write(oprot)
9371
      oprot.writeFieldEnd()
9372
    oprot.writeFieldStop()
9373
    oprot.writeStructEnd()
9374
 
3431 rajveer 9375
  def validate(self):
9376
    return
9377
 
9378
 
1845 vikas 9379
  def __repr__(self):
9380
    L = ['%s=%r' % (key, value)
9381
      for key, value in self.__dict__.iteritems()]
9382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9383
 
9384
  def __eq__(self, other):
9385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9386
 
9387
  def __ne__(self, other):
9388
    return not (self == other)
9389
 
559 chandransh 9390
class getCurrentCart_args:
94 ashish 9391
  """
9392
  Attributes:
559 chandransh 9393
   - userId
9394
  """
9395
 
9396
  thrift_spec = (
9397
    None, # 0
9398
    (1, TType.I64, 'userId', None, None, ), # 1
9399
  )
9400
 
9401
  def __init__(self, userId=None,):
9402
    self.userId = userId
9403
 
9404
  def read(self, iprot):
9405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9407
      return
9408
    iprot.readStructBegin()
9409
    while True:
9410
      (fname, ftype, fid) = iprot.readFieldBegin()
9411
      if ftype == TType.STOP:
9412
        break
9413
      if fid == 1:
9414
        if ftype == TType.I64:
9415
          self.userId = iprot.readI64();
9416
        else:
9417
          iprot.skip(ftype)
9418
      else:
9419
        iprot.skip(ftype)
9420
      iprot.readFieldEnd()
9421
    iprot.readStructEnd()
9422
 
9423
  def write(self, oprot):
9424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9426
      return
9427
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9428
    if self.userId is not None:
559 chandransh 9429
      oprot.writeFieldBegin('userId', TType.I64, 1)
9430
      oprot.writeI64(self.userId)
9431
      oprot.writeFieldEnd()
9432
    oprot.writeFieldStop()
9433
    oprot.writeStructEnd()
9434
 
3431 rajveer 9435
  def validate(self):
9436
    return
9437
 
9438
 
559 chandransh 9439
  def __repr__(self):
9440
    L = ['%s=%r' % (key, value)
9441
      for key, value in self.__dict__.iteritems()]
9442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9443
 
9444
  def __eq__(self, other):
9445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9446
 
9447
  def __ne__(self, other):
9448
    return not (self == other)
9449
 
9450
class getCurrentCart_result:
9451
  """
9452
  Attributes:
94 ashish 9453
   - success
559 chandransh 9454
   - scx
94 ashish 9455
  """
9456
 
9457
  thrift_spec = (
559 chandransh 9458
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9459
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9460
  )
9461
 
559 chandransh 9462
  def __init__(self, success=None, scx=None,):
94 ashish 9463
    self.success = success
559 chandransh 9464
    self.scx = scx
94 ashish 9465
 
9466
  def read(self, iprot):
9467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9469
      return
9470
    iprot.readStructBegin()
9471
    while True:
9472
      (fname, ftype, fid) = iprot.readFieldBegin()
9473
      if ftype == TType.STOP:
9474
        break
9475
      if fid == 0:
559 chandransh 9476
        if ftype == TType.STRUCT:
9477
          self.success = Cart()
9478
          self.success.read(iprot)
94 ashish 9479
        else:
9480
          iprot.skip(ftype)
9481
      elif fid == 1:
9482
        if ftype == TType.STRUCT:
559 chandransh 9483
          self.scx = ShoppingCartException()
9484
          self.scx.read(iprot)
94 ashish 9485
        else:
9486
          iprot.skip(ftype)
9487
      else:
9488
        iprot.skip(ftype)
9489
      iprot.readFieldEnd()
9490
    iprot.readStructEnd()
9491
 
9492
  def write(self, oprot):
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9495
      return
559 chandransh 9496
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9497
    if self.success is not None:
559 chandransh 9498
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9499
      self.success.write(oprot)
94 ashish 9500
      oprot.writeFieldEnd()
3431 rajveer 9501
    if self.scx is not None:
559 chandransh 9502
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9503
      self.scx.write(oprot)
94 ashish 9504
      oprot.writeFieldEnd()
9505
    oprot.writeFieldStop()
9506
    oprot.writeStructEnd()
9507
 
3431 rajveer 9508
  def validate(self):
9509
    return
9510
 
9511
 
94 ashish 9512
  def __repr__(self):
9513
    L = ['%s=%r' % (key, value)
9514
      for key, value in self.__dict__.iteritems()]
9515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9516
 
9517
  def __eq__(self, other):
9518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9519
 
9520
  def __ne__(self, other):
9521
    return not (self == other)
9522
 
559 chandransh 9523
class getCart_args:
504 rajveer 9524
  """
9525
  Attributes:
559 chandransh 9526
   - cartId
504 rajveer 9527
  """
9528
 
9529
  thrift_spec = (
9530
    None, # 0
559 chandransh 9531
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9532
  )
9533
 
559 chandransh 9534
  def __init__(self, cartId=None,):
9535
    self.cartId = cartId
504 rajveer 9536
 
9537
  def read(self, iprot):
9538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9540
      return
9541
    iprot.readStructBegin()
9542
    while True:
9543
      (fname, ftype, fid) = iprot.readFieldBegin()
9544
      if ftype == TType.STOP:
9545
        break
9546
      if fid == 1:
9547
        if ftype == TType.I64:
559 chandransh 9548
          self.cartId = iprot.readI64();
504 rajveer 9549
        else:
9550
          iprot.skip(ftype)
9551
      else:
9552
        iprot.skip(ftype)
9553
      iprot.readFieldEnd()
9554
    iprot.readStructEnd()
9555
 
9556
  def write(self, oprot):
9557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9559
      return
559 chandransh 9560
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9561
    if self.cartId is not None:
559 chandransh 9562
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9563
      oprot.writeI64(self.cartId)
504 rajveer 9564
      oprot.writeFieldEnd()
9565
    oprot.writeFieldStop()
9566
    oprot.writeStructEnd()
9567
 
3431 rajveer 9568
  def validate(self):
9569
    return
9570
 
9571
 
504 rajveer 9572
  def __repr__(self):
9573
    L = ['%s=%r' % (key, value)
9574
      for key, value in self.__dict__.iteritems()]
9575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9576
 
9577
  def __eq__(self, other):
9578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9579
 
9580
  def __ne__(self, other):
9581
    return not (self == other)
9582
 
559 chandransh 9583
class getCart_result:
504 rajveer 9584
  """
9585
  Attributes:
9586
   - success
559 chandransh 9587
   - scx
504 rajveer 9588
  """
9589
 
9590
  thrift_spec = (
559 chandransh 9591
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9592
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9593
  )
9594
 
559 chandransh 9595
  def __init__(self, success=None, scx=None,):
504 rajveer 9596
    self.success = success
559 chandransh 9597
    self.scx = scx
504 rajveer 9598
 
9599
  def read(self, iprot):
9600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9602
      return
9603
    iprot.readStructBegin()
9604
    while True:
9605
      (fname, ftype, fid) = iprot.readFieldBegin()
9606
      if ftype == TType.STOP:
9607
        break
9608
      if fid == 0:
559 chandransh 9609
        if ftype == TType.STRUCT:
9610
          self.success = Cart()
9611
          self.success.read(iprot)
504 rajveer 9612
        else:
9613
          iprot.skip(ftype)
9614
      elif fid == 1:
9615
        if ftype == TType.STRUCT:
559 chandransh 9616
          self.scx = ShoppingCartException()
9617
          self.scx.read(iprot)
504 rajveer 9618
        else:
9619
          iprot.skip(ftype)
9620
      else:
9621
        iprot.skip(ftype)
9622
      iprot.readFieldEnd()
9623
    iprot.readStructEnd()
9624
 
9625
  def write(self, oprot):
9626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9628
      return
559 chandransh 9629
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9630
    if self.success is not None:
559 chandransh 9631
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9632
      self.success.write(oprot)
504 rajveer 9633
      oprot.writeFieldEnd()
3431 rajveer 9634
    if self.scx is not None:
559 chandransh 9635
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9636
      self.scx.write(oprot)
504 rajveer 9637
      oprot.writeFieldEnd()
9638
    oprot.writeFieldStop()
9639
    oprot.writeStructEnd()
9640
 
3431 rajveer 9641
  def validate(self):
9642
    return
9643
 
9644
 
504 rajveer 9645
  def __repr__(self):
9646
    L = ['%s=%r' % (key, value)
9647
      for key, value in self.__dict__.iteritems()]
9648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9649
 
9650
  def __eq__(self, other):
9651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9652
 
9653
  def __ne__(self, other):
9654
    return not (self == other)
9655
 
559 chandransh 9656
class getCartsByTime_args:
9657
  """
9658
  Attributes:
9659
   - from_time
9660
   - to_time
9661
   - status
9662
  """
9663
 
9664
  thrift_spec = (
9665
    None, # 0
9666
    (1, TType.I64, 'from_time', None, None, ), # 1
9667
    (2, TType.I64, 'to_time', None, None, ), # 2
9668
    (3, TType.I32, 'status', None, None, ), # 3
9669
  )
9670
 
9671
  def __init__(self, from_time=None, to_time=None, status=None,):
9672
    self.from_time = from_time
9673
    self.to_time = to_time
9674
    self.status = status
9675
 
9676
  def read(self, iprot):
9677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9679
      return
9680
    iprot.readStructBegin()
9681
    while True:
9682
      (fname, ftype, fid) = iprot.readFieldBegin()
9683
      if ftype == TType.STOP:
9684
        break
9685
      if fid == 1:
94 ashish 9686
        if ftype == TType.I64:
559 chandransh 9687
          self.from_time = iprot.readI64();
94 ashish 9688
        else:
9689
          iprot.skip(ftype)
122 ashish 9690
      elif fid == 2:
559 chandransh 9691
        if ftype == TType.I64:
9692
          self.to_time = iprot.readI64();
122 ashish 9693
        else:
9694
          iprot.skip(ftype)
559 chandransh 9695
      elif fid == 3:
9696
        if ftype == TType.I32:
9697
          self.status = iprot.readI32();
9698
        else:
9699
          iprot.skip(ftype)
94 ashish 9700
      else:
9701
        iprot.skip(ftype)
9702
      iprot.readFieldEnd()
9703
    iprot.readStructEnd()
9704
 
9705
  def write(self, oprot):
9706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9708
      return
559 chandransh 9709
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9710
    if self.from_time is not None:
559 chandransh 9711
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9712
      oprot.writeI64(self.from_time)
94 ashish 9713
      oprot.writeFieldEnd()
3431 rajveer 9714
    if self.to_time is not None:
559 chandransh 9715
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9716
      oprot.writeI64(self.to_time)
122 ashish 9717
      oprot.writeFieldEnd()
3431 rajveer 9718
    if self.status is not None:
559 chandransh 9719
      oprot.writeFieldBegin('status', TType.I32, 3)
9720
      oprot.writeI32(self.status)
9721
      oprot.writeFieldEnd()
94 ashish 9722
    oprot.writeFieldStop()
9723
    oprot.writeStructEnd()
9724
 
3431 rajveer 9725
  def validate(self):
9726
    return
9727
 
9728
 
94 ashish 9729
  def __repr__(self):
9730
    L = ['%s=%r' % (key, value)
9731
      for key, value in self.__dict__.iteritems()]
9732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9733
 
9734
  def __eq__(self, other):
9735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9736
 
9737
  def __ne__(self, other):
9738
    return not (self == other)
9739
 
559 chandransh 9740
class getCartsByTime_result:
94 ashish 9741
  """
9742
  Attributes:
9743
   - success
559 chandransh 9744
   - scx
94 ashish 9745
  """
9746
 
9747
  thrift_spec = (
559 chandransh 9748
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9749
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9750
  )
9751
 
559 chandransh 9752
  def __init__(self, success=None, scx=None,):
94 ashish 9753
    self.success = success
559 chandransh 9754
    self.scx = scx
94 ashish 9755
 
9756
  def read(self, iprot):
9757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9759
      return
9760
    iprot.readStructBegin()
9761
    while True:
9762
      (fname, ftype, fid) = iprot.readFieldBegin()
9763
      if ftype == TType.STOP:
9764
        break
9765
      if fid == 0:
559 chandransh 9766
        if ftype == TType.LIST:
9767
          self.success = []
5326 rajveer 9768
          (_etype117, _size114) = iprot.readListBegin()
9769
          for _i118 in xrange(_size114):
9770
            _elem119 = Cart()
9771
            _elem119.read(iprot)
9772
            self.success.append(_elem119)
559 chandransh 9773
          iprot.readListEnd()
94 ashish 9774
        else:
9775
          iprot.skip(ftype)
9776
      elif fid == 1:
9777
        if ftype == TType.STRUCT:
559 chandransh 9778
          self.scx = ShoppingCartException()
9779
          self.scx.read(iprot)
94 ashish 9780
        else:
9781
          iprot.skip(ftype)
9782
      else:
9783
        iprot.skip(ftype)
9784
      iprot.readFieldEnd()
9785
    iprot.readStructEnd()
9786
 
9787
  def write(self, oprot):
9788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9790
      return
559 chandransh 9791
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9792
    if self.success is not None:
559 chandransh 9793
      oprot.writeFieldBegin('success', TType.LIST, 0)
9794
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9795
      for iter120 in self.success:
9796
        iter120.write(oprot)
559 chandransh 9797
      oprot.writeListEnd()
94 ashish 9798
      oprot.writeFieldEnd()
3431 rajveer 9799
    if self.scx is not None:
559 chandransh 9800
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9801
      self.scx.write(oprot)
94 ashish 9802
      oprot.writeFieldEnd()
9803
    oprot.writeFieldStop()
9804
    oprot.writeStructEnd()
9805
 
3431 rajveer 9806
  def validate(self):
9807
    return
9808
 
9809
 
94 ashish 9810
  def __repr__(self):
9811
    L = ['%s=%r' % (key, value)
9812
      for key, value in self.__dict__.iteritems()]
9813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9814
 
9815
  def __eq__(self, other):
9816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9817
 
9818
  def __ne__(self, other):
9819
    return not (self == other)
9820
 
559 chandransh 9821
class addItemToCart_args:
9822
  """
9823
  Attributes:
9824
   - cartId
9825
   - itemId
9826
   - quantity
3557 rajveer 9827
   - sourceId
559 chandransh 9828
  """
9829
 
9830
  thrift_spec = (
9831
    None, # 0
9832
    (1, TType.I64, 'cartId', None, None, ), # 1
9833
    (2, TType.I64, 'itemId', None, None, ), # 2
9834
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9835
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9836
  )
9837
 
3557 rajveer 9838
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9839
    self.cartId = cartId
9840
    self.itemId = itemId
9841
    self.quantity = quantity
3557 rajveer 9842
    self.sourceId = sourceId
559 chandransh 9843
 
9844
  def read(self, iprot):
9845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9847
      return
9848
    iprot.readStructBegin()
9849
    while True:
9850
      (fname, ftype, fid) = iprot.readFieldBegin()
9851
      if ftype == TType.STOP:
9852
        break
9853
      if fid == 1:
9854
        if ftype == TType.I64:
9855
          self.cartId = iprot.readI64();
9856
        else:
9857
          iprot.skip(ftype)
9858
      elif fid == 2:
9859
        if ftype == TType.I64:
9860
          self.itemId = iprot.readI64();
9861
        else:
9862
          iprot.skip(ftype)
9863
      elif fid == 3:
9864
        if ftype == TType.I64:
9865
          self.quantity = iprot.readI64();
9866
        else:
9867
          iprot.skip(ftype)
3557 rajveer 9868
      elif fid == 4:
9869
        if ftype == TType.I64:
9870
          self.sourceId = iprot.readI64();
9871
        else:
9872
          iprot.skip(ftype)
559 chandransh 9873
      else:
9874
        iprot.skip(ftype)
9875
      iprot.readFieldEnd()
9876
    iprot.readStructEnd()
9877
 
9878
  def write(self, oprot):
9879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9881
      return
9882
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9883
    if self.cartId is not None:
559 chandransh 9884
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9885
      oprot.writeI64(self.cartId)
9886
      oprot.writeFieldEnd()
3431 rajveer 9887
    if self.itemId is not None:
559 chandransh 9888
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9889
      oprot.writeI64(self.itemId)
9890
      oprot.writeFieldEnd()
3431 rajveer 9891
    if self.quantity is not None:
559 chandransh 9892
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9893
      oprot.writeI64(self.quantity)
9894
      oprot.writeFieldEnd()
3557 rajveer 9895
    if self.sourceId is not None:
9896
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9897
      oprot.writeI64(self.sourceId)
9898
      oprot.writeFieldEnd()
559 chandransh 9899
    oprot.writeFieldStop()
9900
    oprot.writeStructEnd()
9901
 
3431 rajveer 9902
  def validate(self):
9903
    return
9904
 
9905
 
559 chandransh 9906
  def __repr__(self):
9907
    L = ['%s=%r' % (key, value)
9908
      for key, value in self.__dict__.iteritems()]
9909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9910
 
9911
  def __eq__(self, other):
9912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9913
 
9914
  def __ne__(self, other):
9915
    return not (self == other)
9916
 
9917
class addItemToCart_result:
9918
  """
9919
  Attributes:
2035 rajveer 9920
   - success
559 chandransh 9921
   - scx
9922
  """
9923
 
9924
  thrift_spec = (
2035 rajveer 9925
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9926
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9927
  )
9928
 
2035 rajveer 9929
  def __init__(self, success=None, scx=None,):
9930
    self.success = success
559 chandransh 9931
    self.scx = scx
9932
 
9933
  def read(self, iprot):
9934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9936
      return
9937
    iprot.readStructBegin()
9938
    while True:
9939
      (fname, ftype, fid) = iprot.readFieldBegin()
9940
      if ftype == TType.STOP:
9941
        break
2035 rajveer 9942
      if fid == 0:
9943
        if ftype == TType.STRING:
9944
          self.success = iprot.readString();
9945
        else:
9946
          iprot.skip(ftype)
9947
      elif fid == 1:
559 chandransh 9948
        if ftype == TType.STRUCT:
9949
          self.scx = ShoppingCartException()
9950
          self.scx.read(iprot)
9951
        else:
9952
          iprot.skip(ftype)
9953
      else:
9954
        iprot.skip(ftype)
9955
      iprot.readFieldEnd()
9956
    iprot.readStructEnd()
9957
 
9958
  def write(self, oprot):
9959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9961
      return
9962
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 9963
    if self.success is not None:
2035 rajveer 9964
      oprot.writeFieldBegin('success', TType.STRING, 0)
9965
      oprot.writeString(self.success)
9966
      oprot.writeFieldEnd()
3431 rajveer 9967
    if self.scx is not None:
559 chandransh 9968
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9969
      self.scx.write(oprot)
9970
      oprot.writeFieldEnd()
9971
    oprot.writeFieldStop()
9972
    oprot.writeStructEnd()
9973
 
3431 rajveer 9974
  def validate(self):
9975
    return
9976
 
9977
 
559 chandransh 9978
  def __repr__(self):
9979
    L = ['%s=%r' % (key, value)
9980
      for key, value in self.__dict__.iteritems()]
9981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9982
 
9983
  def __eq__(self, other):
9984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9985
 
9986
  def __ne__(self, other):
9987
    return not (self == other)
9988
 
9989
class deleteItemFromCart_args:
9990
  """
9991
  Attributes:
9992
   - cartId
9993
   - itemId
9994
  """
9995
 
9996
  thrift_spec = (
9997
    None, # 0
9998
    (1, TType.I64, 'cartId', None, None, ), # 1
9999
    (2, TType.I64, 'itemId', None, None, ), # 2
10000
  )
10001
 
10002
  def __init__(self, cartId=None, itemId=None,):
10003
    self.cartId = cartId
10004
    self.itemId = itemId
10005
 
10006
  def read(self, iprot):
10007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10009
      return
10010
    iprot.readStructBegin()
10011
    while True:
10012
      (fname, ftype, fid) = iprot.readFieldBegin()
10013
      if ftype == TType.STOP:
10014
        break
10015
      if fid == 1:
10016
        if ftype == TType.I64:
10017
          self.cartId = iprot.readI64();
10018
        else:
10019
          iprot.skip(ftype)
10020
      elif fid == 2:
10021
        if ftype == TType.I64:
10022
          self.itemId = iprot.readI64();
10023
        else:
10024
          iprot.skip(ftype)
10025
      else:
10026
        iprot.skip(ftype)
10027
      iprot.readFieldEnd()
10028
    iprot.readStructEnd()
10029
 
10030
  def write(self, oprot):
10031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10033
      return
10034
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10035
    if self.cartId is not None:
559 chandransh 10036
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10037
      oprot.writeI64(self.cartId)
10038
      oprot.writeFieldEnd()
3431 rajveer 10039
    if self.itemId is not None:
559 chandransh 10040
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10041
      oprot.writeI64(self.itemId)
10042
      oprot.writeFieldEnd()
10043
    oprot.writeFieldStop()
10044
    oprot.writeStructEnd()
10045
 
3431 rajveer 10046
  def validate(self):
10047
    return
10048
 
10049
 
559 chandransh 10050
  def __repr__(self):
10051
    L = ['%s=%r' % (key, value)
10052
      for key, value in self.__dict__.iteritems()]
10053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10054
 
10055
  def __eq__(self, other):
10056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10057
 
10058
  def __ne__(self, other):
10059
    return not (self == other)
10060
 
10061
class deleteItemFromCart_result:
10062
  """
10063
  Attributes:
10064
   - scx
10065
  """
10066
 
10067
  thrift_spec = (
10068
    None, # 0
10069
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10070
  )
10071
 
10072
  def __init__(self, scx=None,):
10073
    self.scx = scx
10074
 
10075
  def read(self, iprot):
10076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10078
      return
10079
    iprot.readStructBegin()
10080
    while True:
10081
      (fname, ftype, fid) = iprot.readFieldBegin()
10082
      if ftype == TType.STOP:
10083
        break
10084
      if fid == 1:
10085
        if ftype == TType.STRUCT:
10086
          self.scx = ShoppingCartException()
10087
          self.scx.read(iprot)
10088
        else:
10089
          iprot.skip(ftype)
10090
      else:
10091
        iprot.skip(ftype)
10092
      iprot.readFieldEnd()
10093
    iprot.readStructEnd()
10094
 
10095
  def write(self, oprot):
10096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10098
      return
10099
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10100
    if self.scx is not None:
559 chandransh 10101
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10102
      self.scx.write(oprot)
10103
      oprot.writeFieldEnd()
10104
    oprot.writeFieldStop()
10105
    oprot.writeStructEnd()
10106
 
3431 rajveer 10107
  def validate(self):
10108
    return
10109
 
10110
 
559 chandransh 10111
  def __repr__(self):
10112
    L = ['%s=%r' % (key, value)
10113
      for key, value in self.__dict__.iteritems()]
10114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10115
 
10116
  def __eq__(self, other):
10117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10118
 
10119
  def __ne__(self, other):
10120
    return not (self == other)
10121
 
10122
class addAddressToCart_args:
10123
  """
10124
  Attributes:
10125
   - cartId
10126
   - addressId
10127
  """
10128
 
10129
  thrift_spec = (
10130
    None, # 0
10131
    (1, TType.I64, 'cartId', None, None, ), # 1
10132
    (2, TType.I64, 'addressId', None, None, ), # 2
10133
  )
10134
 
10135
  def __init__(self, cartId=None, addressId=None,):
10136
    self.cartId = cartId
10137
    self.addressId = addressId
10138
 
10139
  def read(self, iprot):
10140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10142
      return
10143
    iprot.readStructBegin()
10144
    while True:
10145
      (fname, ftype, fid) = iprot.readFieldBegin()
10146
      if ftype == TType.STOP:
10147
        break
10148
      if fid == 1:
10149
        if ftype == TType.I64:
10150
          self.cartId = iprot.readI64();
10151
        else:
10152
          iprot.skip(ftype)
10153
      elif fid == 2:
10154
        if ftype == TType.I64:
10155
          self.addressId = iprot.readI64();
10156
        else:
10157
          iprot.skip(ftype)
10158
      else:
10159
        iprot.skip(ftype)
10160
      iprot.readFieldEnd()
10161
    iprot.readStructEnd()
10162
 
10163
  def write(self, oprot):
10164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10166
      return
10167
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10168
    if self.cartId is not None:
559 chandransh 10169
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10170
      oprot.writeI64(self.cartId)
10171
      oprot.writeFieldEnd()
3431 rajveer 10172
    if self.addressId is not None:
559 chandransh 10173
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10174
      oprot.writeI64(self.addressId)
10175
      oprot.writeFieldEnd()
10176
    oprot.writeFieldStop()
10177
    oprot.writeStructEnd()
10178
 
3431 rajveer 10179
  def validate(self):
10180
    return
10181
 
10182
 
559 chandransh 10183
  def __repr__(self):
10184
    L = ['%s=%r' % (key, value)
10185
      for key, value in self.__dict__.iteritems()]
10186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10187
 
10188
  def __eq__(self, other):
10189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10190
 
10191
  def __ne__(self, other):
10192
    return not (self == other)
10193
 
10194
class addAddressToCart_result:
575 chandransh 10195
  """
10196
  Attributes:
10197
   - scx
10198
  """
559 chandransh 10199
 
10200
  thrift_spec = (
575 chandransh 10201
    None, # 0
10202
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10203
  )
10204
 
575 chandransh 10205
  def __init__(self, scx=None,):
10206
    self.scx = scx
10207
 
559 chandransh 10208
  def read(self, iprot):
10209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10211
      return
10212
    iprot.readStructBegin()
10213
    while True:
10214
      (fname, ftype, fid) = iprot.readFieldBegin()
10215
      if ftype == TType.STOP:
10216
        break
575 chandransh 10217
      if fid == 1:
10218
        if ftype == TType.STRUCT:
10219
          self.scx = ShoppingCartException()
10220
          self.scx.read(iprot)
10221
        else:
10222
          iprot.skip(ftype)
559 chandransh 10223
      else:
10224
        iprot.skip(ftype)
10225
      iprot.readFieldEnd()
10226
    iprot.readStructEnd()
10227
 
10228
  def write(self, oprot):
10229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10231
      return
10232
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10233
    if self.scx is not None:
575 chandransh 10234
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10235
      self.scx.write(oprot)
10236
      oprot.writeFieldEnd()
559 chandransh 10237
    oprot.writeFieldStop()
10238
    oprot.writeStructEnd()
10239
 
3431 rajveer 10240
  def validate(self):
10241
    return
10242
 
10243
 
559 chandransh 10244
  def __repr__(self):
10245
    L = ['%s=%r' % (key, value)
10246
      for key, value in self.__dict__.iteritems()]
10247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10248
 
10249
  def __eq__(self, other):
10250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10251
 
10252
  def __ne__(self, other):
10253
    return not (self == other)
10254
 
1976 varun.gupt 10255
class applyCouponToCart_args:
10256
  """
10257
  Attributes:
10258
   - cartId
10259
   - couponCode
10260
   - totalPrice
10261
   - discountedPrice
10262
  """
10263
 
10264
  thrift_spec = (
10265
    None, # 0
10266
    (1, TType.I64, 'cartId', None, None, ), # 1
10267
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10268
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10269
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10270
  )
10271
 
10272
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10273
    self.cartId = cartId
10274
    self.couponCode = couponCode
10275
    self.totalPrice = totalPrice
10276
    self.discountedPrice = discountedPrice
10277
 
10278
  def read(self, iprot):
10279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10281
      return
10282
    iprot.readStructBegin()
10283
    while True:
10284
      (fname, ftype, fid) = iprot.readFieldBegin()
10285
      if ftype == TType.STOP:
10286
        break
10287
      if fid == 1:
10288
        if ftype == TType.I64:
10289
          self.cartId = iprot.readI64();
10290
        else:
10291
          iprot.skip(ftype)
10292
      elif fid == 2:
10293
        if ftype == TType.STRING:
10294
          self.couponCode = iprot.readString();
10295
        else:
10296
          iprot.skip(ftype)
10297
      elif fid == 3:
10298
        if ftype == TType.DOUBLE:
10299
          self.totalPrice = iprot.readDouble();
10300
        else:
10301
          iprot.skip(ftype)
10302
      elif fid == 4:
10303
        if ftype == TType.DOUBLE:
10304
          self.discountedPrice = iprot.readDouble();
10305
        else:
10306
          iprot.skip(ftype)
10307
      else:
10308
        iprot.skip(ftype)
10309
      iprot.readFieldEnd()
10310
    iprot.readStructEnd()
10311
 
10312
  def write(self, oprot):
10313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10315
      return
10316
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10317
    if self.cartId is not None:
1976 varun.gupt 10318
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10319
      oprot.writeI64(self.cartId)
10320
      oprot.writeFieldEnd()
3431 rajveer 10321
    if self.couponCode is not None:
1976 varun.gupt 10322
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10323
      oprot.writeString(self.couponCode)
10324
      oprot.writeFieldEnd()
3431 rajveer 10325
    if self.totalPrice is not None:
1976 varun.gupt 10326
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10327
      oprot.writeDouble(self.totalPrice)
10328
      oprot.writeFieldEnd()
3431 rajveer 10329
    if self.discountedPrice is not None:
1976 varun.gupt 10330
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10331
      oprot.writeDouble(self.discountedPrice)
10332
      oprot.writeFieldEnd()
10333
    oprot.writeFieldStop()
10334
    oprot.writeStructEnd()
10335
 
3431 rajveer 10336
  def validate(self):
10337
    return
10338
 
10339
 
1976 varun.gupt 10340
  def __repr__(self):
10341
    L = ['%s=%r' % (key, value)
10342
      for key, value in self.__dict__.iteritems()]
10343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10344
 
10345
  def __eq__(self, other):
10346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10347
 
10348
  def __ne__(self, other):
10349
    return not (self == other)
10350
 
10351
class applyCouponToCart_result:
10352
  """
10353
  Attributes:
10354
   - scx
10355
  """
10356
 
10357
  thrift_spec = (
10358
    None, # 0
10359
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10360
  )
10361
 
10362
  def __init__(self, scx=None,):
10363
    self.scx = scx
10364
 
10365
  def read(self, iprot):
10366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10368
      return
10369
    iprot.readStructBegin()
10370
    while True:
10371
      (fname, ftype, fid) = iprot.readFieldBegin()
10372
      if ftype == TType.STOP:
10373
        break
10374
      if fid == 1:
10375
        if ftype == TType.STRUCT:
10376
          self.scx = ShoppingCartException()
10377
          self.scx.read(iprot)
10378
        else:
10379
          iprot.skip(ftype)
10380
      else:
10381
        iprot.skip(ftype)
10382
      iprot.readFieldEnd()
10383
    iprot.readStructEnd()
10384
 
10385
  def write(self, oprot):
10386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10388
      return
10389
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10390
    if self.scx is not None:
1976 varun.gupt 10391
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10392
      self.scx.write(oprot)
10393
      oprot.writeFieldEnd()
10394
    oprot.writeFieldStop()
10395
    oprot.writeStructEnd()
10396
 
3431 rajveer 10397
  def validate(self):
10398
    return
10399
 
10400
 
1976 varun.gupt 10401
  def __repr__(self):
10402
    L = ['%s=%r' % (key, value)
10403
      for key, value in self.__dict__.iteritems()]
10404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10405
 
10406
  def __eq__(self, other):
10407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10408
 
10409
  def __ne__(self, other):
10410
    return not (self == other)
10411
 
10412
class removeCoupon_args:
10413
  """
10414
  Attributes:
10415
   - cartId
10416
  """
10417
 
10418
  thrift_spec = (
10419
    None, # 0
10420
    (1, TType.I64, 'cartId', None, None, ), # 1
10421
  )
10422
 
10423
  def __init__(self, cartId=None,):
10424
    self.cartId = cartId
10425
 
10426
  def read(self, iprot):
10427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10429
      return
10430
    iprot.readStructBegin()
10431
    while True:
10432
      (fname, ftype, fid) = iprot.readFieldBegin()
10433
      if ftype == TType.STOP:
10434
        break
10435
      if fid == 1:
10436
        if ftype == TType.I64:
10437
          self.cartId = iprot.readI64();
10438
        else:
10439
          iprot.skip(ftype)
10440
      else:
10441
        iprot.skip(ftype)
10442
      iprot.readFieldEnd()
10443
    iprot.readStructEnd()
10444
 
10445
  def write(self, oprot):
10446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10448
      return
10449
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10450
    if self.cartId is not None:
1976 varun.gupt 10451
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10452
      oprot.writeI64(self.cartId)
10453
      oprot.writeFieldEnd()
10454
    oprot.writeFieldStop()
10455
    oprot.writeStructEnd()
10456
 
3431 rajveer 10457
  def validate(self):
10458
    return
10459
 
10460
 
1976 varun.gupt 10461
  def __repr__(self):
10462
    L = ['%s=%r' % (key, value)
10463
      for key, value in self.__dict__.iteritems()]
10464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10465
 
10466
  def __eq__(self, other):
10467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10468
 
10469
  def __ne__(self, other):
10470
    return not (self == other)
10471
 
10472
class removeCoupon_result:
10473
  """
10474
  Attributes:
10475
   - scx
10476
  """
10477
 
10478
  thrift_spec = (
10479
    None, # 0
10480
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10481
  )
10482
 
10483
  def __init__(self, scx=None,):
10484
    self.scx = scx
10485
 
10486
  def read(self, iprot):
10487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10489
      return
10490
    iprot.readStructBegin()
10491
    while True:
10492
      (fname, ftype, fid) = iprot.readFieldBegin()
10493
      if ftype == TType.STOP:
10494
        break
10495
      if fid == 1:
10496
        if ftype == TType.STRUCT:
10497
          self.scx = ShoppingCartException()
10498
          self.scx.read(iprot)
10499
        else:
10500
          iprot.skip(ftype)
10501
      else:
10502
        iprot.skip(ftype)
10503
      iprot.readFieldEnd()
10504
    iprot.readStructEnd()
10505
 
10506
  def write(self, oprot):
10507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10509
      return
10510
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10511
    if self.scx is not None:
1976 varun.gupt 10512
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10513
      self.scx.write(oprot)
10514
      oprot.writeFieldEnd()
10515
    oprot.writeFieldStop()
10516
    oprot.writeStructEnd()
10517
 
3431 rajveer 10518
  def validate(self):
10519
    return
10520
 
10521
 
1976 varun.gupt 10522
  def __repr__(self):
10523
    L = ['%s=%r' % (key, value)
10524
      for key, value in self.__dict__.iteritems()]
10525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10526
 
10527
  def __eq__(self, other):
10528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10529
 
10530
  def __ne__(self, other):
10531
    return not (self == other)
10532
 
3554 varun.gupt 10533
class deleteDiscountsFromCart_args:
10534
  """
10535
  Attributes:
10536
   - cartId
10537
  """
10538
 
10539
  thrift_spec = (
10540
    None, # 0
10541
    (1, TType.I64, 'cartId', None, None, ), # 1
10542
  )
10543
 
10544
  def __init__(self, cartId=None,):
10545
    self.cartId = cartId
10546
 
10547
  def read(self, iprot):
10548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10550
      return
10551
    iprot.readStructBegin()
10552
    while True:
10553
      (fname, ftype, fid) = iprot.readFieldBegin()
10554
      if ftype == TType.STOP:
10555
        break
10556
      if fid == 1:
10557
        if ftype == TType.I64:
10558
          self.cartId = iprot.readI64();
10559
        else:
10560
          iprot.skip(ftype)
10561
      else:
10562
        iprot.skip(ftype)
10563
      iprot.readFieldEnd()
10564
    iprot.readStructEnd()
10565
 
10566
  def write(self, oprot):
10567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10569
      return
10570
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10571
    if self.cartId is not None:
10572
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10573
      oprot.writeI64(self.cartId)
10574
      oprot.writeFieldEnd()
10575
    oprot.writeFieldStop()
10576
    oprot.writeStructEnd()
10577
 
10578
  def validate(self):
10579
    return
10580
 
10581
 
10582
  def __repr__(self):
10583
    L = ['%s=%r' % (key, value)
10584
      for key, value in self.__dict__.iteritems()]
10585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10586
 
10587
  def __eq__(self, other):
10588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10589
 
10590
  def __ne__(self, other):
10591
    return not (self == other)
10592
 
10593
class deleteDiscountsFromCart_result:
10594
  """
10595
  Attributes:
10596
   - scx
10597
  """
10598
 
10599
  thrift_spec = (
10600
    None, # 0
10601
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10602
  )
10603
 
10604
  def __init__(self, scx=None,):
10605
    self.scx = scx
10606
 
10607
  def read(self, iprot):
10608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10610
      return
10611
    iprot.readStructBegin()
10612
    while True:
10613
      (fname, ftype, fid) = iprot.readFieldBegin()
10614
      if ftype == TType.STOP:
10615
        break
10616
      if fid == 1:
10617
        if ftype == TType.STRUCT:
10618
          self.scx = ShoppingCartException()
10619
          self.scx.read(iprot)
10620
        else:
10621
          iprot.skip(ftype)
10622
      else:
10623
        iprot.skip(ftype)
10624
      iprot.readFieldEnd()
10625
    iprot.readStructEnd()
10626
 
10627
  def write(self, oprot):
10628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10630
      return
10631
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10632
    if self.scx is not None:
10633
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10634
      self.scx.write(oprot)
10635
      oprot.writeFieldEnd()
10636
    oprot.writeFieldStop()
10637
    oprot.writeStructEnd()
10638
 
10639
  def validate(self):
10640
    return
10641
 
10642
 
10643
  def __repr__(self):
10644
    L = ['%s=%r' % (key, value)
10645
      for key, value in self.__dict__.iteritems()]
10646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10647
 
10648
  def __eq__(self, other):
10649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10650
 
10651
  def __ne__(self, other):
10652
    return not (self == other)
10653
 
10654
class saveDiscounts_args:
10655
  """
10656
  Attributes:
10657
   - discounts
10658
  """
10659
 
10660
  thrift_spec = (
10661
    None, # 0
10662
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10663
  )
10664
 
10665
  def __init__(self, discounts=None,):
10666
    self.discounts = discounts
10667
 
10668
  def read(self, iprot):
10669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10671
      return
10672
    iprot.readStructBegin()
10673
    while True:
10674
      (fname, ftype, fid) = iprot.readFieldBegin()
10675
      if ftype == TType.STOP:
10676
        break
10677
      if fid == 1:
10678
        if ftype == TType.LIST:
10679
          self.discounts = []
5326 rajveer 10680
          (_etype124, _size121) = iprot.readListBegin()
10681
          for _i125 in xrange(_size121):
10682
            _elem126 = Discount()
10683
            _elem126.read(iprot)
10684
            self.discounts.append(_elem126)
3554 varun.gupt 10685
          iprot.readListEnd()
10686
        else:
10687
          iprot.skip(ftype)
10688
      else:
10689
        iprot.skip(ftype)
10690
      iprot.readFieldEnd()
10691
    iprot.readStructEnd()
10692
 
10693
  def write(self, oprot):
10694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10696
      return
10697
    oprot.writeStructBegin('saveDiscounts_args')
10698
    if self.discounts is not None:
10699
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10700
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 10701
      for iter127 in self.discounts:
10702
        iter127.write(oprot)
3554 varun.gupt 10703
      oprot.writeListEnd()
10704
      oprot.writeFieldEnd()
10705
    oprot.writeFieldStop()
10706
    oprot.writeStructEnd()
10707
 
10708
  def validate(self):
10709
    return
10710
 
10711
 
10712
  def __repr__(self):
10713
    L = ['%s=%r' % (key, value)
10714
      for key, value in self.__dict__.iteritems()]
10715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10716
 
10717
  def __eq__(self, other):
10718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10719
 
10720
  def __ne__(self, other):
10721
    return not (self == other)
10722
 
10723
class saveDiscounts_result:
10724
  """
10725
  Attributes:
10726
   - scx
10727
  """
10728
 
10729
  thrift_spec = (
10730
    None, # 0
10731
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10732
  )
10733
 
10734
  def __init__(self, scx=None,):
10735
    self.scx = scx
10736
 
10737
  def read(self, iprot):
10738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10740
      return
10741
    iprot.readStructBegin()
10742
    while True:
10743
      (fname, ftype, fid) = iprot.readFieldBegin()
10744
      if ftype == TType.STOP:
10745
        break
10746
      if fid == 1:
10747
        if ftype == TType.STRUCT:
10748
          self.scx = ShoppingCartException()
10749
          self.scx.read(iprot)
10750
        else:
10751
          iprot.skip(ftype)
10752
      else:
10753
        iprot.skip(ftype)
10754
      iprot.readFieldEnd()
10755
    iprot.readStructEnd()
10756
 
10757
  def write(self, oprot):
10758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10760
      return
10761
    oprot.writeStructBegin('saveDiscounts_result')
10762
    if self.scx is not None:
10763
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10764
      self.scx.write(oprot)
10765
      oprot.writeFieldEnd()
10766
    oprot.writeFieldStop()
10767
    oprot.writeStructEnd()
10768
 
10769
  def validate(self):
10770
    return
10771
 
10772
 
10773
  def __repr__(self):
10774
    L = ['%s=%r' % (key, value)
10775
      for key, value in self.__dict__.iteritems()]
10776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10777
 
10778
  def __eq__(self, other):
10779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10780
 
10781
  def __ne__(self, other):
10782
    return not (self == other)
10783
 
690 chandransh 10784
class createOrders_args:
559 chandransh 10785
  """
10786
  Attributes:
10787
   - cartId
2815 vikas 10788
   - sessionSource
10789
   - sessionStartTime
3858 vikas 10790
   - firstSource
10791
   - firstSourceTime
5326 rajveer 10792
   - userId
559 chandransh 10793
  """
10794
 
10795
  thrift_spec = (
10796
    None, # 0
10797
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10798
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10799
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10800
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10801
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 10802
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 10803
  )
10804
 
5326 rajveer 10805
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 10806
    self.cartId = cartId
2815 vikas 10807
    self.sessionSource = sessionSource
10808
    self.sessionStartTime = sessionStartTime
3858 vikas 10809
    self.firstSource = firstSource
10810
    self.firstSourceTime = firstSourceTime
5326 rajveer 10811
    self.userId = userId
559 chandransh 10812
 
10813
  def read(self, iprot):
10814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10816
      return
10817
    iprot.readStructBegin()
10818
    while True:
10819
      (fname, ftype, fid) = iprot.readFieldBegin()
10820
      if ftype == TType.STOP:
10821
        break
10822
      if fid == 1:
10823
        if ftype == TType.I64:
10824
          self.cartId = iprot.readI64();
10825
        else:
10826
          iprot.skip(ftype)
2815 vikas 10827
      elif fid == 2:
10828
        if ftype == TType.STRING:
10829
          self.sessionSource = iprot.readString();
10830
        else:
10831
          iprot.skip(ftype)
10832
      elif fid == 3:
10833
        if ftype == TType.I64:
10834
          self.sessionStartTime = iprot.readI64();
10835
        else:
10836
          iprot.skip(ftype)
3858 vikas 10837
      elif fid == 4:
10838
        if ftype == TType.STRING:
10839
          self.firstSource = iprot.readString();
10840
        else:
10841
          iprot.skip(ftype)
10842
      elif fid == 5:
10843
        if ftype == TType.I64:
10844
          self.firstSourceTime = iprot.readI64();
10845
        else:
10846
          iprot.skip(ftype)
5326 rajveer 10847
      elif fid == 6:
10848
        if ftype == TType.I64:
10849
          self.userId = iprot.readI64();
10850
        else:
10851
          iprot.skip(ftype)
559 chandransh 10852
      else:
10853
        iprot.skip(ftype)
10854
      iprot.readFieldEnd()
10855
    iprot.readStructEnd()
10856
 
10857
  def write(self, oprot):
10858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10860
      return
690 chandransh 10861
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 10862
    if self.cartId is not None:
559 chandransh 10863
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10864
      oprot.writeI64(self.cartId)
10865
      oprot.writeFieldEnd()
3431 rajveer 10866
    if self.sessionSource is not None:
2815 vikas 10867
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
10868
      oprot.writeString(self.sessionSource)
10869
      oprot.writeFieldEnd()
3431 rajveer 10870
    if self.sessionStartTime is not None:
2815 vikas 10871
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
10872
      oprot.writeI64(self.sessionStartTime)
10873
      oprot.writeFieldEnd()
3858 vikas 10874
    if self.firstSource is not None:
10875
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
10876
      oprot.writeString(self.firstSource)
10877
      oprot.writeFieldEnd()
10878
    if self.firstSourceTime is not None:
10879
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
10880
      oprot.writeI64(self.firstSourceTime)
10881
      oprot.writeFieldEnd()
5326 rajveer 10882
    if self.userId is not None:
10883
      oprot.writeFieldBegin('userId', TType.I64, 6)
10884
      oprot.writeI64(self.userId)
10885
      oprot.writeFieldEnd()
559 chandransh 10886
    oprot.writeFieldStop()
10887
    oprot.writeStructEnd()
10888
 
3431 rajveer 10889
  def validate(self):
10890
    return
10891
 
10892
 
559 chandransh 10893
  def __repr__(self):
10894
    L = ['%s=%r' % (key, value)
10895
      for key, value in self.__dict__.iteritems()]
10896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10897
 
10898
  def __eq__(self, other):
10899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10900
 
10901
  def __ne__(self, other):
10902
    return not (self == other)
10903
 
690 chandransh 10904
class createOrders_result:
559 chandransh 10905
  """
10906
  Attributes:
94 ashish 10907
   - success
559 chandransh 10908
   - scx
94 ashish 10909
  """
10910
 
10911
  thrift_spec = (
575 chandransh 10912
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 10913
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10914
  )
10915
 
559 chandransh 10916
  def __init__(self, success=None, scx=None,):
94 ashish 10917
    self.success = success
559 chandransh 10918
    self.scx = scx
94 ashish 10919
 
10920
  def read(self, iprot):
10921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10923
      return
10924
    iprot.readStructBegin()
10925
    while True:
10926
      (fname, ftype, fid) = iprot.readFieldBegin()
10927
      if ftype == TType.STOP:
10928
        break
10929
      if fid == 0:
575 chandransh 10930
        if ftype == TType.I64:
10931
          self.success = iprot.readI64();
94 ashish 10932
        else:
10933
          iprot.skip(ftype)
10934
      elif fid == 1:
10935
        if ftype == TType.STRUCT:
559 chandransh 10936
          self.scx = ShoppingCartException()
10937
          self.scx.read(iprot)
94 ashish 10938
        else:
10939
          iprot.skip(ftype)
10940
      else:
10941
        iprot.skip(ftype)
10942
      iprot.readFieldEnd()
10943
    iprot.readStructEnd()
10944
 
10945
  def write(self, oprot):
10946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10948
      return
690 chandransh 10949
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 10950
    if self.success is not None:
575 chandransh 10951
      oprot.writeFieldBegin('success', TType.I64, 0)
10952
      oprot.writeI64(self.success)
94 ashish 10953
      oprot.writeFieldEnd()
3431 rajveer 10954
    if self.scx is not None:
559 chandransh 10955
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10956
      self.scx.write(oprot)
94 ashish 10957
      oprot.writeFieldEnd()
10958
    oprot.writeFieldStop()
10959
    oprot.writeStructEnd()
10960
 
3431 rajveer 10961
  def validate(self):
10962
    return
10963
 
10964
 
94 ashish 10965
  def __repr__(self):
10966
    L = ['%s=%r' % (key, value)
10967
      for key, value in self.__dict__.iteritems()]
10968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10969
 
10970
  def __eq__(self, other):
10971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10972
 
10973
  def __ne__(self, other):
10974
    return not (self == other)
10975
 
559 chandransh 10976
class validateCart_args:
94 ashish 10977
  """
10978
  Attributes:
559 chandransh 10979
   - cartId
3557 rajveer 10980
   - sourceId
94 ashish 10981
  """
10982
 
10983
  thrift_spec = (
10984
    None, # 0
559 chandransh 10985
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 10986
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 10987
  )
10988
 
3557 rajveer 10989
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 10990
    self.cartId = cartId
3557 rajveer 10991
    self.sourceId = sourceId
94 ashish 10992
 
10993
  def read(self, iprot):
10994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10996
      return
10997
    iprot.readStructBegin()
10998
    while True:
10999
      (fname, ftype, fid) = iprot.readFieldBegin()
11000
      if ftype == TType.STOP:
11001
        break
11002
      if fid == 1:
11003
        if ftype == TType.I64:
559 chandransh 11004
          self.cartId = iprot.readI64();
94 ashish 11005
        else:
11006
          iprot.skip(ftype)
3557 rajveer 11007
      elif fid == 2:
11008
        if ftype == TType.I64:
11009
          self.sourceId = iprot.readI64();
11010
        else:
11011
          iprot.skip(ftype)
94 ashish 11012
      else:
11013
        iprot.skip(ftype)
11014
      iprot.readFieldEnd()
11015
    iprot.readStructEnd()
11016
 
11017
  def write(self, oprot):
11018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11020
      return
559 chandransh 11021
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11022
    if self.cartId is not None:
559 chandransh 11023
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11024
      oprot.writeI64(self.cartId)
94 ashish 11025
      oprot.writeFieldEnd()
3557 rajveer 11026
    if self.sourceId is not None:
11027
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11028
      oprot.writeI64(self.sourceId)
11029
      oprot.writeFieldEnd()
94 ashish 11030
    oprot.writeFieldStop()
11031
    oprot.writeStructEnd()
11032
 
3431 rajveer 11033
  def validate(self):
11034
    return
11035
 
11036
 
94 ashish 11037
  def __repr__(self):
11038
    L = ['%s=%r' % (key, value)
11039
      for key, value in self.__dict__.iteritems()]
11040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11041
 
11042
  def __eq__(self, other):
11043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11044
 
11045
  def __ne__(self, other):
11046
    return not (self == other)
11047
 
559 chandransh 11048
class validateCart_result:
94 ashish 11049
  """
11050
  Attributes:
11051
   - success
575 chandransh 11052
   - scex
94 ashish 11053
  """
11054
 
11055
  thrift_spec = (
1466 ankur.sing 11056
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11057
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11058
  )
11059
 
575 chandransh 11060
  def __init__(self, success=None, scex=None,):
94 ashish 11061
    self.success = success
575 chandransh 11062
    self.scex = scex
94 ashish 11063
 
11064
  def read(self, iprot):
11065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11067
      return
11068
    iprot.readStructBegin()
11069
    while True:
11070
      (fname, ftype, fid) = iprot.readFieldBegin()
11071
      if ftype == TType.STOP:
11072
        break
11073
      if fid == 0:
1466 ankur.sing 11074
        if ftype == TType.STRING:
11075
          self.success = iprot.readString();
94 ashish 11076
        else:
11077
          iprot.skip(ftype)
575 chandransh 11078
      elif fid == 1:
11079
        if ftype == TType.STRUCT:
11080
          self.scex = ShoppingCartException()
11081
          self.scex.read(iprot)
11082
        else:
11083
          iprot.skip(ftype)
94 ashish 11084
      else:
11085
        iprot.skip(ftype)
11086
      iprot.readFieldEnd()
11087
    iprot.readStructEnd()
11088
 
11089
  def write(self, oprot):
11090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11092
      return
559 chandransh 11093
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11094
    if self.success is not None:
1466 ankur.sing 11095
      oprot.writeFieldBegin('success', TType.STRING, 0)
11096
      oprot.writeString(self.success)
94 ashish 11097
      oprot.writeFieldEnd()
3431 rajveer 11098
    if self.scex is not None:
575 chandransh 11099
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11100
      self.scex.write(oprot)
11101
      oprot.writeFieldEnd()
559 chandransh 11102
    oprot.writeFieldStop()
11103
    oprot.writeStructEnd()
11104
 
3431 rajveer 11105
  def validate(self):
11106
    return
11107
 
11108
 
559 chandransh 11109
  def __repr__(self):
11110
    L = ['%s=%r' % (key, value)
11111
      for key, value in self.__dict__.iteritems()]
11112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11113
 
11114
  def __eq__(self, other):
11115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11116
 
11117
  def __ne__(self, other):
11118
    return not (self == other)
11119
 
690 chandransh 11120
class mergeCart_args:
575 chandransh 11121
  """
11122
  Attributes:
690 chandransh 11123
   - fromCartId
11124
   - toCartId
11125
  """
11126
 
11127
  thrift_spec = (
11128
    None, # 0
11129
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11130
    (2, TType.I64, 'toCartId', None, None, ), # 2
11131
  )
11132
 
11133
  def __init__(self, fromCartId=None, toCartId=None,):
11134
    self.fromCartId = fromCartId
11135
    self.toCartId = toCartId
11136
 
11137
  def read(self, iprot):
11138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11140
      return
11141
    iprot.readStructBegin()
11142
    while True:
11143
      (fname, ftype, fid) = iprot.readFieldBegin()
11144
      if ftype == TType.STOP:
11145
        break
11146
      if fid == 1:
11147
        if ftype == TType.I64:
11148
          self.fromCartId = iprot.readI64();
11149
        else:
11150
          iprot.skip(ftype)
11151
      elif fid == 2:
11152
        if ftype == TType.I64:
11153
          self.toCartId = iprot.readI64();
11154
        else:
11155
          iprot.skip(ftype)
11156
      else:
11157
        iprot.skip(ftype)
11158
      iprot.readFieldEnd()
11159
    iprot.readStructEnd()
11160
 
11161
  def write(self, oprot):
11162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11164
      return
11165
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11166
    if self.fromCartId is not None:
690 chandransh 11167
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11168
      oprot.writeI64(self.fromCartId)
11169
      oprot.writeFieldEnd()
3431 rajveer 11170
    if self.toCartId is not None:
690 chandransh 11171
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11172
      oprot.writeI64(self.toCartId)
11173
      oprot.writeFieldEnd()
11174
    oprot.writeFieldStop()
11175
    oprot.writeStructEnd()
11176
 
3431 rajveer 11177
  def validate(self):
11178
    return
11179
 
11180
 
690 chandransh 11181
  def __repr__(self):
11182
    L = ['%s=%r' % (key, value)
11183
      for key, value in self.__dict__.iteritems()]
11184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11185
 
11186
  def __eq__(self, other):
11187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11188
 
11189
  def __ne__(self, other):
11190
    return not (self == other)
11191
 
11192
class mergeCart_result:
11193
 
11194
  thrift_spec = (
11195
  )
11196
 
11197
  def read(self, iprot):
11198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11200
      return
11201
    iprot.readStructBegin()
11202
    while True:
11203
      (fname, ftype, fid) = iprot.readFieldBegin()
11204
      if ftype == TType.STOP:
11205
        break
11206
      else:
11207
        iprot.skip(ftype)
11208
      iprot.readFieldEnd()
11209
    iprot.readStructEnd()
11210
 
11211
  def write(self, oprot):
11212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11214
      return
11215
    oprot.writeStructBegin('mergeCart_result')
11216
    oprot.writeFieldStop()
11217
    oprot.writeStructEnd()
11218
 
3431 rajveer 11219
  def validate(self):
11220
    return
11221
 
11222
 
690 chandransh 11223
  def __repr__(self):
11224
    L = ['%s=%r' % (key, value)
11225
      for key, value in self.__dict__.iteritems()]
11226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11227
 
11228
  def __eq__(self, other):
11229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11230
 
11231
  def __ne__(self, other):
11232
    return not (self == other)
11233
 
11234
class checkOut_args:
11235
  """
11236
  Attributes:
575 chandransh 11237
   - cartId
11238
  """
11239
 
11240
  thrift_spec = (
11241
    None, # 0
11242
    (1, TType.I64, 'cartId', None, None, ), # 1
11243
  )
11244
 
11245
  def __init__(self, cartId=None,):
11246
    self.cartId = cartId
11247
 
11248
  def read(self, iprot):
11249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11251
      return
11252
    iprot.readStructBegin()
11253
    while True:
11254
      (fname, ftype, fid) = iprot.readFieldBegin()
11255
      if ftype == TType.STOP:
11256
        break
11257
      if fid == 1:
11258
        if ftype == TType.I64:
11259
          self.cartId = iprot.readI64();
11260
        else:
11261
          iprot.skip(ftype)
11262
      else:
11263
        iprot.skip(ftype)
11264
      iprot.readFieldEnd()
11265
    iprot.readStructEnd()
11266
 
11267
  def write(self, oprot):
11268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11270
      return
690 chandransh 11271
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11272
    if self.cartId is not None:
575 chandransh 11273
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11274
      oprot.writeI64(self.cartId)
11275
      oprot.writeFieldEnd()
11276
    oprot.writeFieldStop()
11277
    oprot.writeStructEnd()
11278
 
3431 rajveer 11279
  def validate(self):
11280
    return
11281
 
11282
 
575 chandransh 11283
  def __repr__(self):
11284
    L = ['%s=%r' % (key, value)
11285
      for key, value in self.__dict__.iteritems()]
11286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11287
 
11288
  def __eq__(self, other):
11289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11290
 
11291
  def __ne__(self, other):
11292
    return not (self == other)
11293
 
690 chandransh 11294
class checkOut_result:
575 chandransh 11295
  """
11296
  Attributes:
11297
   - success
11298
   - scex
11299
  """
11300
 
11301
  thrift_spec = (
11302
    (0, TType.BOOL, 'success', None, None, ), # 0
11303
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11304
  )
11305
 
11306
  def __init__(self, success=None, scex=None,):
11307
    self.success = success
11308
    self.scex = scex
11309
 
11310
  def read(self, iprot):
11311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11313
      return
11314
    iprot.readStructBegin()
11315
    while True:
11316
      (fname, ftype, fid) = iprot.readFieldBegin()
11317
      if ftype == TType.STOP:
11318
        break
11319
      if fid == 0:
11320
        if ftype == TType.BOOL:
11321
          self.success = iprot.readBool();
11322
        else:
11323
          iprot.skip(ftype)
11324
      elif fid == 1:
11325
        if ftype == TType.STRUCT:
11326
          self.scex = ShoppingCartException()
11327
          self.scex.read(iprot)
11328
        else:
11329
          iprot.skip(ftype)
11330
      else:
11331
        iprot.skip(ftype)
11332
      iprot.readFieldEnd()
11333
    iprot.readStructEnd()
11334
 
11335
  def write(self, oprot):
11336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11338
      return
690 chandransh 11339
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11340
    if self.success is not None:
575 chandransh 11341
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11342
      oprot.writeBool(self.success)
11343
      oprot.writeFieldEnd()
3431 rajveer 11344
    if self.scex is not None:
575 chandransh 11345
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11346
      self.scex.write(oprot)
11347
      oprot.writeFieldEnd()
11348
    oprot.writeFieldStop()
11349
    oprot.writeStructEnd()
11350
 
3431 rajveer 11351
  def validate(self):
11352
    return
11353
 
11354
 
575 chandransh 11355
  def __repr__(self):
11356
    L = ['%s=%r' % (key, value)
11357
      for key, value in self.__dict__.iteritems()]
11358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11359
 
11360
  def __eq__(self, other):
11361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11362
 
11363
  def __ne__(self, other):
11364
    return not (self == other)
11365
 
690 chandransh 11366
class resetCart_args:
559 chandransh 11367
  """
11368
  Attributes:
690 chandransh 11369
   - cartId
11370
   - items
559 chandransh 11371
  """
11372
 
11373
  thrift_spec = (
11374
    None, # 0
690 chandransh 11375
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11376
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11377
  )
11378
 
690 chandransh 11379
  def __init__(self, cartId=None, items=None,):
11380
    self.cartId = cartId
11381
    self.items = items
559 chandransh 11382
 
11383
  def read(self, iprot):
11384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11386
      return
11387
    iprot.readStructBegin()
11388
    while True:
11389
      (fname, ftype, fid) = iprot.readFieldBegin()
11390
      if ftype == TType.STOP:
11391
        break
11392
      if fid == 1:
11393
        if ftype == TType.I64:
690 chandransh 11394
          self.cartId = iprot.readI64();
559 chandransh 11395
        else:
11396
          iprot.skip(ftype)
11397
      elif fid == 2:
690 chandransh 11398
        if ftype == TType.MAP:
11399
          self.items = {}
5326 rajveer 11400
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11401
          for _i132 in xrange(_size128):
11402
            _key133 = iprot.readI64();
11403
            _val134 = iprot.readDouble();
11404
            self.items[_key133] = _val134
690 chandransh 11405
          iprot.readMapEnd()
559 chandransh 11406
        else:
11407
          iprot.skip(ftype)
11408
      else:
11409
        iprot.skip(ftype)
11410
      iprot.readFieldEnd()
11411
    iprot.readStructEnd()
11412
 
11413
  def write(self, oprot):
11414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11416
      return
690 chandransh 11417
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11418
    if self.cartId is not None:
690 chandransh 11419
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11420
      oprot.writeI64(self.cartId)
94 ashish 11421
      oprot.writeFieldEnd()
3431 rajveer 11422
    if self.items is not None:
690 chandransh 11423
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11424
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11425
      for kiter135,viter136 in self.items.items():
11426
        oprot.writeI64(kiter135)
11427
        oprot.writeDouble(viter136)
690 chandransh 11428
      oprot.writeMapEnd()
559 chandransh 11429
      oprot.writeFieldEnd()
94 ashish 11430
    oprot.writeFieldStop()
11431
    oprot.writeStructEnd()
11432
 
3431 rajveer 11433
  def validate(self):
11434
    return
11435
 
11436
 
94 ashish 11437
  def __repr__(self):
11438
    L = ['%s=%r' % (key, value)
11439
      for key, value in self.__dict__.iteritems()]
11440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11441
 
11442
  def __eq__(self, other):
11443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11444
 
11445
  def __ne__(self, other):
11446
    return not (self == other)
11447
 
690 chandransh 11448
class resetCart_result:
11449
  """
11450
  Attributes:
11451
   - success
11452
   - scex
11453
  """
559 chandransh 11454
 
11455
  thrift_spec = (
690 chandransh 11456
    (0, TType.BOOL, 'success', None, None, ), # 0
11457
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11458
  )
11459
 
690 chandransh 11460
  def __init__(self, success=None, scex=None,):
11461
    self.success = success
11462
    self.scex = scex
11463
 
559 chandransh 11464
  def read(self, iprot):
11465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11467
      return
11468
    iprot.readStructBegin()
11469
    while True:
11470
      (fname, ftype, fid) = iprot.readFieldBegin()
11471
      if ftype == TType.STOP:
11472
        break
690 chandransh 11473
      if fid == 0:
11474
        if ftype == TType.BOOL:
11475
          self.success = iprot.readBool();
11476
        else:
11477
          iprot.skip(ftype)
11478
      elif fid == 1:
11479
        if ftype == TType.STRUCT:
11480
          self.scex = ShoppingCartException()
11481
          self.scex.read(iprot)
11482
        else:
11483
          iprot.skip(ftype)
559 chandransh 11484
      else:
11485
        iprot.skip(ftype)
11486
      iprot.readFieldEnd()
11487
    iprot.readStructEnd()
11488
 
11489
  def write(self, oprot):
11490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11492
      return
690 chandransh 11493
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11494
    if self.success is not None:
690 chandransh 11495
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11496
      oprot.writeBool(self.success)
11497
      oprot.writeFieldEnd()
3431 rajveer 11498
    if self.scex is not None:
690 chandransh 11499
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11500
      self.scex.write(oprot)
11501
      oprot.writeFieldEnd()
559 chandransh 11502
    oprot.writeFieldStop()
11503
    oprot.writeStructEnd()
11504
 
3431 rajveer 11505
  def validate(self):
11506
    return
11507
 
11508
 
559 chandransh 11509
  def __repr__(self):
11510
    L = ['%s=%r' % (key, value)
11511
      for key, value in self.__dict__.iteritems()]
11512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11513
 
11514
  def __eq__(self, other):
11515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11516
 
11517
  def __ne__(self, other):
11518
    return not (self == other)
11519
 
2981 rajveer 11520
class getUserCount_args:
94 ashish 11521
  """
11522
  Attributes:
2981 rajveer 11523
   - userType
559 chandransh 11524
  """
11525
 
11526
  thrift_spec = (
11527
    None, # 0
2981 rajveer 11528
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11529
  )
11530
 
2981 rajveer 11531
  def __init__(self, userType=None,):
11532
    self.userType = userType
559 chandransh 11533
 
11534
  def read(self, iprot):
11535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11537
      return
11538
    iprot.readStructBegin()
11539
    while True:
11540
      (fname, ftype, fid) = iprot.readFieldBegin()
11541
      if ftype == TType.STOP:
11542
        break
11543
      if fid == 1:
2981 rajveer 11544
        if ftype == TType.I32:
11545
          self.userType = iprot.readI32();
559 chandransh 11546
        else:
11547
          iprot.skip(ftype)
11548
      else:
11549
        iprot.skip(ftype)
11550
      iprot.readFieldEnd()
11551
    iprot.readStructEnd()
11552
 
11553
  def write(self, oprot):
11554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11556
      return
2981 rajveer 11557
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11558
    if self.userType is not None:
2981 rajveer 11559
      oprot.writeFieldBegin('userType', TType.I32, 1)
11560
      oprot.writeI32(self.userType)
559 chandransh 11561
      oprot.writeFieldEnd()
11562
    oprot.writeFieldStop()
11563
    oprot.writeStructEnd()
11564
 
3431 rajveer 11565
  def validate(self):
11566
    return
11567
 
11568
 
559 chandransh 11569
  def __repr__(self):
11570
    L = ['%s=%r' % (key, value)
11571
      for key, value in self.__dict__.iteritems()]
11572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11573
 
11574
  def __eq__(self, other):
11575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11576
 
11577
  def __ne__(self, other):
11578
    return not (self == other)
11579
 
2981 rajveer 11580
class getUserCount_result:
94 ashish 11581
  """
11582
  Attributes:
11583
   - success
11584
  """
11585
 
11586
  thrift_spec = (
2981 rajveer 11587
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11588
  )
11589
 
2981 rajveer 11590
  def __init__(self, success=None,):
94 ashish 11591
    self.success = success
11592
 
11593
  def read(self, iprot):
11594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11596
      return
11597
    iprot.readStructBegin()
11598
    while True:
11599
      (fname, ftype, fid) = iprot.readFieldBegin()
11600
      if ftype == TType.STOP:
11601
        break
11602
      if fid == 0:
2981 rajveer 11603
        if ftype == TType.I64:
11604
          self.success = iprot.readI64();
94 ashish 11605
        else:
11606
          iprot.skip(ftype)
11607
      else:
11608
        iprot.skip(ftype)
11609
      iprot.readFieldEnd()
11610
    iprot.readStructEnd()
11611
 
11612
  def write(self, oprot):
11613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11615
      return
2981 rajveer 11616
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11617
    if self.success is not None:
2981 rajveer 11618
      oprot.writeFieldBegin('success', TType.I64, 0)
11619
      oprot.writeI64(self.success)
94 ashish 11620
      oprot.writeFieldEnd()
11621
    oprot.writeFieldStop()
11622
    oprot.writeStructEnd()
11623
 
3431 rajveer 11624
  def validate(self):
11625
    return
11626
 
11627
 
94 ashish 11628
  def __repr__(self):
11629
    L = ['%s=%r' % (key, value)
11630
      for key, value in self.__dict__.iteritems()]
11631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11632
 
11633
  def __eq__(self, other):
11634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11635
 
11636
  def __ne__(self, other):
11637
    return not (self == other)
11638
 
2981 rajveer 11639
class getAllUsers_args:
94 ashish 11640
  """
11641
  Attributes:
2981 rajveer 11642
   - userType
11643
   - startDate
11644
   - endDate
94 ashish 11645
  """
11646
 
11647
  thrift_spec = (
11648
    None, # 0
2981 rajveer 11649
    (1, TType.I32, 'userType', None, None, ), # 1
11650
    (2, TType.I64, 'startDate', None, None, ), # 2
11651
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11652
  )
11653
 
2981 rajveer 11654
  def __init__(self, userType=None, startDate=None, endDate=None,):
11655
    self.userType = userType
11656
    self.startDate = startDate
11657
    self.endDate = endDate
94 ashish 11658
 
11659
  def read(self, iprot):
11660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11662
      return
11663
    iprot.readStructBegin()
11664
    while True:
11665
      (fname, ftype, fid) = iprot.readFieldBegin()
11666
      if ftype == TType.STOP:
11667
        break
11668
      if fid == 1:
2981 rajveer 11669
        if ftype == TType.I32:
11670
          self.userType = iprot.readI32();
94 ashish 11671
        else:
11672
          iprot.skip(ftype)
11673
      elif fid == 2:
559 chandransh 11674
        if ftype == TType.I64:
2981 rajveer 11675
          self.startDate = iprot.readI64();
94 ashish 11676
        else:
11677
          iprot.skip(ftype)
2981 rajveer 11678
      elif fid == 3:
11679
        if ftype == TType.I64:
11680
          self.endDate = iprot.readI64();
11681
        else:
11682
          iprot.skip(ftype)
94 ashish 11683
      else:
11684
        iprot.skip(ftype)
11685
      iprot.readFieldEnd()
11686
    iprot.readStructEnd()
11687
 
11688
  def write(self, oprot):
11689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11691
      return
2981 rajveer 11692
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11693
    if self.userType is not None:
2981 rajveer 11694
      oprot.writeFieldBegin('userType', TType.I32, 1)
11695
      oprot.writeI32(self.userType)
94 ashish 11696
      oprot.writeFieldEnd()
3431 rajveer 11697
    if self.startDate is not None:
2981 rajveer 11698
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11699
      oprot.writeI64(self.startDate)
94 ashish 11700
      oprot.writeFieldEnd()
3431 rajveer 11701
    if self.endDate is not None:
2981 rajveer 11702
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11703
      oprot.writeI64(self.endDate)
11704
      oprot.writeFieldEnd()
94 ashish 11705
    oprot.writeFieldStop()
11706
    oprot.writeStructEnd()
11707
 
3431 rajveer 11708
  def validate(self):
11709
    return
11710
 
11711
 
94 ashish 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
 
2981 rajveer 11723
class getAllUsers_result:
94 ashish 11724
  """
11725
  Attributes:
11726
   - success
11727
  """
11728
 
11729
  thrift_spec = (
2981 rajveer 11730
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11731
  )
11732
 
2981 rajveer 11733
  def __init__(self, success=None,):
94 ashish 11734
    self.success = success
11735
 
11736
  def read(self, iprot):
11737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11739
      return
11740
    iprot.readStructBegin()
11741
    while True:
11742
      (fname, ftype, fid) = iprot.readFieldBegin()
11743
      if ftype == TType.STOP:
11744
        break
11745
      if fid == 0:
2981 rajveer 11746
        if ftype == TType.LIST:
11747
          self.success = []
5326 rajveer 11748
          (_etype140, _size137) = iprot.readListBegin()
11749
          for _i141 in xrange(_size137):
11750
            _elem142 = User()
11751
            _elem142.read(iprot)
11752
            self.success.append(_elem142)
2981 rajveer 11753
          iprot.readListEnd()
94 ashish 11754
        else:
11755
          iprot.skip(ftype)
11756
      else:
11757
        iprot.skip(ftype)
11758
      iprot.readFieldEnd()
11759
    iprot.readStructEnd()
11760
 
11761
  def write(self, oprot):
11762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11764
      return
2981 rajveer 11765
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11766
    if self.success is not None:
2981 rajveer 11767
      oprot.writeFieldBegin('success', TType.LIST, 0)
11768
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 11769
      for iter143 in self.success:
11770
        iter143.write(oprot)
2981 rajveer 11771
      oprot.writeListEnd()
94 ashish 11772
      oprot.writeFieldEnd()
11773
    oprot.writeFieldStop()
11774
    oprot.writeStructEnd()
11775
 
3431 rajveer 11776
  def validate(self):
11777
    return
11778
 
11779
 
94 ashish 11780
  def __repr__(self):
11781
    L = ['%s=%r' % (key, value)
11782
      for key, value in self.__dict__.iteritems()]
11783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11784
 
11785
  def __eq__(self, other):
11786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11787
 
11788
  def __ne__(self, other):
11789
    return not (self == other)
11790
 
2981 rajveer 11791
class putUserNote_args:
130 ashish 11792
  """
11793
  Attributes:
2981 rajveer 11794
   - user_id
11795
   - entity_id
11796
   - slide
11797
   - note
130 ashish 11798
  """
94 ashish 11799
 
130 ashish 11800
  thrift_spec = (
11801
    None, # 0
2981 rajveer 11802
    (1, TType.I64, 'user_id', None, None, ), # 1
11803
    (2, TType.I64, 'entity_id', None, None, ), # 2
11804
    (3, TType.STRING, 'slide', None, None, ), # 3
11805
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 11806
  )
11807
 
2981 rajveer 11808
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
11809
    self.user_id = user_id
11810
    self.entity_id = entity_id
11811
    self.slide = slide
11812
    self.note = note
130 ashish 11813
 
11814
  def read(self, iprot):
11815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11817
      return
11818
    iprot.readStructBegin()
11819
    while True:
11820
      (fname, ftype, fid) = iprot.readFieldBegin()
11821
      if ftype == TType.STOP:
11822
        break
11823
      if fid == 1:
11824
        if ftype == TType.I64:
2981 rajveer 11825
          self.user_id = iprot.readI64();
130 ashish 11826
        else:
11827
          iprot.skip(ftype)
559 chandransh 11828
      elif fid == 2:
11829
        if ftype == TType.I64:
2981 rajveer 11830
          self.entity_id = iprot.readI64();
559 chandransh 11831
        else:
11832
          iprot.skip(ftype)
2981 rajveer 11833
      elif fid == 3:
11834
        if ftype == TType.STRING:
11835
          self.slide = iprot.readString();
11836
        else:
11837
          iprot.skip(ftype)
11838
      elif fid == 4:
11839
        if ftype == TType.STRING:
11840
          self.note = iprot.readString();
11841
        else:
11842
          iprot.skip(ftype)
130 ashish 11843
      else:
11844
        iprot.skip(ftype)
11845
      iprot.readFieldEnd()
11846
    iprot.readStructEnd()
11847
 
11848
  def write(self, oprot):
11849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11851
      return
2981 rajveer 11852
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 11853
    if self.user_id is not None:
2981 rajveer 11854
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11855
      oprot.writeI64(self.user_id)
130 ashish 11856
      oprot.writeFieldEnd()
3431 rajveer 11857
    if self.entity_id is not None:
2981 rajveer 11858
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11859
      oprot.writeI64(self.entity_id)
559 chandransh 11860
      oprot.writeFieldEnd()
3431 rajveer 11861
    if self.slide is not None:
2981 rajveer 11862
      oprot.writeFieldBegin('slide', TType.STRING, 3)
11863
      oprot.writeString(self.slide)
11864
      oprot.writeFieldEnd()
3431 rajveer 11865
    if self.note is not None:
2981 rajveer 11866
      oprot.writeFieldBegin('note', TType.STRING, 4)
11867
      oprot.writeString(self.note)
11868
      oprot.writeFieldEnd()
130 ashish 11869
    oprot.writeFieldStop()
11870
    oprot.writeStructEnd()
11871
 
3431 rajveer 11872
  def validate(self):
11873
    return
11874
 
11875
 
130 ashish 11876
  def __repr__(self):
11877
    L = ['%s=%r' % (key, value)
11878
      for key, value in self.__dict__.iteritems()]
11879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11880
 
11881
  def __eq__(self, other):
11882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11883
 
11884
  def __ne__(self, other):
11885
    return not (self == other)
11886
 
2981 rajveer 11887
class putUserNote_result:
559 chandransh 11888
 
11889
  thrift_spec = (
11890
  )
11891
 
11892
  def read(self, iprot):
11893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11895
      return
11896
    iprot.readStructBegin()
11897
    while True:
11898
      (fname, ftype, fid) = iprot.readFieldBegin()
11899
      if ftype == TType.STOP:
11900
        break
11901
      else:
11902
        iprot.skip(ftype)
11903
      iprot.readFieldEnd()
11904
    iprot.readStructEnd()
11905
 
11906
  def write(self, oprot):
11907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11909
      return
2981 rajveer 11910
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 11911
    oprot.writeFieldStop()
11912
    oprot.writeStructEnd()
11913
 
3431 rajveer 11914
  def validate(self):
11915
    return
11916
 
11917
 
559 chandransh 11918
  def __repr__(self):
11919
    L = ['%s=%r' % (key, value)
11920
      for key, value in self.__dict__.iteritems()]
11921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11922
 
11923
  def __eq__(self, other):
11924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11925
 
11926
  def __ne__(self, other):
11927
    return not (self == other)
11928
 
2981 rajveer 11929
class getUserNotes_args:
559 chandransh 11930
  """
11931
  Attributes:
2981 rajveer 11932
   - user_id
11933
   - entity_id
559 chandransh 11934
  """
11935
 
11936
  thrift_spec = (
11937
    None, # 0
2981 rajveer 11938
    (1, TType.I64, 'user_id', None, None, ), # 1
11939
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 11940
  )
11941
 
2981 rajveer 11942
  def __init__(self, user_id=None, entity_id=None,):
11943
    self.user_id = user_id
11944
    self.entity_id = entity_id
559 chandransh 11945
 
11946
  def read(self, iprot):
11947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11949
      return
11950
    iprot.readStructBegin()
11951
    while True:
11952
      (fname, ftype, fid) = iprot.readFieldBegin()
11953
      if ftype == TType.STOP:
11954
        break
11955
      if fid == 1:
11956
        if ftype == TType.I64:
2981 rajveer 11957
          self.user_id = iprot.readI64();
559 chandransh 11958
        else:
11959
          iprot.skip(ftype)
11960
      elif fid == 2:
11961
        if ftype == TType.I64:
2981 rajveer 11962
          self.entity_id = iprot.readI64();
559 chandransh 11963
        else:
11964
          iprot.skip(ftype)
11965
      else:
11966
        iprot.skip(ftype)
11967
      iprot.readFieldEnd()
11968
    iprot.readStructEnd()
11969
 
11970
  def write(self, oprot):
11971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11973
      return
2981 rajveer 11974
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 11975
    if self.user_id is not None:
2981 rajveer 11976
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11977
      oprot.writeI64(self.user_id)
559 chandransh 11978
      oprot.writeFieldEnd()
3431 rajveer 11979
    if self.entity_id is not None:
2981 rajveer 11980
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11981
      oprot.writeI64(self.entity_id)
559 chandransh 11982
      oprot.writeFieldEnd()
11983
    oprot.writeFieldStop()
11984
    oprot.writeStructEnd()
11985
 
3431 rajveer 11986
  def validate(self):
11987
    return
11988
 
11989
 
559 chandransh 11990
  def __repr__(self):
11991
    L = ['%s=%r' % (key, value)
11992
      for key, value in self.__dict__.iteritems()]
11993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11994
 
11995
  def __eq__(self, other):
11996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11997
 
11998
  def __ne__(self, other):
11999
    return not (self == other)
12000
 
2981 rajveer 12001
class getUserNotes_result:
12002
  """
12003
  Attributes:
12004
   - success
12005
  """
559 chandransh 12006
 
12007
  thrift_spec = (
2981 rajveer 12008
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12009
  )
12010
 
2981 rajveer 12011
  def __init__(self, success=None,):
12012
    self.success = success
12013
 
559 chandransh 12014
  def read(self, iprot):
12015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12017
      return
12018
    iprot.readStructBegin()
12019
    while True:
12020
      (fname, ftype, fid) = iprot.readFieldBegin()
12021
      if ftype == TType.STOP:
12022
        break
2981 rajveer 12023
      if fid == 0:
12024
        if ftype == TType.LIST:
12025
          self.success = []
5326 rajveer 12026
          (_etype147, _size144) = iprot.readListBegin()
12027
          for _i148 in xrange(_size144):
12028
            _elem149 = UserNote()
12029
            _elem149.read(iprot)
12030
            self.success.append(_elem149)
2981 rajveer 12031
          iprot.readListEnd()
12032
        else:
12033
          iprot.skip(ftype)
559 chandransh 12034
      else:
12035
        iprot.skip(ftype)
12036
      iprot.readFieldEnd()
12037
    iprot.readStructEnd()
12038
 
12039
  def write(self, oprot):
12040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12042
      return
2981 rajveer 12043
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12044
    if self.success is not None:
2981 rajveer 12045
      oprot.writeFieldBegin('success', TType.LIST, 0)
12046
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12047
      for iter150 in self.success:
12048
        iter150.write(oprot)
2981 rajveer 12049
      oprot.writeListEnd()
12050
      oprot.writeFieldEnd()
559 chandransh 12051
    oprot.writeFieldStop()
12052
    oprot.writeStructEnd()
12053
 
3431 rajveer 12054
  def validate(self):
12055
    return
12056
 
12057
 
559 chandransh 12058
  def __repr__(self):
12059
    L = ['%s=%r' % (key, value)
12060
      for key, value in self.__dict__.iteritems()]
12061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12062
 
12063
  def __eq__(self, other):
12064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12065
 
12066
  def __ne__(self, other):
12067
    return not (self == other)
12068
 
2981 rajveer 12069
class getMyResearchItems_args:
559 chandransh 12070
  """
12071
  Attributes:
772 rajveer 12072
   - userId
559 chandransh 12073
  """
12074
 
12075
  thrift_spec = (
12076
    None, # 0
772 rajveer 12077
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12078
  )
12079
 
772 rajveer 12080
  def __init__(self, userId=None,):
12081
    self.userId = userId
559 chandransh 12082
 
12083
  def read(self, iprot):
12084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12086
      return
12087
    iprot.readStructBegin()
12088
    while True:
12089
      (fname, ftype, fid) = iprot.readFieldBegin()
12090
      if ftype == TType.STOP:
12091
        break
12092
      if fid == 1:
12093
        if ftype == TType.I64:
772 rajveer 12094
          self.userId = iprot.readI64();
559 chandransh 12095
        else:
12096
          iprot.skip(ftype)
12097
      else:
12098
        iprot.skip(ftype)
12099
      iprot.readFieldEnd()
12100
    iprot.readStructEnd()
12101
 
12102
  def write(self, oprot):
12103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12105
      return
2981 rajveer 12106
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12107
    if self.userId is not None:
772 rajveer 12108
      oprot.writeFieldBegin('userId', TType.I64, 1)
12109
      oprot.writeI64(self.userId)
559 chandransh 12110
      oprot.writeFieldEnd()
12111
    oprot.writeFieldStop()
12112
    oprot.writeStructEnd()
12113
 
3431 rajveer 12114
  def validate(self):
12115
    return
12116
 
12117
 
559 chandransh 12118
  def __repr__(self):
12119
    L = ['%s=%r' % (key, value)
12120
      for key, value in self.__dict__.iteritems()]
12121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12122
 
12123
  def __eq__(self, other):
12124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12125
 
12126
  def __ne__(self, other):
12127
    return not (self == other)
12128
 
2981 rajveer 12129
class getMyResearchItems_result:
559 chandransh 12130
  """
12131
  Attributes:
130 ashish 12132
   - success
559 chandransh 12133
   - scx
130 ashish 12134
  """
12135
 
12136
  thrift_spec = (
2981 rajveer 12137
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12138
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12139
  )
12140
 
559 chandransh 12141
  def __init__(self, success=None, scx=None,):
130 ashish 12142
    self.success = success
559 chandransh 12143
    self.scx = scx
130 ashish 12144
 
12145
  def read(self, iprot):
12146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12148
      return
12149
    iprot.readStructBegin()
12150
    while True:
12151
      (fname, ftype, fid) = iprot.readFieldBegin()
12152
      if ftype == TType.STOP:
12153
        break
12154
      if fid == 0:
2981 rajveer 12155
        if ftype == TType.LIST:
12156
          self.success = []
5326 rajveer 12157
          (_etype154, _size151) = iprot.readListBegin()
12158
          for _i155 in xrange(_size151):
12159
            _elem156 = iprot.readI64();
12160
            self.success.append(_elem156)
2981 rajveer 12161
          iprot.readListEnd()
130 ashish 12162
        else:
12163
          iprot.skip(ftype)
12164
      elif fid == 1:
12165
        if ftype == TType.STRUCT:
559 chandransh 12166
          self.scx = WidgetException()
12167
          self.scx.read(iprot)
130 ashish 12168
        else:
12169
          iprot.skip(ftype)
12170
      else:
12171
        iprot.skip(ftype)
12172
      iprot.readFieldEnd()
12173
    iprot.readStructEnd()
12174
 
12175
  def write(self, oprot):
12176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12178
      return
2981 rajveer 12179
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12180
    if self.success is not None:
2981 rajveer 12181
      oprot.writeFieldBegin('success', TType.LIST, 0)
12182
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12183
      for iter157 in self.success:
12184
        oprot.writeI64(iter157)
2981 rajveer 12185
      oprot.writeListEnd()
130 ashish 12186
      oprot.writeFieldEnd()
3431 rajveer 12187
    if self.scx is not None:
559 chandransh 12188
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12189
      self.scx.write(oprot)
130 ashish 12190
      oprot.writeFieldEnd()
12191
    oprot.writeFieldStop()
12192
    oprot.writeStructEnd()
12193
 
3431 rajveer 12194
  def validate(self):
12195
    return
12196
 
12197
 
130 ashish 12198
  def __repr__(self):
12199
    L = ['%s=%r' % (key, value)
12200
      for key, value in self.__dict__.iteritems()]
12201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12202
 
12203
  def __eq__(self, other):
12204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12205
 
12206
  def __ne__(self, other):
12207
    return not (self == other)
12208
 
2981 rajveer 12209
class updateMyResearch_args:
130 ashish 12210
  """
12211
  Attributes:
2981 rajveer 12212
   - userId
12213
   - itemId
130 ashish 12214
  """
12215
 
12216
  thrift_spec = (
12217
    None, # 0
2981 rajveer 12218
    (1, TType.I64, 'userId', None, None, ), # 1
12219
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12220
  )
12221
 
2981 rajveer 12222
  def __init__(self, userId=None, itemId=None,):
12223
    self.userId = userId
12224
    self.itemId = itemId
130 ashish 12225
 
12226
  def read(self, iprot):
12227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12229
      return
12230
    iprot.readStructBegin()
12231
    while True:
12232
      (fname, ftype, fid) = iprot.readFieldBegin()
12233
      if ftype == TType.STOP:
12234
        break
12235
      if fid == 1:
559 chandransh 12236
        if ftype == TType.I64:
2981 rajveer 12237
          self.userId = iprot.readI64();
130 ashish 12238
        else:
12239
          iprot.skip(ftype)
12240
      elif fid == 2:
559 chandransh 12241
        if ftype == TType.I64:
2981 rajveer 12242
          self.itemId = iprot.readI64();
559 chandransh 12243
        else:
12244
          iprot.skip(ftype)
130 ashish 12245
      else:
12246
        iprot.skip(ftype)
12247
      iprot.readFieldEnd()
12248
    iprot.readStructEnd()
12249
 
12250
  def write(self, oprot):
12251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12253
      return
2981 rajveer 12254
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12255
    if self.userId is not None:
2981 rajveer 12256
      oprot.writeFieldBegin('userId', TType.I64, 1)
12257
      oprot.writeI64(self.userId)
130 ashish 12258
      oprot.writeFieldEnd()
3431 rajveer 12259
    if self.itemId is not None:
2981 rajveer 12260
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12261
      oprot.writeI64(self.itemId)
130 ashish 12262
      oprot.writeFieldEnd()
12263
    oprot.writeFieldStop()
12264
    oprot.writeStructEnd()
12265
 
3431 rajveer 12266
  def validate(self):
12267
    return
12268
 
12269
 
130 ashish 12270
  def __repr__(self):
12271
    L = ['%s=%r' % (key, value)
12272
      for key, value in self.__dict__.iteritems()]
12273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12274
 
12275
  def __eq__(self, other):
12276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12277
 
12278
  def __ne__(self, other):
12279
    return not (self == other)
12280
 
2981 rajveer 12281
class updateMyResearch_result:
12282
  """
12283
  Attributes:
12284
   - success
12285
   - scx
12286
  """
559 chandransh 12287
 
12288
  thrift_spec = (
2981 rajveer 12289
    (0, TType.BOOL, 'success', None, None, ), # 0
12290
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12291
  )
12292
 
2981 rajveer 12293
  def __init__(self, success=None, scx=None,):
12294
    self.success = success
12295
    self.scx = scx
12296
 
559 chandransh 12297
  def read(self, iprot):
12298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12300
      return
12301
    iprot.readStructBegin()
12302
    while True:
12303
      (fname, ftype, fid) = iprot.readFieldBegin()
12304
      if ftype == TType.STOP:
12305
        break
2981 rajveer 12306
      if fid == 0:
12307
        if ftype == TType.BOOL:
12308
          self.success = iprot.readBool();
12309
        else:
12310
          iprot.skip(ftype)
12311
      elif fid == 1:
12312
        if ftype == TType.STRUCT:
12313
          self.scx = WidgetException()
12314
          self.scx.read(iprot)
12315
        else:
12316
          iprot.skip(ftype)
559 chandransh 12317
      else:
12318
        iprot.skip(ftype)
12319
      iprot.readFieldEnd()
12320
    iprot.readStructEnd()
12321
 
12322
  def write(self, oprot):
12323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12325
      return
2981 rajveer 12326
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12327
    if self.success is not None:
2981 rajveer 12328
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12329
      oprot.writeBool(self.success)
12330
      oprot.writeFieldEnd()
3431 rajveer 12331
    if self.scx is not None:
2981 rajveer 12332
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12333
      self.scx.write(oprot)
12334
      oprot.writeFieldEnd()
559 chandransh 12335
    oprot.writeFieldStop()
12336
    oprot.writeStructEnd()
12337
 
3431 rajveer 12338
  def validate(self):
12339
    return
12340
 
12341
 
559 chandransh 12342
  def __repr__(self):
12343
    L = ['%s=%r' % (key, value)
12344
      for key, value in self.__dict__.iteritems()]
12345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12346
 
12347
  def __eq__(self, other):
12348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12349
 
12350
  def __ne__(self, other):
12351
    return not (self == other)
12352
 
2981 rajveer 12353
class deleteItemFromMyResearch_args:
1596 ankur.sing 12354
  """
12355
  Attributes:
2981 rajveer 12356
   - userId
12357
   - itemId
1596 ankur.sing 12358
  """
559 chandransh 12359
 
1596 ankur.sing 12360
  thrift_spec = (
12361
    None, # 0
2981 rajveer 12362
    (1, TType.I64, 'userId', None, None, ), # 1
12363
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12364
  )
12365
 
2981 rajveer 12366
  def __init__(self, userId=None, itemId=None,):
12367
    self.userId = userId
12368
    self.itemId = itemId
1596 ankur.sing 12369
 
12370
  def read(self, iprot):
12371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12373
      return
12374
    iprot.readStructBegin()
12375
    while True:
12376
      (fname, ftype, fid) = iprot.readFieldBegin()
12377
      if ftype == TType.STOP:
12378
        break
12379
      if fid == 1:
2981 rajveer 12380
        if ftype == TType.I64:
12381
          self.userId = iprot.readI64();
1596 ankur.sing 12382
        else:
12383
          iprot.skip(ftype)
2981 rajveer 12384
      elif fid == 2:
12385
        if ftype == TType.I64:
12386
          self.itemId = iprot.readI64();
12387
        else:
12388
          iprot.skip(ftype)
1596 ankur.sing 12389
      else:
12390
        iprot.skip(ftype)
12391
      iprot.readFieldEnd()
12392
    iprot.readStructEnd()
12393
 
12394
  def write(self, oprot):
12395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12397
      return
2981 rajveer 12398
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12399
    if self.userId is not None:
2981 rajveer 12400
      oprot.writeFieldBegin('userId', TType.I64, 1)
12401
      oprot.writeI64(self.userId)
1596 ankur.sing 12402
      oprot.writeFieldEnd()
3431 rajveer 12403
    if self.itemId is not None:
2981 rajveer 12404
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12405
      oprot.writeI64(self.itemId)
12406
      oprot.writeFieldEnd()
1596 ankur.sing 12407
    oprot.writeFieldStop()
12408
    oprot.writeStructEnd()
12409
 
3431 rajveer 12410
  def validate(self):
12411
    return
12412
 
12413
 
1596 ankur.sing 12414
  def __repr__(self):
12415
    L = ['%s=%r' % (key, value)
12416
      for key, value in self.__dict__.iteritems()]
12417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12418
 
12419
  def __eq__(self, other):
12420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12421
 
12422
  def __ne__(self, other):
12423
    return not (self == other)
12424
 
2981 rajveer 12425
class deleteItemFromMyResearch_result:
1596 ankur.sing 12426
  """
12427
  Attributes:
2981 rajveer 12428
   - scx
1596 ankur.sing 12429
  """
12430
 
12431
  thrift_spec = (
2981 rajveer 12432
    None, # 0
12433
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12434
  )
12435
 
2981 rajveer 12436
  def __init__(self, scx=None,):
12437
    self.scx = scx
1596 ankur.sing 12438
 
12439
  def read(self, iprot):
12440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12442
      return
12443
    iprot.readStructBegin()
12444
    while True:
12445
      (fname, ftype, fid) = iprot.readFieldBegin()
12446
      if ftype == TType.STOP:
12447
        break
2981 rajveer 12448
      if fid == 1:
12449
        if ftype == TType.STRUCT:
12450
          self.scx = WidgetException()
12451
          self.scx.read(iprot)
1596 ankur.sing 12452
        else:
12453
          iprot.skip(ftype)
12454
      else:
12455
        iprot.skip(ftype)
12456
      iprot.readFieldEnd()
12457
    iprot.readStructEnd()
12458
 
12459
  def write(self, oprot):
12460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12462
      return
2981 rajveer 12463
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12464
    if self.scx is not None:
2981 rajveer 12465
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12466
      self.scx.write(oprot)
1596 ankur.sing 12467
      oprot.writeFieldEnd()
12468
    oprot.writeFieldStop()
12469
    oprot.writeStructEnd()
12470
 
3431 rajveer 12471
  def validate(self):
12472
    return
12473
 
12474
 
1596 ankur.sing 12475
  def __repr__(self):
12476
    L = ['%s=%r' % (key, value)
12477
      for key, value in self.__dict__.iteritems()]
12478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12479
 
12480
  def __eq__(self, other):
12481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12482
 
12483
  def __ne__(self, other):
12484
    return not (self == other)
12485
 
2981 rajveer 12486
class getBrowseHistoryItems_args:
1673 ankur.sing 12487
  """
12488
  Attributes:
2981 rajveer 12489
   - userId
1673 ankur.sing 12490
  """
1596 ankur.sing 12491
 
1673 ankur.sing 12492
  thrift_spec = (
12493
    None, # 0
2981 rajveer 12494
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12495
  )
12496
 
2981 rajveer 12497
  def __init__(self, userId=None,):
12498
    self.userId = userId
1673 ankur.sing 12499
 
12500
  def read(self, iprot):
12501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12503
      return
12504
    iprot.readStructBegin()
12505
    while True:
12506
      (fname, ftype, fid) = iprot.readFieldBegin()
12507
      if ftype == TType.STOP:
12508
        break
12509
      if fid == 1:
1891 ankur.sing 12510
        if ftype == TType.I64:
2981 rajveer 12511
          self.userId = iprot.readI64();
1891 ankur.sing 12512
        else:
12513
          iprot.skip(ftype)
1673 ankur.sing 12514
      else:
12515
        iprot.skip(ftype)
12516
      iprot.readFieldEnd()
12517
    iprot.readStructEnd()
12518
 
12519
  def write(self, oprot):
12520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12522
      return
2981 rajveer 12523
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12524
    if self.userId is not None:
2981 rajveer 12525
      oprot.writeFieldBegin('userId', TType.I64, 1)
12526
      oprot.writeI64(self.userId)
1673 ankur.sing 12527
      oprot.writeFieldEnd()
12528
    oprot.writeFieldStop()
12529
    oprot.writeStructEnd()
12530
 
3431 rajveer 12531
  def validate(self):
12532
    return
12533
 
12534
 
1673 ankur.sing 12535
  def __repr__(self):
12536
    L = ['%s=%r' % (key, value)
12537
      for key, value in self.__dict__.iteritems()]
12538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12539
 
12540
  def __eq__(self, other):
12541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12542
 
12543
  def __ne__(self, other):
12544
    return not (self == other)
12545
 
2981 rajveer 12546
class getBrowseHistoryItems_result:
1673 ankur.sing 12547
  """
12548
  Attributes:
12549
   - success
2981 rajveer 12550
   - scx
1673 ankur.sing 12551
  """
12552
 
12553
  thrift_spec = (
2981 rajveer 12554
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12555
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12556
  )
12557
 
2981 rajveer 12558
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12559
    self.success = success
2981 rajveer 12560
    self.scx = scx
1673 ankur.sing 12561
 
12562
  def read(self, iprot):
12563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12565
      return
12566
    iprot.readStructBegin()
12567
    while True:
12568
      (fname, ftype, fid) = iprot.readFieldBegin()
12569
      if ftype == TType.STOP:
12570
        break
12571
      if fid == 0:
12572
        if ftype == TType.LIST:
12573
          self.success = []
5326 rajveer 12574
          (_etype161, _size158) = iprot.readListBegin()
12575
          for _i162 in xrange(_size158):
12576
            _elem163 = iprot.readI64();
12577
            self.success.append(_elem163)
1673 ankur.sing 12578
          iprot.readListEnd()
12579
        else:
12580
          iprot.skip(ftype)
2981 rajveer 12581
      elif fid == 1:
12582
        if ftype == TType.STRUCT:
12583
          self.scx = WidgetException()
12584
          self.scx.read(iprot)
12585
        else:
12586
          iprot.skip(ftype)
1673 ankur.sing 12587
      else:
12588
        iprot.skip(ftype)
12589
      iprot.readFieldEnd()
12590
    iprot.readStructEnd()
12591
 
12592
  def write(self, oprot):
12593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12595
      return
2981 rajveer 12596
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12597
    if self.success is not None:
1673 ankur.sing 12598
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12599
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12600
      for iter164 in self.success:
12601
        oprot.writeI64(iter164)
1673 ankur.sing 12602
      oprot.writeListEnd()
12603
      oprot.writeFieldEnd()
3431 rajveer 12604
    if self.scx is not None:
2981 rajveer 12605
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12606
      self.scx.write(oprot)
2642 varun.gupt 12607
      oprot.writeFieldEnd()
12608
    oprot.writeFieldStop()
12609
    oprot.writeStructEnd()
12610
 
3431 rajveer 12611
  def validate(self):
12612
    return
12613
 
12614
 
2642 varun.gupt 12615
  def __repr__(self):
12616
    L = ['%s=%r' % (key, value)
12617
      for key, value in self.__dict__.iteritems()]
12618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12619
 
12620
  def __eq__(self, other):
12621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12622
 
12623
  def __ne__(self, other):
12624
    return not (self == other)
12625
 
2981 rajveer 12626
class updateBrowseHistory_args:
2642 varun.gupt 12627
  """
12628
  Attributes:
2981 rajveer 12629
   - userId
12630
   - itemId
2642 varun.gupt 12631
  """
12632
 
12633
  thrift_spec = (
12634
    None, # 0
2981 rajveer 12635
    (1, TType.I64, 'userId', None, None, ), # 1
12636
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12637
  )
12638
 
2981 rajveer 12639
  def __init__(self, userId=None, itemId=None,):
12640
    self.userId = userId
12641
    self.itemId = itemId
2642 varun.gupt 12642
 
12643
  def read(self, iprot):
12644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12646
      return
12647
    iprot.readStructBegin()
12648
    while True:
12649
      (fname, ftype, fid) = iprot.readFieldBegin()
12650
      if ftype == TType.STOP:
12651
        break
12652
      if fid == 1:
12653
        if ftype == TType.I64:
2981 rajveer 12654
          self.userId = iprot.readI64();
2642 varun.gupt 12655
        else:
12656
          iprot.skip(ftype)
12657
      elif fid == 2:
12658
        if ftype == TType.I64:
2981 rajveer 12659
          self.itemId = iprot.readI64();
2642 varun.gupt 12660
        else:
12661
          iprot.skip(ftype)
12662
      else:
12663
        iprot.skip(ftype)
12664
      iprot.readFieldEnd()
12665
    iprot.readStructEnd()
12666
 
12667
  def write(self, oprot):
12668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12670
      return
2981 rajveer 12671
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12672
    if self.userId is not None:
2981 rajveer 12673
      oprot.writeFieldBegin('userId', TType.I64, 1)
12674
      oprot.writeI64(self.userId)
2642 varun.gupt 12675
      oprot.writeFieldEnd()
3431 rajveer 12676
    if self.itemId is not None:
2981 rajveer 12677
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12678
      oprot.writeI64(self.itemId)
2642 varun.gupt 12679
      oprot.writeFieldEnd()
12680
    oprot.writeFieldStop()
12681
    oprot.writeStructEnd()
12682
 
3431 rajveer 12683
  def validate(self):
12684
    return
12685
 
12686
 
2642 varun.gupt 12687
  def __repr__(self):
12688
    L = ['%s=%r' % (key, value)
12689
      for key, value in self.__dict__.iteritems()]
12690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12691
 
12692
  def __eq__(self, other):
12693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12694
 
12695
  def __ne__(self, other):
12696
    return not (self == other)
12697
 
2981 rajveer 12698
class updateBrowseHistory_result:
2642 varun.gupt 12699
 
12700
  thrift_spec = (
12701
  )
12702
 
12703
  def read(self, iprot):
12704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12706
      return
12707
    iprot.readStructBegin()
12708
    while True:
12709
      (fname, ftype, fid) = iprot.readFieldBegin()
12710
      if ftype == TType.STOP:
12711
        break
12712
      else:
12713
        iprot.skip(ftype)
12714
      iprot.readFieldEnd()
12715
    iprot.readStructEnd()
12716
 
12717
  def write(self, oprot):
12718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12720
      return
2981 rajveer 12721
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12722
    oprot.writeFieldStop()
12723
    oprot.writeStructEnd()
12724
 
3431 rajveer 12725
  def validate(self):
12726
    return
12727
 
12728
 
2642 varun.gupt 12729
  def __repr__(self):
12730
    L = ['%s=%r' % (key, value)
12731
      for key, value in self.__dict__.iteritems()]
12732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12733
 
12734
  def __eq__(self, other):
12735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12736
 
12737
  def __ne__(self, other):
12738
    return not (self == other)
12739
 
3385 varun.gupt 12740
class getCartsWithCouponCount_args:
12741
  """
12742
  Attributes:
12743
   - couponCode
12744
  """
2642 varun.gupt 12745
 
3385 varun.gupt 12746
  thrift_spec = (
12747
    None, # 0
12748
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12749
  )
12750
 
12751
  def __init__(self, couponCode=None,):
12752
    self.couponCode = couponCode
12753
 
12754
  def read(self, iprot):
12755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12757
      return
12758
    iprot.readStructBegin()
12759
    while True:
12760
      (fname, ftype, fid) = iprot.readFieldBegin()
12761
      if ftype == TType.STOP:
12762
        break
12763
      if fid == 1:
12764
        if ftype == TType.STRING:
12765
          self.couponCode = iprot.readString();
12766
        else:
12767
          iprot.skip(ftype)
12768
      else:
12769
        iprot.skip(ftype)
12770
      iprot.readFieldEnd()
12771
    iprot.readStructEnd()
12772
 
12773
  def write(self, oprot):
12774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12776
      return
12777
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12778
    if self.couponCode is not None:
3385 varun.gupt 12779
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12780
      oprot.writeString(self.couponCode)
12781
      oprot.writeFieldEnd()
12782
    oprot.writeFieldStop()
12783
    oprot.writeStructEnd()
12784
 
3431 rajveer 12785
  def validate(self):
12786
    return
12787
 
12788
 
3385 varun.gupt 12789
  def __repr__(self):
12790
    L = ['%s=%r' % (key, value)
12791
      for key, value in self.__dict__.iteritems()]
12792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12793
 
12794
  def __eq__(self, other):
12795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12796
 
12797
  def __ne__(self, other):
12798
    return not (self == other)
12799
 
12800
class getCartsWithCouponCount_result:
12801
  """
12802
  Attributes:
12803
   - success
12804
  """
12805
 
12806
  thrift_spec = (
12807
    (0, TType.I64, 'success', None, None, ), # 0
12808
  )
12809
 
12810
  def __init__(self, success=None,):
12811
    self.success = success
12812
 
12813
  def read(self, iprot):
12814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12816
      return
12817
    iprot.readStructBegin()
12818
    while True:
12819
      (fname, ftype, fid) = iprot.readFieldBegin()
12820
      if ftype == TType.STOP:
12821
        break
12822
      if fid == 0:
12823
        if ftype == TType.I64:
12824
          self.success = iprot.readI64();
12825
        else:
12826
          iprot.skip(ftype)
12827
      else:
12828
        iprot.skip(ftype)
12829
      iprot.readFieldEnd()
12830
    iprot.readStructEnd()
12831
 
12832
  def write(self, oprot):
12833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12835
      return
12836
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12837
    if self.success is not None:
3385 varun.gupt 12838
      oprot.writeFieldBegin('success', TType.I64, 0)
12839
      oprot.writeI64(self.success)
12840
      oprot.writeFieldEnd()
12841
    oprot.writeFieldStop()
12842
    oprot.writeStructEnd()
12843
 
3431 rajveer 12844
  def validate(self):
12845
    return
12846
 
12847
 
3385 varun.gupt 12848
  def __repr__(self):
12849
    L = ['%s=%r' % (key, value)
12850
      for key, value in self.__dict__.iteritems()]
12851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12852
 
12853
  def __eq__(self, other):
12854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12855
 
12856
  def __ne__(self, other):
12857
    return not (self == other)
3499 mandeep.dh 12858
 
12859
class increaseTrustLevel_args:
12860
  """
12861
  Attributes:
12862
   - userId
12863
   - trustLevelDelta
12864
  """
12865
 
12866
  thrift_spec = (
12867
    None, # 0
12868
    (1, TType.I64, 'userId', None, None, ), # 1
12869
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
12870
  )
12871
 
12872
  def __init__(self, userId=None, trustLevelDelta=None,):
12873
    self.userId = userId
12874
    self.trustLevelDelta = trustLevelDelta
12875
 
12876
  def read(self, iprot):
12877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12879
      return
12880
    iprot.readStructBegin()
12881
    while True:
12882
      (fname, ftype, fid) = iprot.readFieldBegin()
12883
      if ftype == TType.STOP:
12884
        break
12885
      if fid == 1:
12886
        if ftype == TType.I64:
12887
          self.userId = iprot.readI64();
12888
        else:
12889
          iprot.skip(ftype)
12890
      elif fid == 2:
12891
        if ftype == TType.DOUBLE:
12892
          self.trustLevelDelta = iprot.readDouble();
12893
        else:
12894
          iprot.skip(ftype)
12895
      else:
12896
        iprot.skip(ftype)
12897
      iprot.readFieldEnd()
12898
    iprot.readStructEnd()
12899
 
12900
  def write(self, oprot):
12901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12903
      return
12904
    oprot.writeStructBegin('increaseTrustLevel_args')
12905
    if self.userId is not None:
12906
      oprot.writeFieldBegin('userId', TType.I64, 1)
12907
      oprot.writeI64(self.userId)
12908
      oprot.writeFieldEnd()
12909
    if self.trustLevelDelta is not None:
12910
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
12911
      oprot.writeDouble(self.trustLevelDelta)
12912
      oprot.writeFieldEnd()
12913
    oprot.writeFieldStop()
12914
    oprot.writeStructEnd()
12915
 
12916
  def validate(self):
12917
    return
12918
 
12919
 
12920
  def __repr__(self):
12921
    L = ['%s=%r' % (key, value)
12922
      for key, value in self.__dict__.iteritems()]
12923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12924
 
12925
  def __eq__(self, other):
12926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12927
 
12928
  def __ne__(self, other):
12929
    return not (self == other)
4668 varun.gupt 12930
 
5407 amar.kumar 12931
class getTrustLevel_args:
12932
  """
12933
  Attributes:
12934
   - userId
12935
  """
12936
 
12937
  thrift_spec = (
12938
    None, # 0
12939
    (1, TType.I64, 'userId', None, None, ), # 1
12940
  )
12941
 
12942
  def __init__(self, userId=None,):
12943
    self.userId = userId
12944
 
12945
  def read(self, iprot):
12946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12948
      return
12949
    iprot.readStructBegin()
12950
    while True:
12951
      (fname, ftype, fid) = iprot.readFieldBegin()
12952
      if ftype == TType.STOP:
12953
        break
12954
      if fid == 1:
12955
        if ftype == TType.I64:
12956
          self.userId = iprot.readI64();
12957
        else:
12958
          iprot.skip(ftype)
12959
      else:
12960
        iprot.skip(ftype)
12961
      iprot.readFieldEnd()
12962
    iprot.readStructEnd()
12963
 
12964
  def write(self, oprot):
12965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12967
      return
12968
    oprot.writeStructBegin('getTrustLevel_args')
12969
    if self.userId is not None:
12970
      oprot.writeFieldBegin('userId', TType.I64, 1)
12971
      oprot.writeI64(self.userId)
12972
      oprot.writeFieldEnd()
12973
    oprot.writeFieldStop()
12974
    oprot.writeStructEnd()
12975
 
12976
  def validate(self):
12977
    return
12978
 
12979
 
12980
  def __repr__(self):
12981
    L = ['%s=%r' % (key, value)
12982
      for key, value in self.__dict__.iteritems()]
12983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12984
 
12985
  def __eq__(self, other):
12986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12987
 
12988
  def __ne__(self, other):
12989
    return not (self == other)
12990
 
12991
class getTrustLevel_result:
12992
  """
12993
  Attributes:
12994
   - success
12995
  """
12996
 
12997
  thrift_spec = (
12998
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12999
  )
13000
 
13001
  def __init__(self, success=None,):
13002
    self.success = success
13003
 
13004
  def read(self, iprot):
13005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13007
      return
13008
    iprot.readStructBegin()
13009
    while True:
13010
      (fname, ftype, fid) = iprot.readFieldBegin()
13011
      if ftype == TType.STOP:
13012
        break
13013
      if fid == 0:
13014
        if ftype == TType.DOUBLE:
13015
          self.success = iprot.readDouble();
13016
        else:
13017
          iprot.skip(ftype)
13018
      else:
13019
        iprot.skip(ftype)
13020
      iprot.readFieldEnd()
13021
    iprot.readStructEnd()
13022
 
13023
  def write(self, oprot):
13024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13026
      return
13027
    oprot.writeStructBegin('getTrustLevel_result')
13028
    if self.success is not None:
13029
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13030
      oprot.writeDouble(self.success)
13031
      oprot.writeFieldEnd()
13032
    oprot.writeFieldStop()
13033
    oprot.writeStructEnd()
13034
 
13035
  def validate(self):
13036
    return
13037
 
13038
 
13039
  def __repr__(self):
13040
    L = ['%s=%r' % (key, value)
13041
      for key, value in self.__dict__.iteritems()]
13042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13043
 
13044
  def __eq__(self, other):
13045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13046
 
13047
  def __ne__(self, other):
13048
    return not (self == other)
13049
 
4668 varun.gupt 13050
class showCODOption_args:
13051
  """
13052
  Attributes:
13053
   - cartId
13054
   - sourceId
13055
   - pincode
13056
  """
13057
 
13058
  thrift_spec = (
13059
    None, # 0
13060
    (1, TType.I64, 'cartId', None, None, ), # 1
13061
    (2, TType.I64, 'sourceId', None, None, ), # 2
13062
    (3, TType.STRING, 'pincode', None, None, ), # 3
13063
  )
13064
 
13065
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13066
    self.cartId = cartId
13067
    self.sourceId = sourceId
13068
    self.pincode = pincode
13069
 
13070
  def read(self, iprot):
13071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13073
      return
13074
    iprot.readStructBegin()
13075
    while True:
13076
      (fname, ftype, fid) = iprot.readFieldBegin()
13077
      if ftype == TType.STOP:
13078
        break
13079
      if fid == 1:
13080
        if ftype == TType.I64:
13081
          self.cartId = iprot.readI64();
13082
        else:
13083
          iprot.skip(ftype)
13084
      elif fid == 2:
13085
        if ftype == TType.I64:
13086
          self.sourceId = iprot.readI64();
13087
        else:
13088
          iprot.skip(ftype)
13089
      elif fid == 3:
13090
        if ftype == TType.STRING:
13091
          self.pincode = iprot.readString();
13092
        else:
13093
          iprot.skip(ftype)
13094
      else:
13095
        iprot.skip(ftype)
13096
      iprot.readFieldEnd()
13097
    iprot.readStructEnd()
13098
 
13099
  def write(self, oprot):
13100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13102
      return
13103
    oprot.writeStructBegin('showCODOption_args')
13104
    if self.cartId is not None:
13105
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13106
      oprot.writeI64(self.cartId)
13107
      oprot.writeFieldEnd()
13108
    if self.sourceId is not None:
13109
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13110
      oprot.writeI64(self.sourceId)
13111
      oprot.writeFieldEnd()
13112
    if self.pincode is not None:
13113
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13114
      oprot.writeString(self.pincode)
13115
      oprot.writeFieldEnd()
13116
    oprot.writeFieldStop()
13117
    oprot.writeStructEnd()
13118
 
13119
  def validate(self):
13120
    return
13121
 
13122
 
13123
  def __repr__(self):
13124
    L = ['%s=%r' % (key, value)
13125
      for key, value in self.__dict__.iteritems()]
13126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13127
 
13128
  def __eq__(self, other):
13129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13130
 
13131
  def __ne__(self, other):
13132
    return not (self == other)
13133
 
13134
class showCODOption_result:
13135
  """
13136
  Attributes:
13137
   - success
13138
  """
13139
 
13140
  thrift_spec = (
13141
    (0, TType.BOOL, 'success', None, None, ), # 0
13142
  )
13143
 
13144
  def __init__(self, success=None,):
13145
    self.success = success
13146
 
13147
  def read(self, iprot):
13148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13150
      return
13151
    iprot.readStructBegin()
13152
    while True:
13153
      (fname, ftype, fid) = iprot.readFieldBegin()
13154
      if ftype == TType.STOP:
13155
        break
13156
      if fid == 0:
13157
        if ftype == TType.BOOL:
13158
          self.success = iprot.readBool();
13159
        else:
13160
          iprot.skip(ftype)
13161
      else:
13162
        iprot.skip(ftype)
13163
      iprot.readFieldEnd()
13164
    iprot.readStructEnd()
13165
 
13166
  def write(self, oprot):
13167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13169
      return
13170
    oprot.writeStructBegin('showCODOption_result')
13171
    if self.success is not None:
13172
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13173
      oprot.writeBool(self.success)
13174
      oprot.writeFieldEnd()
13175
    oprot.writeFieldStop()
13176
    oprot.writeStructEnd()
13177
 
13178
  def validate(self):
13179
    return
13180
 
13181
 
13182
  def __repr__(self):
13183
    L = ['%s=%r' % (key, value)
13184
      for key, value in self.__dict__.iteritems()]
13185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13186
 
13187
  def __eq__(self, other):
13188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13189
 
13190
  def __ne__(self, other):
13191
    return not (self == other)