Subversion Repositories SmartDukaan

Rev

Rev 6736 | Rev 6903 | 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
 
6821 amar.kumar 592
  def isProductAddedToCart(self, itemId, startDate, endDate):
593
    """
594
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 595
 
6821 amar.kumar 596
    Parameters:
597
     - itemId
598
     - startDate
599
     - endDate
600
    """
601
    pass
602
 
603
 
3376 rajveer 604
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 605
  """
606
  service
607
  """
608
  def __init__(self, iprot, oprot=None):
3376 rajveer 609
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 610
 
559 chandransh 611
  def createAnonymousUser(self, jsessionId):
94 ashish 612
    """
613
    Parameters:
559 chandransh 614
     - jsessionId
94 ashish 615
    """
559 chandransh 616
    self.send_createAnonymousUser(jsessionId)
617
    return self.recv_createAnonymousUser()
94 ashish 618
 
559 chandransh 619
  def send_createAnonymousUser(self, jsessionId):
620
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
621
    args = createAnonymousUser_args()
622
    args.jsessionId = jsessionId
94 ashish 623
    args.write(self._oprot)
624
    self._oprot.writeMessageEnd()
625
    self._oprot.trans.flush()
626
 
559 chandransh 627
  def recv_createAnonymousUser(self, ):
94 ashish 628
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
629
    if mtype == TMessageType.EXCEPTION:
630
      x = TApplicationException()
631
      x.read(self._iprot)
632
      self._iprot.readMessageEnd()
633
      raise x
559 chandransh 634
    result = createAnonymousUser_result()
94 ashish 635
    result.read(self._iprot)
636
    self._iprot.readMessageEnd()
3431 rajveer 637
    if result.success is not None:
94 ashish 638
      return result.success
3431 rajveer 639
    if result.ucex is not None:
559 chandransh 640
      raise result.ucex
641
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 642
 
559 chandransh 643
  def getUserById(self, userId):
94 ashish 644
    """
645
    Parameters:
646
     - userId
647
    """
559 chandransh 648
    self.send_getUserById(userId)
649
    return self.recv_getUserById()
94 ashish 650
 
559 chandransh 651
  def send_getUserById(self, userId):
652
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
653
    args = getUserById_args()
94 ashish 654
    args.userId = userId
655
    args.write(self._oprot)
656
    self._oprot.writeMessageEnd()
657
    self._oprot.trans.flush()
658
 
559 chandransh 659
  def recv_getUserById(self, ):
94 ashish 660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
661
    if mtype == TMessageType.EXCEPTION:
662
      x = TApplicationException()
663
      x.read(self._iprot)
664
      self._iprot.readMessageEnd()
665
      raise x
559 chandransh 666
    result = getUserById_result()
94 ashish 667
    result.read(self._iprot)
668
    self._iprot.readMessageEnd()
3431 rajveer 669
    if result.success is not None:
94 ashish 670
      return result.success
3431 rajveer 671
    if result.ucex is not None:
559 chandransh 672
      raise result.ucex
673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 674
 
5326 rajveer 675
  def getUserByCartId(self, cartId):
676
    """
677
    Parameters:
678
     - cartId
679
    """
680
    self.send_getUserByCartId(cartId)
681
    return self.recv_getUserByCartId()
682
 
683
  def send_getUserByCartId(self, cartId):
684
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
685
    args = getUserByCartId_args()
686
    args.cartId = cartId
687
    args.write(self._oprot)
688
    self._oprot.writeMessageEnd()
689
    self._oprot.trans.flush()
690
 
691
  def recv_getUserByCartId(self, ):
692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
693
    if mtype == TMessageType.EXCEPTION:
694
      x = TApplicationException()
695
      x.read(self._iprot)
696
      self._iprot.readMessageEnd()
697
      raise x
698
    result = getUserByCartId_result()
699
    result.read(self._iprot)
700
    self._iprot.readMessageEnd()
701
    if result.success is not None:
702
      return result.success
703
    if result.ucex is not None:
704
      raise result.ucex
705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
706
 
1491 vikas 707
  def getUserByEmail(self, email):
708
    """
709
    Parameters:
710
     - email
711
    """
712
    self.send_getUserByEmail(email)
713
    return self.recv_getUserByEmail()
714
 
715
  def send_getUserByEmail(self, email):
716
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
717
    args = getUserByEmail_args()
718
    args.email = email
719
    args.write(self._oprot)
720
    self._oprot.writeMessageEnd()
721
    self._oprot.trans.flush()
722
 
723
  def recv_getUserByEmail(self, ):
724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
725
    if mtype == TMessageType.EXCEPTION:
726
      x = TApplicationException()
727
      x.read(self._iprot)
728
      self._iprot.readMessageEnd()
729
      raise x
730
    result = getUserByEmail_result()
731
    result.read(self._iprot)
732
    self._iprot.readMessageEnd()
3431 rajveer 733
    if result.success is not None:
1491 vikas 734
      return result.success
3431 rajveer 735
    if result.ucex is not None:
1491 vikas 736
      raise result.ucex
737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
738
 
3032 mandeep.dh 739
  def getUserByMobileNumber(self, mobileNumber):
740
    """
741
    Parameters:
742
     - mobileNumber
743
    """
744
    self.send_getUserByMobileNumber(mobileNumber)
745
    return self.recv_getUserByMobileNumber()
746
 
747
  def send_getUserByMobileNumber(self, mobileNumber):
748
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
749
    args = getUserByMobileNumber_args()
750
    args.mobileNumber = mobileNumber
751
    args.write(self._oprot)
752
    self._oprot.writeMessageEnd()
753
    self._oprot.trans.flush()
754
 
755
  def recv_getUserByMobileNumber(self, ):
756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
757
    if mtype == TMessageType.EXCEPTION:
758
      x = TApplicationException()
759
      x.read(self._iprot)
760
      self._iprot.readMessageEnd()
761
      raise x
762
    result = getUserByMobileNumber_result()
763
    result.read(self._iprot)
764
    self._iprot.readMessageEnd()
3431 rajveer 765
    if result.success is not None:
3032 mandeep.dh 766
      return result.success
3431 rajveer 767
    if result.ucex is not None:
3032 mandeep.dh 768
      raise result.ucex
769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
770
 
559 chandransh 771
  def createUser(self, user):
94 ashish 772
    """
773
    Parameters:
559 chandransh 774
     - user
94 ashish 775
    """
559 chandransh 776
    self.send_createUser(user)
777
    return self.recv_createUser()
94 ashish 778
 
559 chandransh 779
  def send_createUser(self, user):
780
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
781
    args = createUser_args()
782
    args.user = user
94 ashish 783
    args.write(self._oprot)
784
    self._oprot.writeMessageEnd()
785
    self._oprot.trans.flush()
786
 
559 chandransh 787
  def recv_createUser(self, ):
94 ashish 788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
789
    if mtype == TMessageType.EXCEPTION:
790
      x = TApplicationException()
791
      x.read(self._iprot)
792
      self._iprot.readMessageEnd()
793
      raise x
559 chandransh 794
    result = createUser_result()
94 ashish 795
    result.read(self._iprot)
796
    self._iprot.readMessageEnd()
3431 rajveer 797
    if result.success is not None:
94 ashish 798
      return result.success
3431 rajveer 799
    if result.ucex is not None:
559 chandransh 800
      raise result.ucex
801
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 802
 
559 chandransh 803
  def updateUser(self, user):
94 ashish 804
    """
805
    Parameters:
559 chandransh 806
     - user
94 ashish 807
    """
559 chandransh 808
    self.send_updateUser(user)
809
    return self.recv_updateUser()
94 ashish 810
 
559 chandransh 811
  def send_updateUser(self, user):
812
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
813
    args = updateUser_args()
814
    args.user = user
94 ashish 815
    args.write(self._oprot)
816
    self._oprot.writeMessageEnd()
817
    self._oprot.trans.flush()
818
 
559 chandransh 819
  def recv_updateUser(self, ):
94 ashish 820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
821
    if mtype == TMessageType.EXCEPTION:
822
      x = TApplicationException()
823
      x.read(self._iprot)
824
      self._iprot.readMessageEnd()
825
      raise x
559 chandransh 826
    result = updateUser_result()
94 ashish 827
    result.read(self._iprot)
828
    self._iprot.readMessageEnd()
3431 rajveer 829
    if result.success is not None:
94 ashish 830
      return result.success
3431 rajveer 831
    if result.ucex is not None:
559 chandransh 832
      raise result.ucex
833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 834
 
559 chandransh 835
  def authenticateUser(self, email, password):
94 ashish 836
    """
837
    Parameters:
838
     - email
839
     - password
840
    """
559 chandransh 841
    self.send_authenticateUser(email, password)
122 ashish 842
    return self.recv_authenticateUser()
843
 
559 chandransh 844
  def send_authenticateUser(self, email, password):
122 ashish 845
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
846
    args = authenticateUser_args()
559 chandransh 847
    args.email = email
122 ashish 848
    args.password = password
849
    args.write(self._oprot)
850
    self._oprot.writeMessageEnd()
851
    self._oprot.trans.flush()
852
 
853
  def recv_authenticateUser(self, ):
854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
855
    if mtype == TMessageType.EXCEPTION:
856
      x = TApplicationException()
857
      x.read(self._iprot)
858
      self._iprot.readMessageEnd()
859
      raise x
860
    result = authenticateUser_result()
861
    result.read(self._iprot)
862
    self._iprot.readMessageEnd()
3431 rajveer 863
    if result.success is not None:
122 ashish 864
      return result.success
3431 rajveer 865
    if result.auex is not None:
559 chandransh 866
      raise result.auex
122 ashish 867
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
868
 
94 ashish 869
  def userExists(self, email):
870
    """
871
    Parameters:
872
     - email
873
    """
874
    self.send_userExists(email)
875
    return self.recv_userExists()
876
 
877
  def send_userExists(self, email):
878
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
879
    args = userExists_args()
880
    args.email = email
881
    args.write(self._oprot)
882
    self._oprot.writeMessageEnd()
883
    self._oprot.trans.flush()
884
 
885
  def recv_userExists(self, ):
886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
887
    if mtype == TMessageType.EXCEPTION:
888
      x = TApplicationException()
889
      x.read(self._iprot)
890
      self._iprot.readMessageEnd()
891
      raise x
892
    result = userExists_result()
893
    result.read(self._iprot)
894
    self._iprot.readMessageEnd()
3431 rajveer 895
    if result.success is not None:
94 ashish 896
      return result.success
3431 rajveer 897
    if result.ucx is not None:
94 ashish 898
      raise result.ucx
899
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
900
 
567 rajveer 901
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 902
    """
903
    Parameters:
904
     - userId
905
     - address
513 rajveer 906
     - setDefault
94 ashish 907
    """
567 rajveer 908
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 909
    return self.recv_addAddressForUser()
910
 
567 rajveer 911
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 912
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
913
    args = addAddressForUser_args()
559 chandransh 914
    args.userId = userId
94 ashish 915
    args.address = address
513 rajveer 916
    args.setDefault = setDefault
94 ashish 917
    args.write(self._oprot)
918
    self._oprot.writeMessageEnd()
919
    self._oprot.trans.flush()
920
 
921
  def recv_addAddressForUser(self, ):
922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
923
    if mtype == TMessageType.EXCEPTION:
924
      x = TApplicationException()
925
      x.read(self._iprot)
926
      self._iprot.readMessageEnd()
927
      raise x
928
    result = addAddressForUser_result()
929
    result.read(self._iprot)
930
    self._iprot.readMessageEnd()
3431 rajveer 931
    if result.success is not None:
94 ashish 932
      return result.success
3431 rajveer 933
    if result.ucx is not None:
94 ashish 934
      raise result.ucx
935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
936
 
937
  def removeAddressForUser(self, userid, addressId):
938
    """
939
    Parameters:
940
     - userid
941
     - addressId
942
    """
943
    self.send_removeAddressForUser(userid, addressId)
944
    return self.recv_removeAddressForUser()
945
 
946
  def send_removeAddressForUser(self, userid, addressId):
947
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
948
    args = removeAddressForUser_args()
949
    args.userid = userid
950
    args.addressId = addressId
951
    args.write(self._oprot)
952
    self._oprot.writeMessageEnd()
953
    self._oprot.trans.flush()
954
 
955
  def recv_removeAddressForUser(self, ):
956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
957
    if mtype == TMessageType.EXCEPTION:
958
      x = TApplicationException()
959
      x.read(self._iprot)
960
      self._iprot.readMessageEnd()
961
      raise x
962
    result = removeAddressForUser_result()
963
    result.read(self._iprot)
964
    self._iprot.readMessageEnd()
3431 rajveer 965
    if result.success is not None:
94 ashish 966
      return result.success
3431 rajveer 967
    if result.ucx is not None:
94 ashish 968
      raise result.ucx
969
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
970
 
971
  def setUserAsLoggedIn(self, userId, timestamp):
972
    """
973
    Parameters:
974
     - userId
975
     - timestamp
976
    """
977
    self.send_setUserAsLoggedIn(userId, timestamp)
978
    return self.recv_setUserAsLoggedIn()
979
 
980
  def send_setUserAsLoggedIn(self, userId, timestamp):
981
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
982
    args = setUserAsLoggedIn_args()
983
    args.userId = userId
984
    args.timestamp = timestamp
985
    args.write(self._oprot)
986
    self._oprot.writeMessageEnd()
987
    self._oprot.trans.flush()
988
 
989
  def recv_setUserAsLoggedIn(self, ):
990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
991
    if mtype == TMessageType.EXCEPTION:
992
      x = TApplicationException()
993
      x.read(self._iprot)
994
      self._iprot.readMessageEnd()
995
      raise x
996
    result = setUserAsLoggedIn_result()
997
    result.read(self._iprot)
998
    self._iprot.readMessageEnd()
3431 rajveer 999
    if result.success is not None:
94 ashish 1000
      return result.success
3431 rajveer 1001
    if result.ucx is not None:
94 ashish 1002
      raise result.ucx
1003
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1004
 
1005
  def setUserAsLoggedOut(self, userid, timestamp):
1006
    """
1007
    Parameters:
1008
     - userid
1009
     - timestamp
1010
    """
1011
    self.send_setUserAsLoggedOut(userid, timestamp)
1012
    return self.recv_setUserAsLoggedOut()
1013
 
1014
  def send_setUserAsLoggedOut(self, userid, timestamp):
1015
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1016
    args = setUserAsLoggedOut_args()
1017
    args.userid = userid
1018
    args.timestamp = timestamp
1019
    args.write(self._oprot)
1020
    self._oprot.writeMessageEnd()
1021
    self._oprot.trans.flush()
1022
 
1023
  def recv_setUserAsLoggedOut(self, ):
1024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1025
    if mtype == TMessageType.EXCEPTION:
1026
      x = TApplicationException()
1027
      x.read(self._iprot)
1028
      self._iprot.readMessageEnd()
1029
      raise x
1030
    result = setUserAsLoggedOut_result()
1031
    result.read(self._iprot)
1032
    self._iprot.readMessageEnd()
3431 rajveer 1033
    if result.success is not None:
94 ashish 1034
      return result.success
3431 rajveer 1035
    if result.ucx is not None:
94 ashish 1036
      raise result.ucx
1037
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1038
 
504 rajveer 1039
  def setDefaultAddress(self, userid, addressId):
1040
    """
1041
    Parameters:
1042
     - userid
1043
     - addressId
1044
    """
1045
    self.send_setDefaultAddress(userid, addressId)
1046
    return self.recv_setDefaultAddress()
1047
 
1048
  def send_setDefaultAddress(self, userid, addressId):
1049
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1050
    args = setDefaultAddress_args()
1051
    args.userid = userid
1052
    args.addressId = addressId
1053
    args.write(self._oprot)
1054
    self._oprot.writeMessageEnd()
1055
    self._oprot.trans.flush()
1056
 
1057
  def recv_setDefaultAddress(self, ):
1058
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1059
    if mtype == TMessageType.EXCEPTION:
1060
      x = TApplicationException()
1061
      x.read(self._iprot)
1062
      self._iprot.readMessageEnd()
1063
      raise x
1064
    result = setDefaultAddress_result()
1065
    result.read(self._iprot)
1066
    self._iprot.readMessageEnd()
3431 rajveer 1067
    if result.success is not None:
504 rajveer 1068
      return result.success
3431 rajveer 1069
    if result.ucx is not None:
504 rajveer 1070
      raise result.ucx
1071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1072
 
594 rajveer 1073
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1074
    """
1075
    Parameters:
1076
     - userid
594 rajveer 1077
     - oldPassword
1078
     - newPassword
94 ashish 1079
    """
594 rajveer 1080
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1081
    return self.recv_updatePassword()
1082
 
594 rajveer 1083
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1084
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1085
    args = updatePassword_args()
1086
    args.userid = userid
594 rajveer 1087
    args.oldPassword = oldPassword
1088
    args.newPassword = newPassword
94 ashish 1089
    args.write(self._oprot)
1090
    self._oprot.writeMessageEnd()
1091
    self._oprot.trans.flush()
1092
 
1093
  def recv_updatePassword(self, ):
1094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1095
    if mtype == TMessageType.EXCEPTION:
1096
      x = TApplicationException()
1097
      x.read(self._iprot)
1098
      self._iprot.readMessageEnd()
1099
      raise x
1100
    result = updatePassword_result()
1101
    result.read(self._iprot)
1102
    self._iprot.readMessageEnd()
3431 rajveer 1103
    if result.success is not None:
94 ashish 1104
      return result.success
3431 rajveer 1105
    if result.ucx is not None:
94 ashish 1106
      raise result.ucx
1107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1108
 
884 rajveer 1109
  def forgotPassword(self, email, newPassword):
581 rajveer 1110
    """
1111
    Parameters:
1112
     - email
884 rajveer 1113
     - newPassword
581 rajveer 1114
    """
884 rajveer 1115
    self.send_forgotPassword(email, newPassword)
581 rajveer 1116
    return self.recv_forgotPassword()
1117
 
884 rajveer 1118
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1119
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1120
    args = forgotPassword_args()
1121
    args.email = email
884 rajveer 1122
    args.newPassword = newPassword
581 rajveer 1123
    args.write(self._oprot)
1124
    self._oprot.writeMessageEnd()
1125
    self._oprot.trans.flush()
1126
 
1127
  def recv_forgotPassword(self, ):
1128
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1129
    if mtype == TMessageType.EXCEPTION:
1130
      x = TApplicationException()
1131
      x.read(self._iprot)
1132
      self._iprot.readMessageEnd()
1133
      raise x
1134
    result = forgotPassword_result()
1135
    result.read(self._iprot)
1136
    self._iprot.readMessageEnd()
3431 rajveer 1137
    if result.success is not None:
581 rajveer 1138
      return result.success
3431 rajveer 1139
    if result.ucx is not None:
581 rajveer 1140
      raise result.ucx
1141
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1142
 
594 rajveer 1143
  def getAllAddressesForUser(self, userId):
1144
    """
1145
    Parameters:
1146
     - userId
1147
    """
1148
    self.send_getAllAddressesForUser(userId)
1149
    return self.recv_getAllAddressesForUser()
1150
 
1151
  def send_getAllAddressesForUser(self, userId):
1152
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1153
    args = getAllAddressesForUser_args()
1154
    args.userId = userId
1155
    args.write(self._oprot)
1156
    self._oprot.writeMessageEnd()
1157
    self._oprot.trans.flush()
1158
 
1159
  def recv_getAllAddressesForUser(self, ):
1160
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1161
    if mtype == TMessageType.EXCEPTION:
1162
      x = TApplicationException()
1163
      x.read(self._iprot)
1164
      self._iprot.readMessageEnd()
1165
      raise x
1166
    result = getAllAddressesForUser_result()
1167
    result.read(self._iprot)
1168
    self._iprot.readMessageEnd()
3431 rajveer 1169
    if result.success is not None:
594 rajveer 1170
      return result.success
3431 rajveer 1171
    if result.ucx is not None:
594 rajveer 1172
      raise result.ucx
1173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1174
 
1894 vikas 1175
  def getAddressById(self, addressId):
1176
    """
1177
    Parameters:
1178
     - addressId
1179
    """
1180
    self.send_getAddressById(addressId)
1181
    return self.recv_getAddressById()
1182
 
1183
  def send_getAddressById(self, addressId):
1184
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1185
    args = getAddressById_args()
1186
    args.addressId = addressId
1187
    args.write(self._oprot)
1188
    self._oprot.writeMessageEnd()
1189
    self._oprot.trans.flush()
1190
 
1191
  def recv_getAddressById(self, ):
1192
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1193
    if mtype == TMessageType.EXCEPTION:
1194
      x = TApplicationException()
1195
      x.read(self._iprot)
1196
      self._iprot.readMessageEnd()
1197
      raise x
1198
    result = getAddressById_result()
1199
    result.read(self._iprot)
1200
    self._iprot.readMessageEnd()
3431 rajveer 1201
    if result.success is not None:
1894 vikas 1202
      return result.success
3431 rajveer 1203
    if result.ucx is not None:
1894 vikas 1204
      raise result.ucx
1205
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1206
 
594 rajveer 1207
  def getDefaultAddressId(self, userId):
1208
    """
1209
    Parameters:
1210
     - userId
1211
    """
1212
    self.send_getDefaultAddressId(userId)
1213
    return self.recv_getDefaultAddressId()
1214
 
1215
  def send_getDefaultAddressId(self, userId):
1216
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1217
    args = getDefaultAddressId_args()
1218
    args.userId = userId
1219
    args.write(self._oprot)
1220
    self._oprot.writeMessageEnd()
1221
    self._oprot.trans.flush()
1222
 
1223
  def recv_getDefaultAddressId(self, ):
1224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1225
    if mtype == TMessageType.EXCEPTION:
1226
      x = TApplicationException()
1227
      x.read(self._iprot)
1228
      self._iprot.readMessageEnd()
1229
      raise x
1230
    result = getDefaultAddressId_result()
1231
    result.read(self._iprot)
1232
    self._iprot.readMessageEnd()
3431 rajveer 1233
    if result.success is not None:
594 rajveer 1234
      return result.success
3431 rajveer 1235
    if result.ucx is not None:
594 rajveer 1236
      raise result.ucx
1237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1238
 
785 rajveer 1239
  def getDefaultPincode(self, userId):
1240
    """
1241
    Parameters:
1242
     - userId
1243
    """
1244
    self.send_getDefaultPincode(userId)
1245
    return self.recv_getDefaultPincode()
1246
 
1247
  def send_getDefaultPincode(self, userId):
1248
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1249
    args = getDefaultPincode_args()
1250
    args.userId = userId
1251
    args.write(self._oprot)
1252
    self._oprot.writeMessageEnd()
1253
    self._oprot.trans.flush()
1254
 
1255
  def recv_getDefaultPincode(self, ):
1256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1257
    if mtype == TMessageType.EXCEPTION:
1258
      x = TApplicationException()
1259
      x.read(self._iprot)
1260
      self._iprot.readMessageEnd()
1261
      raise x
1262
    result = getDefaultPincode_result()
1263
    result.read(self._iprot)
1264
    self._iprot.readMessageEnd()
3431 rajveer 1265
    if result.success is not None:
785 rajveer 1266
      return result.success
3431 rajveer 1267
    if result.ucx is not None:
785 rajveer 1268
      raise result.ucx
1269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1270
 
1274 varun.gupt 1271
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1272
    """
1273
    Parameters:
1274
     - userId
1275
     - replyTo
1276
     - communicationType
1277
     - orderId
1278
     - airwaybillNo
1279
     - productName
1280
     - subject
1281
     - message
1282
    """
1283
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1284
    return self.recv_saveUserCommunication()
1285
 
1286
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1287
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1288
    args = saveUserCommunication_args()
1289
    args.userId = userId
1290
    args.replyTo = replyTo
1291
    args.communicationType = communicationType
1292
    args.orderId = orderId
1293
    args.airwaybillNo = airwaybillNo
1294
    args.productName = productName
1295
    args.subject = subject
1296
    args.message = message
1297
    args.write(self._oprot)
1298
    self._oprot.writeMessageEnd()
1299
    self._oprot.trans.flush()
1300
 
1301
  def recv_saveUserCommunication(self, ):
1302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1303
    if mtype == TMessageType.EXCEPTION:
1304
      x = TApplicationException()
1305
      x.read(self._iprot)
1306
      self._iprot.readMessageEnd()
1307
      raise x
1308
    result = saveUserCommunication_result()
1309
    result.read(self._iprot)
1310
    self._iprot.readMessageEnd()
3431 rajveer 1311
    if result.success is not None:
1274 varun.gupt 1312
      return result.success
3431 rajveer 1313
    if result.ucx is not None:
1274 varun.gupt 1314
      raise result.ucx
1315
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1316
 
1590 varun.gupt 1317
  def getUserCommunicationById(self, id):
1318
    """
1319
    Parameters:
1320
     - id
1321
    """
1322
    self.send_getUserCommunicationById(id)
1323
    return self.recv_getUserCommunicationById()
1324
 
1325
  def send_getUserCommunicationById(self, id):
1326
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1327
    args = getUserCommunicationById_args()
1328
    args.id = id
1329
    args.write(self._oprot)
1330
    self._oprot.writeMessageEnd()
1331
    self._oprot.trans.flush()
1332
 
1333
  def recv_getUserCommunicationById(self, ):
1334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1335
    if mtype == TMessageType.EXCEPTION:
1336
      x = TApplicationException()
1337
      x.read(self._iprot)
1338
      self._iprot.readMessageEnd()
1339
      raise x
1340
    result = getUserCommunicationById_result()
1341
    result.read(self._iprot)
1342
    self._iprot.readMessageEnd()
3431 rajveer 1343
    if result.success is not None:
1590 varun.gupt 1344
      return result.success
3431 rajveer 1345
    if result.ucx is not None:
1590 varun.gupt 1346
      raise result.ucx
1347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1348
 
1349
  def getUserCommunicationByUser(self, userId):
1350
    """
1351
    Parameters:
1352
     - userId
1353
    """
1354
    self.send_getUserCommunicationByUser(userId)
1355
    return self.recv_getUserCommunicationByUser()
1356
 
1357
  def send_getUserCommunicationByUser(self, userId):
1358
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1359
    args = getUserCommunicationByUser_args()
1360
    args.userId = userId
1361
    args.write(self._oprot)
1362
    self._oprot.writeMessageEnd()
1363
    self._oprot.trans.flush()
1364
 
1365
  def recv_getUserCommunicationByUser(self, ):
1366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1367
    if mtype == TMessageType.EXCEPTION:
1368
      x = TApplicationException()
1369
      x.read(self._iprot)
1370
      self._iprot.readMessageEnd()
1371
      raise x
1372
    result = getUserCommunicationByUser_result()
1373
    result.read(self._iprot)
1374
    self._iprot.readMessageEnd()
3431 rajveer 1375
    if result.success is not None:
1590 varun.gupt 1376
      return result.success
3431 rajveer 1377
    if result.ucx is not None:
1590 varun.gupt 1378
      raise result.ucx
1379
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1380
 
1381
  def getAllUserCommunications(self, ):
1382
    self.send_getAllUserCommunications()
1383
    return self.recv_getAllUserCommunications()
1384
 
1385
  def send_getAllUserCommunications(self, ):
1386
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1387
    args = getAllUserCommunications_args()
1388
    args.write(self._oprot)
1389
    self._oprot.writeMessageEnd()
1390
    self._oprot.trans.flush()
1391
 
1392
  def recv_getAllUserCommunications(self, ):
1393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1394
    if mtype == TMessageType.EXCEPTION:
1395
      x = TApplicationException()
1396
      x.read(self._iprot)
1397
      self._iprot.readMessageEnd()
1398
      raise x
1399
    result = getAllUserCommunications_result()
1400
    result.read(self._iprot)
1401
    self._iprot.readMessageEnd()
3431 rajveer 1402
    if result.success is not None:
1590 varun.gupt 1403
      return result.success
3431 rajveer 1404
    if result.ucx is not None:
1590 varun.gupt 1405
      raise result.ucx
1406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1407
 
5407 amar.kumar 1408
  def removeUserCommunication(self, id):
1409
    """
1410
    Parameters:
1411
     - id
1412
    """
1413
    self.send_removeUserCommunication(id)
1414
    self.recv_removeUserCommunication()
1415
 
1416
  def send_removeUserCommunication(self, id):
1417
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1418
    args = removeUserCommunication_args()
1419
    args.id = id
1420
    args.write(self._oprot)
1421
    self._oprot.writeMessageEnd()
1422
    self._oprot.trans.flush()
1423
 
1424
  def recv_removeUserCommunication(self, ):
1425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1426
    if mtype == TMessageType.EXCEPTION:
1427
      x = TApplicationException()
1428
      x.read(self._iprot)
1429
      self._iprot.readMessageEnd()
1430
      raise x
1431
    result = removeUserCommunication_result()
1432
    result.read(self._iprot)
1433
    self._iprot.readMessageEnd()
1434
    if result.ucx is not None:
1435
      raise result.ucx
1436
    return
1437
 
1859 vikas 1438
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1439
    """
1440
    Parameters:
1441
     - name
1859 vikas 1442
     - addedOn
1845 vikas 1443
    """
1859 vikas 1444
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1445
    return self.recv_createMasterAffiliate()
1446
 
1859 vikas 1447
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1448
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1449
    args = createMasterAffiliate_args()
1450
    args.name = name
1859 vikas 1451
    args.addedOn = addedOn
1845 vikas 1452
    args.write(self._oprot)
1453
    self._oprot.writeMessageEnd()
1454
    self._oprot.trans.flush()
1455
 
1456
  def recv_createMasterAffiliate(self, ):
1457
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1458
    if mtype == TMessageType.EXCEPTION:
1459
      x = TApplicationException()
1460
      x.read(self._iprot)
1461
      self._iprot.readMessageEnd()
1462
      raise x
1463
    result = createMasterAffiliate_result()
1464
    result.read(self._iprot)
1465
    self._iprot.readMessageEnd()
3431 rajveer 1466
    if result.success is not None:
1845 vikas 1467
      return result.success
3431 rajveer 1468
    if result.utx is not None:
1845 vikas 1469
      raise result.utx
1470
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1471
 
1899 vikas 1472
  def getAllMasterAffiliates(self, ):
1473
    self.send_getAllMasterAffiliates()
1474
    return self.recv_getAllMasterAffiliates()
1475
 
1476
  def send_getAllMasterAffiliates(self, ):
1477
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1478
    args = getAllMasterAffiliates_args()
1479
    args.write(self._oprot)
1480
    self._oprot.writeMessageEnd()
1481
    self._oprot.trans.flush()
1482
 
1483
  def recv_getAllMasterAffiliates(self, ):
1484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1485
    if mtype == TMessageType.EXCEPTION:
1486
      x = TApplicationException()
1487
      x.read(self._iprot)
1488
      self._iprot.readMessageEnd()
1489
      raise x
1490
    result = getAllMasterAffiliates_result()
1491
    result.read(self._iprot)
1492
    self._iprot.readMessageEnd()
3431 rajveer 1493
    if result.success is not None:
1899 vikas 1494
      return result.success
3431 rajveer 1495
    if result.utx is not None:
1899 vikas 1496
      raise result.utx
1497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1498
 
1845 vikas 1499
  def getMasterAffiliateById(self, id):
1500
    """
1501
    Parameters:
1502
     - id
1503
    """
1504
    self.send_getMasterAffiliateById(id)
1505
    return self.recv_getMasterAffiliateById()
1506
 
1507
  def send_getMasterAffiliateById(self, id):
1508
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1509
    args = getMasterAffiliateById_args()
1510
    args.id = id
1511
    args.write(self._oprot)
1512
    self._oprot.writeMessageEnd()
1513
    self._oprot.trans.flush()
1514
 
1515
  def recv_getMasterAffiliateById(self, ):
1516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1517
    if mtype == TMessageType.EXCEPTION:
1518
      x = TApplicationException()
1519
      x.read(self._iprot)
1520
      self._iprot.readMessageEnd()
1521
      raise x
1522
    result = getMasterAffiliateById_result()
1523
    result.read(self._iprot)
1524
    self._iprot.readMessageEnd()
3431 rajveer 1525
    if result.success is not None:
1845 vikas 1526
      return result.success
3431 rajveer 1527
    if result.utx is not None:
1845 vikas 1528
      raise result.utx
1529
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1530
 
1531
  def getMasterAffiliateByName(self, name):
1532
    """
1533
    Parameters:
1534
     - name
1535
    """
1536
    self.send_getMasterAffiliateByName(name)
1537
    return self.recv_getMasterAffiliateByName()
1538
 
1539
  def send_getMasterAffiliateByName(self, name):
1540
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1541
    args = getMasterAffiliateByName_args()
1542
    args.name = name
1543
    args.write(self._oprot)
1544
    self._oprot.writeMessageEnd()
1545
    self._oprot.trans.flush()
1546
 
1547
  def recv_getMasterAffiliateByName(self, ):
1548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1549
    if mtype == TMessageType.EXCEPTION:
1550
      x = TApplicationException()
1551
      x.read(self._iprot)
1552
      self._iprot.readMessageEnd()
1553
      raise x
1554
    result = getMasterAffiliateByName_result()
1555
    result.read(self._iprot)
1556
    self._iprot.readMessageEnd()
3431 rajveer 1557
    if result.success is not None:
1845 vikas 1558
      return result.success
3431 rajveer 1559
    if result.utx is not None:
1845 vikas 1560
      raise result.utx
1561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1562
 
1859 vikas 1563
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1564
    """
1565
    Parameters:
1566
     - name
1567
     - url
1568
     - masterAffiliateId
1859 vikas 1569
     - addedOn
1845 vikas 1570
    """
1859 vikas 1571
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1572
    return self.recv_createAffiliate()
1573
 
1859 vikas 1574
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1575
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1576
    args = createAffiliate_args()
1577
    args.name = name
1578
    args.url = url
1579
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1580
    args.addedOn = addedOn
1845 vikas 1581
    args.write(self._oprot)
1582
    self._oprot.writeMessageEnd()
1583
    self._oprot.trans.flush()
1584
 
1585
  def recv_createAffiliate(self, ):
1586
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1587
    if mtype == TMessageType.EXCEPTION:
1588
      x = TApplicationException()
1589
      x.read(self._iprot)
1590
      self._iprot.readMessageEnd()
1591
      raise x
1592
    result = createAffiliate_result()
1593
    result.read(self._iprot)
1594
    self._iprot.readMessageEnd()
3431 rajveer 1595
    if result.success is not None:
1845 vikas 1596
      return result.success
3431 rajveer 1597
    if result.utx is not None:
1845 vikas 1598
      raise result.utx
1599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1600
 
1601
  def getAffiliateById(self, id):
1602
    """
1603
    Parameters:
1604
     - id
1605
    """
1606
    self.send_getAffiliateById(id)
1607
    return self.recv_getAffiliateById()
1608
 
1609
  def send_getAffiliateById(self, id):
1610
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1611
    args = getAffiliateById_args()
1612
    args.id = id
1613
    args.write(self._oprot)
1614
    self._oprot.writeMessageEnd()
1615
    self._oprot.trans.flush()
1616
 
1617
  def recv_getAffiliateById(self, ):
1618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1619
    if mtype == TMessageType.EXCEPTION:
1620
      x = TApplicationException()
1621
      x.read(self._iprot)
1622
      self._iprot.readMessageEnd()
1623
      raise x
1624
    result = getAffiliateById_result()
1625
    result.read(self._iprot)
1626
    self._iprot.readMessageEnd()
3431 rajveer 1627
    if result.success is not None:
1845 vikas 1628
      return result.success
3431 rajveer 1629
    if result.utx is not None:
1845 vikas 1630
      raise result.utx
1631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1632
 
1633
  def getAffiliateByName(self, name):
1634
    """
1635
    Parameters:
1636
     - name
1637
    """
1638
    self.send_getAffiliateByName(name)
1639
    return self.recv_getAffiliateByName()
1640
 
1641
  def send_getAffiliateByName(self, name):
1642
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1643
    args = getAffiliateByName_args()
1644
    args.name = name
1645
    args.write(self._oprot)
1646
    self._oprot.writeMessageEnd()
1647
    self._oprot.trans.flush()
1648
 
1649
  def recv_getAffiliateByName(self, ):
1650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1651
    if mtype == TMessageType.EXCEPTION:
1652
      x = TApplicationException()
1653
      x.read(self._iprot)
1654
      self._iprot.readMessageEnd()
1655
      raise x
1656
    result = getAffiliateByName_result()
1657
    result.read(self._iprot)
1658
    self._iprot.readMessageEnd()
3431 rajveer 1659
    if result.success is not None:
1845 vikas 1660
      return result.success
3431 rajveer 1661
    if result.utx is not None:
1845 vikas 1662
      raise result.utx
1663
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1664
 
1996 vikas 1665
  def getTrackerById(self, id):
1845 vikas 1666
    """
1667
    Parameters:
1668
     - id
1669
    """
1996 vikas 1670
    self.send_getTrackerById(id)
1845 vikas 1671
    return self.recv_getTrackerById()
1672
 
1996 vikas 1673
  def send_getTrackerById(self, id):
1845 vikas 1674
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1675
    args = getTrackerById_args()
1996 vikas 1676
    args.id = id
1845 vikas 1677
    args.write(self._oprot)
1678
    self._oprot.writeMessageEnd()
1679
    self._oprot.trans.flush()
1680
 
1681
  def recv_getTrackerById(self, ):
1682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1683
    if mtype == TMessageType.EXCEPTION:
1684
      x = TApplicationException()
1685
      x.read(self._iprot)
1686
      self._iprot.readMessageEnd()
1687
      raise x
1688
    result = getTrackerById_result()
1689
    result.read(self._iprot)
1690
    self._iprot.readMessageEnd()
3431 rajveer 1691
    if result.success is not None:
1845 vikas 1692
      return result.success
3431 rajveer 1693
    if result.utx is not None:
1845 vikas 1694
      raise result.utx
1695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1696
 
1996 vikas 1697
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1698
    """
1699
    Parameters:
1996 vikas 1700
     - id
1845 vikas 1701
    """
1996 vikas 1702
    self.send_getAffiliatesByMasterAffiliate(id)
1703
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1704
 
1996 vikas 1705
  def send_getAffiliatesByMasterAffiliate(self, id):
1706
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1707
    args = getAffiliatesByMasterAffiliate_args()
1708
    args.id = id
1845 vikas 1709
    args.write(self._oprot)
1710
    self._oprot.writeMessageEnd()
1711
    self._oprot.trans.flush()
1712
 
1996 vikas 1713
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1715
    if mtype == TMessageType.EXCEPTION:
1716
      x = TApplicationException()
1717
      x.read(self._iprot)
1718
      self._iprot.readMessageEnd()
1719
      raise x
1996 vikas 1720
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1721
    result.read(self._iprot)
1722
    self._iprot.readMessageEnd()
3431 rajveer 1723
    if result.success is not None:
1845 vikas 1724
      return result.success
3431 rajveer 1725
    if result.utx is not None:
1845 vikas 1726
      raise result.utx
1996 vikas 1727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1728
 
1996 vikas 1729
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1730
    """
1731
    Parameters:
1996 vikas 1732
     - affiliateId
1845 vikas 1733
     - userId
1734
     - event
1735
     - url
1736
     - data
1859 vikas 1737
     - addedOn
1845 vikas 1738
    """
1996 vikas 1739
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1740
    return self.recv_addTrackLog()
1741
 
1996 vikas 1742
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1743
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1744
    args = addTrackLog_args()
1996 vikas 1745
    args.affiliateId = affiliateId
1845 vikas 1746
    args.userId = userId
1747
    args.event = event
1748
    args.url = url
1749
    args.data = data
1859 vikas 1750
    args.addedOn = addedOn
1845 vikas 1751
    args.write(self._oprot)
1752
    self._oprot.writeMessageEnd()
1753
    self._oprot.trans.flush()
1754
 
1755
  def recv_addTrackLog(self, ):
1756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1757
    if mtype == TMessageType.EXCEPTION:
1758
      x = TApplicationException()
1759
      x.read(self._iprot)
1760
      self._iprot.readMessageEnd()
1761
      raise x
1762
    result = addTrackLog_result()
1763
    result.read(self._iprot)
1764
    self._iprot.readMessageEnd()
3431 rajveer 1765
    if result.success is not None:
1845 vikas 1766
      return result.success
3431 rajveer 1767
    if result.utx is not None:
1845 vikas 1768
      raise result.utx
1769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1770
 
1771
  def getTrackLogById(self, id):
1772
    """
1773
    Parameters:
1774
     - id
1775
    """
1776
    self.send_getTrackLogById(id)
1777
    return self.recv_getTrackLogById()
1778
 
1779
  def send_getTrackLogById(self, id):
1780
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1781
    args = getTrackLogById_args()
1782
    args.id = id
1783
    args.write(self._oprot)
1784
    self._oprot.writeMessageEnd()
1785
    self._oprot.trans.flush()
1786
 
1787
  def recv_getTrackLogById(self, ):
1788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1789
    if mtype == TMessageType.EXCEPTION:
1790
      x = TApplicationException()
1791
      x.read(self._iprot)
1792
      self._iprot.readMessageEnd()
1793
      raise x
1794
    result = getTrackLogById_result()
1795
    result.read(self._iprot)
1796
    self._iprot.readMessageEnd()
3431 rajveer 1797
    if result.success is not None:
1845 vikas 1798
      return result.success
3431 rajveer 1799
    if result.utx is not None:
1845 vikas 1800
      raise result.utx
1801
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1802
 
3293 vikas 1803
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1804
    """
1805
    Parameters:
1996 vikas 1806
     - affiliateId
3293 vikas 1807
     - startDate
1808
     - endDate
1845 vikas 1809
    """
3293 vikas 1810
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1811
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1812
 
3293 vikas 1813
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1814
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1815
    args = getTrackLogsByAffiliate_args()
1816
    args.affiliateId = affiliateId
3293 vikas 1817
    args.startDate = startDate
1818
    args.endDate = endDate
1845 vikas 1819
    args.write(self._oprot)
1820
    self._oprot.writeMessageEnd()
1821
    self._oprot.trans.flush()
1822
 
1996 vikas 1823
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1824
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1825
    if mtype == TMessageType.EXCEPTION:
1826
      x = TApplicationException()
1827
      x.read(self._iprot)
1828
      self._iprot.readMessageEnd()
1829
      raise x
1996 vikas 1830
    result = getTrackLogsByAffiliate_result()
1845 vikas 1831
    result.read(self._iprot)
1832
    self._iprot.readMessageEnd()
3431 rajveer 1833
    if result.success is not None:
1845 vikas 1834
      return result.success
3431 rajveer 1835
    if result.utx is not None:
1845 vikas 1836
      raise result.utx
1996 vikas 1837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1838
 
1839
  def getTrackLogsByUser(self, userId):
1840
    """
1841
    Parameters:
1842
     - userId
1843
    """
1844
    self.send_getTrackLogsByUser(userId)
1845
    return self.recv_getTrackLogsByUser()
1846
 
1847
  def send_getTrackLogsByUser(self, userId):
1848
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1849
    args = getTrackLogsByUser_args()
1850
    args.userId = userId
1851
    args.write(self._oprot)
1852
    self._oprot.writeMessageEnd()
1853
    self._oprot.trans.flush()
1854
 
1855
  def recv_getTrackLogsByUser(self, ):
1856
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1857
    if mtype == TMessageType.EXCEPTION:
1858
      x = TApplicationException()
1859
      x.read(self._iprot)
1860
      self._iprot.readMessageEnd()
1861
      raise x
1862
    result = getTrackLogsByUser_result()
1863
    result.read(self._iprot)
1864
    self._iprot.readMessageEnd()
3431 rajveer 1865
    if result.success is not None:
1845 vikas 1866
      return result.success
3431 rajveer 1867
    if result.utx is not None:
1845 vikas 1868
      raise result.utx
1869
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1870
 
1996 vikas 1871
  def getTrackLogs(self, userId, event, url):
1845 vikas 1872
    """
1873
    Parameters:
1874
     - userId
1875
     - event
1876
     - url
1877
    """
1996 vikas 1878
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1879
    return self.recv_getTrackLogs()
1880
 
1996 vikas 1881
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1882
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1883
    args = getTrackLogs_args()
1884
    args.userId = userId
1885
    args.event = event
1886
    args.url = url
1887
    args.write(self._oprot)
1888
    self._oprot.writeMessageEnd()
1889
    self._oprot.trans.flush()
1890
 
1891
  def recv_getTrackLogs(self, ):
1892
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1893
    if mtype == TMessageType.EXCEPTION:
1894
      x = TApplicationException()
1895
      x.read(self._iprot)
1896
      self._iprot.readMessageEnd()
1897
      raise x
1898
    result = getTrackLogs_result()
1899
    result.read(self._iprot)
1900
    self._iprot.readMessageEnd()
3431 rajveer 1901
    if result.success is not None:
1845 vikas 1902
      return result.success
3431 rajveer 1903
    if result.utx is not None:
1845 vikas 1904
      raise result.utx
1905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1906
 
559 chandransh 1907
  def getCurrentCart(self, userId):
94 ashish 1908
    """
1909
    Parameters:
559 chandransh 1910
     - userId
94 ashish 1911
    """
559 chandransh 1912
    self.send_getCurrentCart(userId)
1913
    return self.recv_getCurrentCart()
94 ashish 1914
 
559 chandransh 1915
  def send_getCurrentCart(self, userId):
1916
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1917
    args = getCurrentCart_args()
1918
    args.userId = userId
94 ashish 1919
    args.write(self._oprot)
1920
    self._oprot.writeMessageEnd()
1921
    self._oprot.trans.flush()
1922
 
559 chandransh 1923
  def recv_getCurrentCart(self, ):
94 ashish 1924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1925
    if mtype == TMessageType.EXCEPTION:
1926
      x = TApplicationException()
1927
      x.read(self._iprot)
1928
      self._iprot.readMessageEnd()
1929
      raise x
559 chandransh 1930
    result = getCurrentCart_result()
94 ashish 1931
    result.read(self._iprot)
1932
    self._iprot.readMessageEnd()
3431 rajveer 1933
    if result.success is not None:
94 ashish 1934
      return result.success
3431 rajveer 1935
    if result.scx is not None:
559 chandransh 1936
      raise result.scx
1937
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1938
 
559 chandransh 1939
  def getCart(self, cartId):
94 ashish 1940
    """
1941
    Parameters:
559 chandransh 1942
     - cartId
94 ashish 1943
    """
559 chandransh 1944
    self.send_getCart(cartId)
1945
    return self.recv_getCart()
94 ashish 1946
 
559 chandransh 1947
  def send_getCart(self, cartId):
1948
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1949
    args = getCart_args()
1950
    args.cartId = cartId
94 ashish 1951
    args.write(self._oprot)
1952
    self._oprot.writeMessageEnd()
1953
    self._oprot.trans.flush()
1954
 
559 chandransh 1955
  def recv_getCart(self, ):
94 ashish 1956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1957
    if mtype == TMessageType.EXCEPTION:
1958
      x = TApplicationException()
1959
      x.read(self._iprot)
1960
      self._iprot.readMessageEnd()
1961
      raise x
559 chandransh 1962
    result = getCart_result()
94 ashish 1963
    result.read(self._iprot)
1964
    self._iprot.readMessageEnd()
3431 rajveer 1965
    if result.success is not None:
94 ashish 1966
      return result.success
3431 rajveer 1967
    if result.scx is not None:
559 chandransh 1968
      raise result.scx
1969
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1970
 
559 chandransh 1971
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1972
    """
1973
    Parameters:
559 chandransh 1974
     - from_time
1975
     - to_time
1976
     - status
94 ashish 1977
    """
559 chandransh 1978
    self.send_getCartsByTime(from_time, to_time, status)
1979
    return self.recv_getCartsByTime()
94 ashish 1980
 
559 chandransh 1981
  def send_getCartsByTime(self, from_time, to_time, status):
1982
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1983
    args = getCartsByTime_args()
1984
    args.from_time = from_time
1985
    args.to_time = to_time
1986
    args.status = status
94 ashish 1987
    args.write(self._oprot)
1988
    self._oprot.writeMessageEnd()
1989
    self._oprot.trans.flush()
1990
 
559 chandransh 1991
  def recv_getCartsByTime(self, ):
94 ashish 1992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1993
    if mtype == TMessageType.EXCEPTION:
1994
      x = TApplicationException()
1995
      x.read(self._iprot)
1996
      self._iprot.readMessageEnd()
1997
      raise x
559 chandransh 1998
    result = getCartsByTime_result()
94 ashish 1999
    result.read(self._iprot)
2000
    self._iprot.readMessageEnd()
3431 rajveer 2001
    if result.success is not None:
94 ashish 2002
      return result.success
3431 rajveer 2003
    if result.scx is not None:
559 chandransh 2004
      raise result.scx
2005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2006
 
3557 rajveer 2007
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2008
    """
2009
    Parameters:
2010
     - cartId
2011
     - itemId
2012
     - quantity
3557 rajveer 2013
     - sourceId
559 chandransh 2014
    """
3557 rajveer 2015
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2016
    return self.recv_addItemToCart()
559 chandransh 2017
 
3557 rajveer 2018
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2019
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2020
    args = addItemToCart_args()
2021
    args.cartId = cartId
2022
    args.itemId = itemId
2023
    args.quantity = quantity
3557 rajveer 2024
    args.sourceId = sourceId
559 chandransh 2025
    args.write(self._oprot)
2026
    self._oprot.writeMessageEnd()
2027
    self._oprot.trans.flush()
2028
 
2029
  def recv_addItemToCart(self, ):
2030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2031
    if mtype == TMessageType.EXCEPTION:
2032
      x = TApplicationException()
2033
      x.read(self._iprot)
2034
      self._iprot.readMessageEnd()
2035
      raise x
2036
    result = addItemToCart_result()
2037
    result.read(self._iprot)
2038
    self._iprot.readMessageEnd()
3431 rajveer 2039
    if result.success is not None:
2035 rajveer 2040
      return result.success
3431 rajveer 2041
    if result.scx is not None:
559 chandransh 2042
      raise result.scx
2035 rajveer 2043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2044
 
2045
  def deleteItemFromCart(self, cartId, itemId):
2046
    """
2047
    Parameters:
2048
     - cartId
2049
     - itemId
2050
    """
2051
    self.send_deleteItemFromCart(cartId, itemId)
2052
    self.recv_deleteItemFromCart()
2053
 
2054
  def send_deleteItemFromCart(self, cartId, itemId):
2055
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2056
    args = deleteItemFromCart_args()
2057
    args.cartId = cartId
2058
    args.itemId = itemId
2059
    args.write(self._oprot)
2060
    self._oprot.writeMessageEnd()
2061
    self._oprot.trans.flush()
2062
 
2063
  def recv_deleteItemFromCart(self, ):
2064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2065
    if mtype == TMessageType.EXCEPTION:
2066
      x = TApplicationException()
2067
      x.read(self._iprot)
2068
      self._iprot.readMessageEnd()
2069
      raise x
2070
    result = deleteItemFromCart_result()
2071
    result.read(self._iprot)
2072
    self._iprot.readMessageEnd()
3431 rajveer 2073
    if result.scx is not None:
559 chandransh 2074
      raise result.scx
2075
    return
2076
 
2077
  def addAddressToCart(self, cartId, addressId):
2078
    """
2079
    Parameters:
2080
     - cartId
2081
     - addressId
2082
    """
2083
    self.send_addAddressToCart(cartId, addressId)
2084
    self.recv_addAddressToCart()
2085
 
2086
  def send_addAddressToCart(self, cartId, addressId):
2087
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2088
    args = addAddressToCart_args()
2089
    args.cartId = cartId
2090
    args.addressId = addressId
2091
    args.write(self._oprot)
2092
    self._oprot.writeMessageEnd()
2093
    self._oprot.trans.flush()
2094
 
2095
  def recv_addAddressToCart(self, ):
2096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2097
    if mtype == TMessageType.EXCEPTION:
2098
      x = TApplicationException()
2099
      x.read(self._iprot)
2100
      self._iprot.readMessageEnd()
2101
      raise x
2102
    result = addAddressToCart_result()
2103
    result.read(self._iprot)
2104
    self._iprot.readMessageEnd()
3431 rajveer 2105
    if result.scx is not None:
575 chandransh 2106
      raise result.scx
559 chandransh 2107
    return
2108
 
5553 rajveer 2109
  def addStoreToCart(self, cartId, storeId):
2110
    """
2111
    Parameters:
2112
     - cartId
2113
     - storeId
2114
    """
2115
    self.send_addStoreToCart(cartId, storeId)
2116
    self.recv_addStoreToCart()
2117
 
2118
  def send_addStoreToCart(self, cartId, storeId):
2119
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2120
    args = addStoreToCart_args()
2121
    args.cartId = cartId
2122
    args.storeId = storeId
2123
    args.write(self._oprot)
2124
    self._oprot.writeMessageEnd()
2125
    self._oprot.trans.flush()
2126
 
2127
  def recv_addStoreToCart(self, ):
2128
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2129
    if mtype == TMessageType.EXCEPTION:
2130
      x = TApplicationException()
2131
      x.read(self._iprot)
2132
      self._iprot.readMessageEnd()
2133
      raise x
2134
    result = addStoreToCart_result()
2135
    result.read(self._iprot)
2136
    self._iprot.readMessageEnd()
2137
    if result.scx is not None:
2138
      raise result.scx
2139
    return
2140
 
1976 varun.gupt 2141
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2142
    """
2143
    Parameters:
2144
     - cartId
2145
     - couponCode
2146
     - totalPrice
2147
     - discountedPrice
2148
    """
2149
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2150
    self.recv_applyCouponToCart()
2151
 
2152
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2153
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2154
    args = applyCouponToCart_args()
2155
    args.cartId = cartId
2156
    args.couponCode = couponCode
2157
    args.totalPrice = totalPrice
2158
    args.discountedPrice = discountedPrice
2159
    args.write(self._oprot)
2160
    self._oprot.writeMessageEnd()
2161
    self._oprot.trans.flush()
2162
 
2163
  def recv_applyCouponToCart(self, ):
2164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2165
    if mtype == TMessageType.EXCEPTION:
2166
      x = TApplicationException()
2167
      x.read(self._iprot)
2168
      self._iprot.readMessageEnd()
2169
      raise x
2170
    result = applyCouponToCart_result()
2171
    result.read(self._iprot)
2172
    self._iprot.readMessageEnd()
3431 rajveer 2173
    if result.scx is not None:
1976 varun.gupt 2174
      raise result.scx
2175
    return
2176
 
2177
  def removeCoupon(self, cartId):
2178
    """
2179
    Parameters:
2180
     - cartId
2181
    """
2182
    self.send_removeCoupon(cartId)
2183
    self.recv_removeCoupon()
2184
 
2185
  def send_removeCoupon(self, cartId):
2186
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2187
    args = removeCoupon_args()
2188
    args.cartId = cartId
2189
    args.write(self._oprot)
2190
    self._oprot.writeMessageEnd()
2191
    self._oprot.trans.flush()
2192
 
2193
  def recv_removeCoupon(self, ):
2194
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2195
    if mtype == TMessageType.EXCEPTION:
2196
      x = TApplicationException()
2197
      x.read(self._iprot)
2198
      self._iprot.readMessageEnd()
2199
      raise x
2200
    result = removeCoupon_result()
2201
    result.read(self._iprot)
2202
    self._iprot.readMessageEnd()
3431 rajveer 2203
    if result.scx is not None:
1976 varun.gupt 2204
      raise result.scx
2205
    return
2206
 
3554 varun.gupt 2207
  def deleteDiscountsFromCart(self, cartId):
2208
    """
2209
    Deletes all the discounts associated with the cart
2210
 
2211
    Parameters:
2212
     - cartId
2213
    """
2214
    self.send_deleteDiscountsFromCart(cartId)
2215
    self.recv_deleteDiscountsFromCart()
2216
 
2217
  def send_deleteDiscountsFromCart(self, cartId):
2218
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2219
    args = deleteDiscountsFromCart_args()
2220
    args.cartId = cartId
2221
    args.write(self._oprot)
2222
    self._oprot.writeMessageEnd()
2223
    self._oprot.trans.flush()
2224
 
2225
  def recv_deleteDiscountsFromCart(self, ):
2226
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2227
    if mtype == TMessageType.EXCEPTION:
2228
      x = TApplicationException()
2229
      x.read(self._iprot)
2230
      self._iprot.readMessageEnd()
2231
      raise x
2232
    result = deleteDiscountsFromCart_result()
2233
    result.read(self._iprot)
2234
    self._iprot.readMessageEnd()
2235
    if result.scx is not None:
2236
      raise result.scx
2237
    return
2238
 
2239
  def saveDiscounts(self, discounts):
2240
    """
2241
    Accepts a list of thrift objects of Discount type and saves them
2242
 
2243
    Parameters:
2244
     - discounts
2245
    """
2246
    self.send_saveDiscounts(discounts)
2247
    self.recv_saveDiscounts()
2248
 
2249
  def send_saveDiscounts(self, discounts):
2250
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2251
    args = saveDiscounts_args()
2252
    args.discounts = discounts
2253
    args.write(self._oprot)
2254
    self._oprot.writeMessageEnd()
2255
    self._oprot.trans.flush()
2256
 
2257
  def recv_saveDiscounts(self, ):
2258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2259
    if mtype == TMessageType.EXCEPTION:
2260
      x = TApplicationException()
2261
      x.read(self._iprot)
2262
      self._iprot.readMessageEnd()
2263
      raise x
2264
    result = saveDiscounts_result()
2265
    result.read(self._iprot)
2266
    self._iprot.readMessageEnd()
2267
    if result.scx is not None:
2268
      raise result.scx
2269
    return
2270
 
6389 rajveer 2271
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 2272
    """
690 chandransh 2273
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2274
 
559 chandransh 2275
    Parameters:
2276
     - cartId
2815 vikas 2277
     - sessionSource
2278
     - sessionStartTime
3858 vikas 2279
     - firstSource
2280
     - firstSourceTime
5326 rajveer 2281
     - userId
6389 rajveer 2282
     - schemeId
559 chandransh 2283
    """
6389 rajveer 2284
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
690 chandransh 2285
    return self.recv_createOrders()
559 chandransh 2286
 
6389 rajveer 2287
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
690 chandransh 2288
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2289
    args = createOrders_args()
559 chandransh 2290
    args.cartId = cartId
2815 vikas 2291
    args.sessionSource = sessionSource
2292
    args.sessionStartTime = sessionStartTime
3858 vikas 2293
    args.firstSource = firstSource
2294
    args.firstSourceTime = firstSourceTime
5326 rajveer 2295
    args.userId = userId
6389 rajveer 2296
    args.schemeId = schemeId
559 chandransh 2297
    args.write(self._oprot)
2298
    self._oprot.writeMessageEnd()
2299
    self._oprot.trans.flush()
2300
 
690 chandransh 2301
  def recv_createOrders(self, ):
559 chandransh 2302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2303
    if mtype == TMessageType.EXCEPTION:
2304
      x = TApplicationException()
2305
      x.read(self._iprot)
2306
      self._iprot.readMessageEnd()
2307
      raise x
690 chandransh 2308
    result = createOrders_result()
559 chandransh 2309
    result.read(self._iprot)
2310
    self._iprot.readMessageEnd()
3431 rajveer 2311
    if result.success is not None:
130 ashish 2312
      return result.success
3431 rajveer 2313
    if result.scx is not None:
559 chandransh 2314
      raise result.scx
690 chandransh 2315
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2316
 
3557 rajveer 2317
  def validateCart(self, cartId, sourceId):
130 ashish 2318
    """
690 chandransh 2319
    Validates that:
2320
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2321
    2. All of the lines in the cart are active items.
690 chandransh 2322
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2323
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2324
 
130 ashish 2325
    Parameters:
559 chandransh 2326
     - cartId
3557 rajveer 2327
     - sourceId
130 ashish 2328
    """
3557 rajveer 2329
    self.send_validateCart(cartId, sourceId)
559 chandransh 2330
    return self.recv_validateCart()
130 ashish 2331
 
3557 rajveer 2332
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2333
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2334
    args = validateCart_args()
2335
    args.cartId = cartId
3557 rajveer 2336
    args.sourceId = sourceId
130 ashish 2337
    args.write(self._oprot)
2338
    self._oprot.writeMessageEnd()
2339
    self._oprot.trans.flush()
2340
 
559 chandransh 2341
  def recv_validateCart(self, ):
130 ashish 2342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2343
    if mtype == TMessageType.EXCEPTION:
2344
      x = TApplicationException()
2345
      x.read(self._iprot)
2346
      self._iprot.readMessageEnd()
2347
      raise x
559 chandransh 2348
    result = validateCart_result()
130 ashish 2349
    result.read(self._iprot)
2350
    self._iprot.readMessageEnd()
3431 rajveer 2351
    if result.success is not None:
130 ashish 2352
      return result.success
3431 rajveer 2353
    if result.scex is not None:
575 chandransh 2354
      raise result.scex
559 chandransh 2355
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2356
 
690 chandransh 2357
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2358
    """
690 chandransh 2359
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2360
 
575 chandransh 2361
    Parameters:
690 chandransh 2362
     - fromCartId
2363
     - toCartId
2364
    """
2365
    self.send_mergeCart(fromCartId, toCartId)
2366
    self.recv_mergeCart()
2367
 
2368
  def send_mergeCart(self, fromCartId, toCartId):
2369
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2370
    args = mergeCart_args()
2371
    args.fromCartId = fromCartId
2372
    args.toCartId = toCartId
2373
    args.write(self._oprot)
2374
    self._oprot.writeMessageEnd()
2375
    self._oprot.trans.flush()
2376
 
2377
  def recv_mergeCart(self, ):
2378
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2379
    if mtype == TMessageType.EXCEPTION:
2380
      x = TApplicationException()
2381
      x.read(self._iprot)
2382
      self._iprot.readMessageEnd()
2383
      raise x
2384
    result = mergeCart_result()
2385
    result.read(self._iprot)
2386
    self._iprot.readMessageEnd()
2387
    return
2388
 
2389
  def checkOut(self, cartId):
2390
    """
2391
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2392
 
690 chandransh 2393
    Parameters:
575 chandransh 2394
     - cartId
2395
    """
690 chandransh 2396
    self.send_checkOut(cartId)
2397
    return self.recv_checkOut()
575 chandransh 2398
 
690 chandransh 2399
  def send_checkOut(self, cartId):
2400
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2401
    args = checkOut_args()
575 chandransh 2402
    args.cartId = cartId
2403
    args.write(self._oprot)
2404
    self._oprot.writeMessageEnd()
2405
    self._oprot.trans.flush()
2406
 
690 chandransh 2407
  def recv_checkOut(self, ):
575 chandransh 2408
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2409
    if mtype == TMessageType.EXCEPTION:
2410
      x = TApplicationException()
2411
      x.read(self._iprot)
2412
      self._iprot.readMessageEnd()
2413
      raise x
690 chandransh 2414
    result = checkOut_result()
575 chandransh 2415
    result.read(self._iprot)
2416
    self._iprot.readMessageEnd()
3431 rajveer 2417
    if result.success is not None:
575 chandransh 2418
      return result.success
3431 rajveer 2419
    if result.scex is not None:
575 chandransh 2420
      raise result.scex
690 chandransh 2421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2422
 
690 chandransh 2423
  def resetCart(self, cartId, items):
559 chandransh 2424
    """
690 chandransh 2425
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2426
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2427
 
559 chandransh 2428
    Parameters:
690 chandransh 2429
     - cartId
2430
     - items
559 chandransh 2431
    """
690 chandransh 2432
    self.send_resetCart(cartId, items)
2433
    return self.recv_resetCart()
130 ashish 2434
 
690 chandransh 2435
  def send_resetCart(self, cartId, items):
2436
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2437
    args = resetCart_args()
2438
    args.cartId = cartId
2439
    args.items = items
559 chandransh 2440
    args.write(self._oprot)
2441
    self._oprot.writeMessageEnd()
2442
    self._oprot.trans.flush()
2443
 
690 chandransh 2444
  def recv_resetCart(self, ):
559 chandransh 2445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2446
    if mtype == TMessageType.EXCEPTION:
2447
      x = TApplicationException()
2448
      x.read(self._iprot)
2449
      self._iprot.readMessageEnd()
2450
      raise x
690 chandransh 2451
    result = resetCart_result()
559 chandransh 2452
    result.read(self._iprot)
2453
    self._iprot.readMessageEnd()
3431 rajveer 2454
    if result.success is not None:
690 chandransh 2455
      return result.success
3431 rajveer 2456
    if result.scex is not None:
690 chandransh 2457
      raise result.scex
2458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2459
 
2981 rajveer 2460
  def getUserCount(self, userType):
559 chandransh 2461
    """
2981 rajveer 2462
    Returns number of registered users.
2463
    If userType = null, then it returns count of all users, including anonymous
2464
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2465
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2466
 
559 chandransh 2467
    Parameters:
2981 rajveer 2468
     - userType
559 chandransh 2469
    """
2981 rajveer 2470
    self.send_getUserCount(userType)
2471
    return self.recv_getUserCount()
559 chandransh 2472
 
2981 rajveer 2473
  def send_getUserCount(self, userType):
2474
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2475
    args = getUserCount_args()
2476
    args.userType = userType
559 chandransh 2477
    args.write(self._oprot)
2478
    self._oprot.writeMessageEnd()
2479
    self._oprot.trans.flush()
2480
 
2981 rajveer 2481
  def recv_getUserCount(self, ):
559 chandransh 2482
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2483
    if mtype == TMessageType.EXCEPTION:
2484
      x = TApplicationException()
2485
      x.read(self._iprot)
2486
      self._iprot.readMessageEnd()
2487
      raise x
2981 rajveer 2488
    result = getUserCount_result()
559 chandransh 2489
    result.read(self._iprot)
2490
    self._iprot.readMessageEnd()
3431 rajveer 2491
    if result.success is not None:
559 chandransh 2492
      return result.success
2981 rajveer 2493
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2494
 
2981 rajveer 2495
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2496
    """
2981 rajveer 2497
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2498
    If any of startDate or endDate is -1, then that filter is ignored.
2499
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2500
 
2501
 
559 chandransh 2502
    Parameters:
2981 rajveer 2503
     - userType
2504
     - startDate
2505
     - endDate
559 chandransh 2506
    """
2981 rajveer 2507
    self.send_getAllUsers(userType, startDate, endDate)
2508
    return self.recv_getAllUsers()
559 chandransh 2509
 
2981 rajveer 2510
  def send_getAllUsers(self, userType, startDate, endDate):
2511
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2512
    args = getAllUsers_args()
2513
    args.userType = userType
2514
    args.startDate = startDate
2515
    args.endDate = endDate
559 chandransh 2516
    args.write(self._oprot)
2517
    self._oprot.writeMessageEnd()
2518
    self._oprot.trans.flush()
2519
 
2981 rajveer 2520
  def recv_getAllUsers(self, ):
559 chandransh 2521
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2522
    if mtype == TMessageType.EXCEPTION:
2523
      x = TApplicationException()
2524
      x.read(self._iprot)
2525
      self._iprot.readMessageEnd()
2526
      raise x
2981 rajveer 2527
    result = getAllUsers_result()
559 chandransh 2528
    result.read(self._iprot)
2529
    self._iprot.readMessageEnd()
3431 rajveer 2530
    if result.success is not None:
559 chandransh 2531
      return result.success
2981 rajveer 2532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2533
 
2981 rajveer 2534
  def getMyResearchItems(self, userId):
559 chandransh 2535
    """
2981 rajveer 2536
    Returns list of item ids in myresearch for the user
3431 rajveer 2537
 
559 chandransh 2538
    Parameters:
772 rajveer 2539
     - userId
559 chandransh 2540
    """
2981 rajveer 2541
    self.send_getMyResearchItems(userId)
2542
    return self.recv_getMyResearchItems()
559 chandransh 2543
 
2981 rajveer 2544
  def send_getMyResearchItems(self, userId):
2545
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2546
    args = getMyResearchItems_args()
772 rajveer 2547
    args.userId = userId
559 chandransh 2548
    args.write(self._oprot)
2549
    self._oprot.writeMessageEnd()
2550
    self._oprot.trans.flush()
2551
 
2981 rajveer 2552
  def recv_getMyResearchItems(self, ):
559 chandransh 2553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2554
    if mtype == TMessageType.EXCEPTION:
2555
      x = TApplicationException()
2556
      x.read(self._iprot)
2557
      self._iprot.readMessageEnd()
2558
      raise x
2981 rajveer 2559
    result = getMyResearchItems_result()
559 chandransh 2560
    result.read(self._iprot)
2561
    self._iprot.readMessageEnd()
3431 rajveer 2562
    if result.success is not None:
559 chandransh 2563
      return result.success
3431 rajveer 2564
    if result.scx is not None:
559 chandransh 2565
      raise result.scx
2981 rajveer 2566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2567
 
2981 rajveer 2568
  def updateMyResearch(self, userId, itemId):
559 chandransh 2569
    """
2981 rajveer 2570
    add item to my research for a user
3431 rajveer 2571
 
559 chandransh 2572
    Parameters:
2981 rajveer 2573
     - userId
2574
     - itemId
559 chandransh 2575
    """
2981 rajveer 2576
    self.send_updateMyResearch(userId, itemId)
2577
    return self.recv_updateMyResearch()
559 chandransh 2578
 
2981 rajveer 2579
  def send_updateMyResearch(self, userId, itemId):
2580
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2581
    args = updateMyResearch_args()
2582
    args.userId = userId
2583
    args.itemId = itemId
559 chandransh 2584
    args.write(self._oprot)
2585
    self._oprot.writeMessageEnd()
2586
    self._oprot.trans.flush()
2587
 
2981 rajveer 2588
  def recv_updateMyResearch(self, ):
559 chandransh 2589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2590
    if mtype == TMessageType.EXCEPTION:
2591
      x = TApplicationException()
2592
      x.read(self._iprot)
2593
      self._iprot.readMessageEnd()
2594
      raise x
2981 rajveer 2595
    result = updateMyResearch_result()
559 chandransh 2596
    result.read(self._iprot)
2597
    self._iprot.readMessageEnd()
3431 rajveer 2598
    if result.success is not None:
2981 rajveer 2599
      return result.success
3431 rajveer 2600
    if result.scx is not None:
2981 rajveer 2601
      raise result.scx
2602
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2603
 
2981 rajveer 2604
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2605
    """
2981 rajveer 2606
    delete item from my research for a user
3431 rajveer 2607
 
1596 ankur.sing 2608
    Parameters:
2981 rajveer 2609
     - userId
2610
     - itemId
1596 ankur.sing 2611
    """
2981 rajveer 2612
    self.send_deleteItemFromMyResearch(userId, itemId)
2613
    self.recv_deleteItemFromMyResearch()
559 chandransh 2614
 
2981 rajveer 2615
  def send_deleteItemFromMyResearch(self, userId, itemId):
2616
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2617
    args = deleteItemFromMyResearch_args()
2618
    args.userId = userId
2619
    args.itemId = itemId
1596 ankur.sing 2620
    args.write(self._oprot)
2621
    self._oprot.writeMessageEnd()
2622
    self._oprot.trans.flush()
2623
 
2981 rajveer 2624
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2626
    if mtype == TMessageType.EXCEPTION:
2627
      x = TApplicationException()
2628
      x.read(self._iprot)
2629
      self._iprot.readMessageEnd()
2630
      raise x
2981 rajveer 2631
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2632
    result.read(self._iprot)
2633
    self._iprot.readMessageEnd()
3431 rajveer 2634
    if result.scx is not None:
2981 rajveer 2635
      raise result.scx
2636
    return
1596 ankur.sing 2637
 
2981 rajveer 2638
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2639
    """
2981 rajveer 2640
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2641
 
1673 ankur.sing 2642
    Parameters:
2981 rajveer 2643
     - userId
1673 ankur.sing 2644
    """
2981 rajveer 2645
    self.send_getBrowseHistoryItems(userId)
2646
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2647
 
2981 rajveer 2648
  def send_getBrowseHistoryItems(self, userId):
2649
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2650
    args = getBrowseHistoryItems_args()
2651
    args.userId = userId
1673 ankur.sing 2652
    args.write(self._oprot)
2653
    self._oprot.writeMessageEnd()
2654
    self._oprot.trans.flush()
2655
 
2981 rajveer 2656
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2658
    if mtype == TMessageType.EXCEPTION:
2659
      x = TApplicationException()
2660
      x.read(self._iprot)
2661
      self._iprot.readMessageEnd()
2662
      raise x
2981 rajveer 2663
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2664
    result.read(self._iprot)
2665
    self._iprot.readMessageEnd()
3431 rajveer 2666
    if result.success is not None:
1673 ankur.sing 2667
      return result.success
3431 rajveer 2668
    if result.scx is not None:
2981 rajveer 2669
      raise result.scx
2670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2671
 
2981 rajveer 2672
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2673
    """
2981 rajveer 2674
    add item to browse history for a user
3431 rajveer 2675
 
2642 varun.gupt 2676
    Parameters:
2981 rajveer 2677
     - userId
2678
     - itemId
2642 varun.gupt 2679
    """
2981 rajveer 2680
    self.send_updateBrowseHistory(userId, itemId)
2681
    self.recv_updateBrowseHistory()
1673 ankur.sing 2682
 
2981 rajveer 2683
  def send_updateBrowseHistory(self, userId, itemId):
2684
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2685
    args = updateBrowseHistory_args()
2686
    args.userId = userId
2687
    args.itemId = itemId
2642 varun.gupt 2688
    args.write(self._oprot)
2689
    self._oprot.writeMessageEnd()
2690
    self._oprot.trans.flush()
2691
 
2981 rajveer 2692
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2694
    if mtype == TMessageType.EXCEPTION:
2695
      x = TApplicationException()
2696
      x.read(self._iprot)
2697
      self._iprot.readMessageEnd()
2698
      raise x
2981 rajveer 2699
    result = updateBrowseHistory_result()
2642 varun.gupt 2700
    result.read(self._iprot)
2701
    self._iprot.readMessageEnd()
2702
    return
2703
 
3385 varun.gupt 2704
  def getCartsWithCouponCount(self, couponCode):
2705
    """
2706
    Returns count of Carts with given coupon applied
3431 rajveer 2707
 
3385 varun.gupt 2708
    Parameters:
2709
     - couponCode
2710
    """
2711
    self.send_getCartsWithCouponCount(couponCode)
2712
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2713
 
3385 varun.gupt 2714
  def send_getCartsWithCouponCount(self, couponCode):
2715
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2716
    args = getCartsWithCouponCount_args()
2717
    args.couponCode = couponCode
2718
    args.write(self._oprot)
2719
    self._oprot.writeMessageEnd()
2720
    self._oprot.trans.flush()
2721
 
2722
  def recv_getCartsWithCouponCount(self, ):
2723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2724
    if mtype == TMessageType.EXCEPTION:
2725
      x = TApplicationException()
2726
      x.read(self._iprot)
2727
      self._iprot.readMessageEnd()
2728
      raise x
2729
    result = getCartsWithCouponCount_result()
2730
    result.read(self._iprot)
2731
    self._iprot.readMessageEnd()
3431 rajveer 2732
    if result.success is not None:
3385 varun.gupt 2733
      return result.success
2734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2735
 
3499 mandeep.dh 2736
  def increaseTrustLevel(self, userId, trustLevelDelta):
2737
    """
2738
    Updates COD trust level of a user
3385 varun.gupt 2739
 
3499 mandeep.dh 2740
    Parameters:
2741
     - userId
2742
     - trustLevelDelta
2743
    """
2744
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2745
 
2746
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2747
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2748
    args = increaseTrustLevel_args()
2749
    args.userId = userId
2750
    args.trustLevelDelta = trustLevelDelta
2751
    args.write(self._oprot)
2752
    self._oprot.writeMessageEnd()
2753
    self._oprot.trans.flush()
5407 amar.kumar 2754
  def getTrustLevel(self, userId):
2755
    """
2756
    Get trust level of a user
2757
 
2758
    Parameters:
2759
     - userId
2760
    """
2761
    self.send_getTrustLevel(userId)
2762
    return self.recv_getTrustLevel()
2763
 
2764
  def send_getTrustLevel(self, userId):
2765
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2766
    args = getTrustLevel_args()
2767
    args.userId = userId
2768
    args.write(self._oprot)
2769
    self._oprot.writeMessageEnd()
2770
    self._oprot.trans.flush()
2771
 
2772
  def recv_getTrustLevel(self, ):
2773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2774
    if mtype == TMessageType.EXCEPTION:
2775
      x = TApplicationException()
2776
      x.read(self._iprot)
2777
      self._iprot.readMessageEnd()
2778
      raise x
2779
    result = getTrustLevel_result()
2780
    result.read(self._iprot)
2781
    self._iprot.readMessageEnd()
2782
    if result.success is not None:
2783
      return result.success
2784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2785
 
4668 varun.gupt 2786
  def showCODOption(self, cartId, sourceId, pincode):
2787
    """
2788
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2789
 
4668 varun.gupt 2790
    Parameters:
2791
     - cartId
2792
     - sourceId
2793
     - pincode
2794
    """
2795
    self.send_showCODOption(cartId, sourceId, pincode)
2796
    return self.recv_showCODOption()
2797
 
2798
  def send_showCODOption(self, cartId, sourceId, pincode):
2799
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2800
    args = showCODOption_args()
2801
    args.cartId = cartId
2802
    args.sourceId = sourceId
2803
    args.pincode = pincode
2804
    args.write(self._oprot)
2805
    self._oprot.writeMessageEnd()
2806
    self._oprot.trans.flush()
2807
 
2808
  def recv_showCODOption(self, ):
2809
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2810
    if mtype == TMessageType.EXCEPTION:
2811
      x = TApplicationException()
2812
      x.read(self._iprot)
2813
      self._iprot.readMessageEnd()
2814
      raise x
2815
    result = showCODOption_result()
2816
    result.read(self._iprot)
2817
    self._iprot.readMessageEnd()
2818
    if result.success is not None:
2819
      return result.success
2820
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2821
 
5623 anupam.sin 2822
  def getUserEmails(self, startDate, endDate):
2823
    """
2824
    Get email addresses for users activated within a given date range
4668 varun.gupt 2825
 
5623 anupam.sin 2826
    Parameters:
2827
     - startDate
2828
     - endDate
2829
    """
2830
    self.send_getUserEmails(startDate, endDate)
2831
    return self.recv_getUserEmails()
2832
 
2833
  def send_getUserEmails(self, startDate, endDate):
2834
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2835
    args = getUserEmails_args()
2836
    args.startDate = startDate
2837
    args.endDate = endDate
2838
    args.write(self._oprot)
2839
    self._oprot.writeMessageEnd()
2840
    self._oprot.trans.flush()
2841
 
2842
  def recv_getUserEmails(self, ):
2843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2844
    if mtype == TMessageType.EXCEPTION:
2845
      x = TApplicationException()
2846
      x.read(self._iprot)
2847
      self._iprot.readMessageEnd()
2848
      raise x
2849
    result = getUserEmails_result()
2850
    result.read(self._iprot)
2851
    self._iprot.readMessageEnd()
2852
    if result.success is not None:
2853
      return result.success
2854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2855
 
6821 amar.kumar 2856
  def isProductAddedToCart(self, itemId, startDate, endDate):
2857
    """
2858
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 2859
 
6821 amar.kumar 2860
    Parameters:
2861
     - itemId
2862
     - startDate
2863
     - endDate
2864
    """
2865
    self.send_isProductAddedToCart(itemId, startDate, endDate)
2866
    return self.recv_isProductAddedToCart()
2867
 
2868
  def send_isProductAddedToCart(self, itemId, startDate, endDate):
2869
    self._oprot.writeMessageBegin('isProductAddedToCart', TMessageType.CALL, self._seqid)
2870
    args = isProductAddedToCart_args()
2871
    args.itemId = itemId
2872
    args.startDate = startDate
2873
    args.endDate = endDate
2874
    args.write(self._oprot)
2875
    self._oprot.writeMessageEnd()
2876
    self._oprot.trans.flush()
2877
 
2878
  def recv_isProductAddedToCart(self, ):
2879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2880
    if mtype == TMessageType.EXCEPTION:
2881
      x = TApplicationException()
2882
      x.read(self._iprot)
2883
      self._iprot.readMessageEnd()
2884
      raise x
2885
    result = isProductAddedToCart_result()
2886
    result.read(self._iprot)
2887
    self._iprot.readMessageEnd()
2888
    if result.success is not None:
2889
      return result.success
2890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
2891
 
2892
 
3376 rajveer 2893
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2894
  def __init__(self, handler):
3376 rajveer 2895
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2896
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2897
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2898
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2899
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2900
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2901
    self._processMap["createUser"] = Processor.process_createUser
2902
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2903
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2904
    self._processMap["userExists"] = Processor.process_userExists
2905
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2906
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2907
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2908
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2909
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2910
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2911
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2912
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2913
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2914
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2915
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2916
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2917
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2918
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2919
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 2920
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 2921
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2922
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2923
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2924
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2925
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2926
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2927
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2928
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2929
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2930
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2931
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2932
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2933
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2934
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2935
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2936
    self._processMap["getCart"] = Processor.process_getCart
2937
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2938
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2939
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2940
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 2941
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 2942
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2943
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2944
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2945
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2946
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2947
    self._processMap["validateCart"] = Processor.process_validateCart
2948
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2949
    self._processMap["checkOut"] = Processor.process_checkOut
2950
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2951
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2952
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 2953
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2954
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2955
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2956
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2957
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2958
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2959
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 2960
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 2961
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 2962
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6821 amar.kumar 2963
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
94 ashish 2964
 
2965
  def process(self, iprot, oprot):
2966
    (name, type, seqid) = iprot.readMessageBegin()
2967
    if name not in self._processMap:
2968
      iprot.skip(TType.STRUCT)
2969
      iprot.readMessageEnd()
2970
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2971
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2972
      x.write(oprot)
2973
      oprot.writeMessageEnd()
2974
      oprot.trans.flush()
2975
      return
2976
    else:
2977
      self._processMap[name](self, seqid, iprot, oprot)
2978
    return True
2979
 
559 chandransh 2980
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2981
    args = createAnonymousUser_args()
94 ashish 2982
    args.read(iprot)
2983
    iprot.readMessageEnd()
559 chandransh 2984
    result = createAnonymousUser_result()
94 ashish 2985
    try:
559 chandransh 2986
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2987
    except UserContextException, ucex:
2988
      result.ucex = ucex
2989
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2990
    result.write(oprot)
2991
    oprot.writeMessageEnd()
2992
    oprot.trans.flush()
2993
 
559 chandransh 2994
  def process_getUserById(self, seqid, iprot, oprot):
2995
    args = getUserById_args()
94 ashish 2996
    args.read(iprot)
2997
    iprot.readMessageEnd()
559 chandransh 2998
    result = getUserById_result()
94 ashish 2999
    try:
559 chandransh 3000
      result.success = self._handler.getUserById(args.userId)
3001
    except UserContextException, ucex:
3002
      result.ucex = ucex
3003
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3004
    result.write(oprot)
3005
    oprot.writeMessageEnd()
3006
    oprot.trans.flush()
3007
 
5326 rajveer 3008
  def process_getUserByCartId(self, seqid, iprot, oprot):
3009
    args = getUserByCartId_args()
3010
    args.read(iprot)
3011
    iprot.readMessageEnd()
3012
    result = getUserByCartId_result()
3013
    try:
3014
      result.success = self._handler.getUserByCartId(args.cartId)
3015
    except UserContextException, ucex:
3016
      result.ucex = ucex
3017
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3018
    result.write(oprot)
3019
    oprot.writeMessageEnd()
3020
    oprot.trans.flush()
3021
 
1491 vikas 3022
  def process_getUserByEmail(self, seqid, iprot, oprot):
3023
    args = getUserByEmail_args()
3024
    args.read(iprot)
3025
    iprot.readMessageEnd()
3026
    result = getUserByEmail_result()
3027
    try:
3028
      result.success = self._handler.getUserByEmail(args.email)
3029
    except UserContextException, ucex:
3030
      result.ucex = ucex
3031
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3032
    result.write(oprot)
3033
    oprot.writeMessageEnd()
3034
    oprot.trans.flush()
3035
 
3032 mandeep.dh 3036
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3037
    args = getUserByMobileNumber_args()
3038
    args.read(iprot)
3039
    iprot.readMessageEnd()
3040
    result = getUserByMobileNumber_result()
3041
    try:
3042
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3043
    except UserContextException, ucex:
3044
      result.ucex = ucex
3045
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3046
    result.write(oprot)
3047
    oprot.writeMessageEnd()
3048
    oprot.trans.flush()
3049
 
559 chandransh 3050
  def process_createUser(self, seqid, iprot, oprot):
3051
    args = createUser_args()
94 ashish 3052
    args.read(iprot)
3053
    iprot.readMessageEnd()
559 chandransh 3054
    result = createUser_result()
94 ashish 3055
    try:
559 chandransh 3056
      result.success = self._handler.createUser(args.user)
3057
    except UserContextException, ucex:
3058
      result.ucex = ucex
3059
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3060
    result.write(oprot)
3061
    oprot.writeMessageEnd()
3062
    oprot.trans.flush()
3063
 
559 chandransh 3064
  def process_updateUser(self, seqid, iprot, oprot):
3065
    args = updateUser_args()
94 ashish 3066
    args.read(iprot)
3067
    iprot.readMessageEnd()
559 chandransh 3068
    result = updateUser_result()
94 ashish 3069
    try:
559 chandransh 3070
      result.success = self._handler.updateUser(args.user)
3071
    except UserContextException, ucex:
3072
      result.ucex = ucex
3073
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3074
    result.write(oprot)
3075
    oprot.writeMessageEnd()
3076
    oprot.trans.flush()
3077
 
122 ashish 3078
  def process_authenticateUser(self, seqid, iprot, oprot):
3079
    args = authenticateUser_args()
3080
    args.read(iprot)
3081
    iprot.readMessageEnd()
3082
    result = authenticateUser_result()
3083
    try:
559 chandransh 3084
      result.success = self._handler.authenticateUser(args.email, args.password)
3085
    except AuthenticationException, auex:
3086
      result.auex = auex
122 ashish 3087
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3088
    result.write(oprot)
3089
    oprot.writeMessageEnd()
3090
    oprot.trans.flush()
3091
 
94 ashish 3092
  def process_userExists(self, seqid, iprot, oprot):
3093
    args = userExists_args()
3094
    args.read(iprot)
3095
    iprot.readMessageEnd()
3096
    result = userExists_result()
3097
    try:
3098
      result.success = self._handler.userExists(args.email)
3099
    except UserContextException, ucx:
3100
      result.ucx = ucx
3101
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3102
    result.write(oprot)
3103
    oprot.writeMessageEnd()
3104
    oprot.trans.flush()
3105
 
3106
  def process_addAddressForUser(self, seqid, iprot, oprot):
3107
    args = addAddressForUser_args()
3108
    args.read(iprot)
3109
    iprot.readMessageEnd()
3110
    result = addAddressForUser_result()
3111
    try:
567 rajveer 3112
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3113
    except UserContextException, ucx:
3114
      result.ucx = ucx
3115
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3116
    result.write(oprot)
3117
    oprot.writeMessageEnd()
3118
    oprot.trans.flush()
3119
 
3120
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3121
    args = removeAddressForUser_args()
3122
    args.read(iprot)
3123
    iprot.readMessageEnd()
3124
    result = removeAddressForUser_result()
3125
    try:
3126
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3127
    except UserContextException, ucx:
3128
      result.ucx = ucx
3129
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3130
    result.write(oprot)
3131
    oprot.writeMessageEnd()
3132
    oprot.trans.flush()
3133
 
3134
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3135
    args = setUserAsLoggedIn_args()
3136
    args.read(iprot)
3137
    iprot.readMessageEnd()
3138
    result = setUserAsLoggedIn_result()
3139
    try:
3140
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3141
    except UserContextException, ucx:
3142
      result.ucx = ucx
3143
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3144
    result.write(oprot)
3145
    oprot.writeMessageEnd()
3146
    oprot.trans.flush()
3147
 
3148
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3149
    args = setUserAsLoggedOut_args()
3150
    args.read(iprot)
3151
    iprot.readMessageEnd()
3152
    result = setUserAsLoggedOut_result()
3153
    try:
3154
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3155
    except UserContextException, ucx:
3156
      result.ucx = ucx
3157
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3158
    result.write(oprot)
3159
    oprot.writeMessageEnd()
3160
    oprot.trans.flush()
3161
 
504 rajveer 3162
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3163
    args = setDefaultAddress_args()
3164
    args.read(iprot)
3165
    iprot.readMessageEnd()
3166
    result = setDefaultAddress_result()
3167
    try:
3168
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3169
    except UserContextException, ucx:
3170
      result.ucx = ucx
3171
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3172
    result.write(oprot)
3173
    oprot.writeMessageEnd()
3174
    oprot.trans.flush()
3175
 
94 ashish 3176
  def process_updatePassword(self, seqid, iprot, oprot):
3177
    args = updatePassword_args()
3178
    args.read(iprot)
3179
    iprot.readMessageEnd()
3180
    result = updatePassword_result()
3181
    try:
594 rajveer 3182
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3183
    except UserContextException, ucx:
3184
      result.ucx = ucx
3185
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3186
    result.write(oprot)
3187
    oprot.writeMessageEnd()
3188
    oprot.trans.flush()
3189
 
581 rajveer 3190
  def process_forgotPassword(self, seqid, iprot, oprot):
3191
    args = forgotPassword_args()
3192
    args.read(iprot)
3193
    iprot.readMessageEnd()
3194
    result = forgotPassword_result()
3195
    try:
884 rajveer 3196
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3197
    except UserContextException, ucx:
3198
      result.ucx = ucx
3199
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
594 rajveer 3204
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3205
    args = getAllAddressesForUser_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = getAllAddressesForUser_result()
3209
    try:
3210
      result.success = self._handler.getAllAddressesForUser(args.userId)
3211
    except UserContextException, ucx:
3212
      result.ucx = ucx
3213
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
1894 vikas 3218
  def process_getAddressById(self, seqid, iprot, oprot):
3219
    args = getAddressById_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = getAddressById_result()
3223
    try:
3224
      result.success = self._handler.getAddressById(args.addressId)
3225
    except UserContextException, ucx:
3226
      result.ucx = ucx
3227
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
594 rajveer 3232
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3233
    args = getDefaultAddressId_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = getDefaultAddressId_result()
3237
    try:
3238
      result.success = self._handler.getDefaultAddressId(args.userId)
3239
    except UserContextException, ucx:
3240
      result.ucx = ucx
3241
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
785 rajveer 3246
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3247
    args = getDefaultPincode_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getDefaultPincode_result()
3251
    try:
3252
      result.success = self._handler.getDefaultPincode(args.userId)
3253
    except UserContextException, ucx:
3254
      result.ucx = ucx
3255
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
1274 varun.gupt 3260
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3261
    args = saveUserCommunication_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = saveUserCommunication_result()
3265
    try:
3266
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3267
    except UserCommunicationException, ucx:
3268
      result.ucx = ucx
3269
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
1590 varun.gupt 3274
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3275
    args = getUserCommunicationById_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = getUserCommunicationById_result()
3279
    try:
3280
      result.success = self._handler.getUserCommunicationById(args.id)
3281
    except UserCommunicationException, ucx:
3282
      result.ucx = ucx
3283
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
3288
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3289
    args = getUserCommunicationByUser_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = getUserCommunicationByUser_result()
3293
    try:
3294
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3295
    except UserCommunicationException, ucx:
3296
      result.ucx = ucx
3297
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
3302
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3303
    args = getAllUserCommunications_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = getAllUserCommunications_result()
3307
    try:
3308
      result.success = self._handler.getAllUserCommunications()
3309
    except UserCommunicationException, ucx:
3310
      result.ucx = ucx
3311
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
5407 amar.kumar 3316
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3317
    args = removeUserCommunication_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = removeUserCommunication_result()
3321
    try:
3322
      self._handler.removeUserCommunication(args.id)
3323
    except UserCommunicationException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
1845 vikas 3330
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3331
    args = createMasterAffiliate_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = createMasterAffiliate_result()
3335
    try:
1859 vikas 3336
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3337
    except UserAffiliateException, utx:
1845 vikas 3338
      result.utx = utx
3339
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
1899 vikas 3344
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3345
    args = getAllMasterAffiliates_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = getAllMasterAffiliates_result()
3349
    try:
3350
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3351
    except UserAffiliateException, utx:
1899 vikas 3352
      result.utx = utx
3353
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
1845 vikas 3358
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3359
    args = getMasterAffiliateById_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = getMasterAffiliateById_result()
3363
    try:
3364
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3365
    except UserAffiliateException, utx:
1845 vikas 3366
      result.utx = utx
3367
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
3372
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3373
    args = getMasterAffiliateByName_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = getMasterAffiliateByName_result()
3377
    try:
3378
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3379
    except UserAffiliateException, utx:
1845 vikas 3380
      result.utx = utx
3381
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
3386
  def process_createAffiliate(self, seqid, iprot, oprot):
3387
    args = createAffiliate_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = createAffiliate_result()
3391
    try:
1859 vikas 3392
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3393
    except UserAffiliateException, utx:
1845 vikas 3394
      result.utx = utx
3395
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_getAffiliateById(self, seqid, iprot, oprot):
3401
    args = getAffiliateById_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = getAffiliateById_result()
3405
    try:
3406
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3407
    except UserAffiliateException, utx:
1845 vikas 3408
      result.utx = utx
3409
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
3414
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3415
    args = getAffiliateByName_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = getAffiliateByName_result()
3419
    try:
3420
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3421
    except UserAffiliateException, utx:
1845 vikas 3422
      result.utx = utx
3423
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
3428
  def process_getTrackerById(self, seqid, iprot, oprot):
3429
    args = getTrackerById_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getTrackerById_result()
3433
    try:
1996 vikas 3434
      result.success = self._handler.getTrackerById(args.id)
3435
    except UserAffiliateException, utx:
1845 vikas 3436
      result.utx = utx
3437
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
1996 vikas 3442
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3443
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
1996 vikas 3446
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3447
    try:
1996 vikas 3448
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3449
    except UserAffiliateException, utx:
1845 vikas 3450
      result.utx = utx
1996 vikas 3451
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
3456
  def process_addTrackLog(self, seqid, iprot, oprot):
3457
    args = addTrackLog_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = addTrackLog_result()
3461
    try:
1996 vikas 3462
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3463
    except UserAffiliateException, utx:
1845 vikas 3464
      result.utx = utx
3465
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
3470
  def process_getTrackLogById(self, seqid, iprot, oprot):
3471
    args = getTrackLogById_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = getTrackLogById_result()
3475
    try:
3476
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3477
    except UserAffiliateException, utx:
1845 vikas 3478
      result.utx = utx
3479
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
1996 vikas 3484
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3485
    args = getTrackLogsByAffiliate_args()
1845 vikas 3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
1996 vikas 3488
    result = getTrackLogsByAffiliate_result()
1845 vikas 3489
    try:
3293 vikas 3490
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3491
    except UserAffiliateException, utx:
1845 vikas 3492
      result.utx = utx
1996 vikas 3493
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
3498
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3499
    args = getTrackLogsByUser_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getTrackLogsByUser_result()
3503
    try:
3504
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3505
    except UserAffiliateException, utx:
1845 vikas 3506
      result.utx = utx
3507
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getTrackLogs(self, seqid, iprot, oprot):
3513
    args = getTrackLogs_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getTrackLogs_result()
3517
    try:
1996 vikas 3518
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3519
    except UserAffiliateException, utx:
1845 vikas 3520
      result.utx = utx
3521
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
559 chandransh 3526
  def process_getCurrentCart(self, seqid, iprot, oprot):
3527
    args = getCurrentCart_args()
94 ashish 3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
559 chandransh 3530
    result = getCurrentCart_result()
94 ashish 3531
    try:
559 chandransh 3532
      result.success = self._handler.getCurrentCart(args.userId)
3533
    except ShoppingCartException, scx:
3534
      result.scx = scx
3535
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
559 chandransh 3540
  def process_getCart(self, seqid, iprot, oprot):
3541
    args = getCart_args()
94 ashish 3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
559 chandransh 3544
    result = getCart_result()
94 ashish 3545
    try:
559 chandransh 3546
      result.success = self._handler.getCart(args.cartId)
3547
    except ShoppingCartException, scx:
3548
      result.scx = scx
3549
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
559 chandransh 3554
  def process_getCartsByTime(self, seqid, iprot, oprot):
3555
    args = getCartsByTime_args()
94 ashish 3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
559 chandransh 3558
    result = getCartsByTime_result()
94 ashish 3559
    try:
559 chandransh 3560
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3561
    except ShoppingCartException, scx:
3562
      result.scx = scx
3563
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
559 chandransh 3568
  def process_addItemToCart(self, seqid, iprot, oprot):
3569
    args = addItemToCart_args()
130 ashish 3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
559 chandransh 3572
    result = addItemToCart_result()
130 ashish 3573
    try:
3557 rajveer 3574
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3575
    except ShoppingCartException, scx:
3576
      result.scx = scx
3577
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
559 chandransh 3582
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3583
    args = deleteItemFromCart_args()
3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
3586
    result = deleteItemFromCart_result()
3587
    try:
3588
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3589
    except ShoppingCartException, scx:
3590
      result.scx = scx
3591
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
130 ashish 3595
 
559 chandransh 3596
  def process_addAddressToCart(self, seqid, iprot, oprot):
3597
    args = addAddressToCart_args()
3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
3600
    result = addAddressToCart_result()
575 chandransh 3601
    try:
3602
      self._handler.addAddressToCart(args.cartId, args.addressId)
3603
    except ShoppingCartException, scx:
3604
      result.scx = scx
559 chandransh 3605
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
5553 rajveer 3610
  def process_addStoreToCart(self, seqid, iprot, oprot):
3611
    args = addStoreToCart_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = addStoreToCart_result()
3615
    try:
3616
      self._handler.addStoreToCart(args.cartId, args.storeId)
3617
    except ShoppingCartException, scx:
3618
      result.scx = scx
3619
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
1976 varun.gupt 3624
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3625
    args = applyCouponToCart_args()
3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
3628
    result = applyCouponToCart_result()
3629
    try:
3630
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3631
    except ShoppingCartException, scx:
3632
      result.scx = scx
3633
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_removeCoupon(self, seqid, iprot, oprot):
3639
    args = removeCoupon_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = removeCoupon_result()
3643
    try:
3644
      self._handler.removeCoupon(args.cartId)
3645
    except ShoppingCartException, scx:
3646
      result.scx = scx
3647
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
3554 varun.gupt 3652
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3653
    args = deleteDiscountsFromCart_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = deleteDiscountsFromCart_result()
3657
    try:
3658
      self._handler.deleteDiscountsFromCart(args.cartId)
3659
    except ShoppingCartException, scx:
3660
      result.scx = scx
3661
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
3666
  def process_saveDiscounts(self, seqid, iprot, oprot):
3667
    args = saveDiscounts_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = saveDiscounts_result()
3671
    try:
3672
      self._handler.saveDiscounts(args.discounts)
3673
    except ShoppingCartException, scx:
3674
      result.scx = scx
3675
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
690 chandransh 3680
  def process_createOrders(self, seqid, iprot, oprot):
3681
    args = createOrders_args()
559 chandransh 3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
690 chandransh 3684
    result = createOrders_result()
559 chandransh 3685
    try:
6389 rajveer 3686
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
559 chandransh 3687
    except ShoppingCartException, scx:
3688
      result.scx = scx
690 chandransh 3689
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_validateCart(self, seqid, iprot, oprot):
3695
    args = validateCart_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = validateCart_result()
575 chandransh 3699
    try:
3557 rajveer 3700
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3701
    except ShoppingCartException, scex:
3702
      result.scex = scex
559 chandransh 3703
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
690 chandransh 3708
  def process_mergeCart(self, seqid, iprot, oprot):
3709
    args = mergeCart_args()
575 chandransh 3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
690 chandransh 3712
    result = mergeCart_result()
3713
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3714
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3715
    result.write(oprot)
3716
    oprot.writeMessageEnd()
3717
    oprot.trans.flush()
3718
 
3719
  def process_checkOut(self, seqid, iprot, oprot):
3720
    args = checkOut_args()
3721
    args.read(iprot)
3722
    iprot.readMessageEnd()
3723
    result = checkOut_result()
575 chandransh 3724
    try:
690 chandransh 3725
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3726
    except ShoppingCartException, scex:
3727
      result.scex = scex
690 chandransh 3728
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3729
    result.write(oprot)
3730
    oprot.writeMessageEnd()
3731
    oprot.trans.flush()
3732
 
690 chandransh 3733
  def process_resetCart(self, seqid, iprot, oprot):
3734
    args = resetCart_args()
559 chandransh 3735
    args.read(iprot)
3736
    iprot.readMessageEnd()
690 chandransh 3737
    result = resetCart_result()
3738
    try:
3739
      result.success = self._handler.resetCart(args.cartId, args.items)
3740
    except ShoppingCartException, scex:
3741
      result.scex = scex
3742
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3743
    result.write(oprot)
3744
    oprot.writeMessageEnd()
3745
    oprot.trans.flush()
3746
 
2981 rajveer 3747
  def process_getUserCount(self, seqid, iprot, oprot):
3748
    args = getUserCount_args()
559 chandransh 3749
    args.read(iprot)
3750
    iprot.readMessageEnd()
2981 rajveer 3751
    result = getUserCount_result()
3752
    result.success = self._handler.getUserCount(args.userType)
3753
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3754
    result.write(oprot)
3755
    oprot.writeMessageEnd()
3756
    oprot.trans.flush()
3757
 
2981 rajveer 3758
  def process_getAllUsers(self, seqid, iprot, oprot):
3759
    args = getAllUsers_args()
559 chandransh 3760
    args.read(iprot)
3761
    iprot.readMessageEnd()
2981 rajveer 3762
    result = getAllUsers_result()
3763
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3764
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3765
    result.write(oprot)
3766
    oprot.writeMessageEnd()
3767
    oprot.trans.flush()
3768
 
2981 rajveer 3769
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3770
    args = getMyResearchItems_args()
559 chandransh 3771
    args.read(iprot)
3772
    iprot.readMessageEnd()
2981 rajveer 3773
    result = getMyResearchItems_result()
559 chandransh 3774
    try:
2981 rajveer 3775
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3776
    except WidgetException, scx:
3777
      result.scx = scx
2981 rajveer 3778
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3779
    result.write(oprot)
3780
    oprot.writeMessageEnd()
3781
    oprot.trans.flush()
3782
 
2981 rajveer 3783
  def process_updateMyResearch(self, seqid, iprot, oprot):
3784
    args = updateMyResearch_args()
772 rajveer 3785
    args.read(iprot)
3786
    iprot.readMessageEnd()
2981 rajveer 3787
    result = updateMyResearch_result()
3788
    try:
3789
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3790
    except WidgetException, scx:
3791
      result.scx = scx
3792
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3793
    result.write(oprot)
3794
    oprot.writeMessageEnd()
3795
    oprot.trans.flush()
559 chandransh 3796
 
2981 rajveer 3797
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3798
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3799
    args.read(iprot)
3800
    iprot.readMessageEnd()
2981 rajveer 3801
    result = deleteItemFromMyResearch_result()
3802
    try:
3803
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3804
    except WidgetException, scx:
3805
      result.scx = scx
3806
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3807
    result.write(oprot)
3808
    oprot.writeMessageEnd()
3809
    oprot.trans.flush()
772 rajveer 3810
 
2981 rajveer 3811
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3812
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3813
    args.read(iprot)
3814
    iprot.readMessageEnd()
2981 rajveer 3815
    result = getBrowseHistoryItems_result()
3816
    try:
3817
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3818
    except WidgetException, scx:
3819
      result.scx = scx
3820
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3821
    result.write(oprot)
3822
    oprot.writeMessageEnd()
3823
    oprot.trans.flush()
1596 ankur.sing 3824
 
2981 rajveer 3825
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3826
    args = updateBrowseHistory_args()
2642 varun.gupt 3827
    args.read(iprot)
3828
    iprot.readMessageEnd()
2981 rajveer 3829
    result = updateBrowseHistory_result()
3830
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3831
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3832
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
1673 ankur.sing 3835
 
3385 varun.gupt 3836
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3837
    args = getCartsWithCouponCount_args()
3838
    args.read(iprot)
3839
    iprot.readMessageEnd()
3840
    result = getCartsWithCouponCount_result()
3841
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3842
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
2642 varun.gupt 3846
 
3499 mandeep.dh 3847
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3848
    args = increaseTrustLevel_args()
3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
3851
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3852
    return
3385 varun.gupt 3853
 
5407 amar.kumar 3854
  def process_getTrustLevel(self, seqid, iprot, oprot):
3855
    args = getTrustLevel_args()
3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
3858
    result = getTrustLevel_result()
3859
    result.success = self._handler.getTrustLevel(args.userId)
3860
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
3861
    result.write(oprot)
3862
    oprot.writeMessageEnd()
3863
    oprot.trans.flush()
3864
 
4668 varun.gupt 3865
  def process_showCODOption(self, seqid, iprot, oprot):
3866
    args = showCODOption_args()
3867
    args.read(iprot)
3868
    iprot.readMessageEnd()
3869
    result = showCODOption_result()
3870
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3871
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3499 mandeep.dh 3875
 
5623 anupam.sin 3876
  def process_getUserEmails(self, seqid, iprot, oprot):
3877
    args = getUserEmails_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    result = getUserEmails_result()
3881
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
3882
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
3883
    result.write(oprot)
3884
    oprot.writeMessageEnd()
3885
    oprot.trans.flush()
4668 varun.gupt 3886
 
6821 amar.kumar 3887
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
3888
    args = isProductAddedToCart_args()
3889
    args.read(iprot)
3890
    iprot.readMessageEnd()
3891
    result = isProductAddedToCart_result()
3892
    result.success = self._handler.isProductAddedToCart(args.itemId, args.startDate, args.endDate)
3893
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
3894
    result.write(oprot)
3895
    oprot.writeMessageEnd()
3896
    oprot.trans.flush()
5623 anupam.sin 3897
 
6821 amar.kumar 3898
 
94 ashish 3899
# HELPER FUNCTIONS AND STRUCTURES
3900
 
559 chandransh 3901
class createAnonymousUser_args:
94 ashish 3902
  """
3903
  Attributes:
559 chandransh 3904
   - jsessionId
94 ashish 3905
  """
3906
 
3907
  thrift_spec = (
3908
    None, # 0
559 chandransh 3909
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3910
  )
3911
 
559 chandransh 3912
  def __init__(self, jsessionId=None,):
3913
    self.jsessionId = jsessionId
94 ashish 3914
 
3915
  def read(self, iprot):
3916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3918
      return
3919
    iprot.readStructBegin()
3920
    while True:
3921
      (fname, ftype, fid) = iprot.readFieldBegin()
3922
      if ftype == TType.STOP:
3923
        break
3924
      if fid == 1:
559 chandransh 3925
        if ftype == TType.STRING:
3926
          self.jsessionId = iprot.readString();
94 ashish 3927
        else:
3928
          iprot.skip(ftype)
3929
      else:
3930
        iprot.skip(ftype)
3931
      iprot.readFieldEnd()
3932
    iprot.readStructEnd()
3933
 
3934
  def write(self, oprot):
3935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3937
      return
559 chandransh 3938
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3939
    if self.jsessionId is not None:
559 chandransh 3940
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3941
      oprot.writeString(self.jsessionId)
94 ashish 3942
      oprot.writeFieldEnd()
3943
    oprot.writeFieldStop()
3944
    oprot.writeStructEnd()
3945
 
3431 rajveer 3946
  def validate(self):
3947
    return
3948
 
3949
 
94 ashish 3950
  def __repr__(self):
3951
    L = ['%s=%r' % (key, value)
3952
      for key, value in self.__dict__.iteritems()]
3953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3954
 
3955
  def __eq__(self, other):
3956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3957
 
3958
  def __ne__(self, other):
3959
    return not (self == other)
3960
 
559 chandransh 3961
class createAnonymousUser_result:
94 ashish 3962
  """
3963
  Attributes:
3964
   - success
559 chandransh 3965
   - ucex
94 ashish 3966
  """
3967
 
3968
  thrift_spec = (
559 chandransh 3969
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3970
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3971
  )
3972
 
559 chandransh 3973
  def __init__(self, success=None, ucex=None,):
94 ashish 3974
    self.success = success
559 chandransh 3975
    self.ucex = ucex
94 ashish 3976
 
3977
  def read(self, iprot):
3978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3980
      return
3981
    iprot.readStructBegin()
3982
    while True:
3983
      (fname, ftype, fid) = iprot.readFieldBegin()
3984
      if ftype == TType.STOP:
3985
        break
3986
      if fid == 0:
3987
        if ftype == TType.STRUCT:
559 chandransh 3988
          self.success = User()
94 ashish 3989
          self.success.read(iprot)
3990
        else:
3991
          iprot.skip(ftype)
3992
      elif fid == 1:
3993
        if ftype == TType.STRUCT:
559 chandransh 3994
          self.ucex = UserContextException()
3995
          self.ucex.read(iprot)
94 ashish 3996
        else:
3997
          iprot.skip(ftype)
3998
      else:
3999
        iprot.skip(ftype)
4000
      iprot.readFieldEnd()
4001
    iprot.readStructEnd()
4002
 
4003
  def write(self, oprot):
4004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4006
      return
559 chandransh 4007
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4008
    if self.success is not None:
94 ashish 4009
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4010
      self.success.write(oprot)
4011
      oprot.writeFieldEnd()
3431 rajveer 4012
    if self.ucex is not None:
559 chandransh 4013
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4014
      self.ucex.write(oprot)
94 ashish 4015
      oprot.writeFieldEnd()
4016
    oprot.writeFieldStop()
4017
    oprot.writeStructEnd()
4018
 
3431 rajveer 4019
  def validate(self):
4020
    return
4021
 
4022
 
94 ashish 4023
  def __repr__(self):
4024
    L = ['%s=%r' % (key, value)
4025
      for key, value in self.__dict__.iteritems()]
4026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4027
 
4028
  def __eq__(self, other):
4029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4030
 
4031
  def __ne__(self, other):
4032
    return not (self == other)
4033
 
559 chandransh 4034
class getUserById_args:
94 ashish 4035
  """
4036
  Attributes:
4037
   - userId
4038
  """
4039
 
4040
  thrift_spec = (
4041
    None, # 0
4042
    (1, TType.I64, 'userId', None, None, ), # 1
4043
  )
4044
 
559 chandransh 4045
  def __init__(self, userId=None,):
94 ashish 4046
    self.userId = userId
4047
 
4048
  def read(self, iprot):
4049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4051
      return
4052
    iprot.readStructBegin()
4053
    while True:
4054
      (fname, ftype, fid) = iprot.readFieldBegin()
4055
      if ftype == TType.STOP:
4056
        break
4057
      if fid == 1:
4058
        if ftype == TType.I64:
4059
          self.userId = iprot.readI64();
4060
        else:
4061
          iprot.skip(ftype)
4062
      else:
4063
        iprot.skip(ftype)
4064
      iprot.readFieldEnd()
4065
    iprot.readStructEnd()
4066
 
4067
  def write(self, oprot):
4068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4070
      return
559 chandransh 4071
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4072
    if self.userId is not None:
94 ashish 4073
      oprot.writeFieldBegin('userId', TType.I64, 1)
4074
      oprot.writeI64(self.userId)
4075
      oprot.writeFieldEnd()
4076
    oprot.writeFieldStop()
4077
    oprot.writeStructEnd()
4078
 
3431 rajveer 4079
  def validate(self):
4080
    return
4081
 
4082
 
94 ashish 4083
  def __repr__(self):
4084
    L = ['%s=%r' % (key, value)
4085
      for key, value in self.__dict__.iteritems()]
4086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4087
 
4088
  def __eq__(self, other):
4089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4090
 
4091
  def __ne__(self, other):
4092
    return not (self == other)
4093
 
559 chandransh 4094
class getUserById_result:
94 ashish 4095
  """
4096
  Attributes:
4097
   - success
559 chandransh 4098
   - ucex
94 ashish 4099
  """
4100
 
4101
  thrift_spec = (
559 chandransh 4102
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4103
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4104
  )
4105
 
559 chandransh 4106
  def __init__(self, success=None, ucex=None,):
94 ashish 4107
    self.success = success
559 chandransh 4108
    self.ucex = ucex
94 ashish 4109
 
4110
  def read(self, iprot):
4111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4113
      return
4114
    iprot.readStructBegin()
4115
    while True:
4116
      (fname, ftype, fid) = iprot.readFieldBegin()
4117
      if ftype == TType.STOP:
4118
        break
4119
      if fid == 0:
4120
        if ftype == TType.STRUCT:
559 chandransh 4121
          self.success = User()
94 ashish 4122
          self.success.read(iprot)
4123
        else:
4124
          iprot.skip(ftype)
4125
      elif fid == 1:
4126
        if ftype == TType.STRUCT:
559 chandransh 4127
          self.ucex = UserContextException()
4128
          self.ucex.read(iprot)
94 ashish 4129
        else:
4130
          iprot.skip(ftype)
4131
      else:
4132
        iprot.skip(ftype)
4133
      iprot.readFieldEnd()
4134
    iprot.readStructEnd()
4135
 
4136
  def write(self, oprot):
4137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4139
      return
559 chandransh 4140
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4141
    if self.success is not None:
94 ashish 4142
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4143
      self.success.write(oprot)
4144
      oprot.writeFieldEnd()
3431 rajveer 4145
    if self.ucex is not None:
559 chandransh 4146
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4147
      self.ucex.write(oprot)
94 ashish 4148
      oprot.writeFieldEnd()
4149
    oprot.writeFieldStop()
4150
    oprot.writeStructEnd()
4151
 
3431 rajveer 4152
  def validate(self):
4153
    return
4154
 
4155
 
94 ashish 4156
  def __repr__(self):
4157
    L = ['%s=%r' % (key, value)
4158
      for key, value in self.__dict__.iteritems()]
4159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4160
 
4161
  def __eq__(self, other):
4162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4163
 
4164
  def __ne__(self, other):
4165
    return not (self == other)
4166
 
5326 rajveer 4167
class getUserByCartId_args:
1491 vikas 4168
  """
4169
  Attributes:
5326 rajveer 4170
   - cartId
1491 vikas 4171
  """
4172
 
4173
  thrift_spec = (
4174
    None, # 0
5326 rajveer 4175
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4176
  )
4177
 
5326 rajveer 4178
  def __init__(self, cartId=None,):
4179
    self.cartId = cartId
1491 vikas 4180
 
4181
  def read(self, iprot):
4182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4184
      return
4185
    iprot.readStructBegin()
4186
    while True:
4187
      (fname, ftype, fid) = iprot.readFieldBegin()
4188
      if ftype == TType.STOP:
4189
        break
4190
      if fid == 1:
5326 rajveer 4191
        if ftype == TType.I64:
4192
          self.cartId = iprot.readI64();
1491 vikas 4193
        else:
4194
          iprot.skip(ftype)
4195
      else:
4196
        iprot.skip(ftype)
4197
      iprot.readFieldEnd()
4198
    iprot.readStructEnd()
4199
 
4200
  def write(self, oprot):
4201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4203
      return
5326 rajveer 4204
    oprot.writeStructBegin('getUserByCartId_args')
4205
    if self.cartId is not None:
4206
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4207
      oprot.writeI64(self.cartId)
1491 vikas 4208
      oprot.writeFieldEnd()
4209
    oprot.writeFieldStop()
4210
    oprot.writeStructEnd()
4211
 
3431 rajveer 4212
  def validate(self):
4213
    return
4214
 
4215
 
1491 vikas 4216
  def __repr__(self):
4217
    L = ['%s=%r' % (key, value)
4218
      for key, value in self.__dict__.iteritems()]
4219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4220
 
4221
  def __eq__(self, other):
4222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4223
 
4224
  def __ne__(self, other):
4225
    return not (self == other)
4226
 
5326 rajveer 4227
class getUserByCartId_result:
1491 vikas 4228
  """
4229
  Attributes:
4230
   - success
4231
   - ucex
4232
  """
4233
 
4234
  thrift_spec = (
4235
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4236
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4237
  )
4238
 
4239
  def __init__(self, success=None, ucex=None,):
4240
    self.success = success
4241
    self.ucex = ucex
4242
 
4243
  def read(self, iprot):
4244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4246
      return
4247
    iprot.readStructBegin()
4248
    while True:
4249
      (fname, ftype, fid) = iprot.readFieldBegin()
4250
      if ftype == TType.STOP:
4251
        break
4252
      if fid == 0:
4253
        if ftype == TType.STRUCT:
4254
          self.success = User()
4255
          self.success.read(iprot)
4256
        else:
4257
          iprot.skip(ftype)
4258
      elif fid == 1:
4259
        if ftype == TType.STRUCT:
4260
          self.ucex = UserContextException()
4261
          self.ucex.read(iprot)
4262
        else:
4263
          iprot.skip(ftype)
4264
      else:
4265
        iprot.skip(ftype)
4266
      iprot.readFieldEnd()
4267
    iprot.readStructEnd()
4268
 
4269
  def write(self, oprot):
4270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4272
      return
5326 rajveer 4273
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4274
    if self.success is not None:
1491 vikas 4275
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4276
      self.success.write(oprot)
4277
      oprot.writeFieldEnd()
3431 rajveer 4278
    if self.ucex is not None:
1491 vikas 4279
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4280
      self.ucex.write(oprot)
4281
      oprot.writeFieldEnd()
4282
    oprot.writeFieldStop()
4283
    oprot.writeStructEnd()
4284
 
3431 rajveer 4285
  def validate(self):
4286
    return
4287
 
4288
 
1491 vikas 4289
  def __repr__(self):
4290
    L = ['%s=%r' % (key, value)
4291
      for key, value in self.__dict__.iteritems()]
4292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4293
 
4294
  def __eq__(self, other):
4295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4296
 
4297
  def __ne__(self, other):
4298
    return not (self == other)
4299
 
5326 rajveer 4300
class getUserByEmail_args:
3032 mandeep.dh 4301
  """
4302
  Attributes:
5326 rajveer 4303
   - email
3032 mandeep.dh 4304
  """
4305
 
4306
  thrift_spec = (
4307
    None, # 0
5326 rajveer 4308
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4309
  )
4310
 
5326 rajveer 4311
  def __init__(self, email=None,):
4312
    self.email = email
3032 mandeep.dh 4313
 
4314
  def read(self, iprot):
4315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4317
      return
4318
    iprot.readStructBegin()
4319
    while True:
4320
      (fname, ftype, fid) = iprot.readFieldBegin()
4321
      if ftype == TType.STOP:
4322
        break
4323
      if fid == 1:
5326 rajveer 4324
        if ftype == TType.STRING:
4325
          self.email = iprot.readString();
3032 mandeep.dh 4326
        else:
4327
          iprot.skip(ftype)
4328
      else:
4329
        iprot.skip(ftype)
4330
      iprot.readFieldEnd()
4331
    iprot.readStructEnd()
4332
 
4333
  def write(self, oprot):
4334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4336
      return
5326 rajveer 4337
    oprot.writeStructBegin('getUserByEmail_args')
4338
    if self.email is not None:
4339
      oprot.writeFieldBegin('email', TType.STRING, 1)
4340
      oprot.writeString(self.email)
3032 mandeep.dh 4341
      oprot.writeFieldEnd()
4342
    oprot.writeFieldStop()
4343
    oprot.writeStructEnd()
4344
 
3431 rajveer 4345
  def validate(self):
4346
    return
4347
 
4348
 
3032 mandeep.dh 4349
  def __repr__(self):
4350
    L = ['%s=%r' % (key, value)
4351
      for key, value in self.__dict__.iteritems()]
4352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4353
 
4354
  def __eq__(self, other):
4355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4356
 
4357
  def __ne__(self, other):
4358
    return not (self == other)
4359
 
5326 rajveer 4360
class getUserByEmail_result:
3032 mandeep.dh 4361
  """
4362
  Attributes:
4363
   - success
4364
   - ucex
4365
  """
4366
 
4367
  thrift_spec = (
4368
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4369
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4370
  )
4371
 
4372
  def __init__(self, success=None, ucex=None,):
4373
    self.success = success
4374
    self.ucex = ucex
4375
 
4376
  def read(self, iprot):
4377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4379
      return
4380
    iprot.readStructBegin()
4381
    while True:
4382
      (fname, ftype, fid) = iprot.readFieldBegin()
4383
      if ftype == TType.STOP:
4384
        break
4385
      if fid == 0:
4386
        if ftype == TType.STRUCT:
4387
          self.success = User()
4388
          self.success.read(iprot)
4389
        else:
4390
          iprot.skip(ftype)
4391
      elif fid == 1:
4392
        if ftype == TType.STRUCT:
4393
          self.ucex = UserContextException()
4394
          self.ucex.read(iprot)
4395
        else:
4396
          iprot.skip(ftype)
4397
      else:
4398
        iprot.skip(ftype)
4399
      iprot.readFieldEnd()
4400
    iprot.readStructEnd()
4401
 
4402
  def write(self, oprot):
4403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4405
      return
5326 rajveer 4406
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4407
    if self.success is not None:
3032 mandeep.dh 4408
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4409
      self.success.write(oprot)
4410
      oprot.writeFieldEnd()
3431 rajveer 4411
    if self.ucex is not None:
3032 mandeep.dh 4412
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4413
      self.ucex.write(oprot)
4414
      oprot.writeFieldEnd()
4415
    oprot.writeFieldStop()
4416
    oprot.writeStructEnd()
4417
 
3431 rajveer 4418
  def validate(self):
4419
    return
4420
 
4421
 
3032 mandeep.dh 4422
  def __repr__(self):
4423
    L = ['%s=%r' % (key, value)
4424
      for key, value in self.__dict__.iteritems()]
4425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4426
 
4427
  def __eq__(self, other):
4428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4429
 
4430
  def __ne__(self, other):
4431
    return not (self == other)
4432
 
5326 rajveer 4433
class getUserByMobileNumber_args:
94 ashish 4434
  """
4435
  Attributes:
5326 rajveer 4436
   - mobileNumber
94 ashish 4437
  """
4438
 
4439
  thrift_spec = (
4440
    None, # 0
5326 rajveer 4441
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4442
  )
4443
 
5326 rajveer 4444
  def __init__(self, mobileNumber=None,):
4445
    self.mobileNumber = mobileNumber
94 ashish 4446
 
4447
  def read(self, iprot):
4448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4450
      return
4451
    iprot.readStructBegin()
4452
    while True:
4453
      (fname, ftype, fid) = iprot.readFieldBegin()
4454
      if ftype == TType.STOP:
4455
        break
4456
      if fid == 1:
5326 rajveer 4457
        if ftype == TType.I64:
4458
          self.mobileNumber = iprot.readI64();
94 ashish 4459
        else:
4460
          iprot.skip(ftype)
4461
      else:
4462
        iprot.skip(ftype)
4463
      iprot.readFieldEnd()
4464
    iprot.readStructEnd()
4465
 
4466
  def write(self, oprot):
4467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4469
      return
5326 rajveer 4470
    oprot.writeStructBegin('getUserByMobileNumber_args')
4471
    if self.mobileNumber is not None:
4472
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4473
      oprot.writeI64(self.mobileNumber)
94 ashish 4474
      oprot.writeFieldEnd()
4475
    oprot.writeFieldStop()
4476
    oprot.writeStructEnd()
4477
 
3431 rajveer 4478
  def validate(self):
4479
    return
4480
 
4481
 
94 ashish 4482
  def __repr__(self):
4483
    L = ['%s=%r' % (key, value)
4484
      for key, value in self.__dict__.iteritems()]
4485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4486
 
4487
  def __eq__(self, other):
4488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4489
 
4490
  def __ne__(self, other):
4491
    return not (self == other)
4492
 
5326 rajveer 4493
class getUserByMobileNumber_result:
94 ashish 4494
  """
4495
  Attributes:
4496
   - success
559 chandransh 4497
   - ucex
94 ashish 4498
  """
4499
 
4500
  thrift_spec = (
559 chandransh 4501
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4502
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4503
  )
4504
 
559 chandransh 4505
  def __init__(self, success=None, ucex=None,):
94 ashish 4506
    self.success = success
559 chandransh 4507
    self.ucex = ucex
94 ashish 4508
 
4509
  def read(self, iprot):
4510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4512
      return
4513
    iprot.readStructBegin()
4514
    while True:
4515
      (fname, ftype, fid) = iprot.readFieldBegin()
4516
      if ftype == TType.STOP:
4517
        break
4518
      if fid == 0:
4519
        if ftype == TType.STRUCT:
559 chandransh 4520
          self.success = User()
94 ashish 4521
          self.success.read(iprot)
4522
        else:
4523
          iprot.skip(ftype)
4524
      elif fid == 1:
4525
        if ftype == TType.STRUCT:
559 chandransh 4526
          self.ucex = UserContextException()
4527
          self.ucex.read(iprot)
94 ashish 4528
        else:
4529
          iprot.skip(ftype)
4530
      else:
4531
        iprot.skip(ftype)
4532
      iprot.readFieldEnd()
4533
    iprot.readStructEnd()
4534
 
4535
  def write(self, oprot):
4536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4538
      return
5326 rajveer 4539
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4540
    if self.success is not None:
94 ashish 4541
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4542
      self.success.write(oprot)
4543
      oprot.writeFieldEnd()
3431 rajveer 4544
    if self.ucex is not None:
559 chandransh 4545
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4546
      self.ucex.write(oprot)
94 ashish 4547
      oprot.writeFieldEnd()
4548
    oprot.writeFieldStop()
4549
    oprot.writeStructEnd()
4550
 
3431 rajveer 4551
  def validate(self):
4552
    return
4553
 
4554
 
94 ashish 4555
  def __repr__(self):
4556
    L = ['%s=%r' % (key, value)
4557
      for key, value in self.__dict__.iteritems()]
4558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4559
 
4560
  def __eq__(self, other):
4561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4562
 
4563
  def __ne__(self, other):
4564
    return not (self == other)
4565
 
5326 rajveer 4566
class createUser_args:
94 ashish 4567
  """
4568
  Attributes:
559 chandransh 4569
   - user
94 ashish 4570
  """
4571
 
4572
  thrift_spec = (
4573
    None, # 0
559 chandransh 4574
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4575
  )
4576
 
559 chandransh 4577
  def __init__(self, user=None,):
4578
    self.user = user
94 ashish 4579
 
4580
  def read(self, iprot):
4581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4583
      return
4584
    iprot.readStructBegin()
4585
    while True:
4586
      (fname, ftype, fid) = iprot.readFieldBegin()
4587
      if ftype == TType.STOP:
4588
        break
4589
      if fid == 1:
559 chandransh 4590
        if ftype == TType.STRUCT:
4591
          self.user = User()
4592
          self.user.read(iprot)
94 ashish 4593
        else:
4594
          iprot.skip(ftype)
4595
      else:
4596
        iprot.skip(ftype)
4597
      iprot.readFieldEnd()
4598
    iprot.readStructEnd()
4599
 
4600
  def write(self, oprot):
4601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4603
      return
5326 rajveer 4604
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4605
    if self.user is not None:
559 chandransh 4606
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4607
      self.user.write(oprot)
94 ashish 4608
      oprot.writeFieldEnd()
4609
    oprot.writeFieldStop()
4610
    oprot.writeStructEnd()
4611
 
3431 rajveer 4612
  def validate(self):
4613
    return
4614
 
4615
 
94 ashish 4616
  def __repr__(self):
4617
    L = ['%s=%r' % (key, value)
4618
      for key, value in self.__dict__.iteritems()]
4619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4620
 
4621
  def __eq__(self, other):
4622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4623
 
4624
  def __ne__(self, other):
4625
    return not (self == other)
4626
 
5326 rajveer 4627
class createUser_result:
94 ashish 4628
  """
4629
  Attributes:
4630
   - success
559 chandransh 4631
   - ucex
94 ashish 4632
  """
4633
 
4634
  thrift_spec = (
559 chandransh 4635
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4636
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4637
  )
4638
 
559 chandransh 4639
  def __init__(self, success=None, ucex=None,):
94 ashish 4640
    self.success = success
559 chandransh 4641
    self.ucex = ucex
94 ashish 4642
 
4643
  def read(self, iprot):
4644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4646
      return
4647
    iprot.readStructBegin()
4648
    while True:
4649
      (fname, ftype, fid) = iprot.readFieldBegin()
4650
      if ftype == TType.STOP:
4651
        break
4652
      if fid == 0:
4653
        if ftype == TType.STRUCT:
559 chandransh 4654
          self.success = User()
94 ashish 4655
          self.success.read(iprot)
4656
        else:
4657
          iprot.skip(ftype)
4658
      elif fid == 1:
4659
        if ftype == TType.STRUCT:
559 chandransh 4660
          self.ucex = UserContextException()
4661
          self.ucex.read(iprot)
94 ashish 4662
        else:
4663
          iprot.skip(ftype)
4664
      else:
4665
        iprot.skip(ftype)
4666
      iprot.readFieldEnd()
4667
    iprot.readStructEnd()
4668
 
4669
  def write(self, oprot):
4670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4672
      return
5326 rajveer 4673
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4674
    if self.success is not None:
94 ashish 4675
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4676
      self.success.write(oprot)
4677
      oprot.writeFieldEnd()
3431 rajveer 4678
    if self.ucex is not None:
559 chandransh 4679
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4680
      self.ucex.write(oprot)
94 ashish 4681
      oprot.writeFieldEnd()
4682
    oprot.writeFieldStop()
4683
    oprot.writeStructEnd()
4684
 
3431 rajveer 4685
  def validate(self):
4686
    return
4687
 
4688
 
94 ashish 4689
  def __repr__(self):
4690
    L = ['%s=%r' % (key, value)
4691
      for key, value in self.__dict__.iteritems()]
4692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4693
 
4694
  def __eq__(self, other):
4695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4696
 
4697
  def __ne__(self, other):
4698
    return not (self == other)
4699
 
5326 rajveer 4700
class updateUser_args:
94 ashish 4701
  """
4702
  Attributes:
5326 rajveer 4703
   - user
94 ashish 4704
  """
4705
 
4706
  thrift_spec = (
4707
    None, # 0
5326 rajveer 4708
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4709
  )
4710
 
5326 rajveer 4711
  def __init__(self, user=None,):
4712
    self.user = user
94 ashish 4713
 
4714
  def read(self, iprot):
4715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4717
      return
4718
    iprot.readStructBegin()
4719
    while True:
4720
      (fname, ftype, fid) = iprot.readFieldBegin()
4721
      if ftype == TType.STOP:
4722
        break
4723
      if fid == 1:
5326 rajveer 4724
        if ftype == TType.STRUCT:
4725
          self.user = User()
4726
          self.user.read(iprot)
94 ashish 4727
        else:
4728
          iprot.skip(ftype)
4729
      else:
4730
        iprot.skip(ftype)
4731
      iprot.readFieldEnd()
4732
    iprot.readStructEnd()
4733
 
4734
  def write(self, oprot):
4735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4737
      return
5326 rajveer 4738
    oprot.writeStructBegin('updateUser_args')
4739
    if self.user is not None:
4740
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4741
      self.user.write(oprot)
94 ashish 4742
      oprot.writeFieldEnd()
4743
    oprot.writeFieldStop()
4744
    oprot.writeStructEnd()
4745
 
3431 rajveer 4746
  def validate(self):
4747
    return
4748
 
4749
 
94 ashish 4750
  def __repr__(self):
4751
    L = ['%s=%r' % (key, value)
4752
      for key, value in self.__dict__.iteritems()]
4753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4754
 
4755
  def __eq__(self, other):
4756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4757
 
4758
  def __ne__(self, other):
4759
    return not (self == other)
4760
 
5326 rajveer 4761
class updateUser_result:
94 ashish 4762
  """
4763
  Attributes:
4764
   - success
559 chandransh 4765
   - ucex
94 ashish 4766
  """
4767
 
4768
  thrift_spec = (
5326 rajveer 4769
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4770
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4771
  )
4772
 
559 chandransh 4773
  def __init__(self, success=None, ucex=None,):
94 ashish 4774
    self.success = success
559 chandransh 4775
    self.ucex = ucex
94 ashish 4776
 
4777
  def read(self, iprot):
4778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4780
      return
4781
    iprot.readStructBegin()
4782
    while True:
4783
      (fname, ftype, fid) = iprot.readFieldBegin()
4784
      if ftype == TType.STOP:
4785
        break
4786
      if fid == 0:
5326 rajveer 4787
        if ftype == TType.STRUCT:
4788
          self.success = User()
4789
          self.success.read(iprot)
94 ashish 4790
        else:
4791
          iprot.skip(ftype)
4792
      elif fid == 1:
4793
        if ftype == TType.STRUCT:
559 chandransh 4794
          self.ucex = UserContextException()
4795
          self.ucex.read(iprot)
94 ashish 4796
        else:
4797
          iprot.skip(ftype)
4798
      else:
4799
        iprot.skip(ftype)
4800
      iprot.readFieldEnd()
4801
    iprot.readStructEnd()
4802
 
4803
  def write(self, oprot):
4804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4806
      return
5326 rajveer 4807
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4808
    if self.success is not None:
5326 rajveer 4809
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4810
      self.success.write(oprot)
94 ashish 4811
      oprot.writeFieldEnd()
3431 rajveer 4812
    if self.ucex is not None:
559 chandransh 4813
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4814
      self.ucex.write(oprot)
94 ashish 4815
      oprot.writeFieldEnd()
4816
    oprot.writeFieldStop()
4817
    oprot.writeStructEnd()
4818
 
3431 rajveer 4819
  def validate(self):
4820
    return
4821
 
4822
 
94 ashish 4823
  def __repr__(self):
4824
    L = ['%s=%r' % (key, value)
4825
      for key, value in self.__dict__.iteritems()]
4826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4827
 
4828
  def __eq__(self, other):
4829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4830
 
4831
  def __ne__(self, other):
4832
    return not (self == other)
4833
 
559 chandransh 4834
class authenticateUser_args:
94 ashish 4835
  """
4836
  Attributes:
4837
   - email
4838
   - password
4839
  """
4840
 
4841
  thrift_spec = (
4842
    None, # 0
4843
    (1, TType.STRING, 'email', None, None, ), # 1
4844
    (2, TType.STRING, 'password', None, None, ), # 2
4845
  )
4846
 
4847
  def __init__(self, email=None, password=None,):
4848
    self.email = email
4849
    self.password = password
4850
 
4851
  def read(self, iprot):
4852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4854
      return
4855
    iprot.readStructBegin()
4856
    while True:
4857
      (fname, ftype, fid) = iprot.readFieldBegin()
4858
      if ftype == TType.STOP:
4859
        break
4860
      if fid == 1:
4861
        if ftype == TType.STRING:
4862
          self.email = iprot.readString();
4863
        else:
4864
          iprot.skip(ftype)
4865
      elif fid == 2:
4866
        if ftype == TType.STRING:
4867
          self.password = iprot.readString();
4868
        else:
4869
          iprot.skip(ftype)
4870
      else:
4871
        iprot.skip(ftype)
4872
      iprot.readFieldEnd()
4873
    iprot.readStructEnd()
4874
 
4875
  def write(self, oprot):
4876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4878
      return
559 chandransh 4879
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4880
    if self.email is not None:
94 ashish 4881
      oprot.writeFieldBegin('email', TType.STRING, 1)
4882
      oprot.writeString(self.email)
4883
      oprot.writeFieldEnd()
3431 rajveer 4884
    if self.password is not None:
94 ashish 4885
      oprot.writeFieldBegin('password', TType.STRING, 2)
4886
      oprot.writeString(self.password)
4887
      oprot.writeFieldEnd()
4888
    oprot.writeFieldStop()
4889
    oprot.writeStructEnd()
4890
 
3431 rajveer 4891
  def validate(self):
4892
    return
4893
 
4894
 
94 ashish 4895
  def __repr__(self):
4896
    L = ['%s=%r' % (key, value)
4897
      for key, value in self.__dict__.iteritems()]
4898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4899
 
4900
  def __eq__(self, other):
4901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4902
 
4903
  def __ne__(self, other):
4904
    return not (self == other)
4905
 
559 chandransh 4906
class authenticateUser_result:
94 ashish 4907
  """
4908
  Attributes:
4909
   - success
559 chandransh 4910
   - auex
94 ashish 4911
  """
4912
 
4913
  thrift_spec = (
559 chandransh 4914
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4915
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4916
  )
4917
 
559 chandransh 4918
  def __init__(self, success=None, auex=None,):
94 ashish 4919
    self.success = success
559 chandransh 4920
    self.auex = auex
94 ashish 4921
 
4922
  def read(self, iprot):
4923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4925
      return
4926
    iprot.readStructBegin()
4927
    while True:
4928
      (fname, ftype, fid) = iprot.readFieldBegin()
4929
      if ftype == TType.STOP:
4930
        break
4931
      if fid == 0:
4932
        if ftype == TType.STRUCT:
559 chandransh 4933
          self.success = User()
94 ashish 4934
          self.success.read(iprot)
4935
        else:
4936
          iprot.skip(ftype)
4937
      elif fid == 1:
4938
        if ftype == TType.STRUCT:
559 chandransh 4939
          self.auex = AuthenticationException()
4940
          self.auex.read(iprot)
94 ashish 4941
        else:
4942
          iprot.skip(ftype)
4943
      else:
4944
        iprot.skip(ftype)
4945
      iprot.readFieldEnd()
4946
    iprot.readStructEnd()
4947
 
4948
  def write(self, oprot):
4949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4951
      return
559 chandransh 4952
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4953
    if self.success is not None:
94 ashish 4954
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4955
      self.success.write(oprot)
4956
      oprot.writeFieldEnd()
3431 rajveer 4957
    if self.auex is not None:
559 chandransh 4958
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4959
      self.auex.write(oprot)
94 ashish 4960
      oprot.writeFieldEnd()
4961
    oprot.writeFieldStop()
4962
    oprot.writeStructEnd()
4963
 
3431 rajveer 4964
  def validate(self):
4965
    return
4966
 
4967
 
94 ashish 4968
  def __repr__(self):
4969
    L = ['%s=%r' % (key, value)
4970
      for key, value in self.__dict__.iteritems()]
4971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4972
 
4973
  def __eq__(self, other):
4974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4975
 
4976
  def __ne__(self, other):
4977
    return not (self == other)
4978
 
559 chandransh 4979
class userExists_args:
122 ashish 4980
  """
4981
  Attributes:
559 chandransh 4982
   - email
122 ashish 4983
  """
4984
 
4985
  thrift_spec = (
4986
    None, # 0
559 chandransh 4987
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4988
  )
4989
 
559 chandransh 4990
  def __init__(self, email=None,):
4991
    self.email = email
122 ashish 4992
 
4993
  def read(self, iprot):
4994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4996
      return
4997
    iprot.readStructBegin()
4998
    while True:
4999
      (fname, ftype, fid) = iprot.readFieldBegin()
5000
      if ftype == TType.STOP:
5001
        break
5002
      if fid == 1:
5003
        if ftype == TType.STRING:
559 chandransh 5004
          self.email = iprot.readString();
122 ashish 5005
        else:
5006
          iprot.skip(ftype)
559 chandransh 5007
      else:
5008
        iprot.skip(ftype)
5009
      iprot.readFieldEnd()
5010
    iprot.readStructEnd()
5011
 
5012
  def write(self, oprot):
5013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5015
      return
5016
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5017
    if self.email is not None:
559 chandransh 5018
      oprot.writeFieldBegin('email', TType.STRING, 1)
5019
      oprot.writeString(self.email)
5020
      oprot.writeFieldEnd()
5021
    oprot.writeFieldStop()
5022
    oprot.writeStructEnd()
5023
 
3431 rajveer 5024
  def validate(self):
5025
    return
5026
 
5027
 
559 chandransh 5028
  def __repr__(self):
5029
    L = ['%s=%r' % (key, value)
5030
      for key, value in self.__dict__.iteritems()]
5031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5032
 
5033
  def __eq__(self, other):
5034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5035
 
5036
  def __ne__(self, other):
5037
    return not (self == other)
5038
 
5039
class userExists_result:
5040
  """
5041
  Attributes:
5042
   - success
5043
   - ucx
5044
  """
5045
 
5046
  thrift_spec = (
5047
    (0, TType.BOOL, 'success', None, None, ), # 0
5048
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5049
  )
5050
 
5051
  def __init__(self, success=None, ucx=None,):
5052
    self.success = success
5053
    self.ucx = ucx
5054
 
5055
  def read(self, iprot):
5056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5058
      return
5059
    iprot.readStructBegin()
5060
    while True:
5061
      (fname, ftype, fid) = iprot.readFieldBegin()
5062
      if ftype == TType.STOP:
5063
        break
5064
      if fid == 0:
5065
        if ftype == TType.BOOL:
5066
          self.success = iprot.readBool();
5067
        else:
5068
          iprot.skip(ftype)
5069
      elif fid == 1:
5070
        if ftype == TType.STRUCT:
5071
          self.ucx = UserContextException()
5072
          self.ucx.read(iprot)
5073
        else:
5074
          iprot.skip(ftype)
5075
      else:
5076
        iprot.skip(ftype)
5077
      iprot.readFieldEnd()
5078
    iprot.readStructEnd()
5079
 
5080
  def write(self, oprot):
5081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5083
      return
5084
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5085
    if self.success is not None:
559 chandransh 5086
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5087
      oprot.writeBool(self.success)
5088
      oprot.writeFieldEnd()
3431 rajveer 5089
    if self.ucx is not None:
559 chandransh 5090
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5091
      self.ucx.write(oprot)
5092
      oprot.writeFieldEnd()
5093
    oprot.writeFieldStop()
5094
    oprot.writeStructEnd()
5095
 
3431 rajveer 5096
  def validate(self):
5097
    return
5098
 
5099
 
559 chandransh 5100
  def __repr__(self):
5101
    L = ['%s=%r' % (key, value)
5102
      for key, value in self.__dict__.iteritems()]
5103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5104
 
5105
  def __eq__(self, other):
5106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5107
 
5108
  def __ne__(self, other):
5109
    return not (self == other)
5110
 
5111
class addAddressForUser_args:
5112
  """
5113
  Attributes:
5114
   - userId
5115
   - address
5116
   - setDefault
5117
  """
5118
 
5119
  thrift_spec = (
5120
    None, # 0
5121
    (1, TType.I64, 'userId', None, None, ), # 1
5122
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5123
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5124
  )
5125
 
567 rajveer 5126
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5127
    self.userId = userId
5128
    self.address = address
5129
    self.setDefault = setDefault
5130
 
5131
  def read(self, iprot):
5132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5134
      return
5135
    iprot.readStructBegin()
5136
    while True:
5137
      (fname, ftype, fid) = iprot.readFieldBegin()
5138
      if ftype == TType.STOP:
5139
        break
5140
      if fid == 1:
5141
        if ftype == TType.I64:
5142
          self.userId = iprot.readI64();
5143
        else:
5144
          iprot.skip(ftype)
122 ashish 5145
      elif fid == 2:
559 chandransh 5146
        if ftype == TType.STRUCT:
5147
          self.address = Address()
5148
          self.address.read(iprot)
122 ashish 5149
        else:
5150
          iprot.skip(ftype)
5151
      elif fid == 3:
5152
        if ftype == TType.BOOL:
559 chandransh 5153
          self.setDefault = iprot.readBool();
122 ashish 5154
        else:
5155
          iprot.skip(ftype)
5156
      else:
5157
        iprot.skip(ftype)
5158
      iprot.readFieldEnd()
5159
    iprot.readStructEnd()
5160
 
5161
  def write(self, oprot):
5162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5164
      return
559 chandransh 5165
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5166
    if self.userId is not None:
559 chandransh 5167
      oprot.writeFieldBegin('userId', TType.I64, 1)
5168
      oprot.writeI64(self.userId)
122 ashish 5169
      oprot.writeFieldEnd()
3431 rajveer 5170
    if self.address is not None:
559 chandransh 5171
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5172
      self.address.write(oprot)
122 ashish 5173
      oprot.writeFieldEnd()
3431 rajveer 5174
    if self.setDefault is not None:
567 rajveer 5175
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5176
      oprot.writeBool(self.setDefault)
5177
      oprot.writeFieldEnd()
122 ashish 5178
    oprot.writeFieldStop()
5179
    oprot.writeStructEnd()
5180
 
3431 rajveer 5181
  def validate(self):
5182
    return
5183
 
5184
 
122 ashish 5185
  def __repr__(self):
5186
    L = ['%s=%r' % (key, value)
5187
      for key, value in self.__dict__.iteritems()]
5188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5189
 
5190
  def __eq__(self, other):
5191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5192
 
5193
  def __ne__(self, other):
5194
    return not (self == other)
5195
 
559 chandransh 5196
class addAddressForUser_result:
122 ashish 5197
  """
5198
  Attributes:
5199
   - success
559 chandransh 5200
   - ucx
122 ashish 5201
  """
5202
 
5203
  thrift_spec = (
567 rajveer 5204
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5205
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5206
  )
5207
 
559 chandransh 5208
  def __init__(self, success=None, ucx=None,):
122 ashish 5209
    self.success = success
559 chandransh 5210
    self.ucx = ucx
122 ashish 5211
 
5212
  def read(self, iprot):
5213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5215
      return
5216
    iprot.readStructBegin()
5217
    while True:
5218
      (fname, ftype, fid) = iprot.readFieldBegin()
5219
      if ftype == TType.STOP:
5220
        break
5221
      if fid == 0:
567 rajveer 5222
        if ftype == TType.I64:
5223
          self.success = iprot.readI64();
122 ashish 5224
        else:
5225
          iprot.skip(ftype)
5226
      elif fid == 1:
5227
        if ftype == TType.STRUCT:
559 chandransh 5228
          self.ucx = UserContextException()
5229
          self.ucx.read(iprot)
122 ashish 5230
        else:
5231
          iprot.skip(ftype)
5232
      else:
5233
        iprot.skip(ftype)
5234
      iprot.readFieldEnd()
5235
    iprot.readStructEnd()
5236
 
5237
  def write(self, oprot):
5238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5240
      return
559 chandransh 5241
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5242
    if self.success is not None:
567 rajveer 5243
      oprot.writeFieldBegin('success', TType.I64, 0)
5244
      oprot.writeI64(self.success)
122 ashish 5245
      oprot.writeFieldEnd()
3431 rajveer 5246
    if self.ucx is not None:
559 chandransh 5247
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5248
      self.ucx.write(oprot)
122 ashish 5249
      oprot.writeFieldEnd()
5250
    oprot.writeFieldStop()
5251
    oprot.writeStructEnd()
5252
 
3431 rajveer 5253
  def validate(self):
5254
    return
5255
 
5256
 
122 ashish 5257
  def __repr__(self):
5258
    L = ['%s=%r' % (key, value)
5259
      for key, value in self.__dict__.iteritems()]
5260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5261
 
5262
  def __eq__(self, other):
5263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5264
 
5265
  def __ne__(self, other):
5266
    return not (self == other)
5267
 
559 chandransh 5268
class removeAddressForUser_args:
94 ashish 5269
  """
5270
  Attributes:
559 chandransh 5271
   - userid
5272
   - addressId
94 ashish 5273
  """
5274
 
5275
  thrift_spec = (
5276
    None, # 0
559 chandransh 5277
    (1, TType.I64, 'userid', None, None, ), # 1
5278
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5279
  )
5280
 
559 chandransh 5281
  def __init__(self, userid=None, addressId=None,):
5282
    self.userid = userid
5283
    self.addressId = addressId
94 ashish 5284
 
5285
  def read(self, iprot):
5286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5288
      return
5289
    iprot.readStructBegin()
5290
    while True:
5291
      (fname, ftype, fid) = iprot.readFieldBegin()
5292
      if ftype == TType.STOP:
5293
        break
5294
      if fid == 1:
559 chandransh 5295
        if ftype == TType.I64:
5296
          self.userid = iprot.readI64();
94 ashish 5297
        else:
5298
          iprot.skip(ftype)
559 chandransh 5299
      elif fid == 2:
5300
        if ftype == TType.I64:
5301
          self.addressId = iprot.readI64();
5302
        else:
5303
          iprot.skip(ftype)
94 ashish 5304
      else:
5305
        iprot.skip(ftype)
5306
      iprot.readFieldEnd()
5307
    iprot.readStructEnd()
5308
 
5309
  def write(self, oprot):
5310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5312
      return
559 chandransh 5313
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5314
    if self.userid is not None:
559 chandransh 5315
      oprot.writeFieldBegin('userid', TType.I64, 1)
5316
      oprot.writeI64(self.userid)
94 ashish 5317
      oprot.writeFieldEnd()
3431 rajveer 5318
    if self.addressId is not None:
559 chandransh 5319
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5320
      oprot.writeI64(self.addressId)
5321
      oprot.writeFieldEnd()
94 ashish 5322
    oprot.writeFieldStop()
5323
    oprot.writeStructEnd()
5324
 
3431 rajveer 5325
  def validate(self):
5326
    return
5327
 
5328
 
94 ashish 5329
  def __repr__(self):
5330
    L = ['%s=%r' % (key, value)
5331
      for key, value in self.__dict__.iteritems()]
5332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5333
 
5334
  def __eq__(self, other):
5335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5336
 
5337
  def __ne__(self, other):
5338
    return not (self == other)
5339
 
559 chandransh 5340
class removeAddressForUser_result:
94 ashish 5341
  """
5342
  Attributes:
5343
   - success
5344
   - ucx
5345
  """
5346
 
5347
  thrift_spec = (
5348
    (0, TType.BOOL, 'success', None, None, ), # 0
5349
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5350
  )
5351
 
5352
  def __init__(self, success=None, ucx=None,):
5353
    self.success = success
5354
    self.ucx = ucx
5355
 
5356
  def read(self, iprot):
5357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5359
      return
5360
    iprot.readStructBegin()
5361
    while True:
5362
      (fname, ftype, fid) = iprot.readFieldBegin()
5363
      if ftype == TType.STOP:
5364
        break
5365
      if fid == 0:
5366
        if ftype == TType.BOOL:
5367
          self.success = iprot.readBool();
5368
        else:
5369
          iprot.skip(ftype)
5370
      elif fid == 1:
5371
        if ftype == TType.STRUCT:
5372
          self.ucx = UserContextException()
5373
          self.ucx.read(iprot)
5374
        else:
5375
          iprot.skip(ftype)
5376
      else:
5377
        iprot.skip(ftype)
5378
      iprot.readFieldEnd()
5379
    iprot.readStructEnd()
5380
 
5381
  def write(self, oprot):
5382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5384
      return
559 chandransh 5385
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5386
    if self.success is not None:
94 ashish 5387
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5388
      oprot.writeBool(self.success)
5389
      oprot.writeFieldEnd()
3431 rajveer 5390
    if self.ucx is not None:
94 ashish 5391
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5392
      self.ucx.write(oprot)
5393
      oprot.writeFieldEnd()
5394
    oprot.writeFieldStop()
5395
    oprot.writeStructEnd()
5396
 
3431 rajveer 5397
  def validate(self):
5398
    return
5399
 
5400
 
94 ashish 5401
  def __repr__(self):
5402
    L = ['%s=%r' % (key, value)
5403
      for key, value in self.__dict__.iteritems()]
5404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5405
 
5406
  def __eq__(self, other):
5407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5408
 
5409
  def __ne__(self, other):
5410
    return not (self == other)
5411
 
559 chandransh 5412
class setUserAsLoggedIn_args:
94 ashish 5413
  """
5414
  Attributes:
559 chandransh 5415
   - userId
94 ashish 5416
   - timestamp
5417
  """
5418
 
5419
  thrift_spec = (
5420
    None, # 0
559 chandransh 5421
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5422
    (2, TType.I64, 'timestamp', None, None, ), # 2
5423
  )
5424
 
559 chandransh 5425
  def __init__(self, userId=None, timestamp=None,):
5426
    self.userId = userId
94 ashish 5427
    self.timestamp = timestamp
5428
 
5429
  def read(self, iprot):
5430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5432
      return
5433
    iprot.readStructBegin()
5434
    while True:
5435
      (fname, ftype, fid) = iprot.readFieldBegin()
5436
      if ftype == TType.STOP:
5437
        break
5438
      if fid == 1:
559 chandransh 5439
        if ftype == TType.I64:
5440
          self.userId = iprot.readI64();
94 ashish 5441
        else:
5442
          iprot.skip(ftype)
5443
      elif fid == 2:
5444
        if ftype == TType.I64:
5445
          self.timestamp = iprot.readI64();
5446
        else:
5447
          iprot.skip(ftype)
5448
      else:
5449
        iprot.skip(ftype)
5450
      iprot.readFieldEnd()
5451
    iprot.readStructEnd()
5452
 
5453
  def write(self, oprot):
5454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5456
      return
559 chandransh 5457
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5458
    if self.userId is not None:
559 chandransh 5459
      oprot.writeFieldBegin('userId', TType.I64, 1)
5460
      oprot.writeI64(self.userId)
94 ashish 5461
      oprot.writeFieldEnd()
3431 rajveer 5462
    if self.timestamp is not None:
94 ashish 5463
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5464
      oprot.writeI64(self.timestamp)
5465
      oprot.writeFieldEnd()
5466
    oprot.writeFieldStop()
5467
    oprot.writeStructEnd()
5468
 
3431 rajveer 5469
  def validate(self):
5470
    return
5471
 
5472
 
94 ashish 5473
  def __repr__(self):
5474
    L = ['%s=%r' % (key, value)
5475
      for key, value in self.__dict__.iteritems()]
5476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5477
 
5478
  def __eq__(self, other):
5479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5480
 
5481
  def __ne__(self, other):
5482
    return not (self == other)
5483
 
559 chandransh 5484
class setUserAsLoggedIn_result:
94 ashish 5485
  """
5486
  Attributes:
5487
   - success
5488
   - ucx
5489
  """
5490
 
5491
  thrift_spec = (
5492
    (0, TType.BOOL, 'success', None, None, ), # 0
5493
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5494
  )
5495
 
5496
  def __init__(self, success=None, ucx=None,):
5497
    self.success = success
5498
    self.ucx = ucx
5499
 
5500
  def read(self, iprot):
5501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5503
      return
5504
    iprot.readStructBegin()
5505
    while True:
5506
      (fname, ftype, fid) = iprot.readFieldBegin()
5507
      if ftype == TType.STOP:
5508
        break
5509
      if fid == 0:
5510
        if ftype == TType.BOOL:
5511
          self.success = iprot.readBool();
5512
        else:
5513
          iprot.skip(ftype)
5514
      elif fid == 1:
5515
        if ftype == TType.STRUCT:
5516
          self.ucx = UserContextException()
5517
          self.ucx.read(iprot)
5518
        else:
5519
          iprot.skip(ftype)
5520
      else:
5521
        iprot.skip(ftype)
5522
      iprot.readFieldEnd()
5523
    iprot.readStructEnd()
5524
 
5525
  def write(self, oprot):
5526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5528
      return
559 chandransh 5529
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5530
    if self.success is not None:
94 ashish 5531
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5532
      oprot.writeBool(self.success)
5533
      oprot.writeFieldEnd()
3431 rajveer 5534
    if self.ucx is not None:
94 ashish 5535
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5536
      self.ucx.write(oprot)
5537
      oprot.writeFieldEnd()
5538
    oprot.writeFieldStop()
5539
    oprot.writeStructEnd()
5540
 
3431 rajveer 5541
  def validate(self):
5542
    return
5543
 
5544
 
94 ashish 5545
  def __repr__(self):
5546
    L = ['%s=%r' % (key, value)
5547
      for key, value in self.__dict__.iteritems()]
5548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5549
 
5550
  def __eq__(self, other):
5551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5552
 
5553
  def __ne__(self, other):
5554
    return not (self == other)
5555
 
559 chandransh 5556
class setUserAsLoggedOut_args:
94 ashish 5557
  """
5558
  Attributes:
5559
   - userid
5560
   - timestamp
5561
  """
5562
 
5563
  thrift_spec = (
5564
    None, # 0
559 chandransh 5565
    (1, TType.I64, 'userid', None, None, ), # 1
5566
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5567
  )
5568
 
559 chandransh 5569
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5570
    self.userid = userid
5571
    self.timestamp = timestamp
5572
 
5573
  def read(self, iprot):
5574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5576
      return
5577
    iprot.readStructBegin()
5578
    while True:
5579
      (fname, ftype, fid) = iprot.readFieldBegin()
5580
      if ftype == TType.STOP:
5581
        break
5582
      if fid == 1:
5583
        if ftype == TType.I64:
5584
          self.userid = iprot.readI64();
5585
        else:
5586
          iprot.skip(ftype)
559 chandransh 5587
      elif fid == 2:
94 ashish 5588
        if ftype == TType.I64:
5589
          self.timestamp = iprot.readI64();
5590
        else:
5591
          iprot.skip(ftype)
5592
      else:
5593
        iprot.skip(ftype)
5594
      iprot.readFieldEnd()
5595
    iprot.readStructEnd()
5596
 
5597
  def write(self, oprot):
5598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5600
      return
559 chandransh 5601
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5602
    if self.userid is not None:
559 chandransh 5603
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5604
      oprot.writeI64(self.userid)
5605
      oprot.writeFieldEnd()
3431 rajveer 5606
    if self.timestamp is not None:
559 chandransh 5607
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5608
      oprot.writeI64(self.timestamp)
5609
      oprot.writeFieldEnd()
5610
    oprot.writeFieldStop()
5611
    oprot.writeStructEnd()
5612
 
3431 rajveer 5613
  def validate(self):
5614
    return
5615
 
5616
 
94 ashish 5617
  def __repr__(self):
5618
    L = ['%s=%r' % (key, value)
5619
      for key, value in self.__dict__.iteritems()]
5620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5621
 
5622
  def __eq__(self, other):
5623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5624
 
5625
  def __ne__(self, other):
5626
    return not (self == other)
5627
 
559 chandransh 5628
class setUserAsLoggedOut_result:
94 ashish 5629
  """
5630
  Attributes:
5631
   - success
5632
   - ucx
5633
  """
5634
 
5635
  thrift_spec = (
5636
    (0, TType.BOOL, 'success', None, None, ), # 0
5637
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5638
  )
5639
 
5640
  def __init__(self, success=None, ucx=None,):
5641
    self.success = success
5642
    self.ucx = ucx
5643
 
5644
  def read(self, iprot):
5645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5647
      return
5648
    iprot.readStructBegin()
5649
    while True:
5650
      (fname, ftype, fid) = iprot.readFieldBegin()
5651
      if ftype == TType.STOP:
5652
        break
5653
      if fid == 0:
5654
        if ftype == TType.BOOL:
5655
          self.success = iprot.readBool();
5656
        else:
5657
          iprot.skip(ftype)
5658
      elif fid == 1:
5659
        if ftype == TType.STRUCT:
5660
          self.ucx = UserContextException()
5661
          self.ucx.read(iprot)
5662
        else:
5663
          iprot.skip(ftype)
5664
      else:
5665
        iprot.skip(ftype)
5666
      iprot.readFieldEnd()
5667
    iprot.readStructEnd()
5668
 
5669
  def write(self, oprot):
5670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5672
      return
559 chandransh 5673
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5674
    if self.success is not None:
94 ashish 5675
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5676
      oprot.writeBool(self.success)
5677
      oprot.writeFieldEnd()
3431 rajveer 5678
    if self.ucx is not None:
94 ashish 5679
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5680
      self.ucx.write(oprot)
5681
      oprot.writeFieldEnd()
5682
    oprot.writeFieldStop()
5683
    oprot.writeStructEnd()
5684
 
3431 rajveer 5685
  def validate(self):
5686
    return
5687
 
5688
 
94 ashish 5689
  def __repr__(self):
5690
    L = ['%s=%r' % (key, value)
5691
      for key, value in self.__dict__.iteritems()]
5692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5693
 
5694
  def __eq__(self, other):
5695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5696
 
5697
  def __ne__(self, other):
5698
    return not (self == other)
5699
 
559 chandransh 5700
class setDefaultAddress_args:
94 ashish 5701
  """
5702
  Attributes:
5703
   - userid
5704
   - addressId
5705
  """
5706
 
5707
  thrift_spec = (
5708
    None, # 0
5709
    (1, TType.I64, 'userid', None, None, ), # 1
5710
    (2, TType.I64, 'addressId', None, None, ), # 2
5711
  )
5712
 
5713
  def __init__(self, userid=None, addressId=None,):
5714
    self.userid = userid
5715
    self.addressId = addressId
5716
 
5717
  def read(self, iprot):
5718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5720
      return
5721
    iprot.readStructBegin()
5722
    while True:
5723
      (fname, ftype, fid) = iprot.readFieldBegin()
5724
      if ftype == TType.STOP:
5725
        break
5726
      if fid == 1:
5727
        if ftype == TType.I64:
5728
          self.userid = iprot.readI64();
5729
        else:
5730
          iprot.skip(ftype)
5731
      elif fid == 2:
5732
        if ftype == TType.I64:
5733
          self.addressId = iprot.readI64();
5734
        else:
5735
          iprot.skip(ftype)
5736
      else:
5737
        iprot.skip(ftype)
5738
      iprot.readFieldEnd()
5739
    iprot.readStructEnd()
5740
 
5741
  def write(self, oprot):
5742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5744
      return
559 chandransh 5745
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5746
    if self.userid is not None:
94 ashish 5747
      oprot.writeFieldBegin('userid', TType.I64, 1)
5748
      oprot.writeI64(self.userid)
5749
      oprot.writeFieldEnd()
3431 rajveer 5750
    if self.addressId is not None:
94 ashish 5751
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5752
      oprot.writeI64(self.addressId)
5753
      oprot.writeFieldEnd()
5754
    oprot.writeFieldStop()
5755
    oprot.writeStructEnd()
5756
 
3431 rajveer 5757
  def validate(self):
5758
    return
5759
 
5760
 
94 ashish 5761
  def __repr__(self):
5762
    L = ['%s=%r' % (key, value)
5763
      for key, value in self.__dict__.iteritems()]
5764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5765
 
5766
  def __eq__(self, other):
5767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5768
 
5769
  def __ne__(self, other):
5770
    return not (self == other)
5771
 
559 chandransh 5772
class setDefaultAddress_result:
94 ashish 5773
  """
5774
  Attributes:
5775
   - success
5776
   - ucx
5777
  """
5778
 
5779
  thrift_spec = (
5780
    (0, TType.BOOL, 'success', None, None, ), # 0
5781
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5782
  )
5783
 
5784
  def __init__(self, success=None, ucx=None,):
5785
    self.success = success
5786
    self.ucx = ucx
5787
 
5788
  def read(self, iprot):
5789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5791
      return
5792
    iprot.readStructBegin()
5793
    while True:
5794
      (fname, ftype, fid) = iprot.readFieldBegin()
5795
      if ftype == TType.STOP:
5796
        break
5797
      if fid == 0:
5798
        if ftype == TType.BOOL:
5799
          self.success = iprot.readBool();
5800
        else:
5801
          iprot.skip(ftype)
5802
      elif fid == 1:
5803
        if ftype == TType.STRUCT:
5804
          self.ucx = UserContextException()
5805
          self.ucx.read(iprot)
5806
        else:
5807
          iprot.skip(ftype)
5808
      else:
5809
        iprot.skip(ftype)
5810
      iprot.readFieldEnd()
5811
    iprot.readStructEnd()
5812
 
5813
  def write(self, oprot):
5814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5816
      return
559 chandransh 5817
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5818
    if self.success is not None:
94 ashish 5819
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5820
      oprot.writeBool(self.success)
5821
      oprot.writeFieldEnd()
3431 rajveer 5822
    if self.ucx is not None:
94 ashish 5823
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5824
      self.ucx.write(oprot)
5825
      oprot.writeFieldEnd()
5826
    oprot.writeFieldStop()
5827
    oprot.writeStructEnd()
5828
 
3431 rajveer 5829
  def validate(self):
5830
    return
5831
 
5832
 
94 ashish 5833
  def __repr__(self):
5834
    L = ['%s=%r' % (key, value)
5835
      for key, value in self.__dict__.iteritems()]
5836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5837
 
5838
  def __eq__(self, other):
5839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5840
 
5841
  def __ne__(self, other):
5842
    return not (self == other)
5843
 
559 chandransh 5844
class updatePassword_args:
94 ashish 5845
  """
5846
  Attributes:
559 chandransh 5847
   - userid
594 rajveer 5848
   - oldPassword
5849
   - newPassword
94 ashish 5850
  """
5851
 
5852
  thrift_spec = (
5853
    None, # 0
559 chandransh 5854
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5855
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5856
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5857
  )
5858
 
594 rajveer 5859
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5860
    self.userid = userid
594 rajveer 5861
    self.oldPassword = oldPassword
5862
    self.newPassword = newPassword
94 ashish 5863
 
5864
  def read(self, iprot):
5865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5867
      return
5868
    iprot.readStructBegin()
5869
    while True:
5870
      (fname, ftype, fid) = iprot.readFieldBegin()
5871
      if ftype == TType.STOP:
5872
        break
5873
      if fid == 1:
5874
        if ftype == TType.I64:
559 chandransh 5875
          self.userid = iprot.readI64();
94 ashish 5876
        else:
5877
          iprot.skip(ftype)
5878
      elif fid == 2:
559 chandransh 5879
        if ftype == TType.STRING:
594 rajveer 5880
          self.oldPassword = iprot.readString();
94 ashish 5881
        else:
5882
          iprot.skip(ftype)
594 rajveer 5883
      elif fid == 3:
5884
        if ftype == TType.STRING:
5885
          self.newPassword = iprot.readString();
5886
        else:
5887
          iprot.skip(ftype)
94 ashish 5888
      else:
5889
        iprot.skip(ftype)
5890
      iprot.readFieldEnd()
5891
    iprot.readStructEnd()
5892
 
5893
  def write(self, oprot):
5894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5896
      return
559 chandransh 5897
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5898
    if self.userid is not None:
559 chandransh 5899
      oprot.writeFieldBegin('userid', TType.I64, 1)
5900
      oprot.writeI64(self.userid)
94 ashish 5901
      oprot.writeFieldEnd()
3431 rajveer 5902
    if self.oldPassword is not None:
594 rajveer 5903
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5904
      oprot.writeString(self.oldPassword)
94 ashish 5905
      oprot.writeFieldEnd()
3431 rajveer 5906
    if self.newPassword is not None:
594 rajveer 5907
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5908
      oprot.writeString(self.newPassword)
5909
      oprot.writeFieldEnd()
94 ashish 5910
    oprot.writeFieldStop()
5911
    oprot.writeStructEnd()
5912
 
3431 rajveer 5913
  def validate(self):
5914
    return
5915
 
5916
 
94 ashish 5917
  def __repr__(self):
5918
    L = ['%s=%r' % (key, value)
5919
      for key, value in self.__dict__.iteritems()]
5920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5921
 
5922
  def __eq__(self, other):
5923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5924
 
5925
  def __ne__(self, other):
5926
    return not (self == other)
5927
 
559 chandransh 5928
class updatePassword_result:
94 ashish 5929
  """
5930
  Attributes:
5931
   - success
5932
   - ucx
5933
  """
5934
 
5935
  thrift_spec = (
5936
    (0, TType.BOOL, 'success', None, None, ), # 0
5937
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5938
  )
5939
 
5940
  def __init__(self, success=None, ucx=None,):
5941
    self.success = success
5942
    self.ucx = ucx
5943
 
5944
  def read(self, iprot):
5945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5947
      return
5948
    iprot.readStructBegin()
5949
    while True:
5950
      (fname, ftype, fid) = iprot.readFieldBegin()
5951
      if ftype == TType.STOP:
5952
        break
5953
      if fid == 0:
5954
        if ftype == TType.BOOL:
5955
          self.success = iprot.readBool();
5956
        else:
5957
          iprot.skip(ftype)
5958
      elif fid == 1:
5959
        if ftype == TType.STRUCT:
5960
          self.ucx = UserContextException()
5961
          self.ucx.read(iprot)
5962
        else:
5963
          iprot.skip(ftype)
5964
      else:
5965
        iprot.skip(ftype)
5966
      iprot.readFieldEnd()
5967
    iprot.readStructEnd()
5968
 
5969
  def write(self, oprot):
5970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5972
      return
559 chandransh 5973
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5974
    if self.success is not None:
94 ashish 5975
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5976
      oprot.writeBool(self.success)
5977
      oprot.writeFieldEnd()
3431 rajveer 5978
    if self.ucx is not None:
94 ashish 5979
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5980
      self.ucx.write(oprot)
5981
      oprot.writeFieldEnd()
5982
    oprot.writeFieldStop()
5983
    oprot.writeStructEnd()
5984
 
3431 rajveer 5985
  def validate(self):
5986
    return
5987
 
5988
 
94 ashish 5989
  def __repr__(self):
5990
    L = ['%s=%r' % (key, value)
5991
      for key, value in self.__dict__.iteritems()]
5992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5993
 
5994
  def __eq__(self, other):
5995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5996
 
5997
  def __ne__(self, other):
5998
    return not (self == other)
5999
 
581 rajveer 6000
class forgotPassword_args:
6001
  """
6002
  Attributes:
6003
   - email
884 rajveer 6004
   - newPassword
581 rajveer 6005
  """
6006
 
6007
  thrift_spec = (
6008
    None, # 0
6009
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6010
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6011
  )
6012
 
884 rajveer 6013
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6014
    self.email = email
884 rajveer 6015
    self.newPassword = newPassword
581 rajveer 6016
 
6017
  def read(self, iprot):
6018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6020
      return
6021
    iprot.readStructBegin()
6022
    while True:
6023
      (fname, ftype, fid) = iprot.readFieldBegin()
6024
      if ftype == TType.STOP:
6025
        break
6026
      if fid == 1:
6027
        if ftype == TType.STRING:
6028
          self.email = iprot.readString();
6029
        else:
6030
          iprot.skip(ftype)
884 rajveer 6031
      elif fid == 2:
6032
        if ftype == TType.STRING:
6033
          self.newPassword = iprot.readString();
6034
        else:
6035
          iprot.skip(ftype)
581 rajveer 6036
      else:
6037
        iprot.skip(ftype)
6038
      iprot.readFieldEnd()
6039
    iprot.readStructEnd()
6040
 
6041
  def write(self, oprot):
6042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6044
      return
6045
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6046
    if self.email is not None:
581 rajveer 6047
      oprot.writeFieldBegin('email', TType.STRING, 1)
6048
      oprot.writeString(self.email)
6049
      oprot.writeFieldEnd()
3431 rajveer 6050
    if self.newPassword is not None:
884 rajveer 6051
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6052
      oprot.writeString(self.newPassword)
6053
      oprot.writeFieldEnd()
581 rajveer 6054
    oprot.writeFieldStop()
6055
    oprot.writeStructEnd()
6056
 
3431 rajveer 6057
  def validate(self):
6058
    return
6059
 
6060
 
581 rajveer 6061
  def __repr__(self):
6062
    L = ['%s=%r' % (key, value)
6063
      for key, value in self.__dict__.iteritems()]
6064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6065
 
6066
  def __eq__(self, other):
6067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6068
 
6069
  def __ne__(self, other):
6070
    return not (self == other)
6071
 
6072
class forgotPassword_result:
6073
  """
6074
  Attributes:
6075
   - success
6076
   - ucx
6077
  """
6078
 
6079
  thrift_spec = (
6080
    (0, TType.BOOL, 'success', None, None, ), # 0
6081
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6082
  )
6083
 
6084
  def __init__(self, success=None, ucx=None,):
6085
    self.success = success
6086
    self.ucx = ucx
6087
 
6088
  def read(self, iprot):
6089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6091
      return
6092
    iprot.readStructBegin()
6093
    while True:
6094
      (fname, ftype, fid) = iprot.readFieldBegin()
6095
      if ftype == TType.STOP:
6096
        break
6097
      if fid == 0:
6098
        if ftype == TType.BOOL:
6099
          self.success = iprot.readBool();
6100
        else:
6101
          iprot.skip(ftype)
6102
      elif fid == 1:
6103
        if ftype == TType.STRUCT:
6104
          self.ucx = UserContextException()
6105
          self.ucx.read(iprot)
6106
        else:
6107
          iprot.skip(ftype)
6108
      else:
6109
        iprot.skip(ftype)
6110
      iprot.readFieldEnd()
6111
    iprot.readStructEnd()
6112
 
6113
  def write(self, oprot):
6114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6116
      return
6117
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6118
    if self.success is not None:
581 rajveer 6119
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6120
      oprot.writeBool(self.success)
6121
      oprot.writeFieldEnd()
3431 rajveer 6122
    if self.ucx is not None:
581 rajveer 6123
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6124
      self.ucx.write(oprot)
6125
      oprot.writeFieldEnd()
6126
    oprot.writeFieldStop()
6127
    oprot.writeStructEnd()
6128
 
3431 rajveer 6129
  def validate(self):
6130
    return
6131
 
6132
 
581 rajveer 6133
  def __repr__(self):
6134
    L = ['%s=%r' % (key, value)
6135
      for key, value in self.__dict__.iteritems()]
6136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6137
 
6138
  def __eq__(self, other):
6139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6140
 
6141
  def __ne__(self, other):
6142
    return not (self == other)
6143
 
594 rajveer 6144
class getAllAddressesForUser_args:
6145
  """
6146
  Attributes:
6147
   - userId
6148
  """
6149
 
6150
  thrift_spec = (
6151
    None, # 0
6152
    (1, TType.I64, 'userId', None, None, ), # 1
6153
  )
6154
 
6155
  def __init__(self, userId=None,):
6156
    self.userId = userId
6157
 
6158
  def read(self, iprot):
6159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6161
      return
6162
    iprot.readStructBegin()
6163
    while True:
6164
      (fname, ftype, fid) = iprot.readFieldBegin()
6165
      if ftype == TType.STOP:
6166
        break
6167
      if fid == 1:
6168
        if ftype == TType.I64:
6169
          self.userId = iprot.readI64();
6170
        else:
6171
          iprot.skip(ftype)
6172
      else:
6173
        iprot.skip(ftype)
6174
      iprot.readFieldEnd()
6175
    iprot.readStructEnd()
6176
 
6177
  def write(self, oprot):
6178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6180
      return
6181
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6182
    if self.userId is not None:
594 rajveer 6183
      oprot.writeFieldBegin('userId', TType.I64, 1)
6184
      oprot.writeI64(self.userId)
6185
      oprot.writeFieldEnd()
6186
    oprot.writeFieldStop()
6187
    oprot.writeStructEnd()
6188
 
3431 rajveer 6189
  def validate(self):
6190
    return
6191
 
6192
 
594 rajveer 6193
  def __repr__(self):
6194
    L = ['%s=%r' % (key, value)
6195
      for key, value in self.__dict__.iteritems()]
6196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6197
 
6198
  def __eq__(self, other):
6199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6200
 
6201
  def __ne__(self, other):
6202
    return not (self == other)
6203
 
6204
class getAllAddressesForUser_result:
6205
  """
6206
  Attributes:
6207
   - success
6208
   - ucx
6209
  """
6210
 
6211
  thrift_spec = (
6212
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6213
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6214
  )
6215
 
6216
  def __init__(self, success=None, ucx=None,):
6217
    self.success = success
6218
    self.ucx = ucx
6219
 
6220
  def read(self, iprot):
6221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6223
      return
6224
    iprot.readStructBegin()
6225
    while True:
6226
      (fname, ftype, fid) = iprot.readFieldBegin()
6227
      if ftype == TType.STOP:
6228
        break
6229
      if fid == 0:
6230
        if ftype == TType.LIST:
6231
          self.success = []
6736 amit.gupta 6232
          (_etype86, _size83) = iprot.readListBegin()
6233
          for _i87 in xrange(_size83):
6234
            _elem88 = Address()
6235
            _elem88.read(iprot)
6236
            self.success.append(_elem88)
594 rajveer 6237
          iprot.readListEnd()
6238
        else:
6239
          iprot.skip(ftype)
6240
      elif fid == 1:
6241
        if ftype == TType.STRUCT:
6242
          self.ucx = UserContextException()
6243
          self.ucx.read(iprot)
6244
        else:
6245
          iprot.skip(ftype)
6246
      else:
6247
        iprot.skip(ftype)
6248
      iprot.readFieldEnd()
6249
    iprot.readStructEnd()
6250
 
6251
  def write(self, oprot):
6252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6254
      return
6255
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6256
    if self.success is not None:
594 rajveer 6257
      oprot.writeFieldBegin('success', TType.LIST, 0)
6258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 6259
      for iter89 in self.success:
6260
        iter89.write(oprot)
594 rajveer 6261
      oprot.writeListEnd()
6262
      oprot.writeFieldEnd()
3431 rajveer 6263
    if self.ucx is not None:
594 rajveer 6264
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6265
      self.ucx.write(oprot)
6266
      oprot.writeFieldEnd()
6267
    oprot.writeFieldStop()
6268
    oprot.writeStructEnd()
6269
 
3431 rajveer 6270
  def validate(self):
6271
    return
6272
 
6273
 
594 rajveer 6274
  def __repr__(self):
6275
    L = ['%s=%r' % (key, value)
6276
      for key, value in self.__dict__.iteritems()]
6277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6278
 
6279
  def __eq__(self, other):
6280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6281
 
6282
  def __ne__(self, other):
6283
    return not (self == other)
6284
 
1894 vikas 6285
class getAddressById_args:
6286
  """
6287
  Attributes:
6288
   - addressId
6289
  """
6290
 
6291
  thrift_spec = (
6292
    None, # 0
6293
    (1, TType.I64, 'addressId', None, None, ), # 1
6294
  )
6295
 
6296
  def __init__(self, addressId=None,):
6297
    self.addressId = addressId
6298
 
6299
  def read(self, iprot):
6300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6302
      return
6303
    iprot.readStructBegin()
6304
    while True:
6305
      (fname, ftype, fid) = iprot.readFieldBegin()
6306
      if ftype == TType.STOP:
6307
        break
6308
      if fid == 1:
6309
        if ftype == TType.I64:
6310
          self.addressId = iprot.readI64();
6311
        else:
6312
          iprot.skip(ftype)
6313
      else:
6314
        iprot.skip(ftype)
6315
      iprot.readFieldEnd()
6316
    iprot.readStructEnd()
6317
 
6318
  def write(self, oprot):
6319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6321
      return
6322
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6323
    if self.addressId is not None:
1894 vikas 6324
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6325
      oprot.writeI64(self.addressId)
6326
      oprot.writeFieldEnd()
6327
    oprot.writeFieldStop()
6328
    oprot.writeStructEnd()
6329
 
3431 rajveer 6330
  def validate(self):
6331
    return
6332
 
6333
 
1894 vikas 6334
  def __repr__(self):
6335
    L = ['%s=%r' % (key, value)
6336
      for key, value in self.__dict__.iteritems()]
6337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6338
 
6339
  def __eq__(self, other):
6340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6341
 
6342
  def __ne__(self, other):
6343
    return not (self == other)
6344
 
6345
class getAddressById_result:
6346
  """
6347
  Attributes:
6348
   - success
6349
   - ucx
6350
  """
6351
 
6352
  thrift_spec = (
6353
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6354
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6355
  )
6356
 
6357
  def __init__(self, success=None, ucx=None,):
6358
    self.success = success
6359
    self.ucx = ucx
6360
 
6361
  def read(self, iprot):
6362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6364
      return
6365
    iprot.readStructBegin()
6366
    while True:
6367
      (fname, ftype, fid) = iprot.readFieldBegin()
6368
      if ftype == TType.STOP:
6369
        break
6370
      if fid == 0:
6371
        if ftype == TType.STRUCT:
6372
          self.success = Address()
6373
          self.success.read(iprot)
6374
        else:
6375
          iprot.skip(ftype)
6376
      elif fid == 1:
6377
        if ftype == TType.STRUCT:
6378
          self.ucx = UserContextException()
6379
          self.ucx.read(iprot)
6380
        else:
6381
          iprot.skip(ftype)
6382
      else:
6383
        iprot.skip(ftype)
6384
      iprot.readFieldEnd()
6385
    iprot.readStructEnd()
6386
 
6387
  def write(self, oprot):
6388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6390
      return
6391
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6392
    if self.success is not None:
1894 vikas 6393
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6394
      self.success.write(oprot)
6395
      oprot.writeFieldEnd()
3431 rajveer 6396
    if self.ucx is not None:
1894 vikas 6397
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6398
      self.ucx.write(oprot)
6399
      oprot.writeFieldEnd()
6400
    oprot.writeFieldStop()
6401
    oprot.writeStructEnd()
6402
 
3431 rajveer 6403
  def validate(self):
6404
    return
6405
 
6406
 
1894 vikas 6407
  def __repr__(self):
6408
    L = ['%s=%r' % (key, value)
6409
      for key, value in self.__dict__.iteritems()]
6410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6411
 
6412
  def __eq__(self, other):
6413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6414
 
6415
  def __ne__(self, other):
6416
    return not (self == other)
6417
 
594 rajveer 6418
class getDefaultAddressId_args:
6419
  """
6420
  Attributes:
6421
   - userId
6422
  """
6423
 
6424
  thrift_spec = (
6425
    None, # 0
6426
    (1, TType.I64, 'userId', None, None, ), # 1
6427
  )
6428
 
6429
  def __init__(self, userId=None,):
6430
    self.userId = userId
6431
 
6432
  def read(self, iprot):
6433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6435
      return
6436
    iprot.readStructBegin()
6437
    while True:
6438
      (fname, ftype, fid) = iprot.readFieldBegin()
6439
      if ftype == TType.STOP:
6440
        break
6441
      if fid == 1:
6442
        if ftype == TType.I64:
6443
          self.userId = iprot.readI64();
6444
        else:
6445
          iprot.skip(ftype)
6446
      else:
6447
        iprot.skip(ftype)
6448
      iprot.readFieldEnd()
6449
    iprot.readStructEnd()
6450
 
6451
  def write(self, oprot):
6452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6454
      return
6455
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6456
    if self.userId is not None:
594 rajveer 6457
      oprot.writeFieldBegin('userId', TType.I64, 1)
6458
      oprot.writeI64(self.userId)
6459
      oprot.writeFieldEnd()
6460
    oprot.writeFieldStop()
6461
    oprot.writeStructEnd()
6462
 
3431 rajveer 6463
  def validate(self):
6464
    return
6465
 
6466
 
594 rajveer 6467
  def __repr__(self):
6468
    L = ['%s=%r' % (key, value)
6469
      for key, value in self.__dict__.iteritems()]
6470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6471
 
6472
  def __eq__(self, other):
6473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6474
 
6475
  def __ne__(self, other):
6476
    return not (self == other)
6477
 
6478
class getDefaultAddressId_result:
6479
  """
6480
  Attributes:
6481
   - success
6482
   - ucx
6483
  """
6484
 
6485
  thrift_spec = (
6486
    (0, TType.I64, 'success', None, None, ), # 0
6487
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6488
  )
6489
 
6490
  def __init__(self, success=None, ucx=None,):
6491
    self.success = success
6492
    self.ucx = ucx
6493
 
6494
  def read(self, iprot):
6495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6497
      return
6498
    iprot.readStructBegin()
6499
    while True:
6500
      (fname, ftype, fid) = iprot.readFieldBegin()
6501
      if ftype == TType.STOP:
6502
        break
6503
      if fid == 0:
6504
        if ftype == TType.I64:
6505
          self.success = iprot.readI64();
6506
        else:
6507
          iprot.skip(ftype)
6508
      elif fid == 1:
6509
        if ftype == TType.STRUCT:
6510
          self.ucx = UserContextException()
6511
          self.ucx.read(iprot)
6512
        else:
6513
          iprot.skip(ftype)
6514
      else:
6515
        iprot.skip(ftype)
6516
      iprot.readFieldEnd()
6517
    iprot.readStructEnd()
6518
 
6519
  def write(self, oprot):
6520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6522
      return
6523
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6524
    if self.success is not None:
594 rajveer 6525
      oprot.writeFieldBegin('success', TType.I64, 0)
6526
      oprot.writeI64(self.success)
6527
      oprot.writeFieldEnd()
3431 rajveer 6528
    if self.ucx is not None:
594 rajveer 6529
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6530
      self.ucx.write(oprot)
6531
      oprot.writeFieldEnd()
6532
    oprot.writeFieldStop()
6533
    oprot.writeStructEnd()
6534
 
3431 rajveer 6535
  def validate(self):
6536
    return
6537
 
6538
 
594 rajveer 6539
  def __repr__(self):
6540
    L = ['%s=%r' % (key, value)
6541
      for key, value in self.__dict__.iteritems()]
6542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6543
 
6544
  def __eq__(self, other):
6545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6546
 
6547
  def __ne__(self, other):
6548
    return not (self == other)
6549
 
785 rajveer 6550
class getDefaultPincode_args:
6551
  """
6552
  Attributes:
6553
   - userId
6554
  """
6555
 
6556
  thrift_spec = (
6557
    None, # 0
6558
    (1, TType.I64, 'userId', None, None, ), # 1
6559
  )
6560
 
6561
  def __init__(self, userId=None,):
6562
    self.userId = userId
6563
 
6564
  def read(self, iprot):
6565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6567
      return
6568
    iprot.readStructBegin()
6569
    while True:
6570
      (fname, ftype, fid) = iprot.readFieldBegin()
6571
      if ftype == TType.STOP:
6572
        break
6573
      if fid == 1:
6574
        if ftype == TType.I64:
6575
          self.userId = iprot.readI64();
6576
        else:
6577
          iprot.skip(ftype)
6578
      else:
6579
        iprot.skip(ftype)
6580
      iprot.readFieldEnd()
6581
    iprot.readStructEnd()
6582
 
6583
  def write(self, oprot):
6584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6586
      return
6587
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6588
    if self.userId is not None:
785 rajveer 6589
      oprot.writeFieldBegin('userId', TType.I64, 1)
6590
      oprot.writeI64(self.userId)
6591
      oprot.writeFieldEnd()
6592
    oprot.writeFieldStop()
6593
    oprot.writeStructEnd()
6594
 
3431 rajveer 6595
  def validate(self):
6596
    return
6597
 
6598
 
785 rajveer 6599
  def __repr__(self):
6600
    L = ['%s=%r' % (key, value)
6601
      for key, value in self.__dict__.iteritems()]
6602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6603
 
6604
  def __eq__(self, other):
6605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6606
 
6607
  def __ne__(self, other):
6608
    return not (self == other)
6609
 
6610
class getDefaultPincode_result:
6611
  """
6612
  Attributes:
6613
   - success
6614
   - ucx
6615
  """
6616
 
6617
  thrift_spec = (
6618
    (0, TType.STRING, 'success', None, None, ), # 0
6619
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6620
  )
6621
 
6622
  def __init__(self, success=None, ucx=None,):
6623
    self.success = success
6624
    self.ucx = ucx
6625
 
6626
  def read(self, iprot):
6627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6629
      return
6630
    iprot.readStructBegin()
6631
    while True:
6632
      (fname, ftype, fid) = iprot.readFieldBegin()
6633
      if ftype == TType.STOP:
6634
        break
6635
      if fid == 0:
6636
        if ftype == TType.STRING:
6637
          self.success = iprot.readString();
6638
        else:
6639
          iprot.skip(ftype)
6640
      elif fid == 1:
6641
        if ftype == TType.STRUCT:
6642
          self.ucx = UserContextException()
6643
          self.ucx.read(iprot)
6644
        else:
6645
          iprot.skip(ftype)
6646
      else:
6647
        iprot.skip(ftype)
6648
      iprot.readFieldEnd()
6649
    iprot.readStructEnd()
6650
 
6651
  def write(self, oprot):
6652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6654
      return
6655
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6656
    if self.success is not None:
785 rajveer 6657
      oprot.writeFieldBegin('success', TType.STRING, 0)
6658
      oprot.writeString(self.success)
6659
      oprot.writeFieldEnd()
3431 rajveer 6660
    if self.ucx is not None:
785 rajveer 6661
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6662
      self.ucx.write(oprot)
6663
      oprot.writeFieldEnd()
6664
    oprot.writeFieldStop()
6665
    oprot.writeStructEnd()
6666
 
3431 rajveer 6667
  def validate(self):
6668
    return
6669
 
6670
 
785 rajveer 6671
  def __repr__(self):
6672
    L = ['%s=%r' % (key, value)
6673
      for key, value in self.__dict__.iteritems()]
6674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6675
 
6676
  def __eq__(self, other):
6677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6678
 
6679
  def __ne__(self, other):
6680
    return not (self == other)
6681
 
1274 varun.gupt 6682
class saveUserCommunication_args:
6683
  """
6684
  Attributes:
6685
   - userId
6686
   - replyTo
6687
   - communicationType
6688
   - orderId
6689
   - airwaybillNo
6690
   - productName
6691
   - subject
6692
   - message
6693
  """
6694
 
6695
  thrift_spec = (
6696
    None, # 0
6697
    (1, TType.I64, 'userId', None, None, ), # 1
6698
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6699
    (3, TType.I64, 'communicationType', None, None, ), # 3
6700
    (4, TType.I64, 'orderId', None, None, ), # 4
6701
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6702
    (6, TType.STRING, 'productName', None, None, ), # 6
6703
    (7, TType.STRING, 'subject', None, None, ), # 7
6704
    (8, TType.STRING, 'message', None, None, ), # 8
6705
  )
6706
 
6707
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6708
    self.userId = userId
6709
    self.replyTo = replyTo
6710
    self.communicationType = communicationType
6711
    self.orderId = orderId
6712
    self.airwaybillNo = airwaybillNo
6713
    self.productName = productName
6714
    self.subject = subject
6715
    self.message = message
6716
 
6717
  def read(self, iprot):
6718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6720
      return
6721
    iprot.readStructBegin()
6722
    while True:
6723
      (fname, ftype, fid) = iprot.readFieldBegin()
6724
      if ftype == TType.STOP:
6725
        break
6726
      if fid == 1:
6727
        if ftype == TType.I64:
6728
          self.userId = iprot.readI64();
6729
        else:
6730
          iprot.skip(ftype)
6731
      elif fid == 2:
6732
        if ftype == TType.STRING:
6733
          self.replyTo = iprot.readString();
6734
        else:
6735
          iprot.skip(ftype)
6736
      elif fid == 3:
6737
        if ftype == TType.I64:
6738
          self.communicationType = iprot.readI64();
6739
        else:
6740
          iprot.skip(ftype)
6741
      elif fid == 4:
6742
        if ftype == TType.I64:
6743
          self.orderId = iprot.readI64();
6744
        else:
6745
          iprot.skip(ftype)
6746
      elif fid == 5:
6747
        if ftype == TType.STRING:
6748
          self.airwaybillNo = iprot.readString();
6749
        else:
6750
          iprot.skip(ftype)
6751
      elif fid == 6:
6752
        if ftype == TType.STRING:
6753
          self.productName = iprot.readString();
6754
        else:
6755
          iprot.skip(ftype)
6756
      elif fid == 7:
6757
        if ftype == TType.STRING:
6758
          self.subject = iprot.readString();
6759
        else:
6760
          iprot.skip(ftype)
6761
      elif fid == 8:
6762
        if ftype == TType.STRING:
6763
          self.message = iprot.readString();
6764
        else:
6765
          iprot.skip(ftype)
6766
      else:
6767
        iprot.skip(ftype)
6768
      iprot.readFieldEnd()
6769
    iprot.readStructEnd()
6770
 
6771
  def write(self, oprot):
6772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6774
      return
6775
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6776
    if self.userId is not None:
1274 varun.gupt 6777
      oprot.writeFieldBegin('userId', TType.I64, 1)
6778
      oprot.writeI64(self.userId)
6779
      oprot.writeFieldEnd()
3431 rajveer 6780
    if self.replyTo is not None:
1274 varun.gupt 6781
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6782
      oprot.writeString(self.replyTo)
6783
      oprot.writeFieldEnd()
3431 rajveer 6784
    if self.communicationType is not None:
1274 varun.gupt 6785
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6786
      oprot.writeI64(self.communicationType)
6787
      oprot.writeFieldEnd()
3431 rajveer 6788
    if self.orderId is not None:
1274 varun.gupt 6789
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6790
      oprot.writeI64(self.orderId)
6791
      oprot.writeFieldEnd()
3431 rajveer 6792
    if self.airwaybillNo is not None:
1274 varun.gupt 6793
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6794
      oprot.writeString(self.airwaybillNo)
6795
      oprot.writeFieldEnd()
3431 rajveer 6796
    if self.productName is not None:
1274 varun.gupt 6797
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6798
      oprot.writeString(self.productName)
6799
      oprot.writeFieldEnd()
3431 rajveer 6800
    if self.subject is not None:
1274 varun.gupt 6801
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6802
      oprot.writeString(self.subject)
6803
      oprot.writeFieldEnd()
3431 rajveer 6804
    if self.message is not None:
1274 varun.gupt 6805
      oprot.writeFieldBegin('message', TType.STRING, 8)
6806
      oprot.writeString(self.message)
6807
      oprot.writeFieldEnd()
6808
    oprot.writeFieldStop()
6809
    oprot.writeStructEnd()
6810
 
3431 rajveer 6811
  def validate(self):
6812
    return
6813
 
6814
 
1274 varun.gupt 6815
  def __repr__(self):
6816
    L = ['%s=%r' % (key, value)
6817
      for key, value in self.__dict__.iteritems()]
6818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6819
 
6820
  def __eq__(self, other):
6821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6822
 
6823
  def __ne__(self, other):
6824
    return not (self == other)
6825
 
6826
class saveUserCommunication_result:
6827
  """
6828
  Attributes:
6829
   - success
6830
   - ucx
6831
  """
6832
 
6833
  thrift_spec = (
6834
    (0, TType.BOOL, 'success', None, None, ), # 0
6835
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6836
  )
6837
 
6838
  def __init__(self, success=None, ucx=None,):
6839
    self.success = success
6840
    self.ucx = ucx
6841
 
6842
  def read(self, iprot):
6843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6845
      return
6846
    iprot.readStructBegin()
6847
    while True:
6848
      (fname, ftype, fid) = iprot.readFieldBegin()
6849
      if ftype == TType.STOP:
6850
        break
6851
      if fid == 0:
6852
        if ftype == TType.BOOL:
6853
          self.success = iprot.readBool();
6854
        else:
6855
          iprot.skip(ftype)
6856
      elif fid == 1:
6857
        if ftype == TType.STRUCT:
6858
          self.ucx = UserCommunicationException()
6859
          self.ucx.read(iprot)
6860
        else:
6861
          iprot.skip(ftype)
6862
      else:
6863
        iprot.skip(ftype)
6864
      iprot.readFieldEnd()
6865
    iprot.readStructEnd()
6866
 
6867
  def write(self, oprot):
6868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6870
      return
6871
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6872
    if self.success is not None:
1274 varun.gupt 6873
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6874
      oprot.writeBool(self.success)
6875
      oprot.writeFieldEnd()
3431 rajveer 6876
    if self.ucx is not None:
1274 varun.gupt 6877
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6878
      self.ucx.write(oprot)
6879
      oprot.writeFieldEnd()
6880
    oprot.writeFieldStop()
6881
    oprot.writeStructEnd()
6882
 
3431 rajveer 6883
  def validate(self):
6884
    return
6885
 
6886
 
1274 varun.gupt 6887
  def __repr__(self):
6888
    L = ['%s=%r' % (key, value)
6889
      for key, value in self.__dict__.iteritems()]
6890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6891
 
6892
  def __eq__(self, other):
6893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6894
 
6895
  def __ne__(self, other):
6896
    return not (self == other)
6897
 
1590 varun.gupt 6898
class getUserCommunicationById_args:
6899
  """
6900
  Attributes:
6901
   - id
6902
  """
6903
 
6904
  thrift_spec = (
6905
    None, # 0
6906
    (1, TType.I64, 'id', None, None, ), # 1
6907
  )
6908
 
6909
  def __init__(self, id=None,):
6910
    self.id = id
6911
 
6912
  def read(self, iprot):
6913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6915
      return
6916
    iprot.readStructBegin()
6917
    while True:
6918
      (fname, ftype, fid) = iprot.readFieldBegin()
6919
      if ftype == TType.STOP:
6920
        break
6921
      if fid == 1:
6922
        if ftype == TType.I64:
6923
          self.id = iprot.readI64();
6924
        else:
6925
          iprot.skip(ftype)
6926
      else:
6927
        iprot.skip(ftype)
6928
      iprot.readFieldEnd()
6929
    iprot.readStructEnd()
6930
 
6931
  def write(self, oprot):
6932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6934
      return
6935
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6936
    if self.id is not None:
1590 varun.gupt 6937
      oprot.writeFieldBegin('id', TType.I64, 1)
6938
      oprot.writeI64(self.id)
6939
      oprot.writeFieldEnd()
6940
    oprot.writeFieldStop()
6941
    oprot.writeStructEnd()
6942
 
3431 rajveer 6943
  def validate(self):
6944
    return
6945
 
6946
 
1590 varun.gupt 6947
  def __repr__(self):
6948
    L = ['%s=%r' % (key, value)
6949
      for key, value in self.__dict__.iteritems()]
6950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6951
 
6952
  def __eq__(self, other):
6953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6954
 
6955
  def __ne__(self, other):
6956
    return not (self == other)
6957
 
6958
class getUserCommunicationById_result:
6959
  """
6960
  Attributes:
6961
   - success
6962
   - ucx
6963
  """
6964
 
6965
  thrift_spec = (
6966
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6967
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6968
  )
6969
 
6970
  def __init__(self, success=None, ucx=None,):
6971
    self.success = success
6972
    self.ucx = ucx
6973
 
6974
  def read(self, iprot):
6975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6977
      return
6978
    iprot.readStructBegin()
6979
    while True:
6980
      (fname, ftype, fid) = iprot.readFieldBegin()
6981
      if ftype == TType.STOP:
6982
        break
6983
      if fid == 0:
6984
        if ftype == TType.STRUCT:
6985
          self.success = UserCommunication()
6986
          self.success.read(iprot)
6987
        else:
6988
          iprot.skip(ftype)
6989
      elif fid == 1:
6990
        if ftype == TType.STRUCT:
6991
          self.ucx = UserCommunicationException()
6992
          self.ucx.read(iprot)
6993
        else:
6994
          iprot.skip(ftype)
6995
      else:
6996
        iprot.skip(ftype)
6997
      iprot.readFieldEnd()
6998
    iprot.readStructEnd()
6999
 
7000
  def write(self, oprot):
7001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7003
      return
7004
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7005
    if self.success is not None:
1590 varun.gupt 7006
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7007
      self.success.write(oprot)
7008
      oprot.writeFieldEnd()
3431 rajveer 7009
    if self.ucx is not None:
1590 varun.gupt 7010
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7011
      self.ucx.write(oprot)
7012
      oprot.writeFieldEnd()
7013
    oprot.writeFieldStop()
7014
    oprot.writeStructEnd()
7015
 
3431 rajveer 7016
  def validate(self):
7017
    return
7018
 
7019
 
1590 varun.gupt 7020
  def __repr__(self):
7021
    L = ['%s=%r' % (key, value)
7022
      for key, value in self.__dict__.iteritems()]
7023
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7024
 
7025
  def __eq__(self, other):
7026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7027
 
7028
  def __ne__(self, other):
7029
    return not (self == other)
7030
 
7031
class getUserCommunicationByUser_args:
7032
  """
7033
  Attributes:
7034
   - userId
7035
  """
7036
 
7037
  thrift_spec = (
7038
    None, # 0
7039
    (1, TType.I64, 'userId', None, None, ), # 1
7040
  )
7041
 
7042
  def __init__(self, userId=None,):
7043
    self.userId = userId
7044
 
7045
  def read(self, iprot):
7046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7048
      return
7049
    iprot.readStructBegin()
7050
    while True:
7051
      (fname, ftype, fid) = iprot.readFieldBegin()
7052
      if ftype == TType.STOP:
7053
        break
7054
      if fid == 1:
7055
        if ftype == TType.I64:
7056
          self.userId = iprot.readI64();
7057
        else:
7058
          iprot.skip(ftype)
7059
      else:
7060
        iprot.skip(ftype)
7061
      iprot.readFieldEnd()
7062
    iprot.readStructEnd()
7063
 
7064
  def write(self, oprot):
7065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7067
      return
7068
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7069
    if self.userId is not None:
1590 varun.gupt 7070
      oprot.writeFieldBegin('userId', TType.I64, 1)
7071
      oprot.writeI64(self.userId)
7072
      oprot.writeFieldEnd()
7073
    oprot.writeFieldStop()
7074
    oprot.writeStructEnd()
7075
 
3431 rajveer 7076
  def validate(self):
7077
    return
7078
 
7079
 
1590 varun.gupt 7080
  def __repr__(self):
7081
    L = ['%s=%r' % (key, value)
7082
      for key, value in self.__dict__.iteritems()]
7083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7084
 
7085
  def __eq__(self, other):
7086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7087
 
7088
  def __ne__(self, other):
7089
    return not (self == other)
7090
 
7091
class getUserCommunicationByUser_result:
7092
  """
7093
  Attributes:
7094
   - success
7095
   - ucx
7096
  """
7097
 
7098
  thrift_spec = (
7099
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7100
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7101
  )
7102
 
7103
  def __init__(self, success=None, ucx=None,):
7104
    self.success = success
7105
    self.ucx = ucx
7106
 
7107
  def read(self, iprot):
7108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7110
      return
7111
    iprot.readStructBegin()
7112
    while True:
7113
      (fname, ftype, fid) = iprot.readFieldBegin()
7114
      if ftype == TType.STOP:
7115
        break
7116
      if fid == 0:
7117
        if ftype == TType.LIST:
7118
          self.success = []
6736 amit.gupta 7119
          (_etype93, _size90) = iprot.readListBegin()
7120
          for _i94 in xrange(_size90):
7121
            _elem95 = UserCommunication()
7122
            _elem95.read(iprot)
7123
            self.success.append(_elem95)
1590 varun.gupt 7124
          iprot.readListEnd()
7125
        else:
7126
          iprot.skip(ftype)
7127
      elif fid == 1:
7128
        if ftype == TType.STRUCT:
7129
          self.ucx = UserCommunicationException()
7130
          self.ucx.read(iprot)
7131
        else:
7132
          iprot.skip(ftype)
7133
      else:
7134
        iprot.skip(ftype)
7135
      iprot.readFieldEnd()
7136
    iprot.readStructEnd()
7137
 
7138
  def write(self, oprot):
7139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7141
      return
7142
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7143
    if self.success is not None:
1590 varun.gupt 7144
      oprot.writeFieldBegin('success', TType.LIST, 0)
7145
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7146
      for iter96 in self.success:
7147
        iter96.write(oprot)
1590 varun.gupt 7148
      oprot.writeListEnd()
7149
      oprot.writeFieldEnd()
3431 rajveer 7150
    if self.ucx is not None:
1590 varun.gupt 7151
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7152
      self.ucx.write(oprot)
7153
      oprot.writeFieldEnd()
7154
    oprot.writeFieldStop()
7155
    oprot.writeStructEnd()
7156
 
3431 rajveer 7157
  def validate(self):
7158
    return
7159
 
7160
 
1590 varun.gupt 7161
  def __repr__(self):
7162
    L = ['%s=%r' % (key, value)
7163
      for key, value in self.__dict__.iteritems()]
7164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7165
 
7166
  def __eq__(self, other):
7167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7168
 
7169
  def __ne__(self, other):
7170
    return not (self == other)
7171
 
7172
class getAllUserCommunications_args:
7173
 
7174
  thrift_spec = (
7175
  )
7176
 
7177
  def read(self, iprot):
7178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7180
      return
7181
    iprot.readStructBegin()
7182
    while True:
7183
      (fname, ftype, fid) = iprot.readFieldBegin()
7184
      if ftype == TType.STOP:
7185
        break
7186
      else:
7187
        iprot.skip(ftype)
7188
      iprot.readFieldEnd()
7189
    iprot.readStructEnd()
7190
 
7191
  def write(self, oprot):
7192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7194
      return
7195
    oprot.writeStructBegin('getAllUserCommunications_args')
7196
    oprot.writeFieldStop()
7197
    oprot.writeStructEnd()
7198
 
3431 rajveer 7199
  def validate(self):
7200
    return
7201
 
7202
 
1590 varun.gupt 7203
  def __repr__(self):
7204
    L = ['%s=%r' % (key, value)
7205
      for key, value in self.__dict__.iteritems()]
7206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7207
 
7208
  def __eq__(self, other):
7209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7210
 
7211
  def __ne__(self, other):
7212
    return not (self == other)
7213
 
7214
class getAllUserCommunications_result:
7215
  """
7216
  Attributes:
7217
   - success
7218
   - ucx
7219
  """
7220
 
7221
  thrift_spec = (
7222
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7223
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7224
  )
7225
 
7226
  def __init__(self, success=None, ucx=None,):
7227
    self.success = success
7228
    self.ucx = ucx
7229
 
7230
  def read(self, iprot):
7231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7233
      return
7234
    iprot.readStructBegin()
7235
    while True:
7236
      (fname, ftype, fid) = iprot.readFieldBegin()
7237
      if ftype == TType.STOP:
7238
        break
7239
      if fid == 0:
7240
        if ftype == TType.LIST:
7241
          self.success = []
6736 amit.gupta 7242
          (_etype100, _size97) = iprot.readListBegin()
7243
          for _i101 in xrange(_size97):
7244
            _elem102 = UserCommunication()
7245
            _elem102.read(iprot)
7246
            self.success.append(_elem102)
1590 varun.gupt 7247
          iprot.readListEnd()
7248
        else:
7249
          iprot.skip(ftype)
7250
      elif fid == 1:
7251
        if ftype == TType.STRUCT:
7252
          self.ucx = UserCommunicationException()
7253
          self.ucx.read(iprot)
7254
        else:
7255
          iprot.skip(ftype)
7256
      else:
7257
        iprot.skip(ftype)
7258
      iprot.readFieldEnd()
7259
    iprot.readStructEnd()
7260
 
7261
  def write(self, oprot):
7262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7264
      return
7265
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7266
    if self.success is not None:
1590 varun.gupt 7267
      oprot.writeFieldBegin('success', TType.LIST, 0)
7268
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7269
      for iter103 in self.success:
7270
        iter103.write(oprot)
1590 varun.gupt 7271
      oprot.writeListEnd()
7272
      oprot.writeFieldEnd()
3431 rajveer 7273
    if self.ucx is not None:
1590 varun.gupt 7274
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7275
      self.ucx.write(oprot)
7276
      oprot.writeFieldEnd()
7277
    oprot.writeFieldStop()
7278
    oprot.writeStructEnd()
7279
 
3431 rajveer 7280
  def validate(self):
7281
    return
7282
 
7283
 
1590 varun.gupt 7284
  def __repr__(self):
7285
    L = ['%s=%r' % (key, value)
7286
      for key, value in self.__dict__.iteritems()]
7287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7288
 
7289
  def __eq__(self, other):
7290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7291
 
7292
  def __ne__(self, other):
7293
    return not (self == other)
7294
 
5407 amar.kumar 7295
class removeUserCommunication_args:
7296
  """
7297
  Attributes:
7298
   - id
7299
  """
7300
 
7301
  thrift_spec = (
7302
    None, # 0
7303
    (1, TType.I64, 'id', None, None, ), # 1
7304
  )
7305
 
7306
  def __init__(self, id=None,):
7307
    self.id = id
7308
 
7309
  def read(self, iprot):
7310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7312
      return
7313
    iprot.readStructBegin()
7314
    while True:
7315
      (fname, ftype, fid) = iprot.readFieldBegin()
7316
      if ftype == TType.STOP:
7317
        break
7318
      if fid == 1:
7319
        if ftype == TType.I64:
7320
          self.id = iprot.readI64();
7321
        else:
7322
          iprot.skip(ftype)
7323
      else:
7324
        iprot.skip(ftype)
7325
      iprot.readFieldEnd()
7326
    iprot.readStructEnd()
7327
 
7328
  def write(self, oprot):
7329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7331
      return
7332
    oprot.writeStructBegin('removeUserCommunication_args')
7333
    if self.id is not None:
7334
      oprot.writeFieldBegin('id', TType.I64, 1)
7335
      oprot.writeI64(self.id)
7336
      oprot.writeFieldEnd()
7337
    oprot.writeFieldStop()
7338
    oprot.writeStructEnd()
7339
 
7340
  def validate(self):
7341
    return
7342
 
7343
 
7344
  def __repr__(self):
7345
    L = ['%s=%r' % (key, value)
7346
      for key, value in self.__dict__.iteritems()]
7347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7348
 
7349
  def __eq__(self, other):
7350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7351
 
7352
  def __ne__(self, other):
7353
    return not (self == other)
7354
 
7355
class removeUserCommunication_result:
7356
  """
7357
  Attributes:
7358
   - ucx
7359
  """
7360
 
7361
  thrift_spec = (
7362
    None, # 0
7363
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7364
  )
7365
 
7366
  def __init__(self, ucx=None,):
7367
    self.ucx = ucx
7368
 
7369
  def read(self, iprot):
7370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7372
      return
7373
    iprot.readStructBegin()
7374
    while True:
7375
      (fname, ftype, fid) = iprot.readFieldBegin()
7376
      if ftype == TType.STOP:
7377
        break
7378
      if fid == 1:
7379
        if ftype == TType.STRUCT:
7380
          self.ucx = UserCommunicationException()
7381
          self.ucx.read(iprot)
7382
        else:
7383
          iprot.skip(ftype)
7384
      else:
7385
        iprot.skip(ftype)
7386
      iprot.readFieldEnd()
7387
    iprot.readStructEnd()
7388
 
7389
  def write(self, oprot):
7390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7392
      return
7393
    oprot.writeStructBegin('removeUserCommunication_result')
7394
    if self.ucx is not None:
7395
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7396
      self.ucx.write(oprot)
7397
      oprot.writeFieldEnd()
7398
    oprot.writeFieldStop()
7399
    oprot.writeStructEnd()
7400
 
7401
  def validate(self):
7402
    return
7403
 
7404
 
7405
  def __repr__(self):
7406
    L = ['%s=%r' % (key, value)
7407
      for key, value in self.__dict__.iteritems()]
7408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7409
 
7410
  def __eq__(self, other):
7411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7412
 
7413
  def __ne__(self, other):
7414
    return not (self == other)
7415
 
1845 vikas 7416
class createMasterAffiliate_args:
7417
  """
7418
  Attributes:
7419
   - name
1859 vikas 7420
   - addedOn
1845 vikas 7421
  """
7422
 
7423
  thrift_spec = (
7424
    None, # 0
7425
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7426
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7427
  )
7428
 
1859 vikas 7429
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7430
    self.name = name
1859 vikas 7431
    self.addedOn = addedOn
1845 vikas 7432
 
7433
  def read(self, iprot):
7434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7436
      return
7437
    iprot.readStructBegin()
7438
    while True:
7439
      (fname, ftype, fid) = iprot.readFieldBegin()
7440
      if ftype == TType.STOP:
7441
        break
7442
      if fid == 1:
7443
        if ftype == TType.STRING:
7444
          self.name = iprot.readString();
7445
        else:
7446
          iprot.skip(ftype)
1859 vikas 7447
      elif fid == 2:
7448
        if ftype == TType.I64:
7449
          self.addedOn = iprot.readI64();
7450
        else:
7451
          iprot.skip(ftype)
1845 vikas 7452
      else:
7453
        iprot.skip(ftype)
7454
      iprot.readFieldEnd()
7455
    iprot.readStructEnd()
7456
 
7457
  def write(self, oprot):
7458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7460
      return
7461
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7462
    if self.name is not None:
1845 vikas 7463
      oprot.writeFieldBegin('name', TType.STRING, 1)
7464
      oprot.writeString(self.name)
7465
      oprot.writeFieldEnd()
3431 rajveer 7466
    if self.addedOn is not None:
1859 vikas 7467
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7468
      oprot.writeI64(self.addedOn)
7469
      oprot.writeFieldEnd()
1845 vikas 7470
    oprot.writeFieldStop()
7471
    oprot.writeStructEnd()
7472
 
3431 rajveer 7473
  def validate(self):
7474
    return
7475
 
7476
 
1845 vikas 7477
  def __repr__(self):
7478
    L = ['%s=%r' % (key, value)
7479
      for key, value in self.__dict__.iteritems()]
7480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7481
 
7482
  def __eq__(self, other):
7483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7484
 
7485
  def __ne__(self, other):
7486
    return not (self == other)
7487
 
7488
class createMasterAffiliate_result:
7489
  """
7490
  Attributes:
7491
   - success
7492
   - utx
7493
  """
7494
 
7495
  thrift_spec = (
7496
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7497
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7498
  )
7499
 
7500
  def __init__(self, success=None, utx=None,):
7501
    self.success = success
7502
    self.utx = utx
7503
 
7504
  def read(self, iprot):
7505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7507
      return
7508
    iprot.readStructBegin()
7509
    while True:
7510
      (fname, ftype, fid) = iprot.readFieldBegin()
7511
      if ftype == TType.STOP:
7512
        break
7513
      if fid == 0:
7514
        if ftype == TType.STRUCT:
7515
          self.success = MasterAffiliate()
7516
          self.success.read(iprot)
7517
        else:
7518
          iprot.skip(ftype)
7519
      elif fid == 1:
7520
        if ftype == TType.STRUCT:
1996 vikas 7521
          self.utx = UserAffiliateException()
1845 vikas 7522
          self.utx.read(iprot)
7523
        else:
7524
          iprot.skip(ftype)
7525
      else:
7526
        iprot.skip(ftype)
7527
      iprot.readFieldEnd()
7528
    iprot.readStructEnd()
7529
 
7530
  def write(self, oprot):
7531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7533
      return
7534
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7535
    if self.success is not None:
1845 vikas 7536
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7537
      self.success.write(oprot)
7538
      oprot.writeFieldEnd()
3431 rajveer 7539
    if self.utx is not None:
1845 vikas 7540
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7541
      self.utx.write(oprot)
7542
      oprot.writeFieldEnd()
7543
    oprot.writeFieldStop()
7544
    oprot.writeStructEnd()
7545
 
3431 rajveer 7546
  def validate(self):
7547
    return
7548
 
7549
 
1845 vikas 7550
  def __repr__(self):
7551
    L = ['%s=%r' % (key, value)
7552
      for key, value in self.__dict__.iteritems()]
7553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7554
 
7555
  def __eq__(self, other):
7556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7557
 
7558
  def __ne__(self, other):
7559
    return not (self == other)
7560
 
1899 vikas 7561
class getAllMasterAffiliates_args:
7562
 
7563
  thrift_spec = (
7564
  )
7565
 
7566
  def read(self, iprot):
7567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7569
      return
7570
    iprot.readStructBegin()
7571
    while True:
7572
      (fname, ftype, fid) = iprot.readFieldBegin()
7573
      if ftype == TType.STOP:
7574
        break
7575
      else:
7576
        iprot.skip(ftype)
7577
      iprot.readFieldEnd()
7578
    iprot.readStructEnd()
7579
 
7580
  def write(self, oprot):
7581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7583
      return
7584
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7585
    oprot.writeFieldStop()
7586
    oprot.writeStructEnd()
7587
 
3431 rajveer 7588
  def validate(self):
7589
    return
7590
 
7591
 
1899 vikas 7592
  def __repr__(self):
7593
    L = ['%s=%r' % (key, value)
7594
      for key, value in self.__dict__.iteritems()]
7595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7596
 
7597
  def __eq__(self, other):
7598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7599
 
7600
  def __ne__(self, other):
7601
    return not (self == other)
7602
 
7603
class getAllMasterAffiliates_result:
7604
  """
7605
  Attributes:
7606
   - success
7607
   - utx
7608
  """
7609
 
7610
  thrift_spec = (
7611
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7612
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7613
  )
7614
 
7615
  def __init__(self, success=None, utx=None,):
7616
    self.success = success
7617
    self.utx = utx
7618
 
7619
  def read(self, iprot):
7620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7622
      return
7623
    iprot.readStructBegin()
7624
    while True:
7625
      (fname, ftype, fid) = iprot.readFieldBegin()
7626
      if ftype == TType.STOP:
7627
        break
7628
      if fid == 0:
7629
        if ftype == TType.LIST:
7630
          self.success = []
6736 amit.gupta 7631
          (_etype107, _size104) = iprot.readListBegin()
7632
          for _i108 in xrange(_size104):
7633
            _elem109 = MasterAffiliate()
7634
            _elem109.read(iprot)
7635
            self.success.append(_elem109)
1899 vikas 7636
          iprot.readListEnd()
7637
        else:
7638
          iprot.skip(ftype)
7639
      elif fid == 1:
7640
        if ftype == TType.STRUCT:
1996 vikas 7641
          self.utx = UserAffiliateException()
1899 vikas 7642
          self.utx.read(iprot)
7643
        else:
7644
          iprot.skip(ftype)
7645
      else:
7646
        iprot.skip(ftype)
7647
      iprot.readFieldEnd()
7648
    iprot.readStructEnd()
7649
 
7650
  def write(self, oprot):
7651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7653
      return
7654
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7655
    if self.success is not None:
1899 vikas 7656
      oprot.writeFieldBegin('success', TType.LIST, 0)
7657
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7658
      for iter110 in self.success:
7659
        iter110.write(oprot)
1899 vikas 7660
      oprot.writeListEnd()
7661
      oprot.writeFieldEnd()
3431 rajveer 7662
    if self.utx is not None:
1899 vikas 7663
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7664
      self.utx.write(oprot)
7665
      oprot.writeFieldEnd()
7666
    oprot.writeFieldStop()
7667
    oprot.writeStructEnd()
7668
 
3431 rajveer 7669
  def validate(self):
7670
    return
7671
 
7672
 
1899 vikas 7673
  def __repr__(self):
7674
    L = ['%s=%r' % (key, value)
7675
      for key, value in self.__dict__.iteritems()]
7676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7677
 
7678
  def __eq__(self, other):
7679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7680
 
7681
  def __ne__(self, other):
7682
    return not (self == other)
7683
 
1845 vikas 7684
class getMasterAffiliateById_args:
7685
  """
7686
  Attributes:
7687
   - id
7688
  """
7689
 
7690
  thrift_spec = (
7691
    None, # 0
7692
    (1, TType.I64, 'id', None, None, ), # 1
7693
  )
7694
 
7695
  def __init__(self, id=None,):
7696
    self.id = id
7697
 
7698
  def read(self, iprot):
7699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7701
      return
7702
    iprot.readStructBegin()
7703
    while True:
7704
      (fname, ftype, fid) = iprot.readFieldBegin()
7705
      if ftype == TType.STOP:
7706
        break
7707
      if fid == 1:
7708
        if ftype == TType.I64:
7709
          self.id = iprot.readI64();
7710
        else:
7711
          iprot.skip(ftype)
7712
      else:
7713
        iprot.skip(ftype)
7714
      iprot.readFieldEnd()
7715
    iprot.readStructEnd()
7716
 
7717
  def write(self, oprot):
7718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7720
      return
7721
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7722
    if self.id is not None:
1845 vikas 7723
      oprot.writeFieldBegin('id', TType.I64, 1)
7724
      oprot.writeI64(self.id)
7725
      oprot.writeFieldEnd()
7726
    oprot.writeFieldStop()
7727
    oprot.writeStructEnd()
7728
 
3431 rajveer 7729
  def validate(self):
7730
    return
7731
 
7732
 
1845 vikas 7733
  def __repr__(self):
7734
    L = ['%s=%r' % (key, value)
7735
      for key, value in self.__dict__.iteritems()]
7736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7737
 
7738
  def __eq__(self, other):
7739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7740
 
7741
  def __ne__(self, other):
7742
    return not (self == other)
7743
 
7744
class getMasterAffiliateById_result:
7745
  """
7746
  Attributes:
7747
   - success
7748
   - utx
7749
  """
7750
 
7751
  thrift_spec = (
7752
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7753
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7754
  )
7755
 
7756
  def __init__(self, success=None, utx=None,):
7757
    self.success = success
7758
    self.utx = utx
7759
 
7760
  def read(self, iprot):
7761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7763
      return
7764
    iprot.readStructBegin()
7765
    while True:
7766
      (fname, ftype, fid) = iprot.readFieldBegin()
7767
      if ftype == TType.STOP:
7768
        break
7769
      if fid == 0:
7770
        if ftype == TType.STRUCT:
7771
          self.success = MasterAffiliate()
7772
          self.success.read(iprot)
7773
        else:
7774
          iprot.skip(ftype)
7775
      elif fid == 1:
7776
        if ftype == TType.STRUCT:
1996 vikas 7777
          self.utx = UserAffiliateException()
1845 vikas 7778
          self.utx.read(iprot)
7779
        else:
7780
          iprot.skip(ftype)
7781
      else:
7782
        iprot.skip(ftype)
7783
      iprot.readFieldEnd()
7784
    iprot.readStructEnd()
7785
 
7786
  def write(self, oprot):
7787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7789
      return
7790
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7791
    if self.success is not None:
1845 vikas 7792
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7793
      self.success.write(oprot)
7794
      oprot.writeFieldEnd()
3431 rajveer 7795
    if self.utx is not None:
1845 vikas 7796
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7797
      self.utx.write(oprot)
7798
      oprot.writeFieldEnd()
7799
    oprot.writeFieldStop()
7800
    oprot.writeStructEnd()
7801
 
3431 rajveer 7802
  def validate(self):
7803
    return
7804
 
7805
 
1845 vikas 7806
  def __repr__(self):
7807
    L = ['%s=%r' % (key, value)
7808
      for key, value in self.__dict__.iteritems()]
7809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7810
 
7811
  def __eq__(self, other):
7812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7813
 
7814
  def __ne__(self, other):
7815
    return not (self == other)
7816
 
7817
class getMasterAffiliateByName_args:
7818
  """
7819
  Attributes:
7820
   - name
7821
  """
7822
 
7823
  thrift_spec = (
7824
    None, # 0
7825
    (1, TType.STRING, 'name', None, None, ), # 1
7826
  )
7827
 
7828
  def __init__(self, name=None,):
7829
    self.name = name
7830
 
7831
  def read(self, iprot):
7832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7834
      return
7835
    iprot.readStructBegin()
7836
    while True:
7837
      (fname, ftype, fid) = iprot.readFieldBegin()
7838
      if ftype == TType.STOP:
7839
        break
7840
      if fid == 1:
7841
        if ftype == TType.STRING:
7842
          self.name = iprot.readString();
7843
        else:
7844
          iprot.skip(ftype)
7845
      else:
7846
        iprot.skip(ftype)
7847
      iprot.readFieldEnd()
7848
    iprot.readStructEnd()
7849
 
7850
  def write(self, oprot):
7851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7853
      return
7854
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7855
    if self.name is not None:
1845 vikas 7856
      oprot.writeFieldBegin('name', TType.STRING, 1)
7857
      oprot.writeString(self.name)
7858
      oprot.writeFieldEnd()
7859
    oprot.writeFieldStop()
7860
    oprot.writeStructEnd()
7861
 
3431 rajveer 7862
  def validate(self):
7863
    return
7864
 
7865
 
1845 vikas 7866
  def __repr__(self):
7867
    L = ['%s=%r' % (key, value)
7868
      for key, value in self.__dict__.iteritems()]
7869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7870
 
7871
  def __eq__(self, other):
7872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7873
 
7874
  def __ne__(self, other):
7875
    return not (self == other)
7876
 
7877
class getMasterAffiliateByName_result:
7878
  """
7879
  Attributes:
7880
   - success
7881
   - utx
7882
  """
7883
 
7884
  thrift_spec = (
7885
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7886
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7887
  )
7888
 
7889
  def __init__(self, success=None, utx=None,):
7890
    self.success = success
7891
    self.utx = utx
7892
 
7893
  def read(self, iprot):
7894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7896
      return
7897
    iprot.readStructBegin()
7898
    while True:
7899
      (fname, ftype, fid) = iprot.readFieldBegin()
7900
      if ftype == TType.STOP:
7901
        break
7902
      if fid == 0:
7903
        if ftype == TType.STRUCT:
7904
          self.success = MasterAffiliate()
7905
          self.success.read(iprot)
7906
        else:
7907
          iprot.skip(ftype)
7908
      elif fid == 1:
7909
        if ftype == TType.STRUCT:
1996 vikas 7910
          self.utx = UserAffiliateException()
1845 vikas 7911
          self.utx.read(iprot)
7912
        else:
7913
          iprot.skip(ftype)
7914
      else:
7915
        iprot.skip(ftype)
7916
      iprot.readFieldEnd()
7917
    iprot.readStructEnd()
7918
 
7919
  def write(self, oprot):
7920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7922
      return
7923
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7924
    if self.success is not None:
1845 vikas 7925
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7926
      self.success.write(oprot)
7927
      oprot.writeFieldEnd()
3431 rajveer 7928
    if self.utx is not None:
1845 vikas 7929
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7930
      self.utx.write(oprot)
7931
      oprot.writeFieldEnd()
7932
    oprot.writeFieldStop()
7933
    oprot.writeStructEnd()
7934
 
3431 rajveer 7935
  def validate(self):
7936
    return
7937
 
7938
 
1845 vikas 7939
  def __repr__(self):
7940
    L = ['%s=%r' % (key, value)
7941
      for key, value in self.__dict__.iteritems()]
7942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7943
 
7944
  def __eq__(self, other):
7945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7946
 
7947
  def __ne__(self, other):
7948
    return not (self == other)
7949
 
7950
class createAffiliate_args:
7951
  """
7952
  Attributes:
7953
   - name
7954
   - url
7955
   - masterAffiliateId
1859 vikas 7956
   - addedOn
1845 vikas 7957
  """
7958
 
7959
  thrift_spec = (
7960
    None, # 0
7961
    (1, TType.STRING, 'name', None, None, ), # 1
7962
    (2, TType.STRING, 'url', None, None, ), # 2
7963
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7964
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7965
  )
7966
 
1859 vikas 7967
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7968
    self.name = name
7969
    self.url = url
7970
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7971
    self.addedOn = addedOn
1845 vikas 7972
 
7973
  def read(self, iprot):
7974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7976
      return
7977
    iprot.readStructBegin()
7978
    while True:
7979
      (fname, ftype, fid) = iprot.readFieldBegin()
7980
      if ftype == TType.STOP:
7981
        break
7982
      if fid == 1:
7983
        if ftype == TType.STRING:
7984
          self.name = iprot.readString();
7985
        else:
7986
          iprot.skip(ftype)
7987
      elif fid == 2:
7988
        if ftype == TType.STRING:
7989
          self.url = iprot.readString();
7990
        else:
7991
          iprot.skip(ftype)
7992
      elif fid == 3:
7993
        if ftype == TType.I64:
7994
          self.masterAffiliateId = iprot.readI64();
7995
        else:
7996
          iprot.skip(ftype)
1859 vikas 7997
      elif fid == 4:
7998
        if ftype == TType.I64:
7999
          self.addedOn = iprot.readI64();
8000
        else:
8001
          iprot.skip(ftype)
1845 vikas 8002
      else:
8003
        iprot.skip(ftype)
8004
      iprot.readFieldEnd()
8005
    iprot.readStructEnd()
8006
 
8007
  def write(self, oprot):
8008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8010
      return
8011
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8012
    if self.name is not None:
1845 vikas 8013
      oprot.writeFieldBegin('name', TType.STRING, 1)
8014
      oprot.writeString(self.name)
8015
      oprot.writeFieldEnd()
3431 rajveer 8016
    if self.url is not None:
1845 vikas 8017
      oprot.writeFieldBegin('url', TType.STRING, 2)
8018
      oprot.writeString(self.url)
8019
      oprot.writeFieldEnd()
3431 rajveer 8020
    if self.masterAffiliateId is not None:
1845 vikas 8021
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8022
      oprot.writeI64(self.masterAffiliateId)
8023
      oprot.writeFieldEnd()
3431 rajveer 8024
    if self.addedOn is not None:
1859 vikas 8025
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8026
      oprot.writeI64(self.addedOn)
8027
      oprot.writeFieldEnd()
1845 vikas 8028
    oprot.writeFieldStop()
8029
    oprot.writeStructEnd()
8030
 
3431 rajveer 8031
  def validate(self):
8032
    return
8033
 
8034
 
1845 vikas 8035
  def __repr__(self):
8036
    L = ['%s=%r' % (key, value)
8037
      for key, value in self.__dict__.iteritems()]
8038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8039
 
8040
  def __eq__(self, other):
8041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8042
 
8043
  def __ne__(self, other):
8044
    return not (self == other)
8045
 
8046
class createAffiliate_result:
8047
  """
8048
  Attributes:
8049
   - success
8050
   - utx
8051
  """
8052
 
8053
  thrift_spec = (
8054
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8055
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8056
  )
8057
 
8058
  def __init__(self, success=None, utx=None,):
8059
    self.success = success
8060
    self.utx = utx
8061
 
8062
  def read(self, iprot):
8063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8065
      return
8066
    iprot.readStructBegin()
8067
    while True:
8068
      (fname, ftype, fid) = iprot.readFieldBegin()
8069
      if ftype == TType.STOP:
8070
        break
8071
      if fid == 0:
8072
        if ftype == TType.STRUCT:
8073
          self.success = Affiliate()
8074
          self.success.read(iprot)
8075
        else:
8076
          iprot.skip(ftype)
8077
      elif fid == 1:
8078
        if ftype == TType.STRUCT:
1996 vikas 8079
          self.utx = UserAffiliateException()
1845 vikas 8080
          self.utx.read(iprot)
8081
        else:
8082
          iprot.skip(ftype)
8083
      else:
8084
        iprot.skip(ftype)
8085
      iprot.readFieldEnd()
8086
    iprot.readStructEnd()
8087
 
8088
  def write(self, oprot):
8089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8091
      return
8092
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8093
    if self.success is not None:
1845 vikas 8094
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8095
      self.success.write(oprot)
8096
      oprot.writeFieldEnd()
3431 rajveer 8097
    if self.utx is not None:
1845 vikas 8098
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8099
      self.utx.write(oprot)
8100
      oprot.writeFieldEnd()
8101
    oprot.writeFieldStop()
8102
    oprot.writeStructEnd()
8103
 
3431 rajveer 8104
  def validate(self):
8105
    return
8106
 
8107
 
1845 vikas 8108
  def __repr__(self):
8109
    L = ['%s=%r' % (key, value)
8110
      for key, value in self.__dict__.iteritems()]
8111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8112
 
8113
  def __eq__(self, other):
8114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8115
 
8116
  def __ne__(self, other):
8117
    return not (self == other)
8118
 
8119
class getAffiliateById_args:
8120
  """
8121
  Attributes:
8122
   - id
8123
  """
8124
 
8125
  thrift_spec = (
8126
    None, # 0
8127
    (1, TType.I64, 'id', None, None, ), # 1
8128
  )
8129
 
8130
  def __init__(self, id=None,):
8131
    self.id = id
8132
 
8133
  def read(self, iprot):
8134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8136
      return
8137
    iprot.readStructBegin()
8138
    while True:
8139
      (fname, ftype, fid) = iprot.readFieldBegin()
8140
      if ftype == TType.STOP:
8141
        break
8142
      if fid == 1:
8143
        if ftype == TType.I64:
8144
          self.id = iprot.readI64();
8145
        else:
8146
          iprot.skip(ftype)
8147
      else:
8148
        iprot.skip(ftype)
8149
      iprot.readFieldEnd()
8150
    iprot.readStructEnd()
8151
 
8152
  def write(self, oprot):
8153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8155
      return
8156
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8157
    if self.id is not None:
1845 vikas 8158
      oprot.writeFieldBegin('id', TType.I64, 1)
8159
      oprot.writeI64(self.id)
8160
      oprot.writeFieldEnd()
8161
    oprot.writeFieldStop()
8162
    oprot.writeStructEnd()
8163
 
3431 rajveer 8164
  def validate(self):
8165
    return
8166
 
8167
 
1845 vikas 8168
  def __repr__(self):
8169
    L = ['%s=%r' % (key, value)
8170
      for key, value in self.__dict__.iteritems()]
8171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8172
 
8173
  def __eq__(self, other):
8174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8175
 
8176
  def __ne__(self, other):
8177
    return not (self == other)
8178
 
8179
class getAffiliateById_result:
8180
  """
8181
  Attributes:
8182
   - success
8183
   - utx
8184
  """
8185
 
8186
  thrift_spec = (
8187
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8188
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8189
  )
8190
 
8191
  def __init__(self, success=None, utx=None,):
8192
    self.success = success
8193
    self.utx = utx
8194
 
8195
  def read(self, iprot):
8196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8198
      return
8199
    iprot.readStructBegin()
8200
    while True:
8201
      (fname, ftype, fid) = iprot.readFieldBegin()
8202
      if ftype == TType.STOP:
8203
        break
8204
      if fid == 0:
8205
        if ftype == TType.STRUCT:
8206
          self.success = Affiliate()
8207
          self.success.read(iprot)
8208
        else:
8209
          iprot.skip(ftype)
8210
      elif fid == 1:
8211
        if ftype == TType.STRUCT:
1996 vikas 8212
          self.utx = UserAffiliateException()
1845 vikas 8213
          self.utx.read(iprot)
8214
        else:
8215
          iprot.skip(ftype)
8216
      else:
8217
        iprot.skip(ftype)
8218
      iprot.readFieldEnd()
8219
    iprot.readStructEnd()
8220
 
8221
  def write(self, oprot):
8222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8224
      return
8225
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8226
    if self.success is not None:
1845 vikas 8227
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8228
      self.success.write(oprot)
8229
      oprot.writeFieldEnd()
3431 rajveer 8230
    if self.utx is not None:
1845 vikas 8231
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8232
      self.utx.write(oprot)
8233
      oprot.writeFieldEnd()
8234
    oprot.writeFieldStop()
8235
    oprot.writeStructEnd()
8236
 
3431 rajveer 8237
  def validate(self):
8238
    return
8239
 
8240
 
1845 vikas 8241
  def __repr__(self):
8242
    L = ['%s=%r' % (key, value)
8243
      for key, value in self.__dict__.iteritems()]
8244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8245
 
8246
  def __eq__(self, other):
8247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8248
 
8249
  def __ne__(self, other):
8250
    return not (self == other)
8251
 
8252
class getAffiliateByName_args:
8253
  """
8254
  Attributes:
8255
   - name
8256
  """
8257
 
8258
  thrift_spec = (
8259
    None, # 0
8260
    (1, TType.STRING, 'name', None, None, ), # 1
8261
  )
8262
 
8263
  def __init__(self, name=None,):
8264
    self.name = name
8265
 
8266
  def read(self, iprot):
8267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8269
      return
8270
    iprot.readStructBegin()
8271
    while True:
8272
      (fname, ftype, fid) = iprot.readFieldBegin()
8273
      if ftype == TType.STOP:
8274
        break
8275
      if fid == 1:
8276
        if ftype == TType.STRING:
8277
          self.name = iprot.readString();
8278
        else:
8279
          iprot.skip(ftype)
8280
      else:
8281
        iprot.skip(ftype)
8282
      iprot.readFieldEnd()
8283
    iprot.readStructEnd()
8284
 
8285
  def write(self, oprot):
8286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8288
      return
8289
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8290
    if self.name is not None:
1845 vikas 8291
      oprot.writeFieldBegin('name', TType.STRING, 1)
8292
      oprot.writeString(self.name)
8293
      oprot.writeFieldEnd()
8294
    oprot.writeFieldStop()
8295
    oprot.writeStructEnd()
8296
 
3431 rajveer 8297
  def validate(self):
8298
    return
8299
 
8300
 
1845 vikas 8301
  def __repr__(self):
8302
    L = ['%s=%r' % (key, value)
8303
      for key, value in self.__dict__.iteritems()]
8304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8305
 
8306
  def __eq__(self, other):
8307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8308
 
8309
  def __ne__(self, other):
8310
    return not (self == other)
8311
 
8312
class getAffiliateByName_result:
8313
  """
8314
  Attributes:
8315
   - success
8316
   - utx
8317
  """
8318
 
8319
  thrift_spec = (
8320
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8321
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8322
  )
8323
 
8324
  def __init__(self, success=None, utx=None,):
8325
    self.success = success
8326
    self.utx = utx
8327
 
8328
  def read(self, iprot):
8329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8331
      return
8332
    iprot.readStructBegin()
8333
    while True:
8334
      (fname, ftype, fid) = iprot.readFieldBegin()
8335
      if ftype == TType.STOP:
8336
        break
8337
      if fid == 0:
8338
        if ftype == TType.STRUCT:
8339
          self.success = Affiliate()
8340
          self.success.read(iprot)
8341
        else:
8342
          iprot.skip(ftype)
8343
      elif fid == 1:
8344
        if ftype == TType.STRUCT:
1996 vikas 8345
          self.utx = UserAffiliateException()
1845 vikas 8346
          self.utx.read(iprot)
8347
        else:
8348
          iprot.skip(ftype)
8349
      else:
8350
        iprot.skip(ftype)
8351
      iprot.readFieldEnd()
8352
    iprot.readStructEnd()
8353
 
8354
  def write(self, oprot):
8355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8357
      return
8358
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8359
    if self.success is not None:
1845 vikas 8360
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8361
      self.success.write(oprot)
8362
      oprot.writeFieldEnd()
3431 rajveer 8363
    if self.utx is not None:
1845 vikas 8364
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8365
      self.utx.write(oprot)
8366
      oprot.writeFieldEnd()
8367
    oprot.writeFieldStop()
8368
    oprot.writeStructEnd()
8369
 
3431 rajveer 8370
  def validate(self):
8371
    return
8372
 
8373
 
1845 vikas 8374
  def __repr__(self):
8375
    L = ['%s=%r' % (key, value)
8376
      for key, value in self.__dict__.iteritems()]
8377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8378
 
8379
  def __eq__(self, other):
8380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8381
 
8382
  def __ne__(self, other):
8383
    return not (self == other)
8384
 
1996 vikas 8385
class getTrackerById_args:
1845 vikas 8386
  """
8387
  Attributes:
8388
   - id
8389
  """
8390
 
8391
  thrift_spec = (
8392
    None, # 0
8393
    (1, TType.I64, 'id', None, None, ), # 1
8394
  )
8395
 
8396
  def __init__(self, id=None,):
8397
    self.id = id
8398
 
8399
  def read(self, iprot):
8400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8402
      return
8403
    iprot.readStructBegin()
8404
    while True:
8405
      (fname, ftype, fid) = iprot.readFieldBegin()
8406
      if ftype == TType.STOP:
8407
        break
8408
      if fid == 1:
8409
        if ftype == TType.I64:
8410
          self.id = iprot.readI64();
8411
        else:
8412
          iprot.skip(ftype)
8413
      else:
8414
        iprot.skip(ftype)
8415
      iprot.readFieldEnd()
8416
    iprot.readStructEnd()
8417
 
8418
  def write(self, oprot):
8419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8421
      return
1996 vikas 8422
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8423
    if self.id is not None:
1845 vikas 8424
      oprot.writeFieldBegin('id', TType.I64, 1)
8425
      oprot.writeI64(self.id)
8426
      oprot.writeFieldEnd()
8427
    oprot.writeFieldStop()
8428
    oprot.writeStructEnd()
8429
 
3431 rajveer 8430
  def validate(self):
8431
    return
8432
 
8433
 
1845 vikas 8434
  def __repr__(self):
8435
    L = ['%s=%r' % (key, value)
8436
      for key, value in self.__dict__.iteritems()]
8437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8438
 
8439
  def __eq__(self, other):
8440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8441
 
8442
  def __ne__(self, other):
8443
    return not (self == other)
8444
 
8445
class getTrackerById_result:
8446
  """
8447
  Attributes:
8448
   - success
8449
   - utx
8450
  """
8451
 
8452
  thrift_spec = (
8453
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8454
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8455
  )
8456
 
8457
  def __init__(self, success=None, utx=None,):
8458
    self.success = success
8459
    self.utx = utx
8460
 
8461
  def read(self, iprot):
8462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8464
      return
8465
    iprot.readStructBegin()
8466
    while True:
8467
      (fname, ftype, fid) = iprot.readFieldBegin()
8468
      if ftype == TType.STOP:
8469
        break
8470
      if fid == 0:
8471
        if ftype == TType.STRUCT:
8472
          self.success = Tracker()
8473
          self.success.read(iprot)
8474
        else:
8475
          iprot.skip(ftype)
8476
      elif fid == 1:
8477
        if ftype == TType.STRUCT:
1996 vikas 8478
          self.utx = UserAffiliateException()
1845 vikas 8479
          self.utx.read(iprot)
8480
        else:
8481
          iprot.skip(ftype)
8482
      else:
8483
        iprot.skip(ftype)
8484
      iprot.readFieldEnd()
8485
    iprot.readStructEnd()
8486
 
8487
  def write(self, oprot):
8488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8490
      return
8491
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8492
    if self.success is not None:
1845 vikas 8493
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8494
      self.success.write(oprot)
8495
      oprot.writeFieldEnd()
3431 rajveer 8496
    if self.utx is not None:
1845 vikas 8497
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8498
      self.utx.write(oprot)
8499
      oprot.writeFieldEnd()
8500
    oprot.writeFieldStop()
8501
    oprot.writeStructEnd()
8502
 
3431 rajveer 8503
  def validate(self):
8504
    return
8505
 
8506
 
1845 vikas 8507
  def __repr__(self):
8508
    L = ['%s=%r' % (key, value)
8509
      for key, value in self.__dict__.iteritems()]
8510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8511
 
8512
  def __eq__(self, other):
8513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8514
 
8515
  def __ne__(self, other):
8516
    return not (self == other)
8517
 
1996 vikas 8518
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8519
  """
8520
  Attributes:
1996 vikas 8521
   - id
1845 vikas 8522
  """
8523
 
8524
  thrift_spec = (
8525
    None, # 0
1996 vikas 8526
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8527
  )
8528
 
1996 vikas 8529
  def __init__(self, id=None,):
8530
    self.id = id
1845 vikas 8531
 
8532
  def read(self, iprot):
8533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8535
      return
8536
    iprot.readStructBegin()
8537
    while True:
8538
      (fname, ftype, fid) = iprot.readFieldBegin()
8539
      if ftype == TType.STOP:
8540
        break
8541
      if fid == 1:
8542
        if ftype == TType.I64:
1996 vikas 8543
          self.id = iprot.readI64();
1845 vikas 8544
        else:
8545
          iprot.skip(ftype)
8546
      else:
8547
        iprot.skip(ftype)
8548
      iprot.readFieldEnd()
8549
    iprot.readStructEnd()
8550
 
8551
  def write(self, oprot):
8552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8554
      return
1996 vikas 8555
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8556
    if self.id is not None:
1996 vikas 8557
      oprot.writeFieldBegin('id', TType.I64, 1)
8558
      oprot.writeI64(self.id)
1845 vikas 8559
      oprot.writeFieldEnd()
8560
    oprot.writeFieldStop()
8561
    oprot.writeStructEnd()
8562
 
3431 rajveer 8563
  def validate(self):
8564
    return
8565
 
8566
 
1845 vikas 8567
  def __repr__(self):
8568
    L = ['%s=%r' % (key, value)
8569
      for key, value in self.__dict__.iteritems()]
8570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8571
 
8572
  def __eq__(self, other):
8573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8574
 
8575
  def __ne__(self, other):
8576
    return not (self == other)
8577
 
1996 vikas 8578
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8579
  """
8580
  Attributes:
8581
   - success
8582
   - utx
8583
  """
8584
 
8585
  thrift_spec = (
1996 vikas 8586
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8587
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8588
  )
8589
 
8590
  def __init__(self, success=None, utx=None,):
8591
    self.success = success
8592
    self.utx = utx
8593
 
8594
  def read(self, iprot):
8595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8597
      return
8598
    iprot.readStructBegin()
8599
    while True:
8600
      (fname, ftype, fid) = iprot.readFieldBegin()
8601
      if ftype == TType.STOP:
8602
        break
8603
      if fid == 0:
8604
        if ftype == TType.LIST:
8605
          self.success = []
6736 amit.gupta 8606
          (_etype114, _size111) = iprot.readListBegin()
8607
          for _i115 in xrange(_size111):
8608
            _elem116 = Affiliate()
8609
            _elem116.read(iprot)
8610
            self.success.append(_elem116)
1845 vikas 8611
          iprot.readListEnd()
8612
        else:
8613
          iprot.skip(ftype)
8614
      elif fid == 1:
8615
        if ftype == TType.STRUCT:
1996 vikas 8616
          self.utx = UserAffiliateException()
1845 vikas 8617
          self.utx.read(iprot)
8618
        else:
8619
          iprot.skip(ftype)
8620
      else:
8621
        iprot.skip(ftype)
8622
      iprot.readFieldEnd()
8623
    iprot.readStructEnd()
8624
 
8625
  def write(self, oprot):
8626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8628
      return
1996 vikas 8629
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8630
    if self.success is not None:
1845 vikas 8631
      oprot.writeFieldBegin('success', TType.LIST, 0)
8632
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 8633
      for iter117 in self.success:
8634
        iter117.write(oprot)
1845 vikas 8635
      oprot.writeListEnd()
8636
      oprot.writeFieldEnd()
3431 rajveer 8637
    if self.utx is not None:
1845 vikas 8638
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8639
      self.utx.write(oprot)
8640
      oprot.writeFieldEnd()
8641
    oprot.writeFieldStop()
8642
    oprot.writeStructEnd()
8643
 
3431 rajveer 8644
  def validate(self):
8645
    return
8646
 
8647
 
1845 vikas 8648
  def __repr__(self):
8649
    L = ['%s=%r' % (key, value)
8650
      for key, value in self.__dict__.iteritems()]
8651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8652
 
8653
  def __eq__(self, other):
8654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8655
 
8656
  def __ne__(self, other):
8657
    return not (self == other)
8658
 
8659
class addTrackLog_args:
8660
  """
8661
  Attributes:
1996 vikas 8662
   - affiliateId
1845 vikas 8663
   - userId
8664
   - event
8665
   - url
8666
   - data
1859 vikas 8667
   - addedOn
1845 vikas 8668
  """
8669
 
8670
  thrift_spec = (
8671
    None, # 0
1996 vikas 8672
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8673
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8674
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8675
    (4, TType.STRING, 'url', None, None, ), # 4
8676
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8677
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8678
  )
8679
 
1996 vikas 8680
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8681
    self.affiliateId = affiliateId
1845 vikas 8682
    self.userId = userId
8683
    self.event = event
8684
    self.url = url
8685
    self.data = data
1859 vikas 8686
    self.addedOn = addedOn
1845 vikas 8687
 
8688
  def read(self, iprot):
8689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8691
      return
8692
    iprot.readStructBegin()
8693
    while True:
8694
      (fname, ftype, fid) = iprot.readFieldBegin()
8695
      if ftype == TType.STOP:
8696
        break
8697
      if fid == 1:
8698
        if ftype == TType.I64:
1996 vikas 8699
          self.affiliateId = iprot.readI64();
1845 vikas 8700
        else:
8701
          iprot.skip(ftype)
8702
      elif fid == 2:
8703
        if ftype == TType.I64:
8704
          self.userId = iprot.readI64();
8705
        else:
8706
          iprot.skip(ftype)
8707
      elif fid == 3:
3378 vikas 8708
        if ftype == TType.I32:
8709
          self.event = iprot.readI32();
1845 vikas 8710
        else:
8711
          iprot.skip(ftype)
8712
      elif fid == 4:
8713
        if ftype == TType.STRING:
8714
          self.url = iprot.readString();
8715
        else:
8716
          iprot.skip(ftype)
8717
      elif fid == 5:
8718
        if ftype == TType.STRING:
8719
          self.data = iprot.readString();
8720
        else:
8721
          iprot.skip(ftype)
1859 vikas 8722
      elif fid == 6:
8723
        if ftype == TType.I64:
8724
          self.addedOn = iprot.readI64();
8725
        else:
8726
          iprot.skip(ftype)
1845 vikas 8727
      else:
8728
        iprot.skip(ftype)
8729
      iprot.readFieldEnd()
8730
    iprot.readStructEnd()
8731
 
8732
  def write(self, oprot):
8733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8735
      return
8736
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8737
    if self.affiliateId is not None:
1996 vikas 8738
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8739
      oprot.writeI64(self.affiliateId)
1845 vikas 8740
      oprot.writeFieldEnd()
3431 rajveer 8741
    if self.userId is not None:
1845 vikas 8742
      oprot.writeFieldBegin('userId', TType.I64, 2)
8743
      oprot.writeI64(self.userId)
8744
      oprot.writeFieldEnd()
3431 rajveer 8745
    if self.event is not None:
3378 vikas 8746
      oprot.writeFieldBegin('event', TType.I32, 3)
8747
      oprot.writeI32(self.event)
1845 vikas 8748
      oprot.writeFieldEnd()
3431 rajveer 8749
    if self.url is not None:
1845 vikas 8750
      oprot.writeFieldBegin('url', TType.STRING, 4)
8751
      oprot.writeString(self.url)
8752
      oprot.writeFieldEnd()
3431 rajveer 8753
    if self.data is not None:
1845 vikas 8754
      oprot.writeFieldBegin('data', TType.STRING, 5)
8755
      oprot.writeString(self.data)
8756
      oprot.writeFieldEnd()
3431 rajveer 8757
    if self.addedOn is not None:
1859 vikas 8758
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8759
      oprot.writeI64(self.addedOn)
8760
      oprot.writeFieldEnd()
1845 vikas 8761
    oprot.writeFieldStop()
8762
    oprot.writeStructEnd()
8763
 
3431 rajveer 8764
  def validate(self):
8765
    return
8766
 
8767
 
1845 vikas 8768
  def __repr__(self):
8769
    L = ['%s=%r' % (key, value)
8770
      for key, value in self.__dict__.iteritems()]
8771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8772
 
8773
  def __eq__(self, other):
8774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8775
 
8776
  def __ne__(self, other):
8777
    return not (self == other)
8778
 
8779
class addTrackLog_result:
8780
  """
8781
  Attributes:
8782
   - success
8783
   - utx
8784
  """
8785
 
8786
  thrift_spec = (
8787
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8788
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8789
  )
8790
 
8791
  def __init__(self, success=None, utx=None,):
8792
    self.success = success
8793
    self.utx = utx
8794
 
8795
  def read(self, iprot):
8796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8798
      return
8799
    iprot.readStructBegin()
8800
    while True:
8801
      (fname, ftype, fid) = iprot.readFieldBegin()
8802
      if ftype == TType.STOP:
8803
        break
8804
      if fid == 0:
8805
        if ftype == TType.I64:
8806
          self.success = iprot.readI64();
8807
        else:
8808
          iprot.skip(ftype)
8809
      elif fid == 1:
8810
        if ftype == TType.STRUCT:
1996 vikas 8811
          self.utx = UserAffiliateException()
1845 vikas 8812
          self.utx.read(iprot)
8813
        else:
8814
          iprot.skip(ftype)
8815
      else:
8816
        iprot.skip(ftype)
8817
      iprot.readFieldEnd()
8818
    iprot.readStructEnd()
8819
 
8820
  def write(self, oprot):
8821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8823
      return
8824
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8825
    if self.success is not None:
1845 vikas 8826
      oprot.writeFieldBegin('success', TType.I64, 0)
8827
      oprot.writeI64(self.success)
8828
      oprot.writeFieldEnd()
3431 rajveer 8829
    if self.utx is not None:
1845 vikas 8830
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8831
      self.utx.write(oprot)
8832
      oprot.writeFieldEnd()
8833
    oprot.writeFieldStop()
8834
    oprot.writeStructEnd()
8835
 
3431 rajveer 8836
  def validate(self):
8837
    return
8838
 
8839
 
1845 vikas 8840
  def __repr__(self):
8841
    L = ['%s=%r' % (key, value)
8842
      for key, value in self.__dict__.iteritems()]
8843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8844
 
8845
  def __eq__(self, other):
8846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8847
 
8848
  def __ne__(self, other):
8849
    return not (self == other)
8850
 
8851
class getTrackLogById_args:
8852
  """
8853
  Attributes:
8854
   - id
8855
  """
8856
 
8857
  thrift_spec = (
8858
    None, # 0
8859
    (1, TType.I64, 'id', None, None, ), # 1
8860
  )
8861
 
8862
  def __init__(self, id=None,):
8863
    self.id = id
8864
 
8865
  def read(self, iprot):
8866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8868
      return
8869
    iprot.readStructBegin()
8870
    while True:
8871
      (fname, ftype, fid) = iprot.readFieldBegin()
8872
      if ftype == TType.STOP:
8873
        break
8874
      if fid == 1:
8875
        if ftype == TType.I64:
8876
          self.id = iprot.readI64();
8877
        else:
8878
          iprot.skip(ftype)
8879
      else:
8880
        iprot.skip(ftype)
8881
      iprot.readFieldEnd()
8882
    iprot.readStructEnd()
8883
 
8884
  def write(self, oprot):
8885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8887
      return
8888
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8889
    if self.id is not None:
1845 vikas 8890
      oprot.writeFieldBegin('id', TType.I64, 1)
8891
      oprot.writeI64(self.id)
8892
      oprot.writeFieldEnd()
8893
    oprot.writeFieldStop()
8894
    oprot.writeStructEnd()
8895
 
3431 rajveer 8896
  def validate(self):
8897
    return
8898
 
8899
 
1845 vikas 8900
  def __repr__(self):
8901
    L = ['%s=%r' % (key, value)
8902
      for key, value in self.__dict__.iteritems()]
8903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8904
 
8905
  def __eq__(self, other):
8906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8907
 
8908
  def __ne__(self, other):
8909
    return not (self == other)
8910
 
8911
class getTrackLogById_result:
8912
  """
8913
  Attributes:
8914
   - success
8915
   - utx
8916
  """
8917
 
8918
  thrift_spec = (
8919
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8920
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8921
  )
8922
 
8923
  def __init__(self, success=None, utx=None,):
8924
    self.success = success
8925
    self.utx = utx
8926
 
8927
  def read(self, iprot):
8928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8930
      return
8931
    iprot.readStructBegin()
8932
    while True:
8933
      (fname, ftype, fid) = iprot.readFieldBegin()
8934
      if ftype == TType.STOP:
8935
        break
8936
      if fid == 0:
8937
        if ftype == TType.STRUCT:
8938
          self.success = TrackLog()
8939
          self.success.read(iprot)
8940
        else:
8941
          iprot.skip(ftype)
8942
      elif fid == 1:
8943
        if ftype == TType.STRUCT:
1996 vikas 8944
          self.utx = UserAffiliateException()
1845 vikas 8945
          self.utx.read(iprot)
8946
        else:
8947
          iprot.skip(ftype)
8948
      else:
8949
        iprot.skip(ftype)
8950
      iprot.readFieldEnd()
8951
    iprot.readStructEnd()
8952
 
8953
  def write(self, oprot):
8954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8956
      return
8957
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8958
    if self.success is not None:
1845 vikas 8959
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8960
      self.success.write(oprot)
8961
      oprot.writeFieldEnd()
3431 rajveer 8962
    if self.utx is not None:
1845 vikas 8963
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8964
      self.utx.write(oprot)
8965
      oprot.writeFieldEnd()
8966
    oprot.writeFieldStop()
8967
    oprot.writeStructEnd()
8968
 
3431 rajveer 8969
  def validate(self):
8970
    return
8971
 
8972
 
1845 vikas 8973
  def __repr__(self):
8974
    L = ['%s=%r' % (key, value)
8975
      for key, value in self.__dict__.iteritems()]
8976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8977
 
8978
  def __eq__(self, other):
8979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8980
 
8981
  def __ne__(self, other):
8982
    return not (self == other)
8983
 
1996 vikas 8984
class getTrackLogsByAffiliate_args:
1845 vikas 8985
  """
8986
  Attributes:
1996 vikas 8987
   - affiliateId
3293 vikas 8988
   - startDate
8989
   - endDate
1845 vikas 8990
  """
8991
 
8992
  thrift_spec = (
8993
    None, # 0
1996 vikas 8994
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8995
    (2, TType.I64, 'startDate', None, None, ), # 2
8996
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8997
  )
8998
 
3293 vikas 8999
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9000
    self.affiliateId = affiliateId
3293 vikas 9001
    self.startDate = startDate
9002
    self.endDate = endDate
1845 vikas 9003
 
9004
  def read(self, iprot):
9005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9007
      return
9008
    iprot.readStructBegin()
9009
    while True:
9010
      (fname, ftype, fid) = iprot.readFieldBegin()
9011
      if ftype == TType.STOP:
9012
        break
9013
      if fid == 1:
9014
        if ftype == TType.I64:
1996 vikas 9015
          self.affiliateId = iprot.readI64();
1845 vikas 9016
        else:
9017
          iprot.skip(ftype)
3293 vikas 9018
      elif fid == 2:
9019
        if ftype == TType.I64:
9020
          self.startDate = iprot.readI64();
9021
        else:
9022
          iprot.skip(ftype)
9023
      elif fid == 3:
9024
        if ftype == TType.I64:
9025
          self.endDate = iprot.readI64();
9026
        else:
9027
          iprot.skip(ftype)
1845 vikas 9028
      else:
9029
        iprot.skip(ftype)
9030
      iprot.readFieldEnd()
9031
    iprot.readStructEnd()
9032
 
9033
  def write(self, oprot):
9034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9036
      return
1996 vikas 9037
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9038
    if self.affiliateId is not None:
1996 vikas 9039
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9040
      oprot.writeI64(self.affiliateId)
1845 vikas 9041
      oprot.writeFieldEnd()
3431 rajveer 9042
    if self.startDate is not None:
3293 vikas 9043
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9044
      oprot.writeI64(self.startDate)
9045
      oprot.writeFieldEnd()
3431 rajveer 9046
    if self.endDate is not None:
3293 vikas 9047
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9048
      oprot.writeI64(self.endDate)
9049
      oprot.writeFieldEnd()
1845 vikas 9050
    oprot.writeFieldStop()
9051
    oprot.writeStructEnd()
9052
 
3431 rajveer 9053
  def validate(self):
9054
    return
9055
 
9056
 
1845 vikas 9057
  def __repr__(self):
9058
    L = ['%s=%r' % (key, value)
9059
      for key, value in self.__dict__.iteritems()]
9060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9061
 
9062
  def __eq__(self, other):
9063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9064
 
9065
  def __ne__(self, other):
9066
    return not (self == other)
9067
 
1996 vikas 9068
class getTrackLogsByAffiliate_result:
1845 vikas 9069
  """
9070
  Attributes:
9071
   - success
9072
   - utx
9073
  """
9074
 
9075
  thrift_spec = (
9076
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9077
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9078
  )
9079
 
9080
  def __init__(self, success=None, utx=None,):
9081
    self.success = success
9082
    self.utx = utx
9083
 
9084
  def read(self, iprot):
9085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9087
      return
9088
    iprot.readStructBegin()
9089
    while True:
9090
      (fname, ftype, fid) = iprot.readFieldBegin()
9091
      if ftype == TType.STOP:
9092
        break
9093
      if fid == 0:
9094
        if ftype == TType.LIST:
9095
          self.success = []
6736 amit.gupta 9096
          (_etype121, _size118) = iprot.readListBegin()
9097
          for _i122 in xrange(_size118):
9098
            _elem123 = TrackLog()
9099
            _elem123.read(iprot)
9100
            self.success.append(_elem123)
1845 vikas 9101
          iprot.readListEnd()
9102
        else:
9103
          iprot.skip(ftype)
9104
      elif fid == 1:
9105
        if ftype == TType.STRUCT:
1996 vikas 9106
          self.utx = UserAffiliateException()
1845 vikas 9107
          self.utx.read(iprot)
9108
        else:
9109
          iprot.skip(ftype)
9110
      else:
9111
        iprot.skip(ftype)
9112
      iprot.readFieldEnd()
9113
    iprot.readStructEnd()
9114
 
9115
  def write(self, oprot):
9116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9118
      return
1996 vikas 9119
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9120
    if self.success is not None:
1845 vikas 9121
      oprot.writeFieldBegin('success', TType.LIST, 0)
9122
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9123
      for iter124 in self.success:
9124
        iter124.write(oprot)
1845 vikas 9125
      oprot.writeListEnd()
9126
      oprot.writeFieldEnd()
3431 rajveer 9127
    if self.utx is not None:
1845 vikas 9128
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9129
      self.utx.write(oprot)
9130
      oprot.writeFieldEnd()
9131
    oprot.writeFieldStop()
9132
    oprot.writeStructEnd()
9133
 
3431 rajveer 9134
  def validate(self):
9135
    return
9136
 
9137
 
1845 vikas 9138
  def __repr__(self):
9139
    L = ['%s=%r' % (key, value)
9140
      for key, value in self.__dict__.iteritems()]
9141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9142
 
9143
  def __eq__(self, other):
9144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9145
 
9146
  def __ne__(self, other):
9147
    return not (self == other)
9148
 
9149
class getTrackLogsByUser_args:
9150
  """
9151
  Attributes:
9152
   - userId
9153
  """
9154
 
9155
  thrift_spec = (
9156
    None, # 0
9157
    (1, TType.I64, 'userId', None, None, ), # 1
9158
  )
9159
 
9160
  def __init__(self, userId=None,):
9161
    self.userId = userId
9162
 
9163
  def read(self, iprot):
9164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9166
      return
9167
    iprot.readStructBegin()
9168
    while True:
9169
      (fname, ftype, fid) = iprot.readFieldBegin()
9170
      if ftype == TType.STOP:
9171
        break
9172
      if fid == 1:
9173
        if ftype == TType.I64:
9174
          self.userId = iprot.readI64();
9175
        else:
9176
          iprot.skip(ftype)
9177
      else:
9178
        iprot.skip(ftype)
9179
      iprot.readFieldEnd()
9180
    iprot.readStructEnd()
9181
 
9182
  def write(self, oprot):
9183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9185
      return
9186
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9187
    if self.userId is not None:
1845 vikas 9188
      oprot.writeFieldBegin('userId', TType.I64, 1)
9189
      oprot.writeI64(self.userId)
9190
      oprot.writeFieldEnd()
9191
    oprot.writeFieldStop()
9192
    oprot.writeStructEnd()
9193
 
3431 rajveer 9194
  def validate(self):
9195
    return
9196
 
9197
 
1845 vikas 9198
  def __repr__(self):
9199
    L = ['%s=%r' % (key, value)
9200
      for key, value in self.__dict__.iteritems()]
9201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9202
 
9203
  def __eq__(self, other):
9204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9205
 
9206
  def __ne__(self, other):
9207
    return not (self == other)
9208
 
9209
class getTrackLogsByUser_result:
9210
  """
9211
  Attributes:
9212
   - success
9213
   - utx
9214
  """
9215
 
9216
  thrift_spec = (
9217
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9218
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9219
  )
9220
 
9221
  def __init__(self, success=None, utx=None,):
9222
    self.success = success
9223
    self.utx = utx
9224
 
9225
  def read(self, iprot):
9226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9228
      return
9229
    iprot.readStructBegin()
9230
    while True:
9231
      (fname, ftype, fid) = iprot.readFieldBegin()
9232
      if ftype == TType.STOP:
9233
        break
9234
      if fid == 0:
9235
        if ftype == TType.LIST:
9236
          self.success = []
6736 amit.gupta 9237
          (_etype128, _size125) = iprot.readListBegin()
9238
          for _i129 in xrange(_size125):
9239
            _elem130 = TrackLog()
9240
            _elem130.read(iprot)
9241
            self.success.append(_elem130)
1845 vikas 9242
          iprot.readListEnd()
9243
        else:
9244
          iprot.skip(ftype)
9245
      elif fid == 1:
9246
        if ftype == TType.STRUCT:
1996 vikas 9247
          self.utx = UserAffiliateException()
1845 vikas 9248
          self.utx.read(iprot)
9249
        else:
9250
          iprot.skip(ftype)
9251
      else:
9252
        iprot.skip(ftype)
9253
      iprot.readFieldEnd()
9254
    iprot.readStructEnd()
9255
 
9256
  def write(self, oprot):
9257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9259
      return
9260
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9261
    if self.success is not None:
1845 vikas 9262
      oprot.writeFieldBegin('success', TType.LIST, 0)
9263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9264
      for iter131 in self.success:
9265
        iter131.write(oprot)
1845 vikas 9266
      oprot.writeListEnd()
9267
      oprot.writeFieldEnd()
3431 rajveer 9268
    if self.utx is not None:
1845 vikas 9269
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9270
      self.utx.write(oprot)
9271
      oprot.writeFieldEnd()
9272
    oprot.writeFieldStop()
9273
    oprot.writeStructEnd()
9274
 
3431 rajveer 9275
  def validate(self):
9276
    return
9277
 
9278
 
1845 vikas 9279
  def __repr__(self):
9280
    L = ['%s=%r' % (key, value)
9281
      for key, value in self.__dict__.iteritems()]
9282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9283
 
9284
  def __eq__(self, other):
9285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9286
 
9287
  def __ne__(self, other):
9288
    return not (self == other)
9289
 
9290
class getTrackLogs_args:
9291
  """
9292
  Attributes:
9293
   - userId
9294
   - event
9295
   - url
9296
  """
9297
 
9298
  thrift_spec = (
9299
    None, # 0
1996 vikas 9300
    (1, TType.I64, 'userId', None, None, ), # 1
9301
    (2, TType.STRING, 'event', None, None, ), # 2
9302
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9303
  )
9304
 
1996 vikas 9305
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9306
    self.userId = userId
9307
    self.event = event
9308
    self.url = url
9309
 
9310
  def read(self, iprot):
9311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9313
      return
9314
    iprot.readStructBegin()
9315
    while True:
9316
      (fname, ftype, fid) = iprot.readFieldBegin()
9317
      if ftype == TType.STOP:
9318
        break
9319
      if fid == 1:
9320
        if ftype == TType.I64:
1996 vikas 9321
          self.userId = iprot.readI64();
1845 vikas 9322
        else:
9323
          iprot.skip(ftype)
9324
      elif fid == 2:
9325
        if ftype == TType.STRING:
9326
          self.event = iprot.readString();
9327
        else:
9328
          iprot.skip(ftype)
1996 vikas 9329
      elif fid == 3:
1845 vikas 9330
        if ftype == TType.STRING:
9331
          self.url = iprot.readString();
9332
        else:
9333
          iprot.skip(ftype)
9334
      else:
9335
        iprot.skip(ftype)
9336
      iprot.readFieldEnd()
9337
    iprot.readStructEnd()
9338
 
9339
  def write(self, oprot):
9340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9342
      return
9343
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9344
    if self.userId is not None:
1996 vikas 9345
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9346
      oprot.writeI64(self.userId)
9347
      oprot.writeFieldEnd()
3431 rajveer 9348
    if self.event is not None:
1996 vikas 9349
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9350
      oprot.writeString(self.event)
9351
      oprot.writeFieldEnd()
3431 rajveer 9352
    if self.url is not None:
1996 vikas 9353
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9354
      oprot.writeString(self.url)
9355
      oprot.writeFieldEnd()
9356
    oprot.writeFieldStop()
9357
    oprot.writeStructEnd()
9358
 
3431 rajveer 9359
  def validate(self):
9360
    return
9361
 
9362
 
1845 vikas 9363
  def __repr__(self):
9364
    L = ['%s=%r' % (key, value)
9365
      for key, value in self.__dict__.iteritems()]
9366
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9367
 
9368
  def __eq__(self, other):
9369
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9370
 
9371
  def __ne__(self, other):
9372
    return not (self == other)
9373
 
9374
class getTrackLogs_result:
9375
  """
9376
  Attributes:
9377
   - success
9378
   - utx
9379
  """
9380
 
9381
  thrift_spec = (
9382
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9383
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9384
  )
9385
 
9386
  def __init__(self, success=None, utx=None,):
9387
    self.success = success
9388
    self.utx = utx
9389
 
9390
  def read(self, iprot):
9391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9393
      return
9394
    iprot.readStructBegin()
9395
    while True:
9396
      (fname, ftype, fid) = iprot.readFieldBegin()
9397
      if ftype == TType.STOP:
9398
        break
9399
      if fid == 0:
9400
        if ftype == TType.LIST:
9401
          self.success = []
6736 amit.gupta 9402
          (_etype135, _size132) = iprot.readListBegin()
9403
          for _i136 in xrange(_size132):
9404
            _elem137 = TrackLog()
9405
            _elem137.read(iprot)
9406
            self.success.append(_elem137)
1845 vikas 9407
          iprot.readListEnd()
9408
        else:
9409
          iprot.skip(ftype)
9410
      elif fid == 1:
9411
        if ftype == TType.STRUCT:
1996 vikas 9412
          self.utx = UserAffiliateException()
1845 vikas 9413
          self.utx.read(iprot)
9414
        else:
9415
          iprot.skip(ftype)
9416
      else:
9417
        iprot.skip(ftype)
9418
      iprot.readFieldEnd()
9419
    iprot.readStructEnd()
9420
 
9421
  def write(self, oprot):
9422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9424
      return
9425
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9426
    if self.success is not None:
1845 vikas 9427
      oprot.writeFieldBegin('success', TType.LIST, 0)
9428
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9429
      for iter138 in self.success:
9430
        iter138.write(oprot)
1845 vikas 9431
      oprot.writeListEnd()
9432
      oprot.writeFieldEnd()
3431 rajveer 9433
    if self.utx is not None:
1845 vikas 9434
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9435
      self.utx.write(oprot)
9436
      oprot.writeFieldEnd()
9437
    oprot.writeFieldStop()
9438
    oprot.writeStructEnd()
9439
 
3431 rajveer 9440
  def validate(self):
9441
    return
9442
 
9443
 
1845 vikas 9444
  def __repr__(self):
9445
    L = ['%s=%r' % (key, value)
9446
      for key, value in self.__dict__.iteritems()]
9447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9448
 
9449
  def __eq__(self, other):
9450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9451
 
9452
  def __ne__(self, other):
9453
    return not (self == other)
9454
 
559 chandransh 9455
class getCurrentCart_args:
94 ashish 9456
  """
9457
  Attributes:
559 chandransh 9458
   - userId
9459
  """
9460
 
9461
  thrift_spec = (
9462
    None, # 0
9463
    (1, TType.I64, 'userId', None, None, ), # 1
9464
  )
9465
 
9466
  def __init__(self, userId=None,):
9467
    self.userId = userId
9468
 
9469
  def read(self, iprot):
9470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9472
      return
9473
    iprot.readStructBegin()
9474
    while True:
9475
      (fname, ftype, fid) = iprot.readFieldBegin()
9476
      if ftype == TType.STOP:
9477
        break
9478
      if fid == 1:
9479
        if ftype == TType.I64:
9480
          self.userId = iprot.readI64();
9481
        else:
9482
          iprot.skip(ftype)
9483
      else:
9484
        iprot.skip(ftype)
9485
      iprot.readFieldEnd()
9486
    iprot.readStructEnd()
9487
 
9488
  def write(self, oprot):
9489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9491
      return
9492
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9493
    if self.userId is not None:
559 chandransh 9494
      oprot.writeFieldBegin('userId', TType.I64, 1)
9495
      oprot.writeI64(self.userId)
9496
      oprot.writeFieldEnd()
9497
    oprot.writeFieldStop()
9498
    oprot.writeStructEnd()
9499
 
3431 rajveer 9500
  def validate(self):
9501
    return
9502
 
9503
 
559 chandransh 9504
  def __repr__(self):
9505
    L = ['%s=%r' % (key, value)
9506
      for key, value in self.__dict__.iteritems()]
9507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9508
 
9509
  def __eq__(self, other):
9510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9511
 
9512
  def __ne__(self, other):
9513
    return not (self == other)
9514
 
9515
class getCurrentCart_result:
9516
  """
9517
  Attributes:
94 ashish 9518
   - success
559 chandransh 9519
   - scx
94 ashish 9520
  """
9521
 
9522
  thrift_spec = (
559 chandransh 9523
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9524
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9525
  )
9526
 
559 chandransh 9527
  def __init__(self, success=None, scx=None,):
94 ashish 9528
    self.success = success
559 chandransh 9529
    self.scx = scx
94 ashish 9530
 
9531
  def read(self, iprot):
9532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9534
      return
9535
    iprot.readStructBegin()
9536
    while True:
9537
      (fname, ftype, fid) = iprot.readFieldBegin()
9538
      if ftype == TType.STOP:
9539
        break
9540
      if fid == 0:
559 chandransh 9541
        if ftype == TType.STRUCT:
9542
          self.success = Cart()
9543
          self.success.read(iprot)
94 ashish 9544
        else:
9545
          iprot.skip(ftype)
9546
      elif fid == 1:
9547
        if ftype == TType.STRUCT:
559 chandransh 9548
          self.scx = ShoppingCartException()
9549
          self.scx.read(iprot)
94 ashish 9550
        else:
9551
          iprot.skip(ftype)
9552
      else:
9553
        iprot.skip(ftype)
9554
      iprot.readFieldEnd()
9555
    iprot.readStructEnd()
9556
 
9557
  def write(self, oprot):
9558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9560
      return
559 chandransh 9561
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9562
    if self.success is not None:
559 chandransh 9563
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9564
      self.success.write(oprot)
94 ashish 9565
      oprot.writeFieldEnd()
3431 rajveer 9566
    if self.scx is not None:
559 chandransh 9567
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9568
      self.scx.write(oprot)
94 ashish 9569
      oprot.writeFieldEnd()
9570
    oprot.writeFieldStop()
9571
    oprot.writeStructEnd()
9572
 
3431 rajveer 9573
  def validate(self):
9574
    return
9575
 
9576
 
94 ashish 9577
  def __repr__(self):
9578
    L = ['%s=%r' % (key, value)
9579
      for key, value in self.__dict__.iteritems()]
9580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9581
 
9582
  def __eq__(self, other):
9583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9584
 
9585
  def __ne__(self, other):
9586
    return not (self == other)
9587
 
559 chandransh 9588
class getCart_args:
504 rajveer 9589
  """
9590
  Attributes:
559 chandransh 9591
   - cartId
504 rajveer 9592
  """
9593
 
9594
  thrift_spec = (
9595
    None, # 0
559 chandransh 9596
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9597
  )
9598
 
559 chandransh 9599
  def __init__(self, cartId=None,):
9600
    self.cartId = cartId
504 rajveer 9601
 
9602
  def read(self, iprot):
9603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9605
      return
9606
    iprot.readStructBegin()
9607
    while True:
9608
      (fname, ftype, fid) = iprot.readFieldBegin()
9609
      if ftype == TType.STOP:
9610
        break
9611
      if fid == 1:
9612
        if ftype == TType.I64:
559 chandransh 9613
          self.cartId = iprot.readI64();
504 rajveer 9614
        else:
9615
          iprot.skip(ftype)
9616
      else:
9617
        iprot.skip(ftype)
9618
      iprot.readFieldEnd()
9619
    iprot.readStructEnd()
9620
 
9621
  def write(self, oprot):
9622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9624
      return
559 chandransh 9625
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9626
    if self.cartId is not None:
559 chandransh 9627
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9628
      oprot.writeI64(self.cartId)
504 rajveer 9629
      oprot.writeFieldEnd()
9630
    oprot.writeFieldStop()
9631
    oprot.writeStructEnd()
9632
 
3431 rajveer 9633
  def validate(self):
9634
    return
9635
 
9636
 
504 rajveer 9637
  def __repr__(self):
9638
    L = ['%s=%r' % (key, value)
9639
      for key, value in self.__dict__.iteritems()]
9640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9641
 
9642
  def __eq__(self, other):
9643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9644
 
9645
  def __ne__(self, other):
9646
    return not (self == other)
9647
 
559 chandransh 9648
class getCart_result:
504 rajveer 9649
  """
9650
  Attributes:
9651
   - success
559 chandransh 9652
   - scx
504 rajveer 9653
  """
9654
 
9655
  thrift_spec = (
559 chandransh 9656
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9657
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9658
  )
9659
 
559 chandransh 9660
  def __init__(self, success=None, scx=None,):
504 rajveer 9661
    self.success = success
559 chandransh 9662
    self.scx = scx
504 rajveer 9663
 
9664
  def read(self, iprot):
9665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9667
      return
9668
    iprot.readStructBegin()
9669
    while True:
9670
      (fname, ftype, fid) = iprot.readFieldBegin()
9671
      if ftype == TType.STOP:
9672
        break
9673
      if fid == 0:
559 chandransh 9674
        if ftype == TType.STRUCT:
9675
          self.success = Cart()
9676
          self.success.read(iprot)
504 rajveer 9677
        else:
9678
          iprot.skip(ftype)
9679
      elif fid == 1:
9680
        if ftype == TType.STRUCT:
559 chandransh 9681
          self.scx = ShoppingCartException()
9682
          self.scx.read(iprot)
504 rajveer 9683
        else:
9684
          iprot.skip(ftype)
9685
      else:
9686
        iprot.skip(ftype)
9687
      iprot.readFieldEnd()
9688
    iprot.readStructEnd()
9689
 
9690
  def write(self, oprot):
9691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9693
      return
559 chandransh 9694
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9695
    if self.success is not None:
559 chandransh 9696
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9697
      self.success.write(oprot)
504 rajveer 9698
      oprot.writeFieldEnd()
3431 rajveer 9699
    if self.scx is not None:
559 chandransh 9700
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9701
      self.scx.write(oprot)
504 rajveer 9702
      oprot.writeFieldEnd()
9703
    oprot.writeFieldStop()
9704
    oprot.writeStructEnd()
9705
 
3431 rajveer 9706
  def validate(self):
9707
    return
9708
 
9709
 
504 rajveer 9710
  def __repr__(self):
9711
    L = ['%s=%r' % (key, value)
9712
      for key, value in self.__dict__.iteritems()]
9713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9714
 
9715
  def __eq__(self, other):
9716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9717
 
9718
  def __ne__(self, other):
9719
    return not (self == other)
9720
 
559 chandransh 9721
class getCartsByTime_args:
9722
  """
9723
  Attributes:
9724
   - from_time
9725
   - to_time
9726
   - status
9727
  """
9728
 
9729
  thrift_spec = (
9730
    None, # 0
9731
    (1, TType.I64, 'from_time', None, None, ), # 1
9732
    (2, TType.I64, 'to_time', None, None, ), # 2
9733
    (3, TType.I32, 'status', None, None, ), # 3
9734
  )
9735
 
9736
  def __init__(self, from_time=None, to_time=None, status=None,):
9737
    self.from_time = from_time
9738
    self.to_time = to_time
9739
    self.status = status
9740
 
9741
  def read(self, iprot):
9742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9744
      return
9745
    iprot.readStructBegin()
9746
    while True:
9747
      (fname, ftype, fid) = iprot.readFieldBegin()
9748
      if ftype == TType.STOP:
9749
        break
9750
      if fid == 1:
94 ashish 9751
        if ftype == TType.I64:
559 chandransh 9752
          self.from_time = iprot.readI64();
94 ashish 9753
        else:
9754
          iprot.skip(ftype)
122 ashish 9755
      elif fid == 2:
559 chandransh 9756
        if ftype == TType.I64:
9757
          self.to_time = iprot.readI64();
122 ashish 9758
        else:
9759
          iprot.skip(ftype)
559 chandransh 9760
      elif fid == 3:
9761
        if ftype == TType.I32:
9762
          self.status = iprot.readI32();
9763
        else:
9764
          iprot.skip(ftype)
94 ashish 9765
      else:
9766
        iprot.skip(ftype)
9767
      iprot.readFieldEnd()
9768
    iprot.readStructEnd()
9769
 
9770
  def write(self, oprot):
9771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9773
      return
559 chandransh 9774
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9775
    if self.from_time is not None:
559 chandransh 9776
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9777
      oprot.writeI64(self.from_time)
94 ashish 9778
      oprot.writeFieldEnd()
3431 rajveer 9779
    if self.to_time is not None:
559 chandransh 9780
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9781
      oprot.writeI64(self.to_time)
122 ashish 9782
      oprot.writeFieldEnd()
3431 rajveer 9783
    if self.status is not None:
559 chandransh 9784
      oprot.writeFieldBegin('status', TType.I32, 3)
9785
      oprot.writeI32(self.status)
9786
      oprot.writeFieldEnd()
94 ashish 9787
    oprot.writeFieldStop()
9788
    oprot.writeStructEnd()
9789
 
3431 rajveer 9790
  def validate(self):
9791
    return
9792
 
9793
 
94 ashish 9794
  def __repr__(self):
9795
    L = ['%s=%r' % (key, value)
9796
      for key, value in self.__dict__.iteritems()]
9797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9798
 
9799
  def __eq__(self, other):
9800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9801
 
9802
  def __ne__(self, other):
9803
    return not (self == other)
9804
 
559 chandransh 9805
class getCartsByTime_result:
94 ashish 9806
  """
9807
  Attributes:
9808
   - success
559 chandransh 9809
   - scx
94 ashish 9810
  """
9811
 
9812
  thrift_spec = (
559 chandransh 9813
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9814
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9815
  )
9816
 
559 chandransh 9817
  def __init__(self, success=None, scx=None,):
94 ashish 9818
    self.success = success
559 chandransh 9819
    self.scx = scx
94 ashish 9820
 
9821
  def read(self, iprot):
9822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9824
      return
9825
    iprot.readStructBegin()
9826
    while True:
9827
      (fname, ftype, fid) = iprot.readFieldBegin()
9828
      if ftype == TType.STOP:
9829
        break
9830
      if fid == 0:
559 chandransh 9831
        if ftype == TType.LIST:
9832
          self.success = []
6736 amit.gupta 9833
          (_etype142, _size139) = iprot.readListBegin()
9834
          for _i143 in xrange(_size139):
9835
            _elem144 = Cart()
9836
            _elem144.read(iprot)
9837
            self.success.append(_elem144)
559 chandransh 9838
          iprot.readListEnd()
94 ashish 9839
        else:
9840
          iprot.skip(ftype)
9841
      elif fid == 1:
9842
        if ftype == TType.STRUCT:
559 chandransh 9843
          self.scx = ShoppingCartException()
9844
          self.scx.read(iprot)
94 ashish 9845
        else:
9846
          iprot.skip(ftype)
9847
      else:
9848
        iprot.skip(ftype)
9849
      iprot.readFieldEnd()
9850
    iprot.readStructEnd()
9851
 
9852
  def write(self, oprot):
9853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9855
      return
559 chandransh 9856
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9857
    if self.success is not None:
559 chandransh 9858
      oprot.writeFieldBegin('success', TType.LIST, 0)
9859
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9860
      for iter145 in self.success:
9861
        iter145.write(oprot)
559 chandransh 9862
      oprot.writeListEnd()
94 ashish 9863
      oprot.writeFieldEnd()
3431 rajveer 9864
    if self.scx is not None:
559 chandransh 9865
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9866
      self.scx.write(oprot)
94 ashish 9867
      oprot.writeFieldEnd()
9868
    oprot.writeFieldStop()
9869
    oprot.writeStructEnd()
9870
 
3431 rajveer 9871
  def validate(self):
9872
    return
9873
 
9874
 
94 ashish 9875
  def __repr__(self):
9876
    L = ['%s=%r' % (key, value)
9877
      for key, value in self.__dict__.iteritems()]
9878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9879
 
9880
  def __eq__(self, other):
9881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9882
 
9883
  def __ne__(self, other):
9884
    return not (self == other)
9885
 
559 chandransh 9886
class addItemToCart_args:
9887
  """
9888
  Attributes:
9889
   - cartId
9890
   - itemId
9891
   - quantity
3557 rajveer 9892
   - sourceId
559 chandransh 9893
  """
9894
 
9895
  thrift_spec = (
9896
    None, # 0
9897
    (1, TType.I64, 'cartId', None, None, ), # 1
9898
    (2, TType.I64, 'itemId', None, None, ), # 2
9899
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9900
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9901
  )
9902
 
3557 rajveer 9903
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9904
    self.cartId = cartId
9905
    self.itemId = itemId
9906
    self.quantity = quantity
3557 rajveer 9907
    self.sourceId = sourceId
559 chandransh 9908
 
9909
  def read(self, iprot):
9910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9912
      return
9913
    iprot.readStructBegin()
9914
    while True:
9915
      (fname, ftype, fid) = iprot.readFieldBegin()
9916
      if ftype == TType.STOP:
9917
        break
9918
      if fid == 1:
9919
        if ftype == TType.I64:
9920
          self.cartId = iprot.readI64();
9921
        else:
9922
          iprot.skip(ftype)
9923
      elif fid == 2:
9924
        if ftype == TType.I64:
9925
          self.itemId = iprot.readI64();
9926
        else:
9927
          iprot.skip(ftype)
9928
      elif fid == 3:
9929
        if ftype == TType.I64:
9930
          self.quantity = iprot.readI64();
9931
        else:
9932
          iprot.skip(ftype)
3557 rajveer 9933
      elif fid == 4:
9934
        if ftype == TType.I64:
9935
          self.sourceId = iprot.readI64();
9936
        else:
9937
          iprot.skip(ftype)
559 chandransh 9938
      else:
9939
        iprot.skip(ftype)
9940
      iprot.readFieldEnd()
9941
    iprot.readStructEnd()
9942
 
9943
  def write(self, oprot):
9944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9946
      return
9947
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9948
    if self.cartId is not None:
559 chandransh 9949
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9950
      oprot.writeI64(self.cartId)
9951
      oprot.writeFieldEnd()
3431 rajveer 9952
    if self.itemId is not None:
559 chandransh 9953
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9954
      oprot.writeI64(self.itemId)
9955
      oprot.writeFieldEnd()
3431 rajveer 9956
    if self.quantity is not None:
559 chandransh 9957
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9958
      oprot.writeI64(self.quantity)
9959
      oprot.writeFieldEnd()
3557 rajveer 9960
    if self.sourceId is not None:
9961
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9962
      oprot.writeI64(self.sourceId)
9963
      oprot.writeFieldEnd()
559 chandransh 9964
    oprot.writeFieldStop()
9965
    oprot.writeStructEnd()
9966
 
3431 rajveer 9967
  def validate(self):
9968
    return
9969
 
9970
 
559 chandransh 9971
  def __repr__(self):
9972
    L = ['%s=%r' % (key, value)
9973
      for key, value in self.__dict__.iteritems()]
9974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9975
 
9976
  def __eq__(self, other):
9977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9978
 
9979
  def __ne__(self, other):
9980
    return not (self == other)
9981
 
9982
class addItemToCart_result:
9983
  """
9984
  Attributes:
2035 rajveer 9985
   - success
559 chandransh 9986
   - scx
9987
  """
9988
 
9989
  thrift_spec = (
2035 rajveer 9990
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9991
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9992
  )
9993
 
2035 rajveer 9994
  def __init__(self, success=None, scx=None,):
9995
    self.success = success
559 chandransh 9996
    self.scx = scx
9997
 
9998
  def read(self, iprot):
9999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10001
      return
10002
    iprot.readStructBegin()
10003
    while True:
10004
      (fname, ftype, fid) = iprot.readFieldBegin()
10005
      if ftype == TType.STOP:
10006
        break
2035 rajveer 10007
      if fid == 0:
10008
        if ftype == TType.STRING:
10009
          self.success = iprot.readString();
10010
        else:
10011
          iprot.skip(ftype)
10012
      elif fid == 1:
559 chandransh 10013
        if ftype == TType.STRUCT:
10014
          self.scx = ShoppingCartException()
10015
          self.scx.read(iprot)
10016
        else:
10017
          iprot.skip(ftype)
10018
      else:
10019
        iprot.skip(ftype)
10020
      iprot.readFieldEnd()
10021
    iprot.readStructEnd()
10022
 
10023
  def write(self, oprot):
10024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10026
      return
10027
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10028
    if self.success is not None:
2035 rajveer 10029
      oprot.writeFieldBegin('success', TType.STRING, 0)
10030
      oprot.writeString(self.success)
10031
      oprot.writeFieldEnd()
3431 rajveer 10032
    if self.scx is not None:
559 chandransh 10033
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10034
      self.scx.write(oprot)
10035
      oprot.writeFieldEnd()
10036
    oprot.writeFieldStop()
10037
    oprot.writeStructEnd()
10038
 
3431 rajveer 10039
  def validate(self):
10040
    return
10041
 
10042
 
559 chandransh 10043
  def __repr__(self):
10044
    L = ['%s=%r' % (key, value)
10045
      for key, value in self.__dict__.iteritems()]
10046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10047
 
10048
  def __eq__(self, other):
10049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10050
 
10051
  def __ne__(self, other):
10052
    return not (self == other)
10053
 
10054
class deleteItemFromCart_args:
10055
  """
10056
  Attributes:
10057
   - cartId
10058
   - itemId
10059
  """
10060
 
10061
  thrift_spec = (
10062
    None, # 0
10063
    (1, TType.I64, 'cartId', None, None, ), # 1
10064
    (2, TType.I64, 'itemId', None, None, ), # 2
10065
  )
10066
 
10067
  def __init__(self, cartId=None, itemId=None,):
10068
    self.cartId = cartId
10069
    self.itemId = itemId
10070
 
10071
  def read(self, iprot):
10072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10074
      return
10075
    iprot.readStructBegin()
10076
    while True:
10077
      (fname, ftype, fid) = iprot.readFieldBegin()
10078
      if ftype == TType.STOP:
10079
        break
10080
      if fid == 1:
10081
        if ftype == TType.I64:
10082
          self.cartId = iprot.readI64();
10083
        else:
10084
          iprot.skip(ftype)
10085
      elif fid == 2:
10086
        if ftype == TType.I64:
10087
          self.itemId = iprot.readI64();
10088
        else:
10089
          iprot.skip(ftype)
10090
      else:
10091
        iprot.skip(ftype)
10092
      iprot.readFieldEnd()
10093
    iprot.readStructEnd()
10094
 
10095
  def write(self, oprot):
10096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10098
      return
10099
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10100
    if self.cartId is not None:
559 chandransh 10101
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10102
      oprot.writeI64(self.cartId)
10103
      oprot.writeFieldEnd()
3431 rajveer 10104
    if self.itemId is not None:
559 chandransh 10105
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10106
      oprot.writeI64(self.itemId)
10107
      oprot.writeFieldEnd()
10108
    oprot.writeFieldStop()
10109
    oprot.writeStructEnd()
10110
 
3431 rajveer 10111
  def validate(self):
10112
    return
10113
 
10114
 
559 chandransh 10115
  def __repr__(self):
10116
    L = ['%s=%r' % (key, value)
10117
      for key, value in self.__dict__.iteritems()]
10118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10119
 
10120
  def __eq__(self, other):
10121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10122
 
10123
  def __ne__(self, other):
10124
    return not (self == other)
10125
 
10126
class deleteItemFromCart_result:
10127
  """
10128
  Attributes:
10129
   - scx
10130
  """
10131
 
10132
  thrift_spec = (
10133
    None, # 0
10134
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10135
  )
10136
 
10137
  def __init__(self, scx=None,):
10138
    self.scx = scx
10139
 
10140
  def read(self, iprot):
10141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10143
      return
10144
    iprot.readStructBegin()
10145
    while True:
10146
      (fname, ftype, fid) = iprot.readFieldBegin()
10147
      if ftype == TType.STOP:
10148
        break
10149
      if fid == 1:
10150
        if ftype == TType.STRUCT:
10151
          self.scx = ShoppingCartException()
10152
          self.scx.read(iprot)
10153
        else:
10154
          iprot.skip(ftype)
10155
      else:
10156
        iprot.skip(ftype)
10157
      iprot.readFieldEnd()
10158
    iprot.readStructEnd()
10159
 
10160
  def write(self, oprot):
10161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10163
      return
10164
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10165
    if self.scx is not None:
559 chandransh 10166
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10167
      self.scx.write(oprot)
10168
      oprot.writeFieldEnd()
10169
    oprot.writeFieldStop()
10170
    oprot.writeStructEnd()
10171
 
3431 rajveer 10172
  def validate(self):
10173
    return
10174
 
10175
 
559 chandransh 10176
  def __repr__(self):
10177
    L = ['%s=%r' % (key, value)
10178
      for key, value in self.__dict__.iteritems()]
10179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10180
 
10181
  def __eq__(self, other):
10182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10183
 
10184
  def __ne__(self, other):
10185
    return not (self == other)
10186
 
10187
class addAddressToCart_args:
10188
  """
10189
  Attributes:
10190
   - cartId
10191
   - addressId
10192
  """
10193
 
10194
  thrift_spec = (
10195
    None, # 0
10196
    (1, TType.I64, 'cartId', None, None, ), # 1
10197
    (2, TType.I64, 'addressId', None, None, ), # 2
10198
  )
10199
 
10200
  def __init__(self, cartId=None, addressId=None,):
10201
    self.cartId = cartId
10202
    self.addressId = addressId
10203
 
10204
  def read(self, iprot):
10205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10207
      return
10208
    iprot.readStructBegin()
10209
    while True:
10210
      (fname, ftype, fid) = iprot.readFieldBegin()
10211
      if ftype == TType.STOP:
10212
        break
10213
      if fid == 1:
10214
        if ftype == TType.I64:
10215
          self.cartId = iprot.readI64();
10216
        else:
10217
          iprot.skip(ftype)
10218
      elif fid == 2:
10219
        if ftype == TType.I64:
10220
          self.addressId = iprot.readI64();
10221
        else:
10222
          iprot.skip(ftype)
10223
      else:
10224
        iprot.skip(ftype)
10225
      iprot.readFieldEnd()
10226
    iprot.readStructEnd()
10227
 
10228
  def write(self, oprot):
10229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10231
      return
10232
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10233
    if self.cartId is not None:
559 chandransh 10234
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10235
      oprot.writeI64(self.cartId)
10236
      oprot.writeFieldEnd()
3431 rajveer 10237
    if self.addressId is not None:
559 chandransh 10238
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10239
      oprot.writeI64(self.addressId)
10240
      oprot.writeFieldEnd()
10241
    oprot.writeFieldStop()
10242
    oprot.writeStructEnd()
10243
 
3431 rajveer 10244
  def validate(self):
10245
    return
10246
 
10247
 
559 chandransh 10248
  def __repr__(self):
10249
    L = ['%s=%r' % (key, value)
10250
      for key, value in self.__dict__.iteritems()]
10251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10252
 
10253
  def __eq__(self, other):
10254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10255
 
10256
  def __ne__(self, other):
10257
    return not (self == other)
10258
 
10259
class addAddressToCart_result:
575 chandransh 10260
  """
10261
  Attributes:
10262
   - scx
10263
  """
559 chandransh 10264
 
10265
  thrift_spec = (
575 chandransh 10266
    None, # 0
10267
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10268
  )
10269
 
575 chandransh 10270
  def __init__(self, scx=None,):
10271
    self.scx = scx
10272
 
559 chandransh 10273
  def read(self, iprot):
10274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10276
      return
10277
    iprot.readStructBegin()
10278
    while True:
10279
      (fname, ftype, fid) = iprot.readFieldBegin()
10280
      if ftype == TType.STOP:
10281
        break
575 chandransh 10282
      if fid == 1:
10283
        if ftype == TType.STRUCT:
10284
          self.scx = ShoppingCartException()
10285
          self.scx.read(iprot)
10286
        else:
10287
          iprot.skip(ftype)
559 chandransh 10288
      else:
10289
        iprot.skip(ftype)
10290
      iprot.readFieldEnd()
10291
    iprot.readStructEnd()
10292
 
10293
  def write(self, oprot):
10294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10296
      return
10297
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10298
    if self.scx is not None:
575 chandransh 10299
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10300
      self.scx.write(oprot)
10301
      oprot.writeFieldEnd()
559 chandransh 10302
    oprot.writeFieldStop()
10303
    oprot.writeStructEnd()
10304
 
3431 rajveer 10305
  def validate(self):
10306
    return
10307
 
10308
 
559 chandransh 10309
  def __repr__(self):
10310
    L = ['%s=%r' % (key, value)
10311
      for key, value in self.__dict__.iteritems()]
10312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10313
 
10314
  def __eq__(self, other):
10315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10316
 
10317
  def __ne__(self, other):
10318
    return not (self == other)
10319
 
5553 rajveer 10320
class addStoreToCart_args:
10321
  """
10322
  Attributes:
10323
   - cartId
10324
   - storeId
10325
  """
10326
 
10327
  thrift_spec = (
10328
    None, # 0
10329
    (1, TType.I64, 'cartId', None, None, ), # 1
10330
    (2, TType.I64, 'storeId', None, None, ), # 2
10331
  )
10332
 
10333
  def __init__(self, cartId=None, storeId=None,):
10334
    self.cartId = cartId
10335
    self.storeId = storeId
10336
 
10337
  def read(self, iprot):
10338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10340
      return
10341
    iprot.readStructBegin()
10342
    while True:
10343
      (fname, ftype, fid) = iprot.readFieldBegin()
10344
      if ftype == TType.STOP:
10345
        break
10346
      if fid == 1:
10347
        if ftype == TType.I64:
10348
          self.cartId = iprot.readI64();
10349
        else:
10350
          iprot.skip(ftype)
10351
      elif fid == 2:
10352
        if ftype == TType.I64:
10353
          self.storeId = iprot.readI64();
10354
        else:
10355
          iprot.skip(ftype)
10356
      else:
10357
        iprot.skip(ftype)
10358
      iprot.readFieldEnd()
10359
    iprot.readStructEnd()
10360
 
10361
  def write(self, oprot):
10362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10364
      return
10365
    oprot.writeStructBegin('addStoreToCart_args')
10366
    if self.cartId is not None:
10367
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10368
      oprot.writeI64(self.cartId)
10369
      oprot.writeFieldEnd()
10370
    if self.storeId is not None:
10371
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10372
      oprot.writeI64(self.storeId)
10373
      oprot.writeFieldEnd()
10374
    oprot.writeFieldStop()
10375
    oprot.writeStructEnd()
10376
 
10377
  def validate(self):
10378
    return
10379
 
10380
 
10381
  def __repr__(self):
10382
    L = ['%s=%r' % (key, value)
10383
      for key, value in self.__dict__.iteritems()]
10384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10385
 
10386
  def __eq__(self, other):
10387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10388
 
10389
  def __ne__(self, other):
10390
    return not (self == other)
10391
 
10392
class addStoreToCart_result:
10393
  """
10394
  Attributes:
10395
   - scx
10396
  """
10397
 
10398
  thrift_spec = (
10399
    None, # 0
10400
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10401
  )
10402
 
10403
  def __init__(self, scx=None,):
10404
    self.scx = scx
10405
 
10406
  def read(self, iprot):
10407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10409
      return
10410
    iprot.readStructBegin()
10411
    while True:
10412
      (fname, ftype, fid) = iprot.readFieldBegin()
10413
      if ftype == TType.STOP:
10414
        break
10415
      if fid == 1:
10416
        if ftype == TType.STRUCT:
10417
          self.scx = ShoppingCartException()
10418
          self.scx.read(iprot)
10419
        else:
10420
          iprot.skip(ftype)
10421
      else:
10422
        iprot.skip(ftype)
10423
      iprot.readFieldEnd()
10424
    iprot.readStructEnd()
10425
 
10426
  def write(self, oprot):
10427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10429
      return
10430
    oprot.writeStructBegin('addStoreToCart_result')
10431
    if self.scx is not None:
10432
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10433
      self.scx.write(oprot)
10434
      oprot.writeFieldEnd()
10435
    oprot.writeFieldStop()
10436
    oprot.writeStructEnd()
10437
 
10438
  def validate(self):
10439
    return
10440
 
10441
 
10442
  def __repr__(self):
10443
    L = ['%s=%r' % (key, value)
10444
      for key, value in self.__dict__.iteritems()]
10445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10446
 
10447
  def __eq__(self, other):
10448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10449
 
10450
  def __ne__(self, other):
10451
    return not (self == other)
10452
 
1976 varun.gupt 10453
class applyCouponToCart_args:
10454
  """
10455
  Attributes:
10456
   - cartId
10457
   - couponCode
10458
   - totalPrice
10459
   - discountedPrice
10460
  """
10461
 
10462
  thrift_spec = (
10463
    None, # 0
10464
    (1, TType.I64, 'cartId', None, None, ), # 1
10465
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10466
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10467
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10468
  )
10469
 
10470
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10471
    self.cartId = cartId
10472
    self.couponCode = couponCode
10473
    self.totalPrice = totalPrice
10474
    self.discountedPrice = discountedPrice
10475
 
10476
  def read(self, iprot):
10477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10479
      return
10480
    iprot.readStructBegin()
10481
    while True:
10482
      (fname, ftype, fid) = iprot.readFieldBegin()
10483
      if ftype == TType.STOP:
10484
        break
10485
      if fid == 1:
10486
        if ftype == TType.I64:
10487
          self.cartId = iprot.readI64();
10488
        else:
10489
          iprot.skip(ftype)
10490
      elif fid == 2:
10491
        if ftype == TType.STRING:
10492
          self.couponCode = iprot.readString();
10493
        else:
10494
          iprot.skip(ftype)
10495
      elif fid == 3:
10496
        if ftype == TType.DOUBLE:
10497
          self.totalPrice = iprot.readDouble();
10498
        else:
10499
          iprot.skip(ftype)
10500
      elif fid == 4:
10501
        if ftype == TType.DOUBLE:
10502
          self.discountedPrice = iprot.readDouble();
10503
        else:
10504
          iprot.skip(ftype)
10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
10514
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10515
    if self.cartId is not None:
1976 varun.gupt 10516
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10517
      oprot.writeI64(self.cartId)
10518
      oprot.writeFieldEnd()
3431 rajveer 10519
    if self.couponCode is not None:
1976 varun.gupt 10520
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10521
      oprot.writeString(self.couponCode)
10522
      oprot.writeFieldEnd()
3431 rajveer 10523
    if self.totalPrice is not None:
1976 varun.gupt 10524
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10525
      oprot.writeDouble(self.totalPrice)
10526
      oprot.writeFieldEnd()
3431 rajveer 10527
    if self.discountedPrice is not None:
1976 varun.gupt 10528
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10529
      oprot.writeDouble(self.discountedPrice)
10530
      oprot.writeFieldEnd()
10531
    oprot.writeFieldStop()
10532
    oprot.writeStructEnd()
10533
 
3431 rajveer 10534
  def validate(self):
10535
    return
10536
 
10537
 
1976 varun.gupt 10538
  def __repr__(self):
10539
    L = ['%s=%r' % (key, value)
10540
      for key, value in self.__dict__.iteritems()]
10541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10542
 
10543
  def __eq__(self, other):
10544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10545
 
10546
  def __ne__(self, other):
10547
    return not (self == other)
10548
 
10549
class applyCouponToCart_result:
10550
  """
10551
  Attributes:
10552
   - scx
10553
  """
10554
 
10555
  thrift_spec = (
10556
    None, # 0
10557
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10558
  )
10559
 
10560
  def __init__(self, scx=None,):
10561
    self.scx = scx
10562
 
10563
  def read(self, iprot):
10564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10566
      return
10567
    iprot.readStructBegin()
10568
    while True:
10569
      (fname, ftype, fid) = iprot.readFieldBegin()
10570
      if ftype == TType.STOP:
10571
        break
10572
      if fid == 1:
10573
        if ftype == TType.STRUCT:
10574
          self.scx = ShoppingCartException()
10575
          self.scx.read(iprot)
10576
        else:
10577
          iprot.skip(ftype)
10578
      else:
10579
        iprot.skip(ftype)
10580
      iprot.readFieldEnd()
10581
    iprot.readStructEnd()
10582
 
10583
  def write(self, oprot):
10584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10586
      return
10587
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10588
    if self.scx is not None:
1976 varun.gupt 10589
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10590
      self.scx.write(oprot)
10591
      oprot.writeFieldEnd()
10592
    oprot.writeFieldStop()
10593
    oprot.writeStructEnd()
10594
 
3431 rajveer 10595
  def validate(self):
10596
    return
10597
 
10598
 
1976 varun.gupt 10599
  def __repr__(self):
10600
    L = ['%s=%r' % (key, value)
10601
      for key, value in self.__dict__.iteritems()]
10602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10603
 
10604
  def __eq__(self, other):
10605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10606
 
10607
  def __ne__(self, other):
10608
    return not (self == other)
10609
 
10610
class removeCoupon_args:
10611
  """
10612
  Attributes:
10613
   - cartId
10614
  """
10615
 
10616
  thrift_spec = (
10617
    None, # 0
10618
    (1, TType.I64, 'cartId', None, None, ), # 1
10619
  )
10620
 
10621
  def __init__(self, cartId=None,):
10622
    self.cartId = cartId
10623
 
10624
  def read(self, iprot):
10625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10627
      return
10628
    iprot.readStructBegin()
10629
    while True:
10630
      (fname, ftype, fid) = iprot.readFieldBegin()
10631
      if ftype == TType.STOP:
10632
        break
10633
      if fid == 1:
10634
        if ftype == TType.I64:
10635
          self.cartId = iprot.readI64();
10636
        else:
10637
          iprot.skip(ftype)
10638
      else:
10639
        iprot.skip(ftype)
10640
      iprot.readFieldEnd()
10641
    iprot.readStructEnd()
10642
 
10643
  def write(self, oprot):
10644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10646
      return
10647
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10648
    if self.cartId is not None:
1976 varun.gupt 10649
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10650
      oprot.writeI64(self.cartId)
10651
      oprot.writeFieldEnd()
10652
    oprot.writeFieldStop()
10653
    oprot.writeStructEnd()
10654
 
3431 rajveer 10655
  def validate(self):
10656
    return
10657
 
10658
 
1976 varun.gupt 10659
  def __repr__(self):
10660
    L = ['%s=%r' % (key, value)
10661
      for key, value in self.__dict__.iteritems()]
10662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10663
 
10664
  def __eq__(self, other):
10665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10666
 
10667
  def __ne__(self, other):
10668
    return not (self == other)
10669
 
10670
class removeCoupon_result:
10671
  """
10672
  Attributes:
10673
   - scx
10674
  """
10675
 
10676
  thrift_spec = (
10677
    None, # 0
10678
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10679
  )
10680
 
10681
  def __init__(self, scx=None,):
10682
    self.scx = scx
10683
 
10684
  def read(self, iprot):
10685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10687
      return
10688
    iprot.readStructBegin()
10689
    while True:
10690
      (fname, ftype, fid) = iprot.readFieldBegin()
10691
      if ftype == TType.STOP:
10692
        break
10693
      if fid == 1:
10694
        if ftype == TType.STRUCT:
10695
          self.scx = ShoppingCartException()
10696
          self.scx.read(iprot)
10697
        else:
10698
          iprot.skip(ftype)
10699
      else:
10700
        iprot.skip(ftype)
10701
      iprot.readFieldEnd()
10702
    iprot.readStructEnd()
10703
 
10704
  def write(self, oprot):
10705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10707
      return
10708
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10709
    if self.scx is not None:
1976 varun.gupt 10710
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10711
      self.scx.write(oprot)
10712
      oprot.writeFieldEnd()
10713
    oprot.writeFieldStop()
10714
    oprot.writeStructEnd()
10715
 
3431 rajveer 10716
  def validate(self):
10717
    return
10718
 
10719
 
1976 varun.gupt 10720
  def __repr__(self):
10721
    L = ['%s=%r' % (key, value)
10722
      for key, value in self.__dict__.iteritems()]
10723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10724
 
10725
  def __eq__(self, other):
10726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10727
 
10728
  def __ne__(self, other):
10729
    return not (self == other)
10730
 
3554 varun.gupt 10731
class deleteDiscountsFromCart_args:
10732
  """
10733
  Attributes:
10734
   - cartId
10735
  """
10736
 
10737
  thrift_spec = (
10738
    None, # 0
10739
    (1, TType.I64, 'cartId', None, None, ), # 1
10740
  )
10741
 
10742
  def __init__(self, cartId=None,):
10743
    self.cartId = cartId
10744
 
10745
  def read(self, iprot):
10746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10748
      return
10749
    iprot.readStructBegin()
10750
    while True:
10751
      (fname, ftype, fid) = iprot.readFieldBegin()
10752
      if ftype == TType.STOP:
10753
        break
10754
      if fid == 1:
10755
        if ftype == TType.I64:
10756
          self.cartId = iprot.readI64();
10757
        else:
10758
          iprot.skip(ftype)
10759
      else:
10760
        iprot.skip(ftype)
10761
      iprot.readFieldEnd()
10762
    iprot.readStructEnd()
10763
 
10764
  def write(self, oprot):
10765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10767
      return
10768
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10769
    if self.cartId is not None:
10770
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10771
      oprot.writeI64(self.cartId)
10772
      oprot.writeFieldEnd()
10773
    oprot.writeFieldStop()
10774
    oprot.writeStructEnd()
10775
 
10776
  def validate(self):
10777
    return
10778
 
10779
 
10780
  def __repr__(self):
10781
    L = ['%s=%r' % (key, value)
10782
      for key, value in self.__dict__.iteritems()]
10783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10784
 
10785
  def __eq__(self, other):
10786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10787
 
10788
  def __ne__(self, other):
10789
    return not (self == other)
10790
 
10791
class deleteDiscountsFromCart_result:
10792
  """
10793
  Attributes:
10794
   - scx
10795
  """
10796
 
10797
  thrift_spec = (
10798
    None, # 0
10799
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10800
  )
10801
 
10802
  def __init__(self, scx=None,):
10803
    self.scx = scx
10804
 
10805
  def read(self, iprot):
10806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10808
      return
10809
    iprot.readStructBegin()
10810
    while True:
10811
      (fname, ftype, fid) = iprot.readFieldBegin()
10812
      if ftype == TType.STOP:
10813
        break
10814
      if fid == 1:
10815
        if ftype == TType.STRUCT:
10816
          self.scx = ShoppingCartException()
10817
          self.scx.read(iprot)
10818
        else:
10819
          iprot.skip(ftype)
10820
      else:
10821
        iprot.skip(ftype)
10822
      iprot.readFieldEnd()
10823
    iprot.readStructEnd()
10824
 
10825
  def write(self, oprot):
10826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10828
      return
10829
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10830
    if self.scx is not None:
10831
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10832
      self.scx.write(oprot)
10833
      oprot.writeFieldEnd()
10834
    oprot.writeFieldStop()
10835
    oprot.writeStructEnd()
10836
 
10837
  def validate(self):
10838
    return
10839
 
10840
 
10841
  def __repr__(self):
10842
    L = ['%s=%r' % (key, value)
10843
      for key, value in self.__dict__.iteritems()]
10844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10845
 
10846
  def __eq__(self, other):
10847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10848
 
10849
  def __ne__(self, other):
10850
    return not (self == other)
10851
 
10852
class saveDiscounts_args:
10853
  """
10854
  Attributes:
10855
   - discounts
10856
  """
10857
 
10858
  thrift_spec = (
10859
    None, # 0
10860
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10861
  )
10862
 
10863
  def __init__(self, discounts=None,):
10864
    self.discounts = discounts
10865
 
10866
  def read(self, iprot):
10867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10869
      return
10870
    iprot.readStructBegin()
10871
    while True:
10872
      (fname, ftype, fid) = iprot.readFieldBegin()
10873
      if ftype == TType.STOP:
10874
        break
10875
      if fid == 1:
10876
        if ftype == TType.LIST:
10877
          self.discounts = []
6736 amit.gupta 10878
          (_etype149, _size146) = iprot.readListBegin()
10879
          for _i150 in xrange(_size146):
10880
            _elem151 = Discount()
10881
            _elem151.read(iprot)
10882
            self.discounts.append(_elem151)
3554 varun.gupt 10883
          iprot.readListEnd()
10884
        else:
10885
          iprot.skip(ftype)
10886
      else:
10887
        iprot.skip(ftype)
10888
      iprot.readFieldEnd()
10889
    iprot.readStructEnd()
10890
 
10891
  def write(self, oprot):
10892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10894
      return
10895
    oprot.writeStructBegin('saveDiscounts_args')
10896
    if self.discounts is not None:
10897
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10898
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
6736 amit.gupta 10899
      for iter152 in self.discounts:
10900
        iter152.write(oprot)
3554 varun.gupt 10901
      oprot.writeListEnd()
10902
      oprot.writeFieldEnd()
10903
    oprot.writeFieldStop()
10904
    oprot.writeStructEnd()
10905
 
10906
  def validate(self):
10907
    return
10908
 
10909
 
10910
  def __repr__(self):
10911
    L = ['%s=%r' % (key, value)
10912
      for key, value in self.__dict__.iteritems()]
10913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10914
 
10915
  def __eq__(self, other):
10916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10917
 
10918
  def __ne__(self, other):
10919
    return not (self == other)
10920
 
10921
class saveDiscounts_result:
10922
  """
10923
  Attributes:
10924
   - scx
10925
  """
10926
 
10927
  thrift_spec = (
10928
    None, # 0
10929
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10930
  )
10931
 
10932
  def __init__(self, scx=None,):
10933
    self.scx = scx
10934
 
10935
  def read(self, iprot):
10936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10938
      return
10939
    iprot.readStructBegin()
10940
    while True:
10941
      (fname, ftype, fid) = iprot.readFieldBegin()
10942
      if ftype == TType.STOP:
10943
        break
10944
      if fid == 1:
10945
        if ftype == TType.STRUCT:
10946
          self.scx = ShoppingCartException()
10947
          self.scx.read(iprot)
10948
        else:
10949
          iprot.skip(ftype)
10950
      else:
10951
        iprot.skip(ftype)
10952
      iprot.readFieldEnd()
10953
    iprot.readStructEnd()
10954
 
10955
  def write(self, oprot):
10956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10958
      return
10959
    oprot.writeStructBegin('saveDiscounts_result')
10960
    if self.scx is not None:
10961
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10962
      self.scx.write(oprot)
10963
      oprot.writeFieldEnd()
10964
    oprot.writeFieldStop()
10965
    oprot.writeStructEnd()
10966
 
10967
  def validate(self):
10968
    return
10969
 
10970
 
10971
  def __repr__(self):
10972
    L = ['%s=%r' % (key, value)
10973
      for key, value in self.__dict__.iteritems()]
10974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10975
 
10976
  def __eq__(self, other):
10977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10978
 
10979
  def __ne__(self, other):
10980
    return not (self == other)
10981
 
690 chandransh 10982
class createOrders_args:
559 chandransh 10983
  """
10984
  Attributes:
10985
   - cartId
2815 vikas 10986
   - sessionSource
10987
   - sessionStartTime
3858 vikas 10988
   - firstSource
10989
   - firstSourceTime
5326 rajveer 10990
   - userId
6389 rajveer 10991
   - schemeId
559 chandransh 10992
  """
10993
 
10994
  thrift_spec = (
10995
    None, # 0
10996
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10997
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10998
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10999
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11000
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11001
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11002
    (7, TType.I64, 'schemeId', None, None, ), # 7
559 chandransh 11003
  )
11004
 
6389 rajveer 11005
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
559 chandransh 11006
    self.cartId = cartId
2815 vikas 11007
    self.sessionSource = sessionSource
11008
    self.sessionStartTime = sessionStartTime
3858 vikas 11009
    self.firstSource = firstSource
11010
    self.firstSourceTime = firstSourceTime
5326 rajveer 11011
    self.userId = userId
6389 rajveer 11012
    self.schemeId = schemeId
559 chandransh 11013
 
11014
  def read(self, iprot):
11015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11017
      return
11018
    iprot.readStructBegin()
11019
    while True:
11020
      (fname, ftype, fid) = iprot.readFieldBegin()
11021
      if ftype == TType.STOP:
11022
        break
11023
      if fid == 1:
11024
        if ftype == TType.I64:
11025
          self.cartId = iprot.readI64();
11026
        else:
11027
          iprot.skip(ftype)
2815 vikas 11028
      elif fid == 2:
11029
        if ftype == TType.STRING:
11030
          self.sessionSource = iprot.readString();
11031
        else:
11032
          iprot.skip(ftype)
11033
      elif fid == 3:
11034
        if ftype == TType.I64:
11035
          self.sessionStartTime = iprot.readI64();
11036
        else:
11037
          iprot.skip(ftype)
3858 vikas 11038
      elif fid == 4:
11039
        if ftype == TType.STRING:
11040
          self.firstSource = iprot.readString();
11041
        else:
11042
          iprot.skip(ftype)
11043
      elif fid == 5:
11044
        if ftype == TType.I64:
11045
          self.firstSourceTime = iprot.readI64();
11046
        else:
11047
          iprot.skip(ftype)
5326 rajveer 11048
      elif fid == 6:
11049
        if ftype == TType.I64:
11050
          self.userId = iprot.readI64();
11051
        else:
11052
          iprot.skip(ftype)
6389 rajveer 11053
      elif fid == 7:
11054
        if ftype == TType.I64:
11055
          self.schemeId = iprot.readI64();
11056
        else:
11057
          iprot.skip(ftype)
559 chandransh 11058
      else:
11059
        iprot.skip(ftype)
11060
      iprot.readFieldEnd()
11061
    iprot.readStructEnd()
11062
 
11063
  def write(self, oprot):
11064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11066
      return
690 chandransh 11067
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11068
    if self.cartId is not None:
559 chandransh 11069
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11070
      oprot.writeI64(self.cartId)
11071
      oprot.writeFieldEnd()
3431 rajveer 11072
    if self.sessionSource is not None:
2815 vikas 11073
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11074
      oprot.writeString(self.sessionSource)
11075
      oprot.writeFieldEnd()
3431 rajveer 11076
    if self.sessionStartTime is not None:
2815 vikas 11077
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11078
      oprot.writeI64(self.sessionStartTime)
11079
      oprot.writeFieldEnd()
3858 vikas 11080
    if self.firstSource is not None:
11081
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11082
      oprot.writeString(self.firstSource)
11083
      oprot.writeFieldEnd()
11084
    if self.firstSourceTime is not None:
11085
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11086
      oprot.writeI64(self.firstSourceTime)
11087
      oprot.writeFieldEnd()
5326 rajveer 11088
    if self.userId is not None:
11089
      oprot.writeFieldBegin('userId', TType.I64, 6)
11090
      oprot.writeI64(self.userId)
11091
      oprot.writeFieldEnd()
6389 rajveer 11092
    if self.schemeId is not None:
11093
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11094
      oprot.writeI64(self.schemeId)
11095
      oprot.writeFieldEnd()
559 chandransh 11096
    oprot.writeFieldStop()
11097
    oprot.writeStructEnd()
11098
 
3431 rajveer 11099
  def validate(self):
11100
    return
11101
 
11102
 
559 chandransh 11103
  def __repr__(self):
11104
    L = ['%s=%r' % (key, value)
11105
      for key, value in self.__dict__.iteritems()]
11106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11107
 
11108
  def __eq__(self, other):
11109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11110
 
11111
  def __ne__(self, other):
11112
    return not (self == other)
11113
 
690 chandransh 11114
class createOrders_result:
559 chandransh 11115
  """
11116
  Attributes:
94 ashish 11117
   - success
559 chandransh 11118
   - scx
94 ashish 11119
  """
11120
 
11121
  thrift_spec = (
575 chandransh 11122
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11123
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11124
  )
11125
 
559 chandransh 11126
  def __init__(self, success=None, scx=None,):
94 ashish 11127
    self.success = success
559 chandransh 11128
    self.scx = scx
94 ashish 11129
 
11130
  def read(self, iprot):
11131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11133
      return
11134
    iprot.readStructBegin()
11135
    while True:
11136
      (fname, ftype, fid) = iprot.readFieldBegin()
11137
      if ftype == TType.STOP:
11138
        break
11139
      if fid == 0:
575 chandransh 11140
        if ftype == TType.I64:
11141
          self.success = iprot.readI64();
94 ashish 11142
        else:
11143
          iprot.skip(ftype)
11144
      elif fid == 1:
11145
        if ftype == TType.STRUCT:
559 chandransh 11146
          self.scx = ShoppingCartException()
11147
          self.scx.read(iprot)
94 ashish 11148
        else:
11149
          iprot.skip(ftype)
11150
      else:
11151
        iprot.skip(ftype)
11152
      iprot.readFieldEnd()
11153
    iprot.readStructEnd()
11154
 
11155
  def write(self, oprot):
11156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11158
      return
690 chandransh 11159
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11160
    if self.success is not None:
575 chandransh 11161
      oprot.writeFieldBegin('success', TType.I64, 0)
11162
      oprot.writeI64(self.success)
94 ashish 11163
      oprot.writeFieldEnd()
3431 rajveer 11164
    if self.scx is not None:
559 chandransh 11165
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11166
      self.scx.write(oprot)
94 ashish 11167
      oprot.writeFieldEnd()
11168
    oprot.writeFieldStop()
11169
    oprot.writeStructEnd()
11170
 
3431 rajveer 11171
  def validate(self):
11172
    return
11173
 
11174
 
94 ashish 11175
  def __repr__(self):
11176
    L = ['%s=%r' % (key, value)
11177
      for key, value in self.__dict__.iteritems()]
11178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11179
 
11180
  def __eq__(self, other):
11181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11182
 
11183
  def __ne__(self, other):
11184
    return not (self == other)
11185
 
559 chandransh 11186
class validateCart_args:
94 ashish 11187
  """
11188
  Attributes:
559 chandransh 11189
   - cartId
3557 rajveer 11190
   - sourceId
94 ashish 11191
  """
11192
 
11193
  thrift_spec = (
11194
    None, # 0
559 chandransh 11195
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11196
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11197
  )
11198
 
3557 rajveer 11199
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11200
    self.cartId = cartId
3557 rajveer 11201
    self.sourceId = sourceId
94 ashish 11202
 
11203
  def read(self, iprot):
11204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11206
      return
11207
    iprot.readStructBegin()
11208
    while True:
11209
      (fname, ftype, fid) = iprot.readFieldBegin()
11210
      if ftype == TType.STOP:
11211
        break
11212
      if fid == 1:
11213
        if ftype == TType.I64:
559 chandransh 11214
          self.cartId = iprot.readI64();
94 ashish 11215
        else:
11216
          iprot.skip(ftype)
3557 rajveer 11217
      elif fid == 2:
11218
        if ftype == TType.I64:
11219
          self.sourceId = iprot.readI64();
11220
        else:
11221
          iprot.skip(ftype)
94 ashish 11222
      else:
11223
        iprot.skip(ftype)
11224
      iprot.readFieldEnd()
11225
    iprot.readStructEnd()
11226
 
11227
  def write(self, oprot):
11228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11230
      return
559 chandransh 11231
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11232
    if self.cartId is not None:
559 chandransh 11233
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11234
      oprot.writeI64(self.cartId)
94 ashish 11235
      oprot.writeFieldEnd()
3557 rajveer 11236
    if self.sourceId is not None:
11237
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11238
      oprot.writeI64(self.sourceId)
11239
      oprot.writeFieldEnd()
94 ashish 11240
    oprot.writeFieldStop()
11241
    oprot.writeStructEnd()
11242
 
3431 rajveer 11243
  def validate(self):
11244
    return
11245
 
11246
 
94 ashish 11247
  def __repr__(self):
11248
    L = ['%s=%r' % (key, value)
11249
      for key, value in self.__dict__.iteritems()]
11250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11251
 
11252
  def __eq__(self, other):
11253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11254
 
11255
  def __ne__(self, other):
11256
    return not (self == other)
11257
 
559 chandransh 11258
class validateCart_result:
94 ashish 11259
  """
11260
  Attributes:
11261
   - success
575 chandransh 11262
   - scex
94 ashish 11263
  """
11264
 
11265
  thrift_spec = (
6736 amit.gupta 11266
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11267
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11268
  )
11269
 
575 chandransh 11270
  def __init__(self, success=None, scex=None,):
94 ashish 11271
    self.success = success
575 chandransh 11272
    self.scex = scex
94 ashish 11273
 
11274
  def read(self, iprot):
11275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11277
      return
11278
    iprot.readStructBegin()
11279
    while True:
11280
      (fname, ftype, fid) = iprot.readFieldBegin()
11281
      if ftype == TType.STOP:
11282
        break
11283
      if fid == 0:
6736 amit.gupta 11284
        if ftype == TType.LIST:
11285
          self.success = []
11286
          (_etype156, _size153) = iprot.readListBegin()
11287
          for _i157 in xrange(_size153):
11288
            _elem158 = iprot.readString();
11289
            self.success.append(_elem158)
11290
          iprot.readListEnd()
94 ashish 11291
        else:
11292
          iprot.skip(ftype)
575 chandransh 11293
      elif fid == 1:
11294
        if ftype == TType.STRUCT:
11295
          self.scex = ShoppingCartException()
11296
          self.scex.read(iprot)
11297
        else:
11298
          iprot.skip(ftype)
94 ashish 11299
      else:
11300
        iprot.skip(ftype)
11301
      iprot.readFieldEnd()
11302
    iprot.readStructEnd()
11303
 
11304
  def write(self, oprot):
11305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11307
      return
559 chandransh 11308
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11309
    if self.success is not None:
6736 amit.gupta 11310
      oprot.writeFieldBegin('success', TType.LIST, 0)
11311
      oprot.writeListBegin(TType.STRING, len(self.success))
11312
      for iter159 in self.success:
11313
        oprot.writeString(iter159)
11314
      oprot.writeListEnd()
94 ashish 11315
      oprot.writeFieldEnd()
3431 rajveer 11316
    if self.scex is not None:
575 chandransh 11317
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11318
      self.scex.write(oprot)
11319
      oprot.writeFieldEnd()
559 chandransh 11320
    oprot.writeFieldStop()
11321
    oprot.writeStructEnd()
11322
 
3431 rajveer 11323
  def validate(self):
11324
    return
11325
 
11326
 
559 chandransh 11327
  def __repr__(self):
11328
    L = ['%s=%r' % (key, value)
11329
      for key, value in self.__dict__.iteritems()]
11330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11331
 
11332
  def __eq__(self, other):
11333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11334
 
11335
  def __ne__(self, other):
11336
    return not (self == other)
11337
 
690 chandransh 11338
class mergeCart_args:
575 chandransh 11339
  """
11340
  Attributes:
690 chandransh 11341
   - fromCartId
11342
   - toCartId
11343
  """
11344
 
11345
  thrift_spec = (
11346
    None, # 0
11347
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11348
    (2, TType.I64, 'toCartId', None, None, ), # 2
11349
  )
11350
 
11351
  def __init__(self, fromCartId=None, toCartId=None,):
11352
    self.fromCartId = fromCartId
11353
    self.toCartId = toCartId
11354
 
11355
  def read(self, iprot):
11356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11358
      return
11359
    iprot.readStructBegin()
11360
    while True:
11361
      (fname, ftype, fid) = iprot.readFieldBegin()
11362
      if ftype == TType.STOP:
11363
        break
11364
      if fid == 1:
11365
        if ftype == TType.I64:
11366
          self.fromCartId = iprot.readI64();
11367
        else:
11368
          iprot.skip(ftype)
11369
      elif fid == 2:
11370
        if ftype == TType.I64:
11371
          self.toCartId = iprot.readI64();
11372
        else:
11373
          iprot.skip(ftype)
11374
      else:
11375
        iprot.skip(ftype)
11376
      iprot.readFieldEnd()
11377
    iprot.readStructEnd()
11378
 
11379
  def write(self, oprot):
11380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11382
      return
11383
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11384
    if self.fromCartId is not None:
690 chandransh 11385
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11386
      oprot.writeI64(self.fromCartId)
11387
      oprot.writeFieldEnd()
3431 rajveer 11388
    if self.toCartId is not None:
690 chandransh 11389
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11390
      oprot.writeI64(self.toCartId)
11391
      oprot.writeFieldEnd()
11392
    oprot.writeFieldStop()
11393
    oprot.writeStructEnd()
11394
 
3431 rajveer 11395
  def validate(self):
11396
    return
11397
 
11398
 
690 chandransh 11399
  def __repr__(self):
11400
    L = ['%s=%r' % (key, value)
11401
      for key, value in self.__dict__.iteritems()]
11402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11403
 
11404
  def __eq__(self, other):
11405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11406
 
11407
  def __ne__(self, other):
11408
    return not (self == other)
11409
 
11410
class mergeCart_result:
11411
 
11412
  thrift_spec = (
11413
  )
11414
 
11415
  def read(self, iprot):
11416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11418
      return
11419
    iprot.readStructBegin()
11420
    while True:
11421
      (fname, ftype, fid) = iprot.readFieldBegin()
11422
      if ftype == TType.STOP:
11423
        break
11424
      else:
11425
        iprot.skip(ftype)
11426
      iprot.readFieldEnd()
11427
    iprot.readStructEnd()
11428
 
11429
  def write(self, oprot):
11430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11432
      return
11433
    oprot.writeStructBegin('mergeCart_result')
11434
    oprot.writeFieldStop()
11435
    oprot.writeStructEnd()
11436
 
3431 rajveer 11437
  def validate(self):
11438
    return
11439
 
11440
 
690 chandransh 11441
  def __repr__(self):
11442
    L = ['%s=%r' % (key, value)
11443
      for key, value in self.__dict__.iteritems()]
11444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11445
 
11446
  def __eq__(self, other):
11447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11448
 
11449
  def __ne__(self, other):
11450
    return not (self == other)
11451
 
11452
class checkOut_args:
11453
  """
11454
  Attributes:
575 chandransh 11455
   - cartId
11456
  """
11457
 
11458
  thrift_spec = (
11459
    None, # 0
11460
    (1, TType.I64, 'cartId', None, None, ), # 1
11461
  )
11462
 
11463
  def __init__(self, cartId=None,):
11464
    self.cartId = cartId
11465
 
11466
  def read(self, iprot):
11467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11469
      return
11470
    iprot.readStructBegin()
11471
    while True:
11472
      (fname, ftype, fid) = iprot.readFieldBegin()
11473
      if ftype == TType.STOP:
11474
        break
11475
      if fid == 1:
11476
        if ftype == TType.I64:
11477
          self.cartId = iprot.readI64();
11478
        else:
11479
          iprot.skip(ftype)
11480
      else:
11481
        iprot.skip(ftype)
11482
      iprot.readFieldEnd()
11483
    iprot.readStructEnd()
11484
 
11485
  def write(self, oprot):
11486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11488
      return
690 chandransh 11489
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11490
    if self.cartId is not None:
575 chandransh 11491
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11492
      oprot.writeI64(self.cartId)
11493
      oprot.writeFieldEnd()
11494
    oprot.writeFieldStop()
11495
    oprot.writeStructEnd()
11496
 
3431 rajveer 11497
  def validate(self):
11498
    return
11499
 
11500
 
575 chandransh 11501
  def __repr__(self):
11502
    L = ['%s=%r' % (key, value)
11503
      for key, value in self.__dict__.iteritems()]
11504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11505
 
11506
  def __eq__(self, other):
11507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11508
 
11509
  def __ne__(self, other):
11510
    return not (self == other)
11511
 
690 chandransh 11512
class checkOut_result:
575 chandransh 11513
  """
11514
  Attributes:
11515
   - success
11516
   - scex
11517
  """
11518
 
11519
  thrift_spec = (
11520
    (0, TType.BOOL, 'success', None, None, ), # 0
11521
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11522
  )
11523
 
11524
  def __init__(self, success=None, scex=None,):
11525
    self.success = success
11526
    self.scex = scex
11527
 
11528
  def read(self, iprot):
11529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11531
      return
11532
    iprot.readStructBegin()
11533
    while True:
11534
      (fname, ftype, fid) = iprot.readFieldBegin()
11535
      if ftype == TType.STOP:
11536
        break
11537
      if fid == 0:
11538
        if ftype == TType.BOOL:
11539
          self.success = iprot.readBool();
11540
        else:
11541
          iprot.skip(ftype)
11542
      elif fid == 1:
11543
        if ftype == TType.STRUCT:
11544
          self.scex = ShoppingCartException()
11545
          self.scex.read(iprot)
11546
        else:
11547
          iprot.skip(ftype)
11548
      else:
11549
        iprot.skip(ftype)
11550
      iprot.readFieldEnd()
11551
    iprot.readStructEnd()
11552
 
11553
  def write(self, oprot):
11554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11556
      return
690 chandransh 11557
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11558
    if self.success is not None:
575 chandransh 11559
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11560
      oprot.writeBool(self.success)
11561
      oprot.writeFieldEnd()
3431 rajveer 11562
    if self.scex is not None:
575 chandransh 11563
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11564
      self.scex.write(oprot)
11565
      oprot.writeFieldEnd()
11566
    oprot.writeFieldStop()
11567
    oprot.writeStructEnd()
11568
 
3431 rajveer 11569
  def validate(self):
11570
    return
11571
 
11572
 
575 chandransh 11573
  def __repr__(self):
11574
    L = ['%s=%r' % (key, value)
11575
      for key, value in self.__dict__.iteritems()]
11576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11577
 
11578
  def __eq__(self, other):
11579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11580
 
11581
  def __ne__(self, other):
11582
    return not (self == other)
11583
 
690 chandransh 11584
class resetCart_args:
559 chandransh 11585
  """
11586
  Attributes:
690 chandransh 11587
   - cartId
11588
   - items
559 chandransh 11589
  """
11590
 
11591
  thrift_spec = (
11592
    None, # 0
690 chandransh 11593
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11594
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11595
  )
11596
 
690 chandransh 11597
  def __init__(self, cartId=None, items=None,):
11598
    self.cartId = cartId
11599
    self.items = items
559 chandransh 11600
 
11601
  def read(self, iprot):
11602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11604
      return
11605
    iprot.readStructBegin()
11606
    while True:
11607
      (fname, ftype, fid) = iprot.readFieldBegin()
11608
      if ftype == TType.STOP:
11609
        break
11610
      if fid == 1:
11611
        if ftype == TType.I64:
690 chandransh 11612
          self.cartId = iprot.readI64();
559 chandransh 11613
        else:
11614
          iprot.skip(ftype)
11615
      elif fid == 2:
690 chandransh 11616
        if ftype == TType.MAP:
11617
          self.items = {}
6736 amit.gupta 11618
          (_ktype161, _vtype162, _size160 ) = iprot.readMapBegin() 
11619
          for _i164 in xrange(_size160):
11620
            _key165 = iprot.readI64();
11621
            _val166 = iprot.readDouble();
11622
            self.items[_key165] = _val166
690 chandransh 11623
          iprot.readMapEnd()
559 chandransh 11624
        else:
11625
          iprot.skip(ftype)
11626
      else:
11627
        iprot.skip(ftype)
11628
      iprot.readFieldEnd()
11629
    iprot.readStructEnd()
11630
 
11631
  def write(self, oprot):
11632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11634
      return
690 chandransh 11635
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11636
    if self.cartId is not None:
690 chandransh 11637
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11638
      oprot.writeI64(self.cartId)
94 ashish 11639
      oprot.writeFieldEnd()
3431 rajveer 11640
    if self.items is not None:
690 chandransh 11641
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11642
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
6736 amit.gupta 11643
      for kiter167,viter168 in self.items.items():
11644
        oprot.writeI64(kiter167)
11645
        oprot.writeDouble(viter168)
690 chandransh 11646
      oprot.writeMapEnd()
559 chandransh 11647
      oprot.writeFieldEnd()
94 ashish 11648
    oprot.writeFieldStop()
11649
    oprot.writeStructEnd()
11650
 
3431 rajveer 11651
  def validate(self):
11652
    return
11653
 
11654
 
94 ashish 11655
  def __repr__(self):
11656
    L = ['%s=%r' % (key, value)
11657
      for key, value in self.__dict__.iteritems()]
11658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11659
 
11660
  def __eq__(self, other):
11661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11662
 
11663
  def __ne__(self, other):
11664
    return not (self == other)
11665
 
690 chandransh 11666
class resetCart_result:
11667
  """
11668
  Attributes:
11669
   - success
11670
   - scex
11671
  """
559 chandransh 11672
 
11673
  thrift_spec = (
690 chandransh 11674
    (0, TType.BOOL, 'success', None, None, ), # 0
11675
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11676
  )
11677
 
690 chandransh 11678
  def __init__(self, success=None, scex=None,):
11679
    self.success = success
11680
    self.scex = scex
11681
 
559 chandransh 11682
  def read(self, iprot):
11683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11685
      return
11686
    iprot.readStructBegin()
11687
    while True:
11688
      (fname, ftype, fid) = iprot.readFieldBegin()
11689
      if ftype == TType.STOP:
11690
        break
690 chandransh 11691
      if fid == 0:
11692
        if ftype == TType.BOOL:
11693
          self.success = iprot.readBool();
11694
        else:
11695
          iprot.skip(ftype)
11696
      elif fid == 1:
11697
        if ftype == TType.STRUCT:
11698
          self.scex = ShoppingCartException()
11699
          self.scex.read(iprot)
11700
        else:
11701
          iprot.skip(ftype)
559 chandransh 11702
      else:
11703
        iprot.skip(ftype)
11704
      iprot.readFieldEnd()
11705
    iprot.readStructEnd()
11706
 
11707
  def write(self, oprot):
11708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11710
      return
690 chandransh 11711
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11712
    if self.success is not None:
690 chandransh 11713
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11714
      oprot.writeBool(self.success)
11715
      oprot.writeFieldEnd()
3431 rajveer 11716
    if self.scex is not None:
690 chandransh 11717
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11718
      self.scex.write(oprot)
11719
      oprot.writeFieldEnd()
559 chandransh 11720
    oprot.writeFieldStop()
11721
    oprot.writeStructEnd()
11722
 
3431 rajveer 11723
  def validate(self):
11724
    return
11725
 
11726
 
559 chandransh 11727
  def __repr__(self):
11728
    L = ['%s=%r' % (key, value)
11729
      for key, value in self.__dict__.iteritems()]
11730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11731
 
11732
  def __eq__(self, other):
11733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11734
 
11735
  def __ne__(self, other):
11736
    return not (self == other)
11737
 
2981 rajveer 11738
class getUserCount_args:
94 ashish 11739
  """
11740
  Attributes:
2981 rajveer 11741
   - userType
559 chandransh 11742
  """
11743
 
11744
  thrift_spec = (
11745
    None, # 0
2981 rajveer 11746
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11747
  )
11748
 
2981 rajveer 11749
  def __init__(self, userType=None,):
11750
    self.userType = userType
559 chandransh 11751
 
11752
  def read(self, iprot):
11753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11755
      return
11756
    iprot.readStructBegin()
11757
    while True:
11758
      (fname, ftype, fid) = iprot.readFieldBegin()
11759
      if ftype == TType.STOP:
11760
        break
11761
      if fid == 1:
2981 rajveer 11762
        if ftype == TType.I32:
11763
          self.userType = iprot.readI32();
559 chandransh 11764
        else:
11765
          iprot.skip(ftype)
11766
      else:
11767
        iprot.skip(ftype)
11768
      iprot.readFieldEnd()
11769
    iprot.readStructEnd()
11770
 
11771
  def write(self, oprot):
11772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11774
      return
2981 rajveer 11775
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11776
    if self.userType is not None:
2981 rajveer 11777
      oprot.writeFieldBegin('userType', TType.I32, 1)
11778
      oprot.writeI32(self.userType)
559 chandransh 11779
      oprot.writeFieldEnd()
11780
    oprot.writeFieldStop()
11781
    oprot.writeStructEnd()
11782
 
3431 rajveer 11783
  def validate(self):
11784
    return
11785
 
11786
 
559 chandransh 11787
  def __repr__(self):
11788
    L = ['%s=%r' % (key, value)
11789
      for key, value in self.__dict__.iteritems()]
11790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11791
 
11792
  def __eq__(self, other):
11793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11794
 
11795
  def __ne__(self, other):
11796
    return not (self == other)
11797
 
2981 rajveer 11798
class getUserCount_result:
94 ashish 11799
  """
11800
  Attributes:
11801
   - success
11802
  """
11803
 
11804
  thrift_spec = (
2981 rajveer 11805
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11806
  )
11807
 
2981 rajveer 11808
  def __init__(self, success=None,):
94 ashish 11809
    self.success = success
11810
 
11811
  def read(self, iprot):
11812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11814
      return
11815
    iprot.readStructBegin()
11816
    while True:
11817
      (fname, ftype, fid) = iprot.readFieldBegin()
11818
      if ftype == TType.STOP:
11819
        break
11820
      if fid == 0:
2981 rajveer 11821
        if ftype == TType.I64:
11822
          self.success = iprot.readI64();
94 ashish 11823
        else:
11824
          iprot.skip(ftype)
11825
      else:
11826
        iprot.skip(ftype)
11827
      iprot.readFieldEnd()
11828
    iprot.readStructEnd()
11829
 
11830
  def write(self, oprot):
11831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11833
      return
2981 rajveer 11834
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11835
    if self.success is not None:
2981 rajveer 11836
      oprot.writeFieldBegin('success', TType.I64, 0)
11837
      oprot.writeI64(self.success)
94 ashish 11838
      oprot.writeFieldEnd()
11839
    oprot.writeFieldStop()
11840
    oprot.writeStructEnd()
11841
 
3431 rajveer 11842
  def validate(self):
11843
    return
11844
 
11845
 
94 ashish 11846
  def __repr__(self):
11847
    L = ['%s=%r' % (key, value)
11848
      for key, value in self.__dict__.iteritems()]
11849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11850
 
11851
  def __eq__(self, other):
11852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11853
 
11854
  def __ne__(self, other):
11855
    return not (self == other)
11856
 
2981 rajveer 11857
class getAllUsers_args:
94 ashish 11858
  """
11859
  Attributes:
2981 rajveer 11860
   - userType
11861
   - startDate
11862
   - endDate
94 ashish 11863
  """
11864
 
11865
  thrift_spec = (
11866
    None, # 0
2981 rajveer 11867
    (1, TType.I32, 'userType', None, None, ), # 1
11868
    (2, TType.I64, 'startDate', None, None, ), # 2
11869
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11870
  )
11871
 
2981 rajveer 11872
  def __init__(self, userType=None, startDate=None, endDate=None,):
11873
    self.userType = userType
11874
    self.startDate = startDate
11875
    self.endDate = endDate
94 ashish 11876
 
11877
  def read(self, iprot):
11878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11880
      return
11881
    iprot.readStructBegin()
11882
    while True:
11883
      (fname, ftype, fid) = iprot.readFieldBegin()
11884
      if ftype == TType.STOP:
11885
        break
11886
      if fid == 1:
2981 rajveer 11887
        if ftype == TType.I32:
11888
          self.userType = iprot.readI32();
94 ashish 11889
        else:
11890
          iprot.skip(ftype)
11891
      elif fid == 2:
559 chandransh 11892
        if ftype == TType.I64:
2981 rajveer 11893
          self.startDate = iprot.readI64();
94 ashish 11894
        else:
11895
          iprot.skip(ftype)
2981 rajveer 11896
      elif fid == 3:
11897
        if ftype == TType.I64:
11898
          self.endDate = iprot.readI64();
11899
        else:
11900
          iprot.skip(ftype)
94 ashish 11901
      else:
11902
        iprot.skip(ftype)
11903
      iprot.readFieldEnd()
11904
    iprot.readStructEnd()
11905
 
11906
  def write(self, oprot):
11907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11909
      return
2981 rajveer 11910
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11911
    if self.userType is not None:
2981 rajveer 11912
      oprot.writeFieldBegin('userType', TType.I32, 1)
11913
      oprot.writeI32(self.userType)
94 ashish 11914
      oprot.writeFieldEnd()
3431 rajveer 11915
    if self.startDate is not None:
2981 rajveer 11916
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11917
      oprot.writeI64(self.startDate)
94 ashish 11918
      oprot.writeFieldEnd()
3431 rajveer 11919
    if self.endDate is not None:
2981 rajveer 11920
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11921
      oprot.writeI64(self.endDate)
11922
      oprot.writeFieldEnd()
94 ashish 11923
    oprot.writeFieldStop()
11924
    oprot.writeStructEnd()
11925
 
3431 rajveer 11926
  def validate(self):
11927
    return
11928
 
11929
 
94 ashish 11930
  def __repr__(self):
11931
    L = ['%s=%r' % (key, value)
11932
      for key, value in self.__dict__.iteritems()]
11933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11934
 
11935
  def __eq__(self, other):
11936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11937
 
11938
  def __ne__(self, other):
11939
    return not (self == other)
11940
 
2981 rajveer 11941
class getAllUsers_result:
94 ashish 11942
  """
11943
  Attributes:
11944
   - success
11945
  """
11946
 
11947
  thrift_spec = (
2981 rajveer 11948
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11949
  )
11950
 
2981 rajveer 11951
  def __init__(self, success=None,):
94 ashish 11952
    self.success = success
11953
 
11954
  def read(self, iprot):
11955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11957
      return
11958
    iprot.readStructBegin()
11959
    while True:
11960
      (fname, ftype, fid) = iprot.readFieldBegin()
11961
      if ftype == TType.STOP:
11962
        break
11963
      if fid == 0:
2981 rajveer 11964
        if ftype == TType.LIST:
11965
          self.success = []
6736 amit.gupta 11966
          (_etype172, _size169) = iprot.readListBegin()
11967
          for _i173 in xrange(_size169):
11968
            _elem174 = User()
11969
            _elem174.read(iprot)
11970
            self.success.append(_elem174)
2981 rajveer 11971
          iprot.readListEnd()
94 ashish 11972
        else:
11973
          iprot.skip(ftype)
11974
      else:
11975
        iprot.skip(ftype)
11976
      iprot.readFieldEnd()
11977
    iprot.readStructEnd()
11978
 
11979
  def write(self, oprot):
11980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11982
      return
2981 rajveer 11983
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11984
    if self.success is not None:
2981 rajveer 11985
      oprot.writeFieldBegin('success', TType.LIST, 0)
11986
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 11987
      for iter175 in self.success:
11988
        iter175.write(oprot)
2981 rajveer 11989
      oprot.writeListEnd()
94 ashish 11990
      oprot.writeFieldEnd()
11991
    oprot.writeFieldStop()
11992
    oprot.writeStructEnd()
11993
 
3431 rajveer 11994
  def validate(self):
11995
    return
11996
 
11997
 
94 ashish 11998
  def __repr__(self):
11999
    L = ['%s=%r' % (key, value)
12000
      for key, value in self.__dict__.iteritems()]
12001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12002
 
12003
  def __eq__(self, other):
12004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12005
 
12006
  def __ne__(self, other):
12007
    return not (self == other)
12008
 
2981 rajveer 12009
class getMyResearchItems_args:
559 chandransh 12010
  """
12011
  Attributes:
772 rajveer 12012
   - userId
559 chandransh 12013
  """
12014
 
12015
  thrift_spec = (
12016
    None, # 0
772 rajveer 12017
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12018
  )
12019
 
772 rajveer 12020
  def __init__(self, userId=None,):
12021
    self.userId = userId
559 chandransh 12022
 
12023
  def read(self, iprot):
12024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12026
      return
12027
    iprot.readStructBegin()
12028
    while True:
12029
      (fname, ftype, fid) = iprot.readFieldBegin()
12030
      if ftype == TType.STOP:
12031
        break
12032
      if fid == 1:
12033
        if ftype == TType.I64:
772 rajveer 12034
          self.userId = iprot.readI64();
559 chandransh 12035
        else:
12036
          iprot.skip(ftype)
12037
      else:
12038
        iprot.skip(ftype)
12039
      iprot.readFieldEnd()
12040
    iprot.readStructEnd()
12041
 
12042
  def write(self, oprot):
12043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12045
      return
2981 rajveer 12046
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12047
    if self.userId is not None:
772 rajveer 12048
      oprot.writeFieldBegin('userId', TType.I64, 1)
12049
      oprot.writeI64(self.userId)
559 chandransh 12050
      oprot.writeFieldEnd()
12051
    oprot.writeFieldStop()
12052
    oprot.writeStructEnd()
12053
 
3431 rajveer 12054
  def validate(self):
12055
    return
12056
 
12057
 
559 chandransh 12058
  def __repr__(self):
12059
    L = ['%s=%r' % (key, value)
12060
      for key, value in self.__dict__.iteritems()]
12061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12062
 
12063
  def __eq__(self, other):
12064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12065
 
12066
  def __ne__(self, other):
12067
    return not (self == other)
12068
 
2981 rajveer 12069
class getMyResearchItems_result:
559 chandransh 12070
  """
12071
  Attributes:
130 ashish 12072
   - success
559 chandransh 12073
   - scx
130 ashish 12074
  """
12075
 
12076
  thrift_spec = (
2981 rajveer 12077
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12078
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12079
  )
12080
 
559 chandransh 12081
  def __init__(self, success=None, scx=None,):
130 ashish 12082
    self.success = success
559 chandransh 12083
    self.scx = scx
130 ashish 12084
 
12085
  def read(self, iprot):
12086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12088
      return
12089
    iprot.readStructBegin()
12090
    while True:
12091
      (fname, ftype, fid) = iprot.readFieldBegin()
12092
      if ftype == TType.STOP:
12093
        break
12094
      if fid == 0:
2981 rajveer 12095
        if ftype == TType.LIST:
12096
          self.success = []
6736 amit.gupta 12097
          (_etype179, _size176) = iprot.readListBegin()
12098
          for _i180 in xrange(_size176):
12099
            _elem181 = iprot.readI64();
12100
            self.success.append(_elem181)
2981 rajveer 12101
          iprot.readListEnd()
130 ashish 12102
        else:
12103
          iprot.skip(ftype)
12104
      elif fid == 1:
12105
        if ftype == TType.STRUCT:
559 chandransh 12106
          self.scx = WidgetException()
12107
          self.scx.read(iprot)
130 ashish 12108
        else:
12109
          iprot.skip(ftype)
12110
      else:
12111
        iprot.skip(ftype)
12112
      iprot.readFieldEnd()
12113
    iprot.readStructEnd()
12114
 
12115
  def write(self, oprot):
12116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12118
      return
2981 rajveer 12119
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12120
    if self.success is not None:
2981 rajveer 12121
      oprot.writeFieldBegin('success', TType.LIST, 0)
12122
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12123
      for iter182 in self.success:
12124
        oprot.writeI64(iter182)
2981 rajveer 12125
      oprot.writeListEnd()
130 ashish 12126
      oprot.writeFieldEnd()
3431 rajveer 12127
    if self.scx is not None:
559 chandransh 12128
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12129
      self.scx.write(oprot)
130 ashish 12130
      oprot.writeFieldEnd()
12131
    oprot.writeFieldStop()
12132
    oprot.writeStructEnd()
12133
 
3431 rajveer 12134
  def validate(self):
12135
    return
12136
 
12137
 
130 ashish 12138
  def __repr__(self):
12139
    L = ['%s=%r' % (key, value)
12140
      for key, value in self.__dict__.iteritems()]
12141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12142
 
12143
  def __eq__(self, other):
12144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12145
 
12146
  def __ne__(self, other):
12147
    return not (self == other)
12148
 
2981 rajveer 12149
class updateMyResearch_args:
130 ashish 12150
  """
12151
  Attributes:
2981 rajveer 12152
   - userId
12153
   - itemId
130 ashish 12154
  """
12155
 
12156
  thrift_spec = (
12157
    None, # 0
2981 rajveer 12158
    (1, TType.I64, 'userId', None, None, ), # 1
12159
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12160
  )
12161
 
2981 rajveer 12162
  def __init__(self, userId=None, itemId=None,):
12163
    self.userId = userId
12164
    self.itemId = itemId
130 ashish 12165
 
12166
  def read(self, iprot):
12167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12169
      return
12170
    iprot.readStructBegin()
12171
    while True:
12172
      (fname, ftype, fid) = iprot.readFieldBegin()
12173
      if ftype == TType.STOP:
12174
        break
12175
      if fid == 1:
559 chandransh 12176
        if ftype == TType.I64:
2981 rajveer 12177
          self.userId = iprot.readI64();
130 ashish 12178
        else:
12179
          iprot.skip(ftype)
12180
      elif fid == 2:
559 chandransh 12181
        if ftype == TType.I64:
2981 rajveer 12182
          self.itemId = iprot.readI64();
559 chandransh 12183
        else:
12184
          iprot.skip(ftype)
130 ashish 12185
      else:
12186
        iprot.skip(ftype)
12187
      iprot.readFieldEnd()
12188
    iprot.readStructEnd()
12189
 
12190
  def write(self, oprot):
12191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12193
      return
2981 rajveer 12194
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12195
    if self.userId is not None:
2981 rajveer 12196
      oprot.writeFieldBegin('userId', TType.I64, 1)
12197
      oprot.writeI64(self.userId)
130 ashish 12198
      oprot.writeFieldEnd()
3431 rajveer 12199
    if self.itemId is not None:
2981 rajveer 12200
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12201
      oprot.writeI64(self.itemId)
130 ashish 12202
      oprot.writeFieldEnd()
12203
    oprot.writeFieldStop()
12204
    oprot.writeStructEnd()
12205
 
3431 rajveer 12206
  def validate(self):
12207
    return
12208
 
12209
 
130 ashish 12210
  def __repr__(self):
12211
    L = ['%s=%r' % (key, value)
12212
      for key, value in self.__dict__.iteritems()]
12213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12214
 
12215
  def __eq__(self, other):
12216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12217
 
12218
  def __ne__(self, other):
12219
    return not (self == other)
12220
 
2981 rajveer 12221
class updateMyResearch_result:
12222
  """
12223
  Attributes:
12224
   - success
12225
   - scx
12226
  """
559 chandransh 12227
 
12228
  thrift_spec = (
2981 rajveer 12229
    (0, TType.BOOL, 'success', None, None, ), # 0
12230
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12231
  )
12232
 
2981 rajveer 12233
  def __init__(self, success=None, scx=None,):
12234
    self.success = success
12235
    self.scx = scx
12236
 
559 chandransh 12237
  def read(self, iprot):
12238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12240
      return
12241
    iprot.readStructBegin()
12242
    while True:
12243
      (fname, ftype, fid) = iprot.readFieldBegin()
12244
      if ftype == TType.STOP:
12245
        break
2981 rajveer 12246
      if fid == 0:
12247
        if ftype == TType.BOOL:
12248
          self.success = iprot.readBool();
12249
        else:
12250
          iprot.skip(ftype)
12251
      elif fid == 1:
12252
        if ftype == TType.STRUCT:
12253
          self.scx = WidgetException()
12254
          self.scx.read(iprot)
12255
        else:
12256
          iprot.skip(ftype)
559 chandransh 12257
      else:
12258
        iprot.skip(ftype)
12259
      iprot.readFieldEnd()
12260
    iprot.readStructEnd()
12261
 
12262
  def write(self, oprot):
12263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12265
      return
2981 rajveer 12266
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12267
    if self.success is not None:
2981 rajveer 12268
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12269
      oprot.writeBool(self.success)
12270
      oprot.writeFieldEnd()
3431 rajveer 12271
    if self.scx is not None:
2981 rajveer 12272
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12273
      self.scx.write(oprot)
12274
      oprot.writeFieldEnd()
559 chandransh 12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
3431 rajveer 12278
  def validate(self):
12279
    return
12280
 
12281
 
559 chandransh 12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
12292
 
2981 rajveer 12293
class deleteItemFromMyResearch_args:
1596 ankur.sing 12294
  """
12295
  Attributes:
2981 rajveer 12296
   - userId
12297
   - itemId
1596 ankur.sing 12298
  """
559 chandransh 12299
 
1596 ankur.sing 12300
  thrift_spec = (
12301
    None, # 0
2981 rajveer 12302
    (1, TType.I64, 'userId', None, None, ), # 1
12303
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12304
  )
12305
 
2981 rajveer 12306
  def __init__(self, userId=None, itemId=None,):
12307
    self.userId = userId
12308
    self.itemId = itemId
1596 ankur.sing 12309
 
12310
  def read(self, iprot):
12311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12313
      return
12314
    iprot.readStructBegin()
12315
    while True:
12316
      (fname, ftype, fid) = iprot.readFieldBegin()
12317
      if ftype == TType.STOP:
12318
        break
12319
      if fid == 1:
2981 rajveer 12320
        if ftype == TType.I64:
12321
          self.userId = iprot.readI64();
1596 ankur.sing 12322
        else:
12323
          iprot.skip(ftype)
2981 rajveer 12324
      elif fid == 2:
12325
        if ftype == TType.I64:
12326
          self.itemId = iprot.readI64();
12327
        else:
12328
          iprot.skip(ftype)
1596 ankur.sing 12329
      else:
12330
        iprot.skip(ftype)
12331
      iprot.readFieldEnd()
12332
    iprot.readStructEnd()
12333
 
12334
  def write(self, oprot):
12335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12337
      return
2981 rajveer 12338
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12339
    if self.userId is not None:
2981 rajveer 12340
      oprot.writeFieldBegin('userId', TType.I64, 1)
12341
      oprot.writeI64(self.userId)
1596 ankur.sing 12342
      oprot.writeFieldEnd()
3431 rajveer 12343
    if self.itemId is not None:
2981 rajveer 12344
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12345
      oprot.writeI64(self.itemId)
12346
      oprot.writeFieldEnd()
1596 ankur.sing 12347
    oprot.writeFieldStop()
12348
    oprot.writeStructEnd()
12349
 
3431 rajveer 12350
  def validate(self):
12351
    return
12352
 
12353
 
1596 ankur.sing 12354
  def __repr__(self):
12355
    L = ['%s=%r' % (key, value)
12356
      for key, value in self.__dict__.iteritems()]
12357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12358
 
12359
  def __eq__(self, other):
12360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12361
 
12362
  def __ne__(self, other):
12363
    return not (self == other)
12364
 
2981 rajveer 12365
class deleteItemFromMyResearch_result:
1596 ankur.sing 12366
  """
12367
  Attributes:
2981 rajveer 12368
   - scx
1596 ankur.sing 12369
  """
12370
 
12371
  thrift_spec = (
2981 rajveer 12372
    None, # 0
12373
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12374
  )
12375
 
2981 rajveer 12376
  def __init__(self, scx=None,):
12377
    self.scx = scx
1596 ankur.sing 12378
 
12379
  def read(self, iprot):
12380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12382
      return
12383
    iprot.readStructBegin()
12384
    while True:
12385
      (fname, ftype, fid) = iprot.readFieldBegin()
12386
      if ftype == TType.STOP:
12387
        break
2981 rajveer 12388
      if fid == 1:
12389
        if ftype == TType.STRUCT:
12390
          self.scx = WidgetException()
12391
          self.scx.read(iprot)
1596 ankur.sing 12392
        else:
12393
          iprot.skip(ftype)
12394
      else:
12395
        iprot.skip(ftype)
12396
      iprot.readFieldEnd()
12397
    iprot.readStructEnd()
12398
 
12399
  def write(self, oprot):
12400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12402
      return
2981 rajveer 12403
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12404
    if self.scx is not None:
2981 rajveer 12405
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12406
      self.scx.write(oprot)
1596 ankur.sing 12407
      oprot.writeFieldEnd()
12408
    oprot.writeFieldStop()
12409
    oprot.writeStructEnd()
12410
 
3431 rajveer 12411
  def validate(self):
12412
    return
12413
 
12414
 
1596 ankur.sing 12415
  def __repr__(self):
12416
    L = ['%s=%r' % (key, value)
12417
      for key, value in self.__dict__.iteritems()]
12418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12419
 
12420
  def __eq__(self, other):
12421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12422
 
12423
  def __ne__(self, other):
12424
    return not (self == other)
12425
 
2981 rajveer 12426
class getBrowseHistoryItems_args:
1673 ankur.sing 12427
  """
12428
  Attributes:
2981 rajveer 12429
   - userId
1673 ankur.sing 12430
  """
1596 ankur.sing 12431
 
1673 ankur.sing 12432
  thrift_spec = (
12433
    None, # 0
2981 rajveer 12434
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12435
  )
12436
 
2981 rajveer 12437
  def __init__(self, userId=None,):
12438
    self.userId = userId
1673 ankur.sing 12439
 
12440
  def read(self, iprot):
12441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12443
      return
12444
    iprot.readStructBegin()
12445
    while True:
12446
      (fname, ftype, fid) = iprot.readFieldBegin()
12447
      if ftype == TType.STOP:
12448
        break
12449
      if fid == 1:
1891 ankur.sing 12450
        if ftype == TType.I64:
2981 rajveer 12451
          self.userId = iprot.readI64();
1891 ankur.sing 12452
        else:
12453
          iprot.skip(ftype)
1673 ankur.sing 12454
      else:
12455
        iprot.skip(ftype)
12456
      iprot.readFieldEnd()
12457
    iprot.readStructEnd()
12458
 
12459
  def write(self, oprot):
12460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12462
      return
2981 rajveer 12463
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12464
    if self.userId is not None:
2981 rajveer 12465
      oprot.writeFieldBegin('userId', TType.I64, 1)
12466
      oprot.writeI64(self.userId)
1673 ankur.sing 12467
      oprot.writeFieldEnd()
12468
    oprot.writeFieldStop()
12469
    oprot.writeStructEnd()
12470
 
3431 rajveer 12471
  def validate(self):
12472
    return
12473
 
12474
 
1673 ankur.sing 12475
  def __repr__(self):
12476
    L = ['%s=%r' % (key, value)
12477
      for key, value in self.__dict__.iteritems()]
12478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12479
 
12480
  def __eq__(self, other):
12481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12482
 
12483
  def __ne__(self, other):
12484
    return not (self == other)
12485
 
2981 rajveer 12486
class getBrowseHistoryItems_result:
1673 ankur.sing 12487
  """
12488
  Attributes:
12489
   - success
2981 rajveer 12490
   - scx
1673 ankur.sing 12491
  """
12492
 
12493
  thrift_spec = (
2981 rajveer 12494
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12495
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12496
  )
12497
 
2981 rajveer 12498
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12499
    self.success = success
2981 rajveer 12500
    self.scx = scx
1673 ankur.sing 12501
 
12502
  def read(self, iprot):
12503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12505
      return
12506
    iprot.readStructBegin()
12507
    while True:
12508
      (fname, ftype, fid) = iprot.readFieldBegin()
12509
      if ftype == TType.STOP:
12510
        break
12511
      if fid == 0:
12512
        if ftype == TType.LIST:
12513
          self.success = []
6736 amit.gupta 12514
          (_etype186, _size183) = iprot.readListBegin()
12515
          for _i187 in xrange(_size183):
12516
            _elem188 = iprot.readI64();
12517
            self.success.append(_elem188)
1673 ankur.sing 12518
          iprot.readListEnd()
12519
        else:
12520
          iprot.skip(ftype)
2981 rajveer 12521
      elif fid == 1:
12522
        if ftype == TType.STRUCT:
12523
          self.scx = WidgetException()
12524
          self.scx.read(iprot)
12525
        else:
12526
          iprot.skip(ftype)
1673 ankur.sing 12527
      else:
12528
        iprot.skip(ftype)
12529
      iprot.readFieldEnd()
12530
    iprot.readStructEnd()
12531
 
12532
  def write(self, oprot):
12533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12535
      return
2981 rajveer 12536
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12537
    if self.success is not None:
1673 ankur.sing 12538
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12539
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12540
      for iter189 in self.success:
12541
        oprot.writeI64(iter189)
1673 ankur.sing 12542
      oprot.writeListEnd()
12543
      oprot.writeFieldEnd()
3431 rajveer 12544
    if self.scx is not None:
2981 rajveer 12545
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12546
      self.scx.write(oprot)
2642 varun.gupt 12547
      oprot.writeFieldEnd()
12548
    oprot.writeFieldStop()
12549
    oprot.writeStructEnd()
12550
 
3431 rajveer 12551
  def validate(self):
12552
    return
12553
 
12554
 
2642 varun.gupt 12555
  def __repr__(self):
12556
    L = ['%s=%r' % (key, value)
12557
      for key, value in self.__dict__.iteritems()]
12558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12559
 
12560
  def __eq__(self, other):
12561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12562
 
12563
  def __ne__(self, other):
12564
    return not (self == other)
12565
 
2981 rajveer 12566
class updateBrowseHistory_args:
2642 varun.gupt 12567
  """
12568
  Attributes:
2981 rajveer 12569
   - userId
12570
   - itemId
2642 varun.gupt 12571
  """
12572
 
12573
  thrift_spec = (
12574
    None, # 0
2981 rajveer 12575
    (1, TType.I64, 'userId', None, None, ), # 1
12576
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12577
  )
12578
 
2981 rajveer 12579
  def __init__(self, userId=None, itemId=None,):
12580
    self.userId = userId
12581
    self.itemId = itemId
2642 varun.gupt 12582
 
12583
  def read(self, iprot):
12584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12586
      return
12587
    iprot.readStructBegin()
12588
    while True:
12589
      (fname, ftype, fid) = iprot.readFieldBegin()
12590
      if ftype == TType.STOP:
12591
        break
12592
      if fid == 1:
12593
        if ftype == TType.I64:
2981 rajveer 12594
          self.userId = iprot.readI64();
2642 varun.gupt 12595
        else:
12596
          iprot.skip(ftype)
12597
      elif fid == 2:
12598
        if ftype == TType.I64:
2981 rajveer 12599
          self.itemId = iprot.readI64();
2642 varun.gupt 12600
        else:
12601
          iprot.skip(ftype)
12602
      else:
12603
        iprot.skip(ftype)
12604
      iprot.readFieldEnd()
12605
    iprot.readStructEnd()
12606
 
12607
  def write(self, oprot):
12608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12610
      return
2981 rajveer 12611
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12612
    if self.userId is not None:
2981 rajveer 12613
      oprot.writeFieldBegin('userId', TType.I64, 1)
12614
      oprot.writeI64(self.userId)
2642 varun.gupt 12615
      oprot.writeFieldEnd()
3431 rajveer 12616
    if self.itemId is not None:
2981 rajveer 12617
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12618
      oprot.writeI64(self.itemId)
2642 varun.gupt 12619
      oprot.writeFieldEnd()
12620
    oprot.writeFieldStop()
12621
    oprot.writeStructEnd()
12622
 
3431 rajveer 12623
  def validate(self):
12624
    return
12625
 
12626
 
2642 varun.gupt 12627
  def __repr__(self):
12628
    L = ['%s=%r' % (key, value)
12629
      for key, value in self.__dict__.iteritems()]
12630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12631
 
12632
  def __eq__(self, other):
12633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12634
 
12635
  def __ne__(self, other):
12636
    return not (self == other)
12637
 
2981 rajveer 12638
class updateBrowseHistory_result:
2642 varun.gupt 12639
 
12640
  thrift_spec = (
12641
  )
12642
 
12643
  def read(self, iprot):
12644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12646
      return
12647
    iprot.readStructBegin()
12648
    while True:
12649
      (fname, ftype, fid) = iprot.readFieldBegin()
12650
      if ftype == TType.STOP:
12651
        break
12652
      else:
12653
        iprot.skip(ftype)
12654
      iprot.readFieldEnd()
12655
    iprot.readStructEnd()
12656
 
12657
  def write(self, oprot):
12658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12660
      return
2981 rajveer 12661
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12662
    oprot.writeFieldStop()
12663
    oprot.writeStructEnd()
12664
 
3431 rajveer 12665
  def validate(self):
12666
    return
12667
 
12668
 
2642 varun.gupt 12669
  def __repr__(self):
12670
    L = ['%s=%r' % (key, value)
12671
      for key, value in self.__dict__.iteritems()]
12672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12673
 
12674
  def __eq__(self, other):
12675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12676
 
12677
  def __ne__(self, other):
12678
    return not (self == other)
12679
 
3385 varun.gupt 12680
class getCartsWithCouponCount_args:
12681
  """
12682
  Attributes:
12683
   - couponCode
12684
  """
2642 varun.gupt 12685
 
3385 varun.gupt 12686
  thrift_spec = (
12687
    None, # 0
12688
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12689
  )
12690
 
12691
  def __init__(self, couponCode=None,):
12692
    self.couponCode = couponCode
12693
 
12694
  def read(self, iprot):
12695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12697
      return
12698
    iprot.readStructBegin()
12699
    while True:
12700
      (fname, ftype, fid) = iprot.readFieldBegin()
12701
      if ftype == TType.STOP:
12702
        break
12703
      if fid == 1:
12704
        if ftype == TType.STRING:
12705
          self.couponCode = iprot.readString();
12706
        else:
12707
          iprot.skip(ftype)
12708
      else:
12709
        iprot.skip(ftype)
12710
      iprot.readFieldEnd()
12711
    iprot.readStructEnd()
12712
 
12713
  def write(self, oprot):
12714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12716
      return
12717
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12718
    if self.couponCode is not None:
3385 varun.gupt 12719
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12720
      oprot.writeString(self.couponCode)
12721
      oprot.writeFieldEnd()
12722
    oprot.writeFieldStop()
12723
    oprot.writeStructEnd()
12724
 
3431 rajveer 12725
  def validate(self):
12726
    return
12727
 
12728
 
3385 varun.gupt 12729
  def __repr__(self):
12730
    L = ['%s=%r' % (key, value)
12731
      for key, value in self.__dict__.iteritems()]
12732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12733
 
12734
  def __eq__(self, other):
12735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12736
 
12737
  def __ne__(self, other):
12738
    return not (self == other)
12739
 
12740
class getCartsWithCouponCount_result:
12741
  """
12742
  Attributes:
12743
   - success
12744
  """
12745
 
12746
  thrift_spec = (
12747
    (0, TType.I64, 'success', None, None, ), # 0
12748
  )
12749
 
12750
  def __init__(self, success=None,):
12751
    self.success = success
12752
 
12753
  def read(self, iprot):
12754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12756
      return
12757
    iprot.readStructBegin()
12758
    while True:
12759
      (fname, ftype, fid) = iprot.readFieldBegin()
12760
      if ftype == TType.STOP:
12761
        break
12762
      if fid == 0:
12763
        if ftype == TType.I64:
12764
          self.success = iprot.readI64();
12765
        else:
12766
          iprot.skip(ftype)
12767
      else:
12768
        iprot.skip(ftype)
12769
      iprot.readFieldEnd()
12770
    iprot.readStructEnd()
12771
 
12772
  def write(self, oprot):
12773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12775
      return
12776
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12777
    if self.success is not None:
3385 varun.gupt 12778
      oprot.writeFieldBegin('success', TType.I64, 0)
12779
      oprot.writeI64(self.success)
12780
      oprot.writeFieldEnd()
12781
    oprot.writeFieldStop()
12782
    oprot.writeStructEnd()
12783
 
3431 rajveer 12784
  def validate(self):
12785
    return
12786
 
12787
 
3385 varun.gupt 12788
  def __repr__(self):
12789
    L = ['%s=%r' % (key, value)
12790
      for key, value in self.__dict__.iteritems()]
12791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12792
 
12793
  def __eq__(self, other):
12794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12795
 
12796
  def __ne__(self, other):
12797
    return not (self == other)
3499 mandeep.dh 12798
 
12799
class increaseTrustLevel_args:
12800
  """
12801
  Attributes:
12802
   - userId
12803
   - trustLevelDelta
12804
  """
12805
 
12806
  thrift_spec = (
12807
    None, # 0
12808
    (1, TType.I64, 'userId', None, None, ), # 1
12809
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
12810
  )
12811
 
12812
  def __init__(self, userId=None, trustLevelDelta=None,):
12813
    self.userId = userId
12814
    self.trustLevelDelta = trustLevelDelta
12815
 
12816
  def read(self, iprot):
12817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12819
      return
12820
    iprot.readStructBegin()
12821
    while True:
12822
      (fname, ftype, fid) = iprot.readFieldBegin()
12823
      if ftype == TType.STOP:
12824
        break
12825
      if fid == 1:
12826
        if ftype == TType.I64:
12827
          self.userId = iprot.readI64();
12828
        else:
12829
          iprot.skip(ftype)
12830
      elif fid == 2:
12831
        if ftype == TType.DOUBLE:
12832
          self.trustLevelDelta = iprot.readDouble();
12833
        else:
12834
          iprot.skip(ftype)
12835
      else:
12836
        iprot.skip(ftype)
12837
      iprot.readFieldEnd()
12838
    iprot.readStructEnd()
12839
 
12840
  def write(self, oprot):
12841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12843
      return
12844
    oprot.writeStructBegin('increaseTrustLevel_args')
12845
    if self.userId is not None:
12846
      oprot.writeFieldBegin('userId', TType.I64, 1)
12847
      oprot.writeI64(self.userId)
12848
      oprot.writeFieldEnd()
12849
    if self.trustLevelDelta is not None:
12850
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
12851
      oprot.writeDouble(self.trustLevelDelta)
12852
      oprot.writeFieldEnd()
12853
    oprot.writeFieldStop()
12854
    oprot.writeStructEnd()
12855
 
12856
  def validate(self):
12857
    return
12858
 
12859
 
12860
  def __repr__(self):
12861
    L = ['%s=%r' % (key, value)
12862
      for key, value in self.__dict__.iteritems()]
12863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12864
 
12865
  def __eq__(self, other):
12866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12867
 
12868
  def __ne__(self, other):
12869
    return not (self == other)
4668 varun.gupt 12870
 
5407 amar.kumar 12871
class getTrustLevel_args:
12872
  """
12873
  Attributes:
12874
   - userId
12875
  """
12876
 
12877
  thrift_spec = (
12878
    None, # 0
12879
    (1, TType.I64, 'userId', None, None, ), # 1
12880
  )
12881
 
12882
  def __init__(self, userId=None,):
12883
    self.userId = userId
12884
 
12885
  def read(self, iprot):
12886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12888
      return
12889
    iprot.readStructBegin()
12890
    while True:
12891
      (fname, ftype, fid) = iprot.readFieldBegin()
12892
      if ftype == TType.STOP:
12893
        break
12894
      if fid == 1:
12895
        if ftype == TType.I64:
12896
          self.userId = iprot.readI64();
12897
        else:
12898
          iprot.skip(ftype)
12899
      else:
12900
        iprot.skip(ftype)
12901
      iprot.readFieldEnd()
12902
    iprot.readStructEnd()
12903
 
12904
  def write(self, oprot):
12905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12907
      return
12908
    oprot.writeStructBegin('getTrustLevel_args')
12909
    if self.userId is not None:
12910
      oprot.writeFieldBegin('userId', TType.I64, 1)
12911
      oprot.writeI64(self.userId)
12912
      oprot.writeFieldEnd()
12913
    oprot.writeFieldStop()
12914
    oprot.writeStructEnd()
12915
 
12916
  def validate(self):
12917
    return
12918
 
12919
 
12920
  def __repr__(self):
12921
    L = ['%s=%r' % (key, value)
12922
      for key, value in self.__dict__.iteritems()]
12923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12924
 
12925
  def __eq__(self, other):
12926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12927
 
12928
  def __ne__(self, other):
12929
    return not (self == other)
12930
 
12931
class getTrustLevel_result:
12932
  """
12933
  Attributes:
12934
   - success
12935
  """
12936
 
12937
  thrift_spec = (
12938
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12939
  )
12940
 
12941
  def __init__(self, success=None,):
12942
    self.success = success
12943
 
12944
  def read(self, iprot):
12945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12947
      return
12948
    iprot.readStructBegin()
12949
    while True:
12950
      (fname, ftype, fid) = iprot.readFieldBegin()
12951
      if ftype == TType.STOP:
12952
        break
12953
      if fid == 0:
12954
        if ftype == TType.DOUBLE:
12955
          self.success = iprot.readDouble();
12956
        else:
12957
          iprot.skip(ftype)
12958
      else:
12959
        iprot.skip(ftype)
12960
      iprot.readFieldEnd()
12961
    iprot.readStructEnd()
12962
 
12963
  def write(self, oprot):
12964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12966
      return
12967
    oprot.writeStructBegin('getTrustLevel_result')
12968
    if self.success is not None:
12969
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12970
      oprot.writeDouble(self.success)
12971
      oprot.writeFieldEnd()
12972
    oprot.writeFieldStop()
12973
    oprot.writeStructEnd()
12974
 
12975
  def validate(self):
12976
    return
12977
 
12978
 
12979
  def __repr__(self):
12980
    L = ['%s=%r' % (key, value)
12981
      for key, value in self.__dict__.iteritems()]
12982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12983
 
12984
  def __eq__(self, other):
12985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12986
 
12987
  def __ne__(self, other):
12988
    return not (self == other)
12989
 
4668 varun.gupt 12990
class showCODOption_args:
12991
  """
12992
  Attributes:
12993
   - cartId
12994
   - sourceId
12995
   - pincode
12996
  """
12997
 
12998
  thrift_spec = (
12999
    None, # 0
13000
    (1, TType.I64, 'cartId', None, None, ), # 1
13001
    (2, TType.I64, 'sourceId', None, None, ), # 2
13002
    (3, TType.STRING, 'pincode', None, None, ), # 3
13003
  )
13004
 
13005
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13006
    self.cartId = cartId
13007
    self.sourceId = sourceId
13008
    self.pincode = pincode
13009
 
13010
  def read(self, iprot):
13011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13013
      return
13014
    iprot.readStructBegin()
13015
    while True:
13016
      (fname, ftype, fid) = iprot.readFieldBegin()
13017
      if ftype == TType.STOP:
13018
        break
13019
      if fid == 1:
13020
        if ftype == TType.I64:
13021
          self.cartId = iprot.readI64();
13022
        else:
13023
          iprot.skip(ftype)
13024
      elif fid == 2:
13025
        if ftype == TType.I64:
13026
          self.sourceId = iprot.readI64();
13027
        else:
13028
          iprot.skip(ftype)
13029
      elif fid == 3:
13030
        if ftype == TType.STRING:
13031
          self.pincode = iprot.readString();
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_args')
13044
    if self.cartId is not None:
13045
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13046
      oprot.writeI64(self.cartId)
13047
      oprot.writeFieldEnd()
13048
    if self.sourceId is not None:
13049
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13050
      oprot.writeI64(self.sourceId)
13051
      oprot.writeFieldEnd()
13052
    if self.pincode is not None:
13053
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13054
      oprot.writeString(self.pincode)
13055
      oprot.writeFieldEnd()
13056
    oprot.writeFieldStop()
13057
    oprot.writeStructEnd()
13058
 
13059
  def validate(self):
13060
    return
13061
 
13062
 
13063
  def __repr__(self):
13064
    L = ['%s=%r' % (key, value)
13065
      for key, value in self.__dict__.iteritems()]
13066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13067
 
13068
  def __eq__(self, other):
13069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13070
 
13071
  def __ne__(self, other):
13072
    return not (self == other)
13073
 
13074
class showCODOption_result:
13075
  """
13076
  Attributes:
13077
   - success
13078
  """
13079
 
13080
  thrift_spec = (
13081
    (0, TType.BOOL, 'success', None, None, ), # 0
13082
  )
13083
 
13084
  def __init__(self, success=None,):
13085
    self.success = success
13086
 
13087
  def read(self, iprot):
13088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13090
      return
13091
    iprot.readStructBegin()
13092
    while True:
13093
      (fname, ftype, fid) = iprot.readFieldBegin()
13094
      if ftype == TType.STOP:
13095
        break
13096
      if fid == 0:
13097
        if ftype == TType.BOOL:
13098
          self.success = iprot.readBool();
13099
        else:
13100
          iprot.skip(ftype)
13101
      else:
13102
        iprot.skip(ftype)
13103
      iprot.readFieldEnd()
13104
    iprot.readStructEnd()
13105
 
13106
  def write(self, oprot):
13107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13109
      return
13110
    oprot.writeStructBegin('showCODOption_result')
13111
    if self.success is not None:
13112
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13113
      oprot.writeBool(self.success)
13114
      oprot.writeFieldEnd()
13115
    oprot.writeFieldStop()
13116
    oprot.writeStructEnd()
13117
 
13118
  def validate(self):
13119
    return
13120
 
13121
 
13122
  def __repr__(self):
13123
    L = ['%s=%r' % (key, value)
13124
      for key, value in self.__dict__.iteritems()]
13125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13126
 
13127
  def __eq__(self, other):
13128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13129
 
13130
  def __ne__(self, other):
13131
    return not (self == other)
5623 anupam.sin 13132
 
13133
class getUserEmails_args:
13134
  """
13135
  Attributes:
13136
   - startDate
13137
   - endDate
13138
  """
13139
 
13140
  thrift_spec = (
13141
    None, # 0
13142
    (1, TType.I64, 'startDate', None, None, ), # 1
13143
    (2, TType.I64, 'endDate', None, None, ), # 2
13144
  )
13145
 
13146
  def __init__(self, startDate=None, endDate=None,):
13147
    self.startDate = startDate
13148
    self.endDate = endDate
13149
 
13150
  def read(self, iprot):
13151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13153
      return
13154
    iprot.readStructBegin()
13155
    while True:
13156
      (fname, ftype, fid) = iprot.readFieldBegin()
13157
      if ftype == TType.STOP:
13158
        break
13159
      if fid == 1:
13160
        if ftype == TType.I64:
13161
          self.startDate = iprot.readI64();
13162
        else:
13163
          iprot.skip(ftype)
13164
      elif fid == 2:
13165
        if ftype == TType.I64:
13166
          self.endDate = iprot.readI64();
13167
        else:
13168
          iprot.skip(ftype)
13169
      else:
13170
        iprot.skip(ftype)
13171
      iprot.readFieldEnd()
13172
    iprot.readStructEnd()
13173
 
13174
  def write(self, oprot):
13175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13177
      return
13178
    oprot.writeStructBegin('getUserEmails_args')
13179
    if self.startDate is not None:
13180
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13181
      oprot.writeI64(self.startDate)
13182
      oprot.writeFieldEnd()
13183
    if self.endDate is not None:
13184
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13185
      oprot.writeI64(self.endDate)
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)
13204
 
13205
class getUserEmails_result:
13206
  """
13207
  Attributes:
13208
   - success
13209
  """
13210
 
13211
  thrift_spec = (
13212
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13213
  )
13214
 
13215
  def __init__(self, success=None,):
13216
    self.success = success
13217
 
13218
  def read(self, iprot):
13219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13221
      return
13222
    iprot.readStructBegin()
13223
    while True:
13224
      (fname, ftype, fid) = iprot.readFieldBegin()
13225
      if ftype == TType.STOP:
13226
        break
13227
      if fid == 0:
13228
        if ftype == TType.LIST:
13229
          self.success = []
6736 amit.gupta 13230
          (_etype193, _size190) = iprot.readListBegin()
13231
          for _i194 in xrange(_size190):
13232
            _elem195 = iprot.readString();
13233
            self.success.append(_elem195)
5623 anupam.sin 13234
          iprot.readListEnd()
13235
        else:
13236
          iprot.skip(ftype)
13237
      else:
13238
        iprot.skip(ftype)
13239
      iprot.readFieldEnd()
13240
    iprot.readStructEnd()
13241
 
13242
  def write(self, oprot):
13243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13245
      return
13246
    oprot.writeStructBegin('getUserEmails_result')
13247
    if self.success is not None:
13248
      oprot.writeFieldBegin('success', TType.LIST, 0)
13249
      oprot.writeListBegin(TType.STRING, len(self.success))
6736 amit.gupta 13250
      for iter196 in self.success:
13251
        oprot.writeString(iter196)
5623 anupam.sin 13252
      oprot.writeListEnd()
13253
      oprot.writeFieldEnd()
13254
    oprot.writeFieldStop()
13255
    oprot.writeStructEnd()
13256
 
13257
  def validate(self):
13258
    return
13259
 
13260
 
13261
  def __repr__(self):
13262
    L = ['%s=%r' % (key, value)
13263
      for key, value in self.__dict__.iteritems()]
13264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13265
 
13266
  def __eq__(self, other):
13267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13268
 
13269
  def __ne__(self, other):
13270
    return not (self == other)
6821 amar.kumar 13271
 
13272
class isProductAddedToCart_args:
13273
  """
13274
  Attributes:
13275
   - itemId
13276
   - startDate
13277
   - endDate
13278
  """
13279
 
13280
  thrift_spec = (
13281
    None, # 0
13282
    (1, TType.I64, 'itemId', None, None, ), # 1
13283
    (2, TType.I64, 'startDate', None, None, ), # 2
13284
    (3, TType.I64, 'endDate', None, None, ), # 3
13285
  )
13286
 
13287
  def __init__(self, itemId=None, startDate=None, endDate=None,):
13288
    self.itemId = itemId
13289
    self.startDate = startDate
13290
    self.endDate = endDate
13291
 
13292
  def read(self, iprot):
13293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13295
      return
13296
    iprot.readStructBegin()
13297
    while True:
13298
      (fname, ftype, fid) = iprot.readFieldBegin()
13299
      if ftype == TType.STOP:
13300
        break
13301
      if fid == 1:
13302
        if ftype == TType.I64:
13303
          self.itemId = iprot.readI64();
13304
        else:
13305
          iprot.skip(ftype)
13306
      elif fid == 2:
13307
        if ftype == TType.I64:
13308
          self.startDate = iprot.readI64();
13309
        else:
13310
          iprot.skip(ftype)
13311
      elif fid == 3:
13312
        if ftype == TType.I64:
13313
          self.endDate = iprot.readI64();
13314
        else:
13315
          iprot.skip(ftype)
13316
      else:
13317
        iprot.skip(ftype)
13318
      iprot.readFieldEnd()
13319
    iprot.readStructEnd()
13320
 
13321
  def write(self, oprot):
13322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13324
      return
13325
    oprot.writeStructBegin('isProductAddedToCart_args')
13326
    if self.itemId is not None:
13327
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13328
      oprot.writeI64(self.itemId)
13329
      oprot.writeFieldEnd()
13330
    if self.startDate is not None:
13331
      oprot.writeFieldBegin('startDate', TType.I64, 2)
13332
      oprot.writeI64(self.startDate)
13333
      oprot.writeFieldEnd()
13334
    if self.endDate is not None:
13335
      oprot.writeFieldBegin('endDate', TType.I64, 3)
13336
      oprot.writeI64(self.endDate)
13337
      oprot.writeFieldEnd()
13338
    oprot.writeFieldStop()
13339
    oprot.writeStructEnd()
13340
 
13341
  def validate(self):
13342
    return
13343
 
13344
 
13345
  def __repr__(self):
13346
    L = ['%s=%r' % (key, value)
13347
      for key, value in self.__dict__.iteritems()]
13348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13349
 
13350
  def __eq__(self, other):
13351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13352
 
13353
  def __ne__(self, other):
13354
    return not (self == other)
13355
 
13356
class isProductAddedToCart_result:
13357
  """
13358
  Attributes:
13359
   - success
13360
  """
13361
 
13362
  thrift_spec = (
13363
    (0, TType.BOOL, 'success', None, None, ), # 0
13364
  )
13365
 
13366
  def __init__(self, success=None,):
13367
    self.success = success
13368
 
13369
  def read(self, iprot):
13370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13372
      return
13373
    iprot.readStructBegin()
13374
    while True:
13375
      (fname, ftype, fid) = iprot.readFieldBegin()
13376
      if ftype == TType.STOP:
13377
        break
13378
      if fid == 0:
13379
        if ftype == TType.BOOL:
13380
          self.success = iprot.readBool();
13381
        else:
13382
          iprot.skip(ftype)
13383
      else:
13384
        iprot.skip(ftype)
13385
      iprot.readFieldEnd()
13386
    iprot.readStructEnd()
13387
 
13388
  def write(self, oprot):
13389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13391
      return
13392
    oprot.writeStructBegin('isProductAddedToCart_result')
13393
    if self.success is not None:
13394
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13395
      oprot.writeBool(self.success)
13396
      oprot.writeFieldEnd()
13397
    oprot.writeFieldStop()
13398
    oprot.writeStructEnd()
13399
 
13400
  def validate(self):
13401
    return
13402
 
13403
 
13404
  def __repr__(self):
13405
    L = ['%s=%r' % (key, value)
13406
      for key, value in self.__dict__.iteritems()]
13407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13408
 
13409
  def __eq__(self, other):
13410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13411
 
13412
  def __ne__(self, other):
13413
    return not (self == other)