Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
5407 amar.kumar 204
  def removeUserCommunication(self, id):
205
    """
206
    Parameters:
207
     - id
208
    """
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
5553 rajveer 367
  def addStoreToCart(self, cartId, storeId):
368
    """
369
    Parameters:
370
     - cartId
371
     - storeId
372
    """
373
    pass
374
 
1976 varun.gupt 375
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
376
    """
377
    Parameters:
378
     - cartId
379
     - couponCode
380
     - totalPrice
381
     - discountedPrice
382
    """
383
    pass
384
 
385
  def removeCoupon(self, cartId):
386
    """
387
    Parameters:
388
     - cartId
389
    """
390
    pass
391
 
3554 varun.gupt 392
  def deleteDiscountsFromCart(self, cartId):
393
    """
394
    Deletes all the discounts associated with the cart
395
 
396
    Parameters:
397
     - cartId
398
    """
399
    pass
400
 
401
  def saveDiscounts(self, discounts):
402
    """
403
    Accepts a list of thrift objects of Discount type and saves them
404
 
405
    Parameters:
406
     - discounts
407
    """
408
    pass
409
 
6389 rajveer 410
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 411
    """
690 chandransh 412
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 413
 
559 chandransh 414
    Parameters:
415
     - cartId
2815 vikas 416
     - sessionSource
417
     - sessionStartTime
3858 vikas 418
     - firstSource
419
     - firstSourceTime
5326 rajveer 420
     - userId
6389 rajveer 421
     - schemeId
559 chandransh 422
    """
423
    pass
424
 
3557 rajveer 425
  def validateCart(self, cartId, sourceId):
559 chandransh 426
    """
690 chandransh 427
    Validates that:
428
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 429
    2. All of the lines in the cart are active items.
690 chandransh 430
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 431
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 432
 
559 chandransh 433
    Parameters:
434
     - cartId
3557 rajveer 435
     - sourceId
559 chandransh 436
    """
437
    pass
438
 
690 chandransh 439
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 440
    """
690 chandransh 441
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 442
 
575 chandransh 443
    Parameters:
690 chandransh 444
     - fromCartId
445
     - toCartId
446
    """
447
    pass
448
 
449
  def checkOut(self, cartId):
450
    """
451
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 452
 
690 chandransh 453
    Parameters:
575 chandransh 454
     - cartId
455
    """
456
    pass
457
 
690 chandransh 458
  def resetCart(self, cartId, items):
559 chandransh 459
    """
690 chandransh 460
    The second parameter is a map of item ids and their quantities which have been successfully processed.
461
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 462
 
559 chandransh 463
    Parameters:
690 chandransh 464
     - cartId
465
     - items
559 chandransh 466
    """
467
    pass
468
 
2981 rajveer 469
  def getUserCount(self, userType):
559 chandransh 470
    """
2981 rajveer 471
    Returns number of registered users.
472
    If userType = null, then it returns count of all users, including anonymous
473
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
474
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 475
 
559 chandransh 476
    Parameters:
2981 rajveer 477
     - userType
559 chandransh 478
    """
479
    pass
480
 
2981 rajveer 481
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 482
    """
2981 rajveer 483
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
484
    If any of startDate or endDate is -1, then that filter is ignored.
485
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 486
 
487
 
559 chandransh 488
    Parameters:
2981 rajveer 489
     - userType
490
     - startDate
491
     - endDate
559 chandransh 492
    """
493
    pass
494
 
2981 rajveer 495
  def getMyResearchItems(self, userId):
559 chandransh 496
    """
2981 rajveer 497
    Returns list of item ids in myresearch for the user
3431 rajveer 498
 
559 chandransh 499
    Parameters:
500
     - userId
501
    """
502
    pass
503
 
2981 rajveer 504
  def updateMyResearch(self, userId, itemId):
559 chandransh 505
    """
2981 rajveer 506
    add item to my research for a user
3431 rajveer 507
 
559 chandransh 508
    Parameters:
2981 rajveer 509
     - userId
510
     - itemId
559 chandransh 511
    """
512
    pass
513
 
2981 rajveer 514
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 515
    """
2981 rajveer 516
    delete item from my research for a user
3431 rajveer 517
 
1596 ankur.sing 518
    Parameters:
2981 rajveer 519
     - userId
520
     - itemId
1596 ankur.sing 521
    """
522
    pass
559 chandransh 523
 
2981 rajveer 524
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 525
    """
2981 rajveer 526
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 527
 
1673 ankur.sing 528
    Parameters:
2981 rajveer 529
     - userId
1673 ankur.sing 530
    """
531
    pass
1596 ankur.sing 532
 
2981 rajveer 533
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 534
    """
2981 rajveer 535
    add item to browse history for a user
3431 rajveer 536
 
2642 varun.gupt 537
    Parameters:
2981 rajveer 538
     - userId
539
     - itemId
2642 varun.gupt 540
    """
541
    pass
1673 ankur.sing 542
 
3385 varun.gupt 543
  def getCartsWithCouponCount(self, couponCode):
544
    """
545
    Returns count of Carts with given coupon applied
3431 rajveer 546
 
3385 varun.gupt 547
    Parameters:
548
     - couponCode
549
    """
550
    pass
2642 varun.gupt 551
 
3499 mandeep.dh 552
  def increaseTrustLevel(self, userId, trustLevelDelta):
553
    """
554
    Updates COD trust level of a user
3385 varun.gupt 555
 
3499 mandeep.dh 556
    Parameters:
557
     - userId
558
     - trustLevelDelta
559
    """
560
    pass
561
 
5407 amar.kumar 562
  def getTrustLevel(self, userId):
563
    """
564
    Get trust level of a user
565
 
566
    Parameters:
567
     - userId
568
    """
569
    pass
570
 
4668 varun.gupt 571
  def showCODOption(self, cartId, sourceId, pincode):
572
    """
573
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 574
 
4668 varun.gupt 575
    Parameters:
576
     - cartId
577
     - sourceId
578
     - pincode
579
    """
580
    pass
581
 
5623 anupam.sin 582
  def getUserEmails(self, startDate, endDate):
583
    """
584
    Get email addresses for users activated within a given date range
4668 varun.gupt 585
 
5623 anupam.sin 586
    Parameters:
587
     - startDate
588
     - endDate
589
    """
590
    pass
591
 
592
 
3376 rajveer 593
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 594
  """
595
  service
596
  """
597
  def __init__(self, iprot, oprot=None):
3376 rajveer 598
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 599
 
559 chandransh 600
  def createAnonymousUser(self, jsessionId):
94 ashish 601
    """
602
    Parameters:
559 chandransh 603
     - jsessionId
94 ashish 604
    """
559 chandransh 605
    self.send_createAnonymousUser(jsessionId)
606
    return self.recv_createAnonymousUser()
94 ashish 607
 
559 chandransh 608
  def send_createAnonymousUser(self, jsessionId):
609
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
610
    args = createAnonymousUser_args()
611
    args.jsessionId = jsessionId
94 ashish 612
    args.write(self._oprot)
613
    self._oprot.writeMessageEnd()
614
    self._oprot.trans.flush()
615
 
559 chandransh 616
  def recv_createAnonymousUser(self, ):
94 ashish 617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
618
    if mtype == TMessageType.EXCEPTION:
619
      x = TApplicationException()
620
      x.read(self._iprot)
621
      self._iprot.readMessageEnd()
622
      raise x
559 chandransh 623
    result = createAnonymousUser_result()
94 ashish 624
    result.read(self._iprot)
625
    self._iprot.readMessageEnd()
3431 rajveer 626
    if result.success is not None:
94 ashish 627
      return result.success
3431 rajveer 628
    if result.ucex is not None:
559 chandransh 629
      raise result.ucex
630
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 631
 
559 chandransh 632
  def getUserById(self, userId):
94 ashish 633
    """
634
    Parameters:
635
     - userId
636
    """
559 chandransh 637
    self.send_getUserById(userId)
638
    return self.recv_getUserById()
94 ashish 639
 
559 chandransh 640
  def send_getUserById(self, userId):
641
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
642
    args = getUserById_args()
94 ashish 643
    args.userId = userId
644
    args.write(self._oprot)
645
    self._oprot.writeMessageEnd()
646
    self._oprot.trans.flush()
647
 
559 chandransh 648
  def recv_getUserById(self, ):
94 ashish 649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
650
    if mtype == TMessageType.EXCEPTION:
651
      x = TApplicationException()
652
      x.read(self._iprot)
653
      self._iprot.readMessageEnd()
654
      raise x
559 chandransh 655
    result = getUserById_result()
94 ashish 656
    result.read(self._iprot)
657
    self._iprot.readMessageEnd()
3431 rajveer 658
    if result.success is not None:
94 ashish 659
      return result.success
3431 rajveer 660
    if result.ucex is not None:
559 chandransh 661
      raise result.ucex
662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 663
 
5326 rajveer 664
  def getUserByCartId(self, cartId):
665
    """
666
    Parameters:
667
     - cartId
668
    """
669
    self.send_getUserByCartId(cartId)
670
    return self.recv_getUserByCartId()
671
 
672
  def send_getUserByCartId(self, cartId):
673
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
674
    args = getUserByCartId_args()
675
    args.cartId = cartId
676
    args.write(self._oprot)
677
    self._oprot.writeMessageEnd()
678
    self._oprot.trans.flush()
679
 
680
  def recv_getUserByCartId(self, ):
681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
682
    if mtype == TMessageType.EXCEPTION:
683
      x = TApplicationException()
684
      x.read(self._iprot)
685
      self._iprot.readMessageEnd()
686
      raise x
687
    result = getUserByCartId_result()
688
    result.read(self._iprot)
689
    self._iprot.readMessageEnd()
690
    if result.success is not None:
691
      return result.success
692
    if result.ucex is not None:
693
      raise result.ucex
694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
695
 
1491 vikas 696
  def getUserByEmail(self, email):
697
    """
698
    Parameters:
699
     - email
700
    """
701
    self.send_getUserByEmail(email)
702
    return self.recv_getUserByEmail()
703
 
704
  def send_getUserByEmail(self, email):
705
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
706
    args = getUserByEmail_args()
707
    args.email = email
708
    args.write(self._oprot)
709
    self._oprot.writeMessageEnd()
710
    self._oprot.trans.flush()
711
 
712
  def recv_getUserByEmail(self, ):
713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
714
    if mtype == TMessageType.EXCEPTION:
715
      x = TApplicationException()
716
      x.read(self._iprot)
717
      self._iprot.readMessageEnd()
718
      raise x
719
    result = getUserByEmail_result()
720
    result.read(self._iprot)
721
    self._iprot.readMessageEnd()
3431 rajveer 722
    if result.success is not None:
1491 vikas 723
      return result.success
3431 rajveer 724
    if result.ucex is not None:
1491 vikas 725
      raise result.ucex
726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
727
 
3032 mandeep.dh 728
  def getUserByMobileNumber(self, mobileNumber):
729
    """
730
    Parameters:
731
     - mobileNumber
732
    """
733
    self.send_getUserByMobileNumber(mobileNumber)
734
    return self.recv_getUserByMobileNumber()
735
 
736
  def send_getUserByMobileNumber(self, mobileNumber):
737
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
738
    args = getUserByMobileNumber_args()
739
    args.mobileNumber = mobileNumber
740
    args.write(self._oprot)
741
    self._oprot.writeMessageEnd()
742
    self._oprot.trans.flush()
743
 
744
  def recv_getUserByMobileNumber(self, ):
745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
746
    if mtype == TMessageType.EXCEPTION:
747
      x = TApplicationException()
748
      x.read(self._iprot)
749
      self._iprot.readMessageEnd()
750
      raise x
751
    result = getUserByMobileNumber_result()
752
    result.read(self._iprot)
753
    self._iprot.readMessageEnd()
3431 rajveer 754
    if result.success is not None:
3032 mandeep.dh 755
      return result.success
3431 rajveer 756
    if result.ucex is not None:
3032 mandeep.dh 757
      raise result.ucex
758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
759
 
559 chandransh 760
  def createUser(self, user):
94 ashish 761
    """
762
    Parameters:
559 chandransh 763
     - user
94 ashish 764
    """
559 chandransh 765
    self.send_createUser(user)
766
    return self.recv_createUser()
94 ashish 767
 
559 chandransh 768
  def send_createUser(self, user):
769
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
770
    args = createUser_args()
771
    args.user = user
94 ashish 772
    args.write(self._oprot)
773
    self._oprot.writeMessageEnd()
774
    self._oprot.trans.flush()
775
 
559 chandransh 776
  def recv_createUser(self, ):
94 ashish 777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
778
    if mtype == TMessageType.EXCEPTION:
779
      x = TApplicationException()
780
      x.read(self._iprot)
781
      self._iprot.readMessageEnd()
782
      raise x
559 chandransh 783
    result = createUser_result()
94 ashish 784
    result.read(self._iprot)
785
    self._iprot.readMessageEnd()
3431 rajveer 786
    if result.success is not None:
94 ashish 787
      return result.success
3431 rajveer 788
    if result.ucex is not None:
559 chandransh 789
      raise result.ucex
790
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 791
 
559 chandransh 792
  def updateUser(self, user):
94 ashish 793
    """
794
    Parameters:
559 chandransh 795
     - user
94 ashish 796
    """
559 chandransh 797
    self.send_updateUser(user)
798
    return self.recv_updateUser()
94 ashish 799
 
559 chandransh 800
  def send_updateUser(self, user):
801
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
802
    args = updateUser_args()
803
    args.user = user
94 ashish 804
    args.write(self._oprot)
805
    self._oprot.writeMessageEnd()
806
    self._oprot.trans.flush()
807
 
559 chandransh 808
  def recv_updateUser(self, ):
94 ashish 809
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
810
    if mtype == TMessageType.EXCEPTION:
811
      x = TApplicationException()
812
      x.read(self._iprot)
813
      self._iprot.readMessageEnd()
814
      raise x
559 chandransh 815
    result = updateUser_result()
94 ashish 816
    result.read(self._iprot)
817
    self._iprot.readMessageEnd()
3431 rajveer 818
    if result.success is not None:
94 ashish 819
      return result.success
3431 rajveer 820
    if result.ucex is not None:
559 chandransh 821
      raise result.ucex
822
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 823
 
559 chandransh 824
  def authenticateUser(self, email, password):
94 ashish 825
    """
826
    Parameters:
827
     - email
828
     - password
829
    """
559 chandransh 830
    self.send_authenticateUser(email, password)
122 ashish 831
    return self.recv_authenticateUser()
832
 
559 chandransh 833
  def send_authenticateUser(self, email, password):
122 ashish 834
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
835
    args = authenticateUser_args()
559 chandransh 836
    args.email = email
122 ashish 837
    args.password = password
838
    args.write(self._oprot)
839
    self._oprot.writeMessageEnd()
840
    self._oprot.trans.flush()
841
 
842
  def recv_authenticateUser(self, ):
843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
844
    if mtype == TMessageType.EXCEPTION:
845
      x = TApplicationException()
846
      x.read(self._iprot)
847
      self._iprot.readMessageEnd()
848
      raise x
849
    result = authenticateUser_result()
850
    result.read(self._iprot)
851
    self._iprot.readMessageEnd()
3431 rajveer 852
    if result.success is not None:
122 ashish 853
      return result.success
3431 rajveer 854
    if result.auex is not None:
559 chandransh 855
      raise result.auex
122 ashish 856
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
857
 
94 ashish 858
  def userExists(self, email):
859
    """
860
    Parameters:
861
     - email
862
    """
863
    self.send_userExists(email)
864
    return self.recv_userExists()
865
 
866
  def send_userExists(self, email):
867
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
868
    args = userExists_args()
869
    args.email = email
870
    args.write(self._oprot)
871
    self._oprot.writeMessageEnd()
872
    self._oprot.trans.flush()
873
 
874
  def recv_userExists(self, ):
875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
876
    if mtype == TMessageType.EXCEPTION:
877
      x = TApplicationException()
878
      x.read(self._iprot)
879
      self._iprot.readMessageEnd()
880
      raise x
881
    result = userExists_result()
882
    result.read(self._iprot)
883
    self._iprot.readMessageEnd()
3431 rajveer 884
    if result.success is not None:
94 ashish 885
      return result.success
3431 rajveer 886
    if result.ucx is not None:
94 ashish 887
      raise result.ucx
888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
889
 
567 rajveer 890
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 891
    """
892
    Parameters:
893
     - userId
894
     - address
513 rajveer 895
     - setDefault
94 ashish 896
    """
567 rajveer 897
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 898
    return self.recv_addAddressForUser()
899
 
567 rajveer 900
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 901
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
902
    args = addAddressForUser_args()
559 chandransh 903
    args.userId = userId
94 ashish 904
    args.address = address
513 rajveer 905
    args.setDefault = setDefault
94 ashish 906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_addAddressForUser(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = addAddressForUser_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
3431 rajveer 920
    if result.success is not None:
94 ashish 921
      return result.success
3431 rajveer 922
    if result.ucx is not None:
94 ashish 923
      raise result.ucx
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
925
 
926
  def removeAddressForUser(self, userid, addressId):
927
    """
928
    Parameters:
929
     - userid
930
     - addressId
931
    """
932
    self.send_removeAddressForUser(userid, addressId)
933
    return self.recv_removeAddressForUser()
934
 
935
  def send_removeAddressForUser(self, userid, addressId):
936
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
937
    args = removeAddressForUser_args()
938
    args.userid = userid
939
    args.addressId = addressId
940
    args.write(self._oprot)
941
    self._oprot.writeMessageEnd()
942
    self._oprot.trans.flush()
943
 
944
  def recv_removeAddressForUser(self, ):
945
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
946
    if mtype == TMessageType.EXCEPTION:
947
      x = TApplicationException()
948
      x.read(self._iprot)
949
      self._iprot.readMessageEnd()
950
      raise x
951
    result = removeAddressForUser_result()
952
    result.read(self._iprot)
953
    self._iprot.readMessageEnd()
3431 rajveer 954
    if result.success is not None:
94 ashish 955
      return result.success
3431 rajveer 956
    if result.ucx is not None:
94 ashish 957
      raise result.ucx
958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
959
 
960
  def setUserAsLoggedIn(self, userId, timestamp):
961
    """
962
    Parameters:
963
     - userId
964
     - timestamp
965
    """
966
    self.send_setUserAsLoggedIn(userId, timestamp)
967
    return self.recv_setUserAsLoggedIn()
968
 
969
  def send_setUserAsLoggedIn(self, userId, timestamp):
970
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
971
    args = setUserAsLoggedIn_args()
972
    args.userId = userId
973
    args.timestamp = timestamp
974
    args.write(self._oprot)
975
    self._oprot.writeMessageEnd()
976
    self._oprot.trans.flush()
977
 
978
  def recv_setUserAsLoggedIn(self, ):
979
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
980
    if mtype == TMessageType.EXCEPTION:
981
      x = TApplicationException()
982
      x.read(self._iprot)
983
      self._iprot.readMessageEnd()
984
      raise x
985
    result = setUserAsLoggedIn_result()
986
    result.read(self._iprot)
987
    self._iprot.readMessageEnd()
3431 rajveer 988
    if result.success is not None:
94 ashish 989
      return result.success
3431 rajveer 990
    if result.ucx is not None:
94 ashish 991
      raise result.ucx
992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
993
 
994
  def setUserAsLoggedOut(self, userid, timestamp):
995
    """
996
    Parameters:
997
     - userid
998
     - timestamp
999
    """
1000
    self.send_setUserAsLoggedOut(userid, timestamp)
1001
    return self.recv_setUserAsLoggedOut()
1002
 
1003
  def send_setUserAsLoggedOut(self, userid, timestamp):
1004
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1005
    args = setUserAsLoggedOut_args()
1006
    args.userid = userid
1007
    args.timestamp = timestamp
1008
    args.write(self._oprot)
1009
    self._oprot.writeMessageEnd()
1010
    self._oprot.trans.flush()
1011
 
1012
  def recv_setUserAsLoggedOut(self, ):
1013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1014
    if mtype == TMessageType.EXCEPTION:
1015
      x = TApplicationException()
1016
      x.read(self._iprot)
1017
      self._iprot.readMessageEnd()
1018
      raise x
1019
    result = setUserAsLoggedOut_result()
1020
    result.read(self._iprot)
1021
    self._iprot.readMessageEnd()
3431 rajveer 1022
    if result.success is not None:
94 ashish 1023
      return result.success
3431 rajveer 1024
    if result.ucx is not None:
94 ashish 1025
      raise result.ucx
1026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1027
 
504 rajveer 1028
  def setDefaultAddress(self, userid, addressId):
1029
    """
1030
    Parameters:
1031
     - userid
1032
     - addressId
1033
    """
1034
    self.send_setDefaultAddress(userid, addressId)
1035
    return self.recv_setDefaultAddress()
1036
 
1037
  def send_setDefaultAddress(self, userid, addressId):
1038
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1039
    args = setDefaultAddress_args()
1040
    args.userid = userid
1041
    args.addressId = addressId
1042
    args.write(self._oprot)
1043
    self._oprot.writeMessageEnd()
1044
    self._oprot.trans.flush()
1045
 
1046
  def recv_setDefaultAddress(self, ):
1047
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1048
    if mtype == TMessageType.EXCEPTION:
1049
      x = TApplicationException()
1050
      x.read(self._iprot)
1051
      self._iprot.readMessageEnd()
1052
      raise x
1053
    result = setDefaultAddress_result()
1054
    result.read(self._iprot)
1055
    self._iprot.readMessageEnd()
3431 rajveer 1056
    if result.success is not None:
504 rajveer 1057
      return result.success
3431 rajveer 1058
    if result.ucx is not None:
504 rajveer 1059
      raise result.ucx
1060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1061
 
594 rajveer 1062
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1063
    """
1064
    Parameters:
1065
     - userid
594 rajveer 1066
     - oldPassword
1067
     - newPassword
94 ashish 1068
    """
594 rajveer 1069
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1070
    return self.recv_updatePassword()
1071
 
594 rajveer 1072
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1073
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1074
    args = updatePassword_args()
1075
    args.userid = userid
594 rajveer 1076
    args.oldPassword = oldPassword
1077
    args.newPassword = newPassword
94 ashish 1078
    args.write(self._oprot)
1079
    self._oprot.writeMessageEnd()
1080
    self._oprot.trans.flush()
1081
 
1082
  def recv_updatePassword(self, ):
1083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1084
    if mtype == TMessageType.EXCEPTION:
1085
      x = TApplicationException()
1086
      x.read(self._iprot)
1087
      self._iprot.readMessageEnd()
1088
      raise x
1089
    result = updatePassword_result()
1090
    result.read(self._iprot)
1091
    self._iprot.readMessageEnd()
3431 rajveer 1092
    if result.success is not None:
94 ashish 1093
      return result.success
3431 rajveer 1094
    if result.ucx is not None:
94 ashish 1095
      raise result.ucx
1096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1097
 
884 rajveer 1098
  def forgotPassword(self, email, newPassword):
581 rajveer 1099
    """
1100
    Parameters:
1101
     - email
884 rajveer 1102
     - newPassword
581 rajveer 1103
    """
884 rajveer 1104
    self.send_forgotPassword(email, newPassword)
581 rajveer 1105
    return self.recv_forgotPassword()
1106
 
884 rajveer 1107
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1108
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1109
    args = forgotPassword_args()
1110
    args.email = email
884 rajveer 1111
    args.newPassword = newPassword
581 rajveer 1112
    args.write(self._oprot)
1113
    self._oprot.writeMessageEnd()
1114
    self._oprot.trans.flush()
1115
 
1116
  def recv_forgotPassword(self, ):
1117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1118
    if mtype == TMessageType.EXCEPTION:
1119
      x = TApplicationException()
1120
      x.read(self._iprot)
1121
      self._iprot.readMessageEnd()
1122
      raise x
1123
    result = forgotPassword_result()
1124
    result.read(self._iprot)
1125
    self._iprot.readMessageEnd()
3431 rajveer 1126
    if result.success is not None:
581 rajveer 1127
      return result.success
3431 rajveer 1128
    if result.ucx is not None:
581 rajveer 1129
      raise result.ucx
1130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1131
 
594 rajveer 1132
  def getAllAddressesForUser(self, userId):
1133
    """
1134
    Parameters:
1135
     - userId
1136
    """
1137
    self.send_getAllAddressesForUser(userId)
1138
    return self.recv_getAllAddressesForUser()
1139
 
1140
  def send_getAllAddressesForUser(self, userId):
1141
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1142
    args = getAllAddressesForUser_args()
1143
    args.userId = userId
1144
    args.write(self._oprot)
1145
    self._oprot.writeMessageEnd()
1146
    self._oprot.trans.flush()
1147
 
1148
  def recv_getAllAddressesForUser(self, ):
1149
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1150
    if mtype == TMessageType.EXCEPTION:
1151
      x = TApplicationException()
1152
      x.read(self._iprot)
1153
      self._iprot.readMessageEnd()
1154
      raise x
1155
    result = getAllAddressesForUser_result()
1156
    result.read(self._iprot)
1157
    self._iprot.readMessageEnd()
3431 rajveer 1158
    if result.success is not None:
594 rajveer 1159
      return result.success
3431 rajveer 1160
    if result.ucx is not None:
594 rajveer 1161
      raise result.ucx
1162
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1163
 
1894 vikas 1164
  def getAddressById(self, addressId):
1165
    """
1166
    Parameters:
1167
     - addressId
1168
    """
1169
    self.send_getAddressById(addressId)
1170
    return self.recv_getAddressById()
1171
 
1172
  def send_getAddressById(self, addressId):
1173
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1174
    args = getAddressById_args()
1175
    args.addressId = addressId
1176
    args.write(self._oprot)
1177
    self._oprot.writeMessageEnd()
1178
    self._oprot.trans.flush()
1179
 
1180
  def recv_getAddressById(self, ):
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1182
    if mtype == TMessageType.EXCEPTION:
1183
      x = TApplicationException()
1184
      x.read(self._iprot)
1185
      self._iprot.readMessageEnd()
1186
      raise x
1187
    result = getAddressById_result()
1188
    result.read(self._iprot)
1189
    self._iprot.readMessageEnd()
3431 rajveer 1190
    if result.success is not None:
1894 vikas 1191
      return result.success
3431 rajveer 1192
    if result.ucx is not None:
1894 vikas 1193
      raise result.ucx
1194
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1195
 
594 rajveer 1196
  def getDefaultAddressId(self, userId):
1197
    """
1198
    Parameters:
1199
     - userId
1200
    """
1201
    self.send_getDefaultAddressId(userId)
1202
    return self.recv_getDefaultAddressId()
1203
 
1204
  def send_getDefaultAddressId(self, userId):
1205
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1206
    args = getDefaultAddressId_args()
1207
    args.userId = userId
1208
    args.write(self._oprot)
1209
    self._oprot.writeMessageEnd()
1210
    self._oprot.trans.flush()
1211
 
1212
  def recv_getDefaultAddressId(self, ):
1213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1214
    if mtype == TMessageType.EXCEPTION:
1215
      x = TApplicationException()
1216
      x.read(self._iprot)
1217
      self._iprot.readMessageEnd()
1218
      raise x
1219
    result = getDefaultAddressId_result()
1220
    result.read(self._iprot)
1221
    self._iprot.readMessageEnd()
3431 rajveer 1222
    if result.success is not None:
594 rajveer 1223
      return result.success
3431 rajveer 1224
    if result.ucx is not None:
594 rajveer 1225
      raise result.ucx
1226
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1227
 
785 rajveer 1228
  def getDefaultPincode(self, userId):
1229
    """
1230
    Parameters:
1231
     - userId
1232
    """
1233
    self.send_getDefaultPincode(userId)
1234
    return self.recv_getDefaultPincode()
1235
 
1236
  def send_getDefaultPincode(self, userId):
1237
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1238
    args = getDefaultPincode_args()
1239
    args.userId = userId
1240
    args.write(self._oprot)
1241
    self._oprot.writeMessageEnd()
1242
    self._oprot.trans.flush()
1243
 
1244
  def recv_getDefaultPincode(self, ):
1245
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1246
    if mtype == TMessageType.EXCEPTION:
1247
      x = TApplicationException()
1248
      x.read(self._iprot)
1249
      self._iprot.readMessageEnd()
1250
      raise x
1251
    result = getDefaultPincode_result()
1252
    result.read(self._iprot)
1253
    self._iprot.readMessageEnd()
3431 rajveer 1254
    if result.success is not None:
785 rajveer 1255
      return result.success
3431 rajveer 1256
    if result.ucx is not None:
785 rajveer 1257
      raise result.ucx
1258
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1259
 
1274 varun.gupt 1260
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1261
    """
1262
    Parameters:
1263
     - userId
1264
     - replyTo
1265
     - communicationType
1266
     - orderId
1267
     - airwaybillNo
1268
     - productName
1269
     - subject
1270
     - message
1271
    """
1272
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1273
    return self.recv_saveUserCommunication()
1274
 
1275
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1276
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1277
    args = saveUserCommunication_args()
1278
    args.userId = userId
1279
    args.replyTo = replyTo
1280
    args.communicationType = communicationType
1281
    args.orderId = orderId
1282
    args.airwaybillNo = airwaybillNo
1283
    args.productName = productName
1284
    args.subject = subject
1285
    args.message = message
1286
    args.write(self._oprot)
1287
    self._oprot.writeMessageEnd()
1288
    self._oprot.trans.flush()
1289
 
1290
  def recv_saveUserCommunication(self, ):
1291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1292
    if mtype == TMessageType.EXCEPTION:
1293
      x = TApplicationException()
1294
      x.read(self._iprot)
1295
      self._iprot.readMessageEnd()
1296
      raise x
1297
    result = saveUserCommunication_result()
1298
    result.read(self._iprot)
1299
    self._iprot.readMessageEnd()
3431 rajveer 1300
    if result.success is not None:
1274 varun.gupt 1301
      return result.success
3431 rajveer 1302
    if result.ucx is not None:
1274 varun.gupt 1303
      raise result.ucx
1304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1305
 
1590 varun.gupt 1306
  def getUserCommunicationById(self, id):
1307
    """
1308
    Parameters:
1309
     - id
1310
    """
1311
    self.send_getUserCommunicationById(id)
1312
    return self.recv_getUserCommunicationById()
1313
 
1314
  def send_getUserCommunicationById(self, id):
1315
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1316
    args = getUserCommunicationById_args()
1317
    args.id = id
1318
    args.write(self._oprot)
1319
    self._oprot.writeMessageEnd()
1320
    self._oprot.trans.flush()
1321
 
1322
  def recv_getUserCommunicationById(self, ):
1323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1324
    if mtype == TMessageType.EXCEPTION:
1325
      x = TApplicationException()
1326
      x.read(self._iprot)
1327
      self._iprot.readMessageEnd()
1328
      raise x
1329
    result = getUserCommunicationById_result()
1330
    result.read(self._iprot)
1331
    self._iprot.readMessageEnd()
3431 rajveer 1332
    if result.success is not None:
1590 varun.gupt 1333
      return result.success
3431 rajveer 1334
    if result.ucx is not None:
1590 varun.gupt 1335
      raise result.ucx
1336
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1337
 
1338
  def getUserCommunicationByUser(self, userId):
1339
    """
1340
    Parameters:
1341
     - userId
1342
    """
1343
    self.send_getUserCommunicationByUser(userId)
1344
    return self.recv_getUserCommunicationByUser()
1345
 
1346
  def send_getUserCommunicationByUser(self, userId):
1347
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1348
    args = getUserCommunicationByUser_args()
1349
    args.userId = userId
1350
    args.write(self._oprot)
1351
    self._oprot.writeMessageEnd()
1352
    self._oprot.trans.flush()
1353
 
1354
  def recv_getUserCommunicationByUser(self, ):
1355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1356
    if mtype == TMessageType.EXCEPTION:
1357
      x = TApplicationException()
1358
      x.read(self._iprot)
1359
      self._iprot.readMessageEnd()
1360
      raise x
1361
    result = getUserCommunicationByUser_result()
1362
    result.read(self._iprot)
1363
    self._iprot.readMessageEnd()
3431 rajveer 1364
    if result.success is not None:
1590 varun.gupt 1365
      return result.success
3431 rajveer 1366
    if result.ucx is not None:
1590 varun.gupt 1367
      raise result.ucx
1368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1369
 
1370
  def getAllUserCommunications(self, ):
1371
    self.send_getAllUserCommunications()
1372
    return self.recv_getAllUserCommunications()
1373
 
1374
  def send_getAllUserCommunications(self, ):
1375
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1376
    args = getAllUserCommunications_args()
1377
    args.write(self._oprot)
1378
    self._oprot.writeMessageEnd()
1379
    self._oprot.trans.flush()
1380
 
1381
  def recv_getAllUserCommunications(self, ):
1382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1383
    if mtype == TMessageType.EXCEPTION:
1384
      x = TApplicationException()
1385
      x.read(self._iprot)
1386
      self._iprot.readMessageEnd()
1387
      raise x
1388
    result = getAllUserCommunications_result()
1389
    result.read(self._iprot)
1390
    self._iprot.readMessageEnd()
3431 rajveer 1391
    if result.success is not None:
1590 varun.gupt 1392
      return result.success
3431 rajveer 1393
    if result.ucx is not None:
1590 varun.gupt 1394
      raise result.ucx
1395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1396
 
5407 amar.kumar 1397
  def removeUserCommunication(self, id):
1398
    """
1399
    Parameters:
1400
     - id
1401
    """
1402
    self.send_removeUserCommunication(id)
1403
    self.recv_removeUserCommunication()
1404
 
1405
  def send_removeUserCommunication(self, id):
1406
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1407
    args = removeUserCommunication_args()
1408
    args.id = id
1409
    args.write(self._oprot)
1410
    self._oprot.writeMessageEnd()
1411
    self._oprot.trans.flush()
1412
 
1413
  def recv_removeUserCommunication(self, ):
1414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1415
    if mtype == TMessageType.EXCEPTION:
1416
      x = TApplicationException()
1417
      x.read(self._iprot)
1418
      self._iprot.readMessageEnd()
1419
      raise x
1420
    result = removeUserCommunication_result()
1421
    result.read(self._iprot)
1422
    self._iprot.readMessageEnd()
1423
    if result.ucx is not None:
1424
      raise result.ucx
1425
    return
1426
 
1859 vikas 1427
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1428
    """
1429
    Parameters:
1430
     - name
1859 vikas 1431
     - addedOn
1845 vikas 1432
    """
1859 vikas 1433
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1434
    return self.recv_createMasterAffiliate()
1435
 
1859 vikas 1436
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1437
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1438
    args = createMasterAffiliate_args()
1439
    args.name = name
1859 vikas 1440
    args.addedOn = addedOn
1845 vikas 1441
    args.write(self._oprot)
1442
    self._oprot.writeMessageEnd()
1443
    self._oprot.trans.flush()
1444
 
1445
  def recv_createMasterAffiliate(self, ):
1446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1447
    if mtype == TMessageType.EXCEPTION:
1448
      x = TApplicationException()
1449
      x.read(self._iprot)
1450
      self._iprot.readMessageEnd()
1451
      raise x
1452
    result = createMasterAffiliate_result()
1453
    result.read(self._iprot)
1454
    self._iprot.readMessageEnd()
3431 rajveer 1455
    if result.success is not None:
1845 vikas 1456
      return result.success
3431 rajveer 1457
    if result.utx is not None:
1845 vikas 1458
      raise result.utx
1459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1460
 
1899 vikas 1461
  def getAllMasterAffiliates(self, ):
1462
    self.send_getAllMasterAffiliates()
1463
    return self.recv_getAllMasterAffiliates()
1464
 
1465
  def send_getAllMasterAffiliates(self, ):
1466
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1467
    args = getAllMasterAffiliates_args()
1468
    args.write(self._oprot)
1469
    self._oprot.writeMessageEnd()
1470
    self._oprot.trans.flush()
1471
 
1472
  def recv_getAllMasterAffiliates(self, ):
1473
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1474
    if mtype == TMessageType.EXCEPTION:
1475
      x = TApplicationException()
1476
      x.read(self._iprot)
1477
      self._iprot.readMessageEnd()
1478
      raise x
1479
    result = getAllMasterAffiliates_result()
1480
    result.read(self._iprot)
1481
    self._iprot.readMessageEnd()
3431 rajveer 1482
    if result.success is not None:
1899 vikas 1483
      return result.success
3431 rajveer 1484
    if result.utx is not None:
1899 vikas 1485
      raise result.utx
1486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1487
 
1845 vikas 1488
  def getMasterAffiliateById(self, id):
1489
    """
1490
    Parameters:
1491
     - id
1492
    """
1493
    self.send_getMasterAffiliateById(id)
1494
    return self.recv_getMasterAffiliateById()
1495
 
1496
  def send_getMasterAffiliateById(self, id):
1497
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1498
    args = getMasterAffiliateById_args()
1499
    args.id = id
1500
    args.write(self._oprot)
1501
    self._oprot.writeMessageEnd()
1502
    self._oprot.trans.flush()
1503
 
1504
  def recv_getMasterAffiliateById(self, ):
1505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1506
    if mtype == TMessageType.EXCEPTION:
1507
      x = TApplicationException()
1508
      x.read(self._iprot)
1509
      self._iprot.readMessageEnd()
1510
      raise x
1511
    result = getMasterAffiliateById_result()
1512
    result.read(self._iprot)
1513
    self._iprot.readMessageEnd()
3431 rajveer 1514
    if result.success is not None:
1845 vikas 1515
      return result.success
3431 rajveer 1516
    if result.utx is not None:
1845 vikas 1517
      raise result.utx
1518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1519
 
1520
  def getMasterAffiliateByName(self, name):
1521
    """
1522
    Parameters:
1523
     - name
1524
    """
1525
    self.send_getMasterAffiliateByName(name)
1526
    return self.recv_getMasterAffiliateByName()
1527
 
1528
  def send_getMasterAffiliateByName(self, name):
1529
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1530
    args = getMasterAffiliateByName_args()
1531
    args.name = name
1532
    args.write(self._oprot)
1533
    self._oprot.writeMessageEnd()
1534
    self._oprot.trans.flush()
1535
 
1536
  def recv_getMasterAffiliateByName(self, ):
1537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1538
    if mtype == TMessageType.EXCEPTION:
1539
      x = TApplicationException()
1540
      x.read(self._iprot)
1541
      self._iprot.readMessageEnd()
1542
      raise x
1543
    result = getMasterAffiliateByName_result()
1544
    result.read(self._iprot)
1545
    self._iprot.readMessageEnd()
3431 rajveer 1546
    if result.success is not None:
1845 vikas 1547
      return result.success
3431 rajveer 1548
    if result.utx is not None:
1845 vikas 1549
      raise result.utx
1550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1551
 
1859 vikas 1552
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1553
    """
1554
    Parameters:
1555
     - name
1556
     - url
1557
     - masterAffiliateId
1859 vikas 1558
     - addedOn
1845 vikas 1559
    """
1859 vikas 1560
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1561
    return self.recv_createAffiliate()
1562
 
1859 vikas 1563
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1564
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1565
    args = createAffiliate_args()
1566
    args.name = name
1567
    args.url = url
1568
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1569
    args.addedOn = addedOn
1845 vikas 1570
    args.write(self._oprot)
1571
    self._oprot.writeMessageEnd()
1572
    self._oprot.trans.flush()
1573
 
1574
  def recv_createAffiliate(self, ):
1575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1576
    if mtype == TMessageType.EXCEPTION:
1577
      x = TApplicationException()
1578
      x.read(self._iprot)
1579
      self._iprot.readMessageEnd()
1580
      raise x
1581
    result = createAffiliate_result()
1582
    result.read(self._iprot)
1583
    self._iprot.readMessageEnd()
3431 rajveer 1584
    if result.success is not None:
1845 vikas 1585
      return result.success
3431 rajveer 1586
    if result.utx is not None:
1845 vikas 1587
      raise result.utx
1588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1589
 
1590
  def getAffiliateById(self, id):
1591
    """
1592
    Parameters:
1593
     - id
1594
    """
1595
    self.send_getAffiliateById(id)
1596
    return self.recv_getAffiliateById()
1597
 
1598
  def send_getAffiliateById(self, id):
1599
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1600
    args = getAffiliateById_args()
1601
    args.id = id
1602
    args.write(self._oprot)
1603
    self._oprot.writeMessageEnd()
1604
    self._oprot.trans.flush()
1605
 
1606
  def recv_getAffiliateById(self, ):
1607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1608
    if mtype == TMessageType.EXCEPTION:
1609
      x = TApplicationException()
1610
      x.read(self._iprot)
1611
      self._iprot.readMessageEnd()
1612
      raise x
1613
    result = getAffiliateById_result()
1614
    result.read(self._iprot)
1615
    self._iprot.readMessageEnd()
3431 rajveer 1616
    if result.success is not None:
1845 vikas 1617
      return result.success
3431 rajveer 1618
    if result.utx is not None:
1845 vikas 1619
      raise result.utx
1620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1621
 
1622
  def getAffiliateByName(self, name):
1623
    """
1624
    Parameters:
1625
     - name
1626
    """
1627
    self.send_getAffiliateByName(name)
1628
    return self.recv_getAffiliateByName()
1629
 
1630
  def send_getAffiliateByName(self, name):
1631
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1632
    args = getAffiliateByName_args()
1633
    args.name = name
1634
    args.write(self._oprot)
1635
    self._oprot.writeMessageEnd()
1636
    self._oprot.trans.flush()
1637
 
1638
  def recv_getAffiliateByName(self, ):
1639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1640
    if mtype == TMessageType.EXCEPTION:
1641
      x = TApplicationException()
1642
      x.read(self._iprot)
1643
      self._iprot.readMessageEnd()
1644
      raise x
1645
    result = getAffiliateByName_result()
1646
    result.read(self._iprot)
1647
    self._iprot.readMessageEnd()
3431 rajveer 1648
    if result.success is not None:
1845 vikas 1649
      return result.success
3431 rajveer 1650
    if result.utx is not None:
1845 vikas 1651
      raise result.utx
1652
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1653
 
1996 vikas 1654
  def getTrackerById(self, id):
1845 vikas 1655
    """
1656
    Parameters:
1657
     - id
1658
    """
1996 vikas 1659
    self.send_getTrackerById(id)
1845 vikas 1660
    return self.recv_getTrackerById()
1661
 
1996 vikas 1662
  def send_getTrackerById(self, id):
1845 vikas 1663
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1664
    args = getTrackerById_args()
1996 vikas 1665
    args.id = id
1845 vikas 1666
    args.write(self._oprot)
1667
    self._oprot.writeMessageEnd()
1668
    self._oprot.trans.flush()
1669
 
1670
  def recv_getTrackerById(self, ):
1671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1672
    if mtype == TMessageType.EXCEPTION:
1673
      x = TApplicationException()
1674
      x.read(self._iprot)
1675
      self._iprot.readMessageEnd()
1676
      raise x
1677
    result = getTrackerById_result()
1678
    result.read(self._iprot)
1679
    self._iprot.readMessageEnd()
3431 rajveer 1680
    if result.success is not None:
1845 vikas 1681
      return result.success
3431 rajveer 1682
    if result.utx is not None:
1845 vikas 1683
      raise result.utx
1684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1685
 
1996 vikas 1686
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1687
    """
1688
    Parameters:
1996 vikas 1689
     - id
1845 vikas 1690
    """
1996 vikas 1691
    self.send_getAffiliatesByMasterAffiliate(id)
1692
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1693
 
1996 vikas 1694
  def send_getAffiliatesByMasterAffiliate(self, id):
1695
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1696
    args = getAffiliatesByMasterAffiliate_args()
1697
    args.id = id
1845 vikas 1698
    args.write(self._oprot)
1699
    self._oprot.writeMessageEnd()
1700
    self._oprot.trans.flush()
1701
 
1996 vikas 1702
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1704
    if mtype == TMessageType.EXCEPTION:
1705
      x = TApplicationException()
1706
      x.read(self._iprot)
1707
      self._iprot.readMessageEnd()
1708
      raise x
1996 vikas 1709
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1710
    result.read(self._iprot)
1711
    self._iprot.readMessageEnd()
3431 rajveer 1712
    if result.success is not None:
1845 vikas 1713
      return result.success
3431 rajveer 1714
    if result.utx is not None:
1845 vikas 1715
      raise result.utx
1996 vikas 1716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1717
 
1996 vikas 1718
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1719
    """
1720
    Parameters:
1996 vikas 1721
     - affiliateId
1845 vikas 1722
     - userId
1723
     - event
1724
     - url
1725
     - data
1859 vikas 1726
     - addedOn
1845 vikas 1727
    """
1996 vikas 1728
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1729
    return self.recv_addTrackLog()
1730
 
1996 vikas 1731
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1732
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1733
    args = addTrackLog_args()
1996 vikas 1734
    args.affiliateId = affiliateId
1845 vikas 1735
    args.userId = userId
1736
    args.event = event
1737
    args.url = url
1738
    args.data = data
1859 vikas 1739
    args.addedOn = addedOn
1845 vikas 1740
    args.write(self._oprot)
1741
    self._oprot.writeMessageEnd()
1742
    self._oprot.trans.flush()
1743
 
1744
  def recv_addTrackLog(self, ):
1745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1746
    if mtype == TMessageType.EXCEPTION:
1747
      x = TApplicationException()
1748
      x.read(self._iprot)
1749
      self._iprot.readMessageEnd()
1750
      raise x
1751
    result = addTrackLog_result()
1752
    result.read(self._iprot)
1753
    self._iprot.readMessageEnd()
3431 rajveer 1754
    if result.success is not None:
1845 vikas 1755
      return result.success
3431 rajveer 1756
    if result.utx is not None:
1845 vikas 1757
      raise result.utx
1758
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1759
 
1760
  def getTrackLogById(self, id):
1761
    """
1762
    Parameters:
1763
     - id
1764
    """
1765
    self.send_getTrackLogById(id)
1766
    return self.recv_getTrackLogById()
1767
 
1768
  def send_getTrackLogById(self, id):
1769
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1770
    args = getTrackLogById_args()
1771
    args.id = id
1772
    args.write(self._oprot)
1773
    self._oprot.writeMessageEnd()
1774
    self._oprot.trans.flush()
1775
 
1776
  def recv_getTrackLogById(self, ):
1777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1778
    if mtype == TMessageType.EXCEPTION:
1779
      x = TApplicationException()
1780
      x.read(self._iprot)
1781
      self._iprot.readMessageEnd()
1782
      raise x
1783
    result = getTrackLogById_result()
1784
    result.read(self._iprot)
1785
    self._iprot.readMessageEnd()
3431 rajveer 1786
    if result.success is not None:
1845 vikas 1787
      return result.success
3431 rajveer 1788
    if result.utx is not None:
1845 vikas 1789
      raise result.utx
1790
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1791
 
3293 vikas 1792
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1793
    """
1794
    Parameters:
1996 vikas 1795
     - affiliateId
3293 vikas 1796
     - startDate
1797
     - endDate
1845 vikas 1798
    """
3293 vikas 1799
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1800
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1801
 
3293 vikas 1802
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1803
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1804
    args = getTrackLogsByAffiliate_args()
1805
    args.affiliateId = affiliateId
3293 vikas 1806
    args.startDate = startDate
1807
    args.endDate = endDate
1845 vikas 1808
    args.write(self._oprot)
1809
    self._oprot.writeMessageEnd()
1810
    self._oprot.trans.flush()
1811
 
1996 vikas 1812
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1814
    if mtype == TMessageType.EXCEPTION:
1815
      x = TApplicationException()
1816
      x.read(self._iprot)
1817
      self._iprot.readMessageEnd()
1818
      raise x
1996 vikas 1819
    result = getTrackLogsByAffiliate_result()
1845 vikas 1820
    result.read(self._iprot)
1821
    self._iprot.readMessageEnd()
3431 rajveer 1822
    if result.success is not None:
1845 vikas 1823
      return result.success
3431 rajveer 1824
    if result.utx is not None:
1845 vikas 1825
      raise result.utx
1996 vikas 1826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1827
 
1828
  def getTrackLogsByUser(self, userId):
1829
    """
1830
    Parameters:
1831
     - userId
1832
    """
1833
    self.send_getTrackLogsByUser(userId)
1834
    return self.recv_getTrackLogsByUser()
1835
 
1836
  def send_getTrackLogsByUser(self, userId):
1837
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1838
    args = getTrackLogsByUser_args()
1839
    args.userId = userId
1840
    args.write(self._oprot)
1841
    self._oprot.writeMessageEnd()
1842
    self._oprot.trans.flush()
1843
 
1844
  def recv_getTrackLogsByUser(self, ):
1845
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1846
    if mtype == TMessageType.EXCEPTION:
1847
      x = TApplicationException()
1848
      x.read(self._iprot)
1849
      self._iprot.readMessageEnd()
1850
      raise x
1851
    result = getTrackLogsByUser_result()
1852
    result.read(self._iprot)
1853
    self._iprot.readMessageEnd()
3431 rajveer 1854
    if result.success is not None:
1845 vikas 1855
      return result.success
3431 rajveer 1856
    if result.utx is not None:
1845 vikas 1857
      raise result.utx
1858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1859
 
1996 vikas 1860
  def getTrackLogs(self, userId, event, url):
1845 vikas 1861
    """
1862
    Parameters:
1863
     - userId
1864
     - event
1865
     - url
1866
    """
1996 vikas 1867
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1868
    return self.recv_getTrackLogs()
1869
 
1996 vikas 1870
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1871
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1872
    args = getTrackLogs_args()
1873
    args.userId = userId
1874
    args.event = event
1875
    args.url = url
1876
    args.write(self._oprot)
1877
    self._oprot.writeMessageEnd()
1878
    self._oprot.trans.flush()
1879
 
1880
  def recv_getTrackLogs(self, ):
1881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1882
    if mtype == TMessageType.EXCEPTION:
1883
      x = TApplicationException()
1884
      x.read(self._iprot)
1885
      self._iprot.readMessageEnd()
1886
      raise x
1887
    result = getTrackLogs_result()
1888
    result.read(self._iprot)
1889
    self._iprot.readMessageEnd()
3431 rajveer 1890
    if result.success is not None:
1845 vikas 1891
      return result.success
3431 rajveer 1892
    if result.utx is not None:
1845 vikas 1893
      raise result.utx
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1895
 
559 chandransh 1896
  def getCurrentCart(self, userId):
94 ashish 1897
    """
1898
    Parameters:
559 chandransh 1899
     - userId
94 ashish 1900
    """
559 chandransh 1901
    self.send_getCurrentCart(userId)
1902
    return self.recv_getCurrentCart()
94 ashish 1903
 
559 chandransh 1904
  def send_getCurrentCart(self, userId):
1905
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1906
    args = getCurrentCart_args()
1907
    args.userId = userId
94 ashish 1908
    args.write(self._oprot)
1909
    self._oprot.writeMessageEnd()
1910
    self._oprot.trans.flush()
1911
 
559 chandransh 1912
  def recv_getCurrentCart(self, ):
94 ashish 1913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1914
    if mtype == TMessageType.EXCEPTION:
1915
      x = TApplicationException()
1916
      x.read(self._iprot)
1917
      self._iprot.readMessageEnd()
1918
      raise x
559 chandransh 1919
    result = getCurrentCart_result()
94 ashish 1920
    result.read(self._iprot)
1921
    self._iprot.readMessageEnd()
3431 rajveer 1922
    if result.success is not None:
94 ashish 1923
      return result.success
3431 rajveer 1924
    if result.scx is not None:
559 chandransh 1925
      raise result.scx
1926
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1927
 
559 chandransh 1928
  def getCart(self, cartId):
94 ashish 1929
    """
1930
    Parameters:
559 chandransh 1931
     - cartId
94 ashish 1932
    """
559 chandransh 1933
    self.send_getCart(cartId)
1934
    return self.recv_getCart()
94 ashish 1935
 
559 chandransh 1936
  def send_getCart(self, cartId):
1937
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1938
    args = getCart_args()
1939
    args.cartId = cartId
94 ashish 1940
    args.write(self._oprot)
1941
    self._oprot.writeMessageEnd()
1942
    self._oprot.trans.flush()
1943
 
559 chandransh 1944
  def recv_getCart(self, ):
94 ashish 1945
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1946
    if mtype == TMessageType.EXCEPTION:
1947
      x = TApplicationException()
1948
      x.read(self._iprot)
1949
      self._iprot.readMessageEnd()
1950
      raise x
559 chandransh 1951
    result = getCart_result()
94 ashish 1952
    result.read(self._iprot)
1953
    self._iprot.readMessageEnd()
3431 rajveer 1954
    if result.success is not None:
94 ashish 1955
      return result.success
3431 rajveer 1956
    if result.scx is not None:
559 chandransh 1957
      raise result.scx
1958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1959
 
559 chandransh 1960
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1961
    """
1962
    Parameters:
559 chandransh 1963
     - from_time
1964
     - to_time
1965
     - status
94 ashish 1966
    """
559 chandransh 1967
    self.send_getCartsByTime(from_time, to_time, status)
1968
    return self.recv_getCartsByTime()
94 ashish 1969
 
559 chandransh 1970
  def send_getCartsByTime(self, from_time, to_time, status):
1971
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1972
    args = getCartsByTime_args()
1973
    args.from_time = from_time
1974
    args.to_time = to_time
1975
    args.status = status
94 ashish 1976
    args.write(self._oprot)
1977
    self._oprot.writeMessageEnd()
1978
    self._oprot.trans.flush()
1979
 
559 chandransh 1980
  def recv_getCartsByTime(self, ):
94 ashish 1981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1982
    if mtype == TMessageType.EXCEPTION:
1983
      x = TApplicationException()
1984
      x.read(self._iprot)
1985
      self._iprot.readMessageEnd()
1986
      raise x
559 chandransh 1987
    result = getCartsByTime_result()
94 ashish 1988
    result.read(self._iprot)
1989
    self._iprot.readMessageEnd()
3431 rajveer 1990
    if result.success is not None:
94 ashish 1991
      return result.success
3431 rajveer 1992
    if result.scx is not None:
559 chandransh 1993
      raise result.scx
1994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 1995
 
3557 rajveer 1996
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 1997
    """
1998
    Parameters:
1999
     - cartId
2000
     - itemId
2001
     - quantity
3557 rajveer 2002
     - sourceId
559 chandransh 2003
    """
3557 rajveer 2004
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2005
    return self.recv_addItemToCart()
559 chandransh 2006
 
3557 rajveer 2007
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2008
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2009
    args = addItemToCart_args()
2010
    args.cartId = cartId
2011
    args.itemId = itemId
2012
    args.quantity = quantity
3557 rajveer 2013
    args.sourceId = sourceId
559 chandransh 2014
    args.write(self._oprot)
2015
    self._oprot.writeMessageEnd()
2016
    self._oprot.trans.flush()
2017
 
2018
  def recv_addItemToCart(self, ):
2019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2020
    if mtype == TMessageType.EXCEPTION:
2021
      x = TApplicationException()
2022
      x.read(self._iprot)
2023
      self._iprot.readMessageEnd()
2024
      raise x
2025
    result = addItemToCart_result()
2026
    result.read(self._iprot)
2027
    self._iprot.readMessageEnd()
3431 rajveer 2028
    if result.success is not None:
2035 rajveer 2029
      return result.success
3431 rajveer 2030
    if result.scx is not None:
559 chandransh 2031
      raise result.scx
2035 rajveer 2032
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2033
 
2034
  def deleteItemFromCart(self, cartId, itemId):
2035
    """
2036
    Parameters:
2037
     - cartId
2038
     - itemId
2039
    """
2040
    self.send_deleteItemFromCart(cartId, itemId)
2041
    self.recv_deleteItemFromCart()
2042
 
2043
  def send_deleteItemFromCart(self, cartId, itemId):
2044
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2045
    args = deleteItemFromCart_args()
2046
    args.cartId = cartId
2047
    args.itemId = itemId
2048
    args.write(self._oprot)
2049
    self._oprot.writeMessageEnd()
2050
    self._oprot.trans.flush()
2051
 
2052
  def recv_deleteItemFromCart(self, ):
2053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2054
    if mtype == TMessageType.EXCEPTION:
2055
      x = TApplicationException()
2056
      x.read(self._iprot)
2057
      self._iprot.readMessageEnd()
2058
      raise x
2059
    result = deleteItemFromCart_result()
2060
    result.read(self._iprot)
2061
    self._iprot.readMessageEnd()
3431 rajveer 2062
    if result.scx is not None:
559 chandransh 2063
      raise result.scx
2064
    return
2065
 
2066
  def addAddressToCart(self, cartId, addressId):
2067
    """
2068
    Parameters:
2069
     - cartId
2070
     - addressId
2071
    """
2072
    self.send_addAddressToCart(cartId, addressId)
2073
    self.recv_addAddressToCart()
2074
 
2075
  def send_addAddressToCart(self, cartId, addressId):
2076
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2077
    args = addAddressToCart_args()
2078
    args.cartId = cartId
2079
    args.addressId = addressId
2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
2084
  def recv_addAddressToCart(self, ):
2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
2091
    result = addAddressToCart_result()
2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
3431 rajveer 2094
    if result.scx is not None:
575 chandransh 2095
      raise result.scx
559 chandransh 2096
    return
2097
 
5553 rajveer 2098
  def addStoreToCart(self, cartId, storeId):
2099
    """
2100
    Parameters:
2101
     - cartId
2102
     - storeId
2103
    """
2104
    self.send_addStoreToCart(cartId, storeId)
2105
    self.recv_addStoreToCart()
2106
 
2107
  def send_addStoreToCart(self, cartId, storeId):
2108
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2109
    args = addStoreToCart_args()
2110
    args.cartId = cartId
2111
    args.storeId = storeId
2112
    args.write(self._oprot)
2113
    self._oprot.writeMessageEnd()
2114
    self._oprot.trans.flush()
2115
 
2116
  def recv_addStoreToCart(self, ):
2117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2118
    if mtype == TMessageType.EXCEPTION:
2119
      x = TApplicationException()
2120
      x.read(self._iprot)
2121
      self._iprot.readMessageEnd()
2122
      raise x
2123
    result = addStoreToCart_result()
2124
    result.read(self._iprot)
2125
    self._iprot.readMessageEnd()
2126
    if result.scx is not None:
2127
      raise result.scx
2128
    return
2129
 
1976 varun.gupt 2130
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2131
    """
2132
    Parameters:
2133
     - cartId
2134
     - couponCode
2135
     - totalPrice
2136
     - discountedPrice
2137
    """
2138
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2139
    self.recv_applyCouponToCart()
2140
 
2141
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2142
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2143
    args = applyCouponToCart_args()
2144
    args.cartId = cartId
2145
    args.couponCode = couponCode
2146
    args.totalPrice = totalPrice
2147
    args.discountedPrice = discountedPrice
2148
    args.write(self._oprot)
2149
    self._oprot.writeMessageEnd()
2150
    self._oprot.trans.flush()
2151
 
2152
  def recv_applyCouponToCart(self, ):
2153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2154
    if mtype == TMessageType.EXCEPTION:
2155
      x = TApplicationException()
2156
      x.read(self._iprot)
2157
      self._iprot.readMessageEnd()
2158
      raise x
2159
    result = applyCouponToCart_result()
2160
    result.read(self._iprot)
2161
    self._iprot.readMessageEnd()
3431 rajveer 2162
    if result.scx is not None:
1976 varun.gupt 2163
      raise result.scx
2164
    return
2165
 
2166
  def removeCoupon(self, cartId):
2167
    """
2168
    Parameters:
2169
     - cartId
2170
    """
2171
    self.send_removeCoupon(cartId)
2172
    self.recv_removeCoupon()
2173
 
2174
  def send_removeCoupon(self, cartId):
2175
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2176
    args = removeCoupon_args()
2177
    args.cartId = cartId
2178
    args.write(self._oprot)
2179
    self._oprot.writeMessageEnd()
2180
    self._oprot.trans.flush()
2181
 
2182
  def recv_removeCoupon(self, ):
2183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2184
    if mtype == TMessageType.EXCEPTION:
2185
      x = TApplicationException()
2186
      x.read(self._iprot)
2187
      self._iprot.readMessageEnd()
2188
      raise x
2189
    result = removeCoupon_result()
2190
    result.read(self._iprot)
2191
    self._iprot.readMessageEnd()
3431 rajveer 2192
    if result.scx is not None:
1976 varun.gupt 2193
      raise result.scx
2194
    return
2195
 
3554 varun.gupt 2196
  def deleteDiscountsFromCart(self, cartId):
2197
    """
2198
    Deletes all the discounts associated with the cart
2199
 
2200
    Parameters:
2201
     - cartId
2202
    """
2203
    self.send_deleteDiscountsFromCart(cartId)
2204
    self.recv_deleteDiscountsFromCart()
2205
 
2206
  def send_deleteDiscountsFromCart(self, cartId):
2207
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2208
    args = deleteDiscountsFromCart_args()
2209
    args.cartId = cartId
2210
    args.write(self._oprot)
2211
    self._oprot.writeMessageEnd()
2212
    self._oprot.trans.flush()
2213
 
2214
  def recv_deleteDiscountsFromCart(self, ):
2215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2216
    if mtype == TMessageType.EXCEPTION:
2217
      x = TApplicationException()
2218
      x.read(self._iprot)
2219
      self._iprot.readMessageEnd()
2220
      raise x
2221
    result = deleteDiscountsFromCart_result()
2222
    result.read(self._iprot)
2223
    self._iprot.readMessageEnd()
2224
    if result.scx is not None:
2225
      raise result.scx
2226
    return
2227
 
2228
  def saveDiscounts(self, discounts):
2229
    """
2230
    Accepts a list of thrift objects of Discount type and saves them
2231
 
2232
    Parameters:
2233
     - discounts
2234
    """
2235
    self.send_saveDiscounts(discounts)
2236
    self.recv_saveDiscounts()
2237
 
2238
  def send_saveDiscounts(self, discounts):
2239
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2240
    args = saveDiscounts_args()
2241
    args.discounts = discounts
2242
    args.write(self._oprot)
2243
    self._oprot.writeMessageEnd()
2244
    self._oprot.trans.flush()
2245
 
2246
  def recv_saveDiscounts(self, ):
2247
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2248
    if mtype == TMessageType.EXCEPTION:
2249
      x = TApplicationException()
2250
      x.read(self._iprot)
2251
      self._iprot.readMessageEnd()
2252
      raise x
2253
    result = saveDiscounts_result()
2254
    result.read(self._iprot)
2255
    self._iprot.readMessageEnd()
2256
    if result.scx is not None:
2257
      raise result.scx
2258
    return
2259
 
6389 rajveer 2260
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 2261
    """
690 chandransh 2262
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2263
 
559 chandransh 2264
    Parameters:
2265
     - cartId
2815 vikas 2266
     - sessionSource
2267
     - sessionStartTime
3858 vikas 2268
     - firstSource
2269
     - firstSourceTime
5326 rajveer 2270
     - userId
6389 rajveer 2271
     - schemeId
559 chandransh 2272
    """
6389 rajveer 2273
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
690 chandransh 2274
    return self.recv_createOrders()
559 chandransh 2275
 
6389 rajveer 2276
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
690 chandransh 2277
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2278
    args = createOrders_args()
559 chandransh 2279
    args.cartId = cartId
2815 vikas 2280
    args.sessionSource = sessionSource
2281
    args.sessionStartTime = sessionStartTime
3858 vikas 2282
    args.firstSource = firstSource
2283
    args.firstSourceTime = firstSourceTime
5326 rajveer 2284
    args.userId = userId
6389 rajveer 2285
    args.schemeId = schemeId
559 chandransh 2286
    args.write(self._oprot)
2287
    self._oprot.writeMessageEnd()
2288
    self._oprot.trans.flush()
2289
 
690 chandransh 2290
  def recv_createOrders(self, ):
559 chandransh 2291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2292
    if mtype == TMessageType.EXCEPTION:
2293
      x = TApplicationException()
2294
      x.read(self._iprot)
2295
      self._iprot.readMessageEnd()
2296
      raise x
690 chandransh 2297
    result = createOrders_result()
559 chandransh 2298
    result.read(self._iprot)
2299
    self._iprot.readMessageEnd()
3431 rajveer 2300
    if result.success is not None:
130 ashish 2301
      return result.success
3431 rajveer 2302
    if result.scx is not None:
559 chandransh 2303
      raise result.scx
690 chandransh 2304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2305
 
3557 rajveer 2306
  def validateCart(self, cartId, sourceId):
130 ashish 2307
    """
690 chandransh 2308
    Validates that:
2309
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2310
    2. All of the lines in the cart are active items.
690 chandransh 2311
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2312
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2313
 
130 ashish 2314
    Parameters:
559 chandransh 2315
     - cartId
3557 rajveer 2316
     - sourceId
130 ashish 2317
    """
3557 rajveer 2318
    self.send_validateCart(cartId, sourceId)
559 chandransh 2319
    return self.recv_validateCart()
130 ashish 2320
 
3557 rajveer 2321
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2322
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2323
    args = validateCart_args()
2324
    args.cartId = cartId
3557 rajveer 2325
    args.sourceId = sourceId
130 ashish 2326
    args.write(self._oprot)
2327
    self._oprot.writeMessageEnd()
2328
    self._oprot.trans.flush()
2329
 
559 chandransh 2330
  def recv_validateCart(self, ):
130 ashish 2331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2332
    if mtype == TMessageType.EXCEPTION:
2333
      x = TApplicationException()
2334
      x.read(self._iprot)
2335
      self._iprot.readMessageEnd()
2336
      raise x
559 chandransh 2337
    result = validateCart_result()
130 ashish 2338
    result.read(self._iprot)
2339
    self._iprot.readMessageEnd()
3431 rajveer 2340
    if result.success is not None:
130 ashish 2341
      return result.success
3431 rajveer 2342
    if result.scex is not None:
575 chandransh 2343
      raise result.scex
559 chandransh 2344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2345
 
690 chandransh 2346
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2347
    """
690 chandransh 2348
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2349
 
575 chandransh 2350
    Parameters:
690 chandransh 2351
     - fromCartId
2352
     - toCartId
2353
    """
2354
    self.send_mergeCart(fromCartId, toCartId)
2355
    self.recv_mergeCart()
2356
 
2357
  def send_mergeCart(self, fromCartId, toCartId):
2358
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2359
    args = mergeCart_args()
2360
    args.fromCartId = fromCartId
2361
    args.toCartId = toCartId
2362
    args.write(self._oprot)
2363
    self._oprot.writeMessageEnd()
2364
    self._oprot.trans.flush()
2365
 
2366
  def recv_mergeCart(self, ):
2367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2368
    if mtype == TMessageType.EXCEPTION:
2369
      x = TApplicationException()
2370
      x.read(self._iprot)
2371
      self._iprot.readMessageEnd()
2372
      raise x
2373
    result = mergeCart_result()
2374
    result.read(self._iprot)
2375
    self._iprot.readMessageEnd()
2376
    return
2377
 
2378
  def checkOut(self, cartId):
2379
    """
2380
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2381
 
690 chandransh 2382
    Parameters:
575 chandransh 2383
     - cartId
2384
    """
690 chandransh 2385
    self.send_checkOut(cartId)
2386
    return self.recv_checkOut()
575 chandransh 2387
 
690 chandransh 2388
  def send_checkOut(self, cartId):
2389
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2390
    args = checkOut_args()
575 chandransh 2391
    args.cartId = cartId
2392
    args.write(self._oprot)
2393
    self._oprot.writeMessageEnd()
2394
    self._oprot.trans.flush()
2395
 
690 chandransh 2396
  def recv_checkOut(self, ):
575 chandransh 2397
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2398
    if mtype == TMessageType.EXCEPTION:
2399
      x = TApplicationException()
2400
      x.read(self._iprot)
2401
      self._iprot.readMessageEnd()
2402
      raise x
690 chandransh 2403
    result = checkOut_result()
575 chandransh 2404
    result.read(self._iprot)
2405
    self._iprot.readMessageEnd()
3431 rajveer 2406
    if result.success is not None:
575 chandransh 2407
      return result.success
3431 rajveer 2408
    if result.scex is not None:
575 chandransh 2409
      raise result.scex
690 chandransh 2410
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2411
 
690 chandransh 2412
  def resetCart(self, cartId, items):
559 chandransh 2413
    """
690 chandransh 2414
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2415
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2416
 
559 chandransh 2417
    Parameters:
690 chandransh 2418
     - cartId
2419
     - items
559 chandransh 2420
    """
690 chandransh 2421
    self.send_resetCart(cartId, items)
2422
    return self.recv_resetCart()
130 ashish 2423
 
690 chandransh 2424
  def send_resetCart(self, cartId, items):
2425
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2426
    args = resetCart_args()
2427
    args.cartId = cartId
2428
    args.items = items
559 chandransh 2429
    args.write(self._oprot)
2430
    self._oprot.writeMessageEnd()
2431
    self._oprot.trans.flush()
2432
 
690 chandransh 2433
  def recv_resetCart(self, ):
559 chandransh 2434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2435
    if mtype == TMessageType.EXCEPTION:
2436
      x = TApplicationException()
2437
      x.read(self._iprot)
2438
      self._iprot.readMessageEnd()
2439
      raise x
690 chandransh 2440
    result = resetCart_result()
559 chandransh 2441
    result.read(self._iprot)
2442
    self._iprot.readMessageEnd()
3431 rajveer 2443
    if result.success is not None:
690 chandransh 2444
      return result.success
3431 rajveer 2445
    if result.scex is not None:
690 chandransh 2446
      raise result.scex
2447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2448
 
2981 rajveer 2449
  def getUserCount(self, userType):
559 chandransh 2450
    """
2981 rajveer 2451
    Returns number of registered users.
2452
    If userType = null, then it returns count of all users, including anonymous
2453
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2454
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2455
 
559 chandransh 2456
    Parameters:
2981 rajveer 2457
     - userType
559 chandransh 2458
    """
2981 rajveer 2459
    self.send_getUserCount(userType)
2460
    return self.recv_getUserCount()
559 chandransh 2461
 
2981 rajveer 2462
  def send_getUserCount(self, userType):
2463
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2464
    args = getUserCount_args()
2465
    args.userType = userType
559 chandransh 2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
2981 rajveer 2470
  def recv_getUserCount(self, ):
559 chandransh 2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
2981 rajveer 2477
    result = getUserCount_result()
559 chandransh 2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
3431 rajveer 2480
    if result.success is not None:
559 chandransh 2481
      return result.success
2981 rajveer 2482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2483
 
2981 rajveer 2484
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2485
    """
2981 rajveer 2486
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2487
    If any of startDate or endDate is -1, then that filter is ignored.
2488
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2489
 
2490
 
559 chandransh 2491
    Parameters:
2981 rajveer 2492
     - userType
2493
     - startDate
2494
     - endDate
559 chandransh 2495
    """
2981 rajveer 2496
    self.send_getAllUsers(userType, startDate, endDate)
2497
    return self.recv_getAllUsers()
559 chandransh 2498
 
2981 rajveer 2499
  def send_getAllUsers(self, userType, startDate, endDate):
2500
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2501
    args = getAllUsers_args()
2502
    args.userType = userType
2503
    args.startDate = startDate
2504
    args.endDate = endDate
559 chandransh 2505
    args.write(self._oprot)
2506
    self._oprot.writeMessageEnd()
2507
    self._oprot.trans.flush()
2508
 
2981 rajveer 2509
  def recv_getAllUsers(self, ):
559 chandransh 2510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2511
    if mtype == TMessageType.EXCEPTION:
2512
      x = TApplicationException()
2513
      x.read(self._iprot)
2514
      self._iprot.readMessageEnd()
2515
      raise x
2981 rajveer 2516
    result = getAllUsers_result()
559 chandransh 2517
    result.read(self._iprot)
2518
    self._iprot.readMessageEnd()
3431 rajveer 2519
    if result.success is not None:
559 chandransh 2520
      return result.success
2981 rajveer 2521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2522
 
2981 rajveer 2523
  def getMyResearchItems(self, userId):
559 chandransh 2524
    """
2981 rajveer 2525
    Returns list of item ids in myresearch for the user
3431 rajveer 2526
 
559 chandransh 2527
    Parameters:
772 rajveer 2528
     - userId
559 chandransh 2529
    """
2981 rajveer 2530
    self.send_getMyResearchItems(userId)
2531
    return self.recv_getMyResearchItems()
559 chandransh 2532
 
2981 rajveer 2533
  def send_getMyResearchItems(self, userId):
2534
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2535
    args = getMyResearchItems_args()
772 rajveer 2536
    args.userId = userId
559 chandransh 2537
    args.write(self._oprot)
2538
    self._oprot.writeMessageEnd()
2539
    self._oprot.trans.flush()
2540
 
2981 rajveer 2541
  def recv_getMyResearchItems(self, ):
559 chandransh 2542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2543
    if mtype == TMessageType.EXCEPTION:
2544
      x = TApplicationException()
2545
      x.read(self._iprot)
2546
      self._iprot.readMessageEnd()
2547
      raise x
2981 rajveer 2548
    result = getMyResearchItems_result()
559 chandransh 2549
    result.read(self._iprot)
2550
    self._iprot.readMessageEnd()
3431 rajveer 2551
    if result.success is not None:
559 chandransh 2552
      return result.success
3431 rajveer 2553
    if result.scx is not None:
559 chandransh 2554
      raise result.scx
2981 rajveer 2555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2556
 
2981 rajveer 2557
  def updateMyResearch(self, userId, itemId):
559 chandransh 2558
    """
2981 rajveer 2559
    add item to my research for a user
3431 rajveer 2560
 
559 chandransh 2561
    Parameters:
2981 rajveer 2562
     - userId
2563
     - itemId
559 chandransh 2564
    """
2981 rajveer 2565
    self.send_updateMyResearch(userId, itemId)
2566
    return self.recv_updateMyResearch()
559 chandransh 2567
 
2981 rajveer 2568
  def send_updateMyResearch(self, userId, itemId):
2569
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2570
    args = updateMyResearch_args()
2571
    args.userId = userId
2572
    args.itemId = itemId
559 chandransh 2573
    args.write(self._oprot)
2574
    self._oprot.writeMessageEnd()
2575
    self._oprot.trans.flush()
2576
 
2981 rajveer 2577
  def recv_updateMyResearch(self, ):
559 chandransh 2578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2579
    if mtype == TMessageType.EXCEPTION:
2580
      x = TApplicationException()
2581
      x.read(self._iprot)
2582
      self._iprot.readMessageEnd()
2583
      raise x
2981 rajveer 2584
    result = updateMyResearch_result()
559 chandransh 2585
    result.read(self._iprot)
2586
    self._iprot.readMessageEnd()
3431 rajveer 2587
    if result.success is not None:
2981 rajveer 2588
      return result.success
3431 rajveer 2589
    if result.scx is not None:
2981 rajveer 2590
      raise result.scx
2591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2592
 
2981 rajveer 2593
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2594
    """
2981 rajveer 2595
    delete item from my research for a user
3431 rajveer 2596
 
1596 ankur.sing 2597
    Parameters:
2981 rajveer 2598
     - userId
2599
     - itemId
1596 ankur.sing 2600
    """
2981 rajveer 2601
    self.send_deleteItemFromMyResearch(userId, itemId)
2602
    self.recv_deleteItemFromMyResearch()
559 chandransh 2603
 
2981 rajveer 2604
  def send_deleteItemFromMyResearch(self, userId, itemId):
2605
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2606
    args = deleteItemFromMyResearch_args()
2607
    args.userId = userId
2608
    args.itemId = itemId
1596 ankur.sing 2609
    args.write(self._oprot)
2610
    self._oprot.writeMessageEnd()
2611
    self._oprot.trans.flush()
2612
 
2981 rajveer 2613
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2615
    if mtype == TMessageType.EXCEPTION:
2616
      x = TApplicationException()
2617
      x.read(self._iprot)
2618
      self._iprot.readMessageEnd()
2619
      raise x
2981 rajveer 2620
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2621
    result.read(self._iprot)
2622
    self._iprot.readMessageEnd()
3431 rajveer 2623
    if result.scx is not None:
2981 rajveer 2624
      raise result.scx
2625
    return
1596 ankur.sing 2626
 
2981 rajveer 2627
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2628
    """
2981 rajveer 2629
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2630
 
1673 ankur.sing 2631
    Parameters:
2981 rajveer 2632
     - userId
1673 ankur.sing 2633
    """
2981 rajveer 2634
    self.send_getBrowseHistoryItems(userId)
2635
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2636
 
2981 rajveer 2637
  def send_getBrowseHistoryItems(self, userId):
2638
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2639
    args = getBrowseHistoryItems_args()
2640
    args.userId = userId
1673 ankur.sing 2641
    args.write(self._oprot)
2642
    self._oprot.writeMessageEnd()
2643
    self._oprot.trans.flush()
2644
 
2981 rajveer 2645
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2647
    if mtype == TMessageType.EXCEPTION:
2648
      x = TApplicationException()
2649
      x.read(self._iprot)
2650
      self._iprot.readMessageEnd()
2651
      raise x
2981 rajveer 2652
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2653
    result.read(self._iprot)
2654
    self._iprot.readMessageEnd()
3431 rajveer 2655
    if result.success is not None:
1673 ankur.sing 2656
      return result.success
3431 rajveer 2657
    if result.scx is not None:
2981 rajveer 2658
      raise result.scx
2659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2660
 
2981 rajveer 2661
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2662
    """
2981 rajveer 2663
    add item to browse history for a user
3431 rajveer 2664
 
2642 varun.gupt 2665
    Parameters:
2981 rajveer 2666
     - userId
2667
     - itemId
2642 varun.gupt 2668
    """
2981 rajveer 2669
    self.send_updateBrowseHistory(userId, itemId)
2670
    self.recv_updateBrowseHistory()
1673 ankur.sing 2671
 
2981 rajveer 2672
  def send_updateBrowseHistory(self, userId, itemId):
2673
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2674
    args = updateBrowseHistory_args()
2675
    args.userId = userId
2676
    args.itemId = itemId
2642 varun.gupt 2677
    args.write(self._oprot)
2678
    self._oprot.writeMessageEnd()
2679
    self._oprot.trans.flush()
2680
 
2981 rajveer 2681
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2683
    if mtype == TMessageType.EXCEPTION:
2684
      x = TApplicationException()
2685
      x.read(self._iprot)
2686
      self._iprot.readMessageEnd()
2687
      raise x
2981 rajveer 2688
    result = updateBrowseHistory_result()
2642 varun.gupt 2689
    result.read(self._iprot)
2690
    self._iprot.readMessageEnd()
2691
    return
2692
 
3385 varun.gupt 2693
  def getCartsWithCouponCount(self, couponCode):
2694
    """
2695
    Returns count of Carts with given coupon applied
3431 rajveer 2696
 
3385 varun.gupt 2697
    Parameters:
2698
     - couponCode
2699
    """
2700
    self.send_getCartsWithCouponCount(couponCode)
2701
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2702
 
3385 varun.gupt 2703
  def send_getCartsWithCouponCount(self, couponCode):
2704
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2705
    args = getCartsWithCouponCount_args()
2706
    args.couponCode = couponCode
2707
    args.write(self._oprot)
2708
    self._oprot.writeMessageEnd()
2709
    self._oprot.trans.flush()
2710
 
2711
  def recv_getCartsWithCouponCount(self, ):
2712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2713
    if mtype == TMessageType.EXCEPTION:
2714
      x = TApplicationException()
2715
      x.read(self._iprot)
2716
      self._iprot.readMessageEnd()
2717
      raise x
2718
    result = getCartsWithCouponCount_result()
2719
    result.read(self._iprot)
2720
    self._iprot.readMessageEnd()
3431 rajveer 2721
    if result.success is not None:
3385 varun.gupt 2722
      return result.success
2723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2724
 
3499 mandeep.dh 2725
  def increaseTrustLevel(self, userId, trustLevelDelta):
2726
    """
2727
    Updates COD trust level of a user
3385 varun.gupt 2728
 
3499 mandeep.dh 2729
    Parameters:
2730
     - userId
2731
     - trustLevelDelta
2732
    """
2733
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2734
 
2735
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2736
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2737
    args = increaseTrustLevel_args()
2738
    args.userId = userId
2739
    args.trustLevelDelta = trustLevelDelta
2740
    args.write(self._oprot)
2741
    self._oprot.writeMessageEnd()
2742
    self._oprot.trans.flush()
5407 amar.kumar 2743
  def getTrustLevel(self, userId):
2744
    """
2745
    Get trust level of a user
2746
 
2747
    Parameters:
2748
     - userId
2749
    """
2750
    self.send_getTrustLevel(userId)
2751
    return self.recv_getTrustLevel()
2752
 
2753
  def send_getTrustLevel(self, userId):
2754
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2755
    args = getTrustLevel_args()
2756
    args.userId = userId
2757
    args.write(self._oprot)
2758
    self._oprot.writeMessageEnd()
2759
    self._oprot.trans.flush()
2760
 
2761
  def recv_getTrustLevel(self, ):
2762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2763
    if mtype == TMessageType.EXCEPTION:
2764
      x = TApplicationException()
2765
      x.read(self._iprot)
2766
      self._iprot.readMessageEnd()
2767
      raise x
2768
    result = getTrustLevel_result()
2769
    result.read(self._iprot)
2770
    self._iprot.readMessageEnd()
2771
    if result.success is not None:
2772
      return result.success
2773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2774
 
4668 varun.gupt 2775
  def showCODOption(self, cartId, sourceId, pincode):
2776
    """
2777
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2778
 
4668 varun.gupt 2779
    Parameters:
2780
     - cartId
2781
     - sourceId
2782
     - pincode
2783
    """
2784
    self.send_showCODOption(cartId, sourceId, pincode)
2785
    return self.recv_showCODOption()
2786
 
2787
  def send_showCODOption(self, cartId, sourceId, pincode):
2788
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2789
    args = showCODOption_args()
2790
    args.cartId = cartId
2791
    args.sourceId = sourceId
2792
    args.pincode = pincode
2793
    args.write(self._oprot)
2794
    self._oprot.writeMessageEnd()
2795
    self._oprot.trans.flush()
2796
 
2797
  def recv_showCODOption(self, ):
2798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2799
    if mtype == TMessageType.EXCEPTION:
2800
      x = TApplicationException()
2801
      x.read(self._iprot)
2802
      self._iprot.readMessageEnd()
2803
      raise x
2804
    result = showCODOption_result()
2805
    result.read(self._iprot)
2806
    self._iprot.readMessageEnd()
2807
    if result.success is not None:
2808
      return result.success
2809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2810
 
5623 anupam.sin 2811
  def getUserEmails(self, startDate, endDate):
2812
    """
2813
    Get email addresses for users activated within a given date range
4668 varun.gupt 2814
 
5623 anupam.sin 2815
    Parameters:
2816
     - startDate
2817
     - endDate
2818
    """
2819
    self.send_getUserEmails(startDate, endDate)
2820
    return self.recv_getUserEmails()
2821
 
2822
  def send_getUserEmails(self, startDate, endDate):
2823
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2824
    args = getUserEmails_args()
2825
    args.startDate = startDate
2826
    args.endDate = endDate
2827
    args.write(self._oprot)
2828
    self._oprot.writeMessageEnd()
2829
    self._oprot.trans.flush()
2830
 
2831
  def recv_getUserEmails(self, ):
2832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2833
    if mtype == TMessageType.EXCEPTION:
2834
      x = TApplicationException()
2835
      x.read(self._iprot)
2836
      self._iprot.readMessageEnd()
2837
      raise x
2838
    result = getUserEmails_result()
2839
    result.read(self._iprot)
2840
    self._iprot.readMessageEnd()
2841
    if result.success is not None:
2842
      return result.success
2843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2844
 
2845
 
3376 rajveer 2846
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2847
  def __init__(self, handler):
3376 rajveer 2848
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2849
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2850
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2851
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2852
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2853
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2854
    self._processMap["createUser"] = Processor.process_createUser
2855
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2856
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2857
    self._processMap["userExists"] = Processor.process_userExists
2858
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2859
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2860
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2861
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2862
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2863
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2864
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2865
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2866
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2867
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2868
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2869
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2870
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2871
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2872
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 2873
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 2874
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2875
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2876
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2877
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2878
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2879
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2880
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2881
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2882
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2883
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2884
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2885
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2886
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2887
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2888
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2889
    self._processMap["getCart"] = Processor.process_getCart
2890
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2891
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2892
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2893
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 2894
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 2895
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2896
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2897
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2898
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2899
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2900
    self._processMap["validateCart"] = Processor.process_validateCart
2901
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2902
    self._processMap["checkOut"] = Processor.process_checkOut
2903
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2904
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2905
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 2906
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2907
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2908
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2909
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2910
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2911
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2912
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 2913
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 2914
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 2915
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
94 ashish 2916
 
2917
  def process(self, iprot, oprot):
2918
    (name, type, seqid) = iprot.readMessageBegin()
2919
    if name not in self._processMap:
2920
      iprot.skip(TType.STRUCT)
2921
      iprot.readMessageEnd()
2922
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2923
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2924
      x.write(oprot)
2925
      oprot.writeMessageEnd()
2926
      oprot.trans.flush()
2927
      return
2928
    else:
2929
      self._processMap[name](self, seqid, iprot, oprot)
2930
    return True
2931
 
559 chandransh 2932
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2933
    args = createAnonymousUser_args()
94 ashish 2934
    args.read(iprot)
2935
    iprot.readMessageEnd()
559 chandransh 2936
    result = createAnonymousUser_result()
94 ashish 2937
    try:
559 chandransh 2938
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2939
    except UserContextException, ucex:
2940
      result.ucex = ucex
2941
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2942
    result.write(oprot)
2943
    oprot.writeMessageEnd()
2944
    oprot.trans.flush()
2945
 
559 chandransh 2946
  def process_getUserById(self, seqid, iprot, oprot):
2947
    args = getUserById_args()
94 ashish 2948
    args.read(iprot)
2949
    iprot.readMessageEnd()
559 chandransh 2950
    result = getUserById_result()
94 ashish 2951
    try:
559 chandransh 2952
      result.success = self._handler.getUserById(args.userId)
2953
    except UserContextException, ucex:
2954
      result.ucex = ucex
2955
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2956
    result.write(oprot)
2957
    oprot.writeMessageEnd()
2958
    oprot.trans.flush()
2959
 
5326 rajveer 2960
  def process_getUserByCartId(self, seqid, iprot, oprot):
2961
    args = getUserByCartId_args()
2962
    args.read(iprot)
2963
    iprot.readMessageEnd()
2964
    result = getUserByCartId_result()
2965
    try:
2966
      result.success = self._handler.getUserByCartId(args.cartId)
2967
    except UserContextException, ucex:
2968
      result.ucex = ucex
2969
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
2970
    result.write(oprot)
2971
    oprot.writeMessageEnd()
2972
    oprot.trans.flush()
2973
 
1491 vikas 2974
  def process_getUserByEmail(self, seqid, iprot, oprot):
2975
    args = getUserByEmail_args()
2976
    args.read(iprot)
2977
    iprot.readMessageEnd()
2978
    result = getUserByEmail_result()
2979
    try:
2980
      result.success = self._handler.getUserByEmail(args.email)
2981
    except UserContextException, ucex:
2982
      result.ucex = ucex
2983
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
2984
    result.write(oprot)
2985
    oprot.writeMessageEnd()
2986
    oprot.trans.flush()
2987
 
3032 mandeep.dh 2988
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
2989
    args = getUserByMobileNumber_args()
2990
    args.read(iprot)
2991
    iprot.readMessageEnd()
2992
    result = getUserByMobileNumber_result()
2993
    try:
2994
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
2995
    except UserContextException, ucex:
2996
      result.ucex = ucex
2997
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
2998
    result.write(oprot)
2999
    oprot.writeMessageEnd()
3000
    oprot.trans.flush()
3001
 
559 chandransh 3002
  def process_createUser(self, seqid, iprot, oprot):
3003
    args = createUser_args()
94 ashish 3004
    args.read(iprot)
3005
    iprot.readMessageEnd()
559 chandransh 3006
    result = createUser_result()
94 ashish 3007
    try:
559 chandransh 3008
      result.success = self._handler.createUser(args.user)
3009
    except UserContextException, ucex:
3010
      result.ucex = ucex
3011
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3012
    result.write(oprot)
3013
    oprot.writeMessageEnd()
3014
    oprot.trans.flush()
3015
 
559 chandransh 3016
  def process_updateUser(self, seqid, iprot, oprot):
3017
    args = updateUser_args()
94 ashish 3018
    args.read(iprot)
3019
    iprot.readMessageEnd()
559 chandransh 3020
    result = updateUser_result()
94 ashish 3021
    try:
559 chandransh 3022
      result.success = self._handler.updateUser(args.user)
3023
    except UserContextException, ucex:
3024
      result.ucex = ucex
3025
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3026
    result.write(oprot)
3027
    oprot.writeMessageEnd()
3028
    oprot.trans.flush()
3029
 
122 ashish 3030
  def process_authenticateUser(self, seqid, iprot, oprot):
3031
    args = authenticateUser_args()
3032
    args.read(iprot)
3033
    iprot.readMessageEnd()
3034
    result = authenticateUser_result()
3035
    try:
559 chandransh 3036
      result.success = self._handler.authenticateUser(args.email, args.password)
3037
    except AuthenticationException, auex:
3038
      result.auex = auex
122 ashish 3039
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3040
    result.write(oprot)
3041
    oprot.writeMessageEnd()
3042
    oprot.trans.flush()
3043
 
94 ashish 3044
  def process_userExists(self, seqid, iprot, oprot):
3045
    args = userExists_args()
3046
    args.read(iprot)
3047
    iprot.readMessageEnd()
3048
    result = userExists_result()
3049
    try:
3050
      result.success = self._handler.userExists(args.email)
3051
    except UserContextException, ucx:
3052
      result.ucx = ucx
3053
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3054
    result.write(oprot)
3055
    oprot.writeMessageEnd()
3056
    oprot.trans.flush()
3057
 
3058
  def process_addAddressForUser(self, seqid, iprot, oprot):
3059
    args = addAddressForUser_args()
3060
    args.read(iprot)
3061
    iprot.readMessageEnd()
3062
    result = addAddressForUser_result()
3063
    try:
567 rajveer 3064
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3065
    except UserContextException, ucx:
3066
      result.ucx = ucx
3067
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3068
    result.write(oprot)
3069
    oprot.writeMessageEnd()
3070
    oprot.trans.flush()
3071
 
3072
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3073
    args = removeAddressForUser_args()
3074
    args.read(iprot)
3075
    iprot.readMessageEnd()
3076
    result = removeAddressForUser_result()
3077
    try:
3078
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3079
    except UserContextException, ucx:
3080
      result.ucx = ucx
3081
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3082
    result.write(oprot)
3083
    oprot.writeMessageEnd()
3084
    oprot.trans.flush()
3085
 
3086
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3087
    args = setUserAsLoggedIn_args()
3088
    args.read(iprot)
3089
    iprot.readMessageEnd()
3090
    result = setUserAsLoggedIn_result()
3091
    try:
3092
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3093
    except UserContextException, ucx:
3094
      result.ucx = ucx
3095
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3096
    result.write(oprot)
3097
    oprot.writeMessageEnd()
3098
    oprot.trans.flush()
3099
 
3100
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3101
    args = setUserAsLoggedOut_args()
3102
    args.read(iprot)
3103
    iprot.readMessageEnd()
3104
    result = setUserAsLoggedOut_result()
3105
    try:
3106
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3107
    except UserContextException, ucx:
3108
      result.ucx = ucx
3109
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3110
    result.write(oprot)
3111
    oprot.writeMessageEnd()
3112
    oprot.trans.flush()
3113
 
504 rajveer 3114
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3115
    args = setDefaultAddress_args()
3116
    args.read(iprot)
3117
    iprot.readMessageEnd()
3118
    result = setDefaultAddress_result()
3119
    try:
3120
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3121
    except UserContextException, ucx:
3122
      result.ucx = ucx
3123
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3124
    result.write(oprot)
3125
    oprot.writeMessageEnd()
3126
    oprot.trans.flush()
3127
 
94 ashish 3128
  def process_updatePassword(self, seqid, iprot, oprot):
3129
    args = updatePassword_args()
3130
    args.read(iprot)
3131
    iprot.readMessageEnd()
3132
    result = updatePassword_result()
3133
    try:
594 rajveer 3134
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3135
    except UserContextException, ucx:
3136
      result.ucx = ucx
3137
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3138
    result.write(oprot)
3139
    oprot.writeMessageEnd()
3140
    oprot.trans.flush()
3141
 
581 rajveer 3142
  def process_forgotPassword(self, seqid, iprot, oprot):
3143
    args = forgotPassword_args()
3144
    args.read(iprot)
3145
    iprot.readMessageEnd()
3146
    result = forgotPassword_result()
3147
    try:
884 rajveer 3148
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3149
    except UserContextException, ucx:
3150
      result.ucx = ucx
3151
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3152
    result.write(oprot)
3153
    oprot.writeMessageEnd()
3154
    oprot.trans.flush()
3155
 
594 rajveer 3156
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3157
    args = getAllAddressesForUser_args()
3158
    args.read(iprot)
3159
    iprot.readMessageEnd()
3160
    result = getAllAddressesForUser_result()
3161
    try:
3162
      result.success = self._handler.getAllAddressesForUser(args.userId)
3163
    except UserContextException, ucx:
3164
      result.ucx = ucx
3165
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3166
    result.write(oprot)
3167
    oprot.writeMessageEnd()
3168
    oprot.trans.flush()
3169
 
1894 vikas 3170
  def process_getAddressById(self, seqid, iprot, oprot):
3171
    args = getAddressById_args()
3172
    args.read(iprot)
3173
    iprot.readMessageEnd()
3174
    result = getAddressById_result()
3175
    try:
3176
      result.success = self._handler.getAddressById(args.addressId)
3177
    except UserContextException, ucx:
3178
      result.ucx = ucx
3179
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3180
    result.write(oprot)
3181
    oprot.writeMessageEnd()
3182
    oprot.trans.flush()
3183
 
594 rajveer 3184
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3185
    args = getDefaultAddressId_args()
3186
    args.read(iprot)
3187
    iprot.readMessageEnd()
3188
    result = getDefaultAddressId_result()
3189
    try:
3190
      result.success = self._handler.getDefaultAddressId(args.userId)
3191
    except UserContextException, ucx:
3192
      result.ucx = ucx
3193
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3194
    result.write(oprot)
3195
    oprot.writeMessageEnd()
3196
    oprot.trans.flush()
3197
 
785 rajveer 3198
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3199
    args = getDefaultPincode_args()
3200
    args.read(iprot)
3201
    iprot.readMessageEnd()
3202
    result = getDefaultPincode_result()
3203
    try:
3204
      result.success = self._handler.getDefaultPincode(args.userId)
3205
    except UserContextException, ucx:
3206
      result.ucx = ucx
3207
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3208
    result.write(oprot)
3209
    oprot.writeMessageEnd()
3210
    oprot.trans.flush()
3211
 
1274 varun.gupt 3212
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3213
    args = saveUserCommunication_args()
3214
    args.read(iprot)
3215
    iprot.readMessageEnd()
3216
    result = saveUserCommunication_result()
3217
    try:
3218
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3219
    except UserCommunicationException, ucx:
3220
      result.ucx = ucx
3221
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3222
    result.write(oprot)
3223
    oprot.writeMessageEnd()
3224
    oprot.trans.flush()
3225
 
1590 varun.gupt 3226
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3227
    args = getUserCommunicationById_args()
3228
    args.read(iprot)
3229
    iprot.readMessageEnd()
3230
    result = getUserCommunicationById_result()
3231
    try:
3232
      result.success = self._handler.getUserCommunicationById(args.id)
3233
    except UserCommunicationException, ucx:
3234
      result.ucx = ucx
3235
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3236
    result.write(oprot)
3237
    oprot.writeMessageEnd()
3238
    oprot.trans.flush()
3239
 
3240
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3241
    args = getUserCommunicationByUser_args()
3242
    args.read(iprot)
3243
    iprot.readMessageEnd()
3244
    result = getUserCommunicationByUser_result()
3245
    try:
3246
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3247
    except UserCommunicationException, ucx:
3248
      result.ucx = ucx
3249
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3250
    result.write(oprot)
3251
    oprot.writeMessageEnd()
3252
    oprot.trans.flush()
3253
 
3254
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3255
    args = getAllUserCommunications_args()
3256
    args.read(iprot)
3257
    iprot.readMessageEnd()
3258
    result = getAllUserCommunications_result()
3259
    try:
3260
      result.success = self._handler.getAllUserCommunications()
3261
    except UserCommunicationException, ucx:
3262
      result.ucx = ucx
3263
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3264
    result.write(oprot)
3265
    oprot.writeMessageEnd()
3266
    oprot.trans.flush()
3267
 
5407 amar.kumar 3268
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3269
    args = removeUserCommunication_args()
3270
    args.read(iprot)
3271
    iprot.readMessageEnd()
3272
    result = removeUserCommunication_result()
3273
    try:
3274
      self._handler.removeUserCommunication(args.id)
3275
    except UserCommunicationException, ucx:
3276
      result.ucx = ucx
3277
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3278
    result.write(oprot)
3279
    oprot.writeMessageEnd()
3280
    oprot.trans.flush()
3281
 
1845 vikas 3282
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3283
    args = createMasterAffiliate_args()
3284
    args.read(iprot)
3285
    iprot.readMessageEnd()
3286
    result = createMasterAffiliate_result()
3287
    try:
1859 vikas 3288
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3289
    except UserAffiliateException, utx:
1845 vikas 3290
      result.utx = utx
3291
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3292
    result.write(oprot)
3293
    oprot.writeMessageEnd()
3294
    oprot.trans.flush()
3295
 
1899 vikas 3296
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3297
    args = getAllMasterAffiliates_args()
3298
    args.read(iprot)
3299
    iprot.readMessageEnd()
3300
    result = getAllMasterAffiliates_result()
3301
    try:
3302
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3303
    except UserAffiliateException, utx:
1899 vikas 3304
      result.utx = utx
3305
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3306
    result.write(oprot)
3307
    oprot.writeMessageEnd()
3308
    oprot.trans.flush()
3309
 
1845 vikas 3310
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3311
    args = getMasterAffiliateById_args()
3312
    args.read(iprot)
3313
    iprot.readMessageEnd()
3314
    result = getMasterAffiliateById_result()
3315
    try:
3316
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3317
    except UserAffiliateException, utx:
1845 vikas 3318
      result.utx = utx
3319
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3320
    result.write(oprot)
3321
    oprot.writeMessageEnd()
3322
    oprot.trans.flush()
3323
 
3324
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3325
    args = getMasterAffiliateByName_args()
3326
    args.read(iprot)
3327
    iprot.readMessageEnd()
3328
    result = getMasterAffiliateByName_result()
3329
    try:
3330
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3331
    except UserAffiliateException, utx:
1845 vikas 3332
      result.utx = utx
3333
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3334
    result.write(oprot)
3335
    oprot.writeMessageEnd()
3336
    oprot.trans.flush()
3337
 
3338
  def process_createAffiliate(self, seqid, iprot, oprot):
3339
    args = createAffiliate_args()
3340
    args.read(iprot)
3341
    iprot.readMessageEnd()
3342
    result = createAffiliate_result()
3343
    try:
1859 vikas 3344
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3345
    except UserAffiliateException, utx:
1845 vikas 3346
      result.utx = utx
3347
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3348
    result.write(oprot)
3349
    oprot.writeMessageEnd()
3350
    oprot.trans.flush()
3351
 
3352
  def process_getAffiliateById(self, seqid, iprot, oprot):
3353
    args = getAffiliateById_args()
3354
    args.read(iprot)
3355
    iprot.readMessageEnd()
3356
    result = getAffiliateById_result()
3357
    try:
3358
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3359
    except UserAffiliateException, utx:
1845 vikas 3360
      result.utx = utx
3361
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3362
    result.write(oprot)
3363
    oprot.writeMessageEnd()
3364
    oprot.trans.flush()
3365
 
3366
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3367
    args = getAffiliateByName_args()
3368
    args.read(iprot)
3369
    iprot.readMessageEnd()
3370
    result = getAffiliateByName_result()
3371
    try:
3372
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3373
    except UserAffiliateException, utx:
1845 vikas 3374
      result.utx = utx
3375
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3376
    result.write(oprot)
3377
    oprot.writeMessageEnd()
3378
    oprot.trans.flush()
3379
 
3380
  def process_getTrackerById(self, seqid, iprot, oprot):
3381
    args = getTrackerById_args()
3382
    args.read(iprot)
3383
    iprot.readMessageEnd()
3384
    result = getTrackerById_result()
3385
    try:
1996 vikas 3386
      result.success = self._handler.getTrackerById(args.id)
3387
    except UserAffiliateException, utx:
1845 vikas 3388
      result.utx = utx
3389
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3390
    result.write(oprot)
3391
    oprot.writeMessageEnd()
3392
    oprot.trans.flush()
3393
 
1996 vikas 3394
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3395
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3396
    args.read(iprot)
3397
    iprot.readMessageEnd()
1996 vikas 3398
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3399
    try:
1996 vikas 3400
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3401
    except UserAffiliateException, utx:
1845 vikas 3402
      result.utx = utx
1996 vikas 3403
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3404
    result.write(oprot)
3405
    oprot.writeMessageEnd()
3406
    oprot.trans.flush()
3407
 
3408
  def process_addTrackLog(self, seqid, iprot, oprot):
3409
    args = addTrackLog_args()
3410
    args.read(iprot)
3411
    iprot.readMessageEnd()
3412
    result = addTrackLog_result()
3413
    try:
1996 vikas 3414
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3415
    except UserAffiliateException, utx:
1845 vikas 3416
      result.utx = utx
3417
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3418
    result.write(oprot)
3419
    oprot.writeMessageEnd()
3420
    oprot.trans.flush()
3421
 
3422
  def process_getTrackLogById(self, seqid, iprot, oprot):
3423
    args = getTrackLogById_args()
3424
    args.read(iprot)
3425
    iprot.readMessageEnd()
3426
    result = getTrackLogById_result()
3427
    try:
3428
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3429
    except UserAffiliateException, utx:
1845 vikas 3430
      result.utx = utx
3431
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3432
    result.write(oprot)
3433
    oprot.writeMessageEnd()
3434
    oprot.trans.flush()
3435
 
1996 vikas 3436
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3437
    args = getTrackLogsByAffiliate_args()
1845 vikas 3438
    args.read(iprot)
3439
    iprot.readMessageEnd()
1996 vikas 3440
    result = getTrackLogsByAffiliate_result()
1845 vikas 3441
    try:
3293 vikas 3442
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3443
    except UserAffiliateException, utx:
1845 vikas 3444
      result.utx = utx
1996 vikas 3445
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3446
    result.write(oprot)
3447
    oprot.writeMessageEnd()
3448
    oprot.trans.flush()
3449
 
3450
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3451
    args = getTrackLogsByUser_args()
3452
    args.read(iprot)
3453
    iprot.readMessageEnd()
3454
    result = getTrackLogsByUser_result()
3455
    try:
3456
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3457
    except UserAffiliateException, utx:
1845 vikas 3458
      result.utx = utx
3459
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3460
    result.write(oprot)
3461
    oprot.writeMessageEnd()
3462
    oprot.trans.flush()
3463
 
3464
  def process_getTrackLogs(self, seqid, iprot, oprot):
3465
    args = getTrackLogs_args()
3466
    args.read(iprot)
3467
    iprot.readMessageEnd()
3468
    result = getTrackLogs_result()
3469
    try:
1996 vikas 3470
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3471
    except UserAffiliateException, utx:
1845 vikas 3472
      result.utx = utx
3473
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3474
    result.write(oprot)
3475
    oprot.writeMessageEnd()
3476
    oprot.trans.flush()
3477
 
559 chandransh 3478
  def process_getCurrentCart(self, seqid, iprot, oprot):
3479
    args = getCurrentCart_args()
94 ashish 3480
    args.read(iprot)
3481
    iprot.readMessageEnd()
559 chandransh 3482
    result = getCurrentCart_result()
94 ashish 3483
    try:
559 chandransh 3484
      result.success = self._handler.getCurrentCart(args.userId)
3485
    except ShoppingCartException, scx:
3486
      result.scx = scx
3487
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3488
    result.write(oprot)
3489
    oprot.writeMessageEnd()
3490
    oprot.trans.flush()
3491
 
559 chandransh 3492
  def process_getCart(self, seqid, iprot, oprot):
3493
    args = getCart_args()
94 ashish 3494
    args.read(iprot)
3495
    iprot.readMessageEnd()
559 chandransh 3496
    result = getCart_result()
94 ashish 3497
    try:
559 chandransh 3498
      result.success = self._handler.getCart(args.cartId)
3499
    except ShoppingCartException, scx:
3500
      result.scx = scx
3501
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3502
    result.write(oprot)
3503
    oprot.writeMessageEnd()
3504
    oprot.trans.flush()
3505
 
559 chandransh 3506
  def process_getCartsByTime(self, seqid, iprot, oprot):
3507
    args = getCartsByTime_args()
94 ashish 3508
    args.read(iprot)
3509
    iprot.readMessageEnd()
559 chandransh 3510
    result = getCartsByTime_result()
94 ashish 3511
    try:
559 chandransh 3512
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3513
    except ShoppingCartException, scx:
3514
      result.scx = scx
3515
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3516
    result.write(oprot)
3517
    oprot.writeMessageEnd()
3518
    oprot.trans.flush()
3519
 
559 chandransh 3520
  def process_addItemToCart(self, seqid, iprot, oprot):
3521
    args = addItemToCart_args()
130 ashish 3522
    args.read(iprot)
3523
    iprot.readMessageEnd()
559 chandransh 3524
    result = addItemToCart_result()
130 ashish 3525
    try:
3557 rajveer 3526
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3527
    except ShoppingCartException, scx:
3528
      result.scx = scx
3529
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3530
    result.write(oprot)
3531
    oprot.writeMessageEnd()
3532
    oprot.trans.flush()
3533
 
559 chandransh 3534
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3535
    args = deleteItemFromCart_args()
3536
    args.read(iprot)
3537
    iprot.readMessageEnd()
3538
    result = deleteItemFromCart_result()
3539
    try:
3540
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3541
    except ShoppingCartException, scx:
3542
      result.scx = scx
3543
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3544
    result.write(oprot)
3545
    oprot.writeMessageEnd()
3546
    oprot.trans.flush()
130 ashish 3547
 
559 chandransh 3548
  def process_addAddressToCart(self, seqid, iprot, oprot):
3549
    args = addAddressToCart_args()
3550
    args.read(iprot)
3551
    iprot.readMessageEnd()
3552
    result = addAddressToCart_result()
575 chandransh 3553
    try:
3554
      self._handler.addAddressToCart(args.cartId, args.addressId)
3555
    except ShoppingCartException, scx:
3556
      result.scx = scx
559 chandransh 3557
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3558
    result.write(oprot)
3559
    oprot.writeMessageEnd()
3560
    oprot.trans.flush()
3561
 
5553 rajveer 3562
  def process_addStoreToCart(self, seqid, iprot, oprot):
3563
    args = addStoreToCart_args()
3564
    args.read(iprot)
3565
    iprot.readMessageEnd()
3566
    result = addStoreToCart_result()
3567
    try:
3568
      self._handler.addStoreToCart(args.cartId, args.storeId)
3569
    except ShoppingCartException, scx:
3570
      result.scx = scx
3571
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3572
    result.write(oprot)
3573
    oprot.writeMessageEnd()
3574
    oprot.trans.flush()
3575
 
1976 varun.gupt 3576
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3577
    args = applyCouponToCart_args()
3578
    args.read(iprot)
3579
    iprot.readMessageEnd()
3580
    result = applyCouponToCart_result()
3581
    try:
3582
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3583
    except ShoppingCartException, scx:
3584
      result.scx = scx
3585
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3586
    result.write(oprot)
3587
    oprot.writeMessageEnd()
3588
    oprot.trans.flush()
3589
 
3590
  def process_removeCoupon(self, seqid, iprot, oprot):
3591
    args = removeCoupon_args()
3592
    args.read(iprot)
3593
    iprot.readMessageEnd()
3594
    result = removeCoupon_result()
3595
    try:
3596
      self._handler.removeCoupon(args.cartId)
3597
    except ShoppingCartException, scx:
3598
      result.scx = scx
3599
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3600
    result.write(oprot)
3601
    oprot.writeMessageEnd()
3602
    oprot.trans.flush()
3603
 
3554 varun.gupt 3604
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3605
    args = deleteDiscountsFromCart_args()
3606
    args.read(iprot)
3607
    iprot.readMessageEnd()
3608
    result = deleteDiscountsFromCart_result()
3609
    try:
3610
      self._handler.deleteDiscountsFromCart(args.cartId)
3611
    except ShoppingCartException, scx:
3612
      result.scx = scx
3613
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3614
    result.write(oprot)
3615
    oprot.writeMessageEnd()
3616
    oprot.trans.flush()
3617
 
3618
  def process_saveDiscounts(self, seqid, iprot, oprot):
3619
    args = saveDiscounts_args()
3620
    args.read(iprot)
3621
    iprot.readMessageEnd()
3622
    result = saveDiscounts_result()
3623
    try:
3624
      self._handler.saveDiscounts(args.discounts)
3625
    except ShoppingCartException, scx:
3626
      result.scx = scx
3627
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3628
    result.write(oprot)
3629
    oprot.writeMessageEnd()
3630
    oprot.trans.flush()
3631
 
690 chandransh 3632
  def process_createOrders(self, seqid, iprot, oprot):
3633
    args = createOrders_args()
559 chandransh 3634
    args.read(iprot)
3635
    iprot.readMessageEnd()
690 chandransh 3636
    result = createOrders_result()
559 chandransh 3637
    try:
6389 rajveer 3638
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
559 chandransh 3639
    except ShoppingCartException, scx:
3640
      result.scx = scx
690 chandransh 3641
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3642
    result.write(oprot)
3643
    oprot.writeMessageEnd()
3644
    oprot.trans.flush()
3645
 
3646
  def process_validateCart(self, seqid, iprot, oprot):
3647
    args = validateCart_args()
3648
    args.read(iprot)
3649
    iprot.readMessageEnd()
3650
    result = validateCart_result()
575 chandransh 3651
    try:
3557 rajveer 3652
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3653
    except ShoppingCartException, scex:
3654
      result.scex = scex
559 chandransh 3655
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3656
    result.write(oprot)
3657
    oprot.writeMessageEnd()
3658
    oprot.trans.flush()
3659
 
690 chandransh 3660
  def process_mergeCart(self, seqid, iprot, oprot):
3661
    args = mergeCart_args()
575 chandransh 3662
    args.read(iprot)
3663
    iprot.readMessageEnd()
690 chandransh 3664
    result = mergeCart_result()
3665
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3666
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3667
    result.write(oprot)
3668
    oprot.writeMessageEnd()
3669
    oprot.trans.flush()
3670
 
3671
  def process_checkOut(self, seqid, iprot, oprot):
3672
    args = checkOut_args()
3673
    args.read(iprot)
3674
    iprot.readMessageEnd()
3675
    result = checkOut_result()
575 chandransh 3676
    try:
690 chandransh 3677
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3678
    except ShoppingCartException, scex:
3679
      result.scex = scex
690 chandransh 3680
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3681
    result.write(oprot)
3682
    oprot.writeMessageEnd()
3683
    oprot.trans.flush()
3684
 
690 chandransh 3685
  def process_resetCart(self, seqid, iprot, oprot):
3686
    args = resetCart_args()
559 chandransh 3687
    args.read(iprot)
3688
    iprot.readMessageEnd()
690 chandransh 3689
    result = resetCart_result()
3690
    try:
3691
      result.success = self._handler.resetCart(args.cartId, args.items)
3692
    except ShoppingCartException, scex:
3693
      result.scex = scex
3694
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3695
    result.write(oprot)
3696
    oprot.writeMessageEnd()
3697
    oprot.trans.flush()
3698
 
2981 rajveer 3699
  def process_getUserCount(self, seqid, iprot, oprot):
3700
    args = getUserCount_args()
559 chandransh 3701
    args.read(iprot)
3702
    iprot.readMessageEnd()
2981 rajveer 3703
    result = getUserCount_result()
3704
    result.success = self._handler.getUserCount(args.userType)
3705
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
3709
 
2981 rajveer 3710
  def process_getAllUsers(self, seqid, iprot, oprot):
3711
    args = getAllUsers_args()
559 chandransh 3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
2981 rajveer 3714
    result = getAllUsers_result()
3715
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3716
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3717
    result.write(oprot)
3718
    oprot.writeMessageEnd()
3719
    oprot.trans.flush()
3720
 
2981 rajveer 3721
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3722
    args = getMyResearchItems_args()
559 chandransh 3723
    args.read(iprot)
3724
    iprot.readMessageEnd()
2981 rajveer 3725
    result = getMyResearchItems_result()
559 chandransh 3726
    try:
2981 rajveer 3727
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3728
    except WidgetException, scx:
3729
      result.scx = scx
2981 rajveer 3730
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3731
    result.write(oprot)
3732
    oprot.writeMessageEnd()
3733
    oprot.trans.flush()
3734
 
2981 rajveer 3735
  def process_updateMyResearch(self, seqid, iprot, oprot):
3736
    args = updateMyResearch_args()
772 rajveer 3737
    args.read(iprot)
3738
    iprot.readMessageEnd()
2981 rajveer 3739
    result = updateMyResearch_result()
3740
    try:
3741
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3742
    except WidgetException, scx:
3743
      result.scx = scx
3744
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
559 chandransh 3748
 
2981 rajveer 3749
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3750
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
2981 rajveer 3753
    result = deleteItemFromMyResearch_result()
3754
    try:
3755
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3756
    except WidgetException, scx:
3757
      result.scx = scx
3758
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3759
    result.write(oprot)
3760
    oprot.writeMessageEnd()
3761
    oprot.trans.flush()
772 rajveer 3762
 
2981 rajveer 3763
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3764
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3765
    args.read(iprot)
3766
    iprot.readMessageEnd()
2981 rajveer 3767
    result = getBrowseHistoryItems_result()
3768
    try:
3769
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3770
    except WidgetException, scx:
3771
      result.scx = scx
3772
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
1596 ankur.sing 3776
 
2981 rajveer 3777
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3778
    args = updateBrowseHistory_args()
2642 varun.gupt 3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
2981 rajveer 3781
    result = updateBrowseHistory_result()
3782
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3783
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3784
    result.write(oprot)
3785
    oprot.writeMessageEnd()
3786
    oprot.trans.flush()
1673 ankur.sing 3787
 
3385 varun.gupt 3788
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3789
    args = getCartsWithCouponCount_args()
3790
    args.read(iprot)
3791
    iprot.readMessageEnd()
3792
    result = getCartsWithCouponCount_result()
3793
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3794
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3795
    result.write(oprot)
3796
    oprot.writeMessageEnd()
3797
    oprot.trans.flush()
2642 varun.gupt 3798
 
3499 mandeep.dh 3799
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3800
    args = increaseTrustLevel_args()
3801
    args.read(iprot)
3802
    iprot.readMessageEnd()
3803
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3804
    return
3385 varun.gupt 3805
 
5407 amar.kumar 3806
  def process_getTrustLevel(self, seqid, iprot, oprot):
3807
    args = getTrustLevel_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = getTrustLevel_result()
3811
    result.success = self._handler.getTrustLevel(args.userId)
3812
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
3813
    result.write(oprot)
3814
    oprot.writeMessageEnd()
3815
    oprot.trans.flush()
3816
 
4668 varun.gupt 3817
  def process_showCODOption(self, seqid, iprot, oprot):
3818
    args = showCODOption_args()
3819
    args.read(iprot)
3820
    iprot.readMessageEnd()
3821
    result = showCODOption_result()
3822
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3823
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3824
    result.write(oprot)
3825
    oprot.writeMessageEnd()
3826
    oprot.trans.flush()
3499 mandeep.dh 3827
 
5623 anupam.sin 3828
  def process_getUserEmails(self, seqid, iprot, oprot):
3829
    args = getUserEmails_args()
3830
    args.read(iprot)
3831
    iprot.readMessageEnd()
3832
    result = getUserEmails_result()
3833
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
3834
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
3835
    result.write(oprot)
3836
    oprot.writeMessageEnd()
3837
    oprot.trans.flush()
4668 varun.gupt 3838
 
5623 anupam.sin 3839
 
94 ashish 3840
# HELPER FUNCTIONS AND STRUCTURES
3841
 
559 chandransh 3842
class createAnonymousUser_args:
94 ashish 3843
  """
3844
  Attributes:
559 chandransh 3845
   - jsessionId
94 ashish 3846
  """
3847
 
3848
  thrift_spec = (
3849
    None, # 0
559 chandransh 3850
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3851
  )
3852
 
559 chandransh 3853
  def __init__(self, jsessionId=None,):
3854
    self.jsessionId = jsessionId
94 ashish 3855
 
3856
  def read(self, iprot):
3857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3859
      return
3860
    iprot.readStructBegin()
3861
    while True:
3862
      (fname, ftype, fid) = iprot.readFieldBegin()
3863
      if ftype == TType.STOP:
3864
        break
3865
      if fid == 1:
559 chandransh 3866
        if ftype == TType.STRING:
3867
          self.jsessionId = iprot.readString();
94 ashish 3868
        else:
3869
          iprot.skip(ftype)
3870
      else:
3871
        iprot.skip(ftype)
3872
      iprot.readFieldEnd()
3873
    iprot.readStructEnd()
3874
 
3875
  def write(self, oprot):
3876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3878
      return
559 chandransh 3879
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3880
    if self.jsessionId is not None:
559 chandransh 3881
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3882
      oprot.writeString(self.jsessionId)
94 ashish 3883
      oprot.writeFieldEnd()
3884
    oprot.writeFieldStop()
3885
    oprot.writeStructEnd()
3886
 
3431 rajveer 3887
  def validate(self):
3888
    return
3889
 
3890
 
94 ashish 3891
  def __repr__(self):
3892
    L = ['%s=%r' % (key, value)
3893
      for key, value in self.__dict__.iteritems()]
3894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3895
 
3896
  def __eq__(self, other):
3897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3898
 
3899
  def __ne__(self, other):
3900
    return not (self == other)
3901
 
559 chandransh 3902
class createAnonymousUser_result:
94 ashish 3903
  """
3904
  Attributes:
3905
   - success
559 chandransh 3906
   - ucex
94 ashish 3907
  """
3908
 
3909
  thrift_spec = (
559 chandransh 3910
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3911
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3912
  )
3913
 
559 chandransh 3914
  def __init__(self, success=None, ucex=None,):
94 ashish 3915
    self.success = success
559 chandransh 3916
    self.ucex = ucex
94 ashish 3917
 
3918
  def read(self, iprot):
3919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3921
      return
3922
    iprot.readStructBegin()
3923
    while True:
3924
      (fname, ftype, fid) = iprot.readFieldBegin()
3925
      if ftype == TType.STOP:
3926
        break
3927
      if fid == 0:
3928
        if ftype == TType.STRUCT:
559 chandransh 3929
          self.success = User()
94 ashish 3930
          self.success.read(iprot)
3931
        else:
3932
          iprot.skip(ftype)
3933
      elif fid == 1:
3934
        if ftype == TType.STRUCT:
559 chandransh 3935
          self.ucex = UserContextException()
3936
          self.ucex.read(iprot)
94 ashish 3937
        else:
3938
          iprot.skip(ftype)
3939
      else:
3940
        iprot.skip(ftype)
3941
      iprot.readFieldEnd()
3942
    iprot.readStructEnd()
3943
 
3944
  def write(self, oprot):
3945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3947
      return
559 chandransh 3948
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 3949
    if self.success is not None:
94 ashish 3950
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3951
      self.success.write(oprot)
3952
      oprot.writeFieldEnd()
3431 rajveer 3953
    if self.ucex is not None:
559 chandransh 3954
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3955
      self.ucex.write(oprot)
94 ashish 3956
      oprot.writeFieldEnd()
3957
    oprot.writeFieldStop()
3958
    oprot.writeStructEnd()
3959
 
3431 rajveer 3960
  def validate(self):
3961
    return
3962
 
3963
 
94 ashish 3964
  def __repr__(self):
3965
    L = ['%s=%r' % (key, value)
3966
      for key, value in self.__dict__.iteritems()]
3967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3968
 
3969
  def __eq__(self, other):
3970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3971
 
3972
  def __ne__(self, other):
3973
    return not (self == other)
3974
 
559 chandransh 3975
class getUserById_args:
94 ashish 3976
  """
3977
  Attributes:
3978
   - userId
3979
  """
3980
 
3981
  thrift_spec = (
3982
    None, # 0
3983
    (1, TType.I64, 'userId', None, None, ), # 1
3984
  )
3985
 
559 chandransh 3986
  def __init__(self, userId=None,):
94 ashish 3987
    self.userId = userId
3988
 
3989
  def read(self, iprot):
3990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3992
      return
3993
    iprot.readStructBegin()
3994
    while True:
3995
      (fname, ftype, fid) = iprot.readFieldBegin()
3996
      if ftype == TType.STOP:
3997
        break
3998
      if fid == 1:
3999
        if ftype == TType.I64:
4000
          self.userId = iprot.readI64();
4001
        else:
4002
          iprot.skip(ftype)
4003
      else:
4004
        iprot.skip(ftype)
4005
      iprot.readFieldEnd()
4006
    iprot.readStructEnd()
4007
 
4008
  def write(self, oprot):
4009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4011
      return
559 chandransh 4012
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4013
    if self.userId is not None:
94 ashish 4014
      oprot.writeFieldBegin('userId', TType.I64, 1)
4015
      oprot.writeI64(self.userId)
4016
      oprot.writeFieldEnd()
4017
    oprot.writeFieldStop()
4018
    oprot.writeStructEnd()
4019
 
3431 rajveer 4020
  def validate(self):
4021
    return
4022
 
4023
 
94 ashish 4024
  def __repr__(self):
4025
    L = ['%s=%r' % (key, value)
4026
      for key, value in self.__dict__.iteritems()]
4027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4028
 
4029
  def __eq__(self, other):
4030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4031
 
4032
  def __ne__(self, other):
4033
    return not (self == other)
4034
 
559 chandransh 4035
class getUserById_result:
94 ashish 4036
  """
4037
  Attributes:
4038
   - success
559 chandransh 4039
   - ucex
94 ashish 4040
  """
4041
 
4042
  thrift_spec = (
559 chandransh 4043
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4044
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4045
  )
4046
 
559 chandransh 4047
  def __init__(self, success=None, ucex=None,):
94 ashish 4048
    self.success = success
559 chandransh 4049
    self.ucex = ucex
94 ashish 4050
 
4051
  def read(self, iprot):
4052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4054
      return
4055
    iprot.readStructBegin()
4056
    while True:
4057
      (fname, ftype, fid) = iprot.readFieldBegin()
4058
      if ftype == TType.STOP:
4059
        break
4060
      if fid == 0:
4061
        if ftype == TType.STRUCT:
559 chandransh 4062
          self.success = User()
94 ashish 4063
          self.success.read(iprot)
4064
        else:
4065
          iprot.skip(ftype)
4066
      elif fid == 1:
4067
        if ftype == TType.STRUCT:
559 chandransh 4068
          self.ucex = UserContextException()
4069
          self.ucex.read(iprot)
94 ashish 4070
        else:
4071
          iprot.skip(ftype)
4072
      else:
4073
        iprot.skip(ftype)
4074
      iprot.readFieldEnd()
4075
    iprot.readStructEnd()
4076
 
4077
  def write(self, oprot):
4078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4080
      return
559 chandransh 4081
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4082
    if self.success is not None:
94 ashish 4083
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4084
      self.success.write(oprot)
4085
      oprot.writeFieldEnd()
3431 rajveer 4086
    if self.ucex is not None:
559 chandransh 4087
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4088
      self.ucex.write(oprot)
94 ashish 4089
      oprot.writeFieldEnd()
4090
    oprot.writeFieldStop()
4091
    oprot.writeStructEnd()
4092
 
3431 rajveer 4093
  def validate(self):
4094
    return
4095
 
4096
 
94 ashish 4097
  def __repr__(self):
4098
    L = ['%s=%r' % (key, value)
4099
      for key, value in self.__dict__.iteritems()]
4100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4101
 
4102
  def __eq__(self, other):
4103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4104
 
4105
  def __ne__(self, other):
4106
    return not (self == other)
4107
 
5326 rajveer 4108
class getUserByCartId_args:
1491 vikas 4109
  """
4110
  Attributes:
5326 rajveer 4111
   - cartId
1491 vikas 4112
  """
4113
 
4114
  thrift_spec = (
4115
    None, # 0
5326 rajveer 4116
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4117
  )
4118
 
5326 rajveer 4119
  def __init__(self, cartId=None,):
4120
    self.cartId = cartId
1491 vikas 4121
 
4122
  def read(self, iprot):
4123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4125
      return
4126
    iprot.readStructBegin()
4127
    while True:
4128
      (fname, ftype, fid) = iprot.readFieldBegin()
4129
      if ftype == TType.STOP:
4130
        break
4131
      if fid == 1:
5326 rajveer 4132
        if ftype == TType.I64:
4133
          self.cartId = iprot.readI64();
1491 vikas 4134
        else:
4135
          iprot.skip(ftype)
4136
      else:
4137
        iprot.skip(ftype)
4138
      iprot.readFieldEnd()
4139
    iprot.readStructEnd()
4140
 
4141
  def write(self, oprot):
4142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4144
      return
5326 rajveer 4145
    oprot.writeStructBegin('getUserByCartId_args')
4146
    if self.cartId is not None:
4147
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4148
      oprot.writeI64(self.cartId)
1491 vikas 4149
      oprot.writeFieldEnd()
4150
    oprot.writeFieldStop()
4151
    oprot.writeStructEnd()
4152
 
3431 rajveer 4153
  def validate(self):
4154
    return
4155
 
4156
 
1491 vikas 4157
  def __repr__(self):
4158
    L = ['%s=%r' % (key, value)
4159
      for key, value in self.__dict__.iteritems()]
4160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4161
 
4162
  def __eq__(self, other):
4163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4164
 
4165
  def __ne__(self, other):
4166
    return not (self == other)
4167
 
5326 rajveer 4168
class getUserByCartId_result:
1491 vikas 4169
  """
4170
  Attributes:
4171
   - success
4172
   - ucex
4173
  """
4174
 
4175
  thrift_spec = (
4176
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4177
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4178
  )
4179
 
4180
  def __init__(self, success=None, ucex=None,):
4181
    self.success = success
4182
    self.ucex = ucex
4183
 
4184
  def read(self, iprot):
4185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4187
      return
4188
    iprot.readStructBegin()
4189
    while True:
4190
      (fname, ftype, fid) = iprot.readFieldBegin()
4191
      if ftype == TType.STOP:
4192
        break
4193
      if fid == 0:
4194
        if ftype == TType.STRUCT:
4195
          self.success = User()
4196
          self.success.read(iprot)
4197
        else:
4198
          iprot.skip(ftype)
4199
      elif fid == 1:
4200
        if ftype == TType.STRUCT:
4201
          self.ucex = UserContextException()
4202
          self.ucex.read(iprot)
4203
        else:
4204
          iprot.skip(ftype)
4205
      else:
4206
        iprot.skip(ftype)
4207
      iprot.readFieldEnd()
4208
    iprot.readStructEnd()
4209
 
4210
  def write(self, oprot):
4211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4213
      return
5326 rajveer 4214
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4215
    if self.success is not None:
1491 vikas 4216
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4217
      self.success.write(oprot)
4218
      oprot.writeFieldEnd()
3431 rajveer 4219
    if self.ucex is not None:
1491 vikas 4220
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4221
      self.ucex.write(oprot)
4222
      oprot.writeFieldEnd()
4223
    oprot.writeFieldStop()
4224
    oprot.writeStructEnd()
4225
 
3431 rajveer 4226
  def validate(self):
4227
    return
4228
 
4229
 
1491 vikas 4230
  def __repr__(self):
4231
    L = ['%s=%r' % (key, value)
4232
      for key, value in self.__dict__.iteritems()]
4233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4234
 
4235
  def __eq__(self, other):
4236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4237
 
4238
  def __ne__(self, other):
4239
    return not (self == other)
4240
 
5326 rajveer 4241
class getUserByEmail_args:
3032 mandeep.dh 4242
  """
4243
  Attributes:
5326 rajveer 4244
   - email
3032 mandeep.dh 4245
  """
4246
 
4247
  thrift_spec = (
4248
    None, # 0
5326 rajveer 4249
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4250
  )
4251
 
5326 rajveer 4252
  def __init__(self, email=None,):
4253
    self.email = email
3032 mandeep.dh 4254
 
4255
  def read(self, iprot):
4256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4258
      return
4259
    iprot.readStructBegin()
4260
    while True:
4261
      (fname, ftype, fid) = iprot.readFieldBegin()
4262
      if ftype == TType.STOP:
4263
        break
4264
      if fid == 1:
5326 rajveer 4265
        if ftype == TType.STRING:
4266
          self.email = iprot.readString();
3032 mandeep.dh 4267
        else:
4268
          iprot.skip(ftype)
4269
      else:
4270
        iprot.skip(ftype)
4271
      iprot.readFieldEnd()
4272
    iprot.readStructEnd()
4273
 
4274
  def write(self, oprot):
4275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4277
      return
5326 rajveer 4278
    oprot.writeStructBegin('getUserByEmail_args')
4279
    if self.email is not None:
4280
      oprot.writeFieldBegin('email', TType.STRING, 1)
4281
      oprot.writeString(self.email)
3032 mandeep.dh 4282
      oprot.writeFieldEnd()
4283
    oprot.writeFieldStop()
4284
    oprot.writeStructEnd()
4285
 
3431 rajveer 4286
  def validate(self):
4287
    return
4288
 
4289
 
3032 mandeep.dh 4290
  def __repr__(self):
4291
    L = ['%s=%r' % (key, value)
4292
      for key, value in self.__dict__.iteritems()]
4293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4294
 
4295
  def __eq__(self, other):
4296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4297
 
4298
  def __ne__(self, other):
4299
    return not (self == other)
4300
 
5326 rajveer 4301
class getUserByEmail_result:
3032 mandeep.dh 4302
  """
4303
  Attributes:
4304
   - success
4305
   - ucex
4306
  """
4307
 
4308
  thrift_spec = (
4309
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4310
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4311
  )
4312
 
4313
  def __init__(self, success=None, ucex=None,):
4314
    self.success = success
4315
    self.ucex = ucex
4316
 
4317
  def read(self, iprot):
4318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4320
      return
4321
    iprot.readStructBegin()
4322
    while True:
4323
      (fname, ftype, fid) = iprot.readFieldBegin()
4324
      if ftype == TType.STOP:
4325
        break
4326
      if fid == 0:
4327
        if ftype == TType.STRUCT:
4328
          self.success = User()
4329
          self.success.read(iprot)
4330
        else:
4331
          iprot.skip(ftype)
4332
      elif fid == 1:
4333
        if ftype == TType.STRUCT:
4334
          self.ucex = UserContextException()
4335
          self.ucex.read(iprot)
4336
        else:
4337
          iprot.skip(ftype)
4338
      else:
4339
        iprot.skip(ftype)
4340
      iprot.readFieldEnd()
4341
    iprot.readStructEnd()
4342
 
4343
  def write(self, oprot):
4344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4346
      return
5326 rajveer 4347
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4348
    if self.success is not None:
3032 mandeep.dh 4349
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4350
      self.success.write(oprot)
4351
      oprot.writeFieldEnd()
3431 rajveer 4352
    if self.ucex is not None:
3032 mandeep.dh 4353
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4354
      self.ucex.write(oprot)
4355
      oprot.writeFieldEnd()
4356
    oprot.writeFieldStop()
4357
    oprot.writeStructEnd()
4358
 
3431 rajveer 4359
  def validate(self):
4360
    return
4361
 
4362
 
3032 mandeep.dh 4363
  def __repr__(self):
4364
    L = ['%s=%r' % (key, value)
4365
      for key, value in self.__dict__.iteritems()]
4366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4367
 
4368
  def __eq__(self, other):
4369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4370
 
4371
  def __ne__(self, other):
4372
    return not (self == other)
4373
 
5326 rajveer 4374
class getUserByMobileNumber_args:
94 ashish 4375
  """
4376
  Attributes:
5326 rajveer 4377
   - mobileNumber
94 ashish 4378
  """
4379
 
4380
  thrift_spec = (
4381
    None, # 0
5326 rajveer 4382
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4383
  )
4384
 
5326 rajveer 4385
  def __init__(self, mobileNumber=None,):
4386
    self.mobileNumber = mobileNumber
94 ashish 4387
 
4388
  def read(self, iprot):
4389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4391
      return
4392
    iprot.readStructBegin()
4393
    while True:
4394
      (fname, ftype, fid) = iprot.readFieldBegin()
4395
      if ftype == TType.STOP:
4396
        break
4397
      if fid == 1:
5326 rajveer 4398
        if ftype == TType.I64:
4399
          self.mobileNumber = iprot.readI64();
94 ashish 4400
        else:
4401
          iprot.skip(ftype)
4402
      else:
4403
        iprot.skip(ftype)
4404
      iprot.readFieldEnd()
4405
    iprot.readStructEnd()
4406
 
4407
  def write(self, oprot):
4408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4410
      return
5326 rajveer 4411
    oprot.writeStructBegin('getUserByMobileNumber_args')
4412
    if self.mobileNumber is not None:
4413
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4414
      oprot.writeI64(self.mobileNumber)
94 ashish 4415
      oprot.writeFieldEnd()
4416
    oprot.writeFieldStop()
4417
    oprot.writeStructEnd()
4418
 
3431 rajveer 4419
  def validate(self):
4420
    return
4421
 
4422
 
94 ashish 4423
  def __repr__(self):
4424
    L = ['%s=%r' % (key, value)
4425
      for key, value in self.__dict__.iteritems()]
4426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4427
 
4428
  def __eq__(self, other):
4429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4430
 
4431
  def __ne__(self, other):
4432
    return not (self == other)
4433
 
5326 rajveer 4434
class getUserByMobileNumber_result:
94 ashish 4435
  """
4436
  Attributes:
4437
   - success
559 chandransh 4438
   - ucex
94 ashish 4439
  """
4440
 
4441
  thrift_spec = (
559 chandransh 4442
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4443
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4444
  )
4445
 
559 chandransh 4446
  def __init__(self, success=None, ucex=None,):
94 ashish 4447
    self.success = success
559 chandransh 4448
    self.ucex = ucex
94 ashish 4449
 
4450
  def read(self, iprot):
4451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4453
      return
4454
    iprot.readStructBegin()
4455
    while True:
4456
      (fname, ftype, fid) = iprot.readFieldBegin()
4457
      if ftype == TType.STOP:
4458
        break
4459
      if fid == 0:
4460
        if ftype == TType.STRUCT:
559 chandransh 4461
          self.success = User()
94 ashish 4462
          self.success.read(iprot)
4463
        else:
4464
          iprot.skip(ftype)
4465
      elif fid == 1:
4466
        if ftype == TType.STRUCT:
559 chandransh 4467
          self.ucex = UserContextException()
4468
          self.ucex.read(iprot)
94 ashish 4469
        else:
4470
          iprot.skip(ftype)
4471
      else:
4472
        iprot.skip(ftype)
4473
      iprot.readFieldEnd()
4474
    iprot.readStructEnd()
4475
 
4476
  def write(self, oprot):
4477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4479
      return
5326 rajveer 4480
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4481
    if self.success is not None:
94 ashish 4482
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4483
      self.success.write(oprot)
4484
      oprot.writeFieldEnd()
3431 rajveer 4485
    if self.ucex is not None:
559 chandransh 4486
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4487
      self.ucex.write(oprot)
94 ashish 4488
      oprot.writeFieldEnd()
4489
    oprot.writeFieldStop()
4490
    oprot.writeStructEnd()
4491
 
3431 rajveer 4492
  def validate(self):
4493
    return
4494
 
4495
 
94 ashish 4496
  def __repr__(self):
4497
    L = ['%s=%r' % (key, value)
4498
      for key, value in self.__dict__.iteritems()]
4499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4500
 
4501
  def __eq__(self, other):
4502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4503
 
4504
  def __ne__(self, other):
4505
    return not (self == other)
4506
 
5326 rajveer 4507
class createUser_args:
94 ashish 4508
  """
4509
  Attributes:
559 chandransh 4510
   - user
94 ashish 4511
  """
4512
 
4513
  thrift_spec = (
4514
    None, # 0
559 chandransh 4515
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4516
  )
4517
 
559 chandransh 4518
  def __init__(self, user=None,):
4519
    self.user = user
94 ashish 4520
 
4521
  def read(self, iprot):
4522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4524
      return
4525
    iprot.readStructBegin()
4526
    while True:
4527
      (fname, ftype, fid) = iprot.readFieldBegin()
4528
      if ftype == TType.STOP:
4529
        break
4530
      if fid == 1:
559 chandransh 4531
        if ftype == TType.STRUCT:
4532
          self.user = User()
4533
          self.user.read(iprot)
94 ashish 4534
        else:
4535
          iprot.skip(ftype)
4536
      else:
4537
        iprot.skip(ftype)
4538
      iprot.readFieldEnd()
4539
    iprot.readStructEnd()
4540
 
4541
  def write(self, oprot):
4542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4544
      return
5326 rajveer 4545
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4546
    if self.user is not None:
559 chandransh 4547
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4548
      self.user.write(oprot)
94 ashish 4549
      oprot.writeFieldEnd()
4550
    oprot.writeFieldStop()
4551
    oprot.writeStructEnd()
4552
 
3431 rajveer 4553
  def validate(self):
4554
    return
4555
 
4556
 
94 ashish 4557
  def __repr__(self):
4558
    L = ['%s=%r' % (key, value)
4559
      for key, value in self.__dict__.iteritems()]
4560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4561
 
4562
  def __eq__(self, other):
4563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4564
 
4565
  def __ne__(self, other):
4566
    return not (self == other)
4567
 
5326 rajveer 4568
class createUser_result:
94 ashish 4569
  """
4570
  Attributes:
4571
   - success
559 chandransh 4572
   - ucex
94 ashish 4573
  """
4574
 
4575
  thrift_spec = (
559 chandransh 4576
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4577
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4578
  )
4579
 
559 chandransh 4580
  def __init__(self, success=None, ucex=None,):
94 ashish 4581
    self.success = success
559 chandransh 4582
    self.ucex = ucex
94 ashish 4583
 
4584
  def read(self, iprot):
4585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4587
      return
4588
    iprot.readStructBegin()
4589
    while True:
4590
      (fname, ftype, fid) = iprot.readFieldBegin()
4591
      if ftype == TType.STOP:
4592
        break
4593
      if fid == 0:
4594
        if ftype == TType.STRUCT:
559 chandransh 4595
          self.success = User()
94 ashish 4596
          self.success.read(iprot)
4597
        else:
4598
          iprot.skip(ftype)
4599
      elif fid == 1:
4600
        if ftype == TType.STRUCT:
559 chandransh 4601
          self.ucex = UserContextException()
4602
          self.ucex.read(iprot)
94 ashish 4603
        else:
4604
          iprot.skip(ftype)
4605
      else:
4606
        iprot.skip(ftype)
4607
      iprot.readFieldEnd()
4608
    iprot.readStructEnd()
4609
 
4610
  def write(self, oprot):
4611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4613
      return
5326 rajveer 4614
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4615
    if self.success is not None:
94 ashish 4616
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4617
      self.success.write(oprot)
4618
      oprot.writeFieldEnd()
3431 rajveer 4619
    if self.ucex is not None:
559 chandransh 4620
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4621
      self.ucex.write(oprot)
94 ashish 4622
      oprot.writeFieldEnd()
4623
    oprot.writeFieldStop()
4624
    oprot.writeStructEnd()
4625
 
3431 rajveer 4626
  def validate(self):
4627
    return
4628
 
4629
 
94 ashish 4630
  def __repr__(self):
4631
    L = ['%s=%r' % (key, value)
4632
      for key, value in self.__dict__.iteritems()]
4633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4634
 
4635
  def __eq__(self, other):
4636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4637
 
4638
  def __ne__(self, other):
4639
    return not (self == other)
4640
 
5326 rajveer 4641
class updateUser_args:
94 ashish 4642
  """
4643
  Attributes:
5326 rajveer 4644
   - user
94 ashish 4645
  """
4646
 
4647
  thrift_spec = (
4648
    None, # 0
5326 rajveer 4649
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4650
  )
4651
 
5326 rajveer 4652
  def __init__(self, user=None,):
4653
    self.user = user
94 ashish 4654
 
4655
  def read(self, iprot):
4656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4658
      return
4659
    iprot.readStructBegin()
4660
    while True:
4661
      (fname, ftype, fid) = iprot.readFieldBegin()
4662
      if ftype == TType.STOP:
4663
        break
4664
      if fid == 1:
5326 rajveer 4665
        if ftype == TType.STRUCT:
4666
          self.user = User()
4667
          self.user.read(iprot)
94 ashish 4668
        else:
4669
          iprot.skip(ftype)
4670
      else:
4671
        iprot.skip(ftype)
4672
      iprot.readFieldEnd()
4673
    iprot.readStructEnd()
4674
 
4675
  def write(self, oprot):
4676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4678
      return
5326 rajveer 4679
    oprot.writeStructBegin('updateUser_args')
4680
    if self.user is not None:
4681
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4682
      self.user.write(oprot)
94 ashish 4683
      oprot.writeFieldEnd()
4684
    oprot.writeFieldStop()
4685
    oprot.writeStructEnd()
4686
 
3431 rajveer 4687
  def validate(self):
4688
    return
4689
 
4690
 
94 ashish 4691
  def __repr__(self):
4692
    L = ['%s=%r' % (key, value)
4693
      for key, value in self.__dict__.iteritems()]
4694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4695
 
4696
  def __eq__(self, other):
4697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4698
 
4699
  def __ne__(self, other):
4700
    return not (self == other)
4701
 
5326 rajveer 4702
class updateUser_result:
94 ashish 4703
  """
4704
  Attributes:
4705
   - success
559 chandransh 4706
   - ucex
94 ashish 4707
  """
4708
 
4709
  thrift_spec = (
5326 rajveer 4710
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4711
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4712
  )
4713
 
559 chandransh 4714
  def __init__(self, success=None, ucex=None,):
94 ashish 4715
    self.success = success
559 chandransh 4716
    self.ucex = ucex
94 ashish 4717
 
4718
  def read(self, iprot):
4719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4721
      return
4722
    iprot.readStructBegin()
4723
    while True:
4724
      (fname, ftype, fid) = iprot.readFieldBegin()
4725
      if ftype == TType.STOP:
4726
        break
4727
      if fid == 0:
5326 rajveer 4728
        if ftype == TType.STRUCT:
4729
          self.success = User()
4730
          self.success.read(iprot)
94 ashish 4731
        else:
4732
          iprot.skip(ftype)
4733
      elif fid == 1:
4734
        if ftype == TType.STRUCT:
559 chandransh 4735
          self.ucex = UserContextException()
4736
          self.ucex.read(iprot)
94 ashish 4737
        else:
4738
          iprot.skip(ftype)
4739
      else:
4740
        iprot.skip(ftype)
4741
      iprot.readFieldEnd()
4742
    iprot.readStructEnd()
4743
 
4744
  def write(self, oprot):
4745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4747
      return
5326 rajveer 4748
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4749
    if self.success is not None:
5326 rajveer 4750
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4751
      self.success.write(oprot)
94 ashish 4752
      oprot.writeFieldEnd()
3431 rajveer 4753
    if self.ucex is not None:
559 chandransh 4754
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4755
      self.ucex.write(oprot)
94 ashish 4756
      oprot.writeFieldEnd()
4757
    oprot.writeFieldStop()
4758
    oprot.writeStructEnd()
4759
 
3431 rajveer 4760
  def validate(self):
4761
    return
4762
 
4763
 
94 ashish 4764
  def __repr__(self):
4765
    L = ['%s=%r' % (key, value)
4766
      for key, value in self.__dict__.iteritems()]
4767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4768
 
4769
  def __eq__(self, other):
4770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4771
 
4772
  def __ne__(self, other):
4773
    return not (self == other)
4774
 
559 chandransh 4775
class authenticateUser_args:
94 ashish 4776
  """
4777
  Attributes:
4778
   - email
4779
   - password
4780
  """
4781
 
4782
  thrift_spec = (
4783
    None, # 0
4784
    (1, TType.STRING, 'email', None, None, ), # 1
4785
    (2, TType.STRING, 'password', None, None, ), # 2
4786
  )
4787
 
4788
  def __init__(self, email=None, password=None,):
4789
    self.email = email
4790
    self.password = password
4791
 
4792
  def read(self, iprot):
4793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4795
      return
4796
    iprot.readStructBegin()
4797
    while True:
4798
      (fname, ftype, fid) = iprot.readFieldBegin()
4799
      if ftype == TType.STOP:
4800
        break
4801
      if fid == 1:
4802
        if ftype == TType.STRING:
4803
          self.email = iprot.readString();
4804
        else:
4805
          iprot.skip(ftype)
4806
      elif fid == 2:
4807
        if ftype == TType.STRING:
4808
          self.password = iprot.readString();
4809
        else:
4810
          iprot.skip(ftype)
4811
      else:
4812
        iprot.skip(ftype)
4813
      iprot.readFieldEnd()
4814
    iprot.readStructEnd()
4815
 
4816
  def write(self, oprot):
4817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4819
      return
559 chandransh 4820
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4821
    if self.email is not None:
94 ashish 4822
      oprot.writeFieldBegin('email', TType.STRING, 1)
4823
      oprot.writeString(self.email)
4824
      oprot.writeFieldEnd()
3431 rajveer 4825
    if self.password is not None:
94 ashish 4826
      oprot.writeFieldBegin('password', TType.STRING, 2)
4827
      oprot.writeString(self.password)
4828
      oprot.writeFieldEnd()
4829
    oprot.writeFieldStop()
4830
    oprot.writeStructEnd()
4831
 
3431 rajveer 4832
  def validate(self):
4833
    return
4834
 
4835
 
94 ashish 4836
  def __repr__(self):
4837
    L = ['%s=%r' % (key, value)
4838
      for key, value in self.__dict__.iteritems()]
4839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4840
 
4841
  def __eq__(self, other):
4842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4843
 
4844
  def __ne__(self, other):
4845
    return not (self == other)
4846
 
559 chandransh 4847
class authenticateUser_result:
94 ashish 4848
  """
4849
  Attributes:
4850
   - success
559 chandransh 4851
   - auex
94 ashish 4852
  """
4853
 
4854
  thrift_spec = (
559 chandransh 4855
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4856
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4857
  )
4858
 
559 chandransh 4859
  def __init__(self, success=None, auex=None,):
94 ashish 4860
    self.success = success
559 chandransh 4861
    self.auex = auex
94 ashish 4862
 
4863
  def read(self, iprot):
4864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4866
      return
4867
    iprot.readStructBegin()
4868
    while True:
4869
      (fname, ftype, fid) = iprot.readFieldBegin()
4870
      if ftype == TType.STOP:
4871
        break
4872
      if fid == 0:
4873
        if ftype == TType.STRUCT:
559 chandransh 4874
          self.success = User()
94 ashish 4875
          self.success.read(iprot)
4876
        else:
4877
          iprot.skip(ftype)
4878
      elif fid == 1:
4879
        if ftype == TType.STRUCT:
559 chandransh 4880
          self.auex = AuthenticationException()
4881
          self.auex.read(iprot)
94 ashish 4882
        else:
4883
          iprot.skip(ftype)
4884
      else:
4885
        iprot.skip(ftype)
4886
      iprot.readFieldEnd()
4887
    iprot.readStructEnd()
4888
 
4889
  def write(self, oprot):
4890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4892
      return
559 chandransh 4893
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4894
    if self.success is not None:
94 ashish 4895
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4896
      self.success.write(oprot)
4897
      oprot.writeFieldEnd()
3431 rajveer 4898
    if self.auex is not None:
559 chandransh 4899
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4900
      self.auex.write(oprot)
94 ashish 4901
      oprot.writeFieldEnd()
4902
    oprot.writeFieldStop()
4903
    oprot.writeStructEnd()
4904
 
3431 rajveer 4905
  def validate(self):
4906
    return
4907
 
4908
 
94 ashish 4909
  def __repr__(self):
4910
    L = ['%s=%r' % (key, value)
4911
      for key, value in self.__dict__.iteritems()]
4912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4913
 
4914
  def __eq__(self, other):
4915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4916
 
4917
  def __ne__(self, other):
4918
    return not (self == other)
4919
 
559 chandransh 4920
class userExists_args:
122 ashish 4921
  """
4922
  Attributes:
559 chandransh 4923
   - email
122 ashish 4924
  """
4925
 
4926
  thrift_spec = (
4927
    None, # 0
559 chandransh 4928
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4929
  )
4930
 
559 chandransh 4931
  def __init__(self, email=None,):
4932
    self.email = email
122 ashish 4933
 
4934
  def read(self, iprot):
4935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4937
      return
4938
    iprot.readStructBegin()
4939
    while True:
4940
      (fname, ftype, fid) = iprot.readFieldBegin()
4941
      if ftype == TType.STOP:
4942
        break
4943
      if fid == 1:
4944
        if ftype == TType.STRING:
559 chandransh 4945
          self.email = iprot.readString();
122 ashish 4946
        else:
4947
          iprot.skip(ftype)
559 chandransh 4948
      else:
4949
        iprot.skip(ftype)
4950
      iprot.readFieldEnd()
4951
    iprot.readStructEnd()
4952
 
4953
  def write(self, oprot):
4954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4956
      return
4957
    oprot.writeStructBegin('userExists_args')
3431 rajveer 4958
    if self.email is not None:
559 chandransh 4959
      oprot.writeFieldBegin('email', TType.STRING, 1)
4960
      oprot.writeString(self.email)
4961
      oprot.writeFieldEnd()
4962
    oprot.writeFieldStop()
4963
    oprot.writeStructEnd()
4964
 
3431 rajveer 4965
  def validate(self):
4966
    return
4967
 
4968
 
559 chandransh 4969
  def __repr__(self):
4970
    L = ['%s=%r' % (key, value)
4971
      for key, value in self.__dict__.iteritems()]
4972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4973
 
4974
  def __eq__(self, other):
4975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4976
 
4977
  def __ne__(self, other):
4978
    return not (self == other)
4979
 
4980
class userExists_result:
4981
  """
4982
  Attributes:
4983
   - success
4984
   - ucx
4985
  """
4986
 
4987
  thrift_spec = (
4988
    (0, TType.BOOL, 'success', None, None, ), # 0
4989
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4990
  )
4991
 
4992
  def __init__(self, success=None, ucx=None,):
4993
    self.success = success
4994
    self.ucx = ucx
4995
 
4996
  def read(self, iprot):
4997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4999
      return
5000
    iprot.readStructBegin()
5001
    while True:
5002
      (fname, ftype, fid) = iprot.readFieldBegin()
5003
      if ftype == TType.STOP:
5004
        break
5005
      if fid == 0:
5006
        if ftype == TType.BOOL:
5007
          self.success = iprot.readBool();
5008
        else:
5009
          iprot.skip(ftype)
5010
      elif fid == 1:
5011
        if ftype == TType.STRUCT:
5012
          self.ucx = UserContextException()
5013
          self.ucx.read(iprot)
5014
        else:
5015
          iprot.skip(ftype)
5016
      else:
5017
        iprot.skip(ftype)
5018
      iprot.readFieldEnd()
5019
    iprot.readStructEnd()
5020
 
5021
  def write(self, oprot):
5022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5024
      return
5025
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5026
    if self.success is not None:
559 chandransh 5027
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5028
      oprot.writeBool(self.success)
5029
      oprot.writeFieldEnd()
3431 rajveer 5030
    if self.ucx is not None:
559 chandransh 5031
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5032
      self.ucx.write(oprot)
5033
      oprot.writeFieldEnd()
5034
    oprot.writeFieldStop()
5035
    oprot.writeStructEnd()
5036
 
3431 rajveer 5037
  def validate(self):
5038
    return
5039
 
5040
 
559 chandransh 5041
  def __repr__(self):
5042
    L = ['%s=%r' % (key, value)
5043
      for key, value in self.__dict__.iteritems()]
5044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5045
 
5046
  def __eq__(self, other):
5047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5048
 
5049
  def __ne__(self, other):
5050
    return not (self == other)
5051
 
5052
class addAddressForUser_args:
5053
  """
5054
  Attributes:
5055
   - userId
5056
   - address
5057
   - setDefault
5058
  """
5059
 
5060
  thrift_spec = (
5061
    None, # 0
5062
    (1, TType.I64, 'userId', None, None, ), # 1
5063
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5064
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5065
  )
5066
 
567 rajveer 5067
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5068
    self.userId = userId
5069
    self.address = address
5070
    self.setDefault = setDefault
5071
 
5072
  def read(self, iprot):
5073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5075
      return
5076
    iprot.readStructBegin()
5077
    while True:
5078
      (fname, ftype, fid) = iprot.readFieldBegin()
5079
      if ftype == TType.STOP:
5080
        break
5081
      if fid == 1:
5082
        if ftype == TType.I64:
5083
          self.userId = iprot.readI64();
5084
        else:
5085
          iprot.skip(ftype)
122 ashish 5086
      elif fid == 2:
559 chandransh 5087
        if ftype == TType.STRUCT:
5088
          self.address = Address()
5089
          self.address.read(iprot)
122 ashish 5090
        else:
5091
          iprot.skip(ftype)
5092
      elif fid == 3:
5093
        if ftype == TType.BOOL:
559 chandransh 5094
          self.setDefault = iprot.readBool();
122 ashish 5095
        else:
5096
          iprot.skip(ftype)
5097
      else:
5098
        iprot.skip(ftype)
5099
      iprot.readFieldEnd()
5100
    iprot.readStructEnd()
5101
 
5102
  def write(self, oprot):
5103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5105
      return
559 chandransh 5106
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5107
    if self.userId is not None:
559 chandransh 5108
      oprot.writeFieldBegin('userId', TType.I64, 1)
5109
      oprot.writeI64(self.userId)
122 ashish 5110
      oprot.writeFieldEnd()
3431 rajveer 5111
    if self.address is not None:
559 chandransh 5112
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5113
      self.address.write(oprot)
122 ashish 5114
      oprot.writeFieldEnd()
3431 rajveer 5115
    if self.setDefault is not None:
567 rajveer 5116
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5117
      oprot.writeBool(self.setDefault)
5118
      oprot.writeFieldEnd()
122 ashish 5119
    oprot.writeFieldStop()
5120
    oprot.writeStructEnd()
5121
 
3431 rajveer 5122
  def validate(self):
5123
    return
5124
 
5125
 
122 ashish 5126
  def __repr__(self):
5127
    L = ['%s=%r' % (key, value)
5128
      for key, value in self.__dict__.iteritems()]
5129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5130
 
5131
  def __eq__(self, other):
5132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5133
 
5134
  def __ne__(self, other):
5135
    return not (self == other)
5136
 
559 chandransh 5137
class addAddressForUser_result:
122 ashish 5138
  """
5139
  Attributes:
5140
   - success
559 chandransh 5141
   - ucx
122 ashish 5142
  """
5143
 
5144
  thrift_spec = (
567 rajveer 5145
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5146
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5147
  )
5148
 
559 chandransh 5149
  def __init__(self, success=None, ucx=None,):
122 ashish 5150
    self.success = success
559 chandransh 5151
    self.ucx = ucx
122 ashish 5152
 
5153
  def read(self, iprot):
5154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5156
      return
5157
    iprot.readStructBegin()
5158
    while True:
5159
      (fname, ftype, fid) = iprot.readFieldBegin()
5160
      if ftype == TType.STOP:
5161
        break
5162
      if fid == 0:
567 rajveer 5163
        if ftype == TType.I64:
5164
          self.success = iprot.readI64();
122 ashish 5165
        else:
5166
          iprot.skip(ftype)
5167
      elif fid == 1:
5168
        if ftype == TType.STRUCT:
559 chandransh 5169
          self.ucx = UserContextException()
5170
          self.ucx.read(iprot)
122 ashish 5171
        else:
5172
          iprot.skip(ftype)
5173
      else:
5174
        iprot.skip(ftype)
5175
      iprot.readFieldEnd()
5176
    iprot.readStructEnd()
5177
 
5178
  def write(self, oprot):
5179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5181
      return
559 chandransh 5182
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5183
    if self.success is not None:
567 rajveer 5184
      oprot.writeFieldBegin('success', TType.I64, 0)
5185
      oprot.writeI64(self.success)
122 ashish 5186
      oprot.writeFieldEnd()
3431 rajveer 5187
    if self.ucx is not None:
559 chandransh 5188
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5189
      self.ucx.write(oprot)
122 ashish 5190
      oprot.writeFieldEnd()
5191
    oprot.writeFieldStop()
5192
    oprot.writeStructEnd()
5193
 
3431 rajveer 5194
  def validate(self):
5195
    return
5196
 
5197
 
122 ashish 5198
  def __repr__(self):
5199
    L = ['%s=%r' % (key, value)
5200
      for key, value in self.__dict__.iteritems()]
5201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5202
 
5203
  def __eq__(self, other):
5204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5205
 
5206
  def __ne__(self, other):
5207
    return not (self == other)
5208
 
559 chandransh 5209
class removeAddressForUser_args:
94 ashish 5210
  """
5211
  Attributes:
559 chandransh 5212
   - userid
5213
   - addressId
94 ashish 5214
  """
5215
 
5216
  thrift_spec = (
5217
    None, # 0
559 chandransh 5218
    (1, TType.I64, 'userid', None, None, ), # 1
5219
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5220
  )
5221
 
559 chandransh 5222
  def __init__(self, userid=None, addressId=None,):
5223
    self.userid = userid
5224
    self.addressId = addressId
94 ashish 5225
 
5226
  def read(self, iprot):
5227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5229
      return
5230
    iprot.readStructBegin()
5231
    while True:
5232
      (fname, ftype, fid) = iprot.readFieldBegin()
5233
      if ftype == TType.STOP:
5234
        break
5235
      if fid == 1:
559 chandransh 5236
        if ftype == TType.I64:
5237
          self.userid = iprot.readI64();
94 ashish 5238
        else:
5239
          iprot.skip(ftype)
559 chandransh 5240
      elif fid == 2:
5241
        if ftype == TType.I64:
5242
          self.addressId = iprot.readI64();
5243
        else:
5244
          iprot.skip(ftype)
94 ashish 5245
      else:
5246
        iprot.skip(ftype)
5247
      iprot.readFieldEnd()
5248
    iprot.readStructEnd()
5249
 
5250
  def write(self, oprot):
5251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5253
      return
559 chandransh 5254
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5255
    if self.userid is not None:
559 chandransh 5256
      oprot.writeFieldBegin('userid', TType.I64, 1)
5257
      oprot.writeI64(self.userid)
94 ashish 5258
      oprot.writeFieldEnd()
3431 rajveer 5259
    if self.addressId is not None:
559 chandransh 5260
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5261
      oprot.writeI64(self.addressId)
5262
      oprot.writeFieldEnd()
94 ashish 5263
    oprot.writeFieldStop()
5264
    oprot.writeStructEnd()
5265
 
3431 rajveer 5266
  def validate(self):
5267
    return
5268
 
5269
 
94 ashish 5270
  def __repr__(self):
5271
    L = ['%s=%r' % (key, value)
5272
      for key, value in self.__dict__.iteritems()]
5273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5274
 
5275
  def __eq__(self, other):
5276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5277
 
5278
  def __ne__(self, other):
5279
    return not (self == other)
5280
 
559 chandransh 5281
class removeAddressForUser_result:
94 ashish 5282
  """
5283
  Attributes:
5284
   - success
5285
   - ucx
5286
  """
5287
 
5288
  thrift_spec = (
5289
    (0, TType.BOOL, 'success', None, None, ), # 0
5290
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5291
  )
5292
 
5293
  def __init__(self, success=None, ucx=None,):
5294
    self.success = success
5295
    self.ucx = ucx
5296
 
5297
  def read(self, iprot):
5298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5300
      return
5301
    iprot.readStructBegin()
5302
    while True:
5303
      (fname, ftype, fid) = iprot.readFieldBegin()
5304
      if ftype == TType.STOP:
5305
        break
5306
      if fid == 0:
5307
        if ftype == TType.BOOL:
5308
          self.success = iprot.readBool();
5309
        else:
5310
          iprot.skip(ftype)
5311
      elif fid == 1:
5312
        if ftype == TType.STRUCT:
5313
          self.ucx = UserContextException()
5314
          self.ucx.read(iprot)
5315
        else:
5316
          iprot.skip(ftype)
5317
      else:
5318
        iprot.skip(ftype)
5319
      iprot.readFieldEnd()
5320
    iprot.readStructEnd()
5321
 
5322
  def write(self, oprot):
5323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5325
      return
559 chandransh 5326
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5327
    if self.success is not None:
94 ashish 5328
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5329
      oprot.writeBool(self.success)
5330
      oprot.writeFieldEnd()
3431 rajveer 5331
    if self.ucx is not None:
94 ashish 5332
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5333
      self.ucx.write(oprot)
5334
      oprot.writeFieldEnd()
5335
    oprot.writeFieldStop()
5336
    oprot.writeStructEnd()
5337
 
3431 rajveer 5338
  def validate(self):
5339
    return
5340
 
5341
 
94 ashish 5342
  def __repr__(self):
5343
    L = ['%s=%r' % (key, value)
5344
      for key, value in self.__dict__.iteritems()]
5345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5346
 
5347
  def __eq__(self, other):
5348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5349
 
5350
  def __ne__(self, other):
5351
    return not (self == other)
5352
 
559 chandransh 5353
class setUserAsLoggedIn_args:
94 ashish 5354
  """
5355
  Attributes:
559 chandransh 5356
   - userId
94 ashish 5357
   - timestamp
5358
  """
5359
 
5360
  thrift_spec = (
5361
    None, # 0
559 chandransh 5362
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5363
    (2, TType.I64, 'timestamp', None, None, ), # 2
5364
  )
5365
 
559 chandransh 5366
  def __init__(self, userId=None, timestamp=None,):
5367
    self.userId = userId
94 ashish 5368
    self.timestamp = timestamp
5369
 
5370
  def read(self, iprot):
5371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5373
      return
5374
    iprot.readStructBegin()
5375
    while True:
5376
      (fname, ftype, fid) = iprot.readFieldBegin()
5377
      if ftype == TType.STOP:
5378
        break
5379
      if fid == 1:
559 chandransh 5380
        if ftype == TType.I64:
5381
          self.userId = iprot.readI64();
94 ashish 5382
        else:
5383
          iprot.skip(ftype)
5384
      elif fid == 2:
5385
        if ftype == TType.I64:
5386
          self.timestamp = iprot.readI64();
5387
        else:
5388
          iprot.skip(ftype)
5389
      else:
5390
        iprot.skip(ftype)
5391
      iprot.readFieldEnd()
5392
    iprot.readStructEnd()
5393
 
5394
  def write(self, oprot):
5395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5397
      return
559 chandransh 5398
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5399
    if self.userId is not None:
559 chandransh 5400
      oprot.writeFieldBegin('userId', TType.I64, 1)
5401
      oprot.writeI64(self.userId)
94 ashish 5402
      oprot.writeFieldEnd()
3431 rajveer 5403
    if self.timestamp is not None:
94 ashish 5404
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5405
      oprot.writeI64(self.timestamp)
5406
      oprot.writeFieldEnd()
5407
    oprot.writeFieldStop()
5408
    oprot.writeStructEnd()
5409
 
3431 rajveer 5410
  def validate(self):
5411
    return
5412
 
5413
 
94 ashish 5414
  def __repr__(self):
5415
    L = ['%s=%r' % (key, value)
5416
      for key, value in self.__dict__.iteritems()]
5417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5418
 
5419
  def __eq__(self, other):
5420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5421
 
5422
  def __ne__(self, other):
5423
    return not (self == other)
5424
 
559 chandransh 5425
class setUserAsLoggedIn_result:
94 ashish 5426
  """
5427
  Attributes:
5428
   - success
5429
   - ucx
5430
  """
5431
 
5432
  thrift_spec = (
5433
    (0, TType.BOOL, 'success', None, None, ), # 0
5434
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5435
  )
5436
 
5437
  def __init__(self, success=None, ucx=None,):
5438
    self.success = success
5439
    self.ucx = ucx
5440
 
5441
  def read(self, iprot):
5442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5444
      return
5445
    iprot.readStructBegin()
5446
    while True:
5447
      (fname, ftype, fid) = iprot.readFieldBegin()
5448
      if ftype == TType.STOP:
5449
        break
5450
      if fid == 0:
5451
        if ftype == TType.BOOL:
5452
          self.success = iprot.readBool();
5453
        else:
5454
          iprot.skip(ftype)
5455
      elif fid == 1:
5456
        if ftype == TType.STRUCT:
5457
          self.ucx = UserContextException()
5458
          self.ucx.read(iprot)
5459
        else:
5460
          iprot.skip(ftype)
5461
      else:
5462
        iprot.skip(ftype)
5463
      iprot.readFieldEnd()
5464
    iprot.readStructEnd()
5465
 
5466
  def write(self, oprot):
5467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5469
      return
559 chandransh 5470
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5471
    if self.success is not None:
94 ashish 5472
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5473
      oprot.writeBool(self.success)
5474
      oprot.writeFieldEnd()
3431 rajveer 5475
    if self.ucx is not None:
94 ashish 5476
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5477
      self.ucx.write(oprot)
5478
      oprot.writeFieldEnd()
5479
    oprot.writeFieldStop()
5480
    oprot.writeStructEnd()
5481
 
3431 rajveer 5482
  def validate(self):
5483
    return
5484
 
5485
 
94 ashish 5486
  def __repr__(self):
5487
    L = ['%s=%r' % (key, value)
5488
      for key, value in self.__dict__.iteritems()]
5489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5490
 
5491
  def __eq__(self, other):
5492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5493
 
5494
  def __ne__(self, other):
5495
    return not (self == other)
5496
 
559 chandransh 5497
class setUserAsLoggedOut_args:
94 ashish 5498
  """
5499
  Attributes:
5500
   - userid
5501
   - timestamp
5502
  """
5503
 
5504
  thrift_spec = (
5505
    None, # 0
559 chandransh 5506
    (1, TType.I64, 'userid', None, None, ), # 1
5507
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5508
  )
5509
 
559 chandransh 5510
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5511
    self.userid = userid
5512
    self.timestamp = timestamp
5513
 
5514
  def read(self, iprot):
5515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5517
      return
5518
    iprot.readStructBegin()
5519
    while True:
5520
      (fname, ftype, fid) = iprot.readFieldBegin()
5521
      if ftype == TType.STOP:
5522
        break
5523
      if fid == 1:
5524
        if ftype == TType.I64:
5525
          self.userid = iprot.readI64();
5526
        else:
5527
          iprot.skip(ftype)
559 chandransh 5528
      elif fid == 2:
94 ashish 5529
        if ftype == TType.I64:
5530
          self.timestamp = iprot.readI64();
5531
        else:
5532
          iprot.skip(ftype)
5533
      else:
5534
        iprot.skip(ftype)
5535
      iprot.readFieldEnd()
5536
    iprot.readStructEnd()
5537
 
5538
  def write(self, oprot):
5539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5541
      return
559 chandransh 5542
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5543
    if self.userid is not None:
559 chandransh 5544
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5545
      oprot.writeI64(self.userid)
5546
      oprot.writeFieldEnd()
3431 rajveer 5547
    if self.timestamp is not None:
559 chandransh 5548
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5549
      oprot.writeI64(self.timestamp)
5550
      oprot.writeFieldEnd()
5551
    oprot.writeFieldStop()
5552
    oprot.writeStructEnd()
5553
 
3431 rajveer 5554
  def validate(self):
5555
    return
5556
 
5557
 
94 ashish 5558
  def __repr__(self):
5559
    L = ['%s=%r' % (key, value)
5560
      for key, value in self.__dict__.iteritems()]
5561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5562
 
5563
  def __eq__(self, other):
5564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5565
 
5566
  def __ne__(self, other):
5567
    return not (self == other)
5568
 
559 chandransh 5569
class setUserAsLoggedOut_result:
94 ashish 5570
  """
5571
  Attributes:
5572
   - success
5573
   - ucx
5574
  """
5575
 
5576
  thrift_spec = (
5577
    (0, TType.BOOL, 'success', None, None, ), # 0
5578
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5579
  )
5580
 
5581
  def __init__(self, success=None, ucx=None,):
5582
    self.success = success
5583
    self.ucx = ucx
5584
 
5585
  def read(self, iprot):
5586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5588
      return
5589
    iprot.readStructBegin()
5590
    while True:
5591
      (fname, ftype, fid) = iprot.readFieldBegin()
5592
      if ftype == TType.STOP:
5593
        break
5594
      if fid == 0:
5595
        if ftype == TType.BOOL:
5596
          self.success = iprot.readBool();
5597
        else:
5598
          iprot.skip(ftype)
5599
      elif fid == 1:
5600
        if ftype == TType.STRUCT:
5601
          self.ucx = UserContextException()
5602
          self.ucx.read(iprot)
5603
        else:
5604
          iprot.skip(ftype)
5605
      else:
5606
        iprot.skip(ftype)
5607
      iprot.readFieldEnd()
5608
    iprot.readStructEnd()
5609
 
5610
  def write(self, oprot):
5611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5613
      return
559 chandransh 5614
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5615
    if self.success is not None:
94 ashish 5616
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5617
      oprot.writeBool(self.success)
5618
      oprot.writeFieldEnd()
3431 rajveer 5619
    if self.ucx is not None:
94 ashish 5620
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5621
      self.ucx.write(oprot)
5622
      oprot.writeFieldEnd()
5623
    oprot.writeFieldStop()
5624
    oprot.writeStructEnd()
5625
 
3431 rajveer 5626
  def validate(self):
5627
    return
5628
 
5629
 
94 ashish 5630
  def __repr__(self):
5631
    L = ['%s=%r' % (key, value)
5632
      for key, value in self.__dict__.iteritems()]
5633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5634
 
5635
  def __eq__(self, other):
5636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5637
 
5638
  def __ne__(self, other):
5639
    return not (self == other)
5640
 
559 chandransh 5641
class setDefaultAddress_args:
94 ashish 5642
  """
5643
  Attributes:
5644
   - userid
5645
   - addressId
5646
  """
5647
 
5648
  thrift_spec = (
5649
    None, # 0
5650
    (1, TType.I64, 'userid', None, None, ), # 1
5651
    (2, TType.I64, 'addressId', None, None, ), # 2
5652
  )
5653
 
5654
  def __init__(self, userid=None, addressId=None,):
5655
    self.userid = userid
5656
    self.addressId = addressId
5657
 
5658
  def read(self, iprot):
5659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5661
      return
5662
    iprot.readStructBegin()
5663
    while True:
5664
      (fname, ftype, fid) = iprot.readFieldBegin()
5665
      if ftype == TType.STOP:
5666
        break
5667
      if fid == 1:
5668
        if ftype == TType.I64:
5669
          self.userid = iprot.readI64();
5670
        else:
5671
          iprot.skip(ftype)
5672
      elif fid == 2:
5673
        if ftype == TType.I64:
5674
          self.addressId = iprot.readI64();
5675
        else:
5676
          iprot.skip(ftype)
5677
      else:
5678
        iprot.skip(ftype)
5679
      iprot.readFieldEnd()
5680
    iprot.readStructEnd()
5681
 
5682
  def write(self, oprot):
5683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5685
      return
559 chandransh 5686
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5687
    if self.userid is not None:
94 ashish 5688
      oprot.writeFieldBegin('userid', TType.I64, 1)
5689
      oprot.writeI64(self.userid)
5690
      oprot.writeFieldEnd()
3431 rajveer 5691
    if self.addressId is not None:
94 ashish 5692
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5693
      oprot.writeI64(self.addressId)
5694
      oprot.writeFieldEnd()
5695
    oprot.writeFieldStop()
5696
    oprot.writeStructEnd()
5697
 
3431 rajveer 5698
  def validate(self):
5699
    return
5700
 
5701
 
94 ashish 5702
  def __repr__(self):
5703
    L = ['%s=%r' % (key, value)
5704
      for key, value in self.__dict__.iteritems()]
5705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5706
 
5707
  def __eq__(self, other):
5708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5709
 
5710
  def __ne__(self, other):
5711
    return not (self == other)
5712
 
559 chandransh 5713
class setDefaultAddress_result:
94 ashish 5714
  """
5715
  Attributes:
5716
   - success
5717
   - ucx
5718
  """
5719
 
5720
  thrift_spec = (
5721
    (0, TType.BOOL, 'success', None, None, ), # 0
5722
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5723
  )
5724
 
5725
  def __init__(self, success=None, ucx=None,):
5726
    self.success = success
5727
    self.ucx = ucx
5728
 
5729
  def read(self, iprot):
5730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5732
      return
5733
    iprot.readStructBegin()
5734
    while True:
5735
      (fname, ftype, fid) = iprot.readFieldBegin()
5736
      if ftype == TType.STOP:
5737
        break
5738
      if fid == 0:
5739
        if ftype == TType.BOOL:
5740
          self.success = iprot.readBool();
5741
        else:
5742
          iprot.skip(ftype)
5743
      elif fid == 1:
5744
        if ftype == TType.STRUCT:
5745
          self.ucx = UserContextException()
5746
          self.ucx.read(iprot)
5747
        else:
5748
          iprot.skip(ftype)
5749
      else:
5750
        iprot.skip(ftype)
5751
      iprot.readFieldEnd()
5752
    iprot.readStructEnd()
5753
 
5754
  def write(self, oprot):
5755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5757
      return
559 chandransh 5758
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5759
    if self.success is not None:
94 ashish 5760
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5761
      oprot.writeBool(self.success)
5762
      oprot.writeFieldEnd()
3431 rajveer 5763
    if self.ucx is not None:
94 ashish 5764
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5765
      self.ucx.write(oprot)
5766
      oprot.writeFieldEnd()
5767
    oprot.writeFieldStop()
5768
    oprot.writeStructEnd()
5769
 
3431 rajveer 5770
  def validate(self):
5771
    return
5772
 
5773
 
94 ashish 5774
  def __repr__(self):
5775
    L = ['%s=%r' % (key, value)
5776
      for key, value in self.__dict__.iteritems()]
5777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5778
 
5779
  def __eq__(self, other):
5780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5781
 
5782
  def __ne__(self, other):
5783
    return not (self == other)
5784
 
559 chandransh 5785
class updatePassword_args:
94 ashish 5786
  """
5787
  Attributes:
559 chandransh 5788
   - userid
594 rajveer 5789
   - oldPassword
5790
   - newPassword
94 ashish 5791
  """
5792
 
5793
  thrift_spec = (
5794
    None, # 0
559 chandransh 5795
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5796
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5797
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5798
  )
5799
 
594 rajveer 5800
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5801
    self.userid = userid
594 rajveer 5802
    self.oldPassword = oldPassword
5803
    self.newPassword = newPassword
94 ashish 5804
 
5805
  def read(self, iprot):
5806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5808
      return
5809
    iprot.readStructBegin()
5810
    while True:
5811
      (fname, ftype, fid) = iprot.readFieldBegin()
5812
      if ftype == TType.STOP:
5813
        break
5814
      if fid == 1:
5815
        if ftype == TType.I64:
559 chandransh 5816
          self.userid = iprot.readI64();
94 ashish 5817
        else:
5818
          iprot.skip(ftype)
5819
      elif fid == 2:
559 chandransh 5820
        if ftype == TType.STRING:
594 rajveer 5821
          self.oldPassword = iprot.readString();
94 ashish 5822
        else:
5823
          iprot.skip(ftype)
594 rajveer 5824
      elif fid == 3:
5825
        if ftype == TType.STRING:
5826
          self.newPassword = iprot.readString();
5827
        else:
5828
          iprot.skip(ftype)
94 ashish 5829
      else:
5830
        iprot.skip(ftype)
5831
      iprot.readFieldEnd()
5832
    iprot.readStructEnd()
5833
 
5834
  def write(self, oprot):
5835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5837
      return
559 chandransh 5838
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5839
    if self.userid is not None:
559 chandransh 5840
      oprot.writeFieldBegin('userid', TType.I64, 1)
5841
      oprot.writeI64(self.userid)
94 ashish 5842
      oprot.writeFieldEnd()
3431 rajveer 5843
    if self.oldPassword is not None:
594 rajveer 5844
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5845
      oprot.writeString(self.oldPassword)
94 ashish 5846
      oprot.writeFieldEnd()
3431 rajveer 5847
    if self.newPassword is not None:
594 rajveer 5848
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5849
      oprot.writeString(self.newPassword)
5850
      oprot.writeFieldEnd()
94 ashish 5851
    oprot.writeFieldStop()
5852
    oprot.writeStructEnd()
5853
 
3431 rajveer 5854
  def validate(self):
5855
    return
5856
 
5857
 
94 ashish 5858
  def __repr__(self):
5859
    L = ['%s=%r' % (key, value)
5860
      for key, value in self.__dict__.iteritems()]
5861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5862
 
5863
  def __eq__(self, other):
5864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5865
 
5866
  def __ne__(self, other):
5867
    return not (self == other)
5868
 
559 chandransh 5869
class updatePassword_result:
94 ashish 5870
  """
5871
  Attributes:
5872
   - success
5873
   - ucx
5874
  """
5875
 
5876
  thrift_spec = (
5877
    (0, TType.BOOL, 'success', None, None, ), # 0
5878
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5879
  )
5880
 
5881
  def __init__(self, success=None, ucx=None,):
5882
    self.success = success
5883
    self.ucx = ucx
5884
 
5885
  def read(self, iprot):
5886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5888
      return
5889
    iprot.readStructBegin()
5890
    while True:
5891
      (fname, ftype, fid) = iprot.readFieldBegin()
5892
      if ftype == TType.STOP:
5893
        break
5894
      if fid == 0:
5895
        if ftype == TType.BOOL:
5896
          self.success = iprot.readBool();
5897
        else:
5898
          iprot.skip(ftype)
5899
      elif fid == 1:
5900
        if ftype == TType.STRUCT:
5901
          self.ucx = UserContextException()
5902
          self.ucx.read(iprot)
5903
        else:
5904
          iprot.skip(ftype)
5905
      else:
5906
        iprot.skip(ftype)
5907
      iprot.readFieldEnd()
5908
    iprot.readStructEnd()
5909
 
5910
  def write(self, oprot):
5911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5913
      return
559 chandransh 5914
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5915
    if self.success is not None:
94 ashish 5916
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5917
      oprot.writeBool(self.success)
5918
      oprot.writeFieldEnd()
3431 rajveer 5919
    if self.ucx is not None:
94 ashish 5920
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5921
      self.ucx.write(oprot)
5922
      oprot.writeFieldEnd()
5923
    oprot.writeFieldStop()
5924
    oprot.writeStructEnd()
5925
 
3431 rajveer 5926
  def validate(self):
5927
    return
5928
 
5929
 
94 ashish 5930
  def __repr__(self):
5931
    L = ['%s=%r' % (key, value)
5932
      for key, value in self.__dict__.iteritems()]
5933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5934
 
5935
  def __eq__(self, other):
5936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5937
 
5938
  def __ne__(self, other):
5939
    return not (self == other)
5940
 
581 rajveer 5941
class forgotPassword_args:
5942
  """
5943
  Attributes:
5944
   - email
884 rajveer 5945
   - newPassword
581 rajveer 5946
  """
5947
 
5948
  thrift_spec = (
5949
    None, # 0
5950
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 5951
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 5952
  )
5953
 
884 rajveer 5954
  def __init__(self, email=None, newPassword=None,):
581 rajveer 5955
    self.email = email
884 rajveer 5956
    self.newPassword = newPassword
581 rajveer 5957
 
5958
  def read(self, iprot):
5959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5961
      return
5962
    iprot.readStructBegin()
5963
    while True:
5964
      (fname, ftype, fid) = iprot.readFieldBegin()
5965
      if ftype == TType.STOP:
5966
        break
5967
      if fid == 1:
5968
        if ftype == TType.STRING:
5969
          self.email = iprot.readString();
5970
        else:
5971
          iprot.skip(ftype)
884 rajveer 5972
      elif fid == 2:
5973
        if ftype == TType.STRING:
5974
          self.newPassword = iprot.readString();
5975
        else:
5976
          iprot.skip(ftype)
581 rajveer 5977
      else:
5978
        iprot.skip(ftype)
5979
      iprot.readFieldEnd()
5980
    iprot.readStructEnd()
5981
 
5982
  def write(self, oprot):
5983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5985
      return
5986
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 5987
    if self.email is not None:
581 rajveer 5988
      oprot.writeFieldBegin('email', TType.STRING, 1)
5989
      oprot.writeString(self.email)
5990
      oprot.writeFieldEnd()
3431 rajveer 5991
    if self.newPassword is not None:
884 rajveer 5992
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
5993
      oprot.writeString(self.newPassword)
5994
      oprot.writeFieldEnd()
581 rajveer 5995
    oprot.writeFieldStop()
5996
    oprot.writeStructEnd()
5997
 
3431 rajveer 5998
  def validate(self):
5999
    return
6000
 
6001
 
581 rajveer 6002
  def __repr__(self):
6003
    L = ['%s=%r' % (key, value)
6004
      for key, value in self.__dict__.iteritems()]
6005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6006
 
6007
  def __eq__(self, other):
6008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6009
 
6010
  def __ne__(self, other):
6011
    return not (self == other)
6012
 
6013
class forgotPassword_result:
6014
  """
6015
  Attributes:
6016
   - success
6017
   - ucx
6018
  """
6019
 
6020
  thrift_spec = (
6021
    (0, TType.BOOL, 'success', None, None, ), # 0
6022
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6023
  )
6024
 
6025
  def __init__(self, success=None, ucx=None,):
6026
    self.success = success
6027
    self.ucx = ucx
6028
 
6029
  def read(self, iprot):
6030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6032
      return
6033
    iprot.readStructBegin()
6034
    while True:
6035
      (fname, ftype, fid) = iprot.readFieldBegin()
6036
      if ftype == TType.STOP:
6037
        break
6038
      if fid == 0:
6039
        if ftype == TType.BOOL:
6040
          self.success = iprot.readBool();
6041
        else:
6042
          iprot.skip(ftype)
6043
      elif fid == 1:
6044
        if ftype == TType.STRUCT:
6045
          self.ucx = UserContextException()
6046
          self.ucx.read(iprot)
6047
        else:
6048
          iprot.skip(ftype)
6049
      else:
6050
        iprot.skip(ftype)
6051
      iprot.readFieldEnd()
6052
    iprot.readStructEnd()
6053
 
6054
  def write(self, oprot):
6055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6057
      return
6058
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6059
    if self.success is not None:
581 rajveer 6060
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6061
      oprot.writeBool(self.success)
6062
      oprot.writeFieldEnd()
3431 rajveer 6063
    if self.ucx is not None:
581 rajveer 6064
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6065
      self.ucx.write(oprot)
6066
      oprot.writeFieldEnd()
6067
    oprot.writeFieldStop()
6068
    oprot.writeStructEnd()
6069
 
3431 rajveer 6070
  def validate(self):
6071
    return
6072
 
6073
 
581 rajveer 6074
  def __repr__(self):
6075
    L = ['%s=%r' % (key, value)
6076
      for key, value in self.__dict__.iteritems()]
6077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6078
 
6079
  def __eq__(self, other):
6080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6081
 
6082
  def __ne__(self, other):
6083
    return not (self == other)
6084
 
594 rajveer 6085
class getAllAddressesForUser_args:
6086
  """
6087
  Attributes:
6088
   - userId
6089
  """
6090
 
6091
  thrift_spec = (
6092
    None, # 0
6093
    (1, TType.I64, 'userId', None, None, ), # 1
6094
  )
6095
 
6096
  def __init__(self, userId=None,):
6097
    self.userId = userId
6098
 
6099
  def read(self, iprot):
6100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6102
      return
6103
    iprot.readStructBegin()
6104
    while True:
6105
      (fname, ftype, fid) = iprot.readFieldBegin()
6106
      if ftype == TType.STOP:
6107
        break
6108
      if fid == 1:
6109
        if ftype == TType.I64:
6110
          self.userId = iprot.readI64();
6111
        else:
6112
          iprot.skip(ftype)
6113
      else:
6114
        iprot.skip(ftype)
6115
      iprot.readFieldEnd()
6116
    iprot.readStructEnd()
6117
 
6118
  def write(self, oprot):
6119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6121
      return
6122
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6123
    if self.userId is not None:
594 rajveer 6124
      oprot.writeFieldBegin('userId', TType.I64, 1)
6125
      oprot.writeI64(self.userId)
6126
      oprot.writeFieldEnd()
6127
    oprot.writeFieldStop()
6128
    oprot.writeStructEnd()
6129
 
3431 rajveer 6130
  def validate(self):
6131
    return
6132
 
6133
 
594 rajveer 6134
  def __repr__(self):
6135
    L = ['%s=%r' % (key, value)
6136
      for key, value in self.__dict__.iteritems()]
6137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6138
 
6139
  def __eq__(self, other):
6140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6141
 
6142
  def __ne__(self, other):
6143
    return not (self == other)
6144
 
6145
class getAllAddressesForUser_result:
6146
  """
6147
  Attributes:
6148
   - success
6149
   - ucx
6150
  """
6151
 
6152
  thrift_spec = (
6153
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6154
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6155
  )
6156
 
6157
  def __init__(self, success=None, ucx=None,):
6158
    self.success = success
6159
    self.ucx = ucx
6160
 
6161
  def read(self, iprot):
6162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6164
      return
6165
    iprot.readStructBegin()
6166
    while True:
6167
      (fname, ftype, fid) = iprot.readFieldBegin()
6168
      if ftype == TType.STOP:
6169
        break
6170
      if fid == 0:
6171
        if ftype == TType.LIST:
6172
          self.success = []
6433 anupam.sin 6173
          (_etype70, _size67) = iprot.readListBegin()
6174
          for _i71 in xrange(_size67):
6175
            _elem72 = Address()
6176
            _elem72.read(iprot)
6177
            self.success.append(_elem72)
594 rajveer 6178
          iprot.readListEnd()
6179
        else:
6180
          iprot.skip(ftype)
6181
      elif fid == 1:
6182
        if ftype == TType.STRUCT:
6183
          self.ucx = UserContextException()
6184
          self.ucx.read(iprot)
6185
        else:
6186
          iprot.skip(ftype)
6187
      else:
6188
        iprot.skip(ftype)
6189
      iprot.readFieldEnd()
6190
    iprot.readStructEnd()
6191
 
6192
  def write(self, oprot):
6193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6195
      return
6196
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6197
    if self.success is not None:
594 rajveer 6198
      oprot.writeFieldBegin('success', TType.LIST, 0)
6199
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 6200
      for iter73 in self.success:
6201
        iter73.write(oprot)
594 rajveer 6202
      oprot.writeListEnd()
6203
      oprot.writeFieldEnd()
3431 rajveer 6204
    if self.ucx is not None:
594 rajveer 6205
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6206
      self.ucx.write(oprot)
6207
      oprot.writeFieldEnd()
6208
    oprot.writeFieldStop()
6209
    oprot.writeStructEnd()
6210
 
3431 rajveer 6211
  def validate(self):
6212
    return
6213
 
6214
 
594 rajveer 6215
  def __repr__(self):
6216
    L = ['%s=%r' % (key, value)
6217
      for key, value in self.__dict__.iteritems()]
6218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6219
 
6220
  def __eq__(self, other):
6221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6222
 
6223
  def __ne__(self, other):
6224
    return not (self == other)
6225
 
1894 vikas 6226
class getAddressById_args:
6227
  """
6228
  Attributes:
6229
   - addressId
6230
  """
6231
 
6232
  thrift_spec = (
6233
    None, # 0
6234
    (1, TType.I64, 'addressId', None, None, ), # 1
6235
  )
6236
 
6237
  def __init__(self, addressId=None,):
6238
    self.addressId = addressId
6239
 
6240
  def read(self, iprot):
6241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6243
      return
6244
    iprot.readStructBegin()
6245
    while True:
6246
      (fname, ftype, fid) = iprot.readFieldBegin()
6247
      if ftype == TType.STOP:
6248
        break
6249
      if fid == 1:
6250
        if ftype == TType.I64:
6251
          self.addressId = iprot.readI64();
6252
        else:
6253
          iprot.skip(ftype)
6254
      else:
6255
        iprot.skip(ftype)
6256
      iprot.readFieldEnd()
6257
    iprot.readStructEnd()
6258
 
6259
  def write(self, oprot):
6260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6262
      return
6263
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6264
    if self.addressId is not None:
1894 vikas 6265
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6266
      oprot.writeI64(self.addressId)
6267
      oprot.writeFieldEnd()
6268
    oprot.writeFieldStop()
6269
    oprot.writeStructEnd()
6270
 
3431 rajveer 6271
  def validate(self):
6272
    return
6273
 
6274
 
1894 vikas 6275
  def __repr__(self):
6276
    L = ['%s=%r' % (key, value)
6277
      for key, value in self.__dict__.iteritems()]
6278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6279
 
6280
  def __eq__(self, other):
6281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6282
 
6283
  def __ne__(self, other):
6284
    return not (self == other)
6285
 
6286
class getAddressById_result:
6287
  """
6288
  Attributes:
6289
   - success
6290
   - ucx
6291
  """
6292
 
6293
  thrift_spec = (
6294
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6295
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6296
  )
6297
 
6298
  def __init__(self, success=None, ucx=None,):
6299
    self.success = success
6300
    self.ucx = ucx
6301
 
6302
  def read(self, iprot):
6303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6305
      return
6306
    iprot.readStructBegin()
6307
    while True:
6308
      (fname, ftype, fid) = iprot.readFieldBegin()
6309
      if ftype == TType.STOP:
6310
        break
6311
      if fid == 0:
6312
        if ftype == TType.STRUCT:
6313
          self.success = Address()
6314
          self.success.read(iprot)
6315
        else:
6316
          iprot.skip(ftype)
6317
      elif fid == 1:
6318
        if ftype == TType.STRUCT:
6319
          self.ucx = UserContextException()
6320
          self.ucx.read(iprot)
6321
        else:
6322
          iprot.skip(ftype)
6323
      else:
6324
        iprot.skip(ftype)
6325
      iprot.readFieldEnd()
6326
    iprot.readStructEnd()
6327
 
6328
  def write(self, oprot):
6329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6331
      return
6332
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6333
    if self.success is not None:
1894 vikas 6334
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6335
      self.success.write(oprot)
6336
      oprot.writeFieldEnd()
3431 rajveer 6337
    if self.ucx is not None:
1894 vikas 6338
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6339
      self.ucx.write(oprot)
6340
      oprot.writeFieldEnd()
6341
    oprot.writeFieldStop()
6342
    oprot.writeStructEnd()
6343
 
3431 rajveer 6344
  def validate(self):
6345
    return
6346
 
6347
 
1894 vikas 6348
  def __repr__(self):
6349
    L = ['%s=%r' % (key, value)
6350
      for key, value in self.__dict__.iteritems()]
6351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6352
 
6353
  def __eq__(self, other):
6354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6355
 
6356
  def __ne__(self, other):
6357
    return not (self == other)
6358
 
594 rajveer 6359
class getDefaultAddressId_args:
6360
  """
6361
  Attributes:
6362
   - userId
6363
  """
6364
 
6365
  thrift_spec = (
6366
    None, # 0
6367
    (1, TType.I64, 'userId', None, None, ), # 1
6368
  )
6369
 
6370
  def __init__(self, userId=None,):
6371
    self.userId = userId
6372
 
6373
  def read(self, iprot):
6374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6376
      return
6377
    iprot.readStructBegin()
6378
    while True:
6379
      (fname, ftype, fid) = iprot.readFieldBegin()
6380
      if ftype == TType.STOP:
6381
        break
6382
      if fid == 1:
6383
        if ftype == TType.I64:
6384
          self.userId = iprot.readI64();
6385
        else:
6386
          iprot.skip(ftype)
6387
      else:
6388
        iprot.skip(ftype)
6389
      iprot.readFieldEnd()
6390
    iprot.readStructEnd()
6391
 
6392
  def write(self, oprot):
6393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6395
      return
6396
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6397
    if self.userId is not None:
594 rajveer 6398
      oprot.writeFieldBegin('userId', TType.I64, 1)
6399
      oprot.writeI64(self.userId)
6400
      oprot.writeFieldEnd()
6401
    oprot.writeFieldStop()
6402
    oprot.writeStructEnd()
6403
 
3431 rajveer 6404
  def validate(self):
6405
    return
6406
 
6407
 
594 rajveer 6408
  def __repr__(self):
6409
    L = ['%s=%r' % (key, value)
6410
      for key, value in self.__dict__.iteritems()]
6411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6412
 
6413
  def __eq__(self, other):
6414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6415
 
6416
  def __ne__(self, other):
6417
    return not (self == other)
6418
 
6419
class getDefaultAddressId_result:
6420
  """
6421
  Attributes:
6422
   - success
6423
   - ucx
6424
  """
6425
 
6426
  thrift_spec = (
6427
    (0, TType.I64, 'success', None, None, ), # 0
6428
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6429
  )
6430
 
6431
  def __init__(self, success=None, ucx=None,):
6432
    self.success = success
6433
    self.ucx = ucx
6434
 
6435
  def read(self, iprot):
6436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6438
      return
6439
    iprot.readStructBegin()
6440
    while True:
6441
      (fname, ftype, fid) = iprot.readFieldBegin()
6442
      if ftype == TType.STOP:
6443
        break
6444
      if fid == 0:
6445
        if ftype == TType.I64:
6446
          self.success = iprot.readI64();
6447
        else:
6448
          iprot.skip(ftype)
6449
      elif fid == 1:
6450
        if ftype == TType.STRUCT:
6451
          self.ucx = UserContextException()
6452
          self.ucx.read(iprot)
6453
        else:
6454
          iprot.skip(ftype)
6455
      else:
6456
        iprot.skip(ftype)
6457
      iprot.readFieldEnd()
6458
    iprot.readStructEnd()
6459
 
6460
  def write(self, oprot):
6461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6463
      return
6464
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6465
    if self.success is not None:
594 rajveer 6466
      oprot.writeFieldBegin('success', TType.I64, 0)
6467
      oprot.writeI64(self.success)
6468
      oprot.writeFieldEnd()
3431 rajveer 6469
    if self.ucx is not None:
594 rajveer 6470
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6471
      self.ucx.write(oprot)
6472
      oprot.writeFieldEnd()
6473
    oprot.writeFieldStop()
6474
    oprot.writeStructEnd()
6475
 
3431 rajveer 6476
  def validate(self):
6477
    return
6478
 
6479
 
594 rajveer 6480
  def __repr__(self):
6481
    L = ['%s=%r' % (key, value)
6482
      for key, value in self.__dict__.iteritems()]
6483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6484
 
6485
  def __eq__(self, other):
6486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6487
 
6488
  def __ne__(self, other):
6489
    return not (self == other)
6490
 
785 rajveer 6491
class getDefaultPincode_args:
6492
  """
6493
  Attributes:
6494
   - userId
6495
  """
6496
 
6497
  thrift_spec = (
6498
    None, # 0
6499
    (1, TType.I64, 'userId', None, None, ), # 1
6500
  )
6501
 
6502
  def __init__(self, userId=None,):
6503
    self.userId = userId
6504
 
6505
  def read(self, iprot):
6506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6508
      return
6509
    iprot.readStructBegin()
6510
    while True:
6511
      (fname, ftype, fid) = iprot.readFieldBegin()
6512
      if ftype == TType.STOP:
6513
        break
6514
      if fid == 1:
6515
        if ftype == TType.I64:
6516
          self.userId = iprot.readI64();
6517
        else:
6518
          iprot.skip(ftype)
6519
      else:
6520
        iprot.skip(ftype)
6521
      iprot.readFieldEnd()
6522
    iprot.readStructEnd()
6523
 
6524
  def write(self, oprot):
6525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6527
      return
6528
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6529
    if self.userId is not None:
785 rajveer 6530
      oprot.writeFieldBegin('userId', TType.I64, 1)
6531
      oprot.writeI64(self.userId)
6532
      oprot.writeFieldEnd()
6533
    oprot.writeFieldStop()
6534
    oprot.writeStructEnd()
6535
 
3431 rajveer 6536
  def validate(self):
6537
    return
6538
 
6539
 
785 rajveer 6540
  def __repr__(self):
6541
    L = ['%s=%r' % (key, value)
6542
      for key, value in self.__dict__.iteritems()]
6543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6544
 
6545
  def __eq__(self, other):
6546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6547
 
6548
  def __ne__(self, other):
6549
    return not (self == other)
6550
 
6551
class getDefaultPincode_result:
6552
  """
6553
  Attributes:
6554
   - success
6555
   - ucx
6556
  """
6557
 
6558
  thrift_spec = (
6559
    (0, TType.STRING, 'success', None, None, ), # 0
6560
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6561
  )
6562
 
6563
  def __init__(self, success=None, ucx=None,):
6564
    self.success = success
6565
    self.ucx = ucx
6566
 
6567
  def read(self, iprot):
6568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6570
      return
6571
    iprot.readStructBegin()
6572
    while True:
6573
      (fname, ftype, fid) = iprot.readFieldBegin()
6574
      if ftype == TType.STOP:
6575
        break
6576
      if fid == 0:
6577
        if ftype == TType.STRING:
6578
          self.success = iprot.readString();
6579
        else:
6580
          iprot.skip(ftype)
6581
      elif fid == 1:
6582
        if ftype == TType.STRUCT:
6583
          self.ucx = UserContextException()
6584
          self.ucx.read(iprot)
6585
        else:
6586
          iprot.skip(ftype)
6587
      else:
6588
        iprot.skip(ftype)
6589
      iprot.readFieldEnd()
6590
    iprot.readStructEnd()
6591
 
6592
  def write(self, oprot):
6593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6595
      return
6596
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6597
    if self.success is not None:
785 rajveer 6598
      oprot.writeFieldBegin('success', TType.STRING, 0)
6599
      oprot.writeString(self.success)
6600
      oprot.writeFieldEnd()
3431 rajveer 6601
    if self.ucx is not None:
785 rajveer 6602
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6603
      self.ucx.write(oprot)
6604
      oprot.writeFieldEnd()
6605
    oprot.writeFieldStop()
6606
    oprot.writeStructEnd()
6607
 
3431 rajveer 6608
  def validate(self):
6609
    return
6610
 
6611
 
785 rajveer 6612
  def __repr__(self):
6613
    L = ['%s=%r' % (key, value)
6614
      for key, value in self.__dict__.iteritems()]
6615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6616
 
6617
  def __eq__(self, other):
6618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6619
 
6620
  def __ne__(self, other):
6621
    return not (self == other)
6622
 
1274 varun.gupt 6623
class saveUserCommunication_args:
6624
  """
6625
  Attributes:
6626
   - userId
6627
   - replyTo
6628
   - communicationType
6629
   - orderId
6630
   - airwaybillNo
6631
   - productName
6632
   - subject
6633
   - message
6634
  """
6635
 
6636
  thrift_spec = (
6637
    None, # 0
6638
    (1, TType.I64, 'userId', None, None, ), # 1
6639
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6640
    (3, TType.I64, 'communicationType', None, None, ), # 3
6641
    (4, TType.I64, 'orderId', None, None, ), # 4
6642
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6643
    (6, TType.STRING, 'productName', None, None, ), # 6
6644
    (7, TType.STRING, 'subject', None, None, ), # 7
6645
    (8, TType.STRING, 'message', None, None, ), # 8
6646
  )
6647
 
6648
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6649
    self.userId = userId
6650
    self.replyTo = replyTo
6651
    self.communicationType = communicationType
6652
    self.orderId = orderId
6653
    self.airwaybillNo = airwaybillNo
6654
    self.productName = productName
6655
    self.subject = subject
6656
    self.message = message
6657
 
6658
  def read(self, iprot):
6659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6661
      return
6662
    iprot.readStructBegin()
6663
    while True:
6664
      (fname, ftype, fid) = iprot.readFieldBegin()
6665
      if ftype == TType.STOP:
6666
        break
6667
      if fid == 1:
6668
        if ftype == TType.I64:
6669
          self.userId = iprot.readI64();
6670
        else:
6671
          iprot.skip(ftype)
6672
      elif fid == 2:
6673
        if ftype == TType.STRING:
6674
          self.replyTo = iprot.readString();
6675
        else:
6676
          iprot.skip(ftype)
6677
      elif fid == 3:
6678
        if ftype == TType.I64:
6679
          self.communicationType = iprot.readI64();
6680
        else:
6681
          iprot.skip(ftype)
6682
      elif fid == 4:
6683
        if ftype == TType.I64:
6684
          self.orderId = iprot.readI64();
6685
        else:
6686
          iprot.skip(ftype)
6687
      elif fid == 5:
6688
        if ftype == TType.STRING:
6689
          self.airwaybillNo = iprot.readString();
6690
        else:
6691
          iprot.skip(ftype)
6692
      elif fid == 6:
6693
        if ftype == TType.STRING:
6694
          self.productName = iprot.readString();
6695
        else:
6696
          iprot.skip(ftype)
6697
      elif fid == 7:
6698
        if ftype == TType.STRING:
6699
          self.subject = iprot.readString();
6700
        else:
6701
          iprot.skip(ftype)
6702
      elif fid == 8:
6703
        if ftype == TType.STRING:
6704
          self.message = iprot.readString();
6705
        else:
6706
          iprot.skip(ftype)
6707
      else:
6708
        iprot.skip(ftype)
6709
      iprot.readFieldEnd()
6710
    iprot.readStructEnd()
6711
 
6712
  def write(self, oprot):
6713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6715
      return
6716
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6717
    if self.userId is not None:
1274 varun.gupt 6718
      oprot.writeFieldBegin('userId', TType.I64, 1)
6719
      oprot.writeI64(self.userId)
6720
      oprot.writeFieldEnd()
3431 rajveer 6721
    if self.replyTo is not None:
1274 varun.gupt 6722
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6723
      oprot.writeString(self.replyTo)
6724
      oprot.writeFieldEnd()
3431 rajveer 6725
    if self.communicationType is not None:
1274 varun.gupt 6726
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6727
      oprot.writeI64(self.communicationType)
6728
      oprot.writeFieldEnd()
3431 rajveer 6729
    if self.orderId is not None:
1274 varun.gupt 6730
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6731
      oprot.writeI64(self.orderId)
6732
      oprot.writeFieldEnd()
3431 rajveer 6733
    if self.airwaybillNo is not None:
1274 varun.gupt 6734
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6735
      oprot.writeString(self.airwaybillNo)
6736
      oprot.writeFieldEnd()
3431 rajveer 6737
    if self.productName is not None:
1274 varun.gupt 6738
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6739
      oprot.writeString(self.productName)
6740
      oprot.writeFieldEnd()
3431 rajveer 6741
    if self.subject is not None:
1274 varun.gupt 6742
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6743
      oprot.writeString(self.subject)
6744
      oprot.writeFieldEnd()
3431 rajveer 6745
    if self.message is not None:
1274 varun.gupt 6746
      oprot.writeFieldBegin('message', TType.STRING, 8)
6747
      oprot.writeString(self.message)
6748
      oprot.writeFieldEnd()
6749
    oprot.writeFieldStop()
6750
    oprot.writeStructEnd()
6751
 
3431 rajveer 6752
  def validate(self):
6753
    return
6754
 
6755
 
1274 varun.gupt 6756
  def __repr__(self):
6757
    L = ['%s=%r' % (key, value)
6758
      for key, value in self.__dict__.iteritems()]
6759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6760
 
6761
  def __eq__(self, other):
6762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6763
 
6764
  def __ne__(self, other):
6765
    return not (self == other)
6766
 
6767
class saveUserCommunication_result:
6768
  """
6769
  Attributes:
6770
   - success
6771
   - ucx
6772
  """
6773
 
6774
  thrift_spec = (
6775
    (0, TType.BOOL, 'success', None, None, ), # 0
6776
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6777
  )
6778
 
6779
  def __init__(self, success=None, ucx=None,):
6780
    self.success = success
6781
    self.ucx = ucx
6782
 
6783
  def read(self, iprot):
6784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6786
      return
6787
    iprot.readStructBegin()
6788
    while True:
6789
      (fname, ftype, fid) = iprot.readFieldBegin()
6790
      if ftype == TType.STOP:
6791
        break
6792
      if fid == 0:
6793
        if ftype == TType.BOOL:
6794
          self.success = iprot.readBool();
6795
        else:
6796
          iprot.skip(ftype)
6797
      elif fid == 1:
6798
        if ftype == TType.STRUCT:
6799
          self.ucx = UserCommunicationException()
6800
          self.ucx.read(iprot)
6801
        else:
6802
          iprot.skip(ftype)
6803
      else:
6804
        iprot.skip(ftype)
6805
      iprot.readFieldEnd()
6806
    iprot.readStructEnd()
6807
 
6808
  def write(self, oprot):
6809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6811
      return
6812
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6813
    if self.success is not None:
1274 varun.gupt 6814
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6815
      oprot.writeBool(self.success)
6816
      oprot.writeFieldEnd()
3431 rajveer 6817
    if self.ucx is not None:
1274 varun.gupt 6818
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6819
      self.ucx.write(oprot)
6820
      oprot.writeFieldEnd()
6821
    oprot.writeFieldStop()
6822
    oprot.writeStructEnd()
6823
 
3431 rajveer 6824
  def validate(self):
6825
    return
6826
 
6827
 
1274 varun.gupt 6828
  def __repr__(self):
6829
    L = ['%s=%r' % (key, value)
6830
      for key, value in self.__dict__.iteritems()]
6831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6832
 
6833
  def __eq__(self, other):
6834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6835
 
6836
  def __ne__(self, other):
6837
    return not (self == other)
6838
 
1590 varun.gupt 6839
class getUserCommunicationById_args:
6840
  """
6841
  Attributes:
6842
   - id
6843
  """
6844
 
6845
  thrift_spec = (
6846
    None, # 0
6847
    (1, TType.I64, 'id', None, None, ), # 1
6848
  )
6849
 
6850
  def __init__(self, id=None,):
6851
    self.id = id
6852
 
6853
  def read(self, iprot):
6854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6856
      return
6857
    iprot.readStructBegin()
6858
    while True:
6859
      (fname, ftype, fid) = iprot.readFieldBegin()
6860
      if ftype == TType.STOP:
6861
        break
6862
      if fid == 1:
6863
        if ftype == TType.I64:
6864
          self.id = iprot.readI64();
6865
        else:
6866
          iprot.skip(ftype)
6867
      else:
6868
        iprot.skip(ftype)
6869
      iprot.readFieldEnd()
6870
    iprot.readStructEnd()
6871
 
6872
  def write(self, oprot):
6873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6875
      return
6876
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6877
    if self.id is not None:
1590 varun.gupt 6878
      oprot.writeFieldBegin('id', TType.I64, 1)
6879
      oprot.writeI64(self.id)
6880
      oprot.writeFieldEnd()
6881
    oprot.writeFieldStop()
6882
    oprot.writeStructEnd()
6883
 
3431 rajveer 6884
  def validate(self):
6885
    return
6886
 
6887
 
1590 varun.gupt 6888
  def __repr__(self):
6889
    L = ['%s=%r' % (key, value)
6890
      for key, value in self.__dict__.iteritems()]
6891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6892
 
6893
  def __eq__(self, other):
6894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6895
 
6896
  def __ne__(self, other):
6897
    return not (self == other)
6898
 
6899
class getUserCommunicationById_result:
6900
  """
6901
  Attributes:
6902
   - success
6903
   - ucx
6904
  """
6905
 
6906
  thrift_spec = (
6907
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6908
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6909
  )
6910
 
6911
  def __init__(self, success=None, ucx=None,):
6912
    self.success = success
6913
    self.ucx = ucx
6914
 
6915
  def read(self, iprot):
6916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6918
      return
6919
    iprot.readStructBegin()
6920
    while True:
6921
      (fname, ftype, fid) = iprot.readFieldBegin()
6922
      if ftype == TType.STOP:
6923
        break
6924
      if fid == 0:
6925
        if ftype == TType.STRUCT:
6926
          self.success = UserCommunication()
6927
          self.success.read(iprot)
6928
        else:
6929
          iprot.skip(ftype)
6930
      elif fid == 1:
6931
        if ftype == TType.STRUCT:
6932
          self.ucx = UserCommunicationException()
6933
          self.ucx.read(iprot)
6934
        else:
6935
          iprot.skip(ftype)
6936
      else:
6937
        iprot.skip(ftype)
6938
      iprot.readFieldEnd()
6939
    iprot.readStructEnd()
6940
 
6941
  def write(self, oprot):
6942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6944
      return
6945
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 6946
    if self.success is not None:
1590 varun.gupt 6947
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6948
      self.success.write(oprot)
6949
      oprot.writeFieldEnd()
3431 rajveer 6950
    if self.ucx is not None:
1590 varun.gupt 6951
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6952
      self.ucx.write(oprot)
6953
      oprot.writeFieldEnd()
6954
    oprot.writeFieldStop()
6955
    oprot.writeStructEnd()
6956
 
3431 rajveer 6957
  def validate(self):
6958
    return
6959
 
6960
 
1590 varun.gupt 6961
  def __repr__(self):
6962
    L = ['%s=%r' % (key, value)
6963
      for key, value in self.__dict__.iteritems()]
6964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6965
 
6966
  def __eq__(self, other):
6967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6968
 
6969
  def __ne__(self, other):
6970
    return not (self == other)
6971
 
6972
class getUserCommunicationByUser_args:
6973
  """
6974
  Attributes:
6975
   - userId
6976
  """
6977
 
6978
  thrift_spec = (
6979
    None, # 0
6980
    (1, TType.I64, 'userId', None, None, ), # 1
6981
  )
6982
 
6983
  def __init__(self, userId=None,):
6984
    self.userId = userId
6985
 
6986
  def read(self, iprot):
6987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6989
      return
6990
    iprot.readStructBegin()
6991
    while True:
6992
      (fname, ftype, fid) = iprot.readFieldBegin()
6993
      if ftype == TType.STOP:
6994
        break
6995
      if fid == 1:
6996
        if ftype == TType.I64:
6997
          self.userId = iprot.readI64();
6998
        else:
6999
          iprot.skip(ftype)
7000
      else:
7001
        iprot.skip(ftype)
7002
      iprot.readFieldEnd()
7003
    iprot.readStructEnd()
7004
 
7005
  def write(self, oprot):
7006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7008
      return
7009
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7010
    if self.userId is not None:
1590 varun.gupt 7011
      oprot.writeFieldBegin('userId', TType.I64, 1)
7012
      oprot.writeI64(self.userId)
7013
      oprot.writeFieldEnd()
7014
    oprot.writeFieldStop()
7015
    oprot.writeStructEnd()
7016
 
3431 rajveer 7017
  def validate(self):
7018
    return
7019
 
7020
 
1590 varun.gupt 7021
  def __repr__(self):
7022
    L = ['%s=%r' % (key, value)
7023
      for key, value in self.__dict__.iteritems()]
7024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7025
 
7026
  def __eq__(self, other):
7027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7028
 
7029
  def __ne__(self, other):
7030
    return not (self == other)
7031
 
7032
class getUserCommunicationByUser_result:
7033
  """
7034
  Attributes:
7035
   - success
7036
   - ucx
7037
  """
7038
 
7039
  thrift_spec = (
7040
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7041
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7042
  )
7043
 
7044
  def __init__(self, success=None, ucx=None,):
7045
    self.success = success
7046
    self.ucx = ucx
7047
 
7048
  def read(self, iprot):
7049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7051
      return
7052
    iprot.readStructBegin()
7053
    while True:
7054
      (fname, ftype, fid) = iprot.readFieldBegin()
7055
      if ftype == TType.STOP:
7056
        break
7057
      if fid == 0:
7058
        if ftype == TType.LIST:
7059
          self.success = []
6433 anupam.sin 7060
          (_etype77, _size74) = iprot.readListBegin()
7061
          for _i78 in xrange(_size74):
7062
            _elem79 = UserCommunication()
7063
            _elem79.read(iprot)
7064
            self.success.append(_elem79)
1590 varun.gupt 7065
          iprot.readListEnd()
7066
        else:
7067
          iprot.skip(ftype)
7068
      elif fid == 1:
7069
        if ftype == TType.STRUCT:
7070
          self.ucx = UserCommunicationException()
7071
          self.ucx.read(iprot)
7072
        else:
7073
          iprot.skip(ftype)
7074
      else:
7075
        iprot.skip(ftype)
7076
      iprot.readFieldEnd()
7077
    iprot.readStructEnd()
7078
 
7079
  def write(self, oprot):
7080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7082
      return
7083
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7084
    if self.success is not None:
1590 varun.gupt 7085
      oprot.writeFieldBegin('success', TType.LIST, 0)
7086
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 7087
      for iter80 in self.success:
7088
        iter80.write(oprot)
1590 varun.gupt 7089
      oprot.writeListEnd()
7090
      oprot.writeFieldEnd()
3431 rajveer 7091
    if self.ucx is not None:
1590 varun.gupt 7092
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7093
      self.ucx.write(oprot)
7094
      oprot.writeFieldEnd()
7095
    oprot.writeFieldStop()
7096
    oprot.writeStructEnd()
7097
 
3431 rajveer 7098
  def validate(self):
7099
    return
7100
 
7101
 
1590 varun.gupt 7102
  def __repr__(self):
7103
    L = ['%s=%r' % (key, value)
7104
      for key, value in self.__dict__.iteritems()]
7105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7106
 
7107
  def __eq__(self, other):
7108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7109
 
7110
  def __ne__(self, other):
7111
    return not (self == other)
7112
 
7113
class getAllUserCommunications_args:
7114
 
7115
  thrift_spec = (
7116
  )
7117
 
7118
  def read(self, iprot):
7119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7121
      return
7122
    iprot.readStructBegin()
7123
    while True:
7124
      (fname, ftype, fid) = iprot.readFieldBegin()
7125
      if ftype == TType.STOP:
7126
        break
7127
      else:
7128
        iprot.skip(ftype)
7129
      iprot.readFieldEnd()
7130
    iprot.readStructEnd()
7131
 
7132
  def write(self, oprot):
7133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7135
      return
7136
    oprot.writeStructBegin('getAllUserCommunications_args')
7137
    oprot.writeFieldStop()
7138
    oprot.writeStructEnd()
7139
 
3431 rajveer 7140
  def validate(self):
7141
    return
7142
 
7143
 
1590 varun.gupt 7144
  def __repr__(self):
7145
    L = ['%s=%r' % (key, value)
7146
      for key, value in self.__dict__.iteritems()]
7147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7148
 
7149
  def __eq__(self, other):
7150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7151
 
7152
  def __ne__(self, other):
7153
    return not (self == other)
7154
 
7155
class getAllUserCommunications_result:
7156
  """
7157
  Attributes:
7158
   - success
7159
   - ucx
7160
  """
7161
 
7162
  thrift_spec = (
7163
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7164
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7165
  )
7166
 
7167
  def __init__(self, success=None, ucx=None,):
7168
    self.success = success
7169
    self.ucx = ucx
7170
 
7171
  def read(self, iprot):
7172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7174
      return
7175
    iprot.readStructBegin()
7176
    while True:
7177
      (fname, ftype, fid) = iprot.readFieldBegin()
7178
      if ftype == TType.STOP:
7179
        break
7180
      if fid == 0:
7181
        if ftype == TType.LIST:
7182
          self.success = []
6433 anupam.sin 7183
          (_etype84, _size81) = iprot.readListBegin()
7184
          for _i85 in xrange(_size81):
7185
            _elem86 = UserCommunication()
7186
            _elem86.read(iprot)
7187
            self.success.append(_elem86)
1590 varun.gupt 7188
          iprot.readListEnd()
7189
        else:
7190
          iprot.skip(ftype)
7191
      elif fid == 1:
7192
        if ftype == TType.STRUCT:
7193
          self.ucx = UserCommunicationException()
7194
          self.ucx.read(iprot)
7195
        else:
7196
          iprot.skip(ftype)
7197
      else:
7198
        iprot.skip(ftype)
7199
      iprot.readFieldEnd()
7200
    iprot.readStructEnd()
7201
 
7202
  def write(self, oprot):
7203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7205
      return
7206
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7207
    if self.success is not None:
1590 varun.gupt 7208
      oprot.writeFieldBegin('success', TType.LIST, 0)
7209
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 7210
      for iter87 in self.success:
7211
        iter87.write(oprot)
1590 varun.gupt 7212
      oprot.writeListEnd()
7213
      oprot.writeFieldEnd()
3431 rajveer 7214
    if self.ucx is not None:
1590 varun.gupt 7215
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7216
      self.ucx.write(oprot)
7217
      oprot.writeFieldEnd()
7218
    oprot.writeFieldStop()
7219
    oprot.writeStructEnd()
7220
 
3431 rajveer 7221
  def validate(self):
7222
    return
7223
 
7224
 
1590 varun.gupt 7225
  def __repr__(self):
7226
    L = ['%s=%r' % (key, value)
7227
      for key, value in self.__dict__.iteritems()]
7228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7229
 
7230
  def __eq__(self, other):
7231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7232
 
7233
  def __ne__(self, other):
7234
    return not (self == other)
7235
 
5407 amar.kumar 7236
class removeUserCommunication_args:
7237
  """
7238
  Attributes:
7239
   - id
7240
  """
7241
 
7242
  thrift_spec = (
7243
    None, # 0
7244
    (1, TType.I64, 'id', None, None, ), # 1
7245
  )
7246
 
7247
  def __init__(self, id=None,):
7248
    self.id = id
7249
 
7250
  def read(self, iprot):
7251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7253
      return
7254
    iprot.readStructBegin()
7255
    while True:
7256
      (fname, ftype, fid) = iprot.readFieldBegin()
7257
      if ftype == TType.STOP:
7258
        break
7259
      if fid == 1:
7260
        if ftype == TType.I64:
7261
          self.id = iprot.readI64();
7262
        else:
7263
          iprot.skip(ftype)
7264
      else:
7265
        iprot.skip(ftype)
7266
      iprot.readFieldEnd()
7267
    iprot.readStructEnd()
7268
 
7269
  def write(self, oprot):
7270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7272
      return
7273
    oprot.writeStructBegin('removeUserCommunication_args')
7274
    if self.id is not None:
7275
      oprot.writeFieldBegin('id', TType.I64, 1)
7276
      oprot.writeI64(self.id)
7277
      oprot.writeFieldEnd()
7278
    oprot.writeFieldStop()
7279
    oprot.writeStructEnd()
7280
 
7281
  def validate(self):
7282
    return
7283
 
7284
 
7285
  def __repr__(self):
7286
    L = ['%s=%r' % (key, value)
7287
      for key, value in self.__dict__.iteritems()]
7288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7289
 
7290
  def __eq__(self, other):
7291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7292
 
7293
  def __ne__(self, other):
7294
    return not (self == other)
7295
 
7296
class removeUserCommunication_result:
7297
  """
7298
  Attributes:
7299
   - ucx
7300
  """
7301
 
7302
  thrift_spec = (
7303
    None, # 0
7304
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7305
  )
7306
 
7307
  def __init__(self, ucx=None,):
7308
    self.ucx = ucx
7309
 
7310
  def read(self, iprot):
7311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7313
      return
7314
    iprot.readStructBegin()
7315
    while True:
7316
      (fname, ftype, fid) = iprot.readFieldBegin()
7317
      if ftype == TType.STOP:
7318
        break
7319
      if fid == 1:
7320
        if ftype == TType.STRUCT:
7321
          self.ucx = UserCommunicationException()
7322
          self.ucx.read(iprot)
7323
        else:
7324
          iprot.skip(ftype)
7325
      else:
7326
        iprot.skip(ftype)
7327
      iprot.readFieldEnd()
7328
    iprot.readStructEnd()
7329
 
7330
  def write(self, oprot):
7331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7333
      return
7334
    oprot.writeStructBegin('removeUserCommunication_result')
7335
    if self.ucx is not None:
7336
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7337
      self.ucx.write(oprot)
7338
      oprot.writeFieldEnd()
7339
    oprot.writeFieldStop()
7340
    oprot.writeStructEnd()
7341
 
7342
  def validate(self):
7343
    return
7344
 
7345
 
7346
  def __repr__(self):
7347
    L = ['%s=%r' % (key, value)
7348
      for key, value in self.__dict__.iteritems()]
7349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7350
 
7351
  def __eq__(self, other):
7352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7353
 
7354
  def __ne__(self, other):
7355
    return not (self == other)
7356
 
1845 vikas 7357
class createMasterAffiliate_args:
7358
  """
7359
  Attributes:
7360
   - name
1859 vikas 7361
   - addedOn
1845 vikas 7362
  """
7363
 
7364
  thrift_spec = (
7365
    None, # 0
7366
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7367
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7368
  )
7369
 
1859 vikas 7370
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7371
    self.name = name
1859 vikas 7372
    self.addedOn = addedOn
1845 vikas 7373
 
7374
  def read(self, iprot):
7375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7377
      return
7378
    iprot.readStructBegin()
7379
    while True:
7380
      (fname, ftype, fid) = iprot.readFieldBegin()
7381
      if ftype == TType.STOP:
7382
        break
7383
      if fid == 1:
7384
        if ftype == TType.STRING:
7385
          self.name = iprot.readString();
7386
        else:
7387
          iprot.skip(ftype)
1859 vikas 7388
      elif fid == 2:
7389
        if ftype == TType.I64:
7390
          self.addedOn = iprot.readI64();
7391
        else:
7392
          iprot.skip(ftype)
1845 vikas 7393
      else:
7394
        iprot.skip(ftype)
7395
      iprot.readFieldEnd()
7396
    iprot.readStructEnd()
7397
 
7398
  def write(self, oprot):
7399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7401
      return
7402
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7403
    if self.name is not None:
1845 vikas 7404
      oprot.writeFieldBegin('name', TType.STRING, 1)
7405
      oprot.writeString(self.name)
7406
      oprot.writeFieldEnd()
3431 rajveer 7407
    if self.addedOn is not None:
1859 vikas 7408
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7409
      oprot.writeI64(self.addedOn)
7410
      oprot.writeFieldEnd()
1845 vikas 7411
    oprot.writeFieldStop()
7412
    oprot.writeStructEnd()
7413
 
3431 rajveer 7414
  def validate(self):
7415
    return
7416
 
7417
 
1845 vikas 7418
  def __repr__(self):
7419
    L = ['%s=%r' % (key, value)
7420
      for key, value in self.__dict__.iteritems()]
7421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7422
 
7423
  def __eq__(self, other):
7424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7425
 
7426
  def __ne__(self, other):
7427
    return not (self == other)
7428
 
7429
class createMasterAffiliate_result:
7430
  """
7431
  Attributes:
7432
   - success
7433
   - utx
7434
  """
7435
 
7436
  thrift_spec = (
7437
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7438
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7439
  )
7440
 
7441
  def __init__(self, success=None, utx=None,):
7442
    self.success = success
7443
    self.utx = utx
7444
 
7445
  def read(self, iprot):
7446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7448
      return
7449
    iprot.readStructBegin()
7450
    while True:
7451
      (fname, ftype, fid) = iprot.readFieldBegin()
7452
      if ftype == TType.STOP:
7453
        break
7454
      if fid == 0:
7455
        if ftype == TType.STRUCT:
7456
          self.success = MasterAffiliate()
7457
          self.success.read(iprot)
7458
        else:
7459
          iprot.skip(ftype)
7460
      elif fid == 1:
7461
        if ftype == TType.STRUCT:
1996 vikas 7462
          self.utx = UserAffiliateException()
1845 vikas 7463
          self.utx.read(iprot)
7464
        else:
7465
          iprot.skip(ftype)
7466
      else:
7467
        iprot.skip(ftype)
7468
      iprot.readFieldEnd()
7469
    iprot.readStructEnd()
7470
 
7471
  def write(self, oprot):
7472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7474
      return
7475
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7476
    if self.success is not None:
1845 vikas 7477
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7478
      self.success.write(oprot)
7479
      oprot.writeFieldEnd()
3431 rajveer 7480
    if self.utx is not None:
1845 vikas 7481
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7482
      self.utx.write(oprot)
7483
      oprot.writeFieldEnd()
7484
    oprot.writeFieldStop()
7485
    oprot.writeStructEnd()
7486
 
3431 rajveer 7487
  def validate(self):
7488
    return
7489
 
7490
 
1845 vikas 7491
  def __repr__(self):
7492
    L = ['%s=%r' % (key, value)
7493
      for key, value in self.__dict__.iteritems()]
7494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7495
 
7496
  def __eq__(self, other):
7497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7498
 
7499
  def __ne__(self, other):
7500
    return not (self == other)
7501
 
1899 vikas 7502
class getAllMasterAffiliates_args:
7503
 
7504
  thrift_spec = (
7505
  )
7506
 
7507
  def read(self, iprot):
7508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7510
      return
7511
    iprot.readStructBegin()
7512
    while True:
7513
      (fname, ftype, fid) = iprot.readFieldBegin()
7514
      if ftype == TType.STOP:
7515
        break
7516
      else:
7517
        iprot.skip(ftype)
7518
      iprot.readFieldEnd()
7519
    iprot.readStructEnd()
7520
 
7521
  def write(self, oprot):
7522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7524
      return
7525
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7526
    oprot.writeFieldStop()
7527
    oprot.writeStructEnd()
7528
 
3431 rajveer 7529
  def validate(self):
7530
    return
7531
 
7532
 
1899 vikas 7533
  def __repr__(self):
7534
    L = ['%s=%r' % (key, value)
7535
      for key, value in self.__dict__.iteritems()]
7536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7537
 
7538
  def __eq__(self, other):
7539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7540
 
7541
  def __ne__(self, other):
7542
    return not (self == other)
7543
 
7544
class getAllMasterAffiliates_result:
7545
  """
7546
  Attributes:
7547
   - success
7548
   - utx
7549
  """
7550
 
7551
  thrift_spec = (
7552
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7553
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7554
  )
7555
 
7556
  def __init__(self, success=None, utx=None,):
7557
    self.success = success
7558
    self.utx = utx
7559
 
7560
  def read(self, iprot):
7561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7563
      return
7564
    iprot.readStructBegin()
7565
    while True:
7566
      (fname, ftype, fid) = iprot.readFieldBegin()
7567
      if ftype == TType.STOP:
7568
        break
7569
      if fid == 0:
7570
        if ftype == TType.LIST:
7571
          self.success = []
6433 anupam.sin 7572
          (_etype91, _size88) = iprot.readListBegin()
7573
          for _i92 in xrange(_size88):
7574
            _elem93 = MasterAffiliate()
7575
            _elem93.read(iprot)
7576
            self.success.append(_elem93)
1899 vikas 7577
          iprot.readListEnd()
7578
        else:
7579
          iprot.skip(ftype)
7580
      elif fid == 1:
7581
        if ftype == TType.STRUCT:
1996 vikas 7582
          self.utx = UserAffiliateException()
1899 vikas 7583
          self.utx.read(iprot)
7584
        else:
7585
          iprot.skip(ftype)
7586
      else:
7587
        iprot.skip(ftype)
7588
      iprot.readFieldEnd()
7589
    iprot.readStructEnd()
7590
 
7591
  def write(self, oprot):
7592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7594
      return
7595
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7596
    if self.success is not None:
1899 vikas 7597
      oprot.writeFieldBegin('success', TType.LIST, 0)
7598
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 7599
      for iter94 in self.success:
7600
        iter94.write(oprot)
1899 vikas 7601
      oprot.writeListEnd()
7602
      oprot.writeFieldEnd()
3431 rajveer 7603
    if self.utx is not None:
1899 vikas 7604
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7605
      self.utx.write(oprot)
7606
      oprot.writeFieldEnd()
7607
    oprot.writeFieldStop()
7608
    oprot.writeStructEnd()
7609
 
3431 rajveer 7610
  def validate(self):
7611
    return
7612
 
7613
 
1899 vikas 7614
  def __repr__(self):
7615
    L = ['%s=%r' % (key, value)
7616
      for key, value in self.__dict__.iteritems()]
7617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7618
 
7619
  def __eq__(self, other):
7620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7621
 
7622
  def __ne__(self, other):
7623
    return not (self == other)
7624
 
1845 vikas 7625
class getMasterAffiliateById_args:
7626
  """
7627
  Attributes:
7628
   - id
7629
  """
7630
 
7631
  thrift_spec = (
7632
    None, # 0
7633
    (1, TType.I64, 'id', None, None, ), # 1
7634
  )
7635
 
7636
  def __init__(self, id=None,):
7637
    self.id = id
7638
 
7639
  def read(self, iprot):
7640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7642
      return
7643
    iprot.readStructBegin()
7644
    while True:
7645
      (fname, ftype, fid) = iprot.readFieldBegin()
7646
      if ftype == TType.STOP:
7647
        break
7648
      if fid == 1:
7649
        if ftype == TType.I64:
7650
          self.id = iprot.readI64();
7651
        else:
7652
          iprot.skip(ftype)
7653
      else:
7654
        iprot.skip(ftype)
7655
      iprot.readFieldEnd()
7656
    iprot.readStructEnd()
7657
 
7658
  def write(self, oprot):
7659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7661
      return
7662
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7663
    if self.id is not None:
1845 vikas 7664
      oprot.writeFieldBegin('id', TType.I64, 1)
7665
      oprot.writeI64(self.id)
7666
      oprot.writeFieldEnd()
7667
    oprot.writeFieldStop()
7668
    oprot.writeStructEnd()
7669
 
3431 rajveer 7670
  def validate(self):
7671
    return
7672
 
7673
 
1845 vikas 7674
  def __repr__(self):
7675
    L = ['%s=%r' % (key, value)
7676
      for key, value in self.__dict__.iteritems()]
7677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7678
 
7679
  def __eq__(self, other):
7680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7681
 
7682
  def __ne__(self, other):
7683
    return not (self == other)
7684
 
7685
class getMasterAffiliateById_result:
7686
  """
7687
  Attributes:
7688
   - success
7689
   - utx
7690
  """
7691
 
7692
  thrift_spec = (
7693
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7694
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7695
  )
7696
 
7697
  def __init__(self, success=None, utx=None,):
7698
    self.success = success
7699
    self.utx = utx
7700
 
7701
  def read(self, iprot):
7702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7704
      return
7705
    iprot.readStructBegin()
7706
    while True:
7707
      (fname, ftype, fid) = iprot.readFieldBegin()
7708
      if ftype == TType.STOP:
7709
        break
7710
      if fid == 0:
7711
        if ftype == TType.STRUCT:
7712
          self.success = MasterAffiliate()
7713
          self.success.read(iprot)
7714
        else:
7715
          iprot.skip(ftype)
7716
      elif fid == 1:
7717
        if ftype == TType.STRUCT:
1996 vikas 7718
          self.utx = UserAffiliateException()
1845 vikas 7719
          self.utx.read(iprot)
7720
        else:
7721
          iprot.skip(ftype)
7722
      else:
7723
        iprot.skip(ftype)
7724
      iprot.readFieldEnd()
7725
    iprot.readStructEnd()
7726
 
7727
  def write(self, oprot):
7728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7730
      return
7731
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7732
    if self.success is not None:
1845 vikas 7733
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7734
      self.success.write(oprot)
7735
      oprot.writeFieldEnd()
3431 rajveer 7736
    if self.utx is not None:
1845 vikas 7737
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7738
      self.utx.write(oprot)
7739
      oprot.writeFieldEnd()
7740
    oprot.writeFieldStop()
7741
    oprot.writeStructEnd()
7742
 
3431 rajveer 7743
  def validate(self):
7744
    return
7745
 
7746
 
1845 vikas 7747
  def __repr__(self):
7748
    L = ['%s=%r' % (key, value)
7749
      for key, value in self.__dict__.iteritems()]
7750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7751
 
7752
  def __eq__(self, other):
7753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7754
 
7755
  def __ne__(self, other):
7756
    return not (self == other)
7757
 
7758
class getMasterAffiliateByName_args:
7759
  """
7760
  Attributes:
7761
   - name
7762
  """
7763
 
7764
  thrift_spec = (
7765
    None, # 0
7766
    (1, TType.STRING, 'name', None, None, ), # 1
7767
  )
7768
 
7769
  def __init__(self, name=None,):
7770
    self.name = name
7771
 
7772
  def read(self, iprot):
7773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7775
      return
7776
    iprot.readStructBegin()
7777
    while True:
7778
      (fname, ftype, fid) = iprot.readFieldBegin()
7779
      if ftype == TType.STOP:
7780
        break
7781
      if fid == 1:
7782
        if ftype == TType.STRING:
7783
          self.name = iprot.readString();
7784
        else:
7785
          iprot.skip(ftype)
7786
      else:
7787
        iprot.skip(ftype)
7788
      iprot.readFieldEnd()
7789
    iprot.readStructEnd()
7790
 
7791
  def write(self, oprot):
7792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7794
      return
7795
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7796
    if self.name is not None:
1845 vikas 7797
      oprot.writeFieldBegin('name', TType.STRING, 1)
7798
      oprot.writeString(self.name)
7799
      oprot.writeFieldEnd()
7800
    oprot.writeFieldStop()
7801
    oprot.writeStructEnd()
7802
 
3431 rajveer 7803
  def validate(self):
7804
    return
7805
 
7806
 
1845 vikas 7807
  def __repr__(self):
7808
    L = ['%s=%r' % (key, value)
7809
      for key, value in self.__dict__.iteritems()]
7810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7811
 
7812
  def __eq__(self, other):
7813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7814
 
7815
  def __ne__(self, other):
7816
    return not (self == other)
7817
 
7818
class getMasterAffiliateByName_result:
7819
  """
7820
  Attributes:
7821
   - success
7822
   - utx
7823
  """
7824
 
7825
  thrift_spec = (
7826
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7827
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7828
  )
7829
 
7830
  def __init__(self, success=None, utx=None,):
7831
    self.success = success
7832
    self.utx = utx
7833
 
7834
  def read(self, iprot):
7835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7837
      return
7838
    iprot.readStructBegin()
7839
    while True:
7840
      (fname, ftype, fid) = iprot.readFieldBegin()
7841
      if ftype == TType.STOP:
7842
        break
7843
      if fid == 0:
7844
        if ftype == TType.STRUCT:
7845
          self.success = MasterAffiliate()
7846
          self.success.read(iprot)
7847
        else:
7848
          iprot.skip(ftype)
7849
      elif fid == 1:
7850
        if ftype == TType.STRUCT:
1996 vikas 7851
          self.utx = UserAffiliateException()
1845 vikas 7852
          self.utx.read(iprot)
7853
        else:
7854
          iprot.skip(ftype)
7855
      else:
7856
        iprot.skip(ftype)
7857
      iprot.readFieldEnd()
7858
    iprot.readStructEnd()
7859
 
7860
  def write(self, oprot):
7861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7863
      return
7864
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7865
    if self.success is not None:
1845 vikas 7866
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7867
      self.success.write(oprot)
7868
      oprot.writeFieldEnd()
3431 rajveer 7869
    if self.utx is not None:
1845 vikas 7870
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7871
      self.utx.write(oprot)
7872
      oprot.writeFieldEnd()
7873
    oprot.writeFieldStop()
7874
    oprot.writeStructEnd()
7875
 
3431 rajveer 7876
  def validate(self):
7877
    return
7878
 
7879
 
1845 vikas 7880
  def __repr__(self):
7881
    L = ['%s=%r' % (key, value)
7882
      for key, value in self.__dict__.iteritems()]
7883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7884
 
7885
  def __eq__(self, other):
7886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7887
 
7888
  def __ne__(self, other):
7889
    return not (self == other)
7890
 
7891
class createAffiliate_args:
7892
  """
7893
  Attributes:
7894
   - name
7895
   - url
7896
   - masterAffiliateId
1859 vikas 7897
   - addedOn
1845 vikas 7898
  """
7899
 
7900
  thrift_spec = (
7901
    None, # 0
7902
    (1, TType.STRING, 'name', None, None, ), # 1
7903
    (2, TType.STRING, 'url', None, None, ), # 2
7904
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7905
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7906
  )
7907
 
1859 vikas 7908
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7909
    self.name = name
7910
    self.url = url
7911
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7912
    self.addedOn = addedOn
1845 vikas 7913
 
7914
  def read(self, iprot):
7915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7917
      return
7918
    iprot.readStructBegin()
7919
    while True:
7920
      (fname, ftype, fid) = iprot.readFieldBegin()
7921
      if ftype == TType.STOP:
7922
        break
7923
      if fid == 1:
7924
        if ftype == TType.STRING:
7925
          self.name = iprot.readString();
7926
        else:
7927
          iprot.skip(ftype)
7928
      elif fid == 2:
7929
        if ftype == TType.STRING:
7930
          self.url = iprot.readString();
7931
        else:
7932
          iprot.skip(ftype)
7933
      elif fid == 3:
7934
        if ftype == TType.I64:
7935
          self.masterAffiliateId = iprot.readI64();
7936
        else:
7937
          iprot.skip(ftype)
1859 vikas 7938
      elif fid == 4:
7939
        if ftype == TType.I64:
7940
          self.addedOn = iprot.readI64();
7941
        else:
7942
          iprot.skip(ftype)
1845 vikas 7943
      else:
7944
        iprot.skip(ftype)
7945
      iprot.readFieldEnd()
7946
    iprot.readStructEnd()
7947
 
7948
  def write(self, oprot):
7949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7951
      return
7952
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 7953
    if self.name is not None:
1845 vikas 7954
      oprot.writeFieldBegin('name', TType.STRING, 1)
7955
      oprot.writeString(self.name)
7956
      oprot.writeFieldEnd()
3431 rajveer 7957
    if self.url is not None:
1845 vikas 7958
      oprot.writeFieldBegin('url', TType.STRING, 2)
7959
      oprot.writeString(self.url)
7960
      oprot.writeFieldEnd()
3431 rajveer 7961
    if self.masterAffiliateId is not None:
1845 vikas 7962
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
7963
      oprot.writeI64(self.masterAffiliateId)
7964
      oprot.writeFieldEnd()
3431 rajveer 7965
    if self.addedOn is not None:
1859 vikas 7966
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
7967
      oprot.writeI64(self.addedOn)
7968
      oprot.writeFieldEnd()
1845 vikas 7969
    oprot.writeFieldStop()
7970
    oprot.writeStructEnd()
7971
 
3431 rajveer 7972
  def validate(self):
7973
    return
7974
 
7975
 
1845 vikas 7976
  def __repr__(self):
7977
    L = ['%s=%r' % (key, value)
7978
      for key, value in self.__dict__.iteritems()]
7979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7980
 
7981
  def __eq__(self, other):
7982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7983
 
7984
  def __ne__(self, other):
7985
    return not (self == other)
7986
 
7987
class createAffiliate_result:
7988
  """
7989
  Attributes:
7990
   - success
7991
   - utx
7992
  """
7993
 
7994
  thrift_spec = (
7995
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7996
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7997
  )
7998
 
7999
  def __init__(self, success=None, utx=None,):
8000
    self.success = success
8001
    self.utx = utx
8002
 
8003
  def read(self, iprot):
8004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8006
      return
8007
    iprot.readStructBegin()
8008
    while True:
8009
      (fname, ftype, fid) = iprot.readFieldBegin()
8010
      if ftype == TType.STOP:
8011
        break
8012
      if fid == 0:
8013
        if ftype == TType.STRUCT:
8014
          self.success = Affiliate()
8015
          self.success.read(iprot)
8016
        else:
8017
          iprot.skip(ftype)
8018
      elif fid == 1:
8019
        if ftype == TType.STRUCT:
1996 vikas 8020
          self.utx = UserAffiliateException()
1845 vikas 8021
          self.utx.read(iprot)
8022
        else:
8023
          iprot.skip(ftype)
8024
      else:
8025
        iprot.skip(ftype)
8026
      iprot.readFieldEnd()
8027
    iprot.readStructEnd()
8028
 
8029
  def write(self, oprot):
8030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8032
      return
8033
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8034
    if self.success is not None:
1845 vikas 8035
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8036
      self.success.write(oprot)
8037
      oprot.writeFieldEnd()
3431 rajveer 8038
    if self.utx is not None:
1845 vikas 8039
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8040
      self.utx.write(oprot)
8041
      oprot.writeFieldEnd()
8042
    oprot.writeFieldStop()
8043
    oprot.writeStructEnd()
8044
 
3431 rajveer 8045
  def validate(self):
8046
    return
8047
 
8048
 
1845 vikas 8049
  def __repr__(self):
8050
    L = ['%s=%r' % (key, value)
8051
      for key, value in self.__dict__.iteritems()]
8052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8053
 
8054
  def __eq__(self, other):
8055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8056
 
8057
  def __ne__(self, other):
8058
    return not (self == other)
8059
 
8060
class getAffiliateById_args:
8061
  """
8062
  Attributes:
8063
   - id
8064
  """
8065
 
8066
  thrift_spec = (
8067
    None, # 0
8068
    (1, TType.I64, 'id', None, None, ), # 1
8069
  )
8070
 
8071
  def __init__(self, id=None,):
8072
    self.id = id
8073
 
8074
  def read(self, iprot):
8075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8077
      return
8078
    iprot.readStructBegin()
8079
    while True:
8080
      (fname, ftype, fid) = iprot.readFieldBegin()
8081
      if ftype == TType.STOP:
8082
        break
8083
      if fid == 1:
8084
        if ftype == TType.I64:
8085
          self.id = iprot.readI64();
8086
        else:
8087
          iprot.skip(ftype)
8088
      else:
8089
        iprot.skip(ftype)
8090
      iprot.readFieldEnd()
8091
    iprot.readStructEnd()
8092
 
8093
  def write(self, oprot):
8094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8096
      return
8097
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8098
    if self.id is not None:
1845 vikas 8099
      oprot.writeFieldBegin('id', TType.I64, 1)
8100
      oprot.writeI64(self.id)
8101
      oprot.writeFieldEnd()
8102
    oprot.writeFieldStop()
8103
    oprot.writeStructEnd()
8104
 
3431 rajveer 8105
  def validate(self):
8106
    return
8107
 
8108
 
1845 vikas 8109
  def __repr__(self):
8110
    L = ['%s=%r' % (key, value)
8111
      for key, value in self.__dict__.iteritems()]
8112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8113
 
8114
  def __eq__(self, other):
8115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8116
 
8117
  def __ne__(self, other):
8118
    return not (self == other)
8119
 
8120
class getAffiliateById_result:
8121
  """
8122
  Attributes:
8123
   - success
8124
   - utx
8125
  """
8126
 
8127
  thrift_spec = (
8128
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8129
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8130
  )
8131
 
8132
  def __init__(self, success=None, utx=None,):
8133
    self.success = success
8134
    self.utx = utx
8135
 
8136
  def read(self, iprot):
8137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8139
      return
8140
    iprot.readStructBegin()
8141
    while True:
8142
      (fname, ftype, fid) = iprot.readFieldBegin()
8143
      if ftype == TType.STOP:
8144
        break
8145
      if fid == 0:
8146
        if ftype == TType.STRUCT:
8147
          self.success = Affiliate()
8148
          self.success.read(iprot)
8149
        else:
8150
          iprot.skip(ftype)
8151
      elif fid == 1:
8152
        if ftype == TType.STRUCT:
1996 vikas 8153
          self.utx = UserAffiliateException()
1845 vikas 8154
          self.utx.read(iprot)
8155
        else:
8156
          iprot.skip(ftype)
8157
      else:
8158
        iprot.skip(ftype)
8159
      iprot.readFieldEnd()
8160
    iprot.readStructEnd()
8161
 
8162
  def write(self, oprot):
8163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8165
      return
8166
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8167
    if self.success is not None:
1845 vikas 8168
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8169
      self.success.write(oprot)
8170
      oprot.writeFieldEnd()
3431 rajveer 8171
    if self.utx is not None:
1845 vikas 8172
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8173
      self.utx.write(oprot)
8174
      oprot.writeFieldEnd()
8175
    oprot.writeFieldStop()
8176
    oprot.writeStructEnd()
8177
 
3431 rajveer 8178
  def validate(self):
8179
    return
8180
 
8181
 
1845 vikas 8182
  def __repr__(self):
8183
    L = ['%s=%r' % (key, value)
8184
      for key, value in self.__dict__.iteritems()]
8185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8186
 
8187
  def __eq__(self, other):
8188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8189
 
8190
  def __ne__(self, other):
8191
    return not (self == other)
8192
 
8193
class getAffiliateByName_args:
8194
  """
8195
  Attributes:
8196
   - name
8197
  """
8198
 
8199
  thrift_spec = (
8200
    None, # 0
8201
    (1, TType.STRING, 'name', None, None, ), # 1
8202
  )
8203
 
8204
  def __init__(self, name=None,):
8205
    self.name = name
8206
 
8207
  def read(self, iprot):
8208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8210
      return
8211
    iprot.readStructBegin()
8212
    while True:
8213
      (fname, ftype, fid) = iprot.readFieldBegin()
8214
      if ftype == TType.STOP:
8215
        break
8216
      if fid == 1:
8217
        if ftype == TType.STRING:
8218
          self.name = iprot.readString();
8219
        else:
8220
          iprot.skip(ftype)
8221
      else:
8222
        iprot.skip(ftype)
8223
      iprot.readFieldEnd()
8224
    iprot.readStructEnd()
8225
 
8226
  def write(self, oprot):
8227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8229
      return
8230
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8231
    if self.name is not None:
1845 vikas 8232
      oprot.writeFieldBegin('name', TType.STRING, 1)
8233
      oprot.writeString(self.name)
8234
      oprot.writeFieldEnd()
8235
    oprot.writeFieldStop()
8236
    oprot.writeStructEnd()
8237
 
3431 rajveer 8238
  def validate(self):
8239
    return
8240
 
8241
 
1845 vikas 8242
  def __repr__(self):
8243
    L = ['%s=%r' % (key, value)
8244
      for key, value in self.__dict__.iteritems()]
8245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8246
 
8247
  def __eq__(self, other):
8248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8249
 
8250
  def __ne__(self, other):
8251
    return not (self == other)
8252
 
8253
class getAffiliateByName_result:
8254
  """
8255
  Attributes:
8256
   - success
8257
   - utx
8258
  """
8259
 
8260
  thrift_spec = (
8261
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8262
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8263
  )
8264
 
8265
  def __init__(self, success=None, utx=None,):
8266
    self.success = success
8267
    self.utx = utx
8268
 
8269
  def read(self, iprot):
8270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8272
      return
8273
    iprot.readStructBegin()
8274
    while True:
8275
      (fname, ftype, fid) = iprot.readFieldBegin()
8276
      if ftype == TType.STOP:
8277
        break
8278
      if fid == 0:
8279
        if ftype == TType.STRUCT:
8280
          self.success = Affiliate()
8281
          self.success.read(iprot)
8282
        else:
8283
          iprot.skip(ftype)
8284
      elif fid == 1:
8285
        if ftype == TType.STRUCT:
1996 vikas 8286
          self.utx = UserAffiliateException()
1845 vikas 8287
          self.utx.read(iprot)
8288
        else:
8289
          iprot.skip(ftype)
8290
      else:
8291
        iprot.skip(ftype)
8292
      iprot.readFieldEnd()
8293
    iprot.readStructEnd()
8294
 
8295
  def write(self, oprot):
8296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8298
      return
8299
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8300
    if self.success is not None:
1845 vikas 8301
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8302
      self.success.write(oprot)
8303
      oprot.writeFieldEnd()
3431 rajveer 8304
    if self.utx is not None:
1845 vikas 8305
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8306
      self.utx.write(oprot)
8307
      oprot.writeFieldEnd()
8308
    oprot.writeFieldStop()
8309
    oprot.writeStructEnd()
8310
 
3431 rajveer 8311
  def validate(self):
8312
    return
8313
 
8314
 
1845 vikas 8315
  def __repr__(self):
8316
    L = ['%s=%r' % (key, value)
8317
      for key, value in self.__dict__.iteritems()]
8318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8319
 
8320
  def __eq__(self, other):
8321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8322
 
8323
  def __ne__(self, other):
8324
    return not (self == other)
8325
 
1996 vikas 8326
class getTrackerById_args:
1845 vikas 8327
  """
8328
  Attributes:
8329
   - id
8330
  """
8331
 
8332
  thrift_spec = (
8333
    None, # 0
8334
    (1, TType.I64, 'id', None, None, ), # 1
8335
  )
8336
 
8337
  def __init__(self, id=None,):
8338
    self.id = id
8339
 
8340
  def read(self, iprot):
8341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8343
      return
8344
    iprot.readStructBegin()
8345
    while True:
8346
      (fname, ftype, fid) = iprot.readFieldBegin()
8347
      if ftype == TType.STOP:
8348
        break
8349
      if fid == 1:
8350
        if ftype == TType.I64:
8351
          self.id = iprot.readI64();
8352
        else:
8353
          iprot.skip(ftype)
8354
      else:
8355
        iprot.skip(ftype)
8356
      iprot.readFieldEnd()
8357
    iprot.readStructEnd()
8358
 
8359
  def write(self, oprot):
8360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8362
      return
1996 vikas 8363
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8364
    if self.id is not None:
1845 vikas 8365
      oprot.writeFieldBegin('id', TType.I64, 1)
8366
      oprot.writeI64(self.id)
8367
      oprot.writeFieldEnd()
8368
    oprot.writeFieldStop()
8369
    oprot.writeStructEnd()
8370
 
3431 rajveer 8371
  def validate(self):
8372
    return
8373
 
8374
 
1845 vikas 8375
  def __repr__(self):
8376
    L = ['%s=%r' % (key, value)
8377
      for key, value in self.__dict__.iteritems()]
8378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8379
 
8380
  def __eq__(self, other):
8381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8382
 
8383
  def __ne__(self, other):
8384
    return not (self == other)
8385
 
8386
class getTrackerById_result:
8387
  """
8388
  Attributes:
8389
   - success
8390
   - utx
8391
  """
8392
 
8393
  thrift_spec = (
8394
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8395
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8396
  )
8397
 
8398
  def __init__(self, success=None, utx=None,):
8399
    self.success = success
8400
    self.utx = utx
8401
 
8402
  def read(self, iprot):
8403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8405
      return
8406
    iprot.readStructBegin()
8407
    while True:
8408
      (fname, ftype, fid) = iprot.readFieldBegin()
8409
      if ftype == TType.STOP:
8410
        break
8411
      if fid == 0:
8412
        if ftype == TType.STRUCT:
8413
          self.success = Tracker()
8414
          self.success.read(iprot)
8415
        else:
8416
          iprot.skip(ftype)
8417
      elif fid == 1:
8418
        if ftype == TType.STRUCT:
1996 vikas 8419
          self.utx = UserAffiliateException()
1845 vikas 8420
          self.utx.read(iprot)
8421
        else:
8422
          iprot.skip(ftype)
8423
      else:
8424
        iprot.skip(ftype)
8425
      iprot.readFieldEnd()
8426
    iprot.readStructEnd()
8427
 
8428
  def write(self, oprot):
8429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8431
      return
8432
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8433
    if self.success is not None:
1845 vikas 8434
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8435
      self.success.write(oprot)
8436
      oprot.writeFieldEnd()
3431 rajveer 8437
    if self.utx is not None:
1845 vikas 8438
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8439
      self.utx.write(oprot)
8440
      oprot.writeFieldEnd()
8441
    oprot.writeFieldStop()
8442
    oprot.writeStructEnd()
8443
 
3431 rajveer 8444
  def validate(self):
8445
    return
8446
 
8447
 
1845 vikas 8448
  def __repr__(self):
8449
    L = ['%s=%r' % (key, value)
8450
      for key, value in self.__dict__.iteritems()]
8451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8452
 
8453
  def __eq__(self, other):
8454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8455
 
8456
  def __ne__(self, other):
8457
    return not (self == other)
8458
 
1996 vikas 8459
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8460
  """
8461
  Attributes:
1996 vikas 8462
   - id
1845 vikas 8463
  """
8464
 
8465
  thrift_spec = (
8466
    None, # 0
1996 vikas 8467
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8468
  )
8469
 
1996 vikas 8470
  def __init__(self, id=None,):
8471
    self.id = id
1845 vikas 8472
 
8473
  def read(self, iprot):
8474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8476
      return
8477
    iprot.readStructBegin()
8478
    while True:
8479
      (fname, ftype, fid) = iprot.readFieldBegin()
8480
      if ftype == TType.STOP:
8481
        break
8482
      if fid == 1:
8483
        if ftype == TType.I64:
1996 vikas 8484
          self.id = iprot.readI64();
1845 vikas 8485
        else:
8486
          iprot.skip(ftype)
8487
      else:
8488
        iprot.skip(ftype)
8489
      iprot.readFieldEnd()
8490
    iprot.readStructEnd()
8491
 
8492
  def write(self, oprot):
8493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8495
      return
1996 vikas 8496
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8497
    if self.id is not None:
1996 vikas 8498
      oprot.writeFieldBegin('id', TType.I64, 1)
8499
      oprot.writeI64(self.id)
1845 vikas 8500
      oprot.writeFieldEnd()
8501
    oprot.writeFieldStop()
8502
    oprot.writeStructEnd()
8503
 
3431 rajveer 8504
  def validate(self):
8505
    return
8506
 
8507
 
1845 vikas 8508
  def __repr__(self):
8509
    L = ['%s=%r' % (key, value)
8510
      for key, value in self.__dict__.iteritems()]
8511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8512
 
8513
  def __eq__(self, other):
8514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8515
 
8516
  def __ne__(self, other):
8517
    return not (self == other)
8518
 
1996 vikas 8519
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8520
  """
8521
  Attributes:
8522
   - success
8523
   - utx
8524
  """
8525
 
8526
  thrift_spec = (
1996 vikas 8527
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8528
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8529
  )
8530
 
8531
  def __init__(self, success=None, utx=None,):
8532
    self.success = success
8533
    self.utx = utx
8534
 
8535
  def read(self, iprot):
8536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8538
      return
8539
    iprot.readStructBegin()
8540
    while True:
8541
      (fname, ftype, fid) = iprot.readFieldBegin()
8542
      if ftype == TType.STOP:
8543
        break
8544
      if fid == 0:
8545
        if ftype == TType.LIST:
8546
          self.success = []
6433 anupam.sin 8547
          (_etype98, _size95) = iprot.readListBegin()
8548
          for _i99 in xrange(_size95):
8549
            _elem100 = Affiliate()
8550
            _elem100.read(iprot)
8551
            self.success.append(_elem100)
1845 vikas 8552
          iprot.readListEnd()
8553
        else:
8554
          iprot.skip(ftype)
8555
      elif fid == 1:
8556
        if ftype == TType.STRUCT:
1996 vikas 8557
          self.utx = UserAffiliateException()
1845 vikas 8558
          self.utx.read(iprot)
8559
        else:
8560
          iprot.skip(ftype)
8561
      else:
8562
        iprot.skip(ftype)
8563
      iprot.readFieldEnd()
8564
    iprot.readStructEnd()
8565
 
8566
  def write(self, oprot):
8567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8569
      return
1996 vikas 8570
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8571
    if self.success is not None:
1845 vikas 8572
      oprot.writeFieldBegin('success', TType.LIST, 0)
8573
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 8574
      for iter101 in self.success:
8575
        iter101.write(oprot)
1845 vikas 8576
      oprot.writeListEnd()
8577
      oprot.writeFieldEnd()
3431 rajveer 8578
    if self.utx is not None:
1845 vikas 8579
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8580
      self.utx.write(oprot)
8581
      oprot.writeFieldEnd()
8582
    oprot.writeFieldStop()
8583
    oprot.writeStructEnd()
8584
 
3431 rajveer 8585
  def validate(self):
8586
    return
8587
 
8588
 
1845 vikas 8589
  def __repr__(self):
8590
    L = ['%s=%r' % (key, value)
8591
      for key, value in self.__dict__.iteritems()]
8592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8593
 
8594
  def __eq__(self, other):
8595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8596
 
8597
  def __ne__(self, other):
8598
    return not (self == other)
8599
 
8600
class addTrackLog_args:
8601
  """
8602
  Attributes:
1996 vikas 8603
   - affiliateId
1845 vikas 8604
   - userId
8605
   - event
8606
   - url
8607
   - data
1859 vikas 8608
   - addedOn
1845 vikas 8609
  """
8610
 
8611
  thrift_spec = (
8612
    None, # 0
1996 vikas 8613
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8614
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8615
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8616
    (4, TType.STRING, 'url', None, None, ), # 4
8617
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8618
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8619
  )
8620
 
1996 vikas 8621
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8622
    self.affiliateId = affiliateId
1845 vikas 8623
    self.userId = userId
8624
    self.event = event
8625
    self.url = url
8626
    self.data = data
1859 vikas 8627
    self.addedOn = addedOn
1845 vikas 8628
 
8629
  def read(self, iprot):
8630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8632
      return
8633
    iprot.readStructBegin()
8634
    while True:
8635
      (fname, ftype, fid) = iprot.readFieldBegin()
8636
      if ftype == TType.STOP:
8637
        break
8638
      if fid == 1:
8639
        if ftype == TType.I64:
1996 vikas 8640
          self.affiliateId = iprot.readI64();
1845 vikas 8641
        else:
8642
          iprot.skip(ftype)
8643
      elif fid == 2:
8644
        if ftype == TType.I64:
8645
          self.userId = iprot.readI64();
8646
        else:
8647
          iprot.skip(ftype)
8648
      elif fid == 3:
3378 vikas 8649
        if ftype == TType.I32:
8650
          self.event = iprot.readI32();
1845 vikas 8651
        else:
8652
          iprot.skip(ftype)
8653
      elif fid == 4:
8654
        if ftype == TType.STRING:
8655
          self.url = iprot.readString();
8656
        else:
8657
          iprot.skip(ftype)
8658
      elif fid == 5:
8659
        if ftype == TType.STRING:
8660
          self.data = iprot.readString();
8661
        else:
8662
          iprot.skip(ftype)
1859 vikas 8663
      elif fid == 6:
8664
        if ftype == TType.I64:
8665
          self.addedOn = iprot.readI64();
8666
        else:
8667
          iprot.skip(ftype)
1845 vikas 8668
      else:
8669
        iprot.skip(ftype)
8670
      iprot.readFieldEnd()
8671
    iprot.readStructEnd()
8672
 
8673
  def write(self, oprot):
8674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8676
      return
8677
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8678
    if self.affiliateId is not None:
1996 vikas 8679
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8680
      oprot.writeI64(self.affiliateId)
1845 vikas 8681
      oprot.writeFieldEnd()
3431 rajveer 8682
    if self.userId is not None:
1845 vikas 8683
      oprot.writeFieldBegin('userId', TType.I64, 2)
8684
      oprot.writeI64(self.userId)
8685
      oprot.writeFieldEnd()
3431 rajveer 8686
    if self.event is not None:
3378 vikas 8687
      oprot.writeFieldBegin('event', TType.I32, 3)
8688
      oprot.writeI32(self.event)
1845 vikas 8689
      oprot.writeFieldEnd()
3431 rajveer 8690
    if self.url is not None:
1845 vikas 8691
      oprot.writeFieldBegin('url', TType.STRING, 4)
8692
      oprot.writeString(self.url)
8693
      oprot.writeFieldEnd()
3431 rajveer 8694
    if self.data is not None:
1845 vikas 8695
      oprot.writeFieldBegin('data', TType.STRING, 5)
8696
      oprot.writeString(self.data)
8697
      oprot.writeFieldEnd()
3431 rajveer 8698
    if self.addedOn is not None:
1859 vikas 8699
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8700
      oprot.writeI64(self.addedOn)
8701
      oprot.writeFieldEnd()
1845 vikas 8702
    oprot.writeFieldStop()
8703
    oprot.writeStructEnd()
8704
 
3431 rajveer 8705
  def validate(self):
8706
    return
8707
 
8708
 
1845 vikas 8709
  def __repr__(self):
8710
    L = ['%s=%r' % (key, value)
8711
      for key, value in self.__dict__.iteritems()]
8712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8713
 
8714
  def __eq__(self, other):
8715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8716
 
8717
  def __ne__(self, other):
8718
    return not (self == other)
8719
 
8720
class addTrackLog_result:
8721
  """
8722
  Attributes:
8723
   - success
8724
   - utx
8725
  """
8726
 
8727
  thrift_spec = (
8728
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8729
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8730
  )
8731
 
8732
  def __init__(self, success=None, utx=None,):
8733
    self.success = success
8734
    self.utx = utx
8735
 
8736
  def read(self, iprot):
8737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8739
      return
8740
    iprot.readStructBegin()
8741
    while True:
8742
      (fname, ftype, fid) = iprot.readFieldBegin()
8743
      if ftype == TType.STOP:
8744
        break
8745
      if fid == 0:
8746
        if ftype == TType.I64:
8747
          self.success = iprot.readI64();
8748
        else:
8749
          iprot.skip(ftype)
8750
      elif fid == 1:
8751
        if ftype == TType.STRUCT:
1996 vikas 8752
          self.utx = UserAffiliateException()
1845 vikas 8753
          self.utx.read(iprot)
8754
        else:
8755
          iprot.skip(ftype)
8756
      else:
8757
        iprot.skip(ftype)
8758
      iprot.readFieldEnd()
8759
    iprot.readStructEnd()
8760
 
8761
  def write(self, oprot):
8762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8764
      return
8765
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8766
    if self.success is not None:
1845 vikas 8767
      oprot.writeFieldBegin('success', TType.I64, 0)
8768
      oprot.writeI64(self.success)
8769
      oprot.writeFieldEnd()
3431 rajveer 8770
    if self.utx is not None:
1845 vikas 8771
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8772
      self.utx.write(oprot)
8773
      oprot.writeFieldEnd()
8774
    oprot.writeFieldStop()
8775
    oprot.writeStructEnd()
8776
 
3431 rajveer 8777
  def validate(self):
8778
    return
8779
 
8780
 
1845 vikas 8781
  def __repr__(self):
8782
    L = ['%s=%r' % (key, value)
8783
      for key, value in self.__dict__.iteritems()]
8784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8785
 
8786
  def __eq__(self, other):
8787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8788
 
8789
  def __ne__(self, other):
8790
    return not (self == other)
8791
 
8792
class getTrackLogById_args:
8793
  """
8794
  Attributes:
8795
   - id
8796
  """
8797
 
8798
  thrift_spec = (
8799
    None, # 0
8800
    (1, TType.I64, 'id', None, None, ), # 1
8801
  )
8802
 
8803
  def __init__(self, id=None,):
8804
    self.id = id
8805
 
8806
  def read(self, iprot):
8807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8809
      return
8810
    iprot.readStructBegin()
8811
    while True:
8812
      (fname, ftype, fid) = iprot.readFieldBegin()
8813
      if ftype == TType.STOP:
8814
        break
8815
      if fid == 1:
8816
        if ftype == TType.I64:
8817
          self.id = iprot.readI64();
8818
        else:
8819
          iprot.skip(ftype)
8820
      else:
8821
        iprot.skip(ftype)
8822
      iprot.readFieldEnd()
8823
    iprot.readStructEnd()
8824
 
8825
  def write(self, oprot):
8826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8828
      return
8829
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8830
    if self.id is not None:
1845 vikas 8831
      oprot.writeFieldBegin('id', TType.I64, 1)
8832
      oprot.writeI64(self.id)
8833
      oprot.writeFieldEnd()
8834
    oprot.writeFieldStop()
8835
    oprot.writeStructEnd()
8836
 
3431 rajveer 8837
  def validate(self):
8838
    return
8839
 
8840
 
1845 vikas 8841
  def __repr__(self):
8842
    L = ['%s=%r' % (key, value)
8843
      for key, value in self.__dict__.iteritems()]
8844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8845
 
8846
  def __eq__(self, other):
8847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8848
 
8849
  def __ne__(self, other):
8850
    return not (self == other)
8851
 
8852
class getTrackLogById_result:
8853
  """
8854
  Attributes:
8855
   - success
8856
   - utx
8857
  """
8858
 
8859
  thrift_spec = (
8860
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8861
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8862
  )
8863
 
8864
  def __init__(self, success=None, utx=None,):
8865
    self.success = success
8866
    self.utx = utx
8867
 
8868
  def read(self, iprot):
8869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8871
      return
8872
    iprot.readStructBegin()
8873
    while True:
8874
      (fname, ftype, fid) = iprot.readFieldBegin()
8875
      if ftype == TType.STOP:
8876
        break
8877
      if fid == 0:
8878
        if ftype == TType.STRUCT:
8879
          self.success = TrackLog()
8880
          self.success.read(iprot)
8881
        else:
8882
          iprot.skip(ftype)
8883
      elif fid == 1:
8884
        if ftype == TType.STRUCT:
1996 vikas 8885
          self.utx = UserAffiliateException()
1845 vikas 8886
          self.utx.read(iprot)
8887
        else:
8888
          iprot.skip(ftype)
8889
      else:
8890
        iprot.skip(ftype)
8891
      iprot.readFieldEnd()
8892
    iprot.readStructEnd()
8893
 
8894
  def write(self, oprot):
8895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8897
      return
8898
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8899
    if self.success is not None:
1845 vikas 8900
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8901
      self.success.write(oprot)
8902
      oprot.writeFieldEnd()
3431 rajveer 8903
    if self.utx is not None:
1845 vikas 8904
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8905
      self.utx.write(oprot)
8906
      oprot.writeFieldEnd()
8907
    oprot.writeFieldStop()
8908
    oprot.writeStructEnd()
8909
 
3431 rajveer 8910
  def validate(self):
8911
    return
8912
 
8913
 
1845 vikas 8914
  def __repr__(self):
8915
    L = ['%s=%r' % (key, value)
8916
      for key, value in self.__dict__.iteritems()]
8917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8918
 
8919
  def __eq__(self, other):
8920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8921
 
8922
  def __ne__(self, other):
8923
    return not (self == other)
8924
 
1996 vikas 8925
class getTrackLogsByAffiliate_args:
1845 vikas 8926
  """
8927
  Attributes:
1996 vikas 8928
   - affiliateId
3293 vikas 8929
   - startDate
8930
   - endDate
1845 vikas 8931
  """
8932
 
8933
  thrift_spec = (
8934
    None, # 0
1996 vikas 8935
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8936
    (2, TType.I64, 'startDate', None, None, ), # 2
8937
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8938
  )
8939
 
3293 vikas 8940
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 8941
    self.affiliateId = affiliateId
3293 vikas 8942
    self.startDate = startDate
8943
    self.endDate = endDate
1845 vikas 8944
 
8945
  def read(self, iprot):
8946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8948
      return
8949
    iprot.readStructBegin()
8950
    while True:
8951
      (fname, ftype, fid) = iprot.readFieldBegin()
8952
      if ftype == TType.STOP:
8953
        break
8954
      if fid == 1:
8955
        if ftype == TType.I64:
1996 vikas 8956
          self.affiliateId = iprot.readI64();
1845 vikas 8957
        else:
8958
          iprot.skip(ftype)
3293 vikas 8959
      elif fid == 2:
8960
        if ftype == TType.I64:
8961
          self.startDate = iprot.readI64();
8962
        else:
8963
          iprot.skip(ftype)
8964
      elif fid == 3:
8965
        if ftype == TType.I64:
8966
          self.endDate = iprot.readI64();
8967
        else:
8968
          iprot.skip(ftype)
1845 vikas 8969
      else:
8970
        iprot.skip(ftype)
8971
      iprot.readFieldEnd()
8972
    iprot.readStructEnd()
8973
 
8974
  def write(self, oprot):
8975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8977
      return
1996 vikas 8978
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 8979
    if self.affiliateId is not None:
1996 vikas 8980
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8981
      oprot.writeI64(self.affiliateId)
1845 vikas 8982
      oprot.writeFieldEnd()
3431 rajveer 8983
    if self.startDate is not None:
3293 vikas 8984
      oprot.writeFieldBegin('startDate', TType.I64, 2)
8985
      oprot.writeI64(self.startDate)
8986
      oprot.writeFieldEnd()
3431 rajveer 8987
    if self.endDate is not None:
3293 vikas 8988
      oprot.writeFieldBegin('endDate', TType.I64, 3)
8989
      oprot.writeI64(self.endDate)
8990
      oprot.writeFieldEnd()
1845 vikas 8991
    oprot.writeFieldStop()
8992
    oprot.writeStructEnd()
8993
 
3431 rajveer 8994
  def validate(self):
8995
    return
8996
 
8997
 
1845 vikas 8998
  def __repr__(self):
8999
    L = ['%s=%r' % (key, value)
9000
      for key, value in self.__dict__.iteritems()]
9001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9002
 
9003
  def __eq__(self, other):
9004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9005
 
9006
  def __ne__(self, other):
9007
    return not (self == other)
9008
 
1996 vikas 9009
class getTrackLogsByAffiliate_result:
1845 vikas 9010
  """
9011
  Attributes:
9012
   - success
9013
   - utx
9014
  """
9015
 
9016
  thrift_spec = (
9017
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9018
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9019
  )
9020
 
9021
  def __init__(self, success=None, utx=None,):
9022
    self.success = success
9023
    self.utx = utx
9024
 
9025
  def read(self, iprot):
9026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9028
      return
9029
    iprot.readStructBegin()
9030
    while True:
9031
      (fname, ftype, fid) = iprot.readFieldBegin()
9032
      if ftype == TType.STOP:
9033
        break
9034
      if fid == 0:
9035
        if ftype == TType.LIST:
9036
          self.success = []
6433 anupam.sin 9037
          (_etype105, _size102) = iprot.readListBegin()
9038
          for _i106 in xrange(_size102):
9039
            _elem107 = TrackLog()
9040
            _elem107.read(iprot)
9041
            self.success.append(_elem107)
1845 vikas 9042
          iprot.readListEnd()
9043
        else:
9044
          iprot.skip(ftype)
9045
      elif fid == 1:
9046
        if ftype == TType.STRUCT:
1996 vikas 9047
          self.utx = UserAffiliateException()
1845 vikas 9048
          self.utx.read(iprot)
9049
        else:
9050
          iprot.skip(ftype)
9051
      else:
9052
        iprot.skip(ftype)
9053
      iprot.readFieldEnd()
9054
    iprot.readStructEnd()
9055
 
9056
  def write(self, oprot):
9057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9059
      return
1996 vikas 9060
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9061
    if self.success is not None:
1845 vikas 9062
      oprot.writeFieldBegin('success', TType.LIST, 0)
9063
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 9064
      for iter108 in self.success:
9065
        iter108.write(oprot)
1845 vikas 9066
      oprot.writeListEnd()
9067
      oprot.writeFieldEnd()
3431 rajveer 9068
    if self.utx is not None:
1845 vikas 9069
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9070
      self.utx.write(oprot)
9071
      oprot.writeFieldEnd()
9072
    oprot.writeFieldStop()
9073
    oprot.writeStructEnd()
9074
 
3431 rajveer 9075
  def validate(self):
9076
    return
9077
 
9078
 
1845 vikas 9079
  def __repr__(self):
9080
    L = ['%s=%r' % (key, value)
9081
      for key, value in self.__dict__.iteritems()]
9082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9083
 
9084
  def __eq__(self, other):
9085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9086
 
9087
  def __ne__(self, other):
9088
    return not (self == other)
9089
 
9090
class getTrackLogsByUser_args:
9091
  """
9092
  Attributes:
9093
   - userId
9094
  """
9095
 
9096
  thrift_spec = (
9097
    None, # 0
9098
    (1, TType.I64, 'userId', None, None, ), # 1
9099
  )
9100
 
9101
  def __init__(self, userId=None,):
9102
    self.userId = userId
9103
 
9104
  def read(self, iprot):
9105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9107
      return
9108
    iprot.readStructBegin()
9109
    while True:
9110
      (fname, ftype, fid) = iprot.readFieldBegin()
9111
      if ftype == TType.STOP:
9112
        break
9113
      if fid == 1:
9114
        if ftype == TType.I64:
9115
          self.userId = iprot.readI64();
9116
        else:
9117
          iprot.skip(ftype)
9118
      else:
9119
        iprot.skip(ftype)
9120
      iprot.readFieldEnd()
9121
    iprot.readStructEnd()
9122
 
9123
  def write(self, oprot):
9124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9126
      return
9127
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9128
    if self.userId is not None:
1845 vikas 9129
      oprot.writeFieldBegin('userId', TType.I64, 1)
9130
      oprot.writeI64(self.userId)
9131
      oprot.writeFieldEnd()
9132
    oprot.writeFieldStop()
9133
    oprot.writeStructEnd()
9134
 
3431 rajveer 9135
  def validate(self):
9136
    return
9137
 
9138
 
1845 vikas 9139
  def __repr__(self):
9140
    L = ['%s=%r' % (key, value)
9141
      for key, value in self.__dict__.iteritems()]
9142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9143
 
9144
  def __eq__(self, other):
9145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9146
 
9147
  def __ne__(self, other):
9148
    return not (self == other)
9149
 
9150
class getTrackLogsByUser_result:
9151
  """
9152
  Attributes:
9153
   - success
9154
   - utx
9155
  """
9156
 
9157
  thrift_spec = (
9158
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9159
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9160
  )
9161
 
9162
  def __init__(self, success=None, utx=None,):
9163
    self.success = success
9164
    self.utx = utx
9165
 
9166
  def read(self, iprot):
9167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9169
      return
9170
    iprot.readStructBegin()
9171
    while True:
9172
      (fname, ftype, fid) = iprot.readFieldBegin()
9173
      if ftype == TType.STOP:
9174
        break
9175
      if fid == 0:
9176
        if ftype == TType.LIST:
9177
          self.success = []
6433 anupam.sin 9178
          (_etype112, _size109) = iprot.readListBegin()
9179
          for _i113 in xrange(_size109):
9180
            _elem114 = TrackLog()
9181
            _elem114.read(iprot)
9182
            self.success.append(_elem114)
1845 vikas 9183
          iprot.readListEnd()
9184
        else:
9185
          iprot.skip(ftype)
9186
      elif fid == 1:
9187
        if ftype == TType.STRUCT:
1996 vikas 9188
          self.utx = UserAffiliateException()
1845 vikas 9189
          self.utx.read(iprot)
9190
        else:
9191
          iprot.skip(ftype)
9192
      else:
9193
        iprot.skip(ftype)
9194
      iprot.readFieldEnd()
9195
    iprot.readStructEnd()
9196
 
9197
  def write(self, oprot):
9198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9200
      return
9201
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9202
    if self.success is not None:
1845 vikas 9203
      oprot.writeFieldBegin('success', TType.LIST, 0)
9204
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 9205
      for iter115 in self.success:
9206
        iter115.write(oprot)
1845 vikas 9207
      oprot.writeListEnd()
9208
      oprot.writeFieldEnd()
3431 rajveer 9209
    if self.utx is not None:
1845 vikas 9210
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9211
      self.utx.write(oprot)
9212
      oprot.writeFieldEnd()
9213
    oprot.writeFieldStop()
9214
    oprot.writeStructEnd()
9215
 
3431 rajveer 9216
  def validate(self):
9217
    return
9218
 
9219
 
1845 vikas 9220
  def __repr__(self):
9221
    L = ['%s=%r' % (key, value)
9222
      for key, value in self.__dict__.iteritems()]
9223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9224
 
9225
  def __eq__(self, other):
9226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9227
 
9228
  def __ne__(self, other):
9229
    return not (self == other)
9230
 
9231
class getTrackLogs_args:
9232
  """
9233
  Attributes:
9234
   - userId
9235
   - event
9236
   - url
9237
  """
9238
 
9239
  thrift_spec = (
9240
    None, # 0
1996 vikas 9241
    (1, TType.I64, 'userId', None, None, ), # 1
9242
    (2, TType.STRING, 'event', None, None, ), # 2
9243
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9244
  )
9245
 
1996 vikas 9246
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9247
    self.userId = userId
9248
    self.event = event
9249
    self.url = url
9250
 
9251
  def read(self, iprot):
9252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9254
      return
9255
    iprot.readStructBegin()
9256
    while True:
9257
      (fname, ftype, fid) = iprot.readFieldBegin()
9258
      if ftype == TType.STOP:
9259
        break
9260
      if fid == 1:
9261
        if ftype == TType.I64:
1996 vikas 9262
          self.userId = iprot.readI64();
1845 vikas 9263
        else:
9264
          iprot.skip(ftype)
9265
      elif fid == 2:
9266
        if ftype == TType.STRING:
9267
          self.event = iprot.readString();
9268
        else:
9269
          iprot.skip(ftype)
1996 vikas 9270
      elif fid == 3:
1845 vikas 9271
        if ftype == TType.STRING:
9272
          self.url = iprot.readString();
9273
        else:
9274
          iprot.skip(ftype)
9275
      else:
9276
        iprot.skip(ftype)
9277
      iprot.readFieldEnd()
9278
    iprot.readStructEnd()
9279
 
9280
  def write(self, oprot):
9281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9283
      return
9284
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9285
    if self.userId is not None:
1996 vikas 9286
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9287
      oprot.writeI64(self.userId)
9288
      oprot.writeFieldEnd()
3431 rajveer 9289
    if self.event is not None:
1996 vikas 9290
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9291
      oprot.writeString(self.event)
9292
      oprot.writeFieldEnd()
3431 rajveer 9293
    if self.url is not None:
1996 vikas 9294
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9295
      oprot.writeString(self.url)
9296
      oprot.writeFieldEnd()
9297
    oprot.writeFieldStop()
9298
    oprot.writeStructEnd()
9299
 
3431 rajveer 9300
  def validate(self):
9301
    return
9302
 
9303
 
1845 vikas 9304
  def __repr__(self):
9305
    L = ['%s=%r' % (key, value)
9306
      for key, value in self.__dict__.iteritems()]
9307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9308
 
9309
  def __eq__(self, other):
9310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9311
 
9312
  def __ne__(self, other):
9313
    return not (self == other)
9314
 
9315
class getTrackLogs_result:
9316
  """
9317
  Attributes:
9318
   - success
9319
   - utx
9320
  """
9321
 
9322
  thrift_spec = (
9323
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9324
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9325
  )
9326
 
9327
  def __init__(self, success=None, utx=None,):
9328
    self.success = success
9329
    self.utx = utx
9330
 
9331
  def read(self, iprot):
9332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9334
      return
9335
    iprot.readStructBegin()
9336
    while True:
9337
      (fname, ftype, fid) = iprot.readFieldBegin()
9338
      if ftype == TType.STOP:
9339
        break
9340
      if fid == 0:
9341
        if ftype == TType.LIST:
9342
          self.success = []
6433 anupam.sin 9343
          (_etype119, _size116) = iprot.readListBegin()
9344
          for _i120 in xrange(_size116):
9345
            _elem121 = TrackLog()
9346
            _elem121.read(iprot)
9347
            self.success.append(_elem121)
1845 vikas 9348
          iprot.readListEnd()
9349
        else:
9350
          iprot.skip(ftype)
9351
      elif fid == 1:
9352
        if ftype == TType.STRUCT:
1996 vikas 9353
          self.utx = UserAffiliateException()
1845 vikas 9354
          self.utx.read(iprot)
9355
        else:
9356
          iprot.skip(ftype)
9357
      else:
9358
        iprot.skip(ftype)
9359
      iprot.readFieldEnd()
9360
    iprot.readStructEnd()
9361
 
9362
  def write(self, oprot):
9363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9365
      return
9366
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9367
    if self.success is not None:
1845 vikas 9368
      oprot.writeFieldBegin('success', TType.LIST, 0)
9369
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 9370
      for iter122 in self.success:
9371
        iter122.write(oprot)
1845 vikas 9372
      oprot.writeListEnd()
9373
      oprot.writeFieldEnd()
3431 rajveer 9374
    if self.utx is not None:
1845 vikas 9375
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9376
      self.utx.write(oprot)
9377
      oprot.writeFieldEnd()
9378
    oprot.writeFieldStop()
9379
    oprot.writeStructEnd()
9380
 
3431 rajveer 9381
  def validate(self):
9382
    return
9383
 
9384
 
1845 vikas 9385
  def __repr__(self):
9386
    L = ['%s=%r' % (key, value)
9387
      for key, value in self.__dict__.iteritems()]
9388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9389
 
9390
  def __eq__(self, other):
9391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9392
 
9393
  def __ne__(self, other):
9394
    return not (self == other)
9395
 
559 chandransh 9396
class getCurrentCart_args:
94 ashish 9397
  """
9398
  Attributes:
559 chandransh 9399
   - userId
9400
  """
9401
 
9402
  thrift_spec = (
9403
    None, # 0
9404
    (1, TType.I64, 'userId', None, None, ), # 1
9405
  )
9406
 
9407
  def __init__(self, userId=None,):
9408
    self.userId = userId
9409
 
9410
  def read(self, iprot):
9411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9413
      return
9414
    iprot.readStructBegin()
9415
    while True:
9416
      (fname, ftype, fid) = iprot.readFieldBegin()
9417
      if ftype == TType.STOP:
9418
        break
9419
      if fid == 1:
9420
        if ftype == TType.I64:
9421
          self.userId = iprot.readI64();
9422
        else:
9423
          iprot.skip(ftype)
9424
      else:
9425
        iprot.skip(ftype)
9426
      iprot.readFieldEnd()
9427
    iprot.readStructEnd()
9428
 
9429
  def write(self, oprot):
9430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9432
      return
9433
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9434
    if self.userId is not None:
559 chandransh 9435
      oprot.writeFieldBegin('userId', TType.I64, 1)
9436
      oprot.writeI64(self.userId)
9437
      oprot.writeFieldEnd()
9438
    oprot.writeFieldStop()
9439
    oprot.writeStructEnd()
9440
 
3431 rajveer 9441
  def validate(self):
9442
    return
9443
 
9444
 
559 chandransh 9445
  def __repr__(self):
9446
    L = ['%s=%r' % (key, value)
9447
      for key, value in self.__dict__.iteritems()]
9448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9449
 
9450
  def __eq__(self, other):
9451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9452
 
9453
  def __ne__(self, other):
9454
    return not (self == other)
9455
 
9456
class getCurrentCart_result:
9457
  """
9458
  Attributes:
94 ashish 9459
   - success
559 chandransh 9460
   - scx
94 ashish 9461
  """
9462
 
9463
  thrift_spec = (
559 chandransh 9464
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9465
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9466
  )
9467
 
559 chandransh 9468
  def __init__(self, success=None, scx=None,):
94 ashish 9469
    self.success = success
559 chandransh 9470
    self.scx = scx
94 ashish 9471
 
9472
  def read(self, iprot):
9473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9475
      return
9476
    iprot.readStructBegin()
9477
    while True:
9478
      (fname, ftype, fid) = iprot.readFieldBegin()
9479
      if ftype == TType.STOP:
9480
        break
9481
      if fid == 0:
559 chandransh 9482
        if ftype == TType.STRUCT:
9483
          self.success = Cart()
9484
          self.success.read(iprot)
94 ashish 9485
        else:
9486
          iprot.skip(ftype)
9487
      elif fid == 1:
9488
        if ftype == TType.STRUCT:
559 chandransh 9489
          self.scx = ShoppingCartException()
9490
          self.scx.read(iprot)
94 ashish 9491
        else:
9492
          iprot.skip(ftype)
9493
      else:
9494
        iprot.skip(ftype)
9495
      iprot.readFieldEnd()
9496
    iprot.readStructEnd()
9497
 
9498
  def write(self, oprot):
9499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9501
      return
559 chandransh 9502
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9503
    if self.success is not None:
559 chandransh 9504
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9505
      self.success.write(oprot)
94 ashish 9506
      oprot.writeFieldEnd()
3431 rajveer 9507
    if self.scx is not None:
559 chandransh 9508
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9509
      self.scx.write(oprot)
94 ashish 9510
      oprot.writeFieldEnd()
9511
    oprot.writeFieldStop()
9512
    oprot.writeStructEnd()
9513
 
3431 rajveer 9514
  def validate(self):
9515
    return
9516
 
9517
 
94 ashish 9518
  def __repr__(self):
9519
    L = ['%s=%r' % (key, value)
9520
      for key, value in self.__dict__.iteritems()]
9521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9522
 
9523
  def __eq__(self, other):
9524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9525
 
9526
  def __ne__(self, other):
9527
    return not (self == other)
9528
 
559 chandransh 9529
class getCart_args:
504 rajveer 9530
  """
9531
  Attributes:
559 chandransh 9532
   - cartId
504 rajveer 9533
  """
9534
 
9535
  thrift_spec = (
9536
    None, # 0
559 chandransh 9537
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9538
  )
9539
 
559 chandransh 9540
  def __init__(self, cartId=None,):
9541
    self.cartId = cartId
504 rajveer 9542
 
9543
  def read(self, iprot):
9544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9546
      return
9547
    iprot.readStructBegin()
9548
    while True:
9549
      (fname, ftype, fid) = iprot.readFieldBegin()
9550
      if ftype == TType.STOP:
9551
        break
9552
      if fid == 1:
9553
        if ftype == TType.I64:
559 chandransh 9554
          self.cartId = iprot.readI64();
504 rajveer 9555
        else:
9556
          iprot.skip(ftype)
9557
      else:
9558
        iprot.skip(ftype)
9559
      iprot.readFieldEnd()
9560
    iprot.readStructEnd()
9561
 
9562
  def write(self, oprot):
9563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9565
      return
559 chandransh 9566
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9567
    if self.cartId is not None:
559 chandransh 9568
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9569
      oprot.writeI64(self.cartId)
504 rajveer 9570
      oprot.writeFieldEnd()
9571
    oprot.writeFieldStop()
9572
    oprot.writeStructEnd()
9573
 
3431 rajveer 9574
  def validate(self):
9575
    return
9576
 
9577
 
504 rajveer 9578
  def __repr__(self):
9579
    L = ['%s=%r' % (key, value)
9580
      for key, value in self.__dict__.iteritems()]
9581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9582
 
9583
  def __eq__(self, other):
9584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9585
 
9586
  def __ne__(self, other):
9587
    return not (self == other)
9588
 
559 chandransh 9589
class getCart_result:
504 rajveer 9590
  """
9591
  Attributes:
9592
   - success
559 chandransh 9593
   - scx
504 rajveer 9594
  """
9595
 
9596
  thrift_spec = (
559 chandransh 9597
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9598
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9599
  )
9600
 
559 chandransh 9601
  def __init__(self, success=None, scx=None,):
504 rajveer 9602
    self.success = success
559 chandransh 9603
    self.scx = scx
504 rajveer 9604
 
9605
  def read(self, iprot):
9606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9608
      return
9609
    iprot.readStructBegin()
9610
    while True:
9611
      (fname, ftype, fid) = iprot.readFieldBegin()
9612
      if ftype == TType.STOP:
9613
        break
9614
      if fid == 0:
559 chandransh 9615
        if ftype == TType.STRUCT:
9616
          self.success = Cart()
9617
          self.success.read(iprot)
504 rajveer 9618
        else:
9619
          iprot.skip(ftype)
9620
      elif fid == 1:
9621
        if ftype == TType.STRUCT:
559 chandransh 9622
          self.scx = ShoppingCartException()
9623
          self.scx.read(iprot)
504 rajveer 9624
        else:
9625
          iprot.skip(ftype)
9626
      else:
9627
        iprot.skip(ftype)
9628
      iprot.readFieldEnd()
9629
    iprot.readStructEnd()
9630
 
9631
  def write(self, oprot):
9632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9634
      return
559 chandransh 9635
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9636
    if self.success is not None:
559 chandransh 9637
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9638
      self.success.write(oprot)
504 rajveer 9639
      oprot.writeFieldEnd()
3431 rajveer 9640
    if self.scx is not None:
559 chandransh 9641
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9642
      self.scx.write(oprot)
504 rajveer 9643
      oprot.writeFieldEnd()
9644
    oprot.writeFieldStop()
9645
    oprot.writeStructEnd()
9646
 
3431 rajveer 9647
  def validate(self):
9648
    return
9649
 
9650
 
504 rajveer 9651
  def __repr__(self):
9652
    L = ['%s=%r' % (key, value)
9653
      for key, value in self.__dict__.iteritems()]
9654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9655
 
9656
  def __eq__(self, other):
9657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9658
 
9659
  def __ne__(self, other):
9660
    return not (self == other)
9661
 
559 chandransh 9662
class getCartsByTime_args:
9663
  """
9664
  Attributes:
9665
   - from_time
9666
   - to_time
9667
   - status
9668
  """
9669
 
9670
  thrift_spec = (
9671
    None, # 0
9672
    (1, TType.I64, 'from_time', None, None, ), # 1
9673
    (2, TType.I64, 'to_time', None, None, ), # 2
9674
    (3, TType.I32, 'status', None, None, ), # 3
9675
  )
9676
 
9677
  def __init__(self, from_time=None, to_time=None, status=None,):
9678
    self.from_time = from_time
9679
    self.to_time = to_time
9680
    self.status = status
9681
 
9682
  def read(self, iprot):
9683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9685
      return
9686
    iprot.readStructBegin()
9687
    while True:
9688
      (fname, ftype, fid) = iprot.readFieldBegin()
9689
      if ftype == TType.STOP:
9690
        break
9691
      if fid == 1:
94 ashish 9692
        if ftype == TType.I64:
559 chandransh 9693
          self.from_time = iprot.readI64();
94 ashish 9694
        else:
9695
          iprot.skip(ftype)
122 ashish 9696
      elif fid == 2:
559 chandransh 9697
        if ftype == TType.I64:
9698
          self.to_time = iprot.readI64();
122 ashish 9699
        else:
9700
          iprot.skip(ftype)
559 chandransh 9701
      elif fid == 3:
9702
        if ftype == TType.I32:
9703
          self.status = iprot.readI32();
9704
        else:
9705
          iprot.skip(ftype)
94 ashish 9706
      else:
9707
        iprot.skip(ftype)
9708
      iprot.readFieldEnd()
9709
    iprot.readStructEnd()
9710
 
9711
  def write(self, oprot):
9712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9714
      return
559 chandransh 9715
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9716
    if self.from_time is not None:
559 chandransh 9717
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9718
      oprot.writeI64(self.from_time)
94 ashish 9719
      oprot.writeFieldEnd()
3431 rajveer 9720
    if self.to_time is not None:
559 chandransh 9721
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9722
      oprot.writeI64(self.to_time)
122 ashish 9723
      oprot.writeFieldEnd()
3431 rajveer 9724
    if self.status is not None:
559 chandransh 9725
      oprot.writeFieldBegin('status', TType.I32, 3)
9726
      oprot.writeI32(self.status)
9727
      oprot.writeFieldEnd()
94 ashish 9728
    oprot.writeFieldStop()
9729
    oprot.writeStructEnd()
9730
 
3431 rajveer 9731
  def validate(self):
9732
    return
9733
 
9734
 
94 ashish 9735
  def __repr__(self):
9736
    L = ['%s=%r' % (key, value)
9737
      for key, value in self.__dict__.iteritems()]
9738
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9739
 
9740
  def __eq__(self, other):
9741
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9742
 
9743
  def __ne__(self, other):
9744
    return not (self == other)
9745
 
559 chandransh 9746
class getCartsByTime_result:
94 ashish 9747
  """
9748
  Attributes:
9749
   - success
559 chandransh 9750
   - scx
94 ashish 9751
  """
9752
 
9753
  thrift_spec = (
559 chandransh 9754
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9755
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9756
  )
9757
 
559 chandransh 9758
  def __init__(self, success=None, scx=None,):
94 ashish 9759
    self.success = success
559 chandransh 9760
    self.scx = scx
94 ashish 9761
 
9762
  def read(self, iprot):
9763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9765
      return
9766
    iprot.readStructBegin()
9767
    while True:
9768
      (fname, ftype, fid) = iprot.readFieldBegin()
9769
      if ftype == TType.STOP:
9770
        break
9771
      if fid == 0:
559 chandransh 9772
        if ftype == TType.LIST:
9773
          self.success = []
6433 anupam.sin 9774
          (_etype126, _size123) = iprot.readListBegin()
9775
          for _i127 in xrange(_size123):
9776
            _elem128 = Cart()
9777
            _elem128.read(iprot)
9778
            self.success.append(_elem128)
559 chandransh 9779
          iprot.readListEnd()
94 ashish 9780
        else:
9781
          iprot.skip(ftype)
9782
      elif fid == 1:
9783
        if ftype == TType.STRUCT:
559 chandransh 9784
          self.scx = ShoppingCartException()
9785
          self.scx.read(iprot)
94 ashish 9786
        else:
9787
          iprot.skip(ftype)
9788
      else:
9789
        iprot.skip(ftype)
9790
      iprot.readFieldEnd()
9791
    iprot.readStructEnd()
9792
 
9793
  def write(self, oprot):
9794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9796
      return
559 chandransh 9797
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9798
    if self.success is not None:
559 chandransh 9799
      oprot.writeFieldBegin('success', TType.LIST, 0)
9800
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 9801
      for iter129 in self.success:
9802
        iter129.write(oprot)
559 chandransh 9803
      oprot.writeListEnd()
94 ashish 9804
      oprot.writeFieldEnd()
3431 rajveer 9805
    if self.scx is not None:
559 chandransh 9806
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9807
      self.scx.write(oprot)
94 ashish 9808
      oprot.writeFieldEnd()
9809
    oprot.writeFieldStop()
9810
    oprot.writeStructEnd()
9811
 
3431 rajveer 9812
  def validate(self):
9813
    return
9814
 
9815
 
94 ashish 9816
  def __repr__(self):
9817
    L = ['%s=%r' % (key, value)
9818
      for key, value in self.__dict__.iteritems()]
9819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9820
 
9821
  def __eq__(self, other):
9822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9823
 
9824
  def __ne__(self, other):
9825
    return not (self == other)
9826
 
559 chandransh 9827
class addItemToCart_args:
9828
  """
9829
  Attributes:
9830
   - cartId
9831
   - itemId
9832
   - quantity
3557 rajveer 9833
   - sourceId
559 chandransh 9834
  """
9835
 
9836
  thrift_spec = (
9837
    None, # 0
9838
    (1, TType.I64, 'cartId', None, None, ), # 1
9839
    (2, TType.I64, 'itemId', None, None, ), # 2
9840
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9841
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9842
  )
9843
 
3557 rajveer 9844
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9845
    self.cartId = cartId
9846
    self.itemId = itemId
9847
    self.quantity = quantity
3557 rajveer 9848
    self.sourceId = sourceId
559 chandransh 9849
 
9850
  def read(self, iprot):
9851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9853
      return
9854
    iprot.readStructBegin()
9855
    while True:
9856
      (fname, ftype, fid) = iprot.readFieldBegin()
9857
      if ftype == TType.STOP:
9858
        break
9859
      if fid == 1:
9860
        if ftype == TType.I64:
9861
          self.cartId = iprot.readI64();
9862
        else:
9863
          iprot.skip(ftype)
9864
      elif fid == 2:
9865
        if ftype == TType.I64:
9866
          self.itemId = iprot.readI64();
9867
        else:
9868
          iprot.skip(ftype)
9869
      elif fid == 3:
9870
        if ftype == TType.I64:
9871
          self.quantity = iprot.readI64();
9872
        else:
9873
          iprot.skip(ftype)
3557 rajveer 9874
      elif fid == 4:
9875
        if ftype == TType.I64:
9876
          self.sourceId = iprot.readI64();
9877
        else:
9878
          iprot.skip(ftype)
559 chandransh 9879
      else:
9880
        iprot.skip(ftype)
9881
      iprot.readFieldEnd()
9882
    iprot.readStructEnd()
9883
 
9884
  def write(self, oprot):
9885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9887
      return
9888
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9889
    if self.cartId is not None:
559 chandransh 9890
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9891
      oprot.writeI64(self.cartId)
9892
      oprot.writeFieldEnd()
3431 rajveer 9893
    if self.itemId is not None:
559 chandransh 9894
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9895
      oprot.writeI64(self.itemId)
9896
      oprot.writeFieldEnd()
3431 rajveer 9897
    if self.quantity is not None:
559 chandransh 9898
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9899
      oprot.writeI64(self.quantity)
9900
      oprot.writeFieldEnd()
3557 rajveer 9901
    if self.sourceId is not None:
9902
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9903
      oprot.writeI64(self.sourceId)
9904
      oprot.writeFieldEnd()
559 chandransh 9905
    oprot.writeFieldStop()
9906
    oprot.writeStructEnd()
9907
 
3431 rajveer 9908
  def validate(self):
9909
    return
9910
 
9911
 
559 chandransh 9912
  def __repr__(self):
9913
    L = ['%s=%r' % (key, value)
9914
      for key, value in self.__dict__.iteritems()]
9915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9916
 
9917
  def __eq__(self, other):
9918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9919
 
9920
  def __ne__(self, other):
9921
    return not (self == other)
9922
 
9923
class addItemToCart_result:
9924
  """
9925
  Attributes:
2035 rajveer 9926
   - success
559 chandransh 9927
   - scx
9928
  """
9929
 
9930
  thrift_spec = (
2035 rajveer 9931
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9932
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9933
  )
9934
 
2035 rajveer 9935
  def __init__(self, success=None, scx=None,):
9936
    self.success = success
559 chandransh 9937
    self.scx = scx
9938
 
9939
  def read(self, iprot):
9940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9942
      return
9943
    iprot.readStructBegin()
9944
    while True:
9945
      (fname, ftype, fid) = iprot.readFieldBegin()
9946
      if ftype == TType.STOP:
9947
        break
2035 rajveer 9948
      if fid == 0:
9949
        if ftype == TType.STRING:
9950
          self.success = iprot.readString();
9951
        else:
9952
          iprot.skip(ftype)
9953
      elif fid == 1:
559 chandransh 9954
        if ftype == TType.STRUCT:
9955
          self.scx = ShoppingCartException()
9956
          self.scx.read(iprot)
9957
        else:
9958
          iprot.skip(ftype)
9959
      else:
9960
        iprot.skip(ftype)
9961
      iprot.readFieldEnd()
9962
    iprot.readStructEnd()
9963
 
9964
  def write(self, oprot):
9965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9967
      return
9968
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 9969
    if self.success is not None:
2035 rajveer 9970
      oprot.writeFieldBegin('success', TType.STRING, 0)
9971
      oprot.writeString(self.success)
9972
      oprot.writeFieldEnd()
3431 rajveer 9973
    if self.scx is not None:
559 chandransh 9974
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9975
      self.scx.write(oprot)
9976
      oprot.writeFieldEnd()
9977
    oprot.writeFieldStop()
9978
    oprot.writeStructEnd()
9979
 
3431 rajveer 9980
  def validate(self):
9981
    return
9982
 
9983
 
559 chandransh 9984
  def __repr__(self):
9985
    L = ['%s=%r' % (key, value)
9986
      for key, value in self.__dict__.iteritems()]
9987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9988
 
9989
  def __eq__(self, other):
9990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9991
 
9992
  def __ne__(self, other):
9993
    return not (self == other)
9994
 
9995
class deleteItemFromCart_args:
9996
  """
9997
  Attributes:
9998
   - cartId
9999
   - itemId
10000
  """
10001
 
10002
  thrift_spec = (
10003
    None, # 0
10004
    (1, TType.I64, 'cartId', None, None, ), # 1
10005
    (2, TType.I64, 'itemId', None, None, ), # 2
10006
  )
10007
 
10008
  def __init__(self, cartId=None, itemId=None,):
10009
    self.cartId = cartId
10010
    self.itemId = itemId
10011
 
10012
  def read(self, iprot):
10013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10015
      return
10016
    iprot.readStructBegin()
10017
    while True:
10018
      (fname, ftype, fid) = iprot.readFieldBegin()
10019
      if ftype == TType.STOP:
10020
        break
10021
      if fid == 1:
10022
        if ftype == TType.I64:
10023
          self.cartId = iprot.readI64();
10024
        else:
10025
          iprot.skip(ftype)
10026
      elif fid == 2:
10027
        if ftype == TType.I64:
10028
          self.itemId = iprot.readI64();
10029
        else:
10030
          iprot.skip(ftype)
10031
      else:
10032
        iprot.skip(ftype)
10033
      iprot.readFieldEnd()
10034
    iprot.readStructEnd()
10035
 
10036
  def write(self, oprot):
10037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10039
      return
10040
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10041
    if self.cartId is not None:
559 chandransh 10042
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10043
      oprot.writeI64(self.cartId)
10044
      oprot.writeFieldEnd()
3431 rajveer 10045
    if self.itemId is not None:
559 chandransh 10046
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10047
      oprot.writeI64(self.itemId)
10048
      oprot.writeFieldEnd()
10049
    oprot.writeFieldStop()
10050
    oprot.writeStructEnd()
10051
 
3431 rajveer 10052
  def validate(self):
10053
    return
10054
 
10055
 
559 chandransh 10056
  def __repr__(self):
10057
    L = ['%s=%r' % (key, value)
10058
      for key, value in self.__dict__.iteritems()]
10059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10060
 
10061
  def __eq__(self, other):
10062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10063
 
10064
  def __ne__(self, other):
10065
    return not (self == other)
10066
 
10067
class deleteItemFromCart_result:
10068
  """
10069
  Attributes:
10070
   - scx
10071
  """
10072
 
10073
  thrift_spec = (
10074
    None, # 0
10075
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10076
  )
10077
 
10078
  def __init__(self, scx=None,):
10079
    self.scx = scx
10080
 
10081
  def read(self, iprot):
10082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10084
      return
10085
    iprot.readStructBegin()
10086
    while True:
10087
      (fname, ftype, fid) = iprot.readFieldBegin()
10088
      if ftype == TType.STOP:
10089
        break
10090
      if fid == 1:
10091
        if ftype == TType.STRUCT:
10092
          self.scx = ShoppingCartException()
10093
          self.scx.read(iprot)
10094
        else:
10095
          iprot.skip(ftype)
10096
      else:
10097
        iprot.skip(ftype)
10098
      iprot.readFieldEnd()
10099
    iprot.readStructEnd()
10100
 
10101
  def write(self, oprot):
10102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10104
      return
10105
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10106
    if self.scx is not None:
559 chandransh 10107
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10108
      self.scx.write(oprot)
10109
      oprot.writeFieldEnd()
10110
    oprot.writeFieldStop()
10111
    oprot.writeStructEnd()
10112
 
3431 rajveer 10113
  def validate(self):
10114
    return
10115
 
10116
 
559 chandransh 10117
  def __repr__(self):
10118
    L = ['%s=%r' % (key, value)
10119
      for key, value in self.__dict__.iteritems()]
10120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10121
 
10122
  def __eq__(self, other):
10123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10124
 
10125
  def __ne__(self, other):
10126
    return not (self == other)
10127
 
10128
class addAddressToCart_args:
10129
  """
10130
  Attributes:
10131
   - cartId
10132
   - addressId
10133
  """
10134
 
10135
  thrift_spec = (
10136
    None, # 0
10137
    (1, TType.I64, 'cartId', None, None, ), # 1
10138
    (2, TType.I64, 'addressId', None, None, ), # 2
10139
  )
10140
 
10141
  def __init__(self, cartId=None, addressId=None,):
10142
    self.cartId = cartId
10143
    self.addressId = addressId
10144
 
10145
  def read(self, iprot):
10146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10148
      return
10149
    iprot.readStructBegin()
10150
    while True:
10151
      (fname, ftype, fid) = iprot.readFieldBegin()
10152
      if ftype == TType.STOP:
10153
        break
10154
      if fid == 1:
10155
        if ftype == TType.I64:
10156
          self.cartId = iprot.readI64();
10157
        else:
10158
          iprot.skip(ftype)
10159
      elif fid == 2:
10160
        if ftype == TType.I64:
10161
          self.addressId = iprot.readI64();
10162
        else:
10163
          iprot.skip(ftype)
10164
      else:
10165
        iprot.skip(ftype)
10166
      iprot.readFieldEnd()
10167
    iprot.readStructEnd()
10168
 
10169
  def write(self, oprot):
10170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10172
      return
10173
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10174
    if self.cartId is not None:
559 chandransh 10175
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10176
      oprot.writeI64(self.cartId)
10177
      oprot.writeFieldEnd()
3431 rajveer 10178
    if self.addressId is not None:
559 chandransh 10179
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10180
      oprot.writeI64(self.addressId)
10181
      oprot.writeFieldEnd()
10182
    oprot.writeFieldStop()
10183
    oprot.writeStructEnd()
10184
 
3431 rajveer 10185
  def validate(self):
10186
    return
10187
 
10188
 
559 chandransh 10189
  def __repr__(self):
10190
    L = ['%s=%r' % (key, value)
10191
      for key, value in self.__dict__.iteritems()]
10192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10193
 
10194
  def __eq__(self, other):
10195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10196
 
10197
  def __ne__(self, other):
10198
    return not (self == other)
10199
 
10200
class addAddressToCart_result:
575 chandransh 10201
  """
10202
  Attributes:
10203
   - scx
10204
  """
559 chandransh 10205
 
10206
  thrift_spec = (
575 chandransh 10207
    None, # 0
10208
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10209
  )
10210
 
575 chandransh 10211
  def __init__(self, scx=None,):
10212
    self.scx = scx
10213
 
559 chandransh 10214
  def read(self, iprot):
10215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10217
      return
10218
    iprot.readStructBegin()
10219
    while True:
10220
      (fname, ftype, fid) = iprot.readFieldBegin()
10221
      if ftype == TType.STOP:
10222
        break
575 chandransh 10223
      if fid == 1:
10224
        if ftype == TType.STRUCT:
10225
          self.scx = ShoppingCartException()
10226
          self.scx.read(iprot)
10227
        else:
10228
          iprot.skip(ftype)
559 chandransh 10229
      else:
10230
        iprot.skip(ftype)
10231
      iprot.readFieldEnd()
10232
    iprot.readStructEnd()
10233
 
10234
  def write(self, oprot):
10235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10237
      return
10238
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10239
    if self.scx is not None:
575 chandransh 10240
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10241
      self.scx.write(oprot)
10242
      oprot.writeFieldEnd()
559 chandransh 10243
    oprot.writeFieldStop()
10244
    oprot.writeStructEnd()
10245
 
3431 rajveer 10246
  def validate(self):
10247
    return
10248
 
10249
 
559 chandransh 10250
  def __repr__(self):
10251
    L = ['%s=%r' % (key, value)
10252
      for key, value in self.__dict__.iteritems()]
10253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10254
 
10255
  def __eq__(self, other):
10256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10257
 
10258
  def __ne__(self, other):
10259
    return not (self == other)
10260
 
5553 rajveer 10261
class addStoreToCart_args:
10262
  """
10263
  Attributes:
10264
   - cartId
10265
   - storeId
10266
  """
10267
 
10268
  thrift_spec = (
10269
    None, # 0
10270
    (1, TType.I64, 'cartId', None, None, ), # 1
10271
    (2, TType.I64, 'storeId', None, None, ), # 2
10272
  )
10273
 
10274
  def __init__(self, cartId=None, storeId=None,):
10275
    self.cartId = cartId
10276
    self.storeId = storeId
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.I64:
10294
          self.storeId = iprot.readI64();
10295
        else:
10296
          iprot.skip(ftype)
10297
      else:
10298
        iprot.skip(ftype)
10299
      iprot.readFieldEnd()
10300
    iprot.readStructEnd()
10301
 
10302
  def write(self, oprot):
10303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10305
      return
10306
    oprot.writeStructBegin('addStoreToCart_args')
10307
    if self.cartId is not None:
10308
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10309
      oprot.writeI64(self.cartId)
10310
      oprot.writeFieldEnd()
10311
    if self.storeId is not None:
10312
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10313
      oprot.writeI64(self.storeId)
10314
      oprot.writeFieldEnd()
10315
    oprot.writeFieldStop()
10316
    oprot.writeStructEnd()
10317
 
10318
  def validate(self):
10319
    return
10320
 
10321
 
10322
  def __repr__(self):
10323
    L = ['%s=%r' % (key, value)
10324
      for key, value in self.__dict__.iteritems()]
10325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10326
 
10327
  def __eq__(self, other):
10328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10329
 
10330
  def __ne__(self, other):
10331
    return not (self == other)
10332
 
10333
class addStoreToCart_result:
10334
  """
10335
  Attributes:
10336
   - scx
10337
  """
10338
 
10339
  thrift_spec = (
10340
    None, # 0
10341
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10342
  )
10343
 
10344
  def __init__(self, scx=None,):
10345
    self.scx = scx
10346
 
10347
  def read(self, iprot):
10348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10350
      return
10351
    iprot.readStructBegin()
10352
    while True:
10353
      (fname, ftype, fid) = iprot.readFieldBegin()
10354
      if ftype == TType.STOP:
10355
        break
10356
      if fid == 1:
10357
        if ftype == TType.STRUCT:
10358
          self.scx = ShoppingCartException()
10359
          self.scx.read(iprot)
10360
        else:
10361
          iprot.skip(ftype)
10362
      else:
10363
        iprot.skip(ftype)
10364
      iprot.readFieldEnd()
10365
    iprot.readStructEnd()
10366
 
10367
  def write(self, oprot):
10368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10370
      return
10371
    oprot.writeStructBegin('addStoreToCart_result')
10372
    if self.scx is not None:
10373
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10374
      self.scx.write(oprot)
10375
      oprot.writeFieldEnd()
10376
    oprot.writeFieldStop()
10377
    oprot.writeStructEnd()
10378
 
10379
  def validate(self):
10380
    return
10381
 
10382
 
10383
  def __repr__(self):
10384
    L = ['%s=%r' % (key, value)
10385
      for key, value in self.__dict__.iteritems()]
10386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10387
 
10388
  def __eq__(self, other):
10389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10390
 
10391
  def __ne__(self, other):
10392
    return not (self == other)
10393
 
1976 varun.gupt 10394
class applyCouponToCart_args:
10395
  """
10396
  Attributes:
10397
   - cartId
10398
   - couponCode
10399
   - totalPrice
10400
   - discountedPrice
10401
  """
10402
 
10403
  thrift_spec = (
10404
    None, # 0
10405
    (1, TType.I64, 'cartId', None, None, ), # 1
10406
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10407
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10408
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10409
  )
10410
 
10411
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10412
    self.cartId = cartId
10413
    self.couponCode = couponCode
10414
    self.totalPrice = totalPrice
10415
    self.discountedPrice = discountedPrice
10416
 
10417
  def read(self, iprot):
10418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10420
      return
10421
    iprot.readStructBegin()
10422
    while True:
10423
      (fname, ftype, fid) = iprot.readFieldBegin()
10424
      if ftype == TType.STOP:
10425
        break
10426
      if fid == 1:
10427
        if ftype == TType.I64:
10428
          self.cartId = iprot.readI64();
10429
        else:
10430
          iprot.skip(ftype)
10431
      elif fid == 2:
10432
        if ftype == TType.STRING:
10433
          self.couponCode = iprot.readString();
10434
        else:
10435
          iprot.skip(ftype)
10436
      elif fid == 3:
10437
        if ftype == TType.DOUBLE:
10438
          self.totalPrice = iprot.readDouble();
10439
        else:
10440
          iprot.skip(ftype)
10441
      elif fid == 4:
10442
        if ftype == TType.DOUBLE:
10443
          self.discountedPrice = iprot.readDouble();
10444
        else:
10445
          iprot.skip(ftype)
10446
      else:
10447
        iprot.skip(ftype)
10448
      iprot.readFieldEnd()
10449
    iprot.readStructEnd()
10450
 
10451
  def write(self, oprot):
10452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10454
      return
10455
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10456
    if self.cartId is not None:
1976 varun.gupt 10457
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10458
      oprot.writeI64(self.cartId)
10459
      oprot.writeFieldEnd()
3431 rajveer 10460
    if self.couponCode is not None:
1976 varun.gupt 10461
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10462
      oprot.writeString(self.couponCode)
10463
      oprot.writeFieldEnd()
3431 rajveer 10464
    if self.totalPrice is not None:
1976 varun.gupt 10465
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10466
      oprot.writeDouble(self.totalPrice)
10467
      oprot.writeFieldEnd()
3431 rajveer 10468
    if self.discountedPrice is not None:
1976 varun.gupt 10469
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10470
      oprot.writeDouble(self.discountedPrice)
10471
      oprot.writeFieldEnd()
10472
    oprot.writeFieldStop()
10473
    oprot.writeStructEnd()
10474
 
3431 rajveer 10475
  def validate(self):
10476
    return
10477
 
10478
 
1976 varun.gupt 10479
  def __repr__(self):
10480
    L = ['%s=%r' % (key, value)
10481
      for key, value in self.__dict__.iteritems()]
10482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10483
 
10484
  def __eq__(self, other):
10485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10486
 
10487
  def __ne__(self, other):
10488
    return not (self == other)
10489
 
10490
class applyCouponToCart_result:
10491
  """
10492
  Attributes:
10493
   - scx
10494
  """
10495
 
10496
  thrift_spec = (
10497
    None, # 0
10498
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10499
  )
10500
 
10501
  def __init__(self, scx=None,):
10502
    self.scx = scx
10503
 
10504
  def read(self, iprot):
10505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10507
      return
10508
    iprot.readStructBegin()
10509
    while True:
10510
      (fname, ftype, fid) = iprot.readFieldBegin()
10511
      if ftype == TType.STOP:
10512
        break
10513
      if fid == 1:
10514
        if ftype == TType.STRUCT:
10515
          self.scx = ShoppingCartException()
10516
          self.scx.read(iprot)
10517
        else:
10518
          iprot.skip(ftype)
10519
      else:
10520
        iprot.skip(ftype)
10521
      iprot.readFieldEnd()
10522
    iprot.readStructEnd()
10523
 
10524
  def write(self, oprot):
10525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10527
      return
10528
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10529
    if self.scx is not None:
1976 varun.gupt 10530
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10531
      self.scx.write(oprot)
10532
      oprot.writeFieldEnd()
10533
    oprot.writeFieldStop()
10534
    oprot.writeStructEnd()
10535
 
3431 rajveer 10536
  def validate(self):
10537
    return
10538
 
10539
 
1976 varun.gupt 10540
  def __repr__(self):
10541
    L = ['%s=%r' % (key, value)
10542
      for key, value in self.__dict__.iteritems()]
10543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10544
 
10545
  def __eq__(self, other):
10546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10547
 
10548
  def __ne__(self, other):
10549
    return not (self == other)
10550
 
10551
class removeCoupon_args:
10552
  """
10553
  Attributes:
10554
   - cartId
10555
  """
10556
 
10557
  thrift_spec = (
10558
    None, # 0
10559
    (1, TType.I64, 'cartId', None, None, ), # 1
10560
  )
10561
 
10562
  def __init__(self, cartId=None,):
10563
    self.cartId = cartId
10564
 
10565
  def read(self, iprot):
10566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10568
      return
10569
    iprot.readStructBegin()
10570
    while True:
10571
      (fname, ftype, fid) = iprot.readFieldBegin()
10572
      if ftype == TType.STOP:
10573
        break
10574
      if fid == 1:
10575
        if ftype == TType.I64:
10576
          self.cartId = iprot.readI64();
10577
        else:
10578
          iprot.skip(ftype)
10579
      else:
10580
        iprot.skip(ftype)
10581
      iprot.readFieldEnd()
10582
    iprot.readStructEnd()
10583
 
10584
  def write(self, oprot):
10585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10587
      return
10588
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10589
    if self.cartId is not None:
1976 varun.gupt 10590
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10591
      oprot.writeI64(self.cartId)
10592
      oprot.writeFieldEnd()
10593
    oprot.writeFieldStop()
10594
    oprot.writeStructEnd()
10595
 
3431 rajveer 10596
  def validate(self):
10597
    return
10598
 
10599
 
1976 varun.gupt 10600
  def __repr__(self):
10601
    L = ['%s=%r' % (key, value)
10602
      for key, value in self.__dict__.iteritems()]
10603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10604
 
10605
  def __eq__(self, other):
10606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10607
 
10608
  def __ne__(self, other):
10609
    return not (self == other)
10610
 
10611
class removeCoupon_result:
10612
  """
10613
  Attributes:
10614
   - scx
10615
  """
10616
 
10617
  thrift_spec = (
10618
    None, # 0
10619
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10620
  )
10621
 
10622
  def __init__(self, scx=None,):
10623
    self.scx = scx
10624
 
10625
  def read(self, iprot):
10626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10628
      return
10629
    iprot.readStructBegin()
10630
    while True:
10631
      (fname, ftype, fid) = iprot.readFieldBegin()
10632
      if ftype == TType.STOP:
10633
        break
10634
      if fid == 1:
10635
        if ftype == TType.STRUCT:
10636
          self.scx = ShoppingCartException()
10637
          self.scx.read(iprot)
10638
        else:
10639
          iprot.skip(ftype)
10640
      else:
10641
        iprot.skip(ftype)
10642
      iprot.readFieldEnd()
10643
    iprot.readStructEnd()
10644
 
10645
  def write(self, oprot):
10646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10648
      return
10649
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10650
    if self.scx is not None:
1976 varun.gupt 10651
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10652
      self.scx.write(oprot)
10653
      oprot.writeFieldEnd()
10654
    oprot.writeFieldStop()
10655
    oprot.writeStructEnd()
10656
 
3431 rajveer 10657
  def validate(self):
10658
    return
10659
 
10660
 
1976 varun.gupt 10661
  def __repr__(self):
10662
    L = ['%s=%r' % (key, value)
10663
      for key, value in self.__dict__.iteritems()]
10664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10665
 
10666
  def __eq__(self, other):
10667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10668
 
10669
  def __ne__(self, other):
10670
    return not (self == other)
10671
 
3554 varun.gupt 10672
class deleteDiscountsFromCart_args:
10673
  """
10674
  Attributes:
10675
   - cartId
10676
  """
10677
 
10678
  thrift_spec = (
10679
    None, # 0
10680
    (1, TType.I64, 'cartId', None, None, ), # 1
10681
  )
10682
 
10683
  def __init__(self, cartId=None,):
10684
    self.cartId = cartId
10685
 
10686
  def read(self, iprot):
10687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10689
      return
10690
    iprot.readStructBegin()
10691
    while True:
10692
      (fname, ftype, fid) = iprot.readFieldBegin()
10693
      if ftype == TType.STOP:
10694
        break
10695
      if fid == 1:
10696
        if ftype == TType.I64:
10697
          self.cartId = iprot.readI64();
10698
        else:
10699
          iprot.skip(ftype)
10700
      else:
10701
        iprot.skip(ftype)
10702
      iprot.readFieldEnd()
10703
    iprot.readStructEnd()
10704
 
10705
  def write(self, oprot):
10706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10708
      return
10709
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10710
    if self.cartId is not None:
10711
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10712
      oprot.writeI64(self.cartId)
10713
      oprot.writeFieldEnd()
10714
    oprot.writeFieldStop()
10715
    oprot.writeStructEnd()
10716
 
10717
  def validate(self):
10718
    return
10719
 
10720
 
10721
  def __repr__(self):
10722
    L = ['%s=%r' % (key, value)
10723
      for key, value in self.__dict__.iteritems()]
10724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10725
 
10726
  def __eq__(self, other):
10727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10728
 
10729
  def __ne__(self, other):
10730
    return not (self == other)
10731
 
10732
class deleteDiscountsFromCart_result:
10733
  """
10734
  Attributes:
10735
   - scx
10736
  """
10737
 
10738
  thrift_spec = (
10739
    None, # 0
10740
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10741
  )
10742
 
10743
  def __init__(self, scx=None,):
10744
    self.scx = scx
10745
 
10746
  def read(self, iprot):
10747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10749
      return
10750
    iprot.readStructBegin()
10751
    while True:
10752
      (fname, ftype, fid) = iprot.readFieldBegin()
10753
      if ftype == TType.STOP:
10754
        break
10755
      if fid == 1:
10756
        if ftype == TType.STRUCT:
10757
          self.scx = ShoppingCartException()
10758
          self.scx.read(iprot)
10759
        else:
10760
          iprot.skip(ftype)
10761
      else:
10762
        iprot.skip(ftype)
10763
      iprot.readFieldEnd()
10764
    iprot.readStructEnd()
10765
 
10766
  def write(self, oprot):
10767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10769
      return
10770
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10771
    if self.scx is not None:
10772
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10773
      self.scx.write(oprot)
10774
      oprot.writeFieldEnd()
10775
    oprot.writeFieldStop()
10776
    oprot.writeStructEnd()
10777
 
10778
  def validate(self):
10779
    return
10780
 
10781
 
10782
  def __repr__(self):
10783
    L = ['%s=%r' % (key, value)
10784
      for key, value in self.__dict__.iteritems()]
10785
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10786
 
10787
  def __eq__(self, other):
10788
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10789
 
10790
  def __ne__(self, other):
10791
    return not (self == other)
10792
 
10793
class saveDiscounts_args:
10794
  """
10795
  Attributes:
10796
   - discounts
10797
  """
10798
 
10799
  thrift_spec = (
10800
    None, # 0
10801
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10802
  )
10803
 
10804
  def __init__(self, discounts=None,):
10805
    self.discounts = discounts
10806
 
10807
  def read(self, iprot):
10808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10810
      return
10811
    iprot.readStructBegin()
10812
    while True:
10813
      (fname, ftype, fid) = iprot.readFieldBegin()
10814
      if ftype == TType.STOP:
10815
        break
10816
      if fid == 1:
10817
        if ftype == TType.LIST:
10818
          self.discounts = []
6433 anupam.sin 10819
          (_etype133, _size130) = iprot.readListBegin()
10820
          for _i134 in xrange(_size130):
10821
            _elem135 = Discount()
10822
            _elem135.read(iprot)
10823
            self.discounts.append(_elem135)
3554 varun.gupt 10824
          iprot.readListEnd()
10825
        else:
10826
          iprot.skip(ftype)
10827
      else:
10828
        iprot.skip(ftype)
10829
      iprot.readFieldEnd()
10830
    iprot.readStructEnd()
10831
 
10832
  def write(self, oprot):
10833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10835
      return
10836
    oprot.writeStructBegin('saveDiscounts_args')
10837
    if self.discounts is not None:
10838
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10839
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
6433 anupam.sin 10840
      for iter136 in self.discounts:
10841
        iter136.write(oprot)
3554 varun.gupt 10842
      oprot.writeListEnd()
10843
      oprot.writeFieldEnd()
10844
    oprot.writeFieldStop()
10845
    oprot.writeStructEnd()
10846
 
10847
  def validate(self):
10848
    return
10849
 
10850
 
10851
  def __repr__(self):
10852
    L = ['%s=%r' % (key, value)
10853
      for key, value in self.__dict__.iteritems()]
10854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10855
 
10856
  def __eq__(self, other):
10857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10858
 
10859
  def __ne__(self, other):
10860
    return not (self == other)
10861
 
10862
class saveDiscounts_result:
10863
  """
10864
  Attributes:
10865
   - scx
10866
  """
10867
 
10868
  thrift_spec = (
10869
    None, # 0
10870
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10871
  )
10872
 
10873
  def __init__(self, scx=None,):
10874
    self.scx = scx
10875
 
10876
  def read(self, iprot):
10877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10879
      return
10880
    iprot.readStructBegin()
10881
    while True:
10882
      (fname, ftype, fid) = iprot.readFieldBegin()
10883
      if ftype == TType.STOP:
10884
        break
10885
      if fid == 1:
10886
        if ftype == TType.STRUCT:
10887
          self.scx = ShoppingCartException()
10888
          self.scx.read(iprot)
10889
        else:
10890
          iprot.skip(ftype)
10891
      else:
10892
        iprot.skip(ftype)
10893
      iprot.readFieldEnd()
10894
    iprot.readStructEnd()
10895
 
10896
  def write(self, oprot):
10897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10899
      return
10900
    oprot.writeStructBegin('saveDiscounts_result')
10901
    if self.scx is not None:
10902
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10903
      self.scx.write(oprot)
10904
      oprot.writeFieldEnd()
10905
    oprot.writeFieldStop()
10906
    oprot.writeStructEnd()
10907
 
10908
  def validate(self):
10909
    return
10910
 
10911
 
10912
  def __repr__(self):
10913
    L = ['%s=%r' % (key, value)
10914
      for key, value in self.__dict__.iteritems()]
10915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10916
 
10917
  def __eq__(self, other):
10918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10919
 
10920
  def __ne__(self, other):
10921
    return not (self == other)
10922
 
690 chandransh 10923
class createOrders_args:
559 chandransh 10924
  """
10925
  Attributes:
10926
   - cartId
2815 vikas 10927
   - sessionSource
10928
   - sessionStartTime
3858 vikas 10929
   - firstSource
10930
   - firstSourceTime
5326 rajveer 10931
   - userId
6389 rajveer 10932
   - schemeId
559 chandransh 10933
  """
10934
 
10935
  thrift_spec = (
10936
    None, # 0
10937
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10938
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10939
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10940
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10941
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 10942
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 10943
    (7, TType.I64, 'schemeId', None, None, ), # 7
559 chandransh 10944
  )
10945
 
6389 rajveer 10946
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
559 chandransh 10947
    self.cartId = cartId
2815 vikas 10948
    self.sessionSource = sessionSource
10949
    self.sessionStartTime = sessionStartTime
3858 vikas 10950
    self.firstSource = firstSource
10951
    self.firstSourceTime = firstSourceTime
5326 rajveer 10952
    self.userId = userId
6389 rajveer 10953
    self.schemeId = schemeId
559 chandransh 10954
 
10955
  def read(self, iprot):
10956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10958
      return
10959
    iprot.readStructBegin()
10960
    while True:
10961
      (fname, ftype, fid) = iprot.readFieldBegin()
10962
      if ftype == TType.STOP:
10963
        break
10964
      if fid == 1:
10965
        if ftype == TType.I64:
10966
          self.cartId = iprot.readI64();
10967
        else:
10968
          iprot.skip(ftype)
2815 vikas 10969
      elif fid == 2:
10970
        if ftype == TType.STRING:
10971
          self.sessionSource = iprot.readString();
10972
        else:
10973
          iprot.skip(ftype)
10974
      elif fid == 3:
10975
        if ftype == TType.I64:
10976
          self.sessionStartTime = iprot.readI64();
10977
        else:
10978
          iprot.skip(ftype)
3858 vikas 10979
      elif fid == 4:
10980
        if ftype == TType.STRING:
10981
          self.firstSource = iprot.readString();
10982
        else:
10983
          iprot.skip(ftype)
10984
      elif fid == 5:
10985
        if ftype == TType.I64:
10986
          self.firstSourceTime = iprot.readI64();
10987
        else:
10988
          iprot.skip(ftype)
5326 rajveer 10989
      elif fid == 6:
10990
        if ftype == TType.I64:
10991
          self.userId = iprot.readI64();
10992
        else:
10993
          iprot.skip(ftype)
6389 rajveer 10994
      elif fid == 7:
10995
        if ftype == TType.I64:
10996
          self.schemeId = iprot.readI64();
10997
        else:
10998
          iprot.skip(ftype)
559 chandransh 10999
      else:
11000
        iprot.skip(ftype)
11001
      iprot.readFieldEnd()
11002
    iprot.readStructEnd()
11003
 
11004
  def write(self, oprot):
11005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11007
      return
690 chandransh 11008
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11009
    if self.cartId is not None:
559 chandransh 11010
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11011
      oprot.writeI64(self.cartId)
11012
      oprot.writeFieldEnd()
3431 rajveer 11013
    if self.sessionSource is not None:
2815 vikas 11014
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11015
      oprot.writeString(self.sessionSource)
11016
      oprot.writeFieldEnd()
3431 rajveer 11017
    if self.sessionStartTime is not None:
2815 vikas 11018
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11019
      oprot.writeI64(self.sessionStartTime)
11020
      oprot.writeFieldEnd()
3858 vikas 11021
    if self.firstSource is not None:
11022
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11023
      oprot.writeString(self.firstSource)
11024
      oprot.writeFieldEnd()
11025
    if self.firstSourceTime is not None:
11026
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11027
      oprot.writeI64(self.firstSourceTime)
11028
      oprot.writeFieldEnd()
5326 rajveer 11029
    if self.userId is not None:
11030
      oprot.writeFieldBegin('userId', TType.I64, 6)
11031
      oprot.writeI64(self.userId)
11032
      oprot.writeFieldEnd()
6389 rajveer 11033
    if self.schemeId is not None:
11034
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11035
      oprot.writeI64(self.schemeId)
11036
      oprot.writeFieldEnd()
559 chandransh 11037
    oprot.writeFieldStop()
11038
    oprot.writeStructEnd()
11039
 
3431 rajveer 11040
  def validate(self):
11041
    return
11042
 
11043
 
559 chandransh 11044
  def __repr__(self):
11045
    L = ['%s=%r' % (key, value)
11046
      for key, value in self.__dict__.iteritems()]
11047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11048
 
11049
  def __eq__(self, other):
11050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11051
 
11052
  def __ne__(self, other):
11053
    return not (self == other)
11054
 
690 chandransh 11055
class createOrders_result:
559 chandransh 11056
  """
11057
  Attributes:
94 ashish 11058
   - success
559 chandransh 11059
   - scx
94 ashish 11060
  """
11061
 
11062
  thrift_spec = (
575 chandransh 11063
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11064
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11065
  )
11066
 
559 chandransh 11067
  def __init__(self, success=None, scx=None,):
94 ashish 11068
    self.success = success
559 chandransh 11069
    self.scx = scx
94 ashish 11070
 
11071
  def read(self, iprot):
11072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11074
      return
11075
    iprot.readStructBegin()
11076
    while True:
11077
      (fname, ftype, fid) = iprot.readFieldBegin()
11078
      if ftype == TType.STOP:
11079
        break
11080
      if fid == 0:
575 chandransh 11081
        if ftype == TType.I64:
11082
          self.success = iprot.readI64();
94 ashish 11083
        else:
11084
          iprot.skip(ftype)
11085
      elif fid == 1:
11086
        if ftype == TType.STRUCT:
559 chandransh 11087
          self.scx = ShoppingCartException()
11088
          self.scx.read(iprot)
94 ashish 11089
        else:
11090
          iprot.skip(ftype)
11091
      else:
11092
        iprot.skip(ftype)
11093
      iprot.readFieldEnd()
11094
    iprot.readStructEnd()
11095
 
11096
  def write(self, oprot):
11097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11099
      return
690 chandransh 11100
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11101
    if self.success is not None:
575 chandransh 11102
      oprot.writeFieldBegin('success', TType.I64, 0)
11103
      oprot.writeI64(self.success)
94 ashish 11104
      oprot.writeFieldEnd()
3431 rajveer 11105
    if self.scx is not None:
559 chandransh 11106
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11107
      self.scx.write(oprot)
94 ashish 11108
      oprot.writeFieldEnd()
11109
    oprot.writeFieldStop()
11110
    oprot.writeStructEnd()
11111
 
3431 rajveer 11112
  def validate(self):
11113
    return
11114
 
11115
 
94 ashish 11116
  def __repr__(self):
11117
    L = ['%s=%r' % (key, value)
11118
      for key, value in self.__dict__.iteritems()]
11119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11120
 
11121
  def __eq__(self, other):
11122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11123
 
11124
  def __ne__(self, other):
11125
    return not (self == other)
11126
 
559 chandransh 11127
class validateCart_args:
94 ashish 11128
  """
11129
  Attributes:
559 chandransh 11130
   - cartId
3557 rajveer 11131
   - sourceId
94 ashish 11132
  """
11133
 
11134
  thrift_spec = (
11135
    None, # 0
559 chandransh 11136
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11137
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11138
  )
11139
 
3557 rajveer 11140
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11141
    self.cartId = cartId
3557 rajveer 11142
    self.sourceId = sourceId
94 ashish 11143
 
11144
  def read(self, iprot):
11145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11147
      return
11148
    iprot.readStructBegin()
11149
    while True:
11150
      (fname, ftype, fid) = iprot.readFieldBegin()
11151
      if ftype == TType.STOP:
11152
        break
11153
      if fid == 1:
11154
        if ftype == TType.I64:
559 chandransh 11155
          self.cartId = iprot.readI64();
94 ashish 11156
        else:
11157
          iprot.skip(ftype)
3557 rajveer 11158
      elif fid == 2:
11159
        if ftype == TType.I64:
11160
          self.sourceId = iprot.readI64();
11161
        else:
11162
          iprot.skip(ftype)
94 ashish 11163
      else:
11164
        iprot.skip(ftype)
11165
      iprot.readFieldEnd()
11166
    iprot.readStructEnd()
11167
 
11168
  def write(self, oprot):
11169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11171
      return
559 chandransh 11172
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11173
    if self.cartId is not None:
559 chandransh 11174
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11175
      oprot.writeI64(self.cartId)
94 ashish 11176
      oprot.writeFieldEnd()
3557 rajveer 11177
    if self.sourceId is not None:
11178
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11179
      oprot.writeI64(self.sourceId)
11180
      oprot.writeFieldEnd()
94 ashish 11181
    oprot.writeFieldStop()
11182
    oprot.writeStructEnd()
11183
 
3431 rajveer 11184
  def validate(self):
11185
    return
11186
 
11187
 
94 ashish 11188
  def __repr__(self):
11189
    L = ['%s=%r' % (key, value)
11190
      for key, value in self.__dict__.iteritems()]
11191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11192
 
11193
  def __eq__(self, other):
11194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11195
 
11196
  def __ne__(self, other):
11197
    return not (self == other)
11198
 
559 chandransh 11199
class validateCart_result:
94 ashish 11200
  """
11201
  Attributes:
11202
   - success
575 chandransh 11203
   - scex
94 ashish 11204
  """
11205
 
11206
  thrift_spec = (
1466 ankur.sing 11207
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11208
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11209
  )
11210
 
575 chandransh 11211
  def __init__(self, success=None, scex=None,):
94 ashish 11212
    self.success = success
575 chandransh 11213
    self.scex = scex
94 ashish 11214
 
11215
  def read(self, iprot):
11216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11218
      return
11219
    iprot.readStructBegin()
11220
    while True:
11221
      (fname, ftype, fid) = iprot.readFieldBegin()
11222
      if ftype == TType.STOP:
11223
        break
11224
      if fid == 0:
1466 ankur.sing 11225
        if ftype == TType.STRING:
11226
          self.success = iprot.readString();
94 ashish 11227
        else:
11228
          iprot.skip(ftype)
575 chandransh 11229
      elif fid == 1:
11230
        if ftype == TType.STRUCT:
11231
          self.scex = ShoppingCartException()
11232
          self.scex.read(iprot)
11233
        else:
11234
          iprot.skip(ftype)
94 ashish 11235
      else:
11236
        iprot.skip(ftype)
11237
      iprot.readFieldEnd()
11238
    iprot.readStructEnd()
11239
 
11240
  def write(self, oprot):
11241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11243
      return
559 chandransh 11244
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11245
    if self.success is not None:
1466 ankur.sing 11246
      oprot.writeFieldBegin('success', TType.STRING, 0)
11247
      oprot.writeString(self.success)
94 ashish 11248
      oprot.writeFieldEnd()
3431 rajveer 11249
    if self.scex is not None:
575 chandransh 11250
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11251
      self.scex.write(oprot)
11252
      oprot.writeFieldEnd()
559 chandransh 11253
    oprot.writeFieldStop()
11254
    oprot.writeStructEnd()
11255
 
3431 rajveer 11256
  def validate(self):
11257
    return
11258
 
11259
 
559 chandransh 11260
  def __repr__(self):
11261
    L = ['%s=%r' % (key, value)
11262
      for key, value in self.__dict__.iteritems()]
11263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11264
 
11265
  def __eq__(self, other):
11266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11267
 
11268
  def __ne__(self, other):
11269
    return not (self == other)
11270
 
690 chandransh 11271
class mergeCart_args:
575 chandransh 11272
  """
11273
  Attributes:
690 chandransh 11274
   - fromCartId
11275
   - toCartId
11276
  """
11277
 
11278
  thrift_spec = (
11279
    None, # 0
11280
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11281
    (2, TType.I64, 'toCartId', None, None, ), # 2
11282
  )
11283
 
11284
  def __init__(self, fromCartId=None, toCartId=None,):
11285
    self.fromCartId = fromCartId
11286
    self.toCartId = toCartId
11287
 
11288
  def read(self, iprot):
11289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11291
      return
11292
    iprot.readStructBegin()
11293
    while True:
11294
      (fname, ftype, fid) = iprot.readFieldBegin()
11295
      if ftype == TType.STOP:
11296
        break
11297
      if fid == 1:
11298
        if ftype == TType.I64:
11299
          self.fromCartId = iprot.readI64();
11300
        else:
11301
          iprot.skip(ftype)
11302
      elif fid == 2:
11303
        if ftype == TType.I64:
11304
          self.toCartId = iprot.readI64();
11305
        else:
11306
          iprot.skip(ftype)
11307
      else:
11308
        iprot.skip(ftype)
11309
      iprot.readFieldEnd()
11310
    iprot.readStructEnd()
11311
 
11312
  def write(self, oprot):
11313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11315
      return
11316
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11317
    if self.fromCartId is not None:
690 chandransh 11318
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11319
      oprot.writeI64(self.fromCartId)
11320
      oprot.writeFieldEnd()
3431 rajveer 11321
    if self.toCartId is not None:
690 chandransh 11322
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11323
      oprot.writeI64(self.toCartId)
11324
      oprot.writeFieldEnd()
11325
    oprot.writeFieldStop()
11326
    oprot.writeStructEnd()
11327
 
3431 rajveer 11328
  def validate(self):
11329
    return
11330
 
11331
 
690 chandransh 11332
  def __repr__(self):
11333
    L = ['%s=%r' % (key, value)
11334
      for key, value in self.__dict__.iteritems()]
11335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11336
 
11337
  def __eq__(self, other):
11338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11339
 
11340
  def __ne__(self, other):
11341
    return not (self == other)
11342
 
11343
class mergeCart_result:
11344
 
11345
  thrift_spec = (
11346
  )
11347
 
11348
  def read(self, iprot):
11349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11351
      return
11352
    iprot.readStructBegin()
11353
    while True:
11354
      (fname, ftype, fid) = iprot.readFieldBegin()
11355
      if ftype == TType.STOP:
11356
        break
11357
      else:
11358
        iprot.skip(ftype)
11359
      iprot.readFieldEnd()
11360
    iprot.readStructEnd()
11361
 
11362
  def write(self, oprot):
11363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11365
      return
11366
    oprot.writeStructBegin('mergeCart_result')
11367
    oprot.writeFieldStop()
11368
    oprot.writeStructEnd()
11369
 
3431 rajveer 11370
  def validate(self):
11371
    return
11372
 
11373
 
690 chandransh 11374
  def __repr__(self):
11375
    L = ['%s=%r' % (key, value)
11376
      for key, value in self.__dict__.iteritems()]
11377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11378
 
11379
  def __eq__(self, other):
11380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11381
 
11382
  def __ne__(self, other):
11383
    return not (self == other)
11384
 
11385
class checkOut_args:
11386
  """
11387
  Attributes:
575 chandransh 11388
   - cartId
11389
  """
11390
 
11391
  thrift_spec = (
11392
    None, # 0
11393
    (1, TType.I64, 'cartId', None, None, ), # 1
11394
  )
11395
 
11396
  def __init__(self, cartId=None,):
11397
    self.cartId = cartId
11398
 
11399
  def read(self, iprot):
11400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11402
      return
11403
    iprot.readStructBegin()
11404
    while True:
11405
      (fname, ftype, fid) = iprot.readFieldBegin()
11406
      if ftype == TType.STOP:
11407
        break
11408
      if fid == 1:
11409
        if ftype == TType.I64:
11410
          self.cartId = iprot.readI64();
11411
        else:
11412
          iprot.skip(ftype)
11413
      else:
11414
        iprot.skip(ftype)
11415
      iprot.readFieldEnd()
11416
    iprot.readStructEnd()
11417
 
11418
  def write(self, oprot):
11419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11421
      return
690 chandransh 11422
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11423
    if self.cartId is not None:
575 chandransh 11424
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11425
      oprot.writeI64(self.cartId)
11426
      oprot.writeFieldEnd()
11427
    oprot.writeFieldStop()
11428
    oprot.writeStructEnd()
11429
 
3431 rajveer 11430
  def validate(self):
11431
    return
11432
 
11433
 
575 chandransh 11434
  def __repr__(self):
11435
    L = ['%s=%r' % (key, value)
11436
      for key, value in self.__dict__.iteritems()]
11437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11438
 
11439
  def __eq__(self, other):
11440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11441
 
11442
  def __ne__(self, other):
11443
    return not (self == other)
11444
 
690 chandransh 11445
class checkOut_result:
575 chandransh 11446
  """
11447
  Attributes:
11448
   - success
11449
   - scex
11450
  """
11451
 
11452
  thrift_spec = (
11453
    (0, TType.BOOL, 'success', None, None, ), # 0
11454
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11455
  )
11456
 
11457
  def __init__(self, success=None, scex=None,):
11458
    self.success = success
11459
    self.scex = scex
11460
 
11461
  def read(self, iprot):
11462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11464
      return
11465
    iprot.readStructBegin()
11466
    while True:
11467
      (fname, ftype, fid) = iprot.readFieldBegin()
11468
      if ftype == TType.STOP:
11469
        break
11470
      if fid == 0:
11471
        if ftype == TType.BOOL:
11472
          self.success = iprot.readBool();
11473
        else:
11474
          iprot.skip(ftype)
11475
      elif fid == 1:
11476
        if ftype == TType.STRUCT:
11477
          self.scex = ShoppingCartException()
11478
          self.scex.read(iprot)
11479
        else:
11480
          iprot.skip(ftype)
11481
      else:
11482
        iprot.skip(ftype)
11483
      iprot.readFieldEnd()
11484
    iprot.readStructEnd()
11485
 
11486
  def write(self, oprot):
11487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11489
      return
690 chandransh 11490
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11491
    if self.success is not None:
575 chandransh 11492
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11493
      oprot.writeBool(self.success)
11494
      oprot.writeFieldEnd()
3431 rajveer 11495
    if self.scex is not None:
575 chandransh 11496
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11497
      self.scex.write(oprot)
11498
      oprot.writeFieldEnd()
11499
    oprot.writeFieldStop()
11500
    oprot.writeStructEnd()
11501
 
3431 rajveer 11502
  def validate(self):
11503
    return
11504
 
11505
 
575 chandransh 11506
  def __repr__(self):
11507
    L = ['%s=%r' % (key, value)
11508
      for key, value in self.__dict__.iteritems()]
11509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11510
 
11511
  def __eq__(self, other):
11512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11513
 
11514
  def __ne__(self, other):
11515
    return not (self == other)
11516
 
690 chandransh 11517
class resetCart_args:
559 chandransh 11518
  """
11519
  Attributes:
690 chandransh 11520
   - cartId
11521
   - items
559 chandransh 11522
  """
11523
 
11524
  thrift_spec = (
11525
    None, # 0
690 chandransh 11526
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11527
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11528
  )
11529
 
690 chandransh 11530
  def __init__(self, cartId=None, items=None,):
11531
    self.cartId = cartId
11532
    self.items = items
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:
11544
        if ftype == TType.I64:
690 chandransh 11545
          self.cartId = iprot.readI64();
559 chandransh 11546
        else:
11547
          iprot.skip(ftype)
11548
      elif fid == 2:
690 chandransh 11549
        if ftype == TType.MAP:
11550
          self.items = {}
6433 anupam.sin 11551
          (_ktype138, _vtype139, _size137 ) = iprot.readMapBegin() 
11552
          for _i141 in xrange(_size137):
11553
            _key142 = iprot.readI64();
11554
            _val143 = iprot.readDouble();
11555
            self.items[_key142] = _val143
690 chandransh 11556
          iprot.readMapEnd()
559 chandransh 11557
        else:
11558
          iprot.skip(ftype)
11559
      else:
11560
        iprot.skip(ftype)
11561
      iprot.readFieldEnd()
11562
    iprot.readStructEnd()
11563
 
11564
  def write(self, oprot):
11565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11567
      return
690 chandransh 11568
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11569
    if self.cartId is not None:
690 chandransh 11570
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11571
      oprot.writeI64(self.cartId)
94 ashish 11572
      oprot.writeFieldEnd()
3431 rajveer 11573
    if self.items is not None:
690 chandransh 11574
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11575
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
6433 anupam.sin 11576
      for kiter144,viter145 in self.items.items():
11577
        oprot.writeI64(kiter144)
11578
        oprot.writeDouble(viter145)
690 chandransh 11579
      oprot.writeMapEnd()
559 chandransh 11580
      oprot.writeFieldEnd()
94 ashish 11581
    oprot.writeFieldStop()
11582
    oprot.writeStructEnd()
11583
 
3431 rajveer 11584
  def validate(self):
11585
    return
11586
 
11587
 
94 ashish 11588
  def __repr__(self):
11589
    L = ['%s=%r' % (key, value)
11590
      for key, value in self.__dict__.iteritems()]
11591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11592
 
11593
  def __eq__(self, other):
11594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11595
 
11596
  def __ne__(self, other):
11597
    return not (self == other)
11598
 
690 chandransh 11599
class resetCart_result:
11600
  """
11601
  Attributes:
11602
   - success
11603
   - scex
11604
  """
559 chandransh 11605
 
11606
  thrift_spec = (
690 chandransh 11607
    (0, TType.BOOL, 'success', None, None, ), # 0
11608
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11609
  )
11610
 
690 chandransh 11611
  def __init__(self, success=None, scex=None,):
11612
    self.success = success
11613
    self.scex = scex
11614
 
559 chandransh 11615
  def read(self, iprot):
11616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11618
      return
11619
    iprot.readStructBegin()
11620
    while True:
11621
      (fname, ftype, fid) = iprot.readFieldBegin()
11622
      if ftype == TType.STOP:
11623
        break
690 chandransh 11624
      if fid == 0:
11625
        if ftype == TType.BOOL:
11626
          self.success = iprot.readBool();
11627
        else:
11628
          iprot.skip(ftype)
11629
      elif fid == 1:
11630
        if ftype == TType.STRUCT:
11631
          self.scex = ShoppingCartException()
11632
          self.scex.read(iprot)
11633
        else:
11634
          iprot.skip(ftype)
559 chandransh 11635
      else:
11636
        iprot.skip(ftype)
11637
      iprot.readFieldEnd()
11638
    iprot.readStructEnd()
11639
 
11640
  def write(self, oprot):
11641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11643
      return
690 chandransh 11644
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11645
    if self.success is not None:
690 chandransh 11646
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11647
      oprot.writeBool(self.success)
11648
      oprot.writeFieldEnd()
3431 rajveer 11649
    if self.scex is not None:
690 chandransh 11650
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11651
      self.scex.write(oprot)
11652
      oprot.writeFieldEnd()
559 chandransh 11653
    oprot.writeFieldStop()
11654
    oprot.writeStructEnd()
11655
 
3431 rajveer 11656
  def validate(self):
11657
    return
11658
 
11659
 
559 chandransh 11660
  def __repr__(self):
11661
    L = ['%s=%r' % (key, value)
11662
      for key, value in self.__dict__.iteritems()]
11663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11664
 
11665
  def __eq__(self, other):
11666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11667
 
11668
  def __ne__(self, other):
11669
    return not (self == other)
11670
 
2981 rajveer 11671
class getUserCount_args:
94 ashish 11672
  """
11673
  Attributes:
2981 rajveer 11674
   - userType
559 chandransh 11675
  """
11676
 
11677
  thrift_spec = (
11678
    None, # 0
2981 rajveer 11679
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11680
  )
11681
 
2981 rajveer 11682
  def __init__(self, userType=None,):
11683
    self.userType = userType
559 chandransh 11684
 
11685
  def read(self, iprot):
11686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11688
      return
11689
    iprot.readStructBegin()
11690
    while True:
11691
      (fname, ftype, fid) = iprot.readFieldBegin()
11692
      if ftype == TType.STOP:
11693
        break
11694
      if fid == 1:
2981 rajveer 11695
        if ftype == TType.I32:
11696
          self.userType = iprot.readI32();
559 chandransh 11697
        else:
11698
          iprot.skip(ftype)
11699
      else:
11700
        iprot.skip(ftype)
11701
      iprot.readFieldEnd()
11702
    iprot.readStructEnd()
11703
 
11704
  def write(self, oprot):
11705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11707
      return
2981 rajveer 11708
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11709
    if self.userType is not None:
2981 rajveer 11710
      oprot.writeFieldBegin('userType', TType.I32, 1)
11711
      oprot.writeI32(self.userType)
559 chandransh 11712
      oprot.writeFieldEnd()
11713
    oprot.writeFieldStop()
11714
    oprot.writeStructEnd()
11715
 
3431 rajveer 11716
  def validate(self):
11717
    return
11718
 
11719
 
559 chandransh 11720
  def __repr__(self):
11721
    L = ['%s=%r' % (key, value)
11722
      for key, value in self.__dict__.iteritems()]
11723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11724
 
11725
  def __eq__(self, other):
11726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11727
 
11728
  def __ne__(self, other):
11729
    return not (self == other)
11730
 
2981 rajveer 11731
class getUserCount_result:
94 ashish 11732
  """
11733
  Attributes:
11734
   - success
11735
  """
11736
 
11737
  thrift_spec = (
2981 rajveer 11738
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11739
  )
11740
 
2981 rajveer 11741
  def __init__(self, success=None,):
94 ashish 11742
    self.success = success
11743
 
11744
  def read(self, iprot):
11745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11747
      return
11748
    iprot.readStructBegin()
11749
    while True:
11750
      (fname, ftype, fid) = iprot.readFieldBegin()
11751
      if ftype == TType.STOP:
11752
        break
11753
      if fid == 0:
2981 rajveer 11754
        if ftype == TType.I64:
11755
          self.success = iprot.readI64();
94 ashish 11756
        else:
11757
          iprot.skip(ftype)
11758
      else:
11759
        iprot.skip(ftype)
11760
      iprot.readFieldEnd()
11761
    iprot.readStructEnd()
11762
 
11763
  def write(self, oprot):
11764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11766
      return
2981 rajveer 11767
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11768
    if self.success is not None:
2981 rajveer 11769
      oprot.writeFieldBegin('success', TType.I64, 0)
11770
      oprot.writeI64(self.success)
94 ashish 11771
      oprot.writeFieldEnd()
11772
    oprot.writeFieldStop()
11773
    oprot.writeStructEnd()
11774
 
3431 rajveer 11775
  def validate(self):
11776
    return
11777
 
11778
 
94 ashish 11779
  def __repr__(self):
11780
    L = ['%s=%r' % (key, value)
11781
      for key, value in self.__dict__.iteritems()]
11782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11783
 
11784
  def __eq__(self, other):
11785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11786
 
11787
  def __ne__(self, other):
11788
    return not (self == other)
11789
 
2981 rajveer 11790
class getAllUsers_args:
94 ashish 11791
  """
11792
  Attributes:
2981 rajveer 11793
   - userType
11794
   - startDate
11795
   - endDate
94 ashish 11796
  """
11797
 
11798
  thrift_spec = (
11799
    None, # 0
2981 rajveer 11800
    (1, TType.I32, 'userType', None, None, ), # 1
11801
    (2, TType.I64, 'startDate', None, None, ), # 2
11802
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11803
  )
11804
 
2981 rajveer 11805
  def __init__(self, userType=None, startDate=None, endDate=None,):
11806
    self.userType = userType
11807
    self.startDate = startDate
11808
    self.endDate = endDate
94 ashish 11809
 
11810
  def read(self, iprot):
11811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11813
      return
11814
    iprot.readStructBegin()
11815
    while True:
11816
      (fname, ftype, fid) = iprot.readFieldBegin()
11817
      if ftype == TType.STOP:
11818
        break
11819
      if fid == 1:
2981 rajveer 11820
        if ftype == TType.I32:
11821
          self.userType = iprot.readI32();
94 ashish 11822
        else:
11823
          iprot.skip(ftype)
11824
      elif fid == 2:
559 chandransh 11825
        if ftype == TType.I64:
2981 rajveer 11826
          self.startDate = iprot.readI64();
94 ashish 11827
        else:
11828
          iprot.skip(ftype)
2981 rajveer 11829
      elif fid == 3:
11830
        if ftype == TType.I64:
11831
          self.endDate = iprot.readI64();
11832
        else:
11833
          iprot.skip(ftype)
94 ashish 11834
      else:
11835
        iprot.skip(ftype)
11836
      iprot.readFieldEnd()
11837
    iprot.readStructEnd()
11838
 
11839
  def write(self, oprot):
11840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11842
      return
2981 rajveer 11843
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11844
    if self.userType is not None:
2981 rajveer 11845
      oprot.writeFieldBegin('userType', TType.I32, 1)
11846
      oprot.writeI32(self.userType)
94 ashish 11847
      oprot.writeFieldEnd()
3431 rajveer 11848
    if self.startDate is not None:
2981 rajveer 11849
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11850
      oprot.writeI64(self.startDate)
94 ashish 11851
      oprot.writeFieldEnd()
3431 rajveer 11852
    if self.endDate is not None:
2981 rajveer 11853
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11854
      oprot.writeI64(self.endDate)
11855
      oprot.writeFieldEnd()
94 ashish 11856
    oprot.writeFieldStop()
11857
    oprot.writeStructEnd()
11858
 
3431 rajveer 11859
  def validate(self):
11860
    return
11861
 
11862
 
94 ashish 11863
  def __repr__(self):
11864
    L = ['%s=%r' % (key, value)
11865
      for key, value in self.__dict__.iteritems()]
11866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11867
 
11868
  def __eq__(self, other):
11869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11870
 
11871
  def __ne__(self, other):
11872
    return not (self == other)
11873
 
2981 rajveer 11874
class getAllUsers_result:
94 ashish 11875
  """
11876
  Attributes:
11877
   - success
11878
  """
11879
 
11880
  thrift_spec = (
2981 rajveer 11881
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11882
  )
11883
 
2981 rajveer 11884
  def __init__(self, success=None,):
94 ashish 11885
    self.success = success
11886
 
11887
  def read(self, iprot):
11888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11890
      return
11891
    iprot.readStructBegin()
11892
    while True:
11893
      (fname, ftype, fid) = iprot.readFieldBegin()
11894
      if ftype == TType.STOP:
11895
        break
11896
      if fid == 0:
2981 rajveer 11897
        if ftype == TType.LIST:
11898
          self.success = []
6433 anupam.sin 11899
          (_etype149, _size146) = iprot.readListBegin()
11900
          for _i150 in xrange(_size146):
11901
            _elem151 = User()
11902
            _elem151.read(iprot)
11903
            self.success.append(_elem151)
2981 rajveer 11904
          iprot.readListEnd()
94 ashish 11905
        else:
11906
          iprot.skip(ftype)
11907
      else:
11908
        iprot.skip(ftype)
11909
      iprot.readFieldEnd()
11910
    iprot.readStructEnd()
11911
 
11912
  def write(self, oprot):
11913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11915
      return
2981 rajveer 11916
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11917
    if self.success is not None:
2981 rajveer 11918
      oprot.writeFieldBegin('success', TType.LIST, 0)
11919
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6433 anupam.sin 11920
      for iter152 in self.success:
11921
        iter152.write(oprot)
2981 rajveer 11922
      oprot.writeListEnd()
94 ashish 11923
      oprot.writeFieldEnd()
11924
    oprot.writeFieldStop()
11925
    oprot.writeStructEnd()
11926
 
3431 rajveer 11927
  def validate(self):
11928
    return
11929
 
11930
 
94 ashish 11931
  def __repr__(self):
11932
    L = ['%s=%r' % (key, value)
11933
      for key, value in self.__dict__.iteritems()]
11934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11935
 
11936
  def __eq__(self, other):
11937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11938
 
11939
  def __ne__(self, other):
11940
    return not (self == other)
11941
 
2981 rajveer 11942
class getMyResearchItems_args:
559 chandransh 11943
  """
11944
  Attributes:
772 rajveer 11945
   - userId
559 chandransh 11946
  """
11947
 
11948
  thrift_spec = (
11949
    None, # 0
772 rajveer 11950
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 11951
  )
11952
 
772 rajveer 11953
  def __init__(self, userId=None,):
11954
    self.userId = userId
559 chandransh 11955
 
11956
  def read(self, iprot):
11957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11959
      return
11960
    iprot.readStructBegin()
11961
    while True:
11962
      (fname, ftype, fid) = iprot.readFieldBegin()
11963
      if ftype == TType.STOP:
11964
        break
11965
      if fid == 1:
11966
        if ftype == TType.I64:
772 rajveer 11967
          self.userId = iprot.readI64();
559 chandransh 11968
        else:
11969
          iprot.skip(ftype)
11970
      else:
11971
        iprot.skip(ftype)
11972
      iprot.readFieldEnd()
11973
    iprot.readStructEnd()
11974
 
11975
  def write(self, oprot):
11976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11978
      return
2981 rajveer 11979
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 11980
    if self.userId is not None:
772 rajveer 11981
      oprot.writeFieldBegin('userId', TType.I64, 1)
11982
      oprot.writeI64(self.userId)
559 chandransh 11983
      oprot.writeFieldEnd()
11984
    oprot.writeFieldStop()
11985
    oprot.writeStructEnd()
11986
 
3431 rajveer 11987
  def validate(self):
11988
    return
11989
 
11990
 
559 chandransh 11991
  def __repr__(self):
11992
    L = ['%s=%r' % (key, value)
11993
      for key, value in self.__dict__.iteritems()]
11994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11995
 
11996
  def __eq__(self, other):
11997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11998
 
11999
  def __ne__(self, other):
12000
    return not (self == other)
12001
 
2981 rajveer 12002
class getMyResearchItems_result:
559 chandransh 12003
  """
12004
  Attributes:
130 ashish 12005
   - success
559 chandransh 12006
   - scx
130 ashish 12007
  """
12008
 
12009
  thrift_spec = (
2981 rajveer 12010
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12011
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12012
  )
12013
 
559 chandransh 12014
  def __init__(self, success=None, scx=None,):
130 ashish 12015
    self.success = success
559 chandransh 12016
    self.scx = scx
130 ashish 12017
 
12018
  def read(self, iprot):
12019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12021
      return
12022
    iprot.readStructBegin()
12023
    while True:
12024
      (fname, ftype, fid) = iprot.readFieldBegin()
12025
      if ftype == TType.STOP:
12026
        break
12027
      if fid == 0:
2981 rajveer 12028
        if ftype == TType.LIST:
12029
          self.success = []
6433 anupam.sin 12030
          (_etype156, _size153) = iprot.readListBegin()
12031
          for _i157 in xrange(_size153):
12032
            _elem158 = iprot.readI64();
12033
            self.success.append(_elem158)
2981 rajveer 12034
          iprot.readListEnd()
130 ashish 12035
        else:
12036
          iprot.skip(ftype)
12037
      elif fid == 1:
12038
        if ftype == TType.STRUCT:
559 chandransh 12039
          self.scx = WidgetException()
12040
          self.scx.read(iprot)
130 ashish 12041
        else:
12042
          iprot.skip(ftype)
12043
      else:
12044
        iprot.skip(ftype)
12045
      iprot.readFieldEnd()
12046
    iprot.readStructEnd()
12047
 
12048
  def write(self, oprot):
12049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12051
      return
2981 rajveer 12052
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12053
    if self.success is not None:
2981 rajveer 12054
      oprot.writeFieldBegin('success', TType.LIST, 0)
12055
      oprot.writeListBegin(TType.I64, len(self.success))
6433 anupam.sin 12056
      for iter159 in self.success:
12057
        oprot.writeI64(iter159)
2981 rajveer 12058
      oprot.writeListEnd()
130 ashish 12059
      oprot.writeFieldEnd()
3431 rajveer 12060
    if self.scx is not None:
559 chandransh 12061
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12062
      self.scx.write(oprot)
130 ashish 12063
      oprot.writeFieldEnd()
12064
    oprot.writeFieldStop()
12065
    oprot.writeStructEnd()
12066
 
3431 rajveer 12067
  def validate(self):
12068
    return
12069
 
12070
 
130 ashish 12071
  def __repr__(self):
12072
    L = ['%s=%r' % (key, value)
12073
      for key, value in self.__dict__.iteritems()]
12074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12075
 
12076
  def __eq__(self, other):
12077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12078
 
12079
  def __ne__(self, other):
12080
    return not (self == other)
12081
 
2981 rajveer 12082
class updateMyResearch_args:
130 ashish 12083
  """
12084
  Attributes:
2981 rajveer 12085
   - userId
12086
   - itemId
130 ashish 12087
  """
12088
 
12089
  thrift_spec = (
12090
    None, # 0
2981 rajveer 12091
    (1, TType.I64, 'userId', None, None, ), # 1
12092
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12093
  )
12094
 
2981 rajveer 12095
  def __init__(self, userId=None, itemId=None,):
12096
    self.userId = userId
12097
    self.itemId = itemId
130 ashish 12098
 
12099
  def read(self, iprot):
12100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12102
      return
12103
    iprot.readStructBegin()
12104
    while True:
12105
      (fname, ftype, fid) = iprot.readFieldBegin()
12106
      if ftype == TType.STOP:
12107
        break
12108
      if fid == 1:
559 chandransh 12109
        if ftype == TType.I64:
2981 rajveer 12110
          self.userId = iprot.readI64();
130 ashish 12111
        else:
12112
          iprot.skip(ftype)
12113
      elif fid == 2:
559 chandransh 12114
        if ftype == TType.I64:
2981 rajveer 12115
          self.itemId = iprot.readI64();
559 chandransh 12116
        else:
12117
          iprot.skip(ftype)
130 ashish 12118
      else:
12119
        iprot.skip(ftype)
12120
      iprot.readFieldEnd()
12121
    iprot.readStructEnd()
12122
 
12123
  def write(self, oprot):
12124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12126
      return
2981 rajveer 12127
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12128
    if self.userId is not None:
2981 rajveer 12129
      oprot.writeFieldBegin('userId', TType.I64, 1)
12130
      oprot.writeI64(self.userId)
130 ashish 12131
      oprot.writeFieldEnd()
3431 rajveer 12132
    if self.itemId is not None:
2981 rajveer 12133
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12134
      oprot.writeI64(self.itemId)
130 ashish 12135
      oprot.writeFieldEnd()
12136
    oprot.writeFieldStop()
12137
    oprot.writeStructEnd()
12138
 
3431 rajveer 12139
  def validate(self):
12140
    return
12141
 
12142
 
130 ashish 12143
  def __repr__(self):
12144
    L = ['%s=%r' % (key, value)
12145
      for key, value in self.__dict__.iteritems()]
12146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12147
 
12148
  def __eq__(self, other):
12149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12150
 
12151
  def __ne__(self, other):
12152
    return not (self == other)
12153
 
2981 rajveer 12154
class updateMyResearch_result:
12155
  """
12156
  Attributes:
12157
   - success
12158
   - scx
12159
  """
559 chandransh 12160
 
12161
  thrift_spec = (
2981 rajveer 12162
    (0, TType.BOOL, 'success', None, None, ), # 0
12163
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12164
  )
12165
 
2981 rajveer 12166
  def __init__(self, success=None, scx=None,):
12167
    self.success = success
12168
    self.scx = scx
12169
 
559 chandransh 12170
  def read(self, iprot):
12171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12173
      return
12174
    iprot.readStructBegin()
12175
    while True:
12176
      (fname, ftype, fid) = iprot.readFieldBegin()
12177
      if ftype == TType.STOP:
12178
        break
2981 rajveer 12179
      if fid == 0:
12180
        if ftype == TType.BOOL:
12181
          self.success = iprot.readBool();
12182
        else:
12183
          iprot.skip(ftype)
12184
      elif fid == 1:
12185
        if ftype == TType.STRUCT:
12186
          self.scx = WidgetException()
12187
          self.scx.read(iprot)
12188
        else:
12189
          iprot.skip(ftype)
559 chandransh 12190
      else:
12191
        iprot.skip(ftype)
12192
      iprot.readFieldEnd()
12193
    iprot.readStructEnd()
12194
 
12195
  def write(self, oprot):
12196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12198
      return
2981 rajveer 12199
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12200
    if self.success is not None:
2981 rajveer 12201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12202
      oprot.writeBool(self.success)
12203
      oprot.writeFieldEnd()
3431 rajveer 12204
    if self.scx is not None:
2981 rajveer 12205
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12206
      self.scx.write(oprot)
12207
      oprot.writeFieldEnd()
559 chandransh 12208
    oprot.writeFieldStop()
12209
    oprot.writeStructEnd()
12210
 
3431 rajveer 12211
  def validate(self):
12212
    return
12213
 
12214
 
559 chandransh 12215
  def __repr__(self):
12216
    L = ['%s=%r' % (key, value)
12217
      for key, value in self.__dict__.iteritems()]
12218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12219
 
12220
  def __eq__(self, other):
12221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12222
 
12223
  def __ne__(self, other):
12224
    return not (self == other)
12225
 
2981 rajveer 12226
class deleteItemFromMyResearch_args:
1596 ankur.sing 12227
  """
12228
  Attributes:
2981 rajveer 12229
   - userId
12230
   - itemId
1596 ankur.sing 12231
  """
559 chandransh 12232
 
1596 ankur.sing 12233
  thrift_spec = (
12234
    None, # 0
2981 rajveer 12235
    (1, TType.I64, 'userId', None, None, ), # 1
12236
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12237
  )
12238
 
2981 rajveer 12239
  def __init__(self, userId=None, itemId=None,):
12240
    self.userId = userId
12241
    self.itemId = itemId
1596 ankur.sing 12242
 
12243
  def read(self, iprot):
12244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12246
      return
12247
    iprot.readStructBegin()
12248
    while True:
12249
      (fname, ftype, fid) = iprot.readFieldBegin()
12250
      if ftype == TType.STOP:
12251
        break
12252
      if fid == 1:
2981 rajveer 12253
        if ftype == TType.I64:
12254
          self.userId = iprot.readI64();
1596 ankur.sing 12255
        else:
12256
          iprot.skip(ftype)
2981 rajveer 12257
      elif fid == 2:
12258
        if ftype == TType.I64:
12259
          self.itemId = iprot.readI64();
12260
        else:
12261
          iprot.skip(ftype)
1596 ankur.sing 12262
      else:
12263
        iprot.skip(ftype)
12264
      iprot.readFieldEnd()
12265
    iprot.readStructEnd()
12266
 
12267
  def write(self, oprot):
12268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12270
      return
2981 rajveer 12271
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12272
    if self.userId is not None:
2981 rajveer 12273
      oprot.writeFieldBegin('userId', TType.I64, 1)
12274
      oprot.writeI64(self.userId)
1596 ankur.sing 12275
      oprot.writeFieldEnd()
3431 rajveer 12276
    if self.itemId is not None:
2981 rajveer 12277
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12278
      oprot.writeI64(self.itemId)
12279
      oprot.writeFieldEnd()
1596 ankur.sing 12280
    oprot.writeFieldStop()
12281
    oprot.writeStructEnd()
12282
 
3431 rajveer 12283
  def validate(self):
12284
    return
12285
 
12286
 
1596 ankur.sing 12287
  def __repr__(self):
12288
    L = ['%s=%r' % (key, value)
12289
      for key, value in self.__dict__.iteritems()]
12290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12291
 
12292
  def __eq__(self, other):
12293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12294
 
12295
  def __ne__(self, other):
12296
    return not (self == other)
12297
 
2981 rajveer 12298
class deleteItemFromMyResearch_result:
1596 ankur.sing 12299
  """
12300
  Attributes:
2981 rajveer 12301
   - scx
1596 ankur.sing 12302
  """
12303
 
12304
  thrift_spec = (
2981 rajveer 12305
    None, # 0
12306
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12307
  )
12308
 
2981 rajveer 12309
  def __init__(self, scx=None,):
12310
    self.scx = scx
1596 ankur.sing 12311
 
12312
  def read(self, iprot):
12313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12315
      return
12316
    iprot.readStructBegin()
12317
    while True:
12318
      (fname, ftype, fid) = iprot.readFieldBegin()
12319
      if ftype == TType.STOP:
12320
        break
2981 rajveer 12321
      if fid == 1:
12322
        if ftype == TType.STRUCT:
12323
          self.scx = WidgetException()
12324
          self.scx.read(iprot)
1596 ankur.sing 12325
        else:
12326
          iprot.skip(ftype)
12327
      else:
12328
        iprot.skip(ftype)
12329
      iprot.readFieldEnd()
12330
    iprot.readStructEnd()
12331
 
12332
  def write(self, oprot):
12333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12335
      return
2981 rajveer 12336
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12337
    if self.scx is not None:
2981 rajveer 12338
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12339
      self.scx.write(oprot)
1596 ankur.sing 12340
      oprot.writeFieldEnd()
12341
    oprot.writeFieldStop()
12342
    oprot.writeStructEnd()
12343
 
3431 rajveer 12344
  def validate(self):
12345
    return
12346
 
12347
 
1596 ankur.sing 12348
  def __repr__(self):
12349
    L = ['%s=%r' % (key, value)
12350
      for key, value in self.__dict__.iteritems()]
12351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12352
 
12353
  def __eq__(self, other):
12354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12355
 
12356
  def __ne__(self, other):
12357
    return not (self == other)
12358
 
2981 rajveer 12359
class getBrowseHistoryItems_args:
1673 ankur.sing 12360
  """
12361
  Attributes:
2981 rajveer 12362
   - userId
1673 ankur.sing 12363
  """
1596 ankur.sing 12364
 
1673 ankur.sing 12365
  thrift_spec = (
12366
    None, # 0
2981 rajveer 12367
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12368
  )
12369
 
2981 rajveer 12370
  def __init__(self, userId=None,):
12371
    self.userId = userId
1673 ankur.sing 12372
 
12373
  def read(self, iprot):
12374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12376
      return
12377
    iprot.readStructBegin()
12378
    while True:
12379
      (fname, ftype, fid) = iprot.readFieldBegin()
12380
      if ftype == TType.STOP:
12381
        break
12382
      if fid == 1:
1891 ankur.sing 12383
        if ftype == TType.I64:
2981 rajveer 12384
          self.userId = iprot.readI64();
1891 ankur.sing 12385
        else:
12386
          iprot.skip(ftype)
1673 ankur.sing 12387
      else:
12388
        iprot.skip(ftype)
12389
      iprot.readFieldEnd()
12390
    iprot.readStructEnd()
12391
 
12392
  def write(self, oprot):
12393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12395
      return
2981 rajveer 12396
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12397
    if self.userId is not None:
2981 rajveer 12398
      oprot.writeFieldBegin('userId', TType.I64, 1)
12399
      oprot.writeI64(self.userId)
1673 ankur.sing 12400
      oprot.writeFieldEnd()
12401
    oprot.writeFieldStop()
12402
    oprot.writeStructEnd()
12403
 
3431 rajveer 12404
  def validate(self):
12405
    return
12406
 
12407
 
1673 ankur.sing 12408
  def __repr__(self):
12409
    L = ['%s=%r' % (key, value)
12410
      for key, value in self.__dict__.iteritems()]
12411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12412
 
12413
  def __eq__(self, other):
12414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12415
 
12416
  def __ne__(self, other):
12417
    return not (self == other)
12418
 
2981 rajveer 12419
class getBrowseHistoryItems_result:
1673 ankur.sing 12420
  """
12421
  Attributes:
12422
   - success
2981 rajveer 12423
   - scx
1673 ankur.sing 12424
  """
12425
 
12426
  thrift_spec = (
2981 rajveer 12427
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12428
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12429
  )
12430
 
2981 rajveer 12431
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12432
    self.success = success
2981 rajveer 12433
    self.scx = scx
1673 ankur.sing 12434
 
12435
  def read(self, iprot):
12436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12438
      return
12439
    iprot.readStructBegin()
12440
    while True:
12441
      (fname, ftype, fid) = iprot.readFieldBegin()
12442
      if ftype == TType.STOP:
12443
        break
12444
      if fid == 0:
12445
        if ftype == TType.LIST:
12446
          self.success = []
6433 anupam.sin 12447
          (_etype163, _size160) = iprot.readListBegin()
12448
          for _i164 in xrange(_size160):
12449
            _elem165 = iprot.readI64();
12450
            self.success.append(_elem165)
1673 ankur.sing 12451
          iprot.readListEnd()
12452
        else:
12453
          iprot.skip(ftype)
2981 rajveer 12454
      elif fid == 1:
12455
        if ftype == TType.STRUCT:
12456
          self.scx = WidgetException()
12457
          self.scx.read(iprot)
12458
        else:
12459
          iprot.skip(ftype)
1673 ankur.sing 12460
      else:
12461
        iprot.skip(ftype)
12462
      iprot.readFieldEnd()
12463
    iprot.readStructEnd()
12464
 
12465
  def write(self, oprot):
12466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12468
      return
2981 rajveer 12469
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12470
    if self.success is not None:
1673 ankur.sing 12471
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12472
      oprot.writeListBegin(TType.I64, len(self.success))
6433 anupam.sin 12473
      for iter166 in self.success:
12474
        oprot.writeI64(iter166)
1673 ankur.sing 12475
      oprot.writeListEnd()
12476
      oprot.writeFieldEnd()
3431 rajveer 12477
    if self.scx is not None:
2981 rajveer 12478
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12479
      self.scx.write(oprot)
2642 varun.gupt 12480
      oprot.writeFieldEnd()
12481
    oprot.writeFieldStop()
12482
    oprot.writeStructEnd()
12483
 
3431 rajveer 12484
  def validate(self):
12485
    return
12486
 
12487
 
2642 varun.gupt 12488
  def __repr__(self):
12489
    L = ['%s=%r' % (key, value)
12490
      for key, value in self.__dict__.iteritems()]
12491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12492
 
12493
  def __eq__(self, other):
12494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12495
 
12496
  def __ne__(self, other):
12497
    return not (self == other)
12498
 
2981 rajveer 12499
class updateBrowseHistory_args:
2642 varun.gupt 12500
  """
12501
  Attributes:
2981 rajveer 12502
   - userId
12503
   - itemId
2642 varun.gupt 12504
  """
12505
 
12506
  thrift_spec = (
12507
    None, # 0
2981 rajveer 12508
    (1, TType.I64, 'userId', None, None, ), # 1
12509
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12510
  )
12511
 
2981 rajveer 12512
  def __init__(self, userId=None, itemId=None,):
12513
    self.userId = userId
12514
    self.itemId = itemId
2642 varun.gupt 12515
 
12516
  def read(self, iprot):
12517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12519
      return
12520
    iprot.readStructBegin()
12521
    while True:
12522
      (fname, ftype, fid) = iprot.readFieldBegin()
12523
      if ftype == TType.STOP:
12524
        break
12525
      if fid == 1:
12526
        if ftype == TType.I64:
2981 rajveer 12527
          self.userId = iprot.readI64();
2642 varun.gupt 12528
        else:
12529
          iprot.skip(ftype)
12530
      elif fid == 2:
12531
        if ftype == TType.I64:
2981 rajveer 12532
          self.itemId = iprot.readI64();
2642 varun.gupt 12533
        else:
12534
          iprot.skip(ftype)
12535
      else:
12536
        iprot.skip(ftype)
12537
      iprot.readFieldEnd()
12538
    iprot.readStructEnd()
12539
 
12540
  def write(self, oprot):
12541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12543
      return
2981 rajveer 12544
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12545
    if self.userId is not None:
2981 rajveer 12546
      oprot.writeFieldBegin('userId', TType.I64, 1)
12547
      oprot.writeI64(self.userId)
2642 varun.gupt 12548
      oprot.writeFieldEnd()
3431 rajveer 12549
    if self.itemId is not None:
2981 rajveer 12550
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12551
      oprot.writeI64(self.itemId)
2642 varun.gupt 12552
      oprot.writeFieldEnd()
12553
    oprot.writeFieldStop()
12554
    oprot.writeStructEnd()
12555
 
3431 rajveer 12556
  def validate(self):
12557
    return
12558
 
12559
 
2642 varun.gupt 12560
  def __repr__(self):
12561
    L = ['%s=%r' % (key, value)
12562
      for key, value in self.__dict__.iteritems()]
12563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12564
 
12565
  def __eq__(self, other):
12566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12567
 
12568
  def __ne__(self, other):
12569
    return not (self == other)
12570
 
2981 rajveer 12571
class updateBrowseHistory_result:
2642 varun.gupt 12572
 
12573
  thrift_spec = (
12574
  )
12575
 
12576
  def read(self, iprot):
12577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12579
      return
12580
    iprot.readStructBegin()
12581
    while True:
12582
      (fname, ftype, fid) = iprot.readFieldBegin()
12583
      if ftype == TType.STOP:
12584
        break
12585
      else:
12586
        iprot.skip(ftype)
12587
      iprot.readFieldEnd()
12588
    iprot.readStructEnd()
12589
 
12590
  def write(self, oprot):
12591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12593
      return
2981 rajveer 12594
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12595
    oprot.writeFieldStop()
12596
    oprot.writeStructEnd()
12597
 
3431 rajveer 12598
  def validate(self):
12599
    return
12600
 
12601
 
2642 varun.gupt 12602
  def __repr__(self):
12603
    L = ['%s=%r' % (key, value)
12604
      for key, value in self.__dict__.iteritems()]
12605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12606
 
12607
  def __eq__(self, other):
12608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12609
 
12610
  def __ne__(self, other):
12611
    return not (self == other)
12612
 
3385 varun.gupt 12613
class getCartsWithCouponCount_args:
12614
  """
12615
  Attributes:
12616
   - couponCode
12617
  """
2642 varun.gupt 12618
 
3385 varun.gupt 12619
  thrift_spec = (
12620
    None, # 0
12621
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12622
  )
12623
 
12624
  def __init__(self, couponCode=None,):
12625
    self.couponCode = couponCode
12626
 
12627
  def read(self, iprot):
12628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12630
      return
12631
    iprot.readStructBegin()
12632
    while True:
12633
      (fname, ftype, fid) = iprot.readFieldBegin()
12634
      if ftype == TType.STOP:
12635
        break
12636
      if fid == 1:
12637
        if ftype == TType.STRING:
12638
          self.couponCode = iprot.readString();
12639
        else:
12640
          iprot.skip(ftype)
12641
      else:
12642
        iprot.skip(ftype)
12643
      iprot.readFieldEnd()
12644
    iprot.readStructEnd()
12645
 
12646
  def write(self, oprot):
12647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12649
      return
12650
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12651
    if self.couponCode is not None:
3385 varun.gupt 12652
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12653
      oprot.writeString(self.couponCode)
12654
      oprot.writeFieldEnd()
12655
    oprot.writeFieldStop()
12656
    oprot.writeStructEnd()
12657
 
3431 rajveer 12658
  def validate(self):
12659
    return
12660
 
12661
 
3385 varun.gupt 12662
  def __repr__(self):
12663
    L = ['%s=%r' % (key, value)
12664
      for key, value in self.__dict__.iteritems()]
12665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12666
 
12667
  def __eq__(self, other):
12668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12669
 
12670
  def __ne__(self, other):
12671
    return not (self == other)
12672
 
12673
class getCartsWithCouponCount_result:
12674
  """
12675
  Attributes:
12676
   - success
12677
  """
12678
 
12679
  thrift_spec = (
12680
    (0, TType.I64, 'success', None, None, ), # 0
12681
  )
12682
 
12683
  def __init__(self, success=None,):
12684
    self.success = success
12685
 
12686
  def read(self, iprot):
12687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12689
      return
12690
    iprot.readStructBegin()
12691
    while True:
12692
      (fname, ftype, fid) = iprot.readFieldBegin()
12693
      if ftype == TType.STOP:
12694
        break
12695
      if fid == 0:
12696
        if ftype == TType.I64:
12697
          self.success = iprot.readI64();
12698
        else:
12699
          iprot.skip(ftype)
12700
      else:
12701
        iprot.skip(ftype)
12702
      iprot.readFieldEnd()
12703
    iprot.readStructEnd()
12704
 
12705
  def write(self, oprot):
12706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12708
      return
12709
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12710
    if self.success is not None:
3385 varun.gupt 12711
      oprot.writeFieldBegin('success', TType.I64, 0)
12712
      oprot.writeI64(self.success)
12713
      oprot.writeFieldEnd()
12714
    oprot.writeFieldStop()
12715
    oprot.writeStructEnd()
12716
 
3431 rajveer 12717
  def validate(self):
12718
    return
12719
 
12720
 
3385 varun.gupt 12721
  def __repr__(self):
12722
    L = ['%s=%r' % (key, value)
12723
      for key, value in self.__dict__.iteritems()]
12724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12725
 
12726
  def __eq__(self, other):
12727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12728
 
12729
  def __ne__(self, other):
12730
    return not (self == other)
3499 mandeep.dh 12731
 
12732
class increaseTrustLevel_args:
12733
  """
12734
  Attributes:
12735
   - userId
12736
   - trustLevelDelta
12737
  """
12738
 
12739
  thrift_spec = (
12740
    None, # 0
12741
    (1, TType.I64, 'userId', None, None, ), # 1
12742
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
12743
  )
12744
 
12745
  def __init__(self, userId=None, trustLevelDelta=None,):
12746
    self.userId = userId
12747
    self.trustLevelDelta = trustLevelDelta
12748
 
12749
  def read(self, iprot):
12750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12752
      return
12753
    iprot.readStructBegin()
12754
    while True:
12755
      (fname, ftype, fid) = iprot.readFieldBegin()
12756
      if ftype == TType.STOP:
12757
        break
12758
      if fid == 1:
12759
        if ftype == TType.I64:
12760
          self.userId = iprot.readI64();
12761
        else:
12762
          iprot.skip(ftype)
12763
      elif fid == 2:
12764
        if ftype == TType.DOUBLE:
12765
          self.trustLevelDelta = iprot.readDouble();
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('increaseTrustLevel_args')
12778
    if self.userId is not None:
12779
      oprot.writeFieldBegin('userId', TType.I64, 1)
12780
      oprot.writeI64(self.userId)
12781
      oprot.writeFieldEnd()
12782
    if self.trustLevelDelta is not None:
12783
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
12784
      oprot.writeDouble(self.trustLevelDelta)
12785
      oprot.writeFieldEnd()
12786
    oprot.writeFieldStop()
12787
    oprot.writeStructEnd()
12788
 
12789
  def validate(self):
12790
    return
12791
 
12792
 
12793
  def __repr__(self):
12794
    L = ['%s=%r' % (key, value)
12795
      for key, value in self.__dict__.iteritems()]
12796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12797
 
12798
  def __eq__(self, other):
12799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12800
 
12801
  def __ne__(self, other):
12802
    return not (self == other)
4668 varun.gupt 12803
 
5407 amar.kumar 12804
class getTrustLevel_args:
12805
  """
12806
  Attributes:
12807
   - userId
12808
  """
12809
 
12810
  thrift_spec = (
12811
    None, # 0
12812
    (1, TType.I64, 'userId', None, None, ), # 1
12813
  )
12814
 
12815
  def __init__(self, userId=None,):
12816
    self.userId = userId
12817
 
12818
  def read(self, iprot):
12819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12821
      return
12822
    iprot.readStructBegin()
12823
    while True:
12824
      (fname, ftype, fid) = iprot.readFieldBegin()
12825
      if ftype == TType.STOP:
12826
        break
12827
      if fid == 1:
12828
        if ftype == TType.I64:
12829
          self.userId = iprot.readI64();
12830
        else:
12831
          iprot.skip(ftype)
12832
      else:
12833
        iprot.skip(ftype)
12834
      iprot.readFieldEnd()
12835
    iprot.readStructEnd()
12836
 
12837
  def write(self, oprot):
12838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12840
      return
12841
    oprot.writeStructBegin('getTrustLevel_args')
12842
    if self.userId is not None:
12843
      oprot.writeFieldBegin('userId', TType.I64, 1)
12844
      oprot.writeI64(self.userId)
12845
      oprot.writeFieldEnd()
12846
    oprot.writeFieldStop()
12847
    oprot.writeStructEnd()
12848
 
12849
  def validate(self):
12850
    return
12851
 
12852
 
12853
  def __repr__(self):
12854
    L = ['%s=%r' % (key, value)
12855
      for key, value in self.__dict__.iteritems()]
12856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12857
 
12858
  def __eq__(self, other):
12859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12860
 
12861
  def __ne__(self, other):
12862
    return not (self == other)
12863
 
12864
class getTrustLevel_result:
12865
  """
12866
  Attributes:
12867
   - success
12868
  """
12869
 
12870
  thrift_spec = (
12871
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12872
  )
12873
 
12874
  def __init__(self, success=None,):
12875
    self.success = success
12876
 
12877
  def read(self, iprot):
12878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12880
      return
12881
    iprot.readStructBegin()
12882
    while True:
12883
      (fname, ftype, fid) = iprot.readFieldBegin()
12884
      if ftype == TType.STOP:
12885
        break
12886
      if fid == 0:
12887
        if ftype == TType.DOUBLE:
12888
          self.success = iprot.readDouble();
12889
        else:
12890
          iprot.skip(ftype)
12891
      else:
12892
        iprot.skip(ftype)
12893
      iprot.readFieldEnd()
12894
    iprot.readStructEnd()
12895
 
12896
  def write(self, oprot):
12897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12899
      return
12900
    oprot.writeStructBegin('getTrustLevel_result')
12901
    if self.success is not None:
12902
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12903
      oprot.writeDouble(self.success)
12904
      oprot.writeFieldEnd()
12905
    oprot.writeFieldStop()
12906
    oprot.writeStructEnd()
12907
 
12908
  def validate(self):
12909
    return
12910
 
12911
 
12912
  def __repr__(self):
12913
    L = ['%s=%r' % (key, value)
12914
      for key, value in self.__dict__.iteritems()]
12915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12916
 
12917
  def __eq__(self, other):
12918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12919
 
12920
  def __ne__(self, other):
12921
    return not (self == other)
12922
 
4668 varun.gupt 12923
class showCODOption_args:
12924
  """
12925
  Attributes:
12926
   - cartId
12927
   - sourceId
12928
   - pincode
12929
  """
12930
 
12931
  thrift_spec = (
12932
    None, # 0
12933
    (1, TType.I64, 'cartId', None, None, ), # 1
12934
    (2, TType.I64, 'sourceId', None, None, ), # 2
12935
    (3, TType.STRING, 'pincode', None, None, ), # 3
12936
  )
12937
 
12938
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
12939
    self.cartId = cartId
12940
    self.sourceId = sourceId
12941
    self.pincode = pincode
12942
 
12943
  def read(self, iprot):
12944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12946
      return
12947
    iprot.readStructBegin()
12948
    while True:
12949
      (fname, ftype, fid) = iprot.readFieldBegin()
12950
      if ftype == TType.STOP:
12951
        break
12952
      if fid == 1:
12953
        if ftype == TType.I64:
12954
          self.cartId = iprot.readI64();
12955
        else:
12956
          iprot.skip(ftype)
12957
      elif fid == 2:
12958
        if ftype == TType.I64:
12959
          self.sourceId = iprot.readI64();
12960
        else:
12961
          iprot.skip(ftype)
12962
      elif fid == 3:
12963
        if ftype == TType.STRING:
12964
          self.pincode = iprot.readString();
12965
        else:
12966
          iprot.skip(ftype)
12967
      else:
12968
        iprot.skip(ftype)
12969
      iprot.readFieldEnd()
12970
    iprot.readStructEnd()
12971
 
12972
  def write(self, oprot):
12973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12975
      return
12976
    oprot.writeStructBegin('showCODOption_args')
12977
    if self.cartId is not None:
12978
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12979
      oprot.writeI64(self.cartId)
12980
      oprot.writeFieldEnd()
12981
    if self.sourceId is not None:
12982
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12983
      oprot.writeI64(self.sourceId)
12984
      oprot.writeFieldEnd()
12985
    if self.pincode is not None:
12986
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
12987
      oprot.writeString(self.pincode)
12988
      oprot.writeFieldEnd()
12989
    oprot.writeFieldStop()
12990
    oprot.writeStructEnd()
12991
 
12992
  def validate(self):
12993
    return
12994
 
12995
 
12996
  def __repr__(self):
12997
    L = ['%s=%r' % (key, value)
12998
      for key, value in self.__dict__.iteritems()]
12999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13000
 
13001
  def __eq__(self, other):
13002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13003
 
13004
  def __ne__(self, other):
13005
    return not (self == other)
13006
 
13007
class showCODOption_result:
13008
  """
13009
  Attributes:
13010
   - success
13011
  """
13012
 
13013
  thrift_spec = (
13014
    (0, TType.BOOL, 'success', None, None, ), # 0
13015
  )
13016
 
13017
  def __init__(self, success=None,):
13018
    self.success = success
13019
 
13020
  def read(self, iprot):
13021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13023
      return
13024
    iprot.readStructBegin()
13025
    while True:
13026
      (fname, ftype, fid) = iprot.readFieldBegin()
13027
      if ftype == TType.STOP:
13028
        break
13029
      if fid == 0:
13030
        if ftype == TType.BOOL:
13031
          self.success = iprot.readBool();
13032
        else:
13033
          iprot.skip(ftype)
13034
      else:
13035
        iprot.skip(ftype)
13036
      iprot.readFieldEnd()
13037
    iprot.readStructEnd()
13038
 
13039
  def write(self, oprot):
13040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13042
      return
13043
    oprot.writeStructBegin('showCODOption_result')
13044
    if self.success is not None:
13045
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13046
      oprot.writeBool(self.success)
13047
      oprot.writeFieldEnd()
13048
    oprot.writeFieldStop()
13049
    oprot.writeStructEnd()
13050
 
13051
  def validate(self):
13052
    return
13053
 
13054
 
13055
  def __repr__(self):
13056
    L = ['%s=%r' % (key, value)
13057
      for key, value in self.__dict__.iteritems()]
13058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13059
 
13060
  def __eq__(self, other):
13061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13062
 
13063
  def __ne__(self, other):
13064
    return not (self == other)
5623 anupam.sin 13065
 
13066
class getUserEmails_args:
13067
  """
13068
  Attributes:
13069
   - startDate
13070
   - endDate
13071
  """
13072
 
13073
  thrift_spec = (
13074
    None, # 0
13075
    (1, TType.I64, 'startDate', None, None, ), # 1
13076
    (2, TType.I64, 'endDate', None, None, ), # 2
13077
  )
13078
 
13079
  def __init__(self, startDate=None, endDate=None,):
13080
    self.startDate = startDate
13081
    self.endDate = endDate
13082
 
13083
  def read(self, iprot):
13084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13086
      return
13087
    iprot.readStructBegin()
13088
    while True:
13089
      (fname, ftype, fid) = iprot.readFieldBegin()
13090
      if ftype == TType.STOP:
13091
        break
13092
      if fid == 1:
13093
        if ftype == TType.I64:
13094
          self.startDate = iprot.readI64();
13095
        else:
13096
          iprot.skip(ftype)
13097
      elif fid == 2:
13098
        if ftype == TType.I64:
13099
          self.endDate = iprot.readI64();
13100
        else:
13101
          iprot.skip(ftype)
13102
      else:
13103
        iprot.skip(ftype)
13104
      iprot.readFieldEnd()
13105
    iprot.readStructEnd()
13106
 
13107
  def write(self, oprot):
13108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13110
      return
13111
    oprot.writeStructBegin('getUserEmails_args')
13112
    if self.startDate is not None:
13113
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13114
      oprot.writeI64(self.startDate)
13115
      oprot.writeFieldEnd()
13116
    if self.endDate is not None:
13117
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13118
      oprot.writeI64(self.endDate)
13119
      oprot.writeFieldEnd()
13120
    oprot.writeFieldStop()
13121
    oprot.writeStructEnd()
13122
 
13123
  def validate(self):
13124
    return
13125
 
13126
 
13127
  def __repr__(self):
13128
    L = ['%s=%r' % (key, value)
13129
      for key, value in self.__dict__.iteritems()]
13130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13131
 
13132
  def __eq__(self, other):
13133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13134
 
13135
  def __ne__(self, other):
13136
    return not (self == other)
13137
 
13138
class getUserEmails_result:
13139
  """
13140
  Attributes:
13141
   - success
13142
  """
13143
 
13144
  thrift_spec = (
13145
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13146
  )
13147
 
13148
  def __init__(self, success=None,):
13149
    self.success = success
13150
 
13151
  def read(self, iprot):
13152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13154
      return
13155
    iprot.readStructBegin()
13156
    while True:
13157
      (fname, ftype, fid) = iprot.readFieldBegin()
13158
      if ftype == TType.STOP:
13159
        break
13160
      if fid == 0:
13161
        if ftype == TType.LIST:
13162
          self.success = []
6433 anupam.sin 13163
          (_etype170, _size167) = iprot.readListBegin()
13164
          for _i171 in xrange(_size167):
13165
            _elem172 = iprot.readString();
13166
            self.success.append(_elem172)
5623 anupam.sin 13167
          iprot.readListEnd()
13168
        else:
13169
          iprot.skip(ftype)
13170
      else:
13171
        iprot.skip(ftype)
13172
      iprot.readFieldEnd()
13173
    iprot.readStructEnd()
13174
 
13175
  def write(self, oprot):
13176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13178
      return
13179
    oprot.writeStructBegin('getUserEmails_result')
13180
    if self.success is not None:
13181
      oprot.writeFieldBegin('success', TType.LIST, 0)
13182
      oprot.writeListBegin(TType.STRING, len(self.success))
6433 anupam.sin 13183
      for iter173 in self.success:
13184
        oprot.writeString(iter173)
5623 anupam.sin 13185
      oprot.writeListEnd()
13186
      oprot.writeFieldEnd()
13187
    oprot.writeFieldStop()
13188
    oprot.writeStructEnd()
13189
 
13190
  def validate(self):
13191
    return
13192
 
13193
 
13194
  def __repr__(self):
13195
    L = ['%s=%r' % (key, value)
13196
      for key, value in self.__dict__.iteritems()]
13197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13198
 
13199
  def __eq__(self, other):
13200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13201
 
13202
  def __ne__(self, other):
13203
    return not (self == other)