Subversion Repositories SmartDukaan

Rev

Rev 5334 | Rev 5407 | 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
 
1859 vikas 204
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 205
    """
206
    Parameters:
207
     - name
1859 vikas 208
     - addedOn
1845 vikas 209
    """
210
    pass
211
 
1899 vikas 212
  def getAllMasterAffiliates(self, ):
213
    pass
214
 
1845 vikas 215
  def getMasterAffiliateById(self, id):
216
    """
217
    Parameters:
218
     - id
219
    """
220
    pass
221
 
222
  def getMasterAffiliateByName(self, name):
223
    """
224
    Parameters:
225
     - name
226
    """
227
    pass
228
 
1859 vikas 229
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 230
    """
231
    Parameters:
232
     - name
233
     - url
234
     - masterAffiliateId
1859 vikas 235
     - addedOn
1845 vikas 236
    """
237
    pass
238
 
239
  def getAffiliateById(self, id):
240
    """
241
    Parameters:
242
     - id
243
    """
244
    pass
245
 
246
  def getAffiliateByName(self, name):
247
    """
248
    Parameters:
249
     - name
250
    """
251
    pass
252
 
1996 vikas 253
  def getTrackerById(self, id):
1845 vikas 254
    """
255
    Parameters:
256
     - id
257
    """
258
    pass
259
 
1996 vikas 260
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 261
    """
262
    Parameters:
1996 vikas 263
     - id
1845 vikas 264
    """
265
    pass
266
 
1996 vikas 267
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 268
    """
269
    Parameters:
270
     - affiliateId
271
     - userId
272
     - event
273
     - url
274
     - data
1859 vikas 275
     - addedOn
1845 vikas 276
    """
277
    pass
278
 
279
  def getTrackLogById(self, id):
280
    """
281
    Parameters:
282
     - id
283
    """
284
    pass
285
 
3293 vikas 286
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 287
    """
288
    Parameters:
1996 vikas 289
     - affiliateId
3293 vikas 290
     - startDate
291
     - endDate
1845 vikas 292
    """
293
    pass
294
 
295
  def getTrackLogsByUser(self, userId):
296
    """
297
    Parameters:
298
     - userId
299
    """
300
    pass
301
 
1996 vikas 302
  def getTrackLogs(self, userId, event, url):
1845 vikas 303
    """
304
    Parameters:
305
     - userId
306
     - event
307
     - url
308
    """
309
    pass
310
 
559 chandransh 311
  def getCurrentCart(self, userId):
94 ashish 312
    """
313
    Parameters:
559 chandransh 314
     - userId
94 ashish 315
    """
316
    pass
317
 
559 chandransh 318
  def getCart(self, cartId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - cartId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - from_time
329
     - to_time
330
     - status
94 ashish 331
    """
332
    pass
333
 
3557 rajveer 334
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 335
    """
336
    Parameters:
559 chandransh 337
     - cartId
338
     - itemId
339
     - quantity
3557 rajveer 340
     - sourceId
130 ashish 341
    """
342
    pass
343
 
559 chandransh 344
  def deleteItemFromCart(self, cartId, itemId):
345
    """
346
    Parameters:
347
     - cartId
348
     - itemId
349
    """
350
    pass
130 ashish 351
 
559 chandransh 352
  def addAddressToCart(self, cartId, addressId):
353
    """
354
    Parameters:
355
     - cartId
356
     - addressId
357
    """
358
    pass
359
 
1976 varun.gupt 360
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
361
    """
362
    Parameters:
363
     - cartId
364
     - couponCode
365
     - totalPrice
366
     - discountedPrice
367
    """
368
    pass
369
 
370
  def removeCoupon(self, cartId):
371
    """
372
    Parameters:
373
     - cartId
374
    """
375
    pass
376
 
3554 varun.gupt 377
  def deleteDiscountsFromCart(self, cartId):
378
    """
379
    Deletes all the discounts associated with the cart
380
 
381
    Parameters:
382
     - cartId
383
    """
384
    pass
385
 
386
  def saveDiscounts(self, discounts):
387
    """
388
    Accepts a list of thrift objects of Discount type and saves them
389
 
390
    Parameters:
391
     - discounts
392
    """
393
    pass
394
 
5326 rajveer 395
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 396
    """
690 chandransh 397
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 398
 
559 chandransh 399
    Parameters:
400
     - cartId
2815 vikas 401
     - sessionSource
402
     - sessionStartTime
3858 vikas 403
     - firstSource
404
     - firstSourceTime
5326 rajveer 405
     - userId
559 chandransh 406
    """
407
    pass
408
 
3557 rajveer 409
  def validateCart(self, cartId, sourceId):
559 chandransh 410
    """
690 chandransh 411
    Validates that:
412
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 413
    2. All of the lines in the cart are active items.
690 chandransh 414
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 415
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 416
 
559 chandransh 417
    Parameters:
418
     - cartId
3557 rajveer 419
     - sourceId
559 chandransh 420
    """
421
    pass
422
 
690 chandransh 423
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 424
    """
690 chandransh 425
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 426
 
575 chandransh 427
    Parameters:
690 chandransh 428
     - fromCartId
429
     - toCartId
430
    """
431
    pass
432
 
433
  def checkOut(self, cartId):
434
    """
435
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 436
 
690 chandransh 437
    Parameters:
575 chandransh 438
     - cartId
439
    """
440
    pass
441
 
690 chandransh 442
  def resetCart(self, cartId, items):
559 chandransh 443
    """
690 chandransh 444
    The second parameter is a map of item ids and their quantities which have been successfully processed.
445
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 446
 
559 chandransh 447
    Parameters:
690 chandransh 448
     - cartId
449
     - items
559 chandransh 450
    """
451
    pass
452
 
2981 rajveer 453
  def getUserCount(self, userType):
559 chandransh 454
    """
2981 rajveer 455
    Returns number of registered users.
456
    If userType = null, then it returns count of all users, including anonymous
457
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
458
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 459
 
559 chandransh 460
    Parameters:
2981 rajveer 461
     - userType
559 chandransh 462
    """
463
    pass
464
 
2981 rajveer 465
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 466
    """
2981 rajveer 467
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
468
    If any of startDate or endDate is -1, then that filter is ignored.
469
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 470
 
471
 
559 chandransh 472
    Parameters:
2981 rajveer 473
     - userType
474
     - startDate
475
     - endDate
559 chandransh 476
    """
477
    pass
478
 
2981 rajveer 479
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 480
    """
481
    Parameters:
2981 rajveer 482
     - user_id
483
     - entity_id
484
     - slide
485
     - note
559 chandransh 486
    """
487
    pass
488
 
2981 rajveer 489
  def getUserNotes(self, user_id, entity_id):
559 chandransh 490
    """
491
    Parameters:
2981 rajveer 492
     - user_id
493
     - entity_id
559 chandransh 494
    """
495
    pass
496
 
2981 rajveer 497
  def getMyResearchItems(self, userId):
559 chandransh 498
    """
2981 rajveer 499
    Returns list of item ids in myresearch for the user
3431 rajveer 500
 
559 chandransh 501
    Parameters:
502
     - userId
503
    """
504
    pass
505
 
2981 rajveer 506
  def updateMyResearch(self, userId, itemId):
559 chandransh 507
    """
2981 rajveer 508
    add item to my research for a user
3431 rajveer 509
 
559 chandransh 510
    Parameters:
2981 rajveer 511
     - userId
512
     - itemId
559 chandransh 513
    """
514
    pass
515
 
2981 rajveer 516
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 517
    """
2981 rajveer 518
    delete item from my research for a user
3431 rajveer 519
 
1596 ankur.sing 520
    Parameters:
2981 rajveer 521
     - userId
522
     - itemId
1596 ankur.sing 523
    """
524
    pass
559 chandransh 525
 
2981 rajveer 526
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 527
    """
2981 rajveer 528
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 529
 
1673 ankur.sing 530
    Parameters:
2981 rajveer 531
     - userId
1673 ankur.sing 532
    """
533
    pass
1596 ankur.sing 534
 
2981 rajveer 535
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 536
    """
2981 rajveer 537
    add item to browse history for a user
3431 rajveer 538
 
2642 varun.gupt 539
    Parameters:
2981 rajveer 540
     - userId
541
     - itemId
2642 varun.gupt 542
    """
543
    pass
1673 ankur.sing 544
 
3385 varun.gupt 545
  def getCartsWithCouponCount(self, couponCode):
546
    """
547
    Returns count of Carts with given coupon applied
3431 rajveer 548
 
3385 varun.gupt 549
    Parameters:
550
     - couponCode
551
    """
552
    pass
2642 varun.gupt 553
 
3499 mandeep.dh 554
  def increaseTrustLevel(self, userId, trustLevelDelta):
555
    """
556
    Updates COD trust level of a user
3385 varun.gupt 557
 
3499 mandeep.dh 558
    Parameters:
559
     - userId
560
     - trustLevelDelta
561
    """
562
    pass
563
 
4668 varun.gupt 564
  def showCODOption(self, cartId, sourceId, pincode):
565
    """
566
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 567
 
4668 varun.gupt 568
    Parameters:
569
     - cartId
570
     - sourceId
571
     - pincode
572
    """
573
    pass
574
 
575
 
3376 rajveer 576
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 577
  """
578
  service
579
  """
580
  def __init__(self, iprot, oprot=None):
3376 rajveer 581
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 582
 
559 chandransh 583
  def createAnonymousUser(self, jsessionId):
94 ashish 584
    """
585
    Parameters:
559 chandransh 586
     - jsessionId
94 ashish 587
    """
559 chandransh 588
    self.send_createAnonymousUser(jsessionId)
589
    return self.recv_createAnonymousUser()
94 ashish 590
 
559 chandransh 591
  def send_createAnonymousUser(self, jsessionId):
592
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
593
    args = createAnonymousUser_args()
594
    args.jsessionId = jsessionId
94 ashish 595
    args.write(self._oprot)
596
    self._oprot.writeMessageEnd()
597
    self._oprot.trans.flush()
598
 
559 chandransh 599
  def recv_createAnonymousUser(self, ):
94 ashish 600
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
601
    if mtype == TMessageType.EXCEPTION:
602
      x = TApplicationException()
603
      x.read(self._iprot)
604
      self._iprot.readMessageEnd()
605
      raise x
559 chandransh 606
    result = createAnonymousUser_result()
94 ashish 607
    result.read(self._iprot)
608
    self._iprot.readMessageEnd()
3431 rajveer 609
    if result.success is not None:
94 ashish 610
      return result.success
3431 rajveer 611
    if result.ucex is not None:
559 chandransh 612
      raise result.ucex
613
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 614
 
559 chandransh 615
  def getUserById(self, userId):
94 ashish 616
    """
617
    Parameters:
618
     - userId
619
    """
559 chandransh 620
    self.send_getUserById(userId)
621
    return self.recv_getUserById()
94 ashish 622
 
559 chandransh 623
  def send_getUserById(self, userId):
624
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
625
    args = getUserById_args()
94 ashish 626
    args.userId = userId
627
    args.write(self._oprot)
628
    self._oprot.writeMessageEnd()
629
    self._oprot.trans.flush()
630
 
559 chandransh 631
  def recv_getUserById(self, ):
94 ashish 632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
633
    if mtype == TMessageType.EXCEPTION:
634
      x = TApplicationException()
635
      x.read(self._iprot)
636
      self._iprot.readMessageEnd()
637
      raise x
559 chandransh 638
    result = getUserById_result()
94 ashish 639
    result.read(self._iprot)
640
    self._iprot.readMessageEnd()
3431 rajveer 641
    if result.success is not None:
94 ashish 642
      return result.success
3431 rajveer 643
    if result.ucex is not None:
559 chandransh 644
      raise result.ucex
645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 646
 
5326 rajveer 647
  def getUserByCartId(self, cartId):
648
    """
649
    Parameters:
650
     - cartId
651
    """
652
    self.send_getUserByCartId(cartId)
653
    return self.recv_getUserByCartId()
654
 
655
  def send_getUserByCartId(self, cartId):
656
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
657
    args = getUserByCartId_args()
658
    args.cartId = cartId
659
    args.write(self._oprot)
660
    self._oprot.writeMessageEnd()
661
    self._oprot.trans.flush()
662
 
663
  def recv_getUserByCartId(self, ):
664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
665
    if mtype == TMessageType.EXCEPTION:
666
      x = TApplicationException()
667
      x.read(self._iprot)
668
      self._iprot.readMessageEnd()
669
      raise x
670
    result = getUserByCartId_result()
671
    result.read(self._iprot)
672
    self._iprot.readMessageEnd()
673
    if result.success is not None:
674
      return result.success
675
    if result.ucex is not None:
676
      raise result.ucex
677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
678
 
1491 vikas 679
  def getUserByEmail(self, email):
680
    """
681
    Parameters:
682
     - email
683
    """
684
    self.send_getUserByEmail(email)
685
    return self.recv_getUserByEmail()
686
 
687
  def send_getUserByEmail(self, email):
688
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
689
    args = getUserByEmail_args()
690
    args.email = email
691
    args.write(self._oprot)
692
    self._oprot.writeMessageEnd()
693
    self._oprot.trans.flush()
694
 
695
  def recv_getUserByEmail(self, ):
696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
697
    if mtype == TMessageType.EXCEPTION:
698
      x = TApplicationException()
699
      x.read(self._iprot)
700
      self._iprot.readMessageEnd()
701
      raise x
702
    result = getUserByEmail_result()
703
    result.read(self._iprot)
704
    self._iprot.readMessageEnd()
3431 rajveer 705
    if result.success is not None:
1491 vikas 706
      return result.success
3431 rajveer 707
    if result.ucex is not None:
1491 vikas 708
      raise result.ucex
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
710
 
3032 mandeep.dh 711
  def getUserByMobileNumber(self, mobileNumber):
712
    """
713
    Parameters:
714
     - mobileNumber
715
    """
716
    self.send_getUserByMobileNumber(mobileNumber)
717
    return self.recv_getUserByMobileNumber()
718
 
719
  def send_getUserByMobileNumber(self, mobileNumber):
720
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
721
    args = getUserByMobileNumber_args()
722
    args.mobileNumber = mobileNumber
723
    args.write(self._oprot)
724
    self._oprot.writeMessageEnd()
725
    self._oprot.trans.flush()
726
 
727
  def recv_getUserByMobileNumber(self, ):
728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
729
    if mtype == TMessageType.EXCEPTION:
730
      x = TApplicationException()
731
      x.read(self._iprot)
732
      self._iprot.readMessageEnd()
733
      raise x
734
    result = getUserByMobileNumber_result()
735
    result.read(self._iprot)
736
    self._iprot.readMessageEnd()
3431 rajveer 737
    if result.success is not None:
3032 mandeep.dh 738
      return result.success
3431 rajveer 739
    if result.ucex is not None:
3032 mandeep.dh 740
      raise result.ucex
741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
742
 
559 chandransh 743
  def createUser(self, user):
94 ashish 744
    """
745
    Parameters:
559 chandransh 746
     - user
94 ashish 747
    """
559 chandransh 748
    self.send_createUser(user)
749
    return self.recv_createUser()
94 ashish 750
 
559 chandransh 751
  def send_createUser(self, user):
752
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
753
    args = createUser_args()
754
    args.user = user
94 ashish 755
    args.write(self._oprot)
756
    self._oprot.writeMessageEnd()
757
    self._oprot.trans.flush()
758
 
559 chandransh 759
  def recv_createUser(self, ):
94 ashish 760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
761
    if mtype == TMessageType.EXCEPTION:
762
      x = TApplicationException()
763
      x.read(self._iprot)
764
      self._iprot.readMessageEnd()
765
      raise x
559 chandransh 766
    result = createUser_result()
94 ashish 767
    result.read(self._iprot)
768
    self._iprot.readMessageEnd()
3431 rajveer 769
    if result.success is not None:
94 ashish 770
      return result.success
3431 rajveer 771
    if result.ucex is not None:
559 chandransh 772
      raise result.ucex
773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 774
 
559 chandransh 775
  def updateUser(self, user):
94 ashish 776
    """
777
    Parameters:
559 chandransh 778
     - user
94 ashish 779
    """
559 chandransh 780
    self.send_updateUser(user)
781
    return self.recv_updateUser()
94 ashish 782
 
559 chandransh 783
  def send_updateUser(self, user):
784
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
785
    args = updateUser_args()
786
    args.user = user
94 ashish 787
    args.write(self._oprot)
788
    self._oprot.writeMessageEnd()
789
    self._oprot.trans.flush()
790
 
559 chandransh 791
  def recv_updateUser(self, ):
94 ashish 792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
793
    if mtype == TMessageType.EXCEPTION:
794
      x = TApplicationException()
795
      x.read(self._iprot)
796
      self._iprot.readMessageEnd()
797
      raise x
559 chandransh 798
    result = updateUser_result()
94 ashish 799
    result.read(self._iprot)
800
    self._iprot.readMessageEnd()
3431 rajveer 801
    if result.success is not None:
94 ashish 802
      return result.success
3431 rajveer 803
    if result.ucex is not None:
559 chandransh 804
      raise result.ucex
805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 806
 
559 chandransh 807
  def authenticateUser(self, email, password):
94 ashish 808
    """
809
    Parameters:
810
     - email
811
     - password
812
    """
559 chandransh 813
    self.send_authenticateUser(email, password)
122 ashish 814
    return self.recv_authenticateUser()
815
 
559 chandransh 816
  def send_authenticateUser(self, email, password):
122 ashish 817
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
818
    args = authenticateUser_args()
559 chandransh 819
    args.email = email
122 ashish 820
    args.password = password
821
    args.write(self._oprot)
822
    self._oprot.writeMessageEnd()
823
    self._oprot.trans.flush()
824
 
825
  def recv_authenticateUser(self, ):
826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
827
    if mtype == TMessageType.EXCEPTION:
828
      x = TApplicationException()
829
      x.read(self._iprot)
830
      self._iprot.readMessageEnd()
831
      raise x
832
    result = authenticateUser_result()
833
    result.read(self._iprot)
834
    self._iprot.readMessageEnd()
3431 rajveer 835
    if result.success is not None:
122 ashish 836
      return result.success
3431 rajveer 837
    if result.auex is not None:
559 chandransh 838
      raise result.auex
122 ashish 839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
840
 
94 ashish 841
  def userExists(self, email):
842
    """
843
    Parameters:
844
     - email
845
    """
846
    self.send_userExists(email)
847
    return self.recv_userExists()
848
 
849
  def send_userExists(self, email):
850
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
851
    args = userExists_args()
852
    args.email = email
853
    args.write(self._oprot)
854
    self._oprot.writeMessageEnd()
855
    self._oprot.trans.flush()
856
 
857
  def recv_userExists(self, ):
858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
859
    if mtype == TMessageType.EXCEPTION:
860
      x = TApplicationException()
861
      x.read(self._iprot)
862
      self._iprot.readMessageEnd()
863
      raise x
864
    result = userExists_result()
865
    result.read(self._iprot)
866
    self._iprot.readMessageEnd()
3431 rajveer 867
    if result.success is not None:
94 ashish 868
      return result.success
3431 rajveer 869
    if result.ucx is not None:
94 ashish 870
      raise result.ucx
871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
872
 
567 rajveer 873
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 874
    """
875
    Parameters:
876
     - userId
877
     - address
513 rajveer 878
     - setDefault
94 ashish 879
    """
567 rajveer 880
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 881
    return self.recv_addAddressForUser()
882
 
567 rajveer 883
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 884
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
885
    args = addAddressForUser_args()
559 chandransh 886
    args.userId = userId
94 ashish 887
    args.address = address
513 rajveer 888
    args.setDefault = setDefault
94 ashish 889
    args.write(self._oprot)
890
    self._oprot.writeMessageEnd()
891
    self._oprot.trans.flush()
892
 
893
  def recv_addAddressForUser(self, ):
894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
895
    if mtype == TMessageType.EXCEPTION:
896
      x = TApplicationException()
897
      x.read(self._iprot)
898
      self._iprot.readMessageEnd()
899
      raise x
900
    result = addAddressForUser_result()
901
    result.read(self._iprot)
902
    self._iprot.readMessageEnd()
3431 rajveer 903
    if result.success is not None:
94 ashish 904
      return result.success
3431 rajveer 905
    if result.ucx is not None:
94 ashish 906
      raise result.ucx
907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
908
 
909
  def removeAddressForUser(self, userid, addressId):
910
    """
911
    Parameters:
912
     - userid
913
     - addressId
914
    """
915
    self.send_removeAddressForUser(userid, addressId)
916
    return self.recv_removeAddressForUser()
917
 
918
  def send_removeAddressForUser(self, userid, addressId):
919
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
920
    args = removeAddressForUser_args()
921
    args.userid = userid
922
    args.addressId = addressId
923
    args.write(self._oprot)
924
    self._oprot.writeMessageEnd()
925
    self._oprot.trans.flush()
926
 
927
  def recv_removeAddressForUser(self, ):
928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
929
    if mtype == TMessageType.EXCEPTION:
930
      x = TApplicationException()
931
      x.read(self._iprot)
932
      self._iprot.readMessageEnd()
933
      raise x
934
    result = removeAddressForUser_result()
935
    result.read(self._iprot)
936
    self._iprot.readMessageEnd()
3431 rajveer 937
    if result.success is not None:
94 ashish 938
      return result.success
3431 rajveer 939
    if result.ucx is not None:
94 ashish 940
      raise result.ucx
941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
942
 
943
  def setUserAsLoggedIn(self, userId, timestamp):
944
    """
945
    Parameters:
946
     - userId
947
     - timestamp
948
    """
949
    self.send_setUserAsLoggedIn(userId, timestamp)
950
    return self.recv_setUserAsLoggedIn()
951
 
952
  def send_setUserAsLoggedIn(self, userId, timestamp):
953
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
954
    args = setUserAsLoggedIn_args()
955
    args.userId = userId
956
    args.timestamp = timestamp
957
    args.write(self._oprot)
958
    self._oprot.writeMessageEnd()
959
    self._oprot.trans.flush()
960
 
961
  def recv_setUserAsLoggedIn(self, ):
962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
963
    if mtype == TMessageType.EXCEPTION:
964
      x = TApplicationException()
965
      x.read(self._iprot)
966
      self._iprot.readMessageEnd()
967
      raise x
968
    result = setUserAsLoggedIn_result()
969
    result.read(self._iprot)
970
    self._iprot.readMessageEnd()
3431 rajveer 971
    if result.success is not None:
94 ashish 972
      return result.success
3431 rajveer 973
    if result.ucx is not None:
94 ashish 974
      raise result.ucx
975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
976
 
977
  def setUserAsLoggedOut(self, userid, timestamp):
978
    """
979
    Parameters:
980
     - userid
981
     - timestamp
982
    """
983
    self.send_setUserAsLoggedOut(userid, timestamp)
984
    return self.recv_setUserAsLoggedOut()
985
 
986
  def send_setUserAsLoggedOut(self, userid, timestamp):
987
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
988
    args = setUserAsLoggedOut_args()
989
    args.userid = userid
990
    args.timestamp = timestamp
991
    args.write(self._oprot)
992
    self._oprot.writeMessageEnd()
993
    self._oprot.trans.flush()
994
 
995
  def recv_setUserAsLoggedOut(self, ):
996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
997
    if mtype == TMessageType.EXCEPTION:
998
      x = TApplicationException()
999
      x.read(self._iprot)
1000
      self._iprot.readMessageEnd()
1001
      raise x
1002
    result = setUserAsLoggedOut_result()
1003
    result.read(self._iprot)
1004
    self._iprot.readMessageEnd()
3431 rajveer 1005
    if result.success is not None:
94 ashish 1006
      return result.success
3431 rajveer 1007
    if result.ucx is not None:
94 ashish 1008
      raise result.ucx
1009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1010
 
504 rajveer 1011
  def setDefaultAddress(self, userid, addressId):
1012
    """
1013
    Parameters:
1014
     - userid
1015
     - addressId
1016
    """
1017
    self.send_setDefaultAddress(userid, addressId)
1018
    return self.recv_setDefaultAddress()
1019
 
1020
  def send_setDefaultAddress(self, userid, addressId):
1021
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1022
    args = setDefaultAddress_args()
1023
    args.userid = userid
1024
    args.addressId = addressId
1025
    args.write(self._oprot)
1026
    self._oprot.writeMessageEnd()
1027
    self._oprot.trans.flush()
1028
 
1029
  def recv_setDefaultAddress(self, ):
1030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1031
    if mtype == TMessageType.EXCEPTION:
1032
      x = TApplicationException()
1033
      x.read(self._iprot)
1034
      self._iprot.readMessageEnd()
1035
      raise x
1036
    result = setDefaultAddress_result()
1037
    result.read(self._iprot)
1038
    self._iprot.readMessageEnd()
3431 rajveer 1039
    if result.success is not None:
504 rajveer 1040
      return result.success
3431 rajveer 1041
    if result.ucx is not None:
504 rajveer 1042
      raise result.ucx
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1044
 
594 rajveer 1045
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1046
    """
1047
    Parameters:
1048
     - userid
594 rajveer 1049
     - oldPassword
1050
     - newPassword
94 ashish 1051
    """
594 rajveer 1052
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1053
    return self.recv_updatePassword()
1054
 
594 rajveer 1055
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1056
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1057
    args = updatePassword_args()
1058
    args.userid = userid
594 rajveer 1059
    args.oldPassword = oldPassword
1060
    args.newPassword = newPassword
94 ashish 1061
    args.write(self._oprot)
1062
    self._oprot.writeMessageEnd()
1063
    self._oprot.trans.flush()
1064
 
1065
  def recv_updatePassword(self, ):
1066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1067
    if mtype == TMessageType.EXCEPTION:
1068
      x = TApplicationException()
1069
      x.read(self._iprot)
1070
      self._iprot.readMessageEnd()
1071
      raise x
1072
    result = updatePassword_result()
1073
    result.read(self._iprot)
1074
    self._iprot.readMessageEnd()
3431 rajveer 1075
    if result.success is not None:
94 ashish 1076
      return result.success
3431 rajveer 1077
    if result.ucx is not None:
94 ashish 1078
      raise result.ucx
1079
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1080
 
884 rajveer 1081
  def forgotPassword(self, email, newPassword):
581 rajveer 1082
    """
1083
    Parameters:
1084
     - email
884 rajveer 1085
     - newPassword
581 rajveer 1086
    """
884 rajveer 1087
    self.send_forgotPassword(email, newPassword)
581 rajveer 1088
    return self.recv_forgotPassword()
1089
 
884 rajveer 1090
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1091
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1092
    args = forgotPassword_args()
1093
    args.email = email
884 rajveer 1094
    args.newPassword = newPassword
581 rajveer 1095
    args.write(self._oprot)
1096
    self._oprot.writeMessageEnd()
1097
    self._oprot.trans.flush()
1098
 
1099
  def recv_forgotPassword(self, ):
1100
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1101
    if mtype == TMessageType.EXCEPTION:
1102
      x = TApplicationException()
1103
      x.read(self._iprot)
1104
      self._iprot.readMessageEnd()
1105
      raise x
1106
    result = forgotPassword_result()
1107
    result.read(self._iprot)
1108
    self._iprot.readMessageEnd()
3431 rajveer 1109
    if result.success is not None:
581 rajveer 1110
      return result.success
3431 rajveer 1111
    if result.ucx is not None:
581 rajveer 1112
      raise result.ucx
1113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1114
 
594 rajveer 1115
  def getAllAddressesForUser(self, userId):
1116
    """
1117
    Parameters:
1118
     - userId
1119
    """
1120
    self.send_getAllAddressesForUser(userId)
1121
    return self.recv_getAllAddressesForUser()
1122
 
1123
  def send_getAllAddressesForUser(self, userId):
1124
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1125
    args = getAllAddressesForUser_args()
1126
    args.userId = userId
1127
    args.write(self._oprot)
1128
    self._oprot.writeMessageEnd()
1129
    self._oprot.trans.flush()
1130
 
1131
  def recv_getAllAddressesForUser(self, ):
1132
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1133
    if mtype == TMessageType.EXCEPTION:
1134
      x = TApplicationException()
1135
      x.read(self._iprot)
1136
      self._iprot.readMessageEnd()
1137
      raise x
1138
    result = getAllAddressesForUser_result()
1139
    result.read(self._iprot)
1140
    self._iprot.readMessageEnd()
3431 rajveer 1141
    if result.success is not None:
594 rajveer 1142
      return result.success
3431 rajveer 1143
    if result.ucx is not None:
594 rajveer 1144
      raise result.ucx
1145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1146
 
1894 vikas 1147
  def getAddressById(self, addressId):
1148
    """
1149
    Parameters:
1150
     - addressId
1151
    """
1152
    self.send_getAddressById(addressId)
1153
    return self.recv_getAddressById()
1154
 
1155
  def send_getAddressById(self, addressId):
1156
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1157
    args = getAddressById_args()
1158
    args.addressId = addressId
1159
    args.write(self._oprot)
1160
    self._oprot.writeMessageEnd()
1161
    self._oprot.trans.flush()
1162
 
1163
  def recv_getAddressById(self, ):
1164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1165
    if mtype == TMessageType.EXCEPTION:
1166
      x = TApplicationException()
1167
      x.read(self._iprot)
1168
      self._iprot.readMessageEnd()
1169
      raise x
1170
    result = getAddressById_result()
1171
    result.read(self._iprot)
1172
    self._iprot.readMessageEnd()
3431 rajveer 1173
    if result.success is not None:
1894 vikas 1174
      return result.success
3431 rajveer 1175
    if result.ucx is not None:
1894 vikas 1176
      raise result.ucx
1177
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1178
 
594 rajveer 1179
  def getDefaultAddressId(self, userId):
1180
    """
1181
    Parameters:
1182
     - userId
1183
    """
1184
    self.send_getDefaultAddressId(userId)
1185
    return self.recv_getDefaultAddressId()
1186
 
1187
  def send_getDefaultAddressId(self, userId):
1188
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1189
    args = getDefaultAddressId_args()
1190
    args.userId = userId
1191
    args.write(self._oprot)
1192
    self._oprot.writeMessageEnd()
1193
    self._oprot.trans.flush()
1194
 
1195
  def recv_getDefaultAddressId(self, ):
1196
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1197
    if mtype == TMessageType.EXCEPTION:
1198
      x = TApplicationException()
1199
      x.read(self._iprot)
1200
      self._iprot.readMessageEnd()
1201
      raise x
1202
    result = getDefaultAddressId_result()
1203
    result.read(self._iprot)
1204
    self._iprot.readMessageEnd()
3431 rajveer 1205
    if result.success is not None:
594 rajveer 1206
      return result.success
3431 rajveer 1207
    if result.ucx is not None:
594 rajveer 1208
      raise result.ucx
1209
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1210
 
785 rajveer 1211
  def getDefaultPincode(self, userId):
1212
    """
1213
    Parameters:
1214
     - userId
1215
    """
1216
    self.send_getDefaultPincode(userId)
1217
    return self.recv_getDefaultPincode()
1218
 
1219
  def send_getDefaultPincode(self, userId):
1220
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1221
    args = getDefaultPincode_args()
1222
    args.userId = userId
1223
    args.write(self._oprot)
1224
    self._oprot.writeMessageEnd()
1225
    self._oprot.trans.flush()
1226
 
1227
  def recv_getDefaultPincode(self, ):
1228
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1229
    if mtype == TMessageType.EXCEPTION:
1230
      x = TApplicationException()
1231
      x.read(self._iprot)
1232
      self._iprot.readMessageEnd()
1233
      raise x
1234
    result = getDefaultPincode_result()
1235
    result.read(self._iprot)
1236
    self._iprot.readMessageEnd()
3431 rajveer 1237
    if result.success is not None:
785 rajveer 1238
      return result.success
3431 rajveer 1239
    if result.ucx is not None:
785 rajveer 1240
      raise result.ucx
1241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1242
 
1274 varun.gupt 1243
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1244
    """
1245
    Parameters:
1246
     - userId
1247
     - replyTo
1248
     - communicationType
1249
     - orderId
1250
     - airwaybillNo
1251
     - productName
1252
     - subject
1253
     - message
1254
    """
1255
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1256
    return self.recv_saveUserCommunication()
1257
 
1258
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1259
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1260
    args = saveUserCommunication_args()
1261
    args.userId = userId
1262
    args.replyTo = replyTo
1263
    args.communicationType = communicationType
1264
    args.orderId = orderId
1265
    args.airwaybillNo = airwaybillNo
1266
    args.productName = productName
1267
    args.subject = subject
1268
    args.message = message
1269
    args.write(self._oprot)
1270
    self._oprot.writeMessageEnd()
1271
    self._oprot.trans.flush()
1272
 
1273
  def recv_saveUserCommunication(self, ):
1274
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1275
    if mtype == TMessageType.EXCEPTION:
1276
      x = TApplicationException()
1277
      x.read(self._iprot)
1278
      self._iprot.readMessageEnd()
1279
      raise x
1280
    result = saveUserCommunication_result()
1281
    result.read(self._iprot)
1282
    self._iprot.readMessageEnd()
3431 rajveer 1283
    if result.success is not None:
1274 varun.gupt 1284
      return result.success
3431 rajveer 1285
    if result.ucx is not None:
1274 varun.gupt 1286
      raise result.ucx
1287
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1288
 
1590 varun.gupt 1289
  def getUserCommunicationById(self, id):
1290
    """
1291
    Parameters:
1292
     - id
1293
    """
1294
    self.send_getUserCommunicationById(id)
1295
    return self.recv_getUserCommunicationById()
1296
 
1297
  def send_getUserCommunicationById(self, id):
1298
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1299
    args = getUserCommunicationById_args()
1300
    args.id = id
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_getUserCommunicationById(self, ):
1306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1307
    if mtype == TMessageType.EXCEPTION:
1308
      x = TApplicationException()
1309
      x.read(self._iprot)
1310
      self._iprot.readMessageEnd()
1311
      raise x
1312
    result = getUserCommunicationById_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
3431 rajveer 1315
    if result.success is not None:
1590 varun.gupt 1316
      return result.success
3431 rajveer 1317
    if result.ucx is not None:
1590 varun.gupt 1318
      raise result.ucx
1319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1320
 
1321
  def getUserCommunicationByUser(self, userId):
1322
    """
1323
    Parameters:
1324
     - userId
1325
    """
1326
    self.send_getUserCommunicationByUser(userId)
1327
    return self.recv_getUserCommunicationByUser()
1328
 
1329
  def send_getUserCommunicationByUser(self, userId):
1330
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1331
    args = getUserCommunicationByUser_args()
1332
    args.userId = userId
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_getUserCommunicationByUser(self, ):
1338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1339
    if mtype == TMessageType.EXCEPTION:
1340
      x = TApplicationException()
1341
      x.read(self._iprot)
1342
      self._iprot.readMessageEnd()
1343
      raise x
1344
    result = getUserCommunicationByUser_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
3431 rajveer 1347
    if result.success is not None:
1590 varun.gupt 1348
      return result.success
3431 rajveer 1349
    if result.ucx is not None:
1590 varun.gupt 1350
      raise result.ucx
1351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1352
 
1353
  def getAllUserCommunications(self, ):
1354
    self.send_getAllUserCommunications()
1355
    return self.recv_getAllUserCommunications()
1356
 
1357
  def send_getAllUserCommunications(self, ):
1358
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1359
    args = getAllUserCommunications_args()
1360
    args.write(self._oprot)
1361
    self._oprot.writeMessageEnd()
1362
    self._oprot.trans.flush()
1363
 
1364
  def recv_getAllUserCommunications(self, ):
1365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1366
    if mtype == TMessageType.EXCEPTION:
1367
      x = TApplicationException()
1368
      x.read(self._iprot)
1369
      self._iprot.readMessageEnd()
1370
      raise x
1371
    result = getAllUserCommunications_result()
1372
    result.read(self._iprot)
1373
    self._iprot.readMessageEnd()
3431 rajveer 1374
    if result.success is not None:
1590 varun.gupt 1375
      return result.success
3431 rajveer 1376
    if result.ucx is not None:
1590 varun.gupt 1377
      raise result.ucx
1378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1379
 
1859 vikas 1380
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1381
    """
1382
    Parameters:
1383
     - name
1859 vikas 1384
     - addedOn
1845 vikas 1385
    """
1859 vikas 1386
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1387
    return self.recv_createMasterAffiliate()
1388
 
1859 vikas 1389
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1390
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1391
    args = createMasterAffiliate_args()
1392
    args.name = name
1859 vikas 1393
    args.addedOn = addedOn
1845 vikas 1394
    args.write(self._oprot)
1395
    self._oprot.writeMessageEnd()
1396
    self._oprot.trans.flush()
1397
 
1398
  def recv_createMasterAffiliate(self, ):
1399
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1400
    if mtype == TMessageType.EXCEPTION:
1401
      x = TApplicationException()
1402
      x.read(self._iprot)
1403
      self._iprot.readMessageEnd()
1404
      raise x
1405
    result = createMasterAffiliate_result()
1406
    result.read(self._iprot)
1407
    self._iprot.readMessageEnd()
3431 rajveer 1408
    if result.success is not None:
1845 vikas 1409
      return result.success
3431 rajveer 1410
    if result.utx is not None:
1845 vikas 1411
      raise result.utx
1412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1413
 
1899 vikas 1414
  def getAllMasterAffiliates(self, ):
1415
    self.send_getAllMasterAffiliates()
1416
    return self.recv_getAllMasterAffiliates()
1417
 
1418
  def send_getAllMasterAffiliates(self, ):
1419
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1420
    args = getAllMasterAffiliates_args()
1421
    args.write(self._oprot)
1422
    self._oprot.writeMessageEnd()
1423
    self._oprot.trans.flush()
1424
 
1425
  def recv_getAllMasterAffiliates(self, ):
1426
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1427
    if mtype == TMessageType.EXCEPTION:
1428
      x = TApplicationException()
1429
      x.read(self._iprot)
1430
      self._iprot.readMessageEnd()
1431
      raise x
1432
    result = getAllMasterAffiliates_result()
1433
    result.read(self._iprot)
1434
    self._iprot.readMessageEnd()
3431 rajveer 1435
    if result.success is not None:
1899 vikas 1436
      return result.success
3431 rajveer 1437
    if result.utx is not None:
1899 vikas 1438
      raise result.utx
1439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1440
 
1845 vikas 1441
  def getMasterAffiliateById(self, id):
1442
    """
1443
    Parameters:
1444
     - id
1445
    """
1446
    self.send_getMasterAffiliateById(id)
1447
    return self.recv_getMasterAffiliateById()
1448
 
1449
  def send_getMasterAffiliateById(self, id):
1450
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1451
    args = getMasterAffiliateById_args()
1452
    args.id = id
1453
    args.write(self._oprot)
1454
    self._oprot.writeMessageEnd()
1455
    self._oprot.trans.flush()
1456
 
1457
  def recv_getMasterAffiliateById(self, ):
1458
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1459
    if mtype == TMessageType.EXCEPTION:
1460
      x = TApplicationException()
1461
      x.read(self._iprot)
1462
      self._iprot.readMessageEnd()
1463
      raise x
1464
    result = getMasterAffiliateById_result()
1465
    result.read(self._iprot)
1466
    self._iprot.readMessageEnd()
3431 rajveer 1467
    if result.success is not None:
1845 vikas 1468
      return result.success
3431 rajveer 1469
    if result.utx is not None:
1845 vikas 1470
      raise result.utx
1471
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1472
 
1473
  def getMasterAffiliateByName(self, name):
1474
    """
1475
    Parameters:
1476
     - name
1477
    """
1478
    self.send_getMasterAffiliateByName(name)
1479
    return self.recv_getMasterAffiliateByName()
1480
 
1481
  def send_getMasterAffiliateByName(self, name):
1482
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1483
    args = getMasterAffiliateByName_args()
1484
    args.name = name
1485
    args.write(self._oprot)
1486
    self._oprot.writeMessageEnd()
1487
    self._oprot.trans.flush()
1488
 
1489
  def recv_getMasterAffiliateByName(self, ):
1490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1491
    if mtype == TMessageType.EXCEPTION:
1492
      x = TApplicationException()
1493
      x.read(self._iprot)
1494
      self._iprot.readMessageEnd()
1495
      raise x
1496
    result = getMasterAffiliateByName_result()
1497
    result.read(self._iprot)
1498
    self._iprot.readMessageEnd()
3431 rajveer 1499
    if result.success is not None:
1845 vikas 1500
      return result.success
3431 rajveer 1501
    if result.utx is not None:
1845 vikas 1502
      raise result.utx
1503
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1504
 
1859 vikas 1505
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1506
    """
1507
    Parameters:
1508
     - name
1509
     - url
1510
     - masterAffiliateId
1859 vikas 1511
     - addedOn
1845 vikas 1512
    """
1859 vikas 1513
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1514
    return self.recv_createAffiliate()
1515
 
1859 vikas 1516
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1517
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1518
    args = createAffiliate_args()
1519
    args.name = name
1520
    args.url = url
1521
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1522
    args.addedOn = addedOn
1845 vikas 1523
    args.write(self._oprot)
1524
    self._oprot.writeMessageEnd()
1525
    self._oprot.trans.flush()
1526
 
1527
  def recv_createAffiliate(self, ):
1528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1529
    if mtype == TMessageType.EXCEPTION:
1530
      x = TApplicationException()
1531
      x.read(self._iprot)
1532
      self._iprot.readMessageEnd()
1533
      raise x
1534
    result = createAffiliate_result()
1535
    result.read(self._iprot)
1536
    self._iprot.readMessageEnd()
3431 rajveer 1537
    if result.success is not None:
1845 vikas 1538
      return result.success
3431 rajveer 1539
    if result.utx is not None:
1845 vikas 1540
      raise result.utx
1541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1542
 
1543
  def getAffiliateById(self, id):
1544
    """
1545
    Parameters:
1546
     - id
1547
    """
1548
    self.send_getAffiliateById(id)
1549
    return self.recv_getAffiliateById()
1550
 
1551
  def send_getAffiliateById(self, id):
1552
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1553
    args = getAffiliateById_args()
1554
    args.id = id
1555
    args.write(self._oprot)
1556
    self._oprot.writeMessageEnd()
1557
    self._oprot.trans.flush()
1558
 
1559
  def recv_getAffiliateById(self, ):
1560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1561
    if mtype == TMessageType.EXCEPTION:
1562
      x = TApplicationException()
1563
      x.read(self._iprot)
1564
      self._iprot.readMessageEnd()
1565
      raise x
1566
    result = getAffiliateById_result()
1567
    result.read(self._iprot)
1568
    self._iprot.readMessageEnd()
3431 rajveer 1569
    if result.success is not None:
1845 vikas 1570
      return result.success
3431 rajveer 1571
    if result.utx is not None:
1845 vikas 1572
      raise result.utx
1573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1574
 
1575
  def getAffiliateByName(self, name):
1576
    """
1577
    Parameters:
1578
     - name
1579
    """
1580
    self.send_getAffiliateByName(name)
1581
    return self.recv_getAffiliateByName()
1582
 
1583
  def send_getAffiliateByName(self, name):
1584
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1585
    args = getAffiliateByName_args()
1586
    args.name = name
1587
    args.write(self._oprot)
1588
    self._oprot.writeMessageEnd()
1589
    self._oprot.trans.flush()
1590
 
1591
  def recv_getAffiliateByName(self, ):
1592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1593
    if mtype == TMessageType.EXCEPTION:
1594
      x = TApplicationException()
1595
      x.read(self._iprot)
1596
      self._iprot.readMessageEnd()
1597
      raise x
1598
    result = getAffiliateByName_result()
1599
    result.read(self._iprot)
1600
    self._iprot.readMessageEnd()
3431 rajveer 1601
    if result.success is not None:
1845 vikas 1602
      return result.success
3431 rajveer 1603
    if result.utx is not None:
1845 vikas 1604
      raise result.utx
1605
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1606
 
1996 vikas 1607
  def getTrackerById(self, id):
1845 vikas 1608
    """
1609
    Parameters:
1610
     - id
1611
    """
1996 vikas 1612
    self.send_getTrackerById(id)
1845 vikas 1613
    return self.recv_getTrackerById()
1614
 
1996 vikas 1615
  def send_getTrackerById(self, id):
1845 vikas 1616
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1617
    args = getTrackerById_args()
1996 vikas 1618
    args.id = id
1845 vikas 1619
    args.write(self._oprot)
1620
    self._oprot.writeMessageEnd()
1621
    self._oprot.trans.flush()
1622
 
1623
  def recv_getTrackerById(self, ):
1624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1625
    if mtype == TMessageType.EXCEPTION:
1626
      x = TApplicationException()
1627
      x.read(self._iprot)
1628
      self._iprot.readMessageEnd()
1629
      raise x
1630
    result = getTrackerById_result()
1631
    result.read(self._iprot)
1632
    self._iprot.readMessageEnd()
3431 rajveer 1633
    if result.success is not None:
1845 vikas 1634
      return result.success
3431 rajveer 1635
    if result.utx is not None:
1845 vikas 1636
      raise result.utx
1637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1638
 
1996 vikas 1639
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1640
    """
1641
    Parameters:
1996 vikas 1642
     - id
1845 vikas 1643
    """
1996 vikas 1644
    self.send_getAffiliatesByMasterAffiliate(id)
1645
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1646
 
1996 vikas 1647
  def send_getAffiliatesByMasterAffiliate(self, id):
1648
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1649
    args = getAffiliatesByMasterAffiliate_args()
1650
    args.id = id
1845 vikas 1651
    args.write(self._oprot)
1652
    self._oprot.writeMessageEnd()
1653
    self._oprot.trans.flush()
1654
 
1996 vikas 1655
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1657
    if mtype == TMessageType.EXCEPTION:
1658
      x = TApplicationException()
1659
      x.read(self._iprot)
1660
      self._iprot.readMessageEnd()
1661
      raise x
1996 vikas 1662
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1663
    result.read(self._iprot)
1664
    self._iprot.readMessageEnd()
3431 rajveer 1665
    if result.success is not None:
1845 vikas 1666
      return result.success
3431 rajveer 1667
    if result.utx is not None:
1845 vikas 1668
      raise result.utx
1996 vikas 1669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1670
 
1996 vikas 1671
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1672
    """
1673
    Parameters:
1996 vikas 1674
     - affiliateId
1845 vikas 1675
     - userId
1676
     - event
1677
     - url
1678
     - data
1859 vikas 1679
     - addedOn
1845 vikas 1680
    """
1996 vikas 1681
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1682
    return self.recv_addTrackLog()
1683
 
1996 vikas 1684
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1685
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1686
    args = addTrackLog_args()
1996 vikas 1687
    args.affiliateId = affiliateId
1845 vikas 1688
    args.userId = userId
1689
    args.event = event
1690
    args.url = url
1691
    args.data = data
1859 vikas 1692
    args.addedOn = addedOn
1845 vikas 1693
    args.write(self._oprot)
1694
    self._oprot.writeMessageEnd()
1695
    self._oprot.trans.flush()
1696
 
1697
  def recv_addTrackLog(self, ):
1698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1699
    if mtype == TMessageType.EXCEPTION:
1700
      x = TApplicationException()
1701
      x.read(self._iprot)
1702
      self._iprot.readMessageEnd()
1703
      raise x
1704
    result = addTrackLog_result()
1705
    result.read(self._iprot)
1706
    self._iprot.readMessageEnd()
3431 rajveer 1707
    if result.success is not None:
1845 vikas 1708
      return result.success
3431 rajveer 1709
    if result.utx is not None:
1845 vikas 1710
      raise result.utx
1711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1712
 
1713
  def getTrackLogById(self, id):
1714
    """
1715
    Parameters:
1716
     - id
1717
    """
1718
    self.send_getTrackLogById(id)
1719
    return self.recv_getTrackLogById()
1720
 
1721
  def send_getTrackLogById(self, id):
1722
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1723
    args = getTrackLogById_args()
1724
    args.id = id
1725
    args.write(self._oprot)
1726
    self._oprot.writeMessageEnd()
1727
    self._oprot.trans.flush()
1728
 
1729
  def recv_getTrackLogById(self, ):
1730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1731
    if mtype == TMessageType.EXCEPTION:
1732
      x = TApplicationException()
1733
      x.read(self._iprot)
1734
      self._iprot.readMessageEnd()
1735
      raise x
1736
    result = getTrackLogById_result()
1737
    result.read(self._iprot)
1738
    self._iprot.readMessageEnd()
3431 rajveer 1739
    if result.success is not None:
1845 vikas 1740
      return result.success
3431 rajveer 1741
    if result.utx is not None:
1845 vikas 1742
      raise result.utx
1743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1744
 
3293 vikas 1745
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1746
    """
1747
    Parameters:
1996 vikas 1748
     - affiliateId
3293 vikas 1749
     - startDate
1750
     - endDate
1845 vikas 1751
    """
3293 vikas 1752
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1753
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1754
 
3293 vikas 1755
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1756
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1757
    args = getTrackLogsByAffiliate_args()
1758
    args.affiliateId = affiliateId
3293 vikas 1759
    args.startDate = startDate
1760
    args.endDate = endDate
1845 vikas 1761
    args.write(self._oprot)
1762
    self._oprot.writeMessageEnd()
1763
    self._oprot.trans.flush()
1764
 
1996 vikas 1765
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1767
    if mtype == TMessageType.EXCEPTION:
1768
      x = TApplicationException()
1769
      x.read(self._iprot)
1770
      self._iprot.readMessageEnd()
1771
      raise x
1996 vikas 1772
    result = getTrackLogsByAffiliate_result()
1845 vikas 1773
    result.read(self._iprot)
1774
    self._iprot.readMessageEnd()
3431 rajveer 1775
    if result.success is not None:
1845 vikas 1776
      return result.success
3431 rajveer 1777
    if result.utx is not None:
1845 vikas 1778
      raise result.utx
1996 vikas 1779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1780
 
1781
  def getTrackLogsByUser(self, userId):
1782
    """
1783
    Parameters:
1784
     - userId
1785
    """
1786
    self.send_getTrackLogsByUser(userId)
1787
    return self.recv_getTrackLogsByUser()
1788
 
1789
  def send_getTrackLogsByUser(self, userId):
1790
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1791
    args = getTrackLogsByUser_args()
1792
    args.userId = userId
1793
    args.write(self._oprot)
1794
    self._oprot.writeMessageEnd()
1795
    self._oprot.trans.flush()
1796
 
1797
  def recv_getTrackLogsByUser(self, ):
1798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1799
    if mtype == TMessageType.EXCEPTION:
1800
      x = TApplicationException()
1801
      x.read(self._iprot)
1802
      self._iprot.readMessageEnd()
1803
      raise x
1804
    result = getTrackLogsByUser_result()
1805
    result.read(self._iprot)
1806
    self._iprot.readMessageEnd()
3431 rajveer 1807
    if result.success is not None:
1845 vikas 1808
      return result.success
3431 rajveer 1809
    if result.utx is not None:
1845 vikas 1810
      raise result.utx
1811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1812
 
1996 vikas 1813
  def getTrackLogs(self, userId, event, url):
1845 vikas 1814
    """
1815
    Parameters:
1816
     - userId
1817
     - event
1818
     - url
1819
    """
1996 vikas 1820
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1821
    return self.recv_getTrackLogs()
1822
 
1996 vikas 1823
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1824
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1825
    args = getTrackLogs_args()
1826
    args.userId = userId
1827
    args.event = event
1828
    args.url = url
1829
    args.write(self._oprot)
1830
    self._oprot.writeMessageEnd()
1831
    self._oprot.trans.flush()
1832
 
1833
  def recv_getTrackLogs(self, ):
1834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1835
    if mtype == TMessageType.EXCEPTION:
1836
      x = TApplicationException()
1837
      x.read(self._iprot)
1838
      self._iprot.readMessageEnd()
1839
      raise x
1840
    result = getTrackLogs_result()
1841
    result.read(self._iprot)
1842
    self._iprot.readMessageEnd()
3431 rajveer 1843
    if result.success is not None:
1845 vikas 1844
      return result.success
3431 rajveer 1845
    if result.utx is not None:
1845 vikas 1846
      raise result.utx
1847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1848
 
559 chandransh 1849
  def getCurrentCart(self, userId):
94 ashish 1850
    """
1851
    Parameters:
559 chandransh 1852
     - userId
94 ashish 1853
    """
559 chandransh 1854
    self.send_getCurrentCart(userId)
1855
    return self.recv_getCurrentCart()
94 ashish 1856
 
559 chandransh 1857
  def send_getCurrentCart(self, userId):
1858
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1859
    args = getCurrentCart_args()
1860
    args.userId = userId
94 ashish 1861
    args.write(self._oprot)
1862
    self._oprot.writeMessageEnd()
1863
    self._oprot.trans.flush()
1864
 
559 chandransh 1865
  def recv_getCurrentCart(self, ):
94 ashish 1866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1867
    if mtype == TMessageType.EXCEPTION:
1868
      x = TApplicationException()
1869
      x.read(self._iprot)
1870
      self._iprot.readMessageEnd()
1871
      raise x
559 chandransh 1872
    result = getCurrentCart_result()
94 ashish 1873
    result.read(self._iprot)
1874
    self._iprot.readMessageEnd()
3431 rajveer 1875
    if result.success is not None:
94 ashish 1876
      return result.success
3431 rajveer 1877
    if result.scx is not None:
559 chandransh 1878
      raise result.scx
1879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1880
 
559 chandransh 1881
  def getCart(self, cartId):
94 ashish 1882
    """
1883
    Parameters:
559 chandransh 1884
     - cartId
94 ashish 1885
    """
559 chandransh 1886
    self.send_getCart(cartId)
1887
    return self.recv_getCart()
94 ashish 1888
 
559 chandransh 1889
  def send_getCart(self, cartId):
1890
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1891
    args = getCart_args()
1892
    args.cartId = cartId
94 ashish 1893
    args.write(self._oprot)
1894
    self._oprot.writeMessageEnd()
1895
    self._oprot.trans.flush()
1896
 
559 chandransh 1897
  def recv_getCart(self, ):
94 ashish 1898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1899
    if mtype == TMessageType.EXCEPTION:
1900
      x = TApplicationException()
1901
      x.read(self._iprot)
1902
      self._iprot.readMessageEnd()
1903
      raise x
559 chandransh 1904
    result = getCart_result()
94 ashish 1905
    result.read(self._iprot)
1906
    self._iprot.readMessageEnd()
3431 rajveer 1907
    if result.success is not None:
94 ashish 1908
      return result.success
3431 rajveer 1909
    if result.scx is not None:
559 chandransh 1910
      raise result.scx
1911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1912
 
559 chandransh 1913
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1914
    """
1915
    Parameters:
559 chandransh 1916
     - from_time
1917
     - to_time
1918
     - status
94 ashish 1919
    """
559 chandransh 1920
    self.send_getCartsByTime(from_time, to_time, status)
1921
    return self.recv_getCartsByTime()
94 ashish 1922
 
559 chandransh 1923
  def send_getCartsByTime(self, from_time, to_time, status):
1924
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1925
    args = getCartsByTime_args()
1926
    args.from_time = from_time
1927
    args.to_time = to_time
1928
    args.status = status
94 ashish 1929
    args.write(self._oprot)
1930
    self._oprot.writeMessageEnd()
1931
    self._oprot.trans.flush()
1932
 
559 chandransh 1933
  def recv_getCartsByTime(self, ):
94 ashish 1934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1935
    if mtype == TMessageType.EXCEPTION:
1936
      x = TApplicationException()
1937
      x.read(self._iprot)
1938
      self._iprot.readMessageEnd()
1939
      raise x
559 chandransh 1940
    result = getCartsByTime_result()
94 ashish 1941
    result.read(self._iprot)
1942
    self._iprot.readMessageEnd()
3431 rajveer 1943
    if result.success is not None:
94 ashish 1944
      return result.success
3431 rajveer 1945
    if result.scx is not None:
559 chandransh 1946
      raise result.scx
1947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 1948
 
3557 rajveer 1949
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 1950
    """
1951
    Parameters:
1952
     - cartId
1953
     - itemId
1954
     - quantity
3557 rajveer 1955
     - sourceId
559 chandransh 1956
    """
3557 rajveer 1957
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 1958
    return self.recv_addItemToCart()
559 chandransh 1959
 
3557 rajveer 1960
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 1961
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
1962
    args = addItemToCart_args()
1963
    args.cartId = cartId
1964
    args.itemId = itemId
1965
    args.quantity = quantity
3557 rajveer 1966
    args.sourceId = sourceId
559 chandransh 1967
    args.write(self._oprot)
1968
    self._oprot.writeMessageEnd()
1969
    self._oprot.trans.flush()
1970
 
1971
  def recv_addItemToCart(self, ):
1972
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1973
    if mtype == TMessageType.EXCEPTION:
1974
      x = TApplicationException()
1975
      x.read(self._iprot)
1976
      self._iprot.readMessageEnd()
1977
      raise x
1978
    result = addItemToCart_result()
1979
    result.read(self._iprot)
1980
    self._iprot.readMessageEnd()
3431 rajveer 1981
    if result.success is not None:
2035 rajveer 1982
      return result.success
3431 rajveer 1983
    if result.scx is not None:
559 chandransh 1984
      raise result.scx
2035 rajveer 1985
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 1986
 
1987
  def deleteItemFromCart(self, cartId, itemId):
1988
    """
1989
    Parameters:
1990
     - cartId
1991
     - itemId
1992
    """
1993
    self.send_deleteItemFromCart(cartId, itemId)
1994
    self.recv_deleteItemFromCart()
1995
 
1996
  def send_deleteItemFromCart(self, cartId, itemId):
1997
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
1998
    args = deleteItemFromCart_args()
1999
    args.cartId = cartId
2000
    args.itemId = itemId
2001
    args.write(self._oprot)
2002
    self._oprot.writeMessageEnd()
2003
    self._oprot.trans.flush()
2004
 
2005
  def recv_deleteItemFromCart(self, ):
2006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2007
    if mtype == TMessageType.EXCEPTION:
2008
      x = TApplicationException()
2009
      x.read(self._iprot)
2010
      self._iprot.readMessageEnd()
2011
      raise x
2012
    result = deleteItemFromCart_result()
2013
    result.read(self._iprot)
2014
    self._iprot.readMessageEnd()
3431 rajveer 2015
    if result.scx is not None:
559 chandransh 2016
      raise result.scx
2017
    return
2018
 
2019
  def addAddressToCart(self, cartId, addressId):
2020
    """
2021
    Parameters:
2022
     - cartId
2023
     - addressId
2024
    """
2025
    self.send_addAddressToCart(cartId, addressId)
2026
    self.recv_addAddressToCart()
2027
 
2028
  def send_addAddressToCart(self, cartId, addressId):
2029
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2030
    args = addAddressToCart_args()
2031
    args.cartId = cartId
2032
    args.addressId = addressId
2033
    args.write(self._oprot)
2034
    self._oprot.writeMessageEnd()
2035
    self._oprot.trans.flush()
2036
 
2037
  def recv_addAddressToCart(self, ):
2038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2039
    if mtype == TMessageType.EXCEPTION:
2040
      x = TApplicationException()
2041
      x.read(self._iprot)
2042
      self._iprot.readMessageEnd()
2043
      raise x
2044
    result = addAddressToCart_result()
2045
    result.read(self._iprot)
2046
    self._iprot.readMessageEnd()
3431 rajveer 2047
    if result.scx is not None:
575 chandransh 2048
      raise result.scx
559 chandransh 2049
    return
2050
 
1976 varun.gupt 2051
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2052
    """
2053
    Parameters:
2054
     - cartId
2055
     - couponCode
2056
     - totalPrice
2057
     - discountedPrice
2058
    """
2059
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2060
    self.recv_applyCouponToCart()
2061
 
2062
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2063
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2064
    args = applyCouponToCart_args()
2065
    args.cartId = cartId
2066
    args.couponCode = couponCode
2067
    args.totalPrice = totalPrice
2068
    args.discountedPrice = discountedPrice
2069
    args.write(self._oprot)
2070
    self._oprot.writeMessageEnd()
2071
    self._oprot.trans.flush()
2072
 
2073
  def recv_applyCouponToCart(self, ):
2074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2075
    if mtype == TMessageType.EXCEPTION:
2076
      x = TApplicationException()
2077
      x.read(self._iprot)
2078
      self._iprot.readMessageEnd()
2079
      raise x
2080
    result = applyCouponToCart_result()
2081
    result.read(self._iprot)
2082
    self._iprot.readMessageEnd()
3431 rajveer 2083
    if result.scx is not None:
1976 varun.gupt 2084
      raise result.scx
2085
    return
2086
 
2087
  def removeCoupon(self, cartId):
2088
    """
2089
    Parameters:
2090
     - cartId
2091
    """
2092
    self.send_removeCoupon(cartId)
2093
    self.recv_removeCoupon()
2094
 
2095
  def send_removeCoupon(self, cartId):
2096
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2097
    args = removeCoupon_args()
2098
    args.cartId = cartId
2099
    args.write(self._oprot)
2100
    self._oprot.writeMessageEnd()
2101
    self._oprot.trans.flush()
2102
 
2103
  def recv_removeCoupon(self, ):
2104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2105
    if mtype == TMessageType.EXCEPTION:
2106
      x = TApplicationException()
2107
      x.read(self._iprot)
2108
      self._iprot.readMessageEnd()
2109
      raise x
2110
    result = removeCoupon_result()
2111
    result.read(self._iprot)
2112
    self._iprot.readMessageEnd()
3431 rajveer 2113
    if result.scx is not None:
1976 varun.gupt 2114
      raise result.scx
2115
    return
2116
 
3554 varun.gupt 2117
  def deleteDiscountsFromCart(self, cartId):
2118
    """
2119
    Deletes all the discounts associated with the cart
2120
 
2121
    Parameters:
2122
     - cartId
2123
    """
2124
    self.send_deleteDiscountsFromCart(cartId)
2125
    self.recv_deleteDiscountsFromCart()
2126
 
2127
  def send_deleteDiscountsFromCart(self, cartId):
2128
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2129
    args = deleteDiscountsFromCart_args()
2130
    args.cartId = cartId
2131
    args.write(self._oprot)
2132
    self._oprot.writeMessageEnd()
2133
    self._oprot.trans.flush()
2134
 
2135
  def recv_deleteDiscountsFromCart(self, ):
2136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2137
    if mtype == TMessageType.EXCEPTION:
2138
      x = TApplicationException()
2139
      x.read(self._iprot)
2140
      self._iprot.readMessageEnd()
2141
      raise x
2142
    result = deleteDiscountsFromCart_result()
2143
    result.read(self._iprot)
2144
    self._iprot.readMessageEnd()
2145
    if result.scx is not None:
2146
      raise result.scx
2147
    return
2148
 
2149
  def saveDiscounts(self, discounts):
2150
    """
2151
    Accepts a list of thrift objects of Discount type and saves them
2152
 
2153
    Parameters:
2154
     - discounts
2155
    """
2156
    self.send_saveDiscounts(discounts)
2157
    self.recv_saveDiscounts()
2158
 
2159
  def send_saveDiscounts(self, discounts):
2160
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2161
    args = saveDiscounts_args()
2162
    args.discounts = discounts
2163
    args.write(self._oprot)
2164
    self._oprot.writeMessageEnd()
2165
    self._oprot.trans.flush()
2166
 
2167
  def recv_saveDiscounts(self, ):
2168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2169
    if mtype == TMessageType.EXCEPTION:
2170
      x = TApplicationException()
2171
      x.read(self._iprot)
2172
      self._iprot.readMessageEnd()
2173
      raise x
2174
    result = saveDiscounts_result()
2175
    result.read(self._iprot)
2176
    self._iprot.readMessageEnd()
2177
    if result.scx is not None:
2178
      raise result.scx
2179
    return
2180
 
5326 rajveer 2181
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2182
    """
690 chandransh 2183
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2184
 
559 chandransh 2185
    Parameters:
2186
     - cartId
2815 vikas 2187
     - sessionSource
2188
     - sessionStartTime
3858 vikas 2189
     - firstSource
2190
     - firstSourceTime
5326 rajveer 2191
     - userId
559 chandransh 2192
    """
5326 rajveer 2193
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2194
    return self.recv_createOrders()
559 chandransh 2195
 
5326 rajveer 2196
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2197
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2198
    args = createOrders_args()
559 chandransh 2199
    args.cartId = cartId
2815 vikas 2200
    args.sessionSource = sessionSource
2201
    args.sessionStartTime = sessionStartTime
3858 vikas 2202
    args.firstSource = firstSource
2203
    args.firstSourceTime = firstSourceTime
5326 rajveer 2204
    args.userId = userId
559 chandransh 2205
    args.write(self._oprot)
2206
    self._oprot.writeMessageEnd()
2207
    self._oprot.trans.flush()
2208
 
690 chandransh 2209
  def recv_createOrders(self, ):
559 chandransh 2210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2211
    if mtype == TMessageType.EXCEPTION:
2212
      x = TApplicationException()
2213
      x.read(self._iprot)
2214
      self._iprot.readMessageEnd()
2215
      raise x
690 chandransh 2216
    result = createOrders_result()
559 chandransh 2217
    result.read(self._iprot)
2218
    self._iprot.readMessageEnd()
3431 rajveer 2219
    if result.success is not None:
130 ashish 2220
      return result.success
3431 rajveer 2221
    if result.scx is not None:
559 chandransh 2222
      raise result.scx
690 chandransh 2223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2224
 
3557 rajveer 2225
  def validateCart(self, cartId, sourceId):
130 ashish 2226
    """
690 chandransh 2227
    Validates that:
2228
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2229
    2. All of the lines in the cart are active items.
690 chandransh 2230
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2231
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2232
 
130 ashish 2233
    Parameters:
559 chandransh 2234
     - cartId
3557 rajveer 2235
     - sourceId
130 ashish 2236
    """
3557 rajveer 2237
    self.send_validateCart(cartId, sourceId)
559 chandransh 2238
    return self.recv_validateCart()
130 ashish 2239
 
3557 rajveer 2240
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2241
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2242
    args = validateCart_args()
2243
    args.cartId = cartId
3557 rajveer 2244
    args.sourceId = sourceId
130 ashish 2245
    args.write(self._oprot)
2246
    self._oprot.writeMessageEnd()
2247
    self._oprot.trans.flush()
2248
 
559 chandransh 2249
  def recv_validateCart(self, ):
130 ashish 2250
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2251
    if mtype == TMessageType.EXCEPTION:
2252
      x = TApplicationException()
2253
      x.read(self._iprot)
2254
      self._iprot.readMessageEnd()
2255
      raise x
559 chandransh 2256
    result = validateCart_result()
130 ashish 2257
    result.read(self._iprot)
2258
    self._iprot.readMessageEnd()
3431 rajveer 2259
    if result.success is not None:
130 ashish 2260
      return result.success
3431 rajveer 2261
    if result.scex is not None:
575 chandransh 2262
      raise result.scex
559 chandransh 2263
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2264
 
690 chandransh 2265
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2266
    """
690 chandransh 2267
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2268
 
575 chandransh 2269
    Parameters:
690 chandransh 2270
     - fromCartId
2271
     - toCartId
2272
    """
2273
    self.send_mergeCart(fromCartId, toCartId)
2274
    self.recv_mergeCart()
2275
 
2276
  def send_mergeCart(self, fromCartId, toCartId):
2277
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2278
    args = mergeCart_args()
2279
    args.fromCartId = fromCartId
2280
    args.toCartId = toCartId
2281
    args.write(self._oprot)
2282
    self._oprot.writeMessageEnd()
2283
    self._oprot.trans.flush()
2284
 
2285
  def recv_mergeCart(self, ):
2286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2287
    if mtype == TMessageType.EXCEPTION:
2288
      x = TApplicationException()
2289
      x.read(self._iprot)
2290
      self._iprot.readMessageEnd()
2291
      raise x
2292
    result = mergeCart_result()
2293
    result.read(self._iprot)
2294
    self._iprot.readMessageEnd()
2295
    return
2296
 
2297
  def checkOut(self, cartId):
2298
    """
2299
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2300
 
690 chandransh 2301
    Parameters:
575 chandransh 2302
     - cartId
2303
    """
690 chandransh 2304
    self.send_checkOut(cartId)
2305
    return self.recv_checkOut()
575 chandransh 2306
 
690 chandransh 2307
  def send_checkOut(self, cartId):
2308
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2309
    args = checkOut_args()
575 chandransh 2310
    args.cartId = cartId
2311
    args.write(self._oprot)
2312
    self._oprot.writeMessageEnd()
2313
    self._oprot.trans.flush()
2314
 
690 chandransh 2315
  def recv_checkOut(self, ):
575 chandransh 2316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2317
    if mtype == TMessageType.EXCEPTION:
2318
      x = TApplicationException()
2319
      x.read(self._iprot)
2320
      self._iprot.readMessageEnd()
2321
      raise x
690 chandransh 2322
    result = checkOut_result()
575 chandransh 2323
    result.read(self._iprot)
2324
    self._iprot.readMessageEnd()
3431 rajveer 2325
    if result.success is not None:
575 chandransh 2326
      return result.success
3431 rajveer 2327
    if result.scex is not None:
575 chandransh 2328
      raise result.scex
690 chandransh 2329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2330
 
690 chandransh 2331
  def resetCart(self, cartId, items):
559 chandransh 2332
    """
690 chandransh 2333
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2334
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2335
 
559 chandransh 2336
    Parameters:
690 chandransh 2337
     - cartId
2338
     - items
559 chandransh 2339
    """
690 chandransh 2340
    self.send_resetCart(cartId, items)
2341
    return self.recv_resetCart()
130 ashish 2342
 
690 chandransh 2343
  def send_resetCart(self, cartId, items):
2344
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2345
    args = resetCart_args()
2346
    args.cartId = cartId
2347
    args.items = items
559 chandransh 2348
    args.write(self._oprot)
2349
    self._oprot.writeMessageEnd()
2350
    self._oprot.trans.flush()
2351
 
690 chandransh 2352
  def recv_resetCart(self, ):
559 chandransh 2353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2354
    if mtype == TMessageType.EXCEPTION:
2355
      x = TApplicationException()
2356
      x.read(self._iprot)
2357
      self._iprot.readMessageEnd()
2358
      raise x
690 chandransh 2359
    result = resetCart_result()
559 chandransh 2360
    result.read(self._iprot)
2361
    self._iprot.readMessageEnd()
3431 rajveer 2362
    if result.success is not None:
690 chandransh 2363
      return result.success
3431 rajveer 2364
    if result.scex is not None:
690 chandransh 2365
      raise result.scex
2366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2367
 
2981 rajveer 2368
  def getUserCount(self, userType):
559 chandransh 2369
    """
2981 rajveer 2370
    Returns number of registered users.
2371
    If userType = null, then it returns count of all users, including anonymous
2372
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2373
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2374
 
559 chandransh 2375
    Parameters:
2981 rajveer 2376
     - userType
559 chandransh 2377
    """
2981 rajveer 2378
    self.send_getUserCount(userType)
2379
    return self.recv_getUserCount()
559 chandransh 2380
 
2981 rajveer 2381
  def send_getUserCount(self, userType):
2382
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2383
    args = getUserCount_args()
2384
    args.userType = userType
559 chandransh 2385
    args.write(self._oprot)
2386
    self._oprot.writeMessageEnd()
2387
    self._oprot.trans.flush()
2388
 
2981 rajveer 2389
  def recv_getUserCount(self, ):
559 chandransh 2390
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2391
    if mtype == TMessageType.EXCEPTION:
2392
      x = TApplicationException()
2393
      x.read(self._iprot)
2394
      self._iprot.readMessageEnd()
2395
      raise x
2981 rajveer 2396
    result = getUserCount_result()
559 chandransh 2397
    result.read(self._iprot)
2398
    self._iprot.readMessageEnd()
3431 rajveer 2399
    if result.success is not None:
559 chandransh 2400
      return result.success
2981 rajveer 2401
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2402
 
2981 rajveer 2403
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2404
    """
2981 rajveer 2405
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2406
    If any of startDate or endDate is -1, then that filter is ignored.
2407
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2408
 
2409
 
559 chandransh 2410
    Parameters:
2981 rajveer 2411
     - userType
2412
     - startDate
2413
     - endDate
559 chandransh 2414
    """
2981 rajveer 2415
    self.send_getAllUsers(userType, startDate, endDate)
2416
    return self.recv_getAllUsers()
559 chandransh 2417
 
2981 rajveer 2418
  def send_getAllUsers(self, userType, startDate, endDate):
2419
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2420
    args = getAllUsers_args()
2421
    args.userType = userType
2422
    args.startDate = startDate
2423
    args.endDate = endDate
559 chandransh 2424
    args.write(self._oprot)
2425
    self._oprot.writeMessageEnd()
2426
    self._oprot.trans.flush()
2427
 
2981 rajveer 2428
  def recv_getAllUsers(self, ):
559 chandransh 2429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2430
    if mtype == TMessageType.EXCEPTION:
2431
      x = TApplicationException()
2432
      x.read(self._iprot)
2433
      self._iprot.readMessageEnd()
2434
      raise x
2981 rajveer 2435
    result = getAllUsers_result()
559 chandransh 2436
    result.read(self._iprot)
2437
    self._iprot.readMessageEnd()
3431 rajveer 2438
    if result.success is not None:
559 chandransh 2439
      return result.success
2981 rajveer 2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2441
 
2981 rajveer 2442
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2443
    """
2444
    Parameters:
2981 rajveer 2445
     - user_id
2446
     - entity_id
2447
     - slide
2448
     - note
559 chandransh 2449
    """
2981 rajveer 2450
    self.send_putUserNote(user_id, entity_id, slide, note)
2451
    self.recv_putUserNote()
559 chandransh 2452
 
2981 rajveer 2453
  def send_putUserNote(self, user_id, entity_id, slide, note):
2454
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2455
    args = putUserNote_args()
2456
    args.user_id = user_id
2457
    args.entity_id = entity_id
2458
    args.slide = slide
2459
    args.note = note
559 chandransh 2460
    args.write(self._oprot)
2461
    self._oprot.writeMessageEnd()
2462
    self._oprot.trans.flush()
2463
 
2981 rajveer 2464
  def recv_putUserNote(self, ):
559 chandransh 2465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2466
    if mtype == TMessageType.EXCEPTION:
2467
      x = TApplicationException()
2468
      x.read(self._iprot)
2469
      self._iprot.readMessageEnd()
2470
      raise x
2981 rajveer 2471
    result = putUserNote_result()
559 chandransh 2472
    result.read(self._iprot)
2473
    self._iprot.readMessageEnd()
2474
    return
2475
 
2981 rajveer 2476
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2477
    """
2478
    Parameters:
2981 rajveer 2479
     - user_id
2480
     - entity_id
559 chandransh 2481
    """
2981 rajveer 2482
    self.send_getUserNotes(user_id, entity_id)
2483
    return self.recv_getUserNotes()
559 chandransh 2484
 
2981 rajveer 2485
  def send_getUserNotes(self, user_id, entity_id):
2486
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2487
    args = getUserNotes_args()
2488
    args.user_id = user_id
2489
    args.entity_id = entity_id
559 chandransh 2490
    args.write(self._oprot)
2491
    self._oprot.writeMessageEnd()
2492
    self._oprot.trans.flush()
2493
 
2981 rajveer 2494
  def recv_getUserNotes(self, ):
559 chandransh 2495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2496
    if mtype == TMessageType.EXCEPTION:
2497
      x = TApplicationException()
2498
      x.read(self._iprot)
2499
      self._iprot.readMessageEnd()
2500
      raise x
2981 rajveer 2501
    result = getUserNotes_result()
559 chandransh 2502
    result.read(self._iprot)
2503
    self._iprot.readMessageEnd()
3431 rajveer 2504
    if result.success is not None:
2981 rajveer 2505
      return result.success
2506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2507
 
2981 rajveer 2508
  def getMyResearchItems(self, userId):
559 chandransh 2509
    """
2981 rajveer 2510
    Returns list of item ids in myresearch for the user
3431 rajveer 2511
 
559 chandransh 2512
    Parameters:
772 rajveer 2513
     - userId
559 chandransh 2514
    """
2981 rajveer 2515
    self.send_getMyResearchItems(userId)
2516
    return self.recv_getMyResearchItems()
559 chandransh 2517
 
2981 rajveer 2518
  def send_getMyResearchItems(self, userId):
2519
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2520
    args = getMyResearchItems_args()
772 rajveer 2521
    args.userId = userId
559 chandransh 2522
    args.write(self._oprot)
2523
    self._oprot.writeMessageEnd()
2524
    self._oprot.trans.flush()
2525
 
2981 rajveer 2526
  def recv_getMyResearchItems(self, ):
559 chandransh 2527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2528
    if mtype == TMessageType.EXCEPTION:
2529
      x = TApplicationException()
2530
      x.read(self._iprot)
2531
      self._iprot.readMessageEnd()
2532
      raise x
2981 rajveer 2533
    result = getMyResearchItems_result()
559 chandransh 2534
    result.read(self._iprot)
2535
    self._iprot.readMessageEnd()
3431 rajveer 2536
    if result.success is not None:
559 chandransh 2537
      return result.success
3431 rajveer 2538
    if result.scx is not None:
559 chandransh 2539
      raise result.scx
2981 rajveer 2540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2541
 
2981 rajveer 2542
  def updateMyResearch(self, userId, itemId):
559 chandransh 2543
    """
2981 rajveer 2544
    add item to my research for a user
3431 rajveer 2545
 
559 chandransh 2546
    Parameters:
2981 rajveer 2547
     - userId
2548
     - itemId
559 chandransh 2549
    """
2981 rajveer 2550
    self.send_updateMyResearch(userId, itemId)
2551
    return self.recv_updateMyResearch()
559 chandransh 2552
 
2981 rajveer 2553
  def send_updateMyResearch(self, userId, itemId):
2554
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2555
    args = updateMyResearch_args()
2556
    args.userId = userId
2557
    args.itemId = itemId
559 chandransh 2558
    args.write(self._oprot)
2559
    self._oprot.writeMessageEnd()
2560
    self._oprot.trans.flush()
2561
 
2981 rajveer 2562
  def recv_updateMyResearch(self, ):
559 chandransh 2563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2564
    if mtype == TMessageType.EXCEPTION:
2565
      x = TApplicationException()
2566
      x.read(self._iprot)
2567
      self._iprot.readMessageEnd()
2568
      raise x
2981 rajveer 2569
    result = updateMyResearch_result()
559 chandransh 2570
    result.read(self._iprot)
2571
    self._iprot.readMessageEnd()
3431 rajveer 2572
    if result.success is not None:
2981 rajveer 2573
      return result.success
3431 rajveer 2574
    if result.scx is not None:
2981 rajveer 2575
      raise result.scx
2576
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2577
 
2981 rajveer 2578
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2579
    """
2981 rajveer 2580
    delete item from my research for a user
3431 rajveer 2581
 
1596 ankur.sing 2582
    Parameters:
2981 rajveer 2583
     - userId
2584
     - itemId
1596 ankur.sing 2585
    """
2981 rajveer 2586
    self.send_deleteItemFromMyResearch(userId, itemId)
2587
    self.recv_deleteItemFromMyResearch()
559 chandransh 2588
 
2981 rajveer 2589
  def send_deleteItemFromMyResearch(self, userId, itemId):
2590
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2591
    args = deleteItemFromMyResearch_args()
2592
    args.userId = userId
2593
    args.itemId = itemId
1596 ankur.sing 2594
    args.write(self._oprot)
2595
    self._oprot.writeMessageEnd()
2596
    self._oprot.trans.flush()
2597
 
2981 rajveer 2598
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2600
    if mtype == TMessageType.EXCEPTION:
2601
      x = TApplicationException()
2602
      x.read(self._iprot)
2603
      self._iprot.readMessageEnd()
2604
      raise x
2981 rajveer 2605
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2606
    result.read(self._iprot)
2607
    self._iprot.readMessageEnd()
3431 rajveer 2608
    if result.scx is not None:
2981 rajveer 2609
      raise result.scx
2610
    return
1596 ankur.sing 2611
 
2981 rajveer 2612
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2613
    """
2981 rajveer 2614
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2615
 
1673 ankur.sing 2616
    Parameters:
2981 rajveer 2617
     - userId
1673 ankur.sing 2618
    """
2981 rajveer 2619
    self.send_getBrowseHistoryItems(userId)
2620
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2621
 
2981 rajveer 2622
  def send_getBrowseHistoryItems(self, userId):
2623
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2624
    args = getBrowseHistoryItems_args()
2625
    args.userId = userId
1673 ankur.sing 2626
    args.write(self._oprot)
2627
    self._oprot.writeMessageEnd()
2628
    self._oprot.trans.flush()
2629
 
2981 rajveer 2630
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2632
    if mtype == TMessageType.EXCEPTION:
2633
      x = TApplicationException()
2634
      x.read(self._iprot)
2635
      self._iprot.readMessageEnd()
2636
      raise x
2981 rajveer 2637
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2638
    result.read(self._iprot)
2639
    self._iprot.readMessageEnd()
3431 rajveer 2640
    if result.success is not None:
1673 ankur.sing 2641
      return result.success
3431 rajveer 2642
    if result.scx is not None:
2981 rajveer 2643
      raise result.scx
2644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2645
 
2981 rajveer 2646
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2647
    """
2981 rajveer 2648
    add item to browse history for a user
3431 rajveer 2649
 
2642 varun.gupt 2650
    Parameters:
2981 rajveer 2651
     - userId
2652
     - itemId
2642 varun.gupt 2653
    """
2981 rajveer 2654
    self.send_updateBrowseHistory(userId, itemId)
2655
    self.recv_updateBrowseHistory()
1673 ankur.sing 2656
 
2981 rajveer 2657
  def send_updateBrowseHistory(self, userId, itemId):
2658
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2659
    args = updateBrowseHistory_args()
2660
    args.userId = userId
2661
    args.itemId = itemId
2642 varun.gupt 2662
    args.write(self._oprot)
2663
    self._oprot.writeMessageEnd()
2664
    self._oprot.trans.flush()
2665
 
2981 rajveer 2666
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2667
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2668
    if mtype == TMessageType.EXCEPTION:
2669
      x = TApplicationException()
2670
      x.read(self._iprot)
2671
      self._iprot.readMessageEnd()
2672
      raise x
2981 rajveer 2673
    result = updateBrowseHistory_result()
2642 varun.gupt 2674
    result.read(self._iprot)
2675
    self._iprot.readMessageEnd()
2676
    return
2677
 
3385 varun.gupt 2678
  def getCartsWithCouponCount(self, couponCode):
2679
    """
2680
    Returns count of Carts with given coupon applied
3431 rajveer 2681
 
3385 varun.gupt 2682
    Parameters:
2683
     - couponCode
2684
    """
2685
    self.send_getCartsWithCouponCount(couponCode)
2686
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2687
 
3385 varun.gupt 2688
  def send_getCartsWithCouponCount(self, couponCode):
2689
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2690
    args = getCartsWithCouponCount_args()
2691
    args.couponCode = couponCode
2692
    args.write(self._oprot)
2693
    self._oprot.writeMessageEnd()
2694
    self._oprot.trans.flush()
2695
 
2696
  def recv_getCartsWithCouponCount(self, ):
2697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2698
    if mtype == TMessageType.EXCEPTION:
2699
      x = TApplicationException()
2700
      x.read(self._iprot)
2701
      self._iprot.readMessageEnd()
2702
      raise x
2703
    result = getCartsWithCouponCount_result()
2704
    result.read(self._iprot)
2705
    self._iprot.readMessageEnd()
3431 rajveer 2706
    if result.success is not None:
3385 varun.gupt 2707
      return result.success
2708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2709
 
3499 mandeep.dh 2710
  def increaseTrustLevel(self, userId, trustLevelDelta):
2711
    """
2712
    Updates COD trust level of a user
3385 varun.gupt 2713
 
3499 mandeep.dh 2714
    Parameters:
2715
     - userId
2716
     - trustLevelDelta
2717
    """
2718
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2719
 
2720
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2721
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2722
    args = increaseTrustLevel_args()
2723
    args.userId = userId
2724
    args.trustLevelDelta = trustLevelDelta
2725
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
4668 varun.gupt 2728
  def showCODOption(self, cartId, sourceId, pincode):
2729
    """
2730
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2731
 
4668 varun.gupt 2732
    Parameters:
2733
     - cartId
2734
     - sourceId
2735
     - pincode
2736
    """
2737
    self.send_showCODOption(cartId, sourceId, pincode)
2738
    return self.recv_showCODOption()
2739
 
2740
  def send_showCODOption(self, cartId, sourceId, pincode):
2741
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2742
    args = showCODOption_args()
2743
    args.cartId = cartId
2744
    args.sourceId = sourceId
2745
    args.pincode = pincode
2746
    args.write(self._oprot)
2747
    self._oprot.writeMessageEnd()
2748
    self._oprot.trans.flush()
2749
 
2750
  def recv_showCODOption(self, ):
2751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2752
    if mtype == TMessageType.EXCEPTION:
2753
      x = TApplicationException()
2754
      x.read(self._iprot)
2755
      self._iprot.readMessageEnd()
2756
      raise x
2757
    result = showCODOption_result()
2758
    result.read(self._iprot)
2759
    self._iprot.readMessageEnd()
2760
    if result.success is not None:
2761
      return result.success
2762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2763
 
2764
 
3376 rajveer 2765
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2766
  def __init__(self, handler):
3376 rajveer 2767
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2768
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2769
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2770
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2771
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2772
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2773
    self._processMap["createUser"] = Processor.process_createUser
2774
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2775
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2776
    self._processMap["userExists"] = Processor.process_userExists
2777
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2778
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2779
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2780
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2781
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2782
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2783
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2784
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2785
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2786
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2787
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2788
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2789
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2790
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2791
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2792
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2793
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2794
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2795
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2796
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2797
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2798
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2799
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2800
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2801
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2802
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2803
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2804
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2805
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2806
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2807
    self._processMap["getCart"] = Processor.process_getCart
2808
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2809
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2810
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2811
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2812
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2813
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2814
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2815
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2816
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2817
    self._processMap["validateCart"] = Processor.process_validateCart
2818
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2819
    self._processMap["checkOut"] = Processor.process_checkOut
2820
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2821
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2822
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2823
    self._processMap["putUserNote"] = Processor.process_putUserNote
2824
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2825
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2826
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2827
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2828
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2829
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2830
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2831
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
4668 varun.gupt 2832
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 2833
 
2834
  def process(self, iprot, oprot):
2835
    (name, type, seqid) = iprot.readMessageBegin()
2836
    if name not in self._processMap:
2837
      iprot.skip(TType.STRUCT)
2838
      iprot.readMessageEnd()
2839
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2840
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2841
      x.write(oprot)
2842
      oprot.writeMessageEnd()
2843
      oprot.trans.flush()
2844
      return
2845
    else:
2846
      self._processMap[name](self, seqid, iprot, oprot)
2847
    return True
2848
 
559 chandransh 2849
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2850
    args = createAnonymousUser_args()
94 ashish 2851
    args.read(iprot)
2852
    iprot.readMessageEnd()
559 chandransh 2853
    result = createAnonymousUser_result()
94 ashish 2854
    try:
559 chandransh 2855
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2856
    except UserContextException, ucex:
2857
      result.ucex = ucex
2858
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2859
    result.write(oprot)
2860
    oprot.writeMessageEnd()
2861
    oprot.trans.flush()
2862
 
559 chandransh 2863
  def process_getUserById(self, seqid, iprot, oprot):
2864
    args = getUserById_args()
94 ashish 2865
    args.read(iprot)
2866
    iprot.readMessageEnd()
559 chandransh 2867
    result = getUserById_result()
94 ashish 2868
    try:
559 chandransh 2869
      result.success = self._handler.getUserById(args.userId)
2870
    except UserContextException, ucex:
2871
      result.ucex = ucex
2872
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2873
    result.write(oprot)
2874
    oprot.writeMessageEnd()
2875
    oprot.trans.flush()
2876
 
5326 rajveer 2877
  def process_getUserByCartId(self, seqid, iprot, oprot):
2878
    args = getUserByCartId_args()
2879
    args.read(iprot)
2880
    iprot.readMessageEnd()
2881
    result = getUserByCartId_result()
2882
    try:
2883
      result.success = self._handler.getUserByCartId(args.cartId)
2884
    except UserContextException, ucex:
2885
      result.ucex = ucex
2886
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
2887
    result.write(oprot)
2888
    oprot.writeMessageEnd()
2889
    oprot.trans.flush()
2890
 
1491 vikas 2891
  def process_getUserByEmail(self, seqid, iprot, oprot):
2892
    args = getUserByEmail_args()
2893
    args.read(iprot)
2894
    iprot.readMessageEnd()
2895
    result = getUserByEmail_result()
2896
    try:
2897
      result.success = self._handler.getUserByEmail(args.email)
2898
    except UserContextException, ucex:
2899
      result.ucex = ucex
2900
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
2901
    result.write(oprot)
2902
    oprot.writeMessageEnd()
2903
    oprot.trans.flush()
2904
 
3032 mandeep.dh 2905
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
2906
    args = getUserByMobileNumber_args()
2907
    args.read(iprot)
2908
    iprot.readMessageEnd()
2909
    result = getUserByMobileNumber_result()
2910
    try:
2911
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
2912
    except UserContextException, ucex:
2913
      result.ucex = ucex
2914
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
2915
    result.write(oprot)
2916
    oprot.writeMessageEnd()
2917
    oprot.trans.flush()
2918
 
559 chandransh 2919
  def process_createUser(self, seqid, iprot, oprot):
2920
    args = createUser_args()
94 ashish 2921
    args.read(iprot)
2922
    iprot.readMessageEnd()
559 chandransh 2923
    result = createUser_result()
94 ashish 2924
    try:
559 chandransh 2925
      result.success = self._handler.createUser(args.user)
2926
    except UserContextException, ucex:
2927
      result.ucex = ucex
2928
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 2929
    result.write(oprot)
2930
    oprot.writeMessageEnd()
2931
    oprot.trans.flush()
2932
 
559 chandransh 2933
  def process_updateUser(self, seqid, iprot, oprot):
2934
    args = updateUser_args()
94 ashish 2935
    args.read(iprot)
2936
    iprot.readMessageEnd()
559 chandransh 2937
    result = updateUser_result()
94 ashish 2938
    try:
559 chandransh 2939
      result.success = self._handler.updateUser(args.user)
2940
    except UserContextException, ucex:
2941
      result.ucex = ucex
2942
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 2943
    result.write(oprot)
2944
    oprot.writeMessageEnd()
2945
    oprot.trans.flush()
2946
 
122 ashish 2947
  def process_authenticateUser(self, seqid, iprot, oprot):
2948
    args = authenticateUser_args()
2949
    args.read(iprot)
2950
    iprot.readMessageEnd()
2951
    result = authenticateUser_result()
2952
    try:
559 chandransh 2953
      result.success = self._handler.authenticateUser(args.email, args.password)
2954
    except AuthenticationException, auex:
2955
      result.auex = auex
122 ashish 2956
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
2957
    result.write(oprot)
2958
    oprot.writeMessageEnd()
2959
    oprot.trans.flush()
2960
 
94 ashish 2961
  def process_userExists(self, seqid, iprot, oprot):
2962
    args = userExists_args()
2963
    args.read(iprot)
2964
    iprot.readMessageEnd()
2965
    result = userExists_result()
2966
    try:
2967
      result.success = self._handler.userExists(args.email)
2968
    except UserContextException, ucx:
2969
      result.ucx = ucx
2970
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
2971
    result.write(oprot)
2972
    oprot.writeMessageEnd()
2973
    oprot.trans.flush()
2974
 
2975
  def process_addAddressForUser(self, seqid, iprot, oprot):
2976
    args = addAddressForUser_args()
2977
    args.read(iprot)
2978
    iprot.readMessageEnd()
2979
    result = addAddressForUser_result()
2980
    try:
567 rajveer 2981
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 2982
    except UserContextException, ucx:
2983
      result.ucx = ucx
2984
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
2985
    result.write(oprot)
2986
    oprot.writeMessageEnd()
2987
    oprot.trans.flush()
2988
 
2989
  def process_removeAddressForUser(self, seqid, iprot, oprot):
2990
    args = removeAddressForUser_args()
2991
    args.read(iprot)
2992
    iprot.readMessageEnd()
2993
    result = removeAddressForUser_result()
2994
    try:
2995
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
2996
    except UserContextException, ucx:
2997
      result.ucx = ucx
2998
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
2999
    result.write(oprot)
3000
    oprot.writeMessageEnd()
3001
    oprot.trans.flush()
3002
 
3003
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3004
    args = setUserAsLoggedIn_args()
3005
    args.read(iprot)
3006
    iprot.readMessageEnd()
3007
    result = setUserAsLoggedIn_result()
3008
    try:
3009
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3010
    except UserContextException, ucx:
3011
      result.ucx = ucx
3012
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3013
    result.write(oprot)
3014
    oprot.writeMessageEnd()
3015
    oprot.trans.flush()
3016
 
3017
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3018
    args = setUserAsLoggedOut_args()
3019
    args.read(iprot)
3020
    iprot.readMessageEnd()
3021
    result = setUserAsLoggedOut_result()
3022
    try:
3023
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3024
    except UserContextException, ucx:
3025
      result.ucx = ucx
3026
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3027
    result.write(oprot)
3028
    oprot.writeMessageEnd()
3029
    oprot.trans.flush()
3030
 
504 rajveer 3031
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3032
    args = setDefaultAddress_args()
3033
    args.read(iprot)
3034
    iprot.readMessageEnd()
3035
    result = setDefaultAddress_result()
3036
    try:
3037
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3038
    except UserContextException, ucx:
3039
      result.ucx = ucx
3040
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3041
    result.write(oprot)
3042
    oprot.writeMessageEnd()
3043
    oprot.trans.flush()
3044
 
94 ashish 3045
  def process_updatePassword(self, seqid, iprot, oprot):
3046
    args = updatePassword_args()
3047
    args.read(iprot)
3048
    iprot.readMessageEnd()
3049
    result = updatePassword_result()
3050
    try:
594 rajveer 3051
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3052
    except UserContextException, ucx:
3053
      result.ucx = ucx
3054
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3055
    result.write(oprot)
3056
    oprot.writeMessageEnd()
3057
    oprot.trans.flush()
3058
 
581 rajveer 3059
  def process_forgotPassword(self, seqid, iprot, oprot):
3060
    args = forgotPassword_args()
3061
    args.read(iprot)
3062
    iprot.readMessageEnd()
3063
    result = forgotPassword_result()
3064
    try:
884 rajveer 3065
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3066
    except UserContextException, ucx:
3067
      result.ucx = ucx
3068
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3069
    result.write(oprot)
3070
    oprot.writeMessageEnd()
3071
    oprot.trans.flush()
3072
 
594 rajveer 3073
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3074
    args = getAllAddressesForUser_args()
3075
    args.read(iprot)
3076
    iprot.readMessageEnd()
3077
    result = getAllAddressesForUser_result()
3078
    try:
3079
      result.success = self._handler.getAllAddressesForUser(args.userId)
3080
    except UserContextException, ucx:
3081
      result.ucx = ucx
3082
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3083
    result.write(oprot)
3084
    oprot.writeMessageEnd()
3085
    oprot.trans.flush()
3086
 
1894 vikas 3087
  def process_getAddressById(self, seqid, iprot, oprot):
3088
    args = getAddressById_args()
3089
    args.read(iprot)
3090
    iprot.readMessageEnd()
3091
    result = getAddressById_result()
3092
    try:
3093
      result.success = self._handler.getAddressById(args.addressId)
3094
    except UserContextException, ucx:
3095
      result.ucx = ucx
3096
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3097
    result.write(oprot)
3098
    oprot.writeMessageEnd()
3099
    oprot.trans.flush()
3100
 
594 rajveer 3101
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3102
    args = getDefaultAddressId_args()
3103
    args.read(iprot)
3104
    iprot.readMessageEnd()
3105
    result = getDefaultAddressId_result()
3106
    try:
3107
      result.success = self._handler.getDefaultAddressId(args.userId)
3108
    except UserContextException, ucx:
3109
      result.ucx = ucx
3110
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3111
    result.write(oprot)
3112
    oprot.writeMessageEnd()
3113
    oprot.trans.flush()
3114
 
785 rajveer 3115
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3116
    args = getDefaultPincode_args()
3117
    args.read(iprot)
3118
    iprot.readMessageEnd()
3119
    result = getDefaultPincode_result()
3120
    try:
3121
      result.success = self._handler.getDefaultPincode(args.userId)
3122
    except UserContextException, ucx:
3123
      result.ucx = ucx
3124
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3125
    result.write(oprot)
3126
    oprot.writeMessageEnd()
3127
    oprot.trans.flush()
3128
 
1274 varun.gupt 3129
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3130
    args = saveUserCommunication_args()
3131
    args.read(iprot)
3132
    iprot.readMessageEnd()
3133
    result = saveUserCommunication_result()
3134
    try:
3135
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3136
    except UserCommunicationException, ucx:
3137
      result.ucx = ucx
3138
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3139
    result.write(oprot)
3140
    oprot.writeMessageEnd()
3141
    oprot.trans.flush()
3142
 
1590 varun.gupt 3143
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3144
    args = getUserCommunicationById_args()
3145
    args.read(iprot)
3146
    iprot.readMessageEnd()
3147
    result = getUserCommunicationById_result()
3148
    try:
3149
      result.success = self._handler.getUserCommunicationById(args.id)
3150
    except UserCommunicationException, ucx:
3151
      result.ucx = ucx
3152
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3153
    result.write(oprot)
3154
    oprot.writeMessageEnd()
3155
    oprot.trans.flush()
3156
 
3157
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3158
    args = getUserCommunicationByUser_args()
3159
    args.read(iprot)
3160
    iprot.readMessageEnd()
3161
    result = getUserCommunicationByUser_result()
3162
    try:
3163
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3164
    except UserCommunicationException, ucx:
3165
      result.ucx = ucx
3166
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3167
    result.write(oprot)
3168
    oprot.writeMessageEnd()
3169
    oprot.trans.flush()
3170
 
3171
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3172
    args = getAllUserCommunications_args()
3173
    args.read(iprot)
3174
    iprot.readMessageEnd()
3175
    result = getAllUserCommunications_result()
3176
    try:
3177
      result.success = self._handler.getAllUserCommunications()
3178
    except UserCommunicationException, ucx:
3179
      result.ucx = ucx
3180
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3181
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
3184
 
1845 vikas 3185
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3186
    args = createMasterAffiliate_args()
3187
    args.read(iprot)
3188
    iprot.readMessageEnd()
3189
    result = createMasterAffiliate_result()
3190
    try:
1859 vikas 3191
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3192
    except UserAffiliateException, utx:
1845 vikas 3193
      result.utx = utx
3194
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3195
    result.write(oprot)
3196
    oprot.writeMessageEnd()
3197
    oprot.trans.flush()
3198
 
1899 vikas 3199
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3200
    args = getAllMasterAffiliates_args()
3201
    args.read(iprot)
3202
    iprot.readMessageEnd()
3203
    result = getAllMasterAffiliates_result()
3204
    try:
3205
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3206
    except UserAffiliateException, utx:
1899 vikas 3207
      result.utx = utx
3208
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3209
    result.write(oprot)
3210
    oprot.writeMessageEnd()
3211
    oprot.trans.flush()
3212
 
1845 vikas 3213
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3214
    args = getMasterAffiliateById_args()
3215
    args.read(iprot)
3216
    iprot.readMessageEnd()
3217
    result = getMasterAffiliateById_result()
3218
    try:
3219
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3220
    except UserAffiliateException, utx:
1845 vikas 3221
      result.utx = utx
3222
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3223
    result.write(oprot)
3224
    oprot.writeMessageEnd()
3225
    oprot.trans.flush()
3226
 
3227
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3228
    args = getMasterAffiliateByName_args()
3229
    args.read(iprot)
3230
    iprot.readMessageEnd()
3231
    result = getMasterAffiliateByName_result()
3232
    try:
3233
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3234
    except UserAffiliateException, utx:
1845 vikas 3235
      result.utx = utx
3236
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3237
    result.write(oprot)
3238
    oprot.writeMessageEnd()
3239
    oprot.trans.flush()
3240
 
3241
  def process_createAffiliate(self, seqid, iprot, oprot):
3242
    args = createAffiliate_args()
3243
    args.read(iprot)
3244
    iprot.readMessageEnd()
3245
    result = createAffiliate_result()
3246
    try:
1859 vikas 3247
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3248
    except UserAffiliateException, utx:
1845 vikas 3249
      result.utx = utx
3250
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3251
    result.write(oprot)
3252
    oprot.writeMessageEnd()
3253
    oprot.trans.flush()
3254
 
3255
  def process_getAffiliateById(self, seqid, iprot, oprot):
3256
    args = getAffiliateById_args()
3257
    args.read(iprot)
3258
    iprot.readMessageEnd()
3259
    result = getAffiliateById_result()
3260
    try:
3261
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3262
    except UserAffiliateException, utx:
1845 vikas 3263
      result.utx = utx
3264
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3265
    result.write(oprot)
3266
    oprot.writeMessageEnd()
3267
    oprot.trans.flush()
3268
 
3269
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3270
    args = getAffiliateByName_args()
3271
    args.read(iprot)
3272
    iprot.readMessageEnd()
3273
    result = getAffiliateByName_result()
3274
    try:
3275
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3276
    except UserAffiliateException, utx:
1845 vikas 3277
      result.utx = utx
3278
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3279
    result.write(oprot)
3280
    oprot.writeMessageEnd()
3281
    oprot.trans.flush()
3282
 
3283
  def process_getTrackerById(self, seqid, iprot, oprot):
3284
    args = getTrackerById_args()
3285
    args.read(iprot)
3286
    iprot.readMessageEnd()
3287
    result = getTrackerById_result()
3288
    try:
1996 vikas 3289
      result.success = self._handler.getTrackerById(args.id)
3290
    except UserAffiliateException, utx:
1845 vikas 3291
      result.utx = utx
3292
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3293
    result.write(oprot)
3294
    oprot.writeMessageEnd()
3295
    oprot.trans.flush()
3296
 
1996 vikas 3297
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3298
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3299
    args.read(iprot)
3300
    iprot.readMessageEnd()
1996 vikas 3301
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3302
    try:
1996 vikas 3303
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3304
    except UserAffiliateException, utx:
1845 vikas 3305
      result.utx = utx
1996 vikas 3306
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3307
    result.write(oprot)
3308
    oprot.writeMessageEnd()
3309
    oprot.trans.flush()
3310
 
3311
  def process_addTrackLog(self, seqid, iprot, oprot):
3312
    args = addTrackLog_args()
3313
    args.read(iprot)
3314
    iprot.readMessageEnd()
3315
    result = addTrackLog_result()
3316
    try:
1996 vikas 3317
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3318
    except UserAffiliateException, utx:
1845 vikas 3319
      result.utx = utx
3320
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3321
    result.write(oprot)
3322
    oprot.writeMessageEnd()
3323
    oprot.trans.flush()
3324
 
3325
  def process_getTrackLogById(self, seqid, iprot, oprot):
3326
    args = getTrackLogById_args()
3327
    args.read(iprot)
3328
    iprot.readMessageEnd()
3329
    result = getTrackLogById_result()
3330
    try:
3331
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3332
    except UserAffiliateException, utx:
1845 vikas 3333
      result.utx = utx
3334
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3335
    result.write(oprot)
3336
    oprot.writeMessageEnd()
3337
    oprot.trans.flush()
3338
 
1996 vikas 3339
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3340
    args = getTrackLogsByAffiliate_args()
1845 vikas 3341
    args.read(iprot)
3342
    iprot.readMessageEnd()
1996 vikas 3343
    result = getTrackLogsByAffiliate_result()
1845 vikas 3344
    try:
3293 vikas 3345
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3346
    except UserAffiliateException, utx:
1845 vikas 3347
      result.utx = utx
1996 vikas 3348
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
3353
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3354
    args = getTrackLogsByUser_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = getTrackLogsByUser_result()
3358
    try:
3359
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3360
    except UserAffiliateException, utx:
1845 vikas 3361
      result.utx = utx
3362
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3363
    result.write(oprot)
3364
    oprot.writeMessageEnd()
3365
    oprot.trans.flush()
3366
 
3367
  def process_getTrackLogs(self, seqid, iprot, oprot):
3368
    args = getTrackLogs_args()
3369
    args.read(iprot)
3370
    iprot.readMessageEnd()
3371
    result = getTrackLogs_result()
3372
    try:
1996 vikas 3373
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3374
    except UserAffiliateException, utx:
1845 vikas 3375
      result.utx = utx
3376
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
559 chandransh 3381
  def process_getCurrentCart(self, seqid, iprot, oprot):
3382
    args = getCurrentCart_args()
94 ashish 3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
559 chandransh 3385
    result = getCurrentCart_result()
94 ashish 3386
    try:
559 chandransh 3387
      result.success = self._handler.getCurrentCart(args.userId)
3388
    except ShoppingCartException, scx:
3389
      result.scx = scx
3390
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
559 chandransh 3395
  def process_getCart(self, seqid, iprot, oprot):
3396
    args = getCart_args()
94 ashish 3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
559 chandransh 3399
    result = getCart_result()
94 ashish 3400
    try:
559 chandransh 3401
      result.success = self._handler.getCart(args.cartId)
3402
    except ShoppingCartException, scx:
3403
      result.scx = scx
3404
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
559 chandransh 3409
  def process_getCartsByTime(self, seqid, iprot, oprot):
3410
    args = getCartsByTime_args()
94 ashish 3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
559 chandransh 3413
    result = getCartsByTime_result()
94 ashish 3414
    try:
559 chandransh 3415
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3416
    except ShoppingCartException, scx:
3417
      result.scx = scx
3418
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3419
    result.write(oprot)
3420
    oprot.writeMessageEnd()
3421
    oprot.trans.flush()
3422
 
559 chandransh 3423
  def process_addItemToCart(self, seqid, iprot, oprot):
3424
    args = addItemToCart_args()
130 ashish 3425
    args.read(iprot)
3426
    iprot.readMessageEnd()
559 chandransh 3427
    result = addItemToCart_result()
130 ashish 3428
    try:
3557 rajveer 3429
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3430
    except ShoppingCartException, scx:
3431
      result.scx = scx
3432
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3433
    result.write(oprot)
3434
    oprot.writeMessageEnd()
3435
    oprot.trans.flush()
3436
 
559 chandransh 3437
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3438
    args = deleteItemFromCart_args()
3439
    args.read(iprot)
3440
    iprot.readMessageEnd()
3441
    result = deleteItemFromCart_result()
3442
    try:
3443
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3444
    except ShoppingCartException, scx:
3445
      result.scx = scx
3446
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3447
    result.write(oprot)
3448
    oprot.writeMessageEnd()
3449
    oprot.trans.flush()
130 ashish 3450
 
559 chandransh 3451
  def process_addAddressToCart(self, seqid, iprot, oprot):
3452
    args = addAddressToCart_args()
3453
    args.read(iprot)
3454
    iprot.readMessageEnd()
3455
    result = addAddressToCart_result()
575 chandransh 3456
    try:
3457
      self._handler.addAddressToCart(args.cartId, args.addressId)
3458
    except ShoppingCartException, scx:
3459
      result.scx = scx
559 chandransh 3460
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3461
    result.write(oprot)
3462
    oprot.writeMessageEnd()
3463
    oprot.trans.flush()
3464
 
1976 varun.gupt 3465
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3466
    args = applyCouponToCart_args()
3467
    args.read(iprot)
3468
    iprot.readMessageEnd()
3469
    result = applyCouponToCart_result()
3470
    try:
3471
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3472
    except ShoppingCartException, scx:
3473
      result.scx = scx
3474
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3475
    result.write(oprot)
3476
    oprot.writeMessageEnd()
3477
    oprot.trans.flush()
3478
 
3479
  def process_removeCoupon(self, seqid, iprot, oprot):
3480
    args = removeCoupon_args()
3481
    args.read(iprot)
3482
    iprot.readMessageEnd()
3483
    result = removeCoupon_result()
3484
    try:
3485
      self._handler.removeCoupon(args.cartId)
3486
    except ShoppingCartException, scx:
3487
      result.scx = scx
3488
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3489
    result.write(oprot)
3490
    oprot.writeMessageEnd()
3491
    oprot.trans.flush()
3492
 
3554 varun.gupt 3493
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3494
    args = deleteDiscountsFromCart_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = deleteDiscountsFromCart_result()
3498
    try:
3499
      self._handler.deleteDiscountsFromCart(args.cartId)
3500
    except ShoppingCartException, scx:
3501
      result.scx = scx
3502
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_saveDiscounts(self, seqid, iprot, oprot):
3508
    args = saveDiscounts_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = saveDiscounts_result()
3512
    try:
3513
      self._handler.saveDiscounts(args.discounts)
3514
    except ShoppingCartException, scx:
3515
      result.scx = scx
3516
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
690 chandransh 3521
  def process_createOrders(self, seqid, iprot, oprot):
3522
    args = createOrders_args()
559 chandransh 3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
690 chandransh 3525
    result = createOrders_result()
559 chandransh 3526
    try:
5326 rajveer 3527
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3528
    except ShoppingCartException, scx:
3529
      result.scx = scx
690 chandransh 3530
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
3534
 
3535
  def process_validateCart(self, seqid, iprot, oprot):
3536
    args = validateCart_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = validateCart_result()
575 chandransh 3540
    try:
3557 rajveer 3541
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3542
    except ShoppingCartException, scex:
3543
      result.scex = scex
559 chandransh 3544
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
3548
 
690 chandransh 3549
  def process_mergeCart(self, seqid, iprot, oprot):
3550
    args = mergeCart_args()
575 chandransh 3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
690 chandransh 3553
    result = mergeCart_result()
3554
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3555
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3556
    result.write(oprot)
3557
    oprot.writeMessageEnd()
3558
    oprot.trans.flush()
3559
 
3560
  def process_checkOut(self, seqid, iprot, oprot):
3561
    args = checkOut_args()
3562
    args.read(iprot)
3563
    iprot.readMessageEnd()
3564
    result = checkOut_result()
575 chandransh 3565
    try:
690 chandransh 3566
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3567
    except ShoppingCartException, scex:
3568
      result.scex = scex
690 chandransh 3569
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3570
    result.write(oprot)
3571
    oprot.writeMessageEnd()
3572
    oprot.trans.flush()
3573
 
690 chandransh 3574
  def process_resetCart(self, seqid, iprot, oprot):
3575
    args = resetCart_args()
559 chandransh 3576
    args.read(iprot)
3577
    iprot.readMessageEnd()
690 chandransh 3578
    result = resetCart_result()
3579
    try:
3580
      result.success = self._handler.resetCart(args.cartId, args.items)
3581
    except ShoppingCartException, scex:
3582
      result.scex = scex
3583
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3584
    result.write(oprot)
3585
    oprot.writeMessageEnd()
3586
    oprot.trans.flush()
3587
 
2981 rajveer 3588
  def process_getUserCount(self, seqid, iprot, oprot):
3589
    args = getUserCount_args()
559 chandransh 3590
    args.read(iprot)
3591
    iprot.readMessageEnd()
2981 rajveer 3592
    result = getUserCount_result()
3593
    result.success = self._handler.getUserCount(args.userType)
3594
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
3598
 
2981 rajveer 3599
  def process_getAllUsers(self, seqid, iprot, oprot):
3600
    args = getAllUsers_args()
559 chandransh 3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
2981 rajveer 3603
    result = getAllUsers_result()
3604
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3605
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
2981 rajveer 3610
  def process_putUserNote(self, seqid, iprot, oprot):
3611
    args = putUserNote_args()
559 chandransh 3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
2981 rajveer 3614
    result = putUserNote_result()
3615
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3616
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3617
    result.write(oprot)
3618
    oprot.writeMessageEnd()
3619
    oprot.trans.flush()
3620
 
2981 rajveer 3621
  def process_getUserNotes(self, seqid, iprot, oprot):
3622
    args = getUserNotes_args()
559 chandransh 3623
    args.read(iprot)
3624
    iprot.readMessageEnd()
2981 rajveer 3625
    result = getUserNotes_result()
3626
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3627
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3628
    result.write(oprot)
3629
    oprot.writeMessageEnd()
3630
    oprot.trans.flush()
3631
 
2981 rajveer 3632
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3633
    args = getMyResearchItems_args()
559 chandransh 3634
    args.read(iprot)
3635
    iprot.readMessageEnd()
2981 rajveer 3636
    result = getMyResearchItems_result()
559 chandransh 3637
    try:
2981 rajveer 3638
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3639
    except WidgetException, scx:
3640
      result.scx = scx
2981 rajveer 3641
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3642
    result.write(oprot)
3643
    oprot.writeMessageEnd()
3644
    oprot.trans.flush()
3645
 
2981 rajveer 3646
  def process_updateMyResearch(self, seqid, iprot, oprot):
3647
    args = updateMyResearch_args()
772 rajveer 3648
    args.read(iprot)
3649
    iprot.readMessageEnd()
2981 rajveer 3650
    result = updateMyResearch_result()
3651
    try:
3652
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3653
    except WidgetException, scx:
3654
      result.scx = scx
3655
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3656
    result.write(oprot)
3657
    oprot.writeMessageEnd()
3658
    oprot.trans.flush()
559 chandransh 3659
 
2981 rajveer 3660
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3661
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3662
    args.read(iprot)
3663
    iprot.readMessageEnd()
2981 rajveer 3664
    result = deleteItemFromMyResearch_result()
3665
    try:
3666
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3667
    except WidgetException, scx:
3668
      result.scx = scx
3669
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3670
    result.write(oprot)
3671
    oprot.writeMessageEnd()
3672
    oprot.trans.flush()
772 rajveer 3673
 
2981 rajveer 3674
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3675
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3676
    args.read(iprot)
3677
    iprot.readMessageEnd()
2981 rajveer 3678
    result = getBrowseHistoryItems_result()
3679
    try:
3680
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3681
    except WidgetException, scx:
3682
      result.scx = scx
3683
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3684
    result.write(oprot)
3685
    oprot.writeMessageEnd()
3686
    oprot.trans.flush()
1596 ankur.sing 3687
 
2981 rajveer 3688
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3689
    args = updateBrowseHistory_args()
2642 varun.gupt 3690
    args.read(iprot)
3691
    iprot.readMessageEnd()
2981 rajveer 3692
    result = updateBrowseHistory_result()
3693
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3694
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3695
    result.write(oprot)
3696
    oprot.writeMessageEnd()
3697
    oprot.trans.flush()
1673 ankur.sing 3698
 
3385 varun.gupt 3699
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3700
    args = getCartsWithCouponCount_args()
3701
    args.read(iprot)
3702
    iprot.readMessageEnd()
3703
    result = getCartsWithCouponCount_result()
3704
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3705
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3706
    result.write(oprot)
3707
    oprot.writeMessageEnd()
3708
    oprot.trans.flush()
2642 varun.gupt 3709
 
3499 mandeep.dh 3710
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3711
    args = increaseTrustLevel_args()
3712
    args.read(iprot)
3713
    iprot.readMessageEnd()
3714
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3715
    return
3385 varun.gupt 3716
 
4668 varun.gupt 3717
  def process_showCODOption(self, seqid, iprot, oprot):
3718
    args = showCODOption_args()
3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
3721
    result = showCODOption_result()
3722
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3723
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
3499 mandeep.dh 3727
 
4668 varun.gupt 3728
 
94 ashish 3729
# HELPER FUNCTIONS AND STRUCTURES
3730
 
559 chandransh 3731
class createAnonymousUser_args:
94 ashish 3732
  """
3733
  Attributes:
559 chandransh 3734
   - jsessionId
94 ashish 3735
  """
3736
 
3737
  thrift_spec = (
3738
    None, # 0
559 chandransh 3739
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3740
  )
3741
 
559 chandransh 3742
  def __init__(self, jsessionId=None,):
3743
    self.jsessionId = jsessionId
94 ashish 3744
 
3745
  def read(self, iprot):
3746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3748
      return
3749
    iprot.readStructBegin()
3750
    while True:
3751
      (fname, ftype, fid) = iprot.readFieldBegin()
3752
      if ftype == TType.STOP:
3753
        break
3754
      if fid == 1:
559 chandransh 3755
        if ftype == TType.STRING:
3756
          self.jsessionId = iprot.readString();
94 ashish 3757
        else:
3758
          iprot.skip(ftype)
3759
      else:
3760
        iprot.skip(ftype)
3761
      iprot.readFieldEnd()
3762
    iprot.readStructEnd()
3763
 
3764
  def write(self, oprot):
3765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3767
      return
559 chandransh 3768
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3769
    if self.jsessionId is not None:
559 chandransh 3770
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3771
      oprot.writeString(self.jsessionId)
94 ashish 3772
      oprot.writeFieldEnd()
3773
    oprot.writeFieldStop()
3774
    oprot.writeStructEnd()
3775
 
3431 rajveer 3776
  def validate(self):
3777
    return
3778
 
3779
 
94 ashish 3780
  def __repr__(self):
3781
    L = ['%s=%r' % (key, value)
3782
      for key, value in self.__dict__.iteritems()]
3783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3784
 
3785
  def __eq__(self, other):
3786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3787
 
3788
  def __ne__(self, other):
3789
    return not (self == other)
3790
 
559 chandransh 3791
class createAnonymousUser_result:
94 ashish 3792
  """
3793
  Attributes:
3794
   - success
559 chandransh 3795
   - ucex
94 ashish 3796
  """
3797
 
3798
  thrift_spec = (
559 chandransh 3799
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3800
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3801
  )
3802
 
559 chandransh 3803
  def __init__(self, success=None, ucex=None,):
94 ashish 3804
    self.success = success
559 chandransh 3805
    self.ucex = ucex
94 ashish 3806
 
3807
  def read(self, iprot):
3808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3810
      return
3811
    iprot.readStructBegin()
3812
    while True:
3813
      (fname, ftype, fid) = iprot.readFieldBegin()
3814
      if ftype == TType.STOP:
3815
        break
3816
      if fid == 0:
3817
        if ftype == TType.STRUCT:
559 chandransh 3818
          self.success = User()
94 ashish 3819
          self.success.read(iprot)
3820
        else:
3821
          iprot.skip(ftype)
3822
      elif fid == 1:
3823
        if ftype == TType.STRUCT:
559 chandransh 3824
          self.ucex = UserContextException()
3825
          self.ucex.read(iprot)
94 ashish 3826
        else:
3827
          iprot.skip(ftype)
3828
      else:
3829
        iprot.skip(ftype)
3830
      iprot.readFieldEnd()
3831
    iprot.readStructEnd()
3832
 
3833
  def write(self, oprot):
3834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3836
      return
559 chandransh 3837
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 3838
    if self.success is not None:
94 ashish 3839
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3840
      self.success.write(oprot)
3841
      oprot.writeFieldEnd()
3431 rajveer 3842
    if self.ucex is not None:
559 chandransh 3843
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3844
      self.ucex.write(oprot)
94 ashish 3845
      oprot.writeFieldEnd()
3846
    oprot.writeFieldStop()
3847
    oprot.writeStructEnd()
3848
 
3431 rajveer 3849
  def validate(self):
3850
    return
3851
 
3852
 
94 ashish 3853
  def __repr__(self):
3854
    L = ['%s=%r' % (key, value)
3855
      for key, value in self.__dict__.iteritems()]
3856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3857
 
3858
  def __eq__(self, other):
3859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3860
 
3861
  def __ne__(self, other):
3862
    return not (self == other)
3863
 
559 chandransh 3864
class getUserById_args:
94 ashish 3865
  """
3866
  Attributes:
3867
   - userId
3868
  """
3869
 
3870
  thrift_spec = (
3871
    None, # 0
3872
    (1, TType.I64, 'userId', None, None, ), # 1
3873
  )
3874
 
559 chandransh 3875
  def __init__(self, userId=None,):
94 ashish 3876
    self.userId = userId
3877
 
3878
  def read(self, iprot):
3879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3881
      return
3882
    iprot.readStructBegin()
3883
    while True:
3884
      (fname, ftype, fid) = iprot.readFieldBegin()
3885
      if ftype == TType.STOP:
3886
        break
3887
      if fid == 1:
3888
        if ftype == TType.I64:
3889
          self.userId = iprot.readI64();
3890
        else:
3891
          iprot.skip(ftype)
3892
      else:
3893
        iprot.skip(ftype)
3894
      iprot.readFieldEnd()
3895
    iprot.readStructEnd()
3896
 
3897
  def write(self, oprot):
3898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3900
      return
559 chandransh 3901
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 3902
    if self.userId is not None:
94 ashish 3903
      oprot.writeFieldBegin('userId', TType.I64, 1)
3904
      oprot.writeI64(self.userId)
3905
      oprot.writeFieldEnd()
3906
    oprot.writeFieldStop()
3907
    oprot.writeStructEnd()
3908
 
3431 rajveer 3909
  def validate(self):
3910
    return
3911
 
3912
 
94 ashish 3913
  def __repr__(self):
3914
    L = ['%s=%r' % (key, value)
3915
      for key, value in self.__dict__.iteritems()]
3916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3917
 
3918
  def __eq__(self, other):
3919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3920
 
3921
  def __ne__(self, other):
3922
    return not (self == other)
3923
 
559 chandransh 3924
class getUserById_result:
94 ashish 3925
  """
3926
  Attributes:
3927
   - success
559 chandransh 3928
   - ucex
94 ashish 3929
  """
3930
 
3931
  thrift_spec = (
559 chandransh 3932
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3933
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3934
  )
3935
 
559 chandransh 3936
  def __init__(self, success=None, ucex=None,):
94 ashish 3937
    self.success = success
559 chandransh 3938
    self.ucex = ucex
94 ashish 3939
 
3940
  def read(self, iprot):
3941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3943
      return
3944
    iprot.readStructBegin()
3945
    while True:
3946
      (fname, ftype, fid) = iprot.readFieldBegin()
3947
      if ftype == TType.STOP:
3948
        break
3949
      if fid == 0:
3950
        if ftype == TType.STRUCT:
559 chandransh 3951
          self.success = User()
94 ashish 3952
          self.success.read(iprot)
3953
        else:
3954
          iprot.skip(ftype)
3955
      elif fid == 1:
3956
        if ftype == TType.STRUCT:
559 chandransh 3957
          self.ucex = UserContextException()
3958
          self.ucex.read(iprot)
94 ashish 3959
        else:
3960
          iprot.skip(ftype)
3961
      else:
3962
        iprot.skip(ftype)
3963
      iprot.readFieldEnd()
3964
    iprot.readStructEnd()
3965
 
3966
  def write(self, oprot):
3967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3969
      return
559 chandransh 3970
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 3971
    if self.success is not None:
94 ashish 3972
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3973
      self.success.write(oprot)
3974
      oprot.writeFieldEnd()
3431 rajveer 3975
    if self.ucex is not None:
559 chandransh 3976
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3977
      self.ucex.write(oprot)
94 ashish 3978
      oprot.writeFieldEnd()
3979
    oprot.writeFieldStop()
3980
    oprot.writeStructEnd()
3981
 
3431 rajveer 3982
  def validate(self):
3983
    return
3984
 
3985
 
94 ashish 3986
  def __repr__(self):
3987
    L = ['%s=%r' % (key, value)
3988
      for key, value in self.__dict__.iteritems()]
3989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3990
 
3991
  def __eq__(self, other):
3992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3993
 
3994
  def __ne__(self, other):
3995
    return not (self == other)
3996
 
5326 rajveer 3997
class getUserByCartId_args:
1491 vikas 3998
  """
3999
  Attributes:
5326 rajveer 4000
   - cartId
1491 vikas 4001
  """
4002
 
4003
  thrift_spec = (
4004
    None, # 0
5326 rajveer 4005
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4006
  )
4007
 
5326 rajveer 4008
  def __init__(self, cartId=None,):
4009
    self.cartId = cartId
1491 vikas 4010
 
4011
  def read(self, iprot):
4012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4014
      return
4015
    iprot.readStructBegin()
4016
    while True:
4017
      (fname, ftype, fid) = iprot.readFieldBegin()
4018
      if ftype == TType.STOP:
4019
        break
4020
      if fid == 1:
5326 rajveer 4021
        if ftype == TType.I64:
4022
          self.cartId = iprot.readI64();
1491 vikas 4023
        else:
4024
          iprot.skip(ftype)
4025
      else:
4026
        iprot.skip(ftype)
4027
      iprot.readFieldEnd()
4028
    iprot.readStructEnd()
4029
 
4030
  def write(self, oprot):
4031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4033
      return
5326 rajveer 4034
    oprot.writeStructBegin('getUserByCartId_args')
4035
    if self.cartId is not None:
4036
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4037
      oprot.writeI64(self.cartId)
1491 vikas 4038
      oprot.writeFieldEnd()
4039
    oprot.writeFieldStop()
4040
    oprot.writeStructEnd()
4041
 
3431 rajveer 4042
  def validate(self):
4043
    return
4044
 
4045
 
1491 vikas 4046
  def __repr__(self):
4047
    L = ['%s=%r' % (key, value)
4048
      for key, value in self.__dict__.iteritems()]
4049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4050
 
4051
  def __eq__(self, other):
4052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4053
 
4054
  def __ne__(self, other):
4055
    return not (self == other)
4056
 
5326 rajveer 4057
class getUserByCartId_result:
1491 vikas 4058
  """
4059
  Attributes:
4060
   - success
4061
   - ucex
4062
  """
4063
 
4064
  thrift_spec = (
4065
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4066
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4067
  )
4068
 
4069
  def __init__(self, success=None, ucex=None,):
4070
    self.success = success
4071
    self.ucex = ucex
4072
 
4073
  def read(self, iprot):
4074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4076
      return
4077
    iprot.readStructBegin()
4078
    while True:
4079
      (fname, ftype, fid) = iprot.readFieldBegin()
4080
      if ftype == TType.STOP:
4081
        break
4082
      if fid == 0:
4083
        if ftype == TType.STRUCT:
4084
          self.success = User()
4085
          self.success.read(iprot)
4086
        else:
4087
          iprot.skip(ftype)
4088
      elif fid == 1:
4089
        if ftype == TType.STRUCT:
4090
          self.ucex = UserContextException()
4091
          self.ucex.read(iprot)
4092
        else:
4093
          iprot.skip(ftype)
4094
      else:
4095
        iprot.skip(ftype)
4096
      iprot.readFieldEnd()
4097
    iprot.readStructEnd()
4098
 
4099
  def write(self, oprot):
4100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4102
      return
5326 rajveer 4103
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4104
    if self.success is not None:
1491 vikas 4105
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4106
      self.success.write(oprot)
4107
      oprot.writeFieldEnd()
3431 rajveer 4108
    if self.ucex is not None:
1491 vikas 4109
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4110
      self.ucex.write(oprot)
4111
      oprot.writeFieldEnd()
4112
    oprot.writeFieldStop()
4113
    oprot.writeStructEnd()
4114
 
3431 rajveer 4115
  def validate(self):
4116
    return
4117
 
4118
 
1491 vikas 4119
  def __repr__(self):
4120
    L = ['%s=%r' % (key, value)
4121
      for key, value in self.__dict__.iteritems()]
4122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4123
 
4124
  def __eq__(self, other):
4125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4126
 
4127
  def __ne__(self, other):
4128
    return not (self == other)
4129
 
5326 rajveer 4130
class getUserByEmail_args:
3032 mandeep.dh 4131
  """
4132
  Attributes:
5326 rajveer 4133
   - email
3032 mandeep.dh 4134
  """
4135
 
4136
  thrift_spec = (
4137
    None, # 0
5326 rajveer 4138
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4139
  )
4140
 
5326 rajveer 4141
  def __init__(self, email=None,):
4142
    self.email = email
3032 mandeep.dh 4143
 
4144
  def read(self, iprot):
4145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4147
      return
4148
    iprot.readStructBegin()
4149
    while True:
4150
      (fname, ftype, fid) = iprot.readFieldBegin()
4151
      if ftype == TType.STOP:
4152
        break
4153
      if fid == 1:
5326 rajveer 4154
        if ftype == TType.STRING:
4155
          self.email = iprot.readString();
3032 mandeep.dh 4156
        else:
4157
          iprot.skip(ftype)
4158
      else:
4159
        iprot.skip(ftype)
4160
      iprot.readFieldEnd()
4161
    iprot.readStructEnd()
4162
 
4163
  def write(self, oprot):
4164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4166
      return
5326 rajveer 4167
    oprot.writeStructBegin('getUserByEmail_args')
4168
    if self.email is not None:
4169
      oprot.writeFieldBegin('email', TType.STRING, 1)
4170
      oprot.writeString(self.email)
3032 mandeep.dh 4171
      oprot.writeFieldEnd()
4172
    oprot.writeFieldStop()
4173
    oprot.writeStructEnd()
4174
 
3431 rajveer 4175
  def validate(self):
4176
    return
4177
 
4178
 
3032 mandeep.dh 4179
  def __repr__(self):
4180
    L = ['%s=%r' % (key, value)
4181
      for key, value in self.__dict__.iteritems()]
4182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4183
 
4184
  def __eq__(self, other):
4185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4186
 
4187
  def __ne__(self, other):
4188
    return not (self == other)
4189
 
5326 rajveer 4190
class getUserByEmail_result:
3032 mandeep.dh 4191
  """
4192
  Attributes:
4193
   - success
4194
   - ucex
4195
  """
4196
 
4197
  thrift_spec = (
4198
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4199
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4200
  )
4201
 
4202
  def __init__(self, success=None, ucex=None,):
4203
    self.success = success
4204
    self.ucex = ucex
4205
 
4206
  def read(self, iprot):
4207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4209
      return
4210
    iprot.readStructBegin()
4211
    while True:
4212
      (fname, ftype, fid) = iprot.readFieldBegin()
4213
      if ftype == TType.STOP:
4214
        break
4215
      if fid == 0:
4216
        if ftype == TType.STRUCT:
4217
          self.success = User()
4218
          self.success.read(iprot)
4219
        else:
4220
          iprot.skip(ftype)
4221
      elif fid == 1:
4222
        if ftype == TType.STRUCT:
4223
          self.ucex = UserContextException()
4224
          self.ucex.read(iprot)
4225
        else:
4226
          iprot.skip(ftype)
4227
      else:
4228
        iprot.skip(ftype)
4229
      iprot.readFieldEnd()
4230
    iprot.readStructEnd()
4231
 
4232
  def write(self, oprot):
4233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4235
      return
5326 rajveer 4236
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4237
    if self.success is not None:
3032 mandeep.dh 4238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4239
      self.success.write(oprot)
4240
      oprot.writeFieldEnd()
3431 rajveer 4241
    if self.ucex is not None:
3032 mandeep.dh 4242
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4243
      self.ucex.write(oprot)
4244
      oprot.writeFieldEnd()
4245
    oprot.writeFieldStop()
4246
    oprot.writeStructEnd()
4247
 
3431 rajveer 4248
  def validate(self):
4249
    return
4250
 
4251
 
3032 mandeep.dh 4252
  def __repr__(self):
4253
    L = ['%s=%r' % (key, value)
4254
      for key, value in self.__dict__.iteritems()]
4255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4256
 
4257
  def __eq__(self, other):
4258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4259
 
4260
  def __ne__(self, other):
4261
    return not (self == other)
4262
 
5326 rajveer 4263
class getUserByMobileNumber_args:
94 ashish 4264
  """
4265
  Attributes:
5326 rajveer 4266
   - mobileNumber
94 ashish 4267
  """
4268
 
4269
  thrift_spec = (
4270
    None, # 0
5326 rajveer 4271
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4272
  )
4273
 
5326 rajveer 4274
  def __init__(self, mobileNumber=None,):
4275
    self.mobileNumber = mobileNumber
94 ashish 4276
 
4277
  def read(self, iprot):
4278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4280
      return
4281
    iprot.readStructBegin()
4282
    while True:
4283
      (fname, ftype, fid) = iprot.readFieldBegin()
4284
      if ftype == TType.STOP:
4285
        break
4286
      if fid == 1:
5326 rajveer 4287
        if ftype == TType.I64:
4288
          self.mobileNumber = iprot.readI64();
94 ashish 4289
        else:
4290
          iprot.skip(ftype)
4291
      else:
4292
        iprot.skip(ftype)
4293
      iprot.readFieldEnd()
4294
    iprot.readStructEnd()
4295
 
4296
  def write(self, oprot):
4297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4299
      return
5326 rajveer 4300
    oprot.writeStructBegin('getUserByMobileNumber_args')
4301
    if self.mobileNumber is not None:
4302
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4303
      oprot.writeI64(self.mobileNumber)
94 ashish 4304
      oprot.writeFieldEnd()
4305
    oprot.writeFieldStop()
4306
    oprot.writeStructEnd()
4307
 
3431 rajveer 4308
  def validate(self):
4309
    return
4310
 
4311
 
94 ashish 4312
  def __repr__(self):
4313
    L = ['%s=%r' % (key, value)
4314
      for key, value in self.__dict__.iteritems()]
4315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4316
 
4317
  def __eq__(self, other):
4318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4319
 
4320
  def __ne__(self, other):
4321
    return not (self == other)
4322
 
5326 rajveer 4323
class getUserByMobileNumber_result:
94 ashish 4324
  """
4325
  Attributes:
4326
   - success
559 chandransh 4327
   - ucex
94 ashish 4328
  """
4329
 
4330
  thrift_spec = (
559 chandransh 4331
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4332
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4333
  )
4334
 
559 chandransh 4335
  def __init__(self, success=None, ucex=None,):
94 ashish 4336
    self.success = success
559 chandransh 4337
    self.ucex = ucex
94 ashish 4338
 
4339
  def read(self, iprot):
4340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4342
      return
4343
    iprot.readStructBegin()
4344
    while True:
4345
      (fname, ftype, fid) = iprot.readFieldBegin()
4346
      if ftype == TType.STOP:
4347
        break
4348
      if fid == 0:
4349
        if ftype == TType.STRUCT:
559 chandransh 4350
          self.success = User()
94 ashish 4351
          self.success.read(iprot)
4352
        else:
4353
          iprot.skip(ftype)
4354
      elif fid == 1:
4355
        if ftype == TType.STRUCT:
559 chandransh 4356
          self.ucex = UserContextException()
4357
          self.ucex.read(iprot)
94 ashish 4358
        else:
4359
          iprot.skip(ftype)
4360
      else:
4361
        iprot.skip(ftype)
4362
      iprot.readFieldEnd()
4363
    iprot.readStructEnd()
4364
 
4365
  def write(self, oprot):
4366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4368
      return
5326 rajveer 4369
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4370
    if self.success is not None:
94 ashish 4371
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4372
      self.success.write(oprot)
4373
      oprot.writeFieldEnd()
3431 rajveer 4374
    if self.ucex is not None:
559 chandransh 4375
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4376
      self.ucex.write(oprot)
94 ashish 4377
      oprot.writeFieldEnd()
4378
    oprot.writeFieldStop()
4379
    oprot.writeStructEnd()
4380
 
3431 rajveer 4381
  def validate(self):
4382
    return
4383
 
4384
 
94 ashish 4385
  def __repr__(self):
4386
    L = ['%s=%r' % (key, value)
4387
      for key, value in self.__dict__.iteritems()]
4388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4389
 
4390
  def __eq__(self, other):
4391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4392
 
4393
  def __ne__(self, other):
4394
    return not (self == other)
4395
 
5326 rajveer 4396
class createUser_args:
94 ashish 4397
  """
4398
  Attributes:
559 chandransh 4399
   - user
94 ashish 4400
  """
4401
 
4402
  thrift_spec = (
4403
    None, # 0
559 chandransh 4404
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4405
  )
4406
 
559 chandransh 4407
  def __init__(self, user=None,):
4408
    self.user = user
94 ashish 4409
 
4410
  def read(self, iprot):
4411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4413
      return
4414
    iprot.readStructBegin()
4415
    while True:
4416
      (fname, ftype, fid) = iprot.readFieldBegin()
4417
      if ftype == TType.STOP:
4418
        break
4419
      if fid == 1:
559 chandransh 4420
        if ftype == TType.STRUCT:
4421
          self.user = User()
4422
          self.user.read(iprot)
94 ashish 4423
        else:
4424
          iprot.skip(ftype)
4425
      else:
4426
        iprot.skip(ftype)
4427
      iprot.readFieldEnd()
4428
    iprot.readStructEnd()
4429
 
4430
  def write(self, oprot):
4431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4433
      return
5326 rajveer 4434
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4435
    if self.user is not None:
559 chandransh 4436
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4437
      self.user.write(oprot)
94 ashish 4438
      oprot.writeFieldEnd()
4439
    oprot.writeFieldStop()
4440
    oprot.writeStructEnd()
4441
 
3431 rajveer 4442
  def validate(self):
4443
    return
4444
 
4445
 
94 ashish 4446
  def __repr__(self):
4447
    L = ['%s=%r' % (key, value)
4448
      for key, value in self.__dict__.iteritems()]
4449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4450
 
4451
  def __eq__(self, other):
4452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4453
 
4454
  def __ne__(self, other):
4455
    return not (self == other)
4456
 
5326 rajveer 4457
class createUser_result:
94 ashish 4458
  """
4459
  Attributes:
4460
   - success
559 chandransh 4461
   - ucex
94 ashish 4462
  """
4463
 
4464
  thrift_spec = (
559 chandransh 4465
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4466
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4467
  )
4468
 
559 chandransh 4469
  def __init__(self, success=None, ucex=None,):
94 ashish 4470
    self.success = success
559 chandransh 4471
    self.ucex = ucex
94 ashish 4472
 
4473
  def read(self, iprot):
4474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4476
      return
4477
    iprot.readStructBegin()
4478
    while True:
4479
      (fname, ftype, fid) = iprot.readFieldBegin()
4480
      if ftype == TType.STOP:
4481
        break
4482
      if fid == 0:
4483
        if ftype == TType.STRUCT:
559 chandransh 4484
          self.success = User()
94 ashish 4485
          self.success.read(iprot)
4486
        else:
4487
          iprot.skip(ftype)
4488
      elif fid == 1:
4489
        if ftype == TType.STRUCT:
559 chandransh 4490
          self.ucex = UserContextException()
4491
          self.ucex.read(iprot)
94 ashish 4492
        else:
4493
          iprot.skip(ftype)
4494
      else:
4495
        iprot.skip(ftype)
4496
      iprot.readFieldEnd()
4497
    iprot.readStructEnd()
4498
 
4499
  def write(self, oprot):
4500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4502
      return
5326 rajveer 4503
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4504
    if self.success is not None:
94 ashish 4505
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4506
      self.success.write(oprot)
4507
      oprot.writeFieldEnd()
3431 rajveer 4508
    if self.ucex is not None:
559 chandransh 4509
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4510
      self.ucex.write(oprot)
94 ashish 4511
      oprot.writeFieldEnd()
4512
    oprot.writeFieldStop()
4513
    oprot.writeStructEnd()
4514
 
3431 rajveer 4515
  def validate(self):
4516
    return
4517
 
4518
 
94 ashish 4519
  def __repr__(self):
4520
    L = ['%s=%r' % (key, value)
4521
      for key, value in self.__dict__.iteritems()]
4522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4523
 
4524
  def __eq__(self, other):
4525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4526
 
4527
  def __ne__(self, other):
4528
    return not (self == other)
4529
 
5326 rajveer 4530
class updateUser_args:
94 ashish 4531
  """
4532
  Attributes:
5326 rajveer 4533
   - user
94 ashish 4534
  """
4535
 
4536
  thrift_spec = (
4537
    None, # 0
5326 rajveer 4538
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4539
  )
4540
 
5326 rajveer 4541
  def __init__(self, user=None,):
4542
    self.user = user
94 ashish 4543
 
4544
  def read(self, iprot):
4545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4547
      return
4548
    iprot.readStructBegin()
4549
    while True:
4550
      (fname, ftype, fid) = iprot.readFieldBegin()
4551
      if ftype == TType.STOP:
4552
        break
4553
      if fid == 1:
5326 rajveer 4554
        if ftype == TType.STRUCT:
4555
          self.user = User()
4556
          self.user.read(iprot)
94 ashish 4557
        else:
4558
          iprot.skip(ftype)
4559
      else:
4560
        iprot.skip(ftype)
4561
      iprot.readFieldEnd()
4562
    iprot.readStructEnd()
4563
 
4564
  def write(self, oprot):
4565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4567
      return
5326 rajveer 4568
    oprot.writeStructBegin('updateUser_args')
4569
    if self.user is not None:
4570
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4571
      self.user.write(oprot)
94 ashish 4572
      oprot.writeFieldEnd()
4573
    oprot.writeFieldStop()
4574
    oprot.writeStructEnd()
4575
 
3431 rajveer 4576
  def validate(self):
4577
    return
4578
 
4579
 
94 ashish 4580
  def __repr__(self):
4581
    L = ['%s=%r' % (key, value)
4582
      for key, value in self.__dict__.iteritems()]
4583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4584
 
4585
  def __eq__(self, other):
4586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4587
 
4588
  def __ne__(self, other):
4589
    return not (self == other)
4590
 
5326 rajveer 4591
class updateUser_result:
94 ashish 4592
  """
4593
  Attributes:
4594
   - success
559 chandransh 4595
   - ucex
94 ashish 4596
  """
4597
 
4598
  thrift_spec = (
5326 rajveer 4599
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4600
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4601
  )
4602
 
559 chandransh 4603
  def __init__(self, success=None, ucex=None,):
94 ashish 4604
    self.success = success
559 chandransh 4605
    self.ucex = ucex
94 ashish 4606
 
4607
  def read(self, iprot):
4608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4610
      return
4611
    iprot.readStructBegin()
4612
    while True:
4613
      (fname, ftype, fid) = iprot.readFieldBegin()
4614
      if ftype == TType.STOP:
4615
        break
4616
      if fid == 0:
5326 rajveer 4617
        if ftype == TType.STRUCT:
4618
          self.success = User()
4619
          self.success.read(iprot)
94 ashish 4620
        else:
4621
          iprot.skip(ftype)
4622
      elif fid == 1:
4623
        if ftype == TType.STRUCT:
559 chandransh 4624
          self.ucex = UserContextException()
4625
          self.ucex.read(iprot)
94 ashish 4626
        else:
4627
          iprot.skip(ftype)
4628
      else:
4629
        iprot.skip(ftype)
4630
      iprot.readFieldEnd()
4631
    iprot.readStructEnd()
4632
 
4633
  def write(self, oprot):
4634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4636
      return
5326 rajveer 4637
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4638
    if self.success is not None:
5326 rajveer 4639
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4640
      self.success.write(oprot)
94 ashish 4641
      oprot.writeFieldEnd()
3431 rajveer 4642
    if self.ucex is not None:
559 chandransh 4643
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4644
      self.ucex.write(oprot)
94 ashish 4645
      oprot.writeFieldEnd()
4646
    oprot.writeFieldStop()
4647
    oprot.writeStructEnd()
4648
 
3431 rajveer 4649
  def validate(self):
4650
    return
4651
 
4652
 
94 ashish 4653
  def __repr__(self):
4654
    L = ['%s=%r' % (key, value)
4655
      for key, value in self.__dict__.iteritems()]
4656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4657
 
4658
  def __eq__(self, other):
4659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4660
 
4661
  def __ne__(self, other):
4662
    return not (self == other)
4663
 
559 chandransh 4664
class authenticateUser_args:
94 ashish 4665
  """
4666
  Attributes:
4667
   - email
4668
   - password
4669
  """
4670
 
4671
  thrift_spec = (
4672
    None, # 0
4673
    (1, TType.STRING, 'email', None, None, ), # 1
4674
    (2, TType.STRING, 'password', None, None, ), # 2
4675
  )
4676
 
4677
  def __init__(self, email=None, password=None,):
4678
    self.email = email
4679
    self.password = password
4680
 
4681
  def read(self, iprot):
4682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4684
      return
4685
    iprot.readStructBegin()
4686
    while True:
4687
      (fname, ftype, fid) = iprot.readFieldBegin()
4688
      if ftype == TType.STOP:
4689
        break
4690
      if fid == 1:
4691
        if ftype == TType.STRING:
4692
          self.email = iprot.readString();
4693
        else:
4694
          iprot.skip(ftype)
4695
      elif fid == 2:
4696
        if ftype == TType.STRING:
4697
          self.password = iprot.readString();
4698
        else:
4699
          iprot.skip(ftype)
4700
      else:
4701
        iprot.skip(ftype)
4702
      iprot.readFieldEnd()
4703
    iprot.readStructEnd()
4704
 
4705
  def write(self, oprot):
4706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4708
      return
559 chandransh 4709
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4710
    if self.email is not None:
94 ashish 4711
      oprot.writeFieldBegin('email', TType.STRING, 1)
4712
      oprot.writeString(self.email)
4713
      oprot.writeFieldEnd()
3431 rajveer 4714
    if self.password is not None:
94 ashish 4715
      oprot.writeFieldBegin('password', TType.STRING, 2)
4716
      oprot.writeString(self.password)
4717
      oprot.writeFieldEnd()
4718
    oprot.writeFieldStop()
4719
    oprot.writeStructEnd()
4720
 
3431 rajveer 4721
  def validate(self):
4722
    return
4723
 
4724
 
94 ashish 4725
  def __repr__(self):
4726
    L = ['%s=%r' % (key, value)
4727
      for key, value in self.__dict__.iteritems()]
4728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4729
 
4730
  def __eq__(self, other):
4731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4732
 
4733
  def __ne__(self, other):
4734
    return not (self == other)
4735
 
559 chandransh 4736
class authenticateUser_result:
94 ashish 4737
  """
4738
  Attributes:
4739
   - success
559 chandransh 4740
   - auex
94 ashish 4741
  """
4742
 
4743
  thrift_spec = (
559 chandransh 4744
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4745
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4746
  )
4747
 
559 chandransh 4748
  def __init__(self, success=None, auex=None,):
94 ashish 4749
    self.success = success
559 chandransh 4750
    self.auex = auex
94 ashish 4751
 
4752
  def read(self, iprot):
4753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4755
      return
4756
    iprot.readStructBegin()
4757
    while True:
4758
      (fname, ftype, fid) = iprot.readFieldBegin()
4759
      if ftype == TType.STOP:
4760
        break
4761
      if fid == 0:
4762
        if ftype == TType.STRUCT:
559 chandransh 4763
          self.success = User()
94 ashish 4764
          self.success.read(iprot)
4765
        else:
4766
          iprot.skip(ftype)
4767
      elif fid == 1:
4768
        if ftype == TType.STRUCT:
559 chandransh 4769
          self.auex = AuthenticationException()
4770
          self.auex.read(iprot)
94 ashish 4771
        else:
4772
          iprot.skip(ftype)
4773
      else:
4774
        iprot.skip(ftype)
4775
      iprot.readFieldEnd()
4776
    iprot.readStructEnd()
4777
 
4778
  def write(self, oprot):
4779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4781
      return
559 chandransh 4782
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4783
    if self.success is not None:
94 ashish 4784
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4785
      self.success.write(oprot)
4786
      oprot.writeFieldEnd()
3431 rajveer 4787
    if self.auex is not None:
559 chandransh 4788
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4789
      self.auex.write(oprot)
94 ashish 4790
      oprot.writeFieldEnd()
4791
    oprot.writeFieldStop()
4792
    oprot.writeStructEnd()
4793
 
3431 rajveer 4794
  def validate(self):
4795
    return
4796
 
4797
 
94 ashish 4798
  def __repr__(self):
4799
    L = ['%s=%r' % (key, value)
4800
      for key, value in self.__dict__.iteritems()]
4801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4802
 
4803
  def __eq__(self, other):
4804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4805
 
4806
  def __ne__(self, other):
4807
    return not (self == other)
4808
 
559 chandransh 4809
class userExists_args:
122 ashish 4810
  """
4811
  Attributes:
559 chandransh 4812
   - email
122 ashish 4813
  """
4814
 
4815
  thrift_spec = (
4816
    None, # 0
559 chandransh 4817
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4818
  )
4819
 
559 chandransh 4820
  def __init__(self, email=None,):
4821
    self.email = email
122 ashish 4822
 
4823
  def read(self, iprot):
4824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4826
      return
4827
    iprot.readStructBegin()
4828
    while True:
4829
      (fname, ftype, fid) = iprot.readFieldBegin()
4830
      if ftype == TType.STOP:
4831
        break
4832
      if fid == 1:
4833
        if ftype == TType.STRING:
559 chandransh 4834
          self.email = iprot.readString();
122 ashish 4835
        else:
4836
          iprot.skip(ftype)
559 chandransh 4837
      else:
4838
        iprot.skip(ftype)
4839
      iprot.readFieldEnd()
4840
    iprot.readStructEnd()
4841
 
4842
  def write(self, oprot):
4843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4845
      return
4846
    oprot.writeStructBegin('userExists_args')
3431 rajveer 4847
    if self.email is not None:
559 chandransh 4848
      oprot.writeFieldBegin('email', TType.STRING, 1)
4849
      oprot.writeString(self.email)
4850
      oprot.writeFieldEnd()
4851
    oprot.writeFieldStop()
4852
    oprot.writeStructEnd()
4853
 
3431 rajveer 4854
  def validate(self):
4855
    return
4856
 
4857
 
559 chandransh 4858
  def __repr__(self):
4859
    L = ['%s=%r' % (key, value)
4860
      for key, value in self.__dict__.iteritems()]
4861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4862
 
4863
  def __eq__(self, other):
4864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4865
 
4866
  def __ne__(self, other):
4867
    return not (self == other)
4868
 
4869
class userExists_result:
4870
  """
4871
  Attributes:
4872
   - success
4873
   - ucx
4874
  """
4875
 
4876
  thrift_spec = (
4877
    (0, TType.BOOL, 'success', None, None, ), # 0
4878
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4879
  )
4880
 
4881
  def __init__(self, success=None, ucx=None,):
4882
    self.success = success
4883
    self.ucx = ucx
4884
 
4885
  def read(self, iprot):
4886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4888
      return
4889
    iprot.readStructBegin()
4890
    while True:
4891
      (fname, ftype, fid) = iprot.readFieldBegin()
4892
      if ftype == TType.STOP:
4893
        break
4894
      if fid == 0:
4895
        if ftype == TType.BOOL:
4896
          self.success = iprot.readBool();
4897
        else:
4898
          iprot.skip(ftype)
4899
      elif fid == 1:
4900
        if ftype == TType.STRUCT:
4901
          self.ucx = UserContextException()
4902
          self.ucx.read(iprot)
4903
        else:
4904
          iprot.skip(ftype)
4905
      else:
4906
        iprot.skip(ftype)
4907
      iprot.readFieldEnd()
4908
    iprot.readStructEnd()
4909
 
4910
  def write(self, oprot):
4911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4913
      return
4914
    oprot.writeStructBegin('userExists_result')
3431 rajveer 4915
    if self.success is not None:
559 chandransh 4916
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4917
      oprot.writeBool(self.success)
4918
      oprot.writeFieldEnd()
3431 rajveer 4919
    if self.ucx is not None:
559 chandransh 4920
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4921
      self.ucx.write(oprot)
4922
      oprot.writeFieldEnd()
4923
    oprot.writeFieldStop()
4924
    oprot.writeStructEnd()
4925
 
3431 rajveer 4926
  def validate(self):
4927
    return
4928
 
4929
 
559 chandransh 4930
  def __repr__(self):
4931
    L = ['%s=%r' % (key, value)
4932
      for key, value in self.__dict__.iteritems()]
4933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4934
 
4935
  def __eq__(self, other):
4936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4937
 
4938
  def __ne__(self, other):
4939
    return not (self == other)
4940
 
4941
class addAddressForUser_args:
4942
  """
4943
  Attributes:
4944
   - userId
4945
   - address
4946
   - setDefault
4947
  """
4948
 
4949
  thrift_spec = (
4950
    None, # 0
4951
    (1, TType.I64, 'userId', None, None, ), # 1
4952
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 4953
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 4954
  )
4955
 
567 rajveer 4956
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 4957
    self.userId = userId
4958
    self.address = address
4959
    self.setDefault = setDefault
4960
 
4961
  def read(self, iprot):
4962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4964
      return
4965
    iprot.readStructBegin()
4966
    while True:
4967
      (fname, ftype, fid) = iprot.readFieldBegin()
4968
      if ftype == TType.STOP:
4969
        break
4970
      if fid == 1:
4971
        if ftype == TType.I64:
4972
          self.userId = iprot.readI64();
4973
        else:
4974
          iprot.skip(ftype)
122 ashish 4975
      elif fid == 2:
559 chandransh 4976
        if ftype == TType.STRUCT:
4977
          self.address = Address()
4978
          self.address.read(iprot)
122 ashish 4979
        else:
4980
          iprot.skip(ftype)
4981
      elif fid == 3:
4982
        if ftype == TType.BOOL:
559 chandransh 4983
          self.setDefault = iprot.readBool();
122 ashish 4984
        else:
4985
          iprot.skip(ftype)
4986
      else:
4987
        iprot.skip(ftype)
4988
      iprot.readFieldEnd()
4989
    iprot.readStructEnd()
4990
 
4991
  def write(self, oprot):
4992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4994
      return
559 chandransh 4995
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 4996
    if self.userId is not None:
559 chandransh 4997
      oprot.writeFieldBegin('userId', TType.I64, 1)
4998
      oprot.writeI64(self.userId)
122 ashish 4999
      oprot.writeFieldEnd()
3431 rajveer 5000
    if self.address is not None:
559 chandransh 5001
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5002
      self.address.write(oprot)
122 ashish 5003
      oprot.writeFieldEnd()
3431 rajveer 5004
    if self.setDefault is not None:
567 rajveer 5005
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5006
      oprot.writeBool(self.setDefault)
5007
      oprot.writeFieldEnd()
122 ashish 5008
    oprot.writeFieldStop()
5009
    oprot.writeStructEnd()
5010
 
3431 rajveer 5011
  def validate(self):
5012
    return
5013
 
5014
 
122 ashish 5015
  def __repr__(self):
5016
    L = ['%s=%r' % (key, value)
5017
      for key, value in self.__dict__.iteritems()]
5018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5019
 
5020
  def __eq__(self, other):
5021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5022
 
5023
  def __ne__(self, other):
5024
    return not (self == other)
5025
 
559 chandransh 5026
class addAddressForUser_result:
122 ashish 5027
  """
5028
  Attributes:
5029
   - success
559 chandransh 5030
   - ucx
122 ashish 5031
  """
5032
 
5033
  thrift_spec = (
567 rajveer 5034
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5035
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5036
  )
5037
 
559 chandransh 5038
  def __init__(self, success=None, ucx=None,):
122 ashish 5039
    self.success = success
559 chandransh 5040
    self.ucx = ucx
122 ashish 5041
 
5042
  def read(self, iprot):
5043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5045
      return
5046
    iprot.readStructBegin()
5047
    while True:
5048
      (fname, ftype, fid) = iprot.readFieldBegin()
5049
      if ftype == TType.STOP:
5050
        break
5051
      if fid == 0:
567 rajveer 5052
        if ftype == TType.I64:
5053
          self.success = iprot.readI64();
122 ashish 5054
        else:
5055
          iprot.skip(ftype)
5056
      elif fid == 1:
5057
        if ftype == TType.STRUCT:
559 chandransh 5058
          self.ucx = UserContextException()
5059
          self.ucx.read(iprot)
122 ashish 5060
        else:
5061
          iprot.skip(ftype)
5062
      else:
5063
        iprot.skip(ftype)
5064
      iprot.readFieldEnd()
5065
    iprot.readStructEnd()
5066
 
5067
  def write(self, oprot):
5068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5070
      return
559 chandransh 5071
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5072
    if self.success is not None:
567 rajveer 5073
      oprot.writeFieldBegin('success', TType.I64, 0)
5074
      oprot.writeI64(self.success)
122 ashish 5075
      oprot.writeFieldEnd()
3431 rajveer 5076
    if self.ucx is not None:
559 chandransh 5077
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5078
      self.ucx.write(oprot)
122 ashish 5079
      oprot.writeFieldEnd()
5080
    oprot.writeFieldStop()
5081
    oprot.writeStructEnd()
5082
 
3431 rajveer 5083
  def validate(self):
5084
    return
5085
 
5086
 
122 ashish 5087
  def __repr__(self):
5088
    L = ['%s=%r' % (key, value)
5089
      for key, value in self.__dict__.iteritems()]
5090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5091
 
5092
  def __eq__(self, other):
5093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5094
 
5095
  def __ne__(self, other):
5096
    return not (self == other)
5097
 
559 chandransh 5098
class removeAddressForUser_args:
94 ashish 5099
  """
5100
  Attributes:
559 chandransh 5101
   - userid
5102
   - addressId
94 ashish 5103
  """
5104
 
5105
  thrift_spec = (
5106
    None, # 0
559 chandransh 5107
    (1, TType.I64, 'userid', None, None, ), # 1
5108
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5109
  )
5110
 
559 chandransh 5111
  def __init__(self, userid=None, addressId=None,):
5112
    self.userid = userid
5113
    self.addressId = addressId
94 ashish 5114
 
5115
  def read(self, iprot):
5116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5118
      return
5119
    iprot.readStructBegin()
5120
    while True:
5121
      (fname, ftype, fid) = iprot.readFieldBegin()
5122
      if ftype == TType.STOP:
5123
        break
5124
      if fid == 1:
559 chandransh 5125
        if ftype == TType.I64:
5126
          self.userid = iprot.readI64();
94 ashish 5127
        else:
5128
          iprot.skip(ftype)
559 chandransh 5129
      elif fid == 2:
5130
        if ftype == TType.I64:
5131
          self.addressId = iprot.readI64();
5132
        else:
5133
          iprot.skip(ftype)
94 ashish 5134
      else:
5135
        iprot.skip(ftype)
5136
      iprot.readFieldEnd()
5137
    iprot.readStructEnd()
5138
 
5139
  def write(self, oprot):
5140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5142
      return
559 chandransh 5143
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5144
    if self.userid is not None:
559 chandransh 5145
      oprot.writeFieldBegin('userid', TType.I64, 1)
5146
      oprot.writeI64(self.userid)
94 ashish 5147
      oprot.writeFieldEnd()
3431 rajveer 5148
    if self.addressId is not None:
559 chandransh 5149
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5150
      oprot.writeI64(self.addressId)
5151
      oprot.writeFieldEnd()
94 ashish 5152
    oprot.writeFieldStop()
5153
    oprot.writeStructEnd()
5154
 
3431 rajveer 5155
  def validate(self):
5156
    return
5157
 
5158
 
94 ashish 5159
  def __repr__(self):
5160
    L = ['%s=%r' % (key, value)
5161
      for key, value in self.__dict__.iteritems()]
5162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5163
 
5164
  def __eq__(self, other):
5165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5166
 
5167
  def __ne__(self, other):
5168
    return not (self == other)
5169
 
559 chandransh 5170
class removeAddressForUser_result:
94 ashish 5171
  """
5172
  Attributes:
5173
   - success
5174
   - ucx
5175
  """
5176
 
5177
  thrift_spec = (
5178
    (0, TType.BOOL, 'success', None, None, ), # 0
5179
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5180
  )
5181
 
5182
  def __init__(self, success=None, ucx=None,):
5183
    self.success = success
5184
    self.ucx = ucx
5185
 
5186
  def read(self, iprot):
5187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5189
      return
5190
    iprot.readStructBegin()
5191
    while True:
5192
      (fname, ftype, fid) = iprot.readFieldBegin()
5193
      if ftype == TType.STOP:
5194
        break
5195
      if fid == 0:
5196
        if ftype == TType.BOOL:
5197
          self.success = iprot.readBool();
5198
        else:
5199
          iprot.skip(ftype)
5200
      elif fid == 1:
5201
        if ftype == TType.STRUCT:
5202
          self.ucx = UserContextException()
5203
          self.ucx.read(iprot)
5204
        else:
5205
          iprot.skip(ftype)
5206
      else:
5207
        iprot.skip(ftype)
5208
      iprot.readFieldEnd()
5209
    iprot.readStructEnd()
5210
 
5211
  def write(self, oprot):
5212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5214
      return
559 chandransh 5215
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5216
    if self.success is not None:
94 ashish 5217
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5218
      oprot.writeBool(self.success)
5219
      oprot.writeFieldEnd()
3431 rajveer 5220
    if self.ucx is not None:
94 ashish 5221
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5222
      self.ucx.write(oprot)
5223
      oprot.writeFieldEnd()
5224
    oprot.writeFieldStop()
5225
    oprot.writeStructEnd()
5226
 
3431 rajveer 5227
  def validate(self):
5228
    return
5229
 
5230
 
94 ashish 5231
  def __repr__(self):
5232
    L = ['%s=%r' % (key, value)
5233
      for key, value in self.__dict__.iteritems()]
5234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5235
 
5236
  def __eq__(self, other):
5237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5238
 
5239
  def __ne__(self, other):
5240
    return not (self == other)
5241
 
559 chandransh 5242
class setUserAsLoggedIn_args:
94 ashish 5243
  """
5244
  Attributes:
559 chandransh 5245
   - userId
94 ashish 5246
   - timestamp
5247
  """
5248
 
5249
  thrift_spec = (
5250
    None, # 0
559 chandransh 5251
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5252
    (2, TType.I64, 'timestamp', None, None, ), # 2
5253
  )
5254
 
559 chandransh 5255
  def __init__(self, userId=None, timestamp=None,):
5256
    self.userId = userId
94 ashish 5257
    self.timestamp = timestamp
5258
 
5259
  def read(self, iprot):
5260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5262
      return
5263
    iprot.readStructBegin()
5264
    while True:
5265
      (fname, ftype, fid) = iprot.readFieldBegin()
5266
      if ftype == TType.STOP:
5267
        break
5268
      if fid == 1:
559 chandransh 5269
        if ftype == TType.I64:
5270
          self.userId = iprot.readI64();
94 ashish 5271
        else:
5272
          iprot.skip(ftype)
5273
      elif fid == 2:
5274
        if ftype == TType.I64:
5275
          self.timestamp = iprot.readI64();
5276
        else:
5277
          iprot.skip(ftype)
5278
      else:
5279
        iprot.skip(ftype)
5280
      iprot.readFieldEnd()
5281
    iprot.readStructEnd()
5282
 
5283
  def write(self, oprot):
5284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5286
      return
559 chandransh 5287
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5288
    if self.userId is not None:
559 chandransh 5289
      oprot.writeFieldBegin('userId', TType.I64, 1)
5290
      oprot.writeI64(self.userId)
94 ashish 5291
      oprot.writeFieldEnd()
3431 rajveer 5292
    if self.timestamp is not None:
94 ashish 5293
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5294
      oprot.writeI64(self.timestamp)
5295
      oprot.writeFieldEnd()
5296
    oprot.writeFieldStop()
5297
    oprot.writeStructEnd()
5298
 
3431 rajveer 5299
  def validate(self):
5300
    return
5301
 
5302
 
94 ashish 5303
  def __repr__(self):
5304
    L = ['%s=%r' % (key, value)
5305
      for key, value in self.__dict__.iteritems()]
5306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5307
 
5308
  def __eq__(self, other):
5309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5310
 
5311
  def __ne__(self, other):
5312
    return not (self == other)
5313
 
559 chandransh 5314
class setUserAsLoggedIn_result:
94 ashish 5315
  """
5316
  Attributes:
5317
   - success
5318
   - ucx
5319
  """
5320
 
5321
  thrift_spec = (
5322
    (0, TType.BOOL, 'success', None, None, ), # 0
5323
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5324
  )
5325
 
5326
  def __init__(self, success=None, ucx=None,):
5327
    self.success = success
5328
    self.ucx = ucx
5329
 
5330
  def read(self, iprot):
5331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5333
      return
5334
    iprot.readStructBegin()
5335
    while True:
5336
      (fname, ftype, fid) = iprot.readFieldBegin()
5337
      if ftype == TType.STOP:
5338
        break
5339
      if fid == 0:
5340
        if ftype == TType.BOOL:
5341
          self.success = iprot.readBool();
5342
        else:
5343
          iprot.skip(ftype)
5344
      elif fid == 1:
5345
        if ftype == TType.STRUCT:
5346
          self.ucx = UserContextException()
5347
          self.ucx.read(iprot)
5348
        else:
5349
          iprot.skip(ftype)
5350
      else:
5351
        iprot.skip(ftype)
5352
      iprot.readFieldEnd()
5353
    iprot.readStructEnd()
5354
 
5355
  def write(self, oprot):
5356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5358
      return
559 chandransh 5359
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5360
    if self.success is not None:
94 ashish 5361
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5362
      oprot.writeBool(self.success)
5363
      oprot.writeFieldEnd()
3431 rajveer 5364
    if self.ucx is not None:
94 ashish 5365
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5366
      self.ucx.write(oprot)
5367
      oprot.writeFieldEnd()
5368
    oprot.writeFieldStop()
5369
    oprot.writeStructEnd()
5370
 
3431 rajveer 5371
  def validate(self):
5372
    return
5373
 
5374
 
94 ashish 5375
  def __repr__(self):
5376
    L = ['%s=%r' % (key, value)
5377
      for key, value in self.__dict__.iteritems()]
5378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5379
 
5380
  def __eq__(self, other):
5381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5382
 
5383
  def __ne__(self, other):
5384
    return not (self == other)
5385
 
559 chandransh 5386
class setUserAsLoggedOut_args:
94 ashish 5387
  """
5388
  Attributes:
5389
   - userid
5390
   - timestamp
5391
  """
5392
 
5393
  thrift_spec = (
5394
    None, # 0
559 chandransh 5395
    (1, TType.I64, 'userid', None, None, ), # 1
5396
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5397
  )
5398
 
559 chandransh 5399
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5400
    self.userid = userid
5401
    self.timestamp = timestamp
5402
 
5403
  def read(self, iprot):
5404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5406
      return
5407
    iprot.readStructBegin()
5408
    while True:
5409
      (fname, ftype, fid) = iprot.readFieldBegin()
5410
      if ftype == TType.STOP:
5411
        break
5412
      if fid == 1:
5413
        if ftype == TType.I64:
5414
          self.userid = iprot.readI64();
5415
        else:
5416
          iprot.skip(ftype)
559 chandransh 5417
      elif fid == 2:
94 ashish 5418
        if ftype == TType.I64:
5419
          self.timestamp = iprot.readI64();
5420
        else:
5421
          iprot.skip(ftype)
5422
      else:
5423
        iprot.skip(ftype)
5424
      iprot.readFieldEnd()
5425
    iprot.readStructEnd()
5426
 
5427
  def write(self, oprot):
5428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5430
      return
559 chandransh 5431
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5432
    if self.userid is not None:
559 chandransh 5433
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5434
      oprot.writeI64(self.userid)
5435
      oprot.writeFieldEnd()
3431 rajveer 5436
    if self.timestamp is not None:
559 chandransh 5437
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5438
      oprot.writeI64(self.timestamp)
5439
      oprot.writeFieldEnd()
5440
    oprot.writeFieldStop()
5441
    oprot.writeStructEnd()
5442
 
3431 rajveer 5443
  def validate(self):
5444
    return
5445
 
5446
 
94 ashish 5447
  def __repr__(self):
5448
    L = ['%s=%r' % (key, value)
5449
      for key, value in self.__dict__.iteritems()]
5450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5451
 
5452
  def __eq__(self, other):
5453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5454
 
5455
  def __ne__(self, other):
5456
    return not (self == other)
5457
 
559 chandransh 5458
class setUserAsLoggedOut_result:
94 ashish 5459
  """
5460
  Attributes:
5461
   - success
5462
   - ucx
5463
  """
5464
 
5465
  thrift_spec = (
5466
    (0, TType.BOOL, 'success', None, None, ), # 0
5467
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5468
  )
5469
 
5470
  def __init__(self, success=None, ucx=None,):
5471
    self.success = success
5472
    self.ucx = ucx
5473
 
5474
  def read(self, iprot):
5475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5477
      return
5478
    iprot.readStructBegin()
5479
    while True:
5480
      (fname, ftype, fid) = iprot.readFieldBegin()
5481
      if ftype == TType.STOP:
5482
        break
5483
      if fid == 0:
5484
        if ftype == TType.BOOL:
5485
          self.success = iprot.readBool();
5486
        else:
5487
          iprot.skip(ftype)
5488
      elif fid == 1:
5489
        if ftype == TType.STRUCT:
5490
          self.ucx = UserContextException()
5491
          self.ucx.read(iprot)
5492
        else:
5493
          iprot.skip(ftype)
5494
      else:
5495
        iprot.skip(ftype)
5496
      iprot.readFieldEnd()
5497
    iprot.readStructEnd()
5498
 
5499
  def write(self, oprot):
5500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5502
      return
559 chandransh 5503
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5504
    if self.success is not None:
94 ashish 5505
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5506
      oprot.writeBool(self.success)
5507
      oprot.writeFieldEnd()
3431 rajveer 5508
    if self.ucx is not None:
94 ashish 5509
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5510
      self.ucx.write(oprot)
5511
      oprot.writeFieldEnd()
5512
    oprot.writeFieldStop()
5513
    oprot.writeStructEnd()
5514
 
3431 rajveer 5515
  def validate(self):
5516
    return
5517
 
5518
 
94 ashish 5519
  def __repr__(self):
5520
    L = ['%s=%r' % (key, value)
5521
      for key, value in self.__dict__.iteritems()]
5522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5523
 
5524
  def __eq__(self, other):
5525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5526
 
5527
  def __ne__(self, other):
5528
    return not (self == other)
5529
 
559 chandransh 5530
class setDefaultAddress_args:
94 ashish 5531
  """
5532
  Attributes:
5533
   - userid
5534
   - addressId
5535
  """
5536
 
5537
  thrift_spec = (
5538
    None, # 0
5539
    (1, TType.I64, 'userid', None, None, ), # 1
5540
    (2, TType.I64, 'addressId', None, None, ), # 2
5541
  )
5542
 
5543
  def __init__(self, userid=None, addressId=None,):
5544
    self.userid = userid
5545
    self.addressId = addressId
5546
 
5547
  def read(self, iprot):
5548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5550
      return
5551
    iprot.readStructBegin()
5552
    while True:
5553
      (fname, ftype, fid) = iprot.readFieldBegin()
5554
      if ftype == TType.STOP:
5555
        break
5556
      if fid == 1:
5557
        if ftype == TType.I64:
5558
          self.userid = iprot.readI64();
5559
        else:
5560
          iprot.skip(ftype)
5561
      elif fid == 2:
5562
        if ftype == TType.I64:
5563
          self.addressId = iprot.readI64();
5564
        else:
5565
          iprot.skip(ftype)
5566
      else:
5567
        iprot.skip(ftype)
5568
      iprot.readFieldEnd()
5569
    iprot.readStructEnd()
5570
 
5571
  def write(self, oprot):
5572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5574
      return
559 chandransh 5575
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5576
    if self.userid is not None:
94 ashish 5577
      oprot.writeFieldBegin('userid', TType.I64, 1)
5578
      oprot.writeI64(self.userid)
5579
      oprot.writeFieldEnd()
3431 rajveer 5580
    if self.addressId is not None:
94 ashish 5581
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5582
      oprot.writeI64(self.addressId)
5583
      oprot.writeFieldEnd()
5584
    oprot.writeFieldStop()
5585
    oprot.writeStructEnd()
5586
 
3431 rajveer 5587
  def validate(self):
5588
    return
5589
 
5590
 
94 ashish 5591
  def __repr__(self):
5592
    L = ['%s=%r' % (key, value)
5593
      for key, value in self.__dict__.iteritems()]
5594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5595
 
5596
  def __eq__(self, other):
5597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5598
 
5599
  def __ne__(self, other):
5600
    return not (self == other)
5601
 
559 chandransh 5602
class setDefaultAddress_result:
94 ashish 5603
  """
5604
  Attributes:
5605
   - success
5606
   - ucx
5607
  """
5608
 
5609
  thrift_spec = (
5610
    (0, TType.BOOL, 'success', None, None, ), # 0
5611
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5612
  )
5613
 
5614
  def __init__(self, success=None, ucx=None,):
5615
    self.success = success
5616
    self.ucx = ucx
5617
 
5618
  def read(self, iprot):
5619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5621
      return
5622
    iprot.readStructBegin()
5623
    while True:
5624
      (fname, ftype, fid) = iprot.readFieldBegin()
5625
      if ftype == TType.STOP:
5626
        break
5627
      if fid == 0:
5628
        if ftype == TType.BOOL:
5629
          self.success = iprot.readBool();
5630
        else:
5631
          iprot.skip(ftype)
5632
      elif fid == 1:
5633
        if ftype == TType.STRUCT:
5634
          self.ucx = UserContextException()
5635
          self.ucx.read(iprot)
5636
        else:
5637
          iprot.skip(ftype)
5638
      else:
5639
        iprot.skip(ftype)
5640
      iprot.readFieldEnd()
5641
    iprot.readStructEnd()
5642
 
5643
  def write(self, oprot):
5644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5646
      return
559 chandransh 5647
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5648
    if self.success is not None:
94 ashish 5649
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5650
      oprot.writeBool(self.success)
5651
      oprot.writeFieldEnd()
3431 rajveer 5652
    if self.ucx is not None:
94 ashish 5653
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5654
      self.ucx.write(oprot)
5655
      oprot.writeFieldEnd()
5656
    oprot.writeFieldStop()
5657
    oprot.writeStructEnd()
5658
 
3431 rajveer 5659
  def validate(self):
5660
    return
5661
 
5662
 
94 ashish 5663
  def __repr__(self):
5664
    L = ['%s=%r' % (key, value)
5665
      for key, value in self.__dict__.iteritems()]
5666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5667
 
5668
  def __eq__(self, other):
5669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5670
 
5671
  def __ne__(self, other):
5672
    return not (self == other)
5673
 
559 chandransh 5674
class updatePassword_args:
94 ashish 5675
  """
5676
  Attributes:
559 chandransh 5677
   - userid
594 rajveer 5678
   - oldPassword
5679
   - newPassword
94 ashish 5680
  """
5681
 
5682
  thrift_spec = (
5683
    None, # 0
559 chandransh 5684
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5685
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5686
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5687
  )
5688
 
594 rajveer 5689
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5690
    self.userid = userid
594 rajveer 5691
    self.oldPassword = oldPassword
5692
    self.newPassword = newPassword
94 ashish 5693
 
5694
  def read(self, iprot):
5695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5697
      return
5698
    iprot.readStructBegin()
5699
    while True:
5700
      (fname, ftype, fid) = iprot.readFieldBegin()
5701
      if ftype == TType.STOP:
5702
        break
5703
      if fid == 1:
5704
        if ftype == TType.I64:
559 chandransh 5705
          self.userid = iprot.readI64();
94 ashish 5706
        else:
5707
          iprot.skip(ftype)
5708
      elif fid == 2:
559 chandransh 5709
        if ftype == TType.STRING:
594 rajveer 5710
          self.oldPassword = iprot.readString();
94 ashish 5711
        else:
5712
          iprot.skip(ftype)
594 rajveer 5713
      elif fid == 3:
5714
        if ftype == TType.STRING:
5715
          self.newPassword = iprot.readString();
5716
        else:
5717
          iprot.skip(ftype)
94 ashish 5718
      else:
5719
        iprot.skip(ftype)
5720
      iprot.readFieldEnd()
5721
    iprot.readStructEnd()
5722
 
5723
  def write(self, oprot):
5724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5726
      return
559 chandransh 5727
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5728
    if self.userid is not None:
559 chandransh 5729
      oprot.writeFieldBegin('userid', TType.I64, 1)
5730
      oprot.writeI64(self.userid)
94 ashish 5731
      oprot.writeFieldEnd()
3431 rajveer 5732
    if self.oldPassword is not None:
594 rajveer 5733
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5734
      oprot.writeString(self.oldPassword)
94 ashish 5735
      oprot.writeFieldEnd()
3431 rajveer 5736
    if self.newPassword is not None:
594 rajveer 5737
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5738
      oprot.writeString(self.newPassword)
5739
      oprot.writeFieldEnd()
94 ashish 5740
    oprot.writeFieldStop()
5741
    oprot.writeStructEnd()
5742
 
3431 rajveer 5743
  def validate(self):
5744
    return
5745
 
5746
 
94 ashish 5747
  def __repr__(self):
5748
    L = ['%s=%r' % (key, value)
5749
      for key, value in self.__dict__.iteritems()]
5750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5751
 
5752
  def __eq__(self, other):
5753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5754
 
5755
  def __ne__(self, other):
5756
    return not (self == other)
5757
 
559 chandransh 5758
class updatePassword_result:
94 ashish 5759
  """
5760
  Attributes:
5761
   - success
5762
   - ucx
5763
  """
5764
 
5765
  thrift_spec = (
5766
    (0, TType.BOOL, 'success', None, None, ), # 0
5767
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5768
  )
5769
 
5770
  def __init__(self, success=None, ucx=None,):
5771
    self.success = success
5772
    self.ucx = ucx
5773
 
5774
  def read(self, iprot):
5775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5777
      return
5778
    iprot.readStructBegin()
5779
    while True:
5780
      (fname, ftype, fid) = iprot.readFieldBegin()
5781
      if ftype == TType.STOP:
5782
        break
5783
      if fid == 0:
5784
        if ftype == TType.BOOL:
5785
          self.success = iprot.readBool();
5786
        else:
5787
          iprot.skip(ftype)
5788
      elif fid == 1:
5789
        if ftype == TType.STRUCT:
5790
          self.ucx = UserContextException()
5791
          self.ucx.read(iprot)
5792
        else:
5793
          iprot.skip(ftype)
5794
      else:
5795
        iprot.skip(ftype)
5796
      iprot.readFieldEnd()
5797
    iprot.readStructEnd()
5798
 
5799
  def write(self, oprot):
5800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5802
      return
559 chandransh 5803
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5804
    if self.success is not None:
94 ashish 5805
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5806
      oprot.writeBool(self.success)
5807
      oprot.writeFieldEnd()
3431 rajveer 5808
    if self.ucx is not None:
94 ashish 5809
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5810
      self.ucx.write(oprot)
5811
      oprot.writeFieldEnd()
5812
    oprot.writeFieldStop()
5813
    oprot.writeStructEnd()
5814
 
3431 rajveer 5815
  def validate(self):
5816
    return
5817
 
5818
 
94 ashish 5819
  def __repr__(self):
5820
    L = ['%s=%r' % (key, value)
5821
      for key, value in self.__dict__.iteritems()]
5822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5823
 
5824
  def __eq__(self, other):
5825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5826
 
5827
  def __ne__(self, other):
5828
    return not (self == other)
5829
 
581 rajveer 5830
class forgotPassword_args:
5831
  """
5832
  Attributes:
5833
   - email
884 rajveer 5834
   - newPassword
581 rajveer 5835
  """
5836
 
5837
  thrift_spec = (
5838
    None, # 0
5839
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 5840
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 5841
  )
5842
 
884 rajveer 5843
  def __init__(self, email=None, newPassword=None,):
581 rajveer 5844
    self.email = email
884 rajveer 5845
    self.newPassword = newPassword
581 rajveer 5846
 
5847
  def read(self, iprot):
5848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5850
      return
5851
    iprot.readStructBegin()
5852
    while True:
5853
      (fname, ftype, fid) = iprot.readFieldBegin()
5854
      if ftype == TType.STOP:
5855
        break
5856
      if fid == 1:
5857
        if ftype == TType.STRING:
5858
          self.email = iprot.readString();
5859
        else:
5860
          iprot.skip(ftype)
884 rajveer 5861
      elif fid == 2:
5862
        if ftype == TType.STRING:
5863
          self.newPassword = iprot.readString();
5864
        else:
5865
          iprot.skip(ftype)
581 rajveer 5866
      else:
5867
        iprot.skip(ftype)
5868
      iprot.readFieldEnd()
5869
    iprot.readStructEnd()
5870
 
5871
  def write(self, oprot):
5872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5874
      return
5875
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 5876
    if self.email is not None:
581 rajveer 5877
      oprot.writeFieldBegin('email', TType.STRING, 1)
5878
      oprot.writeString(self.email)
5879
      oprot.writeFieldEnd()
3431 rajveer 5880
    if self.newPassword is not None:
884 rajveer 5881
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
5882
      oprot.writeString(self.newPassword)
5883
      oprot.writeFieldEnd()
581 rajveer 5884
    oprot.writeFieldStop()
5885
    oprot.writeStructEnd()
5886
 
3431 rajveer 5887
  def validate(self):
5888
    return
5889
 
5890
 
581 rajveer 5891
  def __repr__(self):
5892
    L = ['%s=%r' % (key, value)
5893
      for key, value in self.__dict__.iteritems()]
5894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5895
 
5896
  def __eq__(self, other):
5897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5898
 
5899
  def __ne__(self, other):
5900
    return not (self == other)
5901
 
5902
class forgotPassword_result:
5903
  """
5904
  Attributes:
5905
   - success
5906
   - ucx
5907
  """
5908
 
5909
  thrift_spec = (
5910
    (0, TType.BOOL, 'success', None, None, ), # 0
5911
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5912
  )
5913
 
5914
  def __init__(self, success=None, ucx=None,):
5915
    self.success = success
5916
    self.ucx = ucx
5917
 
5918
  def read(self, iprot):
5919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5921
      return
5922
    iprot.readStructBegin()
5923
    while True:
5924
      (fname, ftype, fid) = iprot.readFieldBegin()
5925
      if ftype == TType.STOP:
5926
        break
5927
      if fid == 0:
5928
        if ftype == TType.BOOL:
5929
          self.success = iprot.readBool();
5930
        else:
5931
          iprot.skip(ftype)
5932
      elif fid == 1:
5933
        if ftype == TType.STRUCT:
5934
          self.ucx = UserContextException()
5935
          self.ucx.read(iprot)
5936
        else:
5937
          iprot.skip(ftype)
5938
      else:
5939
        iprot.skip(ftype)
5940
      iprot.readFieldEnd()
5941
    iprot.readStructEnd()
5942
 
5943
  def write(self, oprot):
5944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5946
      return
5947
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 5948
    if self.success is not None:
581 rajveer 5949
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5950
      oprot.writeBool(self.success)
5951
      oprot.writeFieldEnd()
3431 rajveer 5952
    if self.ucx is not None:
581 rajveer 5953
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5954
      self.ucx.write(oprot)
5955
      oprot.writeFieldEnd()
5956
    oprot.writeFieldStop()
5957
    oprot.writeStructEnd()
5958
 
3431 rajveer 5959
  def validate(self):
5960
    return
5961
 
5962
 
581 rajveer 5963
  def __repr__(self):
5964
    L = ['%s=%r' % (key, value)
5965
      for key, value in self.__dict__.iteritems()]
5966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5967
 
5968
  def __eq__(self, other):
5969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5970
 
5971
  def __ne__(self, other):
5972
    return not (self == other)
5973
 
594 rajveer 5974
class getAllAddressesForUser_args:
5975
  """
5976
  Attributes:
5977
   - userId
5978
  """
5979
 
5980
  thrift_spec = (
5981
    None, # 0
5982
    (1, TType.I64, 'userId', None, None, ), # 1
5983
  )
5984
 
5985
  def __init__(self, userId=None,):
5986
    self.userId = userId
5987
 
5988
  def read(self, iprot):
5989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5991
      return
5992
    iprot.readStructBegin()
5993
    while True:
5994
      (fname, ftype, fid) = iprot.readFieldBegin()
5995
      if ftype == TType.STOP:
5996
        break
5997
      if fid == 1:
5998
        if ftype == TType.I64:
5999
          self.userId = iprot.readI64();
6000
        else:
6001
          iprot.skip(ftype)
6002
      else:
6003
        iprot.skip(ftype)
6004
      iprot.readFieldEnd()
6005
    iprot.readStructEnd()
6006
 
6007
  def write(self, oprot):
6008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6010
      return
6011
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6012
    if self.userId is not None:
594 rajveer 6013
      oprot.writeFieldBegin('userId', TType.I64, 1)
6014
      oprot.writeI64(self.userId)
6015
      oprot.writeFieldEnd()
6016
    oprot.writeFieldStop()
6017
    oprot.writeStructEnd()
6018
 
3431 rajveer 6019
  def validate(self):
6020
    return
6021
 
6022
 
594 rajveer 6023
  def __repr__(self):
6024
    L = ['%s=%r' % (key, value)
6025
      for key, value in self.__dict__.iteritems()]
6026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6027
 
6028
  def __eq__(self, other):
6029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6030
 
6031
  def __ne__(self, other):
6032
    return not (self == other)
6033
 
6034
class getAllAddressesForUser_result:
6035
  """
6036
  Attributes:
6037
   - success
6038
   - ucx
6039
  """
6040
 
6041
  thrift_spec = (
6042
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6043
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6044
  )
6045
 
6046
  def __init__(self, success=None, ucx=None,):
6047
    self.success = success
6048
    self.ucx = ucx
6049
 
6050
  def read(self, iprot):
6051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6053
      return
6054
    iprot.readStructBegin()
6055
    while True:
6056
      (fname, ftype, fid) = iprot.readFieldBegin()
6057
      if ftype == TType.STOP:
6058
        break
6059
      if fid == 0:
6060
        if ftype == TType.LIST:
6061
          self.success = []
5326 rajveer 6062
          (_etype61, _size58) = iprot.readListBegin()
6063
          for _i62 in xrange(_size58):
6064
            _elem63 = Address()
6065
            _elem63.read(iprot)
6066
            self.success.append(_elem63)
594 rajveer 6067
          iprot.readListEnd()
6068
        else:
6069
          iprot.skip(ftype)
6070
      elif fid == 1:
6071
        if ftype == TType.STRUCT:
6072
          self.ucx = UserContextException()
6073
          self.ucx.read(iprot)
6074
        else:
6075
          iprot.skip(ftype)
6076
      else:
6077
        iprot.skip(ftype)
6078
      iprot.readFieldEnd()
6079
    iprot.readStructEnd()
6080
 
6081
  def write(self, oprot):
6082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6084
      return
6085
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6086
    if self.success is not None:
594 rajveer 6087
      oprot.writeFieldBegin('success', TType.LIST, 0)
6088
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6089
      for iter64 in self.success:
6090
        iter64.write(oprot)
594 rajveer 6091
      oprot.writeListEnd()
6092
      oprot.writeFieldEnd()
3431 rajveer 6093
    if self.ucx is not None:
594 rajveer 6094
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6095
      self.ucx.write(oprot)
6096
      oprot.writeFieldEnd()
6097
    oprot.writeFieldStop()
6098
    oprot.writeStructEnd()
6099
 
3431 rajveer 6100
  def validate(self):
6101
    return
6102
 
6103
 
594 rajveer 6104
  def __repr__(self):
6105
    L = ['%s=%r' % (key, value)
6106
      for key, value in self.__dict__.iteritems()]
6107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6108
 
6109
  def __eq__(self, other):
6110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6111
 
6112
  def __ne__(self, other):
6113
    return not (self == other)
6114
 
1894 vikas 6115
class getAddressById_args:
6116
  """
6117
  Attributes:
6118
   - addressId
6119
  """
6120
 
6121
  thrift_spec = (
6122
    None, # 0
6123
    (1, TType.I64, 'addressId', None, None, ), # 1
6124
  )
6125
 
6126
  def __init__(self, addressId=None,):
6127
    self.addressId = addressId
6128
 
6129
  def read(self, iprot):
6130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6132
      return
6133
    iprot.readStructBegin()
6134
    while True:
6135
      (fname, ftype, fid) = iprot.readFieldBegin()
6136
      if ftype == TType.STOP:
6137
        break
6138
      if fid == 1:
6139
        if ftype == TType.I64:
6140
          self.addressId = iprot.readI64();
6141
        else:
6142
          iprot.skip(ftype)
6143
      else:
6144
        iprot.skip(ftype)
6145
      iprot.readFieldEnd()
6146
    iprot.readStructEnd()
6147
 
6148
  def write(self, oprot):
6149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6151
      return
6152
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6153
    if self.addressId is not None:
1894 vikas 6154
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6155
      oprot.writeI64(self.addressId)
6156
      oprot.writeFieldEnd()
6157
    oprot.writeFieldStop()
6158
    oprot.writeStructEnd()
6159
 
3431 rajveer 6160
  def validate(self):
6161
    return
6162
 
6163
 
1894 vikas 6164
  def __repr__(self):
6165
    L = ['%s=%r' % (key, value)
6166
      for key, value in self.__dict__.iteritems()]
6167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6168
 
6169
  def __eq__(self, other):
6170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6171
 
6172
  def __ne__(self, other):
6173
    return not (self == other)
6174
 
6175
class getAddressById_result:
6176
  """
6177
  Attributes:
6178
   - success
6179
   - ucx
6180
  """
6181
 
6182
  thrift_spec = (
6183
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6184
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6185
  )
6186
 
6187
  def __init__(self, success=None, ucx=None,):
6188
    self.success = success
6189
    self.ucx = ucx
6190
 
6191
  def read(self, iprot):
6192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6194
      return
6195
    iprot.readStructBegin()
6196
    while True:
6197
      (fname, ftype, fid) = iprot.readFieldBegin()
6198
      if ftype == TType.STOP:
6199
        break
6200
      if fid == 0:
6201
        if ftype == TType.STRUCT:
6202
          self.success = Address()
6203
          self.success.read(iprot)
6204
        else:
6205
          iprot.skip(ftype)
6206
      elif fid == 1:
6207
        if ftype == TType.STRUCT:
6208
          self.ucx = UserContextException()
6209
          self.ucx.read(iprot)
6210
        else:
6211
          iprot.skip(ftype)
6212
      else:
6213
        iprot.skip(ftype)
6214
      iprot.readFieldEnd()
6215
    iprot.readStructEnd()
6216
 
6217
  def write(self, oprot):
6218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6220
      return
6221
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6222
    if self.success is not None:
1894 vikas 6223
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6224
      self.success.write(oprot)
6225
      oprot.writeFieldEnd()
3431 rajveer 6226
    if self.ucx is not None:
1894 vikas 6227
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6228
      self.ucx.write(oprot)
6229
      oprot.writeFieldEnd()
6230
    oprot.writeFieldStop()
6231
    oprot.writeStructEnd()
6232
 
3431 rajveer 6233
  def validate(self):
6234
    return
6235
 
6236
 
1894 vikas 6237
  def __repr__(self):
6238
    L = ['%s=%r' % (key, value)
6239
      for key, value in self.__dict__.iteritems()]
6240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6241
 
6242
  def __eq__(self, other):
6243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6244
 
6245
  def __ne__(self, other):
6246
    return not (self == other)
6247
 
594 rajveer 6248
class getDefaultAddressId_args:
6249
  """
6250
  Attributes:
6251
   - userId
6252
  """
6253
 
6254
  thrift_spec = (
6255
    None, # 0
6256
    (1, TType.I64, 'userId', None, None, ), # 1
6257
  )
6258
 
6259
  def __init__(self, userId=None,):
6260
    self.userId = userId
6261
 
6262
  def read(self, iprot):
6263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6265
      return
6266
    iprot.readStructBegin()
6267
    while True:
6268
      (fname, ftype, fid) = iprot.readFieldBegin()
6269
      if ftype == TType.STOP:
6270
        break
6271
      if fid == 1:
6272
        if ftype == TType.I64:
6273
          self.userId = iprot.readI64();
6274
        else:
6275
          iprot.skip(ftype)
6276
      else:
6277
        iprot.skip(ftype)
6278
      iprot.readFieldEnd()
6279
    iprot.readStructEnd()
6280
 
6281
  def write(self, oprot):
6282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6284
      return
6285
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6286
    if self.userId is not None:
594 rajveer 6287
      oprot.writeFieldBegin('userId', TType.I64, 1)
6288
      oprot.writeI64(self.userId)
6289
      oprot.writeFieldEnd()
6290
    oprot.writeFieldStop()
6291
    oprot.writeStructEnd()
6292
 
3431 rajveer 6293
  def validate(self):
6294
    return
6295
 
6296
 
594 rajveer 6297
  def __repr__(self):
6298
    L = ['%s=%r' % (key, value)
6299
      for key, value in self.__dict__.iteritems()]
6300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6301
 
6302
  def __eq__(self, other):
6303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6304
 
6305
  def __ne__(self, other):
6306
    return not (self == other)
6307
 
6308
class getDefaultAddressId_result:
6309
  """
6310
  Attributes:
6311
   - success
6312
   - ucx
6313
  """
6314
 
6315
  thrift_spec = (
6316
    (0, TType.I64, 'success', None, None, ), # 0
6317
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6318
  )
6319
 
6320
  def __init__(self, success=None, ucx=None,):
6321
    self.success = success
6322
    self.ucx = ucx
6323
 
6324
  def read(self, iprot):
6325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6327
      return
6328
    iprot.readStructBegin()
6329
    while True:
6330
      (fname, ftype, fid) = iprot.readFieldBegin()
6331
      if ftype == TType.STOP:
6332
        break
6333
      if fid == 0:
6334
        if ftype == TType.I64:
6335
          self.success = iprot.readI64();
6336
        else:
6337
          iprot.skip(ftype)
6338
      elif fid == 1:
6339
        if ftype == TType.STRUCT:
6340
          self.ucx = UserContextException()
6341
          self.ucx.read(iprot)
6342
        else:
6343
          iprot.skip(ftype)
6344
      else:
6345
        iprot.skip(ftype)
6346
      iprot.readFieldEnd()
6347
    iprot.readStructEnd()
6348
 
6349
  def write(self, oprot):
6350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6352
      return
6353
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6354
    if self.success is not None:
594 rajveer 6355
      oprot.writeFieldBegin('success', TType.I64, 0)
6356
      oprot.writeI64(self.success)
6357
      oprot.writeFieldEnd()
3431 rajveer 6358
    if self.ucx is not None:
594 rajveer 6359
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6360
      self.ucx.write(oprot)
6361
      oprot.writeFieldEnd()
6362
    oprot.writeFieldStop()
6363
    oprot.writeStructEnd()
6364
 
3431 rajveer 6365
  def validate(self):
6366
    return
6367
 
6368
 
594 rajveer 6369
  def __repr__(self):
6370
    L = ['%s=%r' % (key, value)
6371
      for key, value in self.__dict__.iteritems()]
6372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6373
 
6374
  def __eq__(self, other):
6375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6376
 
6377
  def __ne__(self, other):
6378
    return not (self == other)
6379
 
785 rajveer 6380
class getDefaultPincode_args:
6381
  """
6382
  Attributes:
6383
   - userId
6384
  """
6385
 
6386
  thrift_spec = (
6387
    None, # 0
6388
    (1, TType.I64, 'userId', None, None, ), # 1
6389
  )
6390
 
6391
  def __init__(self, userId=None,):
6392
    self.userId = userId
6393
 
6394
  def read(self, iprot):
6395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6397
      return
6398
    iprot.readStructBegin()
6399
    while True:
6400
      (fname, ftype, fid) = iprot.readFieldBegin()
6401
      if ftype == TType.STOP:
6402
        break
6403
      if fid == 1:
6404
        if ftype == TType.I64:
6405
          self.userId = iprot.readI64();
6406
        else:
6407
          iprot.skip(ftype)
6408
      else:
6409
        iprot.skip(ftype)
6410
      iprot.readFieldEnd()
6411
    iprot.readStructEnd()
6412
 
6413
  def write(self, oprot):
6414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6416
      return
6417
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6418
    if self.userId is not None:
785 rajveer 6419
      oprot.writeFieldBegin('userId', TType.I64, 1)
6420
      oprot.writeI64(self.userId)
6421
      oprot.writeFieldEnd()
6422
    oprot.writeFieldStop()
6423
    oprot.writeStructEnd()
6424
 
3431 rajveer 6425
  def validate(self):
6426
    return
6427
 
6428
 
785 rajveer 6429
  def __repr__(self):
6430
    L = ['%s=%r' % (key, value)
6431
      for key, value in self.__dict__.iteritems()]
6432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6433
 
6434
  def __eq__(self, other):
6435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6436
 
6437
  def __ne__(self, other):
6438
    return not (self == other)
6439
 
6440
class getDefaultPincode_result:
6441
  """
6442
  Attributes:
6443
   - success
6444
   - ucx
6445
  """
6446
 
6447
  thrift_spec = (
6448
    (0, TType.STRING, 'success', None, None, ), # 0
6449
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6450
  )
6451
 
6452
  def __init__(self, success=None, ucx=None,):
6453
    self.success = success
6454
    self.ucx = ucx
6455
 
6456
  def read(self, iprot):
6457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6459
      return
6460
    iprot.readStructBegin()
6461
    while True:
6462
      (fname, ftype, fid) = iprot.readFieldBegin()
6463
      if ftype == TType.STOP:
6464
        break
6465
      if fid == 0:
6466
        if ftype == TType.STRING:
6467
          self.success = iprot.readString();
6468
        else:
6469
          iprot.skip(ftype)
6470
      elif fid == 1:
6471
        if ftype == TType.STRUCT:
6472
          self.ucx = UserContextException()
6473
          self.ucx.read(iprot)
6474
        else:
6475
          iprot.skip(ftype)
6476
      else:
6477
        iprot.skip(ftype)
6478
      iprot.readFieldEnd()
6479
    iprot.readStructEnd()
6480
 
6481
  def write(self, oprot):
6482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6484
      return
6485
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6486
    if self.success is not None:
785 rajveer 6487
      oprot.writeFieldBegin('success', TType.STRING, 0)
6488
      oprot.writeString(self.success)
6489
      oprot.writeFieldEnd()
3431 rajveer 6490
    if self.ucx is not None:
785 rajveer 6491
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6492
      self.ucx.write(oprot)
6493
      oprot.writeFieldEnd()
6494
    oprot.writeFieldStop()
6495
    oprot.writeStructEnd()
6496
 
3431 rajveer 6497
  def validate(self):
6498
    return
6499
 
6500
 
785 rajveer 6501
  def __repr__(self):
6502
    L = ['%s=%r' % (key, value)
6503
      for key, value in self.__dict__.iteritems()]
6504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6505
 
6506
  def __eq__(self, other):
6507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6508
 
6509
  def __ne__(self, other):
6510
    return not (self == other)
6511
 
1274 varun.gupt 6512
class saveUserCommunication_args:
6513
  """
6514
  Attributes:
6515
   - userId
6516
   - replyTo
6517
   - communicationType
6518
   - orderId
6519
   - airwaybillNo
6520
   - productName
6521
   - subject
6522
   - message
6523
  """
6524
 
6525
  thrift_spec = (
6526
    None, # 0
6527
    (1, TType.I64, 'userId', None, None, ), # 1
6528
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6529
    (3, TType.I64, 'communicationType', None, None, ), # 3
6530
    (4, TType.I64, 'orderId', None, None, ), # 4
6531
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6532
    (6, TType.STRING, 'productName', None, None, ), # 6
6533
    (7, TType.STRING, 'subject', None, None, ), # 7
6534
    (8, TType.STRING, 'message', None, None, ), # 8
6535
  )
6536
 
6537
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6538
    self.userId = userId
6539
    self.replyTo = replyTo
6540
    self.communicationType = communicationType
6541
    self.orderId = orderId
6542
    self.airwaybillNo = airwaybillNo
6543
    self.productName = productName
6544
    self.subject = subject
6545
    self.message = message
6546
 
6547
  def read(self, iprot):
6548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6550
      return
6551
    iprot.readStructBegin()
6552
    while True:
6553
      (fname, ftype, fid) = iprot.readFieldBegin()
6554
      if ftype == TType.STOP:
6555
        break
6556
      if fid == 1:
6557
        if ftype == TType.I64:
6558
          self.userId = iprot.readI64();
6559
        else:
6560
          iprot.skip(ftype)
6561
      elif fid == 2:
6562
        if ftype == TType.STRING:
6563
          self.replyTo = iprot.readString();
6564
        else:
6565
          iprot.skip(ftype)
6566
      elif fid == 3:
6567
        if ftype == TType.I64:
6568
          self.communicationType = iprot.readI64();
6569
        else:
6570
          iprot.skip(ftype)
6571
      elif fid == 4:
6572
        if ftype == TType.I64:
6573
          self.orderId = iprot.readI64();
6574
        else:
6575
          iprot.skip(ftype)
6576
      elif fid == 5:
6577
        if ftype == TType.STRING:
6578
          self.airwaybillNo = iprot.readString();
6579
        else:
6580
          iprot.skip(ftype)
6581
      elif fid == 6:
6582
        if ftype == TType.STRING:
6583
          self.productName = iprot.readString();
6584
        else:
6585
          iprot.skip(ftype)
6586
      elif fid == 7:
6587
        if ftype == TType.STRING:
6588
          self.subject = iprot.readString();
6589
        else:
6590
          iprot.skip(ftype)
6591
      elif fid == 8:
6592
        if ftype == TType.STRING:
6593
          self.message = iprot.readString();
6594
        else:
6595
          iprot.skip(ftype)
6596
      else:
6597
        iprot.skip(ftype)
6598
      iprot.readFieldEnd()
6599
    iprot.readStructEnd()
6600
 
6601
  def write(self, oprot):
6602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6604
      return
6605
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6606
    if self.userId is not None:
1274 varun.gupt 6607
      oprot.writeFieldBegin('userId', TType.I64, 1)
6608
      oprot.writeI64(self.userId)
6609
      oprot.writeFieldEnd()
3431 rajveer 6610
    if self.replyTo is not None:
1274 varun.gupt 6611
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6612
      oprot.writeString(self.replyTo)
6613
      oprot.writeFieldEnd()
3431 rajveer 6614
    if self.communicationType is not None:
1274 varun.gupt 6615
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6616
      oprot.writeI64(self.communicationType)
6617
      oprot.writeFieldEnd()
3431 rajveer 6618
    if self.orderId is not None:
1274 varun.gupt 6619
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6620
      oprot.writeI64(self.orderId)
6621
      oprot.writeFieldEnd()
3431 rajveer 6622
    if self.airwaybillNo is not None:
1274 varun.gupt 6623
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6624
      oprot.writeString(self.airwaybillNo)
6625
      oprot.writeFieldEnd()
3431 rajveer 6626
    if self.productName is not None:
1274 varun.gupt 6627
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6628
      oprot.writeString(self.productName)
6629
      oprot.writeFieldEnd()
3431 rajveer 6630
    if self.subject is not None:
1274 varun.gupt 6631
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6632
      oprot.writeString(self.subject)
6633
      oprot.writeFieldEnd()
3431 rajveer 6634
    if self.message is not None:
1274 varun.gupt 6635
      oprot.writeFieldBegin('message', TType.STRING, 8)
6636
      oprot.writeString(self.message)
6637
      oprot.writeFieldEnd()
6638
    oprot.writeFieldStop()
6639
    oprot.writeStructEnd()
6640
 
3431 rajveer 6641
  def validate(self):
6642
    return
6643
 
6644
 
1274 varun.gupt 6645
  def __repr__(self):
6646
    L = ['%s=%r' % (key, value)
6647
      for key, value in self.__dict__.iteritems()]
6648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6649
 
6650
  def __eq__(self, other):
6651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6652
 
6653
  def __ne__(self, other):
6654
    return not (self == other)
6655
 
6656
class saveUserCommunication_result:
6657
  """
6658
  Attributes:
6659
   - success
6660
   - ucx
6661
  """
6662
 
6663
  thrift_spec = (
6664
    (0, TType.BOOL, 'success', None, None, ), # 0
6665
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6666
  )
6667
 
6668
  def __init__(self, success=None, ucx=None,):
6669
    self.success = success
6670
    self.ucx = ucx
6671
 
6672
  def read(self, iprot):
6673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6675
      return
6676
    iprot.readStructBegin()
6677
    while True:
6678
      (fname, ftype, fid) = iprot.readFieldBegin()
6679
      if ftype == TType.STOP:
6680
        break
6681
      if fid == 0:
6682
        if ftype == TType.BOOL:
6683
          self.success = iprot.readBool();
6684
        else:
6685
          iprot.skip(ftype)
6686
      elif fid == 1:
6687
        if ftype == TType.STRUCT:
6688
          self.ucx = UserCommunicationException()
6689
          self.ucx.read(iprot)
6690
        else:
6691
          iprot.skip(ftype)
6692
      else:
6693
        iprot.skip(ftype)
6694
      iprot.readFieldEnd()
6695
    iprot.readStructEnd()
6696
 
6697
  def write(self, oprot):
6698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6700
      return
6701
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6702
    if self.success is not None:
1274 varun.gupt 6703
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6704
      oprot.writeBool(self.success)
6705
      oprot.writeFieldEnd()
3431 rajveer 6706
    if self.ucx is not None:
1274 varun.gupt 6707
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6708
      self.ucx.write(oprot)
6709
      oprot.writeFieldEnd()
6710
    oprot.writeFieldStop()
6711
    oprot.writeStructEnd()
6712
 
3431 rajveer 6713
  def validate(self):
6714
    return
6715
 
6716
 
1274 varun.gupt 6717
  def __repr__(self):
6718
    L = ['%s=%r' % (key, value)
6719
      for key, value in self.__dict__.iteritems()]
6720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6721
 
6722
  def __eq__(self, other):
6723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6724
 
6725
  def __ne__(self, other):
6726
    return not (self == other)
6727
 
1590 varun.gupt 6728
class getUserCommunicationById_args:
6729
  """
6730
  Attributes:
6731
   - id
6732
  """
6733
 
6734
  thrift_spec = (
6735
    None, # 0
6736
    (1, TType.I64, 'id', None, None, ), # 1
6737
  )
6738
 
6739
  def __init__(self, id=None,):
6740
    self.id = id
6741
 
6742
  def read(self, iprot):
6743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6745
      return
6746
    iprot.readStructBegin()
6747
    while True:
6748
      (fname, ftype, fid) = iprot.readFieldBegin()
6749
      if ftype == TType.STOP:
6750
        break
6751
      if fid == 1:
6752
        if ftype == TType.I64:
6753
          self.id = iprot.readI64();
6754
        else:
6755
          iprot.skip(ftype)
6756
      else:
6757
        iprot.skip(ftype)
6758
      iprot.readFieldEnd()
6759
    iprot.readStructEnd()
6760
 
6761
  def write(self, oprot):
6762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6764
      return
6765
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6766
    if self.id is not None:
1590 varun.gupt 6767
      oprot.writeFieldBegin('id', TType.I64, 1)
6768
      oprot.writeI64(self.id)
6769
      oprot.writeFieldEnd()
6770
    oprot.writeFieldStop()
6771
    oprot.writeStructEnd()
6772
 
3431 rajveer 6773
  def validate(self):
6774
    return
6775
 
6776
 
1590 varun.gupt 6777
  def __repr__(self):
6778
    L = ['%s=%r' % (key, value)
6779
      for key, value in self.__dict__.iteritems()]
6780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6781
 
6782
  def __eq__(self, other):
6783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6784
 
6785
  def __ne__(self, other):
6786
    return not (self == other)
6787
 
6788
class getUserCommunicationById_result:
6789
  """
6790
  Attributes:
6791
   - success
6792
   - ucx
6793
  """
6794
 
6795
  thrift_spec = (
6796
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6797
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6798
  )
6799
 
6800
  def __init__(self, success=None, ucx=None,):
6801
    self.success = success
6802
    self.ucx = ucx
6803
 
6804
  def read(self, iprot):
6805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6807
      return
6808
    iprot.readStructBegin()
6809
    while True:
6810
      (fname, ftype, fid) = iprot.readFieldBegin()
6811
      if ftype == TType.STOP:
6812
        break
6813
      if fid == 0:
6814
        if ftype == TType.STRUCT:
6815
          self.success = UserCommunication()
6816
          self.success.read(iprot)
6817
        else:
6818
          iprot.skip(ftype)
6819
      elif fid == 1:
6820
        if ftype == TType.STRUCT:
6821
          self.ucx = UserCommunicationException()
6822
          self.ucx.read(iprot)
6823
        else:
6824
          iprot.skip(ftype)
6825
      else:
6826
        iprot.skip(ftype)
6827
      iprot.readFieldEnd()
6828
    iprot.readStructEnd()
6829
 
6830
  def write(self, oprot):
6831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6833
      return
6834
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 6835
    if self.success is not None:
1590 varun.gupt 6836
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6837
      self.success.write(oprot)
6838
      oprot.writeFieldEnd()
3431 rajveer 6839
    if self.ucx is not None:
1590 varun.gupt 6840
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6841
      self.ucx.write(oprot)
6842
      oprot.writeFieldEnd()
6843
    oprot.writeFieldStop()
6844
    oprot.writeStructEnd()
6845
 
3431 rajveer 6846
  def validate(self):
6847
    return
6848
 
6849
 
1590 varun.gupt 6850
  def __repr__(self):
6851
    L = ['%s=%r' % (key, value)
6852
      for key, value in self.__dict__.iteritems()]
6853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6854
 
6855
  def __eq__(self, other):
6856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6857
 
6858
  def __ne__(self, other):
6859
    return not (self == other)
6860
 
6861
class getUserCommunicationByUser_args:
6862
  """
6863
  Attributes:
6864
   - userId
6865
  """
6866
 
6867
  thrift_spec = (
6868
    None, # 0
6869
    (1, TType.I64, 'userId', None, None, ), # 1
6870
  )
6871
 
6872
  def __init__(self, userId=None,):
6873
    self.userId = userId
6874
 
6875
  def read(self, iprot):
6876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6878
      return
6879
    iprot.readStructBegin()
6880
    while True:
6881
      (fname, ftype, fid) = iprot.readFieldBegin()
6882
      if ftype == TType.STOP:
6883
        break
6884
      if fid == 1:
6885
        if ftype == TType.I64:
6886
          self.userId = iprot.readI64();
6887
        else:
6888
          iprot.skip(ftype)
6889
      else:
6890
        iprot.skip(ftype)
6891
      iprot.readFieldEnd()
6892
    iprot.readStructEnd()
6893
 
6894
  def write(self, oprot):
6895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6897
      return
6898
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 6899
    if self.userId is not None:
1590 varun.gupt 6900
      oprot.writeFieldBegin('userId', TType.I64, 1)
6901
      oprot.writeI64(self.userId)
6902
      oprot.writeFieldEnd()
6903
    oprot.writeFieldStop()
6904
    oprot.writeStructEnd()
6905
 
3431 rajveer 6906
  def validate(self):
6907
    return
6908
 
6909
 
1590 varun.gupt 6910
  def __repr__(self):
6911
    L = ['%s=%r' % (key, value)
6912
      for key, value in self.__dict__.iteritems()]
6913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6914
 
6915
  def __eq__(self, other):
6916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6917
 
6918
  def __ne__(self, other):
6919
    return not (self == other)
6920
 
6921
class getUserCommunicationByUser_result:
6922
  """
6923
  Attributes:
6924
   - success
6925
   - ucx
6926
  """
6927
 
6928
  thrift_spec = (
6929
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
6930
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6931
  )
6932
 
6933
  def __init__(self, success=None, ucx=None,):
6934
    self.success = success
6935
    self.ucx = ucx
6936
 
6937
  def read(self, iprot):
6938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6940
      return
6941
    iprot.readStructBegin()
6942
    while True:
6943
      (fname, ftype, fid) = iprot.readFieldBegin()
6944
      if ftype == TType.STOP:
6945
        break
6946
      if fid == 0:
6947
        if ftype == TType.LIST:
6948
          self.success = []
5326 rajveer 6949
          (_etype68, _size65) = iprot.readListBegin()
6950
          for _i69 in xrange(_size65):
6951
            _elem70 = UserCommunication()
6952
            _elem70.read(iprot)
6953
            self.success.append(_elem70)
1590 varun.gupt 6954
          iprot.readListEnd()
6955
        else:
6956
          iprot.skip(ftype)
6957
      elif fid == 1:
6958
        if ftype == TType.STRUCT:
6959
          self.ucx = UserCommunicationException()
6960
          self.ucx.read(iprot)
6961
        else:
6962
          iprot.skip(ftype)
6963
      else:
6964
        iprot.skip(ftype)
6965
      iprot.readFieldEnd()
6966
    iprot.readStructEnd()
6967
 
6968
  def write(self, oprot):
6969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6971
      return
6972
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 6973
    if self.success is not None:
1590 varun.gupt 6974
      oprot.writeFieldBegin('success', TType.LIST, 0)
6975
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6976
      for iter71 in self.success:
6977
        iter71.write(oprot)
1590 varun.gupt 6978
      oprot.writeListEnd()
6979
      oprot.writeFieldEnd()
3431 rajveer 6980
    if self.ucx is not None:
1590 varun.gupt 6981
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6982
      self.ucx.write(oprot)
6983
      oprot.writeFieldEnd()
6984
    oprot.writeFieldStop()
6985
    oprot.writeStructEnd()
6986
 
3431 rajveer 6987
  def validate(self):
6988
    return
6989
 
6990
 
1590 varun.gupt 6991
  def __repr__(self):
6992
    L = ['%s=%r' % (key, value)
6993
      for key, value in self.__dict__.iteritems()]
6994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6995
 
6996
  def __eq__(self, other):
6997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6998
 
6999
  def __ne__(self, other):
7000
    return not (self == other)
7001
 
7002
class getAllUserCommunications_args:
7003
 
7004
  thrift_spec = (
7005
  )
7006
 
7007
  def read(self, iprot):
7008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7010
      return
7011
    iprot.readStructBegin()
7012
    while True:
7013
      (fname, ftype, fid) = iprot.readFieldBegin()
7014
      if ftype == TType.STOP:
7015
        break
7016
      else:
7017
        iprot.skip(ftype)
7018
      iprot.readFieldEnd()
7019
    iprot.readStructEnd()
7020
 
7021
  def write(self, oprot):
7022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7024
      return
7025
    oprot.writeStructBegin('getAllUserCommunications_args')
7026
    oprot.writeFieldStop()
7027
    oprot.writeStructEnd()
7028
 
3431 rajveer 7029
  def validate(self):
7030
    return
7031
 
7032
 
1590 varun.gupt 7033
  def __repr__(self):
7034
    L = ['%s=%r' % (key, value)
7035
      for key, value in self.__dict__.iteritems()]
7036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7037
 
7038
  def __eq__(self, other):
7039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7040
 
7041
  def __ne__(self, other):
7042
    return not (self == other)
7043
 
7044
class getAllUserCommunications_result:
7045
  """
7046
  Attributes:
7047
   - success
7048
   - ucx
7049
  """
7050
 
7051
  thrift_spec = (
7052
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7053
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7054
  )
7055
 
7056
  def __init__(self, success=None, ucx=None,):
7057
    self.success = success
7058
    self.ucx = ucx
7059
 
7060
  def read(self, iprot):
7061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7063
      return
7064
    iprot.readStructBegin()
7065
    while True:
7066
      (fname, ftype, fid) = iprot.readFieldBegin()
7067
      if ftype == TType.STOP:
7068
        break
7069
      if fid == 0:
7070
        if ftype == TType.LIST:
7071
          self.success = []
5326 rajveer 7072
          (_etype75, _size72) = iprot.readListBegin()
7073
          for _i76 in xrange(_size72):
7074
            _elem77 = UserCommunication()
7075
            _elem77.read(iprot)
7076
            self.success.append(_elem77)
1590 varun.gupt 7077
          iprot.readListEnd()
7078
        else:
7079
          iprot.skip(ftype)
7080
      elif fid == 1:
7081
        if ftype == TType.STRUCT:
7082
          self.ucx = UserCommunicationException()
7083
          self.ucx.read(iprot)
7084
        else:
7085
          iprot.skip(ftype)
7086
      else:
7087
        iprot.skip(ftype)
7088
      iprot.readFieldEnd()
7089
    iprot.readStructEnd()
7090
 
7091
  def write(self, oprot):
7092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7094
      return
7095
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7096
    if self.success is not None:
1590 varun.gupt 7097
      oprot.writeFieldBegin('success', TType.LIST, 0)
7098
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7099
      for iter78 in self.success:
7100
        iter78.write(oprot)
1590 varun.gupt 7101
      oprot.writeListEnd()
7102
      oprot.writeFieldEnd()
3431 rajveer 7103
    if self.ucx is not None:
1590 varun.gupt 7104
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7105
      self.ucx.write(oprot)
7106
      oprot.writeFieldEnd()
7107
    oprot.writeFieldStop()
7108
    oprot.writeStructEnd()
7109
 
3431 rajveer 7110
  def validate(self):
7111
    return
7112
 
7113
 
1590 varun.gupt 7114
  def __repr__(self):
7115
    L = ['%s=%r' % (key, value)
7116
      for key, value in self.__dict__.iteritems()]
7117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7118
 
7119
  def __eq__(self, other):
7120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7121
 
7122
  def __ne__(self, other):
7123
    return not (self == other)
7124
 
1845 vikas 7125
class createMasterAffiliate_args:
7126
  """
7127
  Attributes:
7128
   - name
1859 vikas 7129
   - addedOn
1845 vikas 7130
  """
7131
 
7132
  thrift_spec = (
7133
    None, # 0
7134
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7135
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7136
  )
7137
 
1859 vikas 7138
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7139
    self.name = name
1859 vikas 7140
    self.addedOn = addedOn
1845 vikas 7141
 
7142
  def read(self, iprot):
7143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7145
      return
7146
    iprot.readStructBegin()
7147
    while True:
7148
      (fname, ftype, fid) = iprot.readFieldBegin()
7149
      if ftype == TType.STOP:
7150
        break
7151
      if fid == 1:
7152
        if ftype == TType.STRING:
7153
          self.name = iprot.readString();
7154
        else:
7155
          iprot.skip(ftype)
1859 vikas 7156
      elif fid == 2:
7157
        if ftype == TType.I64:
7158
          self.addedOn = iprot.readI64();
7159
        else:
7160
          iprot.skip(ftype)
1845 vikas 7161
      else:
7162
        iprot.skip(ftype)
7163
      iprot.readFieldEnd()
7164
    iprot.readStructEnd()
7165
 
7166
  def write(self, oprot):
7167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7169
      return
7170
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7171
    if self.name is not None:
1845 vikas 7172
      oprot.writeFieldBegin('name', TType.STRING, 1)
7173
      oprot.writeString(self.name)
7174
      oprot.writeFieldEnd()
3431 rajveer 7175
    if self.addedOn is not None:
1859 vikas 7176
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7177
      oprot.writeI64(self.addedOn)
7178
      oprot.writeFieldEnd()
1845 vikas 7179
    oprot.writeFieldStop()
7180
    oprot.writeStructEnd()
7181
 
3431 rajveer 7182
  def validate(self):
7183
    return
7184
 
7185
 
1845 vikas 7186
  def __repr__(self):
7187
    L = ['%s=%r' % (key, value)
7188
      for key, value in self.__dict__.iteritems()]
7189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7190
 
7191
  def __eq__(self, other):
7192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7193
 
7194
  def __ne__(self, other):
7195
    return not (self == other)
7196
 
7197
class createMasterAffiliate_result:
7198
  """
7199
  Attributes:
7200
   - success
7201
   - utx
7202
  """
7203
 
7204
  thrift_spec = (
7205
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7206
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7207
  )
7208
 
7209
  def __init__(self, success=None, utx=None,):
7210
    self.success = success
7211
    self.utx = utx
7212
 
7213
  def read(self, iprot):
7214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7216
      return
7217
    iprot.readStructBegin()
7218
    while True:
7219
      (fname, ftype, fid) = iprot.readFieldBegin()
7220
      if ftype == TType.STOP:
7221
        break
7222
      if fid == 0:
7223
        if ftype == TType.STRUCT:
7224
          self.success = MasterAffiliate()
7225
          self.success.read(iprot)
7226
        else:
7227
          iprot.skip(ftype)
7228
      elif fid == 1:
7229
        if ftype == TType.STRUCT:
1996 vikas 7230
          self.utx = UserAffiliateException()
1845 vikas 7231
          self.utx.read(iprot)
7232
        else:
7233
          iprot.skip(ftype)
7234
      else:
7235
        iprot.skip(ftype)
7236
      iprot.readFieldEnd()
7237
    iprot.readStructEnd()
7238
 
7239
  def write(self, oprot):
7240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7242
      return
7243
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7244
    if self.success is not None:
1845 vikas 7245
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7246
      self.success.write(oprot)
7247
      oprot.writeFieldEnd()
3431 rajveer 7248
    if self.utx is not None:
1845 vikas 7249
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7250
      self.utx.write(oprot)
7251
      oprot.writeFieldEnd()
7252
    oprot.writeFieldStop()
7253
    oprot.writeStructEnd()
7254
 
3431 rajveer 7255
  def validate(self):
7256
    return
7257
 
7258
 
1845 vikas 7259
  def __repr__(self):
7260
    L = ['%s=%r' % (key, value)
7261
      for key, value in self.__dict__.iteritems()]
7262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7263
 
7264
  def __eq__(self, other):
7265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7266
 
7267
  def __ne__(self, other):
7268
    return not (self == other)
7269
 
1899 vikas 7270
class getAllMasterAffiliates_args:
7271
 
7272
  thrift_spec = (
7273
  )
7274
 
7275
  def read(self, iprot):
7276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7278
      return
7279
    iprot.readStructBegin()
7280
    while True:
7281
      (fname, ftype, fid) = iprot.readFieldBegin()
7282
      if ftype == TType.STOP:
7283
        break
7284
      else:
7285
        iprot.skip(ftype)
7286
      iprot.readFieldEnd()
7287
    iprot.readStructEnd()
7288
 
7289
  def write(self, oprot):
7290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7292
      return
7293
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7294
    oprot.writeFieldStop()
7295
    oprot.writeStructEnd()
7296
 
3431 rajveer 7297
  def validate(self):
7298
    return
7299
 
7300
 
1899 vikas 7301
  def __repr__(self):
7302
    L = ['%s=%r' % (key, value)
7303
      for key, value in self.__dict__.iteritems()]
7304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7305
 
7306
  def __eq__(self, other):
7307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7308
 
7309
  def __ne__(self, other):
7310
    return not (self == other)
7311
 
7312
class getAllMasterAffiliates_result:
7313
  """
7314
  Attributes:
7315
   - success
7316
   - utx
7317
  """
7318
 
7319
  thrift_spec = (
7320
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7321
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7322
  )
7323
 
7324
  def __init__(self, success=None, utx=None,):
7325
    self.success = success
7326
    self.utx = utx
7327
 
7328
  def read(self, iprot):
7329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7331
      return
7332
    iprot.readStructBegin()
7333
    while True:
7334
      (fname, ftype, fid) = iprot.readFieldBegin()
7335
      if ftype == TType.STOP:
7336
        break
7337
      if fid == 0:
7338
        if ftype == TType.LIST:
7339
          self.success = []
5326 rajveer 7340
          (_etype82, _size79) = iprot.readListBegin()
7341
          for _i83 in xrange(_size79):
7342
            _elem84 = MasterAffiliate()
7343
            _elem84.read(iprot)
7344
            self.success.append(_elem84)
1899 vikas 7345
          iprot.readListEnd()
7346
        else:
7347
          iprot.skip(ftype)
7348
      elif fid == 1:
7349
        if ftype == TType.STRUCT:
1996 vikas 7350
          self.utx = UserAffiliateException()
1899 vikas 7351
          self.utx.read(iprot)
7352
        else:
7353
          iprot.skip(ftype)
7354
      else:
7355
        iprot.skip(ftype)
7356
      iprot.readFieldEnd()
7357
    iprot.readStructEnd()
7358
 
7359
  def write(self, oprot):
7360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7362
      return
7363
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7364
    if self.success is not None:
1899 vikas 7365
      oprot.writeFieldBegin('success', TType.LIST, 0)
7366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7367
      for iter85 in self.success:
7368
        iter85.write(oprot)
1899 vikas 7369
      oprot.writeListEnd()
7370
      oprot.writeFieldEnd()
3431 rajveer 7371
    if self.utx is not None:
1899 vikas 7372
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7373
      self.utx.write(oprot)
7374
      oprot.writeFieldEnd()
7375
    oprot.writeFieldStop()
7376
    oprot.writeStructEnd()
7377
 
3431 rajveer 7378
  def validate(self):
7379
    return
7380
 
7381
 
1899 vikas 7382
  def __repr__(self):
7383
    L = ['%s=%r' % (key, value)
7384
      for key, value in self.__dict__.iteritems()]
7385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7386
 
7387
  def __eq__(self, other):
7388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7389
 
7390
  def __ne__(self, other):
7391
    return not (self == other)
7392
 
1845 vikas 7393
class getMasterAffiliateById_args:
7394
  """
7395
  Attributes:
7396
   - id
7397
  """
7398
 
7399
  thrift_spec = (
7400
    None, # 0
7401
    (1, TType.I64, 'id', None, None, ), # 1
7402
  )
7403
 
7404
  def __init__(self, id=None,):
7405
    self.id = id
7406
 
7407
  def read(self, iprot):
7408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7410
      return
7411
    iprot.readStructBegin()
7412
    while True:
7413
      (fname, ftype, fid) = iprot.readFieldBegin()
7414
      if ftype == TType.STOP:
7415
        break
7416
      if fid == 1:
7417
        if ftype == TType.I64:
7418
          self.id = iprot.readI64();
7419
        else:
7420
          iprot.skip(ftype)
7421
      else:
7422
        iprot.skip(ftype)
7423
      iprot.readFieldEnd()
7424
    iprot.readStructEnd()
7425
 
7426
  def write(self, oprot):
7427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7429
      return
7430
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7431
    if self.id is not None:
1845 vikas 7432
      oprot.writeFieldBegin('id', TType.I64, 1)
7433
      oprot.writeI64(self.id)
7434
      oprot.writeFieldEnd()
7435
    oprot.writeFieldStop()
7436
    oprot.writeStructEnd()
7437
 
3431 rajveer 7438
  def validate(self):
7439
    return
7440
 
7441
 
1845 vikas 7442
  def __repr__(self):
7443
    L = ['%s=%r' % (key, value)
7444
      for key, value in self.__dict__.iteritems()]
7445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7446
 
7447
  def __eq__(self, other):
7448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7449
 
7450
  def __ne__(self, other):
7451
    return not (self == other)
7452
 
7453
class getMasterAffiliateById_result:
7454
  """
7455
  Attributes:
7456
   - success
7457
   - utx
7458
  """
7459
 
7460
  thrift_spec = (
7461
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7462
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7463
  )
7464
 
7465
  def __init__(self, success=None, utx=None,):
7466
    self.success = success
7467
    self.utx = utx
7468
 
7469
  def read(self, iprot):
7470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7472
      return
7473
    iprot.readStructBegin()
7474
    while True:
7475
      (fname, ftype, fid) = iprot.readFieldBegin()
7476
      if ftype == TType.STOP:
7477
        break
7478
      if fid == 0:
7479
        if ftype == TType.STRUCT:
7480
          self.success = MasterAffiliate()
7481
          self.success.read(iprot)
7482
        else:
7483
          iprot.skip(ftype)
7484
      elif fid == 1:
7485
        if ftype == TType.STRUCT:
1996 vikas 7486
          self.utx = UserAffiliateException()
1845 vikas 7487
          self.utx.read(iprot)
7488
        else:
7489
          iprot.skip(ftype)
7490
      else:
7491
        iprot.skip(ftype)
7492
      iprot.readFieldEnd()
7493
    iprot.readStructEnd()
7494
 
7495
  def write(self, oprot):
7496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7498
      return
7499
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7500
    if self.success is not None:
1845 vikas 7501
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7502
      self.success.write(oprot)
7503
      oprot.writeFieldEnd()
3431 rajveer 7504
    if self.utx is not None:
1845 vikas 7505
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7506
      self.utx.write(oprot)
7507
      oprot.writeFieldEnd()
7508
    oprot.writeFieldStop()
7509
    oprot.writeStructEnd()
7510
 
3431 rajveer 7511
  def validate(self):
7512
    return
7513
 
7514
 
1845 vikas 7515
  def __repr__(self):
7516
    L = ['%s=%r' % (key, value)
7517
      for key, value in self.__dict__.iteritems()]
7518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7519
 
7520
  def __eq__(self, other):
7521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7522
 
7523
  def __ne__(self, other):
7524
    return not (self == other)
7525
 
7526
class getMasterAffiliateByName_args:
7527
  """
7528
  Attributes:
7529
   - name
7530
  """
7531
 
7532
  thrift_spec = (
7533
    None, # 0
7534
    (1, TType.STRING, 'name', None, None, ), # 1
7535
  )
7536
 
7537
  def __init__(self, name=None,):
7538
    self.name = name
7539
 
7540
  def read(self, iprot):
7541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7543
      return
7544
    iprot.readStructBegin()
7545
    while True:
7546
      (fname, ftype, fid) = iprot.readFieldBegin()
7547
      if ftype == TType.STOP:
7548
        break
7549
      if fid == 1:
7550
        if ftype == TType.STRING:
7551
          self.name = iprot.readString();
7552
        else:
7553
          iprot.skip(ftype)
7554
      else:
7555
        iprot.skip(ftype)
7556
      iprot.readFieldEnd()
7557
    iprot.readStructEnd()
7558
 
7559
  def write(self, oprot):
7560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7562
      return
7563
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7564
    if self.name is not None:
1845 vikas 7565
      oprot.writeFieldBegin('name', TType.STRING, 1)
7566
      oprot.writeString(self.name)
7567
      oprot.writeFieldEnd()
7568
    oprot.writeFieldStop()
7569
    oprot.writeStructEnd()
7570
 
3431 rajveer 7571
  def validate(self):
7572
    return
7573
 
7574
 
1845 vikas 7575
  def __repr__(self):
7576
    L = ['%s=%r' % (key, value)
7577
      for key, value in self.__dict__.iteritems()]
7578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7579
 
7580
  def __eq__(self, other):
7581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7582
 
7583
  def __ne__(self, other):
7584
    return not (self == other)
7585
 
7586
class getMasterAffiliateByName_result:
7587
  """
7588
  Attributes:
7589
   - success
7590
   - utx
7591
  """
7592
 
7593
  thrift_spec = (
7594
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7595
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7596
  )
7597
 
7598
  def __init__(self, success=None, utx=None,):
7599
    self.success = success
7600
    self.utx = utx
7601
 
7602
  def read(self, iprot):
7603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7605
      return
7606
    iprot.readStructBegin()
7607
    while True:
7608
      (fname, ftype, fid) = iprot.readFieldBegin()
7609
      if ftype == TType.STOP:
7610
        break
7611
      if fid == 0:
7612
        if ftype == TType.STRUCT:
7613
          self.success = MasterAffiliate()
7614
          self.success.read(iprot)
7615
        else:
7616
          iprot.skip(ftype)
7617
      elif fid == 1:
7618
        if ftype == TType.STRUCT:
1996 vikas 7619
          self.utx = UserAffiliateException()
1845 vikas 7620
          self.utx.read(iprot)
7621
        else:
7622
          iprot.skip(ftype)
7623
      else:
7624
        iprot.skip(ftype)
7625
      iprot.readFieldEnd()
7626
    iprot.readStructEnd()
7627
 
7628
  def write(self, oprot):
7629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7631
      return
7632
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7633
    if self.success is not None:
1845 vikas 7634
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7635
      self.success.write(oprot)
7636
      oprot.writeFieldEnd()
3431 rajveer 7637
    if self.utx is not None:
1845 vikas 7638
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7639
      self.utx.write(oprot)
7640
      oprot.writeFieldEnd()
7641
    oprot.writeFieldStop()
7642
    oprot.writeStructEnd()
7643
 
3431 rajveer 7644
  def validate(self):
7645
    return
7646
 
7647
 
1845 vikas 7648
  def __repr__(self):
7649
    L = ['%s=%r' % (key, value)
7650
      for key, value in self.__dict__.iteritems()]
7651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7652
 
7653
  def __eq__(self, other):
7654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7655
 
7656
  def __ne__(self, other):
7657
    return not (self == other)
7658
 
7659
class createAffiliate_args:
7660
  """
7661
  Attributes:
7662
   - name
7663
   - url
7664
   - masterAffiliateId
1859 vikas 7665
   - addedOn
1845 vikas 7666
  """
7667
 
7668
  thrift_spec = (
7669
    None, # 0
7670
    (1, TType.STRING, 'name', None, None, ), # 1
7671
    (2, TType.STRING, 'url', None, None, ), # 2
7672
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7673
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7674
  )
7675
 
1859 vikas 7676
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7677
    self.name = name
7678
    self.url = url
7679
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7680
    self.addedOn = addedOn
1845 vikas 7681
 
7682
  def read(self, iprot):
7683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7685
      return
7686
    iprot.readStructBegin()
7687
    while True:
7688
      (fname, ftype, fid) = iprot.readFieldBegin()
7689
      if ftype == TType.STOP:
7690
        break
7691
      if fid == 1:
7692
        if ftype == TType.STRING:
7693
          self.name = iprot.readString();
7694
        else:
7695
          iprot.skip(ftype)
7696
      elif fid == 2:
7697
        if ftype == TType.STRING:
7698
          self.url = iprot.readString();
7699
        else:
7700
          iprot.skip(ftype)
7701
      elif fid == 3:
7702
        if ftype == TType.I64:
7703
          self.masterAffiliateId = iprot.readI64();
7704
        else:
7705
          iprot.skip(ftype)
1859 vikas 7706
      elif fid == 4:
7707
        if ftype == TType.I64:
7708
          self.addedOn = iprot.readI64();
7709
        else:
7710
          iprot.skip(ftype)
1845 vikas 7711
      else:
7712
        iprot.skip(ftype)
7713
      iprot.readFieldEnd()
7714
    iprot.readStructEnd()
7715
 
7716
  def write(self, oprot):
7717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7719
      return
7720
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 7721
    if self.name is not None:
1845 vikas 7722
      oprot.writeFieldBegin('name', TType.STRING, 1)
7723
      oprot.writeString(self.name)
7724
      oprot.writeFieldEnd()
3431 rajveer 7725
    if self.url is not None:
1845 vikas 7726
      oprot.writeFieldBegin('url', TType.STRING, 2)
7727
      oprot.writeString(self.url)
7728
      oprot.writeFieldEnd()
3431 rajveer 7729
    if self.masterAffiliateId is not None:
1845 vikas 7730
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
7731
      oprot.writeI64(self.masterAffiliateId)
7732
      oprot.writeFieldEnd()
3431 rajveer 7733
    if self.addedOn is not None:
1859 vikas 7734
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
7735
      oprot.writeI64(self.addedOn)
7736
      oprot.writeFieldEnd()
1845 vikas 7737
    oprot.writeFieldStop()
7738
    oprot.writeStructEnd()
7739
 
3431 rajveer 7740
  def validate(self):
7741
    return
7742
 
7743
 
1845 vikas 7744
  def __repr__(self):
7745
    L = ['%s=%r' % (key, value)
7746
      for key, value in self.__dict__.iteritems()]
7747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7748
 
7749
  def __eq__(self, other):
7750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7751
 
7752
  def __ne__(self, other):
7753
    return not (self == other)
7754
 
7755
class createAffiliate_result:
7756
  """
7757
  Attributes:
7758
   - success
7759
   - utx
7760
  """
7761
 
7762
  thrift_spec = (
7763
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7764
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7765
  )
7766
 
7767
  def __init__(self, success=None, utx=None,):
7768
    self.success = success
7769
    self.utx = utx
7770
 
7771
  def read(self, iprot):
7772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7774
      return
7775
    iprot.readStructBegin()
7776
    while True:
7777
      (fname, ftype, fid) = iprot.readFieldBegin()
7778
      if ftype == TType.STOP:
7779
        break
7780
      if fid == 0:
7781
        if ftype == TType.STRUCT:
7782
          self.success = Affiliate()
7783
          self.success.read(iprot)
7784
        else:
7785
          iprot.skip(ftype)
7786
      elif fid == 1:
7787
        if ftype == TType.STRUCT:
1996 vikas 7788
          self.utx = UserAffiliateException()
1845 vikas 7789
          self.utx.read(iprot)
7790
        else:
7791
          iprot.skip(ftype)
7792
      else:
7793
        iprot.skip(ftype)
7794
      iprot.readFieldEnd()
7795
    iprot.readStructEnd()
7796
 
7797
  def write(self, oprot):
7798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7800
      return
7801
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 7802
    if self.success is not None:
1845 vikas 7803
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7804
      self.success.write(oprot)
7805
      oprot.writeFieldEnd()
3431 rajveer 7806
    if self.utx is not None:
1845 vikas 7807
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7808
      self.utx.write(oprot)
7809
      oprot.writeFieldEnd()
7810
    oprot.writeFieldStop()
7811
    oprot.writeStructEnd()
7812
 
3431 rajveer 7813
  def validate(self):
7814
    return
7815
 
7816
 
1845 vikas 7817
  def __repr__(self):
7818
    L = ['%s=%r' % (key, value)
7819
      for key, value in self.__dict__.iteritems()]
7820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7821
 
7822
  def __eq__(self, other):
7823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7824
 
7825
  def __ne__(self, other):
7826
    return not (self == other)
7827
 
7828
class getAffiliateById_args:
7829
  """
7830
  Attributes:
7831
   - id
7832
  """
7833
 
7834
  thrift_spec = (
7835
    None, # 0
7836
    (1, TType.I64, 'id', None, None, ), # 1
7837
  )
7838
 
7839
  def __init__(self, id=None,):
7840
    self.id = id
7841
 
7842
  def read(self, iprot):
7843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7845
      return
7846
    iprot.readStructBegin()
7847
    while True:
7848
      (fname, ftype, fid) = iprot.readFieldBegin()
7849
      if ftype == TType.STOP:
7850
        break
7851
      if fid == 1:
7852
        if ftype == TType.I64:
7853
          self.id = iprot.readI64();
7854
        else:
7855
          iprot.skip(ftype)
7856
      else:
7857
        iprot.skip(ftype)
7858
      iprot.readFieldEnd()
7859
    iprot.readStructEnd()
7860
 
7861
  def write(self, oprot):
7862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7864
      return
7865
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 7866
    if self.id is not None:
1845 vikas 7867
      oprot.writeFieldBegin('id', TType.I64, 1)
7868
      oprot.writeI64(self.id)
7869
      oprot.writeFieldEnd()
7870
    oprot.writeFieldStop()
7871
    oprot.writeStructEnd()
7872
 
3431 rajveer 7873
  def validate(self):
7874
    return
7875
 
7876
 
1845 vikas 7877
  def __repr__(self):
7878
    L = ['%s=%r' % (key, value)
7879
      for key, value in self.__dict__.iteritems()]
7880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7881
 
7882
  def __eq__(self, other):
7883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7884
 
7885
  def __ne__(self, other):
7886
    return not (self == other)
7887
 
7888
class getAffiliateById_result:
7889
  """
7890
  Attributes:
7891
   - success
7892
   - utx
7893
  """
7894
 
7895
  thrift_spec = (
7896
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7897
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7898
  )
7899
 
7900
  def __init__(self, success=None, utx=None,):
7901
    self.success = success
7902
    self.utx = utx
7903
 
7904
  def read(self, iprot):
7905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7907
      return
7908
    iprot.readStructBegin()
7909
    while True:
7910
      (fname, ftype, fid) = iprot.readFieldBegin()
7911
      if ftype == TType.STOP:
7912
        break
7913
      if fid == 0:
7914
        if ftype == TType.STRUCT:
7915
          self.success = Affiliate()
7916
          self.success.read(iprot)
7917
        else:
7918
          iprot.skip(ftype)
7919
      elif fid == 1:
7920
        if ftype == TType.STRUCT:
1996 vikas 7921
          self.utx = UserAffiliateException()
1845 vikas 7922
          self.utx.read(iprot)
7923
        else:
7924
          iprot.skip(ftype)
7925
      else:
7926
        iprot.skip(ftype)
7927
      iprot.readFieldEnd()
7928
    iprot.readStructEnd()
7929
 
7930
  def write(self, oprot):
7931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7933
      return
7934
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 7935
    if self.success is not None:
1845 vikas 7936
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7937
      self.success.write(oprot)
7938
      oprot.writeFieldEnd()
3431 rajveer 7939
    if self.utx is not None:
1845 vikas 7940
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7941
      self.utx.write(oprot)
7942
      oprot.writeFieldEnd()
7943
    oprot.writeFieldStop()
7944
    oprot.writeStructEnd()
7945
 
3431 rajveer 7946
  def validate(self):
7947
    return
7948
 
7949
 
1845 vikas 7950
  def __repr__(self):
7951
    L = ['%s=%r' % (key, value)
7952
      for key, value in self.__dict__.iteritems()]
7953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7954
 
7955
  def __eq__(self, other):
7956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7957
 
7958
  def __ne__(self, other):
7959
    return not (self == other)
7960
 
7961
class getAffiliateByName_args:
7962
  """
7963
  Attributes:
7964
   - name
7965
  """
7966
 
7967
  thrift_spec = (
7968
    None, # 0
7969
    (1, TType.STRING, 'name', None, None, ), # 1
7970
  )
7971
 
7972
  def __init__(self, name=None,):
7973
    self.name = name
7974
 
7975
  def read(self, iprot):
7976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7978
      return
7979
    iprot.readStructBegin()
7980
    while True:
7981
      (fname, ftype, fid) = iprot.readFieldBegin()
7982
      if ftype == TType.STOP:
7983
        break
7984
      if fid == 1:
7985
        if ftype == TType.STRING:
7986
          self.name = iprot.readString();
7987
        else:
7988
          iprot.skip(ftype)
7989
      else:
7990
        iprot.skip(ftype)
7991
      iprot.readFieldEnd()
7992
    iprot.readStructEnd()
7993
 
7994
  def write(self, oprot):
7995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7997
      return
7998
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 7999
    if self.name is not None:
1845 vikas 8000
      oprot.writeFieldBegin('name', TType.STRING, 1)
8001
      oprot.writeString(self.name)
8002
      oprot.writeFieldEnd()
8003
    oprot.writeFieldStop()
8004
    oprot.writeStructEnd()
8005
 
3431 rajveer 8006
  def validate(self):
8007
    return
8008
 
8009
 
1845 vikas 8010
  def __repr__(self):
8011
    L = ['%s=%r' % (key, value)
8012
      for key, value in self.__dict__.iteritems()]
8013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8014
 
8015
  def __eq__(self, other):
8016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8017
 
8018
  def __ne__(self, other):
8019
    return not (self == other)
8020
 
8021
class getAffiliateByName_result:
8022
  """
8023
  Attributes:
8024
   - success
8025
   - utx
8026
  """
8027
 
8028
  thrift_spec = (
8029
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8030
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8031
  )
8032
 
8033
  def __init__(self, success=None, utx=None,):
8034
    self.success = success
8035
    self.utx = utx
8036
 
8037
  def read(self, iprot):
8038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8040
      return
8041
    iprot.readStructBegin()
8042
    while True:
8043
      (fname, ftype, fid) = iprot.readFieldBegin()
8044
      if ftype == TType.STOP:
8045
        break
8046
      if fid == 0:
8047
        if ftype == TType.STRUCT:
8048
          self.success = Affiliate()
8049
          self.success.read(iprot)
8050
        else:
8051
          iprot.skip(ftype)
8052
      elif fid == 1:
8053
        if ftype == TType.STRUCT:
1996 vikas 8054
          self.utx = UserAffiliateException()
1845 vikas 8055
          self.utx.read(iprot)
8056
        else:
8057
          iprot.skip(ftype)
8058
      else:
8059
        iprot.skip(ftype)
8060
      iprot.readFieldEnd()
8061
    iprot.readStructEnd()
8062
 
8063
  def write(self, oprot):
8064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8066
      return
8067
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8068
    if self.success is not None:
1845 vikas 8069
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8070
      self.success.write(oprot)
8071
      oprot.writeFieldEnd()
3431 rajveer 8072
    if self.utx is not None:
1845 vikas 8073
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8074
      self.utx.write(oprot)
8075
      oprot.writeFieldEnd()
8076
    oprot.writeFieldStop()
8077
    oprot.writeStructEnd()
8078
 
3431 rajveer 8079
  def validate(self):
8080
    return
8081
 
8082
 
1845 vikas 8083
  def __repr__(self):
8084
    L = ['%s=%r' % (key, value)
8085
      for key, value in self.__dict__.iteritems()]
8086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8087
 
8088
  def __eq__(self, other):
8089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8090
 
8091
  def __ne__(self, other):
8092
    return not (self == other)
8093
 
1996 vikas 8094
class getTrackerById_args:
1845 vikas 8095
  """
8096
  Attributes:
8097
   - id
8098
  """
8099
 
8100
  thrift_spec = (
8101
    None, # 0
8102
    (1, TType.I64, 'id', None, None, ), # 1
8103
  )
8104
 
8105
  def __init__(self, id=None,):
8106
    self.id = id
8107
 
8108
  def read(self, iprot):
8109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8111
      return
8112
    iprot.readStructBegin()
8113
    while True:
8114
      (fname, ftype, fid) = iprot.readFieldBegin()
8115
      if ftype == TType.STOP:
8116
        break
8117
      if fid == 1:
8118
        if ftype == TType.I64:
8119
          self.id = iprot.readI64();
8120
        else:
8121
          iprot.skip(ftype)
8122
      else:
8123
        iprot.skip(ftype)
8124
      iprot.readFieldEnd()
8125
    iprot.readStructEnd()
8126
 
8127
  def write(self, oprot):
8128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8130
      return
1996 vikas 8131
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8132
    if self.id is not None:
1845 vikas 8133
      oprot.writeFieldBegin('id', TType.I64, 1)
8134
      oprot.writeI64(self.id)
8135
      oprot.writeFieldEnd()
8136
    oprot.writeFieldStop()
8137
    oprot.writeStructEnd()
8138
 
3431 rajveer 8139
  def validate(self):
8140
    return
8141
 
8142
 
1845 vikas 8143
  def __repr__(self):
8144
    L = ['%s=%r' % (key, value)
8145
      for key, value in self.__dict__.iteritems()]
8146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8147
 
8148
  def __eq__(self, other):
8149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8150
 
8151
  def __ne__(self, other):
8152
    return not (self == other)
8153
 
8154
class getTrackerById_result:
8155
  """
8156
  Attributes:
8157
   - success
8158
   - utx
8159
  """
8160
 
8161
  thrift_spec = (
8162
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8163
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8164
  )
8165
 
8166
  def __init__(self, success=None, utx=None,):
8167
    self.success = success
8168
    self.utx = utx
8169
 
8170
  def read(self, iprot):
8171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8173
      return
8174
    iprot.readStructBegin()
8175
    while True:
8176
      (fname, ftype, fid) = iprot.readFieldBegin()
8177
      if ftype == TType.STOP:
8178
        break
8179
      if fid == 0:
8180
        if ftype == TType.STRUCT:
8181
          self.success = Tracker()
8182
          self.success.read(iprot)
8183
        else:
8184
          iprot.skip(ftype)
8185
      elif fid == 1:
8186
        if ftype == TType.STRUCT:
1996 vikas 8187
          self.utx = UserAffiliateException()
1845 vikas 8188
          self.utx.read(iprot)
8189
        else:
8190
          iprot.skip(ftype)
8191
      else:
8192
        iprot.skip(ftype)
8193
      iprot.readFieldEnd()
8194
    iprot.readStructEnd()
8195
 
8196
  def write(self, oprot):
8197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8199
      return
8200
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8201
    if self.success is not None:
1845 vikas 8202
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8203
      self.success.write(oprot)
8204
      oprot.writeFieldEnd()
3431 rajveer 8205
    if self.utx is not None:
1845 vikas 8206
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8207
      self.utx.write(oprot)
8208
      oprot.writeFieldEnd()
8209
    oprot.writeFieldStop()
8210
    oprot.writeStructEnd()
8211
 
3431 rajveer 8212
  def validate(self):
8213
    return
8214
 
8215
 
1845 vikas 8216
  def __repr__(self):
8217
    L = ['%s=%r' % (key, value)
8218
      for key, value in self.__dict__.iteritems()]
8219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8220
 
8221
  def __eq__(self, other):
8222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8223
 
8224
  def __ne__(self, other):
8225
    return not (self == other)
8226
 
1996 vikas 8227
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8228
  """
8229
  Attributes:
1996 vikas 8230
   - id
1845 vikas 8231
  """
8232
 
8233
  thrift_spec = (
8234
    None, # 0
1996 vikas 8235
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8236
  )
8237
 
1996 vikas 8238
  def __init__(self, id=None,):
8239
    self.id = id
1845 vikas 8240
 
8241
  def read(self, iprot):
8242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8244
      return
8245
    iprot.readStructBegin()
8246
    while True:
8247
      (fname, ftype, fid) = iprot.readFieldBegin()
8248
      if ftype == TType.STOP:
8249
        break
8250
      if fid == 1:
8251
        if ftype == TType.I64:
1996 vikas 8252
          self.id = iprot.readI64();
1845 vikas 8253
        else:
8254
          iprot.skip(ftype)
8255
      else:
8256
        iprot.skip(ftype)
8257
      iprot.readFieldEnd()
8258
    iprot.readStructEnd()
8259
 
8260
  def write(self, oprot):
8261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8263
      return
1996 vikas 8264
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8265
    if self.id is not None:
1996 vikas 8266
      oprot.writeFieldBegin('id', TType.I64, 1)
8267
      oprot.writeI64(self.id)
1845 vikas 8268
      oprot.writeFieldEnd()
8269
    oprot.writeFieldStop()
8270
    oprot.writeStructEnd()
8271
 
3431 rajveer 8272
  def validate(self):
8273
    return
8274
 
8275
 
1845 vikas 8276
  def __repr__(self):
8277
    L = ['%s=%r' % (key, value)
8278
      for key, value in self.__dict__.iteritems()]
8279
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8280
 
8281
  def __eq__(self, other):
8282
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8283
 
8284
  def __ne__(self, other):
8285
    return not (self == other)
8286
 
1996 vikas 8287
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8288
  """
8289
  Attributes:
8290
   - success
8291
   - utx
8292
  """
8293
 
8294
  thrift_spec = (
1996 vikas 8295
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8296
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8297
  )
8298
 
8299
  def __init__(self, success=None, utx=None,):
8300
    self.success = success
8301
    self.utx = utx
8302
 
8303
  def read(self, iprot):
8304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8306
      return
8307
    iprot.readStructBegin()
8308
    while True:
8309
      (fname, ftype, fid) = iprot.readFieldBegin()
8310
      if ftype == TType.STOP:
8311
        break
8312
      if fid == 0:
8313
        if ftype == TType.LIST:
8314
          self.success = []
5326 rajveer 8315
          (_etype89, _size86) = iprot.readListBegin()
8316
          for _i90 in xrange(_size86):
8317
            _elem91 = Affiliate()
8318
            _elem91.read(iprot)
8319
            self.success.append(_elem91)
1845 vikas 8320
          iprot.readListEnd()
8321
        else:
8322
          iprot.skip(ftype)
8323
      elif fid == 1:
8324
        if ftype == TType.STRUCT:
1996 vikas 8325
          self.utx = UserAffiliateException()
1845 vikas 8326
          self.utx.read(iprot)
8327
        else:
8328
          iprot.skip(ftype)
8329
      else:
8330
        iprot.skip(ftype)
8331
      iprot.readFieldEnd()
8332
    iprot.readStructEnd()
8333
 
8334
  def write(self, oprot):
8335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8337
      return
1996 vikas 8338
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8339
    if self.success is not None:
1845 vikas 8340
      oprot.writeFieldBegin('success', TType.LIST, 0)
8341
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8342
      for iter92 in self.success:
8343
        iter92.write(oprot)
1845 vikas 8344
      oprot.writeListEnd()
8345
      oprot.writeFieldEnd()
3431 rajveer 8346
    if self.utx is not None:
1845 vikas 8347
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8348
      self.utx.write(oprot)
8349
      oprot.writeFieldEnd()
8350
    oprot.writeFieldStop()
8351
    oprot.writeStructEnd()
8352
 
3431 rajveer 8353
  def validate(self):
8354
    return
8355
 
8356
 
1845 vikas 8357
  def __repr__(self):
8358
    L = ['%s=%r' % (key, value)
8359
      for key, value in self.__dict__.iteritems()]
8360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8361
 
8362
  def __eq__(self, other):
8363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8364
 
8365
  def __ne__(self, other):
8366
    return not (self == other)
8367
 
8368
class addTrackLog_args:
8369
  """
8370
  Attributes:
1996 vikas 8371
   - affiliateId
1845 vikas 8372
   - userId
8373
   - event
8374
   - url
8375
   - data
1859 vikas 8376
   - addedOn
1845 vikas 8377
  """
8378
 
8379
  thrift_spec = (
8380
    None, # 0
1996 vikas 8381
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8382
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8383
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8384
    (4, TType.STRING, 'url', None, None, ), # 4
8385
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8386
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8387
  )
8388
 
1996 vikas 8389
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8390
    self.affiliateId = affiliateId
1845 vikas 8391
    self.userId = userId
8392
    self.event = event
8393
    self.url = url
8394
    self.data = data
1859 vikas 8395
    self.addedOn = addedOn
1845 vikas 8396
 
8397
  def read(self, iprot):
8398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8400
      return
8401
    iprot.readStructBegin()
8402
    while True:
8403
      (fname, ftype, fid) = iprot.readFieldBegin()
8404
      if ftype == TType.STOP:
8405
        break
8406
      if fid == 1:
8407
        if ftype == TType.I64:
1996 vikas 8408
          self.affiliateId = iprot.readI64();
1845 vikas 8409
        else:
8410
          iprot.skip(ftype)
8411
      elif fid == 2:
8412
        if ftype == TType.I64:
8413
          self.userId = iprot.readI64();
8414
        else:
8415
          iprot.skip(ftype)
8416
      elif fid == 3:
3378 vikas 8417
        if ftype == TType.I32:
8418
          self.event = iprot.readI32();
1845 vikas 8419
        else:
8420
          iprot.skip(ftype)
8421
      elif fid == 4:
8422
        if ftype == TType.STRING:
8423
          self.url = iprot.readString();
8424
        else:
8425
          iprot.skip(ftype)
8426
      elif fid == 5:
8427
        if ftype == TType.STRING:
8428
          self.data = iprot.readString();
8429
        else:
8430
          iprot.skip(ftype)
1859 vikas 8431
      elif fid == 6:
8432
        if ftype == TType.I64:
8433
          self.addedOn = iprot.readI64();
8434
        else:
8435
          iprot.skip(ftype)
1845 vikas 8436
      else:
8437
        iprot.skip(ftype)
8438
      iprot.readFieldEnd()
8439
    iprot.readStructEnd()
8440
 
8441
  def write(self, oprot):
8442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8444
      return
8445
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8446
    if self.affiliateId is not None:
1996 vikas 8447
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8448
      oprot.writeI64(self.affiliateId)
1845 vikas 8449
      oprot.writeFieldEnd()
3431 rajveer 8450
    if self.userId is not None:
1845 vikas 8451
      oprot.writeFieldBegin('userId', TType.I64, 2)
8452
      oprot.writeI64(self.userId)
8453
      oprot.writeFieldEnd()
3431 rajveer 8454
    if self.event is not None:
3378 vikas 8455
      oprot.writeFieldBegin('event', TType.I32, 3)
8456
      oprot.writeI32(self.event)
1845 vikas 8457
      oprot.writeFieldEnd()
3431 rajveer 8458
    if self.url is not None:
1845 vikas 8459
      oprot.writeFieldBegin('url', TType.STRING, 4)
8460
      oprot.writeString(self.url)
8461
      oprot.writeFieldEnd()
3431 rajveer 8462
    if self.data is not None:
1845 vikas 8463
      oprot.writeFieldBegin('data', TType.STRING, 5)
8464
      oprot.writeString(self.data)
8465
      oprot.writeFieldEnd()
3431 rajveer 8466
    if self.addedOn is not None:
1859 vikas 8467
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8468
      oprot.writeI64(self.addedOn)
8469
      oprot.writeFieldEnd()
1845 vikas 8470
    oprot.writeFieldStop()
8471
    oprot.writeStructEnd()
8472
 
3431 rajveer 8473
  def validate(self):
8474
    return
8475
 
8476
 
1845 vikas 8477
  def __repr__(self):
8478
    L = ['%s=%r' % (key, value)
8479
      for key, value in self.__dict__.iteritems()]
8480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8481
 
8482
  def __eq__(self, other):
8483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8484
 
8485
  def __ne__(self, other):
8486
    return not (self == other)
8487
 
8488
class addTrackLog_result:
8489
  """
8490
  Attributes:
8491
   - success
8492
   - utx
8493
  """
8494
 
8495
  thrift_spec = (
8496
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8497
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8498
  )
8499
 
8500
  def __init__(self, success=None, utx=None,):
8501
    self.success = success
8502
    self.utx = utx
8503
 
8504
  def read(self, iprot):
8505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8507
      return
8508
    iprot.readStructBegin()
8509
    while True:
8510
      (fname, ftype, fid) = iprot.readFieldBegin()
8511
      if ftype == TType.STOP:
8512
        break
8513
      if fid == 0:
8514
        if ftype == TType.I64:
8515
          self.success = iprot.readI64();
8516
        else:
8517
          iprot.skip(ftype)
8518
      elif fid == 1:
8519
        if ftype == TType.STRUCT:
1996 vikas 8520
          self.utx = UserAffiliateException()
1845 vikas 8521
          self.utx.read(iprot)
8522
        else:
8523
          iprot.skip(ftype)
8524
      else:
8525
        iprot.skip(ftype)
8526
      iprot.readFieldEnd()
8527
    iprot.readStructEnd()
8528
 
8529
  def write(self, oprot):
8530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8532
      return
8533
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8534
    if self.success is not None:
1845 vikas 8535
      oprot.writeFieldBegin('success', TType.I64, 0)
8536
      oprot.writeI64(self.success)
8537
      oprot.writeFieldEnd()
3431 rajveer 8538
    if self.utx is not None:
1845 vikas 8539
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8540
      self.utx.write(oprot)
8541
      oprot.writeFieldEnd()
8542
    oprot.writeFieldStop()
8543
    oprot.writeStructEnd()
8544
 
3431 rajveer 8545
  def validate(self):
8546
    return
8547
 
8548
 
1845 vikas 8549
  def __repr__(self):
8550
    L = ['%s=%r' % (key, value)
8551
      for key, value in self.__dict__.iteritems()]
8552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8553
 
8554
  def __eq__(self, other):
8555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8556
 
8557
  def __ne__(self, other):
8558
    return not (self == other)
8559
 
8560
class getTrackLogById_args:
8561
  """
8562
  Attributes:
8563
   - id
8564
  """
8565
 
8566
  thrift_spec = (
8567
    None, # 0
8568
    (1, TType.I64, 'id', None, None, ), # 1
8569
  )
8570
 
8571
  def __init__(self, id=None,):
8572
    self.id = id
8573
 
8574
  def read(self, iprot):
8575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8577
      return
8578
    iprot.readStructBegin()
8579
    while True:
8580
      (fname, ftype, fid) = iprot.readFieldBegin()
8581
      if ftype == TType.STOP:
8582
        break
8583
      if fid == 1:
8584
        if ftype == TType.I64:
8585
          self.id = iprot.readI64();
8586
        else:
8587
          iprot.skip(ftype)
8588
      else:
8589
        iprot.skip(ftype)
8590
      iprot.readFieldEnd()
8591
    iprot.readStructEnd()
8592
 
8593
  def write(self, oprot):
8594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8596
      return
8597
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8598
    if self.id is not None:
1845 vikas 8599
      oprot.writeFieldBegin('id', TType.I64, 1)
8600
      oprot.writeI64(self.id)
8601
      oprot.writeFieldEnd()
8602
    oprot.writeFieldStop()
8603
    oprot.writeStructEnd()
8604
 
3431 rajveer 8605
  def validate(self):
8606
    return
8607
 
8608
 
1845 vikas 8609
  def __repr__(self):
8610
    L = ['%s=%r' % (key, value)
8611
      for key, value in self.__dict__.iteritems()]
8612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8613
 
8614
  def __eq__(self, other):
8615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8616
 
8617
  def __ne__(self, other):
8618
    return not (self == other)
8619
 
8620
class getTrackLogById_result:
8621
  """
8622
  Attributes:
8623
   - success
8624
   - utx
8625
  """
8626
 
8627
  thrift_spec = (
8628
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8629
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8630
  )
8631
 
8632
  def __init__(self, success=None, utx=None,):
8633
    self.success = success
8634
    self.utx = utx
8635
 
8636
  def read(self, iprot):
8637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8639
      return
8640
    iprot.readStructBegin()
8641
    while True:
8642
      (fname, ftype, fid) = iprot.readFieldBegin()
8643
      if ftype == TType.STOP:
8644
        break
8645
      if fid == 0:
8646
        if ftype == TType.STRUCT:
8647
          self.success = TrackLog()
8648
          self.success.read(iprot)
8649
        else:
8650
          iprot.skip(ftype)
8651
      elif fid == 1:
8652
        if ftype == TType.STRUCT:
1996 vikas 8653
          self.utx = UserAffiliateException()
1845 vikas 8654
          self.utx.read(iprot)
8655
        else:
8656
          iprot.skip(ftype)
8657
      else:
8658
        iprot.skip(ftype)
8659
      iprot.readFieldEnd()
8660
    iprot.readStructEnd()
8661
 
8662
  def write(self, oprot):
8663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8665
      return
8666
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8667
    if self.success is not None:
1845 vikas 8668
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8669
      self.success.write(oprot)
8670
      oprot.writeFieldEnd()
3431 rajveer 8671
    if self.utx is not None:
1845 vikas 8672
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8673
      self.utx.write(oprot)
8674
      oprot.writeFieldEnd()
8675
    oprot.writeFieldStop()
8676
    oprot.writeStructEnd()
8677
 
3431 rajveer 8678
  def validate(self):
8679
    return
8680
 
8681
 
1845 vikas 8682
  def __repr__(self):
8683
    L = ['%s=%r' % (key, value)
8684
      for key, value in self.__dict__.iteritems()]
8685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8686
 
8687
  def __eq__(self, other):
8688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8689
 
8690
  def __ne__(self, other):
8691
    return not (self == other)
8692
 
1996 vikas 8693
class getTrackLogsByAffiliate_args:
1845 vikas 8694
  """
8695
  Attributes:
1996 vikas 8696
   - affiliateId
3293 vikas 8697
   - startDate
8698
   - endDate
1845 vikas 8699
  """
8700
 
8701
  thrift_spec = (
8702
    None, # 0
1996 vikas 8703
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8704
    (2, TType.I64, 'startDate', None, None, ), # 2
8705
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8706
  )
8707
 
3293 vikas 8708
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 8709
    self.affiliateId = affiliateId
3293 vikas 8710
    self.startDate = startDate
8711
    self.endDate = endDate
1845 vikas 8712
 
8713
  def read(self, iprot):
8714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8716
      return
8717
    iprot.readStructBegin()
8718
    while True:
8719
      (fname, ftype, fid) = iprot.readFieldBegin()
8720
      if ftype == TType.STOP:
8721
        break
8722
      if fid == 1:
8723
        if ftype == TType.I64:
1996 vikas 8724
          self.affiliateId = iprot.readI64();
1845 vikas 8725
        else:
8726
          iprot.skip(ftype)
3293 vikas 8727
      elif fid == 2:
8728
        if ftype == TType.I64:
8729
          self.startDate = iprot.readI64();
8730
        else:
8731
          iprot.skip(ftype)
8732
      elif fid == 3:
8733
        if ftype == TType.I64:
8734
          self.endDate = iprot.readI64();
8735
        else:
8736
          iprot.skip(ftype)
1845 vikas 8737
      else:
8738
        iprot.skip(ftype)
8739
      iprot.readFieldEnd()
8740
    iprot.readStructEnd()
8741
 
8742
  def write(self, oprot):
8743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8745
      return
1996 vikas 8746
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 8747
    if self.affiliateId is not None:
1996 vikas 8748
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8749
      oprot.writeI64(self.affiliateId)
1845 vikas 8750
      oprot.writeFieldEnd()
3431 rajveer 8751
    if self.startDate is not None:
3293 vikas 8752
      oprot.writeFieldBegin('startDate', TType.I64, 2)
8753
      oprot.writeI64(self.startDate)
8754
      oprot.writeFieldEnd()
3431 rajveer 8755
    if self.endDate is not None:
3293 vikas 8756
      oprot.writeFieldBegin('endDate', TType.I64, 3)
8757
      oprot.writeI64(self.endDate)
8758
      oprot.writeFieldEnd()
1845 vikas 8759
    oprot.writeFieldStop()
8760
    oprot.writeStructEnd()
8761
 
3431 rajveer 8762
  def validate(self):
8763
    return
8764
 
8765
 
1845 vikas 8766
  def __repr__(self):
8767
    L = ['%s=%r' % (key, value)
8768
      for key, value in self.__dict__.iteritems()]
8769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8770
 
8771
  def __eq__(self, other):
8772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8773
 
8774
  def __ne__(self, other):
8775
    return not (self == other)
8776
 
1996 vikas 8777
class getTrackLogsByAffiliate_result:
1845 vikas 8778
  """
8779
  Attributes:
8780
   - success
8781
   - utx
8782
  """
8783
 
8784
  thrift_spec = (
8785
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 8786
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8787
  )
8788
 
8789
  def __init__(self, success=None, utx=None,):
8790
    self.success = success
8791
    self.utx = utx
8792
 
8793
  def read(self, iprot):
8794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8796
      return
8797
    iprot.readStructBegin()
8798
    while True:
8799
      (fname, ftype, fid) = iprot.readFieldBegin()
8800
      if ftype == TType.STOP:
8801
        break
8802
      if fid == 0:
8803
        if ftype == TType.LIST:
8804
          self.success = []
5326 rajveer 8805
          (_etype96, _size93) = iprot.readListBegin()
8806
          for _i97 in xrange(_size93):
8807
            _elem98 = TrackLog()
8808
            _elem98.read(iprot)
8809
            self.success.append(_elem98)
1845 vikas 8810
          iprot.readListEnd()
8811
        else:
8812
          iprot.skip(ftype)
8813
      elif fid == 1:
8814
        if ftype == TType.STRUCT:
1996 vikas 8815
          self.utx = UserAffiliateException()
1845 vikas 8816
          self.utx.read(iprot)
8817
        else:
8818
          iprot.skip(ftype)
8819
      else:
8820
        iprot.skip(ftype)
8821
      iprot.readFieldEnd()
8822
    iprot.readStructEnd()
8823
 
8824
  def write(self, oprot):
8825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8827
      return
1996 vikas 8828
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 8829
    if self.success is not None:
1845 vikas 8830
      oprot.writeFieldBegin('success', TType.LIST, 0)
8831
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8832
      for iter99 in self.success:
8833
        iter99.write(oprot)
1845 vikas 8834
      oprot.writeListEnd()
8835
      oprot.writeFieldEnd()
3431 rajveer 8836
    if self.utx is not None:
1845 vikas 8837
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8838
      self.utx.write(oprot)
8839
      oprot.writeFieldEnd()
8840
    oprot.writeFieldStop()
8841
    oprot.writeStructEnd()
8842
 
3431 rajveer 8843
  def validate(self):
8844
    return
8845
 
8846
 
1845 vikas 8847
  def __repr__(self):
8848
    L = ['%s=%r' % (key, value)
8849
      for key, value in self.__dict__.iteritems()]
8850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8851
 
8852
  def __eq__(self, other):
8853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8854
 
8855
  def __ne__(self, other):
8856
    return not (self == other)
8857
 
8858
class getTrackLogsByUser_args:
8859
  """
8860
  Attributes:
8861
   - userId
8862
  """
8863
 
8864
  thrift_spec = (
8865
    None, # 0
8866
    (1, TType.I64, 'userId', None, None, ), # 1
8867
  )
8868
 
8869
  def __init__(self, userId=None,):
8870
    self.userId = userId
8871
 
8872
  def read(self, iprot):
8873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8875
      return
8876
    iprot.readStructBegin()
8877
    while True:
8878
      (fname, ftype, fid) = iprot.readFieldBegin()
8879
      if ftype == TType.STOP:
8880
        break
8881
      if fid == 1:
8882
        if ftype == TType.I64:
8883
          self.userId = iprot.readI64();
8884
        else:
8885
          iprot.skip(ftype)
8886
      else:
8887
        iprot.skip(ftype)
8888
      iprot.readFieldEnd()
8889
    iprot.readStructEnd()
8890
 
8891
  def write(self, oprot):
8892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8894
      return
8895
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 8896
    if self.userId is not None:
1845 vikas 8897
      oprot.writeFieldBegin('userId', TType.I64, 1)
8898
      oprot.writeI64(self.userId)
8899
      oprot.writeFieldEnd()
8900
    oprot.writeFieldStop()
8901
    oprot.writeStructEnd()
8902
 
3431 rajveer 8903
  def validate(self):
8904
    return
8905
 
8906
 
1845 vikas 8907
  def __repr__(self):
8908
    L = ['%s=%r' % (key, value)
8909
      for key, value in self.__dict__.iteritems()]
8910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8911
 
8912
  def __eq__(self, other):
8913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8914
 
8915
  def __ne__(self, other):
8916
    return not (self == other)
8917
 
8918
class getTrackLogsByUser_result:
8919
  """
8920
  Attributes:
8921
   - success
8922
   - utx
8923
  """
8924
 
8925
  thrift_spec = (
8926
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 8927
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8928
  )
8929
 
8930
  def __init__(self, success=None, utx=None,):
8931
    self.success = success
8932
    self.utx = utx
8933
 
8934
  def read(self, iprot):
8935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8937
      return
8938
    iprot.readStructBegin()
8939
    while True:
8940
      (fname, ftype, fid) = iprot.readFieldBegin()
8941
      if ftype == TType.STOP:
8942
        break
8943
      if fid == 0:
8944
        if ftype == TType.LIST:
8945
          self.success = []
5326 rajveer 8946
          (_etype103, _size100) = iprot.readListBegin()
8947
          for _i104 in xrange(_size100):
8948
            _elem105 = TrackLog()
8949
            _elem105.read(iprot)
8950
            self.success.append(_elem105)
1845 vikas 8951
          iprot.readListEnd()
8952
        else:
8953
          iprot.skip(ftype)
8954
      elif fid == 1:
8955
        if ftype == TType.STRUCT:
1996 vikas 8956
          self.utx = UserAffiliateException()
1845 vikas 8957
          self.utx.read(iprot)
8958
        else:
8959
          iprot.skip(ftype)
8960
      else:
8961
        iprot.skip(ftype)
8962
      iprot.readFieldEnd()
8963
    iprot.readStructEnd()
8964
 
8965
  def write(self, oprot):
8966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8968
      return
8969
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 8970
    if self.success is not None:
1845 vikas 8971
      oprot.writeFieldBegin('success', TType.LIST, 0)
8972
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8973
      for iter106 in self.success:
8974
        iter106.write(oprot)
1845 vikas 8975
      oprot.writeListEnd()
8976
      oprot.writeFieldEnd()
3431 rajveer 8977
    if self.utx is not None:
1845 vikas 8978
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8979
      self.utx.write(oprot)
8980
      oprot.writeFieldEnd()
8981
    oprot.writeFieldStop()
8982
    oprot.writeStructEnd()
8983
 
3431 rajveer 8984
  def validate(self):
8985
    return
8986
 
8987
 
1845 vikas 8988
  def __repr__(self):
8989
    L = ['%s=%r' % (key, value)
8990
      for key, value in self.__dict__.iteritems()]
8991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8992
 
8993
  def __eq__(self, other):
8994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8995
 
8996
  def __ne__(self, other):
8997
    return not (self == other)
8998
 
8999
class getTrackLogs_args:
9000
  """
9001
  Attributes:
9002
   - userId
9003
   - event
9004
   - url
9005
  """
9006
 
9007
  thrift_spec = (
9008
    None, # 0
1996 vikas 9009
    (1, TType.I64, 'userId', None, None, ), # 1
9010
    (2, TType.STRING, 'event', None, None, ), # 2
9011
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9012
  )
9013
 
1996 vikas 9014
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9015
    self.userId = userId
9016
    self.event = event
9017
    self.url = url
9018
 
9019
  def read(self, iprot):
9020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9022
      return
9023
    iprot.readStructBegin()
9024
    while True:
9025
      (fname, ftype, fid) = iprot.readFieldBegin()
9026
      if ftype == TType.STOP:
9027
        break
9028
      if fid == 1:
9029
        if ftype == TType.I64:
1996 vikas 9030
          self.userId = iprot.readI64();
1845 vikas 9031
        else:
9032
          iprot.skip(ftype)
9033
      elif fid == 2:
9034
        if ftype == TType.STRING:
9035
          self.event = iprot.readString();
9036
        else:
9037
          iprot.skip(ftype)
1996 vikas 9038
      elif fid == 3:
1845 vikas 9039
        if ftype == TType.STRING:
9040
          self.url = iprot.readString();
9041
        else:
9042
          iprot.skip(ftype)
9043
      else:
9044
        iprot.skip(ftype)
9045
      iprot.readFieldEnd()
9046
    iprot.readStructEnd()
9047
 
9048
  def write(self, oprot):
9049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9051
      return
9052
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9053
    if self.userId is not None:
1996 vikas 9054
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9055
      oprot.writeI64(self.userId)
9056
      oprot.writeFieldEnd()
3431 rajveer 9057
    if self.event is not None:
1996 vikas 9058
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9059
      oprot.writeString(self.event)
9060
      oprot.writeFieldEnd()
3431 rajveer 9061
    if self.url is not None:
1996 vikas 9062
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9063
      oprot.writeString(self.url)
9064
      oprot.writeFieldEnd()
9065
    oprot.writeFieldStop()
9066
    oprot.writeStructEnd()
9067
 
3431 rajveer 9068
  def validate(self):
9069
    return
9070
 
9071
 
1845 vikas 9072
  def __repr__(self):
9073
    L = ['%s=%r' % (key, value)
9074
      for key, value in self.__dict__.iteritems()]
9075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9076
 
9077
  def __eq__(self, other):
9078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9079
 
9080
  def __ne__(self, other):
9081
    return not (self == other)
9082
 
9083
class getTrackLogs_result:
9084
  """
9085
  Attributes:
9086
   - success
9087
   - utx
9088
  """
9089
 
9090
  thrift_spec = (
9091
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9092
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9093
  )
9094
 
9095
  def __init__(self, success=None, utx=None,):
9096
    self.success = success
9097
    self.utx = utx
9098
 
9099
  def read(self, iprot):
9100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9102
      return
9103
    iprot.readStructBegin()
9104
    while True:
9105
      (fname, ftype, fid) = iprot.readFieldBegin()
9106
      if ftype == TType.STOP:
9107
        break
9108
      if fid == 0:
9109
        if ftype == TType.LIST:
9110
          self.success = []
5326 rajveer 9111
          (_etype110, _size107) = iprot.readListBegin()
9112
          for _i111 in xrange(_size107):
9113
            _elem112 = TrackLog()
9114
            _elem112.read(iprot)
9115
            self.success.append(_elem112)
1845 vikas 9116
          iprot.readListEnd()
9117
        else:
9118
          iprot.skip(ftype)
9119
      elif fid == 1:
9120
        if ftype == TType.STRUCT:
1996 vikas 9121
          self.utx = UserAffiliateException()
1845 vikas 9122
          self.utx.read(iprot)
9123
        else:
9124
          iprot.skip(ftype)
9125
      else:
9126
        iprot.skip(ftype)
9127
      iprot.readFieldEnd()
9128
    iprot.readStructEnd()
9129
 
9130
  def write(self, oprot):
9131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9133
      return
9134
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9135
    if self.success is not None:
1845 vikas 9136
      oprot.writeFieldBegin('success', TType.LIST, 0)
9137
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9138
      for iter113 in self.success:
9139
        iter113.write(oprot)
1845 vikas 9140
      oprot.writeListEnd()
9141
      oprot.writeFieldEnd()
3431 rajveer 9142
    if self.utx is not None:
1845 vikas 9143
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9144
      self.utx.write(oprot)
9145
      oprot.writeFieldEnd()
9146
    oprot.writeFieldStop()
9147
    oprot.writeStructEnd()
9148
 
3431 rajveer 9149
  def validate(self):
9150
    return
9151
 
9152
 
1845 vikas 9153
  def __repr__(self):
9154
    L = ['%s=%r' % (key, value)
9155
      for key, value in self.__dict__.iteritems()]
9156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9157
 
9158
  def __eq__(self, other):
9159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9160
 
9161
  def __ne__(self, other):
9162
    return not (self == other)
9163
 
559 chandransh 9164
class getCurrentCart_args:
94 ashish 9165
  """
9166
  Attributes:
559 chandransh 9167
   - userId
9168
  """
9169
 
9170
  thrift_spec = (
9171
    None, # 0
9172
    (1, TType.I64, 'userId', None, None, ), # 1
9173
  )
9174
 
9175
  def __init__(self, userId=None,):
9176
    self.userId = userId
9177
 
9178
  def read(self, iprot):
9179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9181
      return
9182
    iprot.readStructBegin()
9183
    while True:
9184
      (fname, ftype, fid) = iprot.readFieldBegin()
9185
      if ftype == TType.STOP:
9186
        break
9187
      if fid == 1:
9188
        if ftype == TType.I64:
9189
          self.userId = iprot.readI64();
9190
        else:
9191
          iprot.skip(ftype)
9192
      else:
9193
        iprot.skip(ftype)
9194
      iprot.readFieldEnd()
9195
    iprot.readStructEnd()
9196
 
9197
  def write(self, oprot):
9198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9200
      return
9201
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9202
    if self.userId is not None:
559 chandransh 9203
      oprot.writeFieldBegin('userId', TType.I64, 1)
9204
      oprot.writeI64(self.userId)
9205
      oprot.writeFieldEnd()
9206
    oprot.writeFieldStop()
9207
    oprot.writeStructEnd()
9208
 
3431 rajveer 9209
  def validate(self):
9210
    return
9211
 
9212
 
559 chandransh 9213
  def __repr__(self):
9214
    L = ['%s=%r' % (key, value)
9215
      for key, value in self.__dict__.iteritems()]
9216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9217
 
9218
  def __eq__(self, other):
9219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9220
 
9221
  def __ne__(self, other):
9222
    return not (self == other)
9223
 
9224
class getCurrentCart_result:
9225
  """
9226
  Attributes:
94 ashish 9227
   - success
559 chandransh 9228
   - scx
94 ashish 9229
  """
9230
 
9231
  thrift_spec = (
559 chandransh 9232
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9233
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9234
  )
9235
 
559 chandransh 9236
  def __init__(self, success=None, scx=None,):
94 ashish 9237
    self.success = success
559 chandransh 9238
    self.scx = scx
94 ashish 9239
 
9240
  def read(self, iprot):
9241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9243
      return
9244
    iprot.readStructBegin()
9245
    while True:
9246
      (fname, ftype, fid) = iprot.readFieldBegin()
9247
      if ftype == TType.STOP:
9248
        break
9249
      if fid == 0:
559 chandransh 9250
        if ftype == TType.STRUCT:
9251
          self.success = Cart()
9252
          self.success.read(iprot)
94 ashish 9253
        else:
9254
          iprot.skip(ftype)
9255
      elif fid == 1:
9256
        if ftype == TType.STRUCT:
559 chandransh 9257
          self.scx = ShoppingCartException()
9258
          self.scx.read(iprot)
94 ashish 9259
        else:
9260
          iprot.skip(ftype)
9261
      else:
9262
        iprot.skip(ftype)
9263
      iprot.readFieldEnd()
9264
    iprot.readStructEnd()
9265
 
9266
  def write(self, oprot):
9267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9269
      return
559 chandransh 9270
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9271
    if self.success is not None:
559 chandransh 9272
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9273
      self.success.write(oprot)
94 ashish 9274
      oprot.writeFieldEnd()
3431 rajveer 9275
    if self.scx is not None:
559 chandransh 9276
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9277
      self.scx.write(oprot)
94 ashish 9278
      oprot.writeFieldEnd()
9279
    oprot.writeFieldStop()
9280
    oprot.writeStructEnd()
9281
 
3431 rajveer 9282
  def validate(self):
9283
    return
9284
 
9285
 
94 ashish 9286
  def __repr__(self):
9287
    L = ['%s=%r' % (key, value)
9288
      for key, value in self.__dict__.iteritems()]
9289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9290
 
9291
  def __eq__(self, other):
9292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9293
 
9294
  def __ne__(self, other):
9295
    return not (self == other)
9296
 
559 chandransh 9297
class getCart_args:
504 rajveer 9298
  """
9299
  Attributes:
559 chandransh 9300
   - cartId
504 rajveer 9301
  """
9302
 
9303
  thrift_spec = (
9304
    None, # 0
559 chandransh 9305
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9306
  )
9307
 
559 chandransh 9308
  def __init__(self, cartId=None,):
9309
    self.cartId = cartId
504 rajveer 9310
 
9311
  def read(self, iprot):
9312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9314
      return
9315
    iprot.readStructBegin()
9316
    while True:
9317
      (fname, ftype, fid) = iprot.readFieldBegin()
9318
      if ftype == TType.STOP:
9319
        break
9320
      if fid == 1:
9321
        if ftype == TType.I64:
559 chandransh 9322
          self.cartId = iprot.readI64();
504 rajveer 9323
        else:
9324
          iprot.skip(ftype)
9325
      else:
9326
        iprot.skip(ftype)
9327
      iprot.readFieldEnd()
9328
    iprot.readStructEnd()
9329
 
9330
  def write(self, oprot):
9331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9333
      return
559 chandransh 9334
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9335
    if self.cartId is not None:
559 chandransh 9336
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9337
      oprot.writeI64(self.cartId)
504 rajveer 9338
      oprot.writeFieldEnd()
9339
    oprot.writeFieldStop()
9340
    oprot.writeStructEnd()
9341
 
3431 rajveer 9342
  def validate(self):
9343
    return
9344
 
9345
 
504 rajveer 9346
  def __repr__(self):
9347
    L = ['%s=%r' % (key, value)
9348
      for key, value in self.__dict__.iteritems()]
9349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9350
 
9351
  def __eq__(self, other):
9352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9353
 
9354
  def __ne__(self, other):
9355
    return not (self == other)
9356
 
559 chandransh 9357
class getCart_result:
504 rajveer 9358
  """
9359
  Attributes:
9360
   - success
559 chandransh 9361
   - scx
504 rajveer 9362
  """
9363
 
9364
  thrift_spec = (
559 chandransh 9365
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9366
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9367
  )
9368
 
559 chandransh 9369
  def __init__(self, success=None, scx=None,):
504 rajveer 9370
    self.success = success
559 chandransh 9371
    self.scx = scx
504 rajveer 9372
 
9373
  def read(self, iprot):
9374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9376
      return
9377
    iprot.readStructBegin()
9378
    while True:
9379
      (fname, ftype, fid) = iprot.readFieldBegin()
9380
      if ftype == TType.STOP:
9381
        break
9382
      if fid == 0:
559 chandransh 9383
        if ftype == TType.STRUCT:
9384
          self.success = Cart()
9385
          self.success.read(iprot)
504 rajveer 9386
        else:
9387
          iprot.skip(ftype)
9388
      elif fid == 1:
9389
        if ftype == TType.STRUCT:
559 chandransh 9390
          self.scx = ShoppingCartException()
9391
          self.scx.read(iprot)
504 rajveer 9392
        else:
9393
          iprot.skip(ftype)
9394
      else:
9395
        iprot.skip(ftype)
9396
      iprot.readFieldEnd()
9397
    iprot.readStructEnd()
9398
 
9399
  def write(self, oprot):
9400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9402
      return
559 chandransh 9403
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9404
    if self.success is not None:
559 chandransh 9405
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9406
      self.success.write(oprot)
504 rajveer 9407
      oprot.writeFieldEnd()
3431 rajveer 9408
    if self.scx is not None:
559 chandransh 9409
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9410
      self.scx.write(oprot)
504 rajveer 9411
      oprot.writeFieldEnd()
9412
    oprot.writeFieldStop()
9413
    oprot.writeStructEnd()
9414
 
3431 rajveer 9415
  def validate(self):
9416
    return
9417
 
9418
 
504 rajveer 9419
  def __repr__(self):
9420
    L = ['%s=%r' % (key, value)
9421
      for key, value in self.__dict__.iteritems()]
9422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9423
 
9424
  def __eq__(self, other):
9425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9426
 
9427
  def __ne__(self, other):
9428
    return not (self == other)
9429
 
559 chandransh 9430
class getCartsByTime_args:
9431
  """
9432
  Attributes:
9433
   - from_time
9434
   - to_time
9435
   - status
9436
  """
9437
 
9438
  thrift_spec = (
9439
    None, # 0
9440
    (1, TType.I64, 'from_time', None, None, ), # 1
9441
    (2, TType.I64, 'to_time', None, None, ), # 2
9442
    (3, TType.I32, 'status', None, None, ), # 3
9443
  )
9444
 
9445
  def __init__(self, from_time=None, to_time=None, status=None,):
9446
    self.from_time = from_time
9447
    self.to_time = to_time
9448
    self.status = status
9449
 
9450
  def read(self, iprot):
9451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9453
      return
9454
    iprot.readStructBegin()
9455
    while True:
9456
      (fname, ftype, fid) = iprot.readFieldBegin()
9457
      if ftype == TType.STOP:
9458
        break
9459
      if fid == 1:
94 ashish 9460
        if ftype == TType.I64:
559 chandransh 9461
          self.from_time = iprot.readI64();
94 ashish 9462
        else:
9463
          iprot.skip(ftype)
122 ashish 9464
      elif fid == 2:
559 chandransh 9465
        if ftype == TType.I64:
9466
          self.to_time = iprot.readI64();
122 ashish 9467
        else:
9468
          iprot.skip(ftype)
559 chandransh 9469
      elif fid == 3:
9470
        if ftype == TType.I32:
9471
          self.status = iprot.readI32();
9472
        else:
9473
          iprot.skip(ftype)
94 ashish 9474
      else:
9475
        iprot.skip(ftype)
9476
      iprot.readFieldEnd()
9477
    iprot.readStructEnd()
9478
 
9479
  def write(self, oprot):
9480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9482
      return
559 chandransh 9483
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9484
    if self.from_time is not None:
559 chandransh 9485
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9486
      oprot.writeI64(self.from_time)
94 ashish 9487
      oprot.writeFieldEnd()
3431 rajveer 9488
    if self.to_time is not None:
559 chandransh 9489
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9490
      oprot.writeI64(self.to_time)
122 ashish 9491
      oprot.writeFieldEnd()
3431 rajveer 9492
    if self.status is not None:
559 chandransh 9493
      oprot.writeFieldBegin('status', TType.I32, 3)
9494
      oprot.writeI32(self.status)
9495
      oprot.writeFieldEnd()
94 ashish 9496
    oprot.writeFieldStop()
9497
    oprot.writeStructEnd()
9498
 
3431 rajveer 9499
  def validate(self):
9500
    return
9501
 
9502
 
94 ashish 9503
  def __repr__(self):
9504
    L = ['%s=%r' % (key, value)
9505
      for key, value in self.__dict__.iteritems()]
9506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9507
 
9508
  def __eq__(self, other):
9509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9510
 
9511
  def __ne__(self, other):
9512
    return not (self == other)
9513
 
559 chandransh 9514
class getCartsByTime_result:
94 ashish 9515
  """
9516
  Attributes:
9517
   - success
559 chandransh 9518
   - scx
94 ashish 9519
  """
9520
 
9521
  thrift_spec = (
559 chandransh 9522
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9523
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9524
  )
9525
 
559 chandransh 9526
  def __init__(self, success=None, scx=None,):
94 ashish 9527
    self.success = success
559 chandransh 9528
    self.scx = scx
94 ashish 9529
 
9530
  def read(self, iprot):
9531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9533
      return
9534
    iprot.readStructBegin()
9535
    while True:
9536
      (fname, ftype, fid) = iprot.readFieldBegin()
9537
      if ftype == TType.STOP:
9538
        break
9539
      if fid == 0:
559 chandransh 9540
        if ftype == TType.LIST:
9541
          self.success = []
5326 rajveer 9542
          (_etype117, _size114) = iprot.readListBegin()
9543
          for _i118 in xrange(_size114):
9544
            _elem119 = Cart()
9545
            _elem119.read(iprot)
9546
            self.success.append(_elem119)
559 chandransh 9547
          iprot.readListEnd()
94 ashish 9548
        else:
9549
          iprot.skip(ftype)
9550
      elif fid == 1:
9551
        if ftype == TType.STRUCT:
559 chandransh 9552
          self.scx = ShoppingCartException()
9553
          self.scx.read(iprot)
94 ashish 9554
        else:
9555
          iprot.skip(ftype)
9556
      else:
9557
        iprot.skip(ftype)
9558
      iprot.readFieldEnd()
9559
    iprot.readStructEnd()
9560
 
9561
  def write(self, oprot):
9562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9564
      return
559 chandransh 9565
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9566
    if self.success is not None:
559 chandransh 9567
      oprot.writeFieldBegin('success', TType.LIST, 0)
9568
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9569
      for iter120 in self.success:
9570
        iter120.write(oprot)
559 chandransh 9571
      oprot.writeListEnd()
94 ashish 9572
      oprot.writeFieldEnd()
3431 rajveer 9573
    if self.scx is not None:
559 chandransh 9574
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9575
      self.scx.write(oprot)
94 ashish 9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
3431 rajveer 9580
  def validate(self):
9581
    return
9582
 
9583
 
94 ashish 9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
559 chandransh 9595
class addItemToCart_args:
9596
  """
9597
  Attributes:
9598
   - cartId
9599
   - itemId
9600
   - quantity
3557 rajveer 9601
   - sourceId
559 chandransh 9602
  """
9603
 
9604
  thrift_spec = (
9605
    None, # 0
9606
    (1, TType.I64, 'cartId', None, None, ), # 1
9607
    (2, TType.I64, 'itemId', None, None, ), # 2
9608
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9609
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9610
  )
9611
 
3557 rajveer 9612
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9613
    self.cartId = cartId
9614
    self.itemId = itemId
9615
    self.quantity = quantity
3557 rajveer 9616
    self.sourceId = sourceId
559 chandransh 9617
 
9618
  def read(self, iprot):
9619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9621
      return
9622
    iprot.readStructBegin()
9623
    while True:
9624
      (fname, ftype, fid) = iprot.readFieldBegin()
9625
      if ftype == TType.STOP:
9626
        break
9627
      if fid == 1:
9628
        if ftype == TType.I64:
9629
          self.cartId = iprot.readI64();
9630
        else:
9631
          iprot.skip(ftype)
9632
      elif fid == 2:
9633
        if ftype == TType.I64:
9634
          self.itemId = iprot.readI64();
9635
        else:
9636
          iprot.skip(ftype)
9637
      elif fid == 3:
9638
        if ftype == TType.I64:
9639
          self.quantity = iprot.readI64();
9640
        else:
9641
          iprot.skip(ftype)
3557 rajveer 9642
      elif fid == 4:
9643
        if ftype == TType.I64:
9644
          self.sourceId = iprot.readI64();
9645
        else:
9646
          iprot.skip(ftype)
559 chandransh 9647
      else:
9648
        iprot.skip(ftype)
9649
      iprot.readFieldEnd()
9650
    iprot.readStructEnd()
9651
 
9652
  def write(self, oprot):
9653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9655
      return
9656
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9657
    if self.cartId is not None:
559 chandransh 9658
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9659
      oprot.writeI64(self.cartId)
9660
      oprot.writeFieldEnd()
3431 rajveer 9661
    if self.itemId is not None:
559 chandransh 9662
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9663
      oprot.writeI64(self.itemId)
9664
      oprot.writeFieldEnd()
3431 rajveer 9665
    if self.quantity is not None:
559 chandransh 9666
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9667
      oprot.writeI64(self.quantity)
9668
      oprot.writeFieldEnd()
3557 rajveer 9669
    if self.sourceId is not None:
9670
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9671
      oprot.writeI64(self.sourceId)
9672
      oprot.writeFieldEnd()
559 chandransh 9673
    oprot.writeFieldStop()
9674
    oprot.writeStructEnd()
9675
 
3431 rajveer 9676
  def validate(self):
9677
    return
9678
 
9679
 
559 chandransh 9680
  def __repr__(self):
9681
    L = ['%s=%r' % (key, value)
9682
      for key, value in self.__dict__.iteritems()]
9683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9684
 
9685
  def __eq__(self, other):
9686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9687
 
9688
  def __ne__(self, other):
9689
    return not (self == other)
9690
 
9691
class addItemToCart_result:
9692
  """
9693
  Attributes:
2035 rajveer 9694
   - success
559 chandransh 9695
   - scx
9696
  """
9697
 
9698
  thrift_spec = (
2035 rajveer 9699
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9700
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9701
  )
9702
 
2035 rajveer 9703
  def __init__(self, success=None, scx=None,):
9704
    self.success = success
559 chandransh 9705
    self.scx = scx
9706
 
9707
  def read(self, iprot):
9708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9710
      return
9711
    iprot.readStructBegin()
9712
    while True:
9713
      (fname, ftype, fid) = iprot.readFieldBegin()
9714
      if ftype == TType.STOP:
9715
        break
2035 rajveer 9716
      if fid == 0:
9717
        if ftype == TType.STRING:
9718
          self.success = iprot.readString();
9719
        else:
9720
          iprot.skip(ftype)
9721
      elif fid == 1:
559 chandransh 9722
        if ftype == TType.STRUCT:
9723
          self.scx = ShoppingCartException()
9724
          self.scx.read(iprot)
9725
        else:
9726
          iprot.skip(ftype)
9727
      else:
9728
        iprot.skip(ftype)
9729
      iprot.readFieldEnd()
9730
    iprot.readStructEnd()
9731
 
9732
  def write(self, oprot):
9733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9735
      return
9736
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 9737
    if self.success is not None:
2035 rajveer 9738
      oprot.writeFieldBegin('success', TType.STRING, 0)
9739
      oprot.writeString(self.success)
9740
      oprot.writeFieldEnd()
3431 rajveer 9741
    if self.scx is not None:
559 chandransh 9742
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9743
      self.scx.write(oprot)
9744
      oprot.writeFieldEnd()
9745
    oprot.writeFieldStop()
9746
    oprot.writeStructEnd()
9747
 
3431 rajveer 9748
  def validate(self):
9749
    return
9750
 
9751
 
559 chandransh 9752
  def __repr__(self):
9753
    L = ['%s=%r' % (key, value)
9754
      for key, value in self.__dict__.iteritems()]
9755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9756
 
9757
  def __eq__(self, other):
9758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9759
 
9760
  def __ne__(self, other):
9761
    return not (self == other)
9762
 
9763
class deleteItemFromCart_args:
9764
  """
9765
  Attributes:
9766
   - cartId
9767
   - itemId
9768
  """
9769
 
9770
  thrift_spec = (
9771
    None, # 0
9772
    (1, TType.I64, 'cartId', None, None, ), # 1
9773
    (2, TType.I64, 'itemId', None, None, ), # 2
9774
  )
9775
 
9776
  def __init__(self, cartId=None, itemId=None,):
9777
    self.cartId = cartId
9778
    self.itemId = itemId
9779
 
9780
  def read(self, iprot):
9781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9783
      return
9784
    iprot.readStructBegin()
9785
    while True:
9786
      (fname, ftype, fid) = iprot.readFieldBegin()
9787
      if ftype == TType.STOP:
9788
        break
9789
      if fid == 1:
9790
        if ftype == TType.I64:
9791
          self.cartId = iprot.readI64();
9792
        else:
9793
          iprot.skip(ftype)
9794
      elif fid == 2:
9795
        if ftype == TType.I64:
9796
          self.itemId = iprot.readI64();
9797
        else:
9798
          iprot.skip(ftype)
9799
      else:
9800
        iprot.skip(ftype)
9801
      iprot.readFieldEnd()
9802
    iprot.readStructEnd()
9803
 
9804
  def write(self, oprot):
9805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9807
      return
9808
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 9809
    if self.cartId is not None:
559 chandransh 9810
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9811
      oprot.writeI64(self.cartId)
9812
      oprot.writeFieldEnd()
3431 rajveer 9813
    if self.itemId is not None:
559 chandransh 9814
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9815
      oprot.writeI64(self.itemId)
9816
      oprot.writeFieldEnd()
9817
    oprot.writeFieldStop()
9818
    oprot.writeStructEnd()
9819
 
3431 rajveer 9820
  def validate(self):
9821
    return
9822
 
9823
 
559 chandransh 9824
  def __repr__(self):
9825
    L = ['%s=%r' % (key, value)
9826
      for key, value in self.__dict__.iteritems()]
9827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9828
 
9829
  def __eq__(self, other):
9830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9831
 
9832
  def __ne__(self, other):
9833
    return not (self == other)
9834
 
9835
class deleteItemFromCart_result:
9836
  """
9837
  Attributes:
9838
   - scx
9839
  """
9840
 
9841
  thrift_spec = (
9842
    None, # 0
9843
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9844
  )
9845
 
9846
  def __init__(self, scx=None,):
9847
    self.scx = scx
9848
 
9849
  def read(self, iprot):
9850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9852
      return
9853
    iprot.readStructBegin()
9854
    while True:
9855
      (fname, ftype, fid) = iprot.readFieldBegin()
9856
      if ftype == TType.STOP:
9857
        break
9858
      if fid == 1:
9859
        if ftype == TType.STRUCT:
9860
          self.scx = ShoppingCartException()
9861
          self.scx.read(iprot)
9862
        else:
9863
          iprot.skip(ftype)
9864
      else:
9865
        iprot.skip(ftype)
9866
      iprot.readFieldEnd()
9867
    iprot.readStructEnd()
9868
 
9869
  def write(self, oprot):
9870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9872
      return
9873
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 9874
    if self.scx is not None:
559 chandransh 9875
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9876
      self.scx.write(oprot)
9877
      oprot.writeFieldEnd()
9878
    oprot.writeFieldStop()
9879
    oprot.writeStructEnd()
9880
 
3431 rajveer 9881
  def validate(self):
9882
    return
9883
 
9884
 
559 chandransh 9885
  def __repr__(self):
9886
    L = ['%s=%r' % (key, value)
9887
      for key, value in self.__dict__.iteritems()]
9888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9889
 
9890
  def __eq__(self, other):
9891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9892
 
9893
  def __ne__(self, other):
9894
    return not (self == other)
9895
 
9896
class addAddressToCart_args:
9897
  """
9898
  Attributes:
9899
   - cartId
9900
   - addressId
9901
  """
9902
 
9903
  thrift_spec = (
9904
    None, # 0
9905
    (1, TType.I64, 'cartId', None, None, ), # 1
9906
    (2, TType.I64, 'addressId', None, None, ), # 2
9907
  )
9908
 
9909
  def __init__(self, cartId=None, addressId=None,):
9910
    self.cartId = cartId
9911
    self.addressId = addressId
9912
 
9913
  def read(self, iprot):
9914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9916
      return
9917
    iprot.readStructBegin()
9918
    while True:
9919
      (fname, ftype, fid) = iprot.readFieldBegin()
9920
      if ftype == TType.STOP:
9921
        break
9922
      if fid == 1:
9923
        if ftype == TType.I64:
9924
          self.cartId = iprot.readI64();
9925
        else:
9926
          iprot.skip(ftype)
9927
      elif fid == 2:
9928
        if ftype == TType.I64:
9929
          self.addressId = iprot.readI64();
9930
        else:
9931
          iprot.skip(ftype)
9932
      else:
9933
        iprot.skip(ftype)
9934
      iprot.readFieldEnd()
9935
    iprot.readStructEnd()
9936
 
9937
  def write(self, oprot):
9938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9940
      return
9941
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 9942
    if self.cartId is not None:
559 chandransh 9943
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9944
      oprot.writeI64(self.cartId)
9945
      oprot.writeFieldEnd()
3431 rajveer 9946
    if self.addressId is not None:
559 chandransh 9947
      oprot.writeFieldBegin('addressId', TType.I64, 2)
9948
      oprot.writeI64(self.addressId)
9949
      oprot.writeFieldEnd()
9950
    oprot.writeFieldStop()
9951
    oprot.writeStructEnd()
9952
 
3431 rajveer 9953
  def validate(self):
9954
    return
9955
 
9956
 
559 chandransh 9957
  def __repr__(self):
9958
    L = ['%s=%r' % (key, value)
9959
      for key, value in self.__dict__.iteritems()]
9960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9961
 
9962
  def __eq__(self, other):
9963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9964
 
9965
  def __ne__(self, other):
9966
    return not (self == other)
9967
 
9968
class addAddressToCart_result:
575 chandransh 9969
  """
9970
  Attributes:
9971
   - scx
9972
  """
559 chandransh 9973
 
9974
  thrift_spec = (
575 chandransh 9975
    None, # 0
9976
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 9977
  )
9978
 
575 chandransh 9979
  def __init__(self, scx=None,):
9980
    self.scx = scx
9981
 
559 chandransh 9982
  def read(self, iprot):
9983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9985
      return
9986
    iprot.readStructBegin()
9987
    while True:
9988
      (fname, ftype, fid) = iprot.readFieldBegin()
9989
      if ftype == TType.STOP:
9990
        break
575 chandransh 9991
      if fid == 1:
9992
        if ftype == TType.STRUCT:
9993
          self.scx = ShoppingCartException()
9994
          self.scx.read(iprot)
9995
        else:
9996
          iprot.skip(ftype)
559 chandransh 9997
      else:
9998
        iprot.skip(ftype)
9999
      iprot.readFieldEnd()
10000
    iprot.readStructEnd()
10001
 
10002
  def write(self, oprot):
10003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10005
      return
10006
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10007
    if self.scx is not None:
575 chandransh 10008
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10009
      self.scx.write(oprot)
10010
      oprot.writeFieldEnd()
559 chandransh 10011
    oprot.writeFieldStop()
10012
    oprot.writeStructEnd()
10013
 
3431 rajveer 10014
  def validate(self):
10015
    return
10016
 
10017
 
559 chandransh 10018
  def __repr__(self):
10019
    L = ['%s=%r' % (key, value)
10020
      for key, value in self.__dict__.iteritems()]
10021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10022
 
10023
  def __eq__(self, other):
10024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10025
 
10026
  def __ne__(self, other):
10027
    return not (self == other)
10028
 
1976 varun.gupt 10029
class applyCouponToCart_args:
10030
  """
10031
  Attributes:
10032
   - cartId
10033
   - couponCode
10034
   - totalPrice
10035
   - discountedPrice
10036
  """
10037
 
10038
  thrift_spec = (
10039
    None, # 0
10040
    (1, TType.I64, 'cartId', None, None, ), # 1
10041
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10042
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10043
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10044
  )
10045
 
10046
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10047
    self.cartId = cartId
10048
    self.couponCode = couponCode
10049
    self.totalPrice = totalPrice
10050
    self.discountedPrice = discountedPrice
10051
 
10052
  def read(self, iprot):
10053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10055
      return
10056
    iprot.readStructBegin()
10057
    while True:
10058
      (fname, ftype, fid) = iprot.readFieldBegin()
10059
      if ftype == TType.STOP:
10060
        break
10061
      if fid == 1:
10062
        if ftype == TType.I64:
10063
          self.cartId = iprot.readI64();
10064
        else:
10065
          iprot.skip(ftype)
10066
      elif fid == 2:
10067
        if ftype == TType.STRING:
10068
          self.couponCode = iprot.readString();
10069
        else:
10070
          iprot.skip(ftype)
10071
      elif fid == 3:
10072
        if ftype == TType.DOUBLE:
10073
          self.totalPrice = iprot.readDouble();
10074
        else:
10075
          iprot.skip(ftype)
10076
      elif fid == 4:
10077
        if ftype == TType.DOUBLE:
10078
          self.discountedPrice = iprot.readDouble();
10079
        else:
10080
          iprot.skip(ftype)
10081
      else:
10082
        iprot.skip(ftype)
10083
      iprot.readFieldEnd()
10084
    iprot.readStructEnd()
10085
 
10086
  def write(self, oprot):
10087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10089
      return
10090
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10091
    if self.cartId is not None:
1976 varun.gupt 10092
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10093
      oprot.writeI64(self.cartId)
10094
      oprot.writeFieldEnd()
3431 rajveer 10095
    if self.couponCode is not None:
1976 varun.gupt 10096
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10097
      oprot.writeString(self.couponCode)
10098
      oprot.writeFieldEnd()
3431 rajveer 10099
    if self.totalPrice is not None:
1976 varun.gupt 10100
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10101
      oprot.writeDouble(self.totalPrice)
10102
      oprot.writeFieldEnd()
3431 rajveer 10103
    if self.discountedPrice is not None:
1976 varun.gupt 10104
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10105
      oprot.writeDouble(self.discountedPrice)
10106
      oprot.writeFieldEnd()
10107
    oprot.writeFieldStop()
10108
    oprot.writeStructEnd()
10109
 
3431 rajveer 10110
  def validate(self):
10111
    return
10112
 
10113
 
1976 varun.gupt 10114
  def __repr__(self):
10115
    L = ['%s=%r' % (key, value)
10116
      for key, value in self.__dict__.iteritems()]
10117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10118
 
10119
  def __eq__(self, other):
10120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10121
 
10122
  def __ne__(self, other):
10123
    return not (self == other)
10124
 
10125
class applyCouponToCart_result:
10126
  """
10127
  Attributes:
10128
   - scx
10129
  """
10130
 
10131
  thrift_spec = (
10132
    None, # 0
10133
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10134
  )
10135
 
10136
  def __init__(self, scx=None,):
10137
    self.scx = scx
10138
 
10139
  def read(self, iprot):
10140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10142
      return
10143
    iprot.readStructBegin()
10144
    while True:
10145
      (fname, ftype, fid) = iprot.readFieldBegin()
10146
      if ftype == TType.STOP:
10147
        break
10148
      if fid == 1:
10149
        if ftype == TType.STRUCT:
10150
          self.scx = ShoppingCartException()
10151
          self.scx.read(iprot)
10152
        else:
10153
          iprot.skip(ftype)
10154
      else:
10155
        iprot.skip(ftype)
10156
      iprot.readFieldEnd()
10157
    iprot.readStructEnd()
10158
 
10159
  def write(self, oprot):
10160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10162
      return
10163
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10164
    if self.scx is not None:
1976 varun.gupt 10165
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10166
      self.scx.write(oprot)
10167
      oprot.writeFieldEnd()
10168
    oprot.writeFieldStop()
10169
    oprot.writeStructEnd()
10170
 
3431 rajveer 10171
  def validate(self):
10172
    return
10173
 
10174
 
1976 varun.gupt 10175
  def __repr__(self):
10176
    L = ['%s=%r' % (key, value)
10177
      for key, value in self.__dict__.iteritems()]
10178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10179
 
10180
  def __eq__(self, other):
10181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10182
 
10183
  def __ne__(self, other):
10184
    return not (self == other)
10185
 
10186
class removeCoupon_args:
10187
  """
10188
  Attributes:
10189
   - cartId
10190
  """
10191
 
10192
  thrift_spec = (
10193
    None, # 0
10194
    (1, TType.I64, 'cartId', None, None, ), # 1
10195
  )
10196
 
10197
  def __init__(self, cartId=None,):
10198
    self.cartId = cartId
10199
 
10200
  def read(self, iprot):
10201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10203
      return
10204
    iprot.readStructBegin()
10205
    while True:
10206
      (fname, ftype, fid) = iprot.readFieldBegin()
10207
      if ftype == TType.STOP:
10208
        break
10209
      if fid == 1:
10210
        if ftype == TType.I64:
10211
          self.cartId = iprot.readI64();
10212
        else:
10213
          iprot.skip(ftype)
10214
      else:
10215
        iprot.skip(ftype)
10216
      iprot.readFieldEnd()
10217
    iprot.readStructEnd()
10218
 
10219
  def write(self, oprot):
10220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10222
      return
10223
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10224
    if self.cartId is not None:
1976 varun.gupt 10225
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10226
      oprot.writeI64(self.cartId)
10227
      oprot.writeFieldEnd()
10228
    oprot.writeFieldStop()
10229
    oprot.writeStructEnd()
10230
 
3431 rajveer 10231
  def validate(self):
10232
    return
10233
 
10234
 
1976 varun.gupt 10235
  def __repr__(self):
10236
    L = ['%s=%r' % (key, value)
10237
      for key, value in self.__dict__.iteritems()]
10238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10239
 
10240
  def __eq__(self, other):
10241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10242
 
10243
  def __ne__(self, other):
10244
    return not (self == other)
10245
 
10246
class removeCoupon_result:
10247
  """
10248
  Attributes:
10249
   - scx
10250
  """
10251
 
10252
  thrift_spec = (
10253
    None, # 0
10254
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10255
  )
10256
 
10257
  def __init__(self, scx=None,):
10258
    self.scx = scx
10259
 
10260
  def read(self, iprot):
10261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10263
      return
10264
    iprot.readStructBegin()
10265
    while True:
10266
      (fname, ftype, fid) = iprot.readFieldBegin()
10267
      if ftype == TType.STOP:
10268
        break
10269
      if fid == 1:
10270
        if ftype == TType.STRUCT:
10271
          self.scx = ShoppingCartException()
10272
          self.scx.read(iprot)
10273
        else:
10274
          iprot.skip(ftype)
10275
      else:
10276
        iprot.skip(ftype)
10277
      iprot.readFieldEnd()
10278
    iprot.readStructEnd()
10279
 
10280
  def write(self, oprot):
10281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10283
      return
10284
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10285
    if self.scx is not None:
1976 varun.gupt 10286
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10287
      self.scx.write(oprot)
10288
      oprot.writeFieldEnd()
10289
    oprot.writeFieldStop()
10290
    oprot.writeStructEnd()
10291
 
3431 rajveer 10292
  def validate(self):
10293
    return
10294
 
10295
 
1976 varun.gupt 10296
  def __repr__(self):
10297
    L = ['%s=%r' % (key, value)
10298
      for key, value in self.__dict__.iteritems()]
10299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10300
 
10301
  def __eq__(self, other):
10302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10303
 
10304
  def __ne__(self, other):
10305
    return not (self == other)
10306
 
3554 varun.gupt 10307
class deleteDiscountsFromCart_args:
10308
  """
10309
  Attributes:
10310
   - cartId
10311
  """
10312
 
10313
  thrift_spec = (
10314
    None, # 0
10315
    (1, TType.I64, 'cartId', None, None, ), # 1
10316
  )
10317
 
10318
  def __init__(self, cartId=None,):
10319
    self.cartId = cartId
10320
 
10321
  def read(self, iprot):
10322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10324
      return
10325
    iprot.readStructBegin()
10326
    while True:
10327
      (fname, ftype, fid) = iprot.readFieldBegin()
10328
      if ftype == TType.STOP:
10329
        break
10330
      if fid == 1:
10331
        if ftype == TType.I64:
10332
          self.cartId = iprot.readI64();
10333
        else:
10334
          iprot.skip(ftype)
10335
      else:
10336
        iprot.skip(ftype)
10337
      iprot.readFieldEnd()
10338
    iprot.readStructEnd()
10339
 
10340
  def write(self, oprot):
10341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10343
      return
10344
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10345
    if self.cartId is not None:
10346
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10347
      oprot.writeI64(self.cartId)
10348
      oprot.writeFieldEnd()
10349
    oprot.writeFieldStop()
10350
    oprot.writeStructEnd()
10351
 
10352
  def validate(self):
10353
    return
10354
 
10355
 
10356
  def __repr__(self):
10357
    L = ['%s=%r' % (key, value)
10358
      for key, value in self.__dict__.iteritems()]
10359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10360
 
10361
  def __eq__(self, other):
10362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10363
 
10364
  def __ne__(self, other):
10365
    return not (self == other)
10366
 
10367
class deleteDiscountsFromCart_result:
10368
  """
10369
  Attributes:
10370
   - scx
10371
  """
10372
 
10373
  thrift_spec = (
10374
    None, # 0
10375
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10376
  )
10377
 
10378
  def __init__(self, scx=None,):
10379
    self.scx = scx
10380
 
10381
  def read(self, iprot):
10382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10384
      return
10385
    iprot.readStructBegin()
10386
    while True:
10387
      (fname, ftype, fid) = iprot.readFieldBegin()
10388
      if ftype == TType.STOP:
10389
        break
10390
      if fid == 1:
10391
        if ftype == TType.STRUCT:
10392
          self.scx = ShoppingCartException()
10393
          self.scx.read(iprot)
10394
        else:
10395
          iprot.skip(ftype)
10396
      else:
10397
        iprot.skip(ftype)
10398
      iprot.readFieldEnd()
10399
    iprot.readStructEnd()
10400
 
10401
  def write(self, oprot):
10402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10404
      return
10405
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10406
    if self.scx is not None:
10407
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10408
      self.scx.write(oprot)
10409
      oprot.writeFieldEnd()
10410
    oprot.writeFieldStop()
10411
    oprot.writeStructEnd()
10412
 
10413
  def validate(self):
10414
    return
10415
 
10416
 
10417
  def __repr__(self):
10418
    L = ['%s=%r' % (key, value)
10419
      for key, value in self.__dict__.iteritems()]
10420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10421
 
10422
  def __eq__(self, other):
10423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10424
 
10425
  def __ne__(self, other):
10426
    return not (self == other)
10427
 
10428
class saveDiscounts_args:
10429
  """
10430
  Attributes:
10431
   - discounts
10432
  """
10433
 
10434
  thrift_spec = (
10435
    None, # 0
10436
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10437
  )
10438
 
10439
  def __init__(self, discounts=None,):
10440
    self.discounts = discounts
10441
 
10442
  def read(self, iprot):
10443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10445
      return
10446
    iprot.readStructBegin()
10447
    while True:
10448
      (fname, ftype, fid) = iprot.readFieldBegin()
10449
      if ftype == TType.STOP:
10450
        break
10451
      if fid == 1:
10452
        if ftype == TType.LIST:
10453
          self.discounts = []
5326 rajveer 10454
          (_etype124, _size121) = iprot.readListBegin()
10455
          for _i125 in xrange(_size121):
10456
            _elem126 = Discount()
10457
            _elem126.read(iprot)
10458
            self.discounts.append(_elem126)
3554 varun.gupt 10459
          iprot.readListEnd()
10460
        else:
10461
          iprot.skip(ftype)
10462
      else:
10463
        iprot.skip(ftype)
10464
      iprot.readFieldEnd()
10465
    iprot.readStructEnd()
10466
 
10467
  def write(self, oprot):
10468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10470
      return
10471
    oprot.writeStructBegin('saveDiscounts_args')
10472
    if self.discounts is not None:
10473
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10474
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 10475
      for iter127 in self.discounts:
10476
        iter127.write(oprot)
3554 varun.gupt 10477
      oprot.writeListEnd()
10478
      oprot.writeFieldEnd()
10479
    oprot.writeFieldStop()
10480
    oprot.writeStructEnd()
10481
 
10482
  def validate(self):
10483
    return
10484
 
10485
 
10486
  def __repr__(self):
10487
    L = ['%s=%r' % (key, value)
10488
      for key, value in self.__dict__.iteritems()]
10489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10490
 
10491
  def __eq__(self, other):
10492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10493
 
10494
  def __ne__(self, other):
10495
    return not (self == other)
10496
 
10497
class saveDiscounts_result:
10498
  """
10499
  Attributes:
10500
   - scx
10501
  """
10502
 
10503
  thrift_spec = (
10504
    None, # 0
10505
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10506
  )
10507
 
10508
  def __init__(self, scx=None,):
10509
    self.scx = scx
10510
 
10511
  def read(self, iprot):
10512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10514
      return
10515
    iprot.readStructBegin()
10516
    while True:
10517
      (fname, ftype, fid) = iprot.readFieldBegin()
10518
      if ftype == TType.STOP:
10519
        break
10520
      if fid == 1:
10521
        if ftype == TType.STRUCT:
10522
          self.scx = ShoppingCartException()
10523
          self.scx.read(iprot)
10524
        else:
10525
          iprot.skip(ftype)
10526
      else:
10527
        iprot.skip(ftype)
10528
      iprot.readFieldEnd()
10529
    iprot.readStructEnd()
10530
 
10531
  def write(self, oprot):
10532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10534
      return
10535
    oprot.writeStructBegin('saveDiscounts_result')
10536
    if self.scx is not None:
10537
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10538
      self.scx.write(oprot)
10539
      oprot.writeFieldEnd()
10540
    oprot.writeFieldStop()
10541
    oprot.writeStructEnd()
10542
 
10543
  def validate(self):
10544
    return
10545
 
10546
 
10547
  def __repr__(self):
10548
    L = ['%s=%r' % (key, value)
10549
      for key, value in self.__dict__.iteritems()]
10550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10551
 
10552
  def __eq__(self, other):
10553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10554
 
10555
  def __ne__(self, other):
10556
    return not (self == other)
10557
 
690 chandransh 10558
class createOrders_args:
559 chandransh 10559
  """
10560
  Attributes:
10561
   - cartId
2815 vikas 10562
   - sessionSource
10563
   - sessionStartTime
3858 vikas 10564
   - firstSource
10565
   - firstSourceTime
5326 rajveer 10566
   - userId
559 chandransh 10567
  """
10568
 
10569
  thrift_spec = (
10570
    None, # 0
10571
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10572
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10573
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10574
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10575
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 10576
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 10577
  )
10578
 
5326 rajveer 10579
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 10580
    self.cartId = cartId
2815 vikas 10581
    self.sessionSource = sessionSource
10582
    self.sessionStartTime = sessionStartTime
3858 vikas 10583
    self.firstSource = firstSource
10584
    self.firstSourceTime = firstSourceTime
5326 rajveer 10585
    self.userId = userId
559 chandransh 10586
 
10587
  def read(self, iprot):
10588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10590
      return
10591
    iprot.readStructBegin()
10592
    while True:
10593
      (fname, ftype, fid) = iprot.readFieldBegin()
10594
      if ftype == TType.STOP:
10595
        break
10596
      if fid == 1:
10597
        if ftype == TType.I64:
10598
          self.cartId = iprot.readI64();
10599
        else:
10600
          iprot.skip(ftype)
2815 vikas 10601
      elif fid == 2:
10602
        if ftype == TType.STRING:
10603
          self.sessionSource = iprot.readString();
10604
        else:
10605
          iprot.skip(ftype)
10606
      elif fid == 3:
10607
        if ftype == TType.I64:
10608
          self.sessionStartTime = iprot.readI64();
10609
        else:
10610
          iprot.skip(ftype)
3858 vikas 10611
      elif fid == 4:
10612
        if ftype == TType.STRING:
10613
          self.firstSource = iprot.readString();
10614
        else:
10615
          iprot.skip(ftype)
10616
      elif fid == 5:
10617
        if ftype == TType.I64:
10618
          self.firstSourceTime = iprot.readI64();
10619
        else:
10620
          iprot.skip(ftype)
5326 rajveer 10621
      elif fid == 6:
10622
        if ftype == TType.I64:
10623
          self.userId = iprot.readI64();
10624
        else:
10625
          iprot.skip(ftype)
559 chandransh 10626
      else:
10627
        iprot.skip(ftype)
10628
      iprot.readFieldEnd()
10629
    iprot.readStructEnd()
10630
 
10631
  def write(self, oprot):
10632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10634
      return
690 chandransh 10635
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 10636
    if self.cartId is not None:
559 chandransh 10637
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10638
      oprot.writeI64(self.cartId)
10639
      oprot.writeFieldEnd()
3431 rajveer 10640
    if self.sessionSource is not None:
2815 vikas 10641
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
10642
      oprot.writeString(self.sessionSource)
10643
      oprot.writeFieldEnd()
3431 rajveer 10644
    if self.sessionStartTime is not None:
2815 vikas 10645
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
10646
      oprot.writeI64(self.sessionStartTime)
10647
      oprot.writeFieldEnd()
3858 vikas 10648
    if self.firstSource is not None:
10649
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
10650
      oprot.writeString(self.firstSource)
10651
      oprot.writeFieldEnd()
10652
    if self.firstSourceTime is not None:
10653
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
10654
      oprot.writeI64(self.firstSourceTime)
10655
      oprot.writeFieldEnd()
5326 rajveer 10656
    if self.userId is not None:
10657
      oprot.writeFieldBegin('userId', TType.I64, 6)
10658
      oprot.writeI64(self.userId)
10659
      oprot.writeFieldEnd()
559 chandransh 10660
    oprot.writeFieldStop()
10661
    oprot.writeStructEnd()
10662
 
3431 rajveer 10663
  def validate(self):
10664
    return
10665
 
10666
 
559 chandransh 10667
  def __repr__(self):
10668
    L = ['%s=%r' % (key, value)
10669
      for key, value in self.__dict__.iteritems()]
10670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10671
 
10672
  def __eq__(self, other):
10673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10674
 
10675
  def __ne__(self, other):
10676
    return not (self == other)
10677
 
690 chandransh 10678
class createOrders_result:
559 chandransh 10679
  """
10680
  Attributes:
94 ashish 10681
   - success
559 chandransh 10682
   - scx
94 ashish 10683
  """
10684
 
10685
  thrift_spec = (
575 chandransh 10686
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 10687
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10688
  )
10689
 
559 chandransh 10690
  def __init__(self, success=None, scx=None,):
94 ashish 10691
    self.success = success
559 chandransh 10692
    self.scx = scx
94 ashish 10693
 
10694
  def read(self, iprot):
10695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10697
      return
10698
    iprot.readStructBegin()
10699
    while True:
10700
      (fname, ftype, fid) = iprot.readFieldBegin()
10701
      if ftype == TType.STOP:
10702
        break
10703
      if fid == 0:
575 chandransh 10704
        if ftype == TType.I64:
10705
          self.success = iprot.readI64();
94 ashish 10706
        else:
10707
          iprot.skip(ftype)
10708
      elif fid == 1:
10709
        if ftype == TType.STRUCT:
559 chandransh 10710
          self.scx = ShoppingCartException()
10711
          self.scx.read(iprot)
94 ashish 10712
        else:
10713
          iprot.skip(ftype)
10714
      else:
10715
        iprot.skip(ftype)
10716
      iprot.readFieldEnd()
10717
    iprot.readStructEnd()
10718
 
10719
  def write(self, oprot):
10720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10722
      return
690 chandransh 10723
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 10724
    if self.success is not None:
575 chandransh 10725
      oprot.writeFieldBegin('success', TType.I64, 0)
10726
      oprot.writeI64(self.success)
94 ashish 10727
      oprot.writeFieldEnd()
3431 rajveer 10728
    if self.scx is not None:
559 chandransh 10729
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10730
      self.scx.write(oprot)
94 ashish 10731
      oprot.writeFieldEnd()
10732
    oprot.writeFieldStop()
10733
    oprot.writeStructEnd()
10734
 
3431 rajveer 10735
  def validate(self):
10736
    return
10737
 
10738
 
94 ashish 10739
  def __repr__(self):
10740
    L = ['%s=%r' % (key, value)
10741
      for key, value in self.__dict__.iteritems()]
10742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10743
 
10744
  def __eq__(self, other):
10745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10746
 
10747
  def __ne__(self, other):
10748
    return not (self == other)
10749
 
559 chandransh 10750
class validateCart_args:
94 ashish 10751
  """
10752
  Attributes:
559 chandransh 10753
   - cartId
3557 rajveer 10754
   - sourceId
94 ashish 10755
  """
10756
 
10757
  thrift_spec = (
10758
    None, # 0
559 chandransh 10759
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 10760
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 10761
  )
10762
 
3557 rajveer 10763
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 10764
    self.cartId = cartId
3557 rajveer 10765
    self.sourceId = sourceId
94 ashish 10766
 
10767
  def read(self, iprot):
10768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10770
      return
10771
    iprot.readStructBegin()
10772
    while True:
10773
      (fname, ftype, fid) = iprot.readFieldBegin()
10774
      if ftype == TType.STOP:
10775
        break
10776
      if fid == 1:
10777
        if ftype == TType.I64:
559 chandransh 10778
          self.cartId = iprot.readI64();
94 ashish 10779
        else:
10780
          iprot.skip(ftype)
3557 rajveer 10781
      elif fid == 2:
10782
        if ftype == TType.I64:
10783
          self.sourceId = iprot.readI64();
10784
        else:
10785
          iprot.skip(ftype)
94 ashish 10786
      else:
10787
        iprot.skip(ftype)
10788
      iprot.readFieldEnd()
10789
    iprot.readStructEnd()
10790
 
10791
  def write(self, oprot):
10792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10794
      return
559 chandransh 10795
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 10796
    if self.cartId is not None:
559 chandransh 10797
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10798
      oprot.writeI64(self.cartId)
94 ashish 10799
      oprot.writeFieldEnd()
3557 rajveer 10800
    if self.sourceId is not None:
10801
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10802
      oprot.writeI64(self.sourceId)
10803
      oprot.writeFieldEnd()
94 ashish 10804
    oprot.writeFieldStop()
10805
    oprot.writeStructEnd()
10806
 
3431 rajveer 10807
  def validate(self):
10808
    return
10809
 
10810
 
94 ashish 10811
  def __repr__(self):
10812
    L = ['%s=%r' % (key, value)
10813
      for key, value in self.__dict__.iteritems()]
10814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10815
 
10816
  def __eq__(self, other):
10817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10818
 
10819
  def __ne__(self, other):
10820
    return not (self == other)
10821
 
559 chandransh 10822
class validateCart_result:
94 ashish 10823
  """
10824
  Attributes:
10825
   - success
575 chandransh 10826
   - scex
94 ashish 10827
  """
10828
 
10829
  thrift_spec = (
1466 ankur.sing 10830
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 10831
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10832
  )
10833
 
575 chandransh 10834
  def __init__(self, success=None, scex=None,):
94 ashish 10835
    self.success = success
575 chandransh 10836
    self.scex = scex
94 ashish 10837
 
10838
  def read(self, iprot):
10839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10841
      return
10842
    iprot.readStructBegin()
10843
    while True:
10844
      (fname, ftype, fid) = iprot.readFieldBegin()
10845
      if ftype == TType.STOP:
10846
        break
10847
      if fid == 0:
1466 ankur.sing 10848
        if ftype == TType.STRING:
10849
          self.success = iprot.readString();
94 ashish 10850
        else:
10851
          iprot.skip(ftype)
575 chandransh 10852
      elif fid == 1:
10853
        if ftype == TType.STRUCT:
10854
          self.scex = ShoppingCartException()
10855
          self.scex.read(iprot)
10856
        else:
10857
          iprot.skip(ftype)
94 ashish 10858
      else:
10859
        iprot.skip(ftype)
10860
      iprot.readFieldEnd()
10861
    iprot.readStructEnd()
10862
 
10863
  def write(self, oprot):
10864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10866
      return
559 chandransh 10867
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 10868
    if self.success is not None:
1466 ankur.sing 10869
      oprot.writeFieldBegin('success', TType.STRING, 0)
10870
      oprot.writeString(self.success)
94 ashish 10871
      oprot.writeFieldEnd()
3431 rajveer 10872
    if self.scex is not None:
575 chandransh 10873
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
10874
      self.scex.write(oprot)
10875
      oprot.writeFieldEnd()
559 chandransh 10876
    oprot.writeFieldStop()
10877
    oprot.writeStructEnd()
10878
 
3431 rajveer 10879
  def validate(self):
10880
    return
10881
 
10882
 
559 chandransh 10883
  def __repr__(self):
10884
    L = ['%s=%r' % (key, value)
10885
      for key, value in self.__dict__.iteritems()]
10886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10887
 
10888
  def __eq__(self, other):
10889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10890
 
10891
  def __ne__(self, other):
10892
    return not (self == other)
10893
 
690 chandransh 10894
class mergeCart_args:
575 chandransh 10895
  """
10896
  Attributes:
690 chandransh 10897
   - fromCartId
10898
   - toCartId
10899
  """
10900
 
10901
  thrift_spec = (
10902
    None, # 0
10903
    (1, TType.I64, 'fromCartId', None, None, ), # 1
10904
    (2, TType.I64, 'toCartId', None, None, ), # 2
10905
  )
10906
 
10907
  def __init__(self, fromCartId=None, toCartId=None,):
10908
    self.fromCartId = fromCartId
10909
    self.toCartId = toCartId
10910
 
10911
  def read(self, iprot):
10912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10914
      return
10915
    iprot.readStructBegin()
10916
    while True:
10917
      (fname, ftype, fid) = iprot.readFieldBegin()
10918
      if ftype == TType.STOP:
10919
        break
10920
      if fid == 1:
10921
        if ftype == TType.I64:
10922
          self.fromCartId = iprot.readI64();
10923
        else:
10924
          iprot.skip(ftype)
10925
      elif fid == 2:
10926
        if ftype == TType.I64:
10927
          self.toCartId = iprot.readI64();
10928
        else:
10929
          iprot.skip(ftype)
10930
      else:
10931
        iprot.skip(ftype)
10932
      iprot.readFieldEnd()
10933
    iprot.readStructEnd()
10934
 
10935
  def write(self, oprot):
10936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10938
      return
10939
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 10940
    if self.fromCartId is not None:
690 chandransh 10941
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
10942
      oprot.writeI64(self.fromCartId)
10943
      oprot.writeFieldEnd()
3431 rajveer 10944
    if self.toCartId is not None:
690 chandransh 10945
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
10946
      oprot.writeI64(self.toCartId)
10947
      oprot.writeFieldEnd()
10948
    oprot.writeFieldStop()
10949
    oprot.writeStructEnd()
10950
 
3431 rajveer 10951
  def validate(self):
10952
    return
10953
 
10954
 
690 chandransh 10955
  def __repr__(self):
10956
    L = ['%s=%r' % (key, value)
10957
      for key, value in self.__dict__.iteritems()]
10958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10959
 
10960
  def __eq__(self, other):
10961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10962
 
10963
  def __ne__(self, other):
10964
    return not (self == other)
10965
 
10966
class mergeCart_result:
10967
 
10968
  thrift_spec = (
10969
  )
10970
 
10971
  def read(self, iprot):
10972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10974
      return
10975
    iprot.readStructBegin()
10976
    while True:
10977
      (fname, ftype, fid) = iprot.readFieldBegin()
10978
      if ftype == TType.STOP:
10979
        break
10980
      else:
10981
        iprot.skip(ftype)
10982
      iprot.readFieldEnd()
10983
    iprot.readStructEnd()
10984
 
10985
  def write(self, oprot):
10986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10988
      return
10989
    oprot.writeStructBegin('mergeCart_result')
10990
    oprot.writeFieldStop()
10991
    oprot.writeStructEnd()
10992
 
3431 rajveer 10993
  def validate(self):
10994
    return
10995
 
10996
 
690 chandransh 10997
  def __repr__(self):
10998
    L = ['%s=%r' % (key, value)
10999
      for key, value in self.__dict__.iteritems()]
11000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11001
 
11002
  def __eq__(self, other):
11003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11004
 
11005
  def __ne__(self, other):
11006
    return not (self == other)
11007
 
11008
class checkOut_args:
11009
  """
11010
  Attributes:
575 chandransh 11011
   - cartId
11012
  """
11013
 
11014
  thrift_spec = (
11015
    None, # 0
11016
    (1, TType.I64, 'cartId', None, None, ), # 1
11017
  )
11018
 
11019
  def __init__(self, cartId=None,):
11020
    self.cartId = cartId
11021
 
11022
  def read(self, iprot):
11023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11025
      return
11026
    iprot.readStructBegin()
11027
    while True:
11028
      (fname, ftype, fid) = iprot.readFieldBegin()
11029
      if ftype == TType.STOP:
11030
        break
11031
      if fid == 1:
11032
        if ftype == TType.I64:
11033
          self.cartId = iprot.readI64();
11034
        else:
11035
          iprot.skip(ftype)
11036
      else:
11037
        iprot.skip(ftype)
11038
      iprot.readFieldEnd()
11039
    iprot.readStructEnd()
11040
 
11041
  def write(self, oprot):
11042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11044
      return
690 chandransh 11045
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11046
    if self.cartId is not None:
575 chandransh 11047
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11048
      oprot.writeI64(self.cartId)
11049
      oprot.writeFieldEnd()
11050
    oprot.writeFieldStop()
11051
    oprot.writeStructEnd()
11052
 
3431 rajveer 11053
  def validate(self):
11054
    return
11055
 
11056
 
575 chandransh 11057
  def __repr__(self):
11058
    L = ['%s=%r' % (key, value)
11059
      for key, value in self.__dict__.iteritems()]
11060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11061
 
11062
  def __eq__(self, other):
11063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11064
 
11065
  def __ne__(self, other):
11066
    return not (self == other)
11067
 
690 chandransh 11068
class checkOut_result:
575 chandransh 11069
  """
11070
  Attributes:
11071
   - success
11072
   - scex
11073
  """
11074
 
11075
  thrift_spec = (
11076
    (0, TType.BOOL, 'success', None, None, ), # 0
11077
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11078
  )
11079
 
11080
  def __init__(self, success=None, scex=None,):
11081
    self.success = success
11082
    self.scex = scex
11083
 
11084
  def read(self, iprot):
11085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11087
      return
11088
    iprot.readStructBegin()
11089
    while True:
11090
      (fname, ftype, fid) = iprot.readFieldBegin()
11091
      if ftype == TType.STOP:
11092
        break
11093
      if fid == 0:
11094
        if ftype == TType.BOOL:
11095
          self.success = iprot.readBool();
11096
        else:
11097
          iprot.skip(ftype)
11098
      elif fid == 1:
11099
        if ftype == TType.STRUCT:
11100
          self.scex = ShoppingCartException()
11101
          self.scex.read(iprot)
11102
        else:
11103
          iprot.skip(ftype)
11104
      else:
11105
        iprot.skip(ftype)
11106
      iprot.readFieldEnd()
11107
    iprot.readStructEnd()
11108
 
11109
  def write(self, oprot):
11110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11112
      return
690 chandransh 11113
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11114
    if self.success is not None:
575 chandransh 11115
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11116
      oprot.writeBool(self.success)
11117
      oprot.writeFieldEnd()
3431 rajveer 11118
    if self.scex is not None:
575 chandransh 11119
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11120
      self.scex.write(oprot)
11121
      oprot.writeFieldEnd()
11122
    oprot.writeFieldStop()
11123
    oprot.writeStructEnd()
11124
 
3431 rajveer 11125
  def validate(self):
11126
    return
11127
 
11128
 
575 chandransh 11129
  def __repr__(self):
11130
    L = ['%s=%r' % (key, value)
11131
      for key, value in self.__dict__.iteritems()]
11132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11133
 
11134
  def __eq__(self, other):
11135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11136
 
11137
  def __ne__(self, other):
11138
    return not (self == other)
11139
 
690 chandransh 11140
class resetCart_args:
559 chandransh 11141
  """
11142
  Attributes:
690 chandransh 11143
   - cartId
11144
   - items
559 chandransh 11145
  """
11146
 
11147
  thrift_spec = (
11148
    None, # 0
690 chandransh 11149
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11150
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11151
  )
11152
 
690 chandransh 11153
  def __init__(self, cartId=None, items=None,):
11154
    self.cartId = cartId
11155
    self.items = items
559 chandransh 11156
 
11157
  def read(self, iprot):
11158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11160
      return
11161
    iprot.readStructBegin()
11162
    while True:
11163
      (fname, ftype, fid) = iprot.readFieldBegin()
11164
      if ftype == TType.STOP:
11165
        break
11166
      if fid == 1:
11167
        if ftype == TType.I64:
690 chandransh 11168
          self.cartId = iprot.readI64();
559 chandransh 11169
        else:
11170
          iprot.skip(ftype)
11171
      elif fid == 2:
690 chandransh 11172
        if ftype == TType.MAP:
11173
          self.items = {}
5326 rajveer 11174
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11175
          for _i132 in xrange(_size128):
11176
            _key133 = iprot.readI64();
11177
            _val134 = iprot.readDouble();
11178
            self.items[_key133] = _val134
690 chandransh 11179
          iprot.readMapEnd()
559 chandransh 11180
        else:
11181
          iprot.skip(ftype)
11182
      else:
11183
        iprot.skip(ftype)
11184
      iprot.readFieldEnd()
11185
    iprot.readStructEnd()
11186
 
11187
  def write(self, oprot):
11188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11190
      return
690 chandransh 11191
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11192
    if self.cartId is not None:
690 chandransh 11193
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11194
      oprot.writeI64(self.cartId)
94 ashish 11195
      oprot.writeFieldEnd()
3431 rajveer 11196
    if self.items is not None:
690 chandransh 11197
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11198
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11199
      for kiter135,viter136 in self.items.items():
11200
        oprot.writeI64(kiter135)
11201
        oprot.writeDouble(viter136)
690 chandransh 11202
      oprot.writeMapEnd()
559 chandransh 11203
      oprot.writeFieldEnd()
94 ashish 11204
    oprot.writeFieldStop()
11205
    oprot.writeStructEnd()
11206
 
3431 rajveer 11207
  def validate(self):
11208
    return
11209
 
11210
 
94 ashish 11211
  def __repr__(self):
11212
    L = ['%s=%r' % (key, value)
11213
      for key, value in self.__dict__.iteritems()]
11214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11215
 
11216
  def __eq__(self, other):
11217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11218
 
11219
  def __ne__(self, other):
11220
    return not (self == other)
11221
 
690 chandransh 11222
class resetCart_result:
11223
  """
11224
  Attributes:
11225
   - success
11226
   - scex
11227
  """
559 chandransh 11228
 
11229
  thrift_spec = (
690 chandransh 11230
    (0, TType.BOOL, 'success', None, None, ), # 0
11231
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11232
  )
11233
 
690 chandransh 11234
  def __init__(self, success=None, scex=None,):
11235
    self.success = success
11236
    self.scex = scex
11237
 
559 chandransh 11238
  def read(self, iprot):
11239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11241
      return
11242
    iprot.readStructBegin()
11243
    while True:
11244
      (fname, ftype, fid) = iprot.readFieldBegin()
11245
      if ftype == TType.STOP:
11246
        break
690 chandransh 11247
      if fid == 0:
11248
        if ftype == TType.BOOL:
11249
          self.success = iprot.readBool();
11250
        else:
11251
          iprot.skip(ftype)
11252
      elif fid == 1:
11253
        if ftype == TType.STRUCT:
11254
          self.scex = ShoppingCartException()
11255
          self.scex.read(iprot)
11256
        else:
11257
          iprot.skip(ftype)
559 chandransh 11258
      else:
11259
        iprot.skip(ftype)
11260
      iprot.readFieldEnd()
11261
    iprot.readStructEnd()
11262
 
11263
  def write(self, oprot):
11264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11266
      return
690 chandransh 11267
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11268
    if self.success is not None:
690 chandransh 11269
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11270
      oprot.writeBool(self.success)
11271
      oprot.writeFieldEnd()
3431 rajveer 11272
    if self.scex is not None:
690 chandransh 11273
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11274
      self.scex.write(oprot)
11275
      oprot.writeFieldEnd()
559 chandransh 11276
    oprot.writeFieldStop()
11277
    oprot.writeStructEnd()
11278
 
3431 rajveer 11279
  def validate(self):
11280
    return
11281
 
11282
 
559 chandransh 11283
  def __repr__(self):
11284
    L = ['%s=%r' % (key, value)
11285
      for key, value in self.__dict__.iteritems()]
11286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11287
 
11288
  def __eq__(self, other):
11289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11290
 
11291
  def __ne__(self, other):
11292
    return not (self == other)
11293
 
2981 rajveer 11294
class getUserCount_args:
94 ashish 11295
  """
11296
  Attributes:
2981 rajveer 11297
   - userType
559 chandransh 11298
  """
11299
 
11300
  thrift_spec = (
11301
    None, # 0
2981 rajveer 11302
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11303
  )
11304
 
2981 rajveer 11305
  def __init__(self, userType=None,):
11306
    self.userType = userType
559 chandransh 11307
 
11308
  def read(self, iprot):
11309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11311
      return
11312
    iprot.readStructBegin()
11313
    while True:
11314
      (fname, ftype, fid) = iprot.readFieldBegin()
11315
      if ftype == TType.STOP:
11316
        break
11317
      if fid == 1:
2981 rajveer 11318
        if ftype == TType.I32:
11319
          self.userType = iprot.readI32();
559 chandransh 11320
        else:
11321
          iprot.skip(ftype)
11322
      else:
11323
        iprot.skip(ftype)
11324
      iprot.readFieldEnd()
11325
    iprot.readStructEnd()
11326
 
11327
  def write(self, oprot):
11328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11330
      return
2981 rajveer 11331
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11332
    if self.userType is not None:
2981 rajveer 11333
      oprot.writeFieldBegin('userType', TType.I32, 1)
11334
      oprot.writeI32(self.userType)
559 chandransh 11335
      oprot.writeFieldEnd()
11336
    oprot.writeFieldStop()
11337
    oprot.writeStructEnd()
11338
 
3431 rajveer 11339
  def validate(self):
11340
    return
11341
 
11342
 
559 chandransh 11343
  def __repr__(self):
11344
    L = ['%s=%r' % (key, value)
11345
      for key, value in self.__dict__.iteritems()]
11346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11347
 
11348
  def __eq__(self, other):
11349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11350
 
11351
  def __ne__(self, other):
11352
    return not (self == other)
11353
 
2981 rajveer 11354
class getUserCount_result:
94 ashish 11355
  """
11356
  Attributes:
11357
   - success
11358
  """
11359
 
11360
  thrift_spec = (
2981 rajveer 11361
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11362
  )
11363
 
2981 rajveer 11364
  def __init__(self, success=None,):
94 ashish 11365
    self.success = success
11366
 
11367
  def read(self, iprot):
11368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11370
      return
11371
    iprot.readStructBegin()
11372
    while True:
11373
      (fname, ftype, fid) = iprot.readFieldBegin()
11374
      if ftype == TType.STOP:
11375
        break
11376
      if fid == 0:
2981 rajveer 11377
        if ftype == TType.I64:
11378
          self.success = iprot.readI64();
94 ashish 11379
        else:
11380
          iprot.skip(ftype)
11381
      else:
11382
        iprot.skip(ftype)
11383
      iprot.readFieldEnd()
11384
    iprot.readStructEnd()
11385
 
11386
  def write(self, oprot):
11387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11389
      return
2981 rajveer 11390
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11391
    if self.success is not None:
2981 rajveer 11392
      oprot.writeFieldBegin('success', TType.I64, 0)
11393
      oprot.writeI64(self.success)
94 ashish 11394
      oprot.writeFieldEnd()
11395
    oprot.writeFieldStop()
11396
    oprot.writeStructEnd()
11397
 
3431 rajveer 11398
  def validate(self):
11399
    return
11400
 
11401
 
94 ashish 11402
  def __repr__(self):
11403
    L = ['%s=%r' % (key, value)
11404
      for key, value in self.__dict__.iteritems()]
11405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11406
 
11407
  def __eq__(self, other):
11408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11409
 
11410
  def __ne__(self, other):
11411
    return not (self == other)
11412
 
2981 rajveer 11413
class getAllUsers_args:
94 ashish 11414
  """
11415
  Attributes:
2981 rajveer 11416
   - userType
11417
   - startDate
11418
   - endDate
94 ashish 11419
  """
11420
 
11421
  thrift_spec = (
11422
    None, # 0
2981 rajveer 11423
    (1, TType.I32, 'userType', None, None, ), # 1
11424
    (2, TType.I64, 'startDate', None, None, ), # 2
11425
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11426
  )
11427
 
2981 rajveer 11428
  def __init__(self, userType=None, startDate=None, endDate=None,):
11429
    self.userType = userType
11430
    self.startDate = startDate
11431
    self.endDate = endDate
94 ashish 11432
 
11433
  def read(self, iprot):
11434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11436
      return
11437
    iprot.readStructBegin()
11438
    while True:
11439
      (fname, ftype, fid) = iprot.readFieldBegin()
11440
      if ftype == TType.STOP:
11441
        break
11442
      if fid == 1:
2981 rajveer 11443
        if ftype == TType.I32:
11444
          self.userType = iprot.readI32();
94 ashish 11445
        else:
11446
          iprot.skip(ftype)
11447
      elif fid == 2:
559 chandransh 11448
        if ftype == TType.I64:
2981 rajveer 11449
          self.startDate = iprot.readI64();
94 ashish 11450
        else:
11451
          iprot.skip(ftype)
2981 rajveer 11452
      elif fid == 3:
11453
        if ftype == TType.I64:
11454
          self.endDate = iprot.readI64();
11455
        else:
11456
          iprot.skip(ftype)
94 ashish 11457
      else:
11458
        iprot.skip(ftype)
11459
      iprot.readFieldEnd()
11460
    iprot.readStructEnd()
11461
 
11462
  def write(self, oprot):
11463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11465
      return
2981 rajveer 11466
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11467
    if self.userType is not None:
2981 rajveer 11468
      oprot.writeFieldBegin('userType', TType.I32, 1)
11469
      oprot.writeI32(self.userType)
94 ashish 11470
      oprot.writeFieldEnd()
3431 rajveer 11471
    if self.startDate is not None:
2981 rajveer 11472
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11473
      oprot.writeI64(self.startDate)
94 ashish 11474
      oprot.writeFieldEnd()
3431 rajveer 11475
    if self.endDate is not None:
2981 rajveer 11476
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11477
      oprot.writeI64(self.endDate)
11478
      oprot.writeFieldEnd()
94 ashish 11479
    oprot.writeFieldStop()
11480
    oprot.writeStructEnd()
11481
 
3431 rajveer 11482
  def validate(self):
11483
    return
11484
 
11485
 
94 ashish 11486
  def __repr__(self):
11487
    L = ['%s=%r' % (key, value)
11488
      for key, value in self.__dict__.iteritems()]
11489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11490
 
11491
  def __eq__(self, other):
11492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11493
 
11494
  def __ne__(self, other):
11495
    return not (self == other)
11496
 
2981 rajveer 11497
class getAllUsers_result:
94 ashish 11498
  """
11499
  Attributes:
11500
   - success
11501
  """
11502
 
11503
  thrift_spec = (
2981 rajveer 11504
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11505
  )
11506
 
2981 rajveer 11507
  def __init__(self, success=None,):
94 ashish 11508
    self.success = success
11509
 
11510
  def read(self, iprot):
11511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11513
      return
11514
    iprot.readStructBegin()
11515
    while True:
11516
      (fname, ftype, fid) = iprot.readFieldBegin()
11517
      if ftype == TType.STOP:
11518
        break
11519
      if fid == 0:
2981 rajveer 11520
        if ftype == TType.LIST:
11521
          self.success = []
5326 rajveer 11522
          (_etype140, _size137) = iprot.readListBegin()
11523
          for _i141 in xrange(_size137):
11524
            _elem142 = User()
11525
            _elem142.read(iprot)
11526
            self.success.append(_elem142)
2981 rajveer 11527
          iprot.readListEnd()
94 ashish 11528
        else:
11529
          iprot.skip(ftype)
11530
      else:
11531
        iprot.skip(ftype)
11532
      iprot.readFieldEnd()
11533
    iprot.readStructEnd()
11534
 
11535
  def write(self, oprot):
11536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11538
      return
2981 rajveer 11539
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11540
    if self.success is not None:
2981 rajveer 11541
      oprot.writeFieldBegin('success', TType.LIST, 0)
11542
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 11543
      for iter143 in self.success:
11544
        iter143.write(oprot)
2981 rajveer 11545
      oprot.writeListEnd()
94 ashish 11546
      oprot.writeFieldEnd()
11547
    oprot.writeFieldStop()
11548
    oprot.writeStructEnd()
11549
 
3431 rajveer 11550
  def validate(self):
11551
    return
11552
 
11553
 
94 ashish 11554
  def __repr__(self):
11555
    L = ['%s=%r' % (key, value)
11556
      for key, value in self.__dict__.iteritems()]
11557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11558
 
11559
  def __eq__(self, other):
11560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11561
 
11562
  def __ne__(self, other):
11563
    return not (self == other)
11564
 
2981 rajveer 11565
class putUserNote_args:
130 ashish 11566
  """
11567
  Attributes:
2981 rajveer 11568
   - user_id
11569
   - entity_id
11570
   - slide
11571
   - note
130 ashish 11572
  """
94 ashish 11573
 
130 ashish 11574
  thrift_spec = (
11575
    None, # 0
2981 rajveer 11576
    (1, TType.I64, 'user_id', None, None, ), # 1
11577
    (2, TType.I64, 'entity_id', None, None, ), # 2
11578
    (3, TType.STRING, 'slide', None, None, ), # 3
11579
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 11580
  )
11581
 
2981 rajveer 11582
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
11583
    self.user_id = user_id
11584
    self.entity_id = entity_id
11585
    self.slide = slide
11586
    self.note = note
130 ashish 11587
 
11588
  def read(self, iprot):
11589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11591
      return
11592
    iprot.readStructBegin()
11593
    while True:
11594
      (fname, ftype, fid) = iprot.readFieldBegin()
11595
      if ftype == TType.STOP:
11596
        break
11597
      if fid == 1:
11598
        if ftype == TType.I64:
2981 rajveer 11599
          self.user_id = iprot.readI64();
130 ashish 11600
        else:
11601
          iprot.skip(ftype)
559 chandransh 11602
      elif fid == 2:
11603
        if ftype == TType.I64:
2981 rajveer 11604
          self.entity_id = iprot.readI64();
559 chandransh 11605
        else:
11606
          iprot.skip(ftype)
2981 rajveer 11607
      elif fid == 3:
11608
        if ftype == TType.STRING:
11609
          self.slide = iprot.readString();
11610
        else:
11611
          iprot.skip(ftype)
11612
      elif fid == 4:
11613
        if ftype == TType.STRING:
11614
          self.note = iprot.readString();
11615
        else:
11616
          iprot.skip(ftype)
130 ashish 11617
      else:
11618
        iprot.skip(ftype)
11619
      iprot.readFieldEnd()
11620
    iprot.readStructEnd()
11621
 
11622
  def write(self, oprot):
11623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11625
      return
2981 rajveer 11626
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 11627
    if self.user_id is not None:
2981 rajveer 11628
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11629
      oprot.writeI64(self.user_id)
130 ashish 11630
      oprot.writeFieldEnd()
3431 rajveer 11631
    if self.entity_id is not None:
2981 rajveer 11632
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11633
      oprot.writeI64(self.entity_id)
559 chandransh 11634
      oprot.writeFieldEnd()
3431 rajveer 11635
    if self.slide is not None:
2981 rajveer 11636
      oprot.writeFieldBegin('slide', TType.STRING, 3)
11637
      oprot.writeString(self.slide)
11638
      oprot.writeFieldEnd()
3431 rajveer 11639
    if self.note is not None:
2981 rajveer 11640
      oprot.writeFieldBegin('note', TType.STRING, 4)
11641
      oprot.writeString(self.note)
11642
      oprot.writeFieldEnd()
130 ashish 11643
    oprot.writeFieldStop()
11644
    oprot.writeStructEnd()
11645
 
3431 rajveer 11646
  def validate(self):
11647
    return
11648
 
11649
 
130 ashish 11650
  def __repr__(self):
11651
    L = ['%s=%r' % (key, value)
11652
      for key, value in self.__dict__.iteritems()]
11653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11654
 
11655
  def __eq__(self, other):
11656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11657
 
11658
  def __ne__(self, other):
11659
    return not (self == other)
11660
 
2981 rajveer 11661
class putUserNote_result:
559 chandransh 11662
 
11663
  thrift_spec = (
11664
  )
11665
 
11666
  def read(self, iprot):
11667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11669
      return
11670
    iprot.readStructBegin()
11671
    while True:
11672
      (fname, ftype, fid) = iprot.readFieldBegin()
11673
      if ftype == TType.STOP:
11674
        break
11675
      else:
11676
        iprot.skip(ftype)
11677
      iprot.readFieldEnd()
11678
    iprot.readStructEnd()
11679
 
11680
  def write(self, oprot):
11681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11683
      return
2981 rajveer 11684
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 11685
    oprot.writeFieldStop()
11686
    oprot.writeStructEnd()
11687
 
3431 rajveer 11688
  def validate(self):
11689
    return
11690
 
11691
 
559 chandransh 11692
  def __repr__(self):
11693
    L = ['%s=%r' % (key, value)
11694
      for key, value in self.__dict__.iteritems()]
11695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11696
 
11697
  def __eq__(self, other):
11698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11699
 
11700
  def __ne__(self, other):
11701
    return not (self == other)
11702
 
2981 rajveer 11703
class getUserNotes_args:
559 chandransh 11704
  """
11705
  Attributes:
2981 rajveer 11706
   - user_id
11707
   - entity_id
559 chandransh 11708
  """
11709
 
11710
  thrift_spec = (
11711
    None, # 0
2981 rajveer 11712
    (1, TType.I64, 'user_id', None, None, ), # 1
11713
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 11714
  )
11715
 
2981 rajveer 11716
  def __init__(self, user_id=None, entity_id=None,):
11717
    self.user_id = user_id
11718
    self.entity_id = entity_id
559 chandransh 11719
 
11720
  def read(self, iprot):
11721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11723
      return
11724
    iprot.readStructBegin()
11725
    while True:
11726
      (fname, ftype, fid) = iprot.readFieldBegin()
11727
      if ftype == TType.STOP:
11728
        break
11729
      if fid == 1:
11730
        if ftype == TType.I64:
2981 rajveer 11731
          self.user_id = iprot.readI64();
559 chandransh 11732
        else:
11733
          iprot.skip(ftype)
11734
      elif fid == 2:
11735
        if ftype == TType.I64:
2981 rajveer 11736
          self.entity_id = iprot.readI64();
559 chandransh 11737
        else:
11738
          iprot.skip(ftype)
11739
      else:
11740
        iprot.skip(ftype)
11741
      iprot.readFieldEnd()
11742
    iprot.readStructEnd()
11743
 
11744
  def write(self, oprot):
11745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11747
      return
2981 rajveer 11748
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 11749
    if self.user_id is not None:
2981 rajveer 11750
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11751
      oprot.writeI64(self.user_id)
559 chandransh 11752
      oprot.writeFieldEnd()
3431 rajveer 11753
    if self.entity_id is not None:
2981 rajveer 11754
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11755
      oprot.writeI64(self.entity_id)
559 chandransh 11756
      oprot.writeFieldEnd()
11757
    oprot.writeFieldStop()
11758
    oprot.writeStructEnd()
11759
 
3431 rajveer 11760
  def validate(self):
11761
    return
11762
 
11763
 
559 chandransh 11764
  def __repr__(self):
11765
    L = ['%s=%r' % (key, value)
11766
      for key, value in self.__dict__.iteritems()]
11767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11768
 
11769
  def __eq__(self, other):
11770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11771
 
11772
  def __ne__(self, other):
11773
    return not (self == other)
11774
 
2981 rajveer 11775
class getUserNotes_result:
11776
  """
11777
  Attributes:
11778
   - success
11779
  """
559 chandransh 11780
 
11781
  thrift_spec = (
2981 rajveer 11782
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 11783
  )
11784
 
2981 rajveer 11785
  def __init__(self, success=None,):
11786
    self.success = success
11787
 
559 chandransh 11788
  def read(self, iprot):
11789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11791
      return
11792
    iprot.readStructBegin()
11793
    while True:
11794
      (fname, ftype, fid) = iprot.readFieldBegin()
11795
      if ftype == TType.STOP:
11796
        break
2981 rajveer 11797
      if fid == 0:
11798
        if ftype == TType.LIST:
11799
          self.success = []
5326 rajveer 11800
          (_etype147, _size144) = iprot.readListBegin()
11801
          for _i148 in xrange(_size144):
11802
            _elem149 = UserNote()
11803
            _elem149.read(iprot)
11804
            self.success.append(_elem149)
2981 rajveer 11805
          iprot.readListEnd()
11806
        else:
11807
          iprot.skip(ftype)
559 chandransh 11808
      else:
11809
        iprot.skip(ftype)
11810
      iprot.readFieldEnd()
11811
    iprot.readStructEnd()
11812
 
11813
  def write(self, oprot):
11814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11816
      return
2981 rajveer 11817
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 11818
    if self.success is not None:
2981 rajveer 11819
      oprot.writeFieldBegin('success', TType.LIST, 0)
11820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 11821
      for iter150 in self.success:
11822
        iter150.write(oprot)
2981 rajveer 11823
      oprot.writeListEnd()
11824
      oprot.writeFieldEnd()
559 chandransh 11825
    oprot.writeFieldStop()
11826
    oprot.writeStructEnd()
11827
 
3431 rajveer 11828
  def validate(self):
11829
    return
11830
 
11831
 
559 chandransh 11832
  def __repr__(self):
11833
    L = ['%s=%r' % (key, value)
11834
      for key, value in self.__dict__.iteritems()]
11835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11836
 
11837
  def __eq__(self, other):
11838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11839
 
11840
  def __ne__(self, other):
11841
    return not (self == other)
11842
 
2981 rajveer 11843
class getMyResearchItems_args:
559 chandransh 11844
  """
11845
  Attributes:
772 rajveer 11846
   - userId
559 chandransh 11847
  """
11848
 
11849
  thrift_spec = (
11850
    None, # 0
772 rajveer 11851
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 11852
  )
11853
 
772 rajveer 11854
  def __init__(self, userId=None,):
11855
    self.userId = userId
559 chandransh 11856
 
11857
  def read(self, iprot):
11858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11860
      return
11861
    iprot.readStructBegin()
11862
    while True:
11863
      (fname, ftype, fid) = iprot.readFieldBegin()
11864
      if ftype == TType.STOP:
11865
        break
11866
      if fid == 1:
11867
        if ftype == TType.I64:
772 rajveer 11868
          self.userId = iprot.readI64();
559 chandransh 11869
        else:
11870
          iprot.skip(ftype)
11871
      else:
11872
        iprot.skip(ftype)
11873
      iprot.readFieldEnd()
11874
    iprot.readStructEnd()
11875
 
11876
  def write(self, oprot):
11877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11879
      return
2981 rajveer 11880
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 11881
    if self.userId is not None:
772 rajveer 11882
      oprot.writeFieldBegin('userId', TType.I64, 1)
11883
      oprot.writeI64(self.userId)
559 chandransh 11884
      oprot.writeFieldEnd()
11885
    oprot.writeFieldStop()
11886
    oprot.writeStructEnd()
11887
 
3431 rajveer 11888
  def validate(self):
11889
    return
11890
 
11891
 
559 chandransh 11892
  def __repr__(self):
11893
    L = ['%s=%r' % (key, value)
11894
      for key, value in self.__dict__.iteritems()]
11895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11896
 
11897
  def __eq__(self, other):
11898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11899
 
11900
  def __ne__(self, other):
11901
    return not (self == other)
11902
 
2981 rajveer 11903
class getMyResearchItems_result:
559 chandransh 11904
  """
11905
  Attributes:
130 ashish 11906
   - success
559 chandransh 11907
   - scx
130 ashish 11908
  """
11909
 
11910
  thrift_spec = (
2981 rajveer 11911
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 11912
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 11913
  )
11914
 
559 chandransh 11915
  def __init__(self, success=None, scx=None,):
130 ashish 11916
    self.success = success
559 chandransh 11917
    self.scx = scx
130 ashish 11918
 
11919
  def read(self, iprot):
11920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11922
      return
11923
    iprot.readStructBegin()
11924
    while True:
11925
      (fname, ftype, fid) = iprot.readFieldBegin()
11926
      if ftype == TType.STOP:
11927
        break
11928
      if fid == 0:
2981 rajveer 11929
        if ftype == TType.LIST:
11930
          self.success = []
5326 rajveer 11931
          (_etype154, _size151) = iprot.readListBegin()
11932
          for _i155 in xrange(_size151):
11933
            _elem156 = iprot.readI64();
11934
            self.success.append(_elem156)
2981 rajveer 11935
          iprot.readListEnd()
130 ashish 11936
        else:
11937
          iprot.skip(ftype)
11938
      elif fid == 1:
11939
        if ftype == TType.STRUCT:
559 chandransh 11940
          self.scx = WidgetException()
11941
          self.scx.read(iprot)
130 ashish 11942
        else:
11943
          iprot.skip(ftype)
11944
      else:
11945
        iprot.skip(ftype)
11946
      iprot.readFieldEnd()
11947
    iprot.readStructEnd()
11948
 
11949
  def write(self, oprot):
11950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11952
      return
2981 rajveer 11953
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 11954
    if self.success is not None:
2981 rajveer 11955
      oprot.writeFieldBegin('success', TType.LIST, 0)
11956
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 11957
      for iter157 in self.success:
11958
        oprot.writeI64(iter157)
2981 rajveer 11959
      oprot.writeListEnd()
130 ashish 11960
      oprot.writeFieldEnd()
3431 rajveer 11961
    if self.scx is not None:
559 chandransh 11962
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11963
      self.scx.write(oprot)
130 ashish 11964
      oprot.writeFieldEnd()
11965
    oprot.writeFieldStop()
11966
    oprot.writeStructEnd()
11967
 
3431 rajveer 11968
  def validate(self):
11969
    return
11970
 
11971
 
130 ashish 11972
  def __repr__(self):
11973
    L = ['%s=%r' % (key, value)
11974
      for key, value in self.__dict__.iteritems()]
11975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11976
 
11977
  def __eq__(self, other):
11978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11979
 
11980
  def __ne__(self, other):
11981
    return not (self == other)
11982
 
2981 rajveer 11983
class updateMyResearch_args:
130 ashish 11984
  """
11985
  Attributes:
2981 rajveer 11986
   - userId
11987
   - itemId
130 ashish 11988
  """
11989
 
11990
  thrift_spec = (
11991
    None, # 0
2981 rajveer 11992
    (1, TType.I64, 'userId', None, None, ), # 1
11993
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 11994
  )
11995
 
2981 rajveer 11996
  def __init__(self, userId=None, itemId=None,):
11997
    self.userId = userId
11998
    self.itemId = itemId
130 ashish 11999
 
12000
  def read(self, iprot):
12001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12003
      return
12004
    iprot.readStructBegin()
12005
    while True:
12006
      (fname, ftype, fid) = iprot.readFieldBegin()
12007
      if ftype == TType.STOP:
12008
        break
12009
      if fid == 1:
559 chandransh 12010
        if ftype == TType.I64:
2981 rajveer 12011
          self.userId = iprot.readI64();
130 ashish 12012
        else:
12013
          iprot.skip(ftype)
12014
      elif fid == 2:
559 chandransh 12015
        if ftype == TType.I64:
2981 rajveer 12016
          self.itemId = iprot.readI64();
559 chandransh 12017
        else:
12018
          iprot.skip(ftype)
130 ashish 12019
      else:
12020
        iprot.skip(ftype)
12021
      iprot.readFieldEnd()
12022
    iprot.readStructEnd()
12023
 
12024
  def write(self, oprot):
12025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12027
      return
2981 rajveer 12028
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12029
    if self.userId is not None:
2981 rajveer 12030
      oprot.writeFieldBegin('userId', TType.I64, 1)
12031
      oprot.writeI64(self.userId)
130 ashish 12032
      oprot.writeFieldEnd()
3431 rajveer 12033
    if self.itemId is not None:
2981 rajveer 12034
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12035
      oprot.writeI64(self.itemId)
130 ashish 12036
      oprot.writeFieldEnd()
12037
    oprot.writeFieldStop()
12038
    oprot.writeStructEnd()
12039
 
3431 rajveer 12040
  def validate(self):
12041
    return
12042
 
12043
 
130 ashish 12044
  def __repr__(self):
12045
    L = ['%s=%r' % (key, value)
12046
      for key, value in self.__dict__.iteritems()]
12047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12048
 
12049
  def __eq__(self, other):
12050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12051
 
12052
  def __ne__(self, other):
12053
    return not (self == other)
12054
 
2981 rajveer 12055
class updateMyResearch_result:
12056
  """
12057
  Attributes:
12058
   - success
12059
   - scx
12060
  """
559 chandransh 12061
 
12062
  thrift_spec = (
2981 rajveer 12063
    (0, TType.BOOL, 'success', None, None, ), # 0
12064
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12065
  )
12066
 
2981 rajveer 12067
  def __init__(self, success=None, scx=None,):
12068
    self.success = success
12069
    self.scx = scx
12070
 
559 chandransh 12071
  def read(self, iprot):
12072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12074
      return
12075
    iprot.readStructBegin()
12076
    while True:
12077
      (fname, ftype, fid) = iprot.readFieldBegin()
12078
      if ftype == TType.STOP:
12079
        break
2981 rajveer 12080
      if fid == 0:
12081
        if ftype == TType.BOOL:
12082
          self.success = iprot.readBool();
12083
        else:
12084
          iprot.skip(ftype)
12085
      elif fid == 1:
12086
        if ftype == TType.STRUCT:
12087
          self.scx = WidgetException()
12088
          self.scx.read(iprot)
12089
        else:
12090
          iprot.skip(ftype)
559 chandransh 12091
      else:
12092
        iprot.skip(ftype)
12093
      iprot.readFieldEnd()
12094
    iprot.readStructEnd()
12095
 
12096
  def write(self, oprot):
12097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12099
      return
2981 rajveer 12100
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12101
    if self.success is not None:
2981 rajveer 12102
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12103
      oprot.writeBool(self.success)
12104
      oprot.writeFieldEnd()
3431 rajveer 12105
    if self.scx is not None:
2981 rajveer 12106
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12107
      self.scx.write(oprot)
12108
      oprot.writeFieldEnd()
559 chandransh 12109
    oprot.writeFieldStop()
12110
    oprot.writeStructEnd()
12111
 
3431 rajveer 12112
  def validate(self):
12113
    return
12114
 
12115
 
559 chandransh 12116
  def __repr__(self):
12117
    L = ['%s=%r' % (key, value)
12118
      for key, value in self.__dict__.iteritems()]
12119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12120
 
12121
  def __eq__(self, other):
12122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12123
 
12124
  def __ne__(self, other):
12125
    return not (self == other)
12126
 
2981 rajveer 12127
class deleteItemFromMyResearch_args:
1596 ankur.sing 12128
  """
12129
  Attributes:
2981 rajveer 12130
   - userId
12131
   - itemId
1596 ankur.sing 12132
  """
559 chandransh 12133
 
1596 ankur.sing 12134
  thrift_spec = (
12135
    None, # 0
2981 rajveer 12136
    (1, TType.I64, 'userId', None, None, ), # 1
12137
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12138
  )
12139
 
2981 rajveer 12140
  def __init__(self, userId=None, itemId=None,):
12141
    self.userId = userId
12142
    self.itemId = itemId
1596 ankur.sing 12143
 
12144
  def read(self, iprot):
12145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12147
      return
12148
    iprot.readStructBegin()
12149
    while True:
12150
      (fname, ftype, fid) = iprot.readFieldBegin()
12151
      if ftype == TType.STOP:
12152
        break
12153
      if fid == 1:
2981 rajveer 12154
        if ftype == TType.I64:
12155
          self.userId = iprot.readI64();
1596 ankur.sing 12156
        else:
12157
          iprot.skip(ftype)
2981 rajveer 12158
      elif fid == 2:
12159
        if ftype == TType.I64:
12160
          self.itemId = iprot.readI64();
12161
        else:
12162
          iprot.skip(ftype)
1596 ankur.sing 12163
      else:
12164
        iprot.skip(ftype)
12165
      iprot.readFieldEnd()
12166
    iprot.readStructEnd()
12167
 
12168
  def write(self, oprot):
12169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12171
      return
2981 rajveer 12172
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12173
    if self.userId is not None:
2981 rajveer 12174
      oprot.writeFieldBegin('userId', TType.I64, 1)
12175
      oprot.writeI64(self.userId)
1596 ankur.sing 12176
      oprot.writeFieldEnd()
3431 rajveer 12177
    if self.itemId is not None:
2981 rajveer 12178
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12179
      oprot.writeI64(self.itemId)
12180
      oprot.writeFieldEnd()
1596 ankur.sing 12181
    oprot.writeFieldStop()
12182
    oprot.writeStructEnd()
12183
 
3431 rajveer 12184
  def validate(self):
12185
    return
12186
 
12187
 
1596 ankur.sing 12188
  def __repr__(self):
12189
    L = ['%s=%r' % (key, value)
12190
      for key, value in self.__dict__.iteritems()]
12191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12192
 
12193
  def __eq__(self, other):
12194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12195
 
12196
  def __ne__(self, other):
12197
    return not (self == other)
12198
 
2981 rajveer 12199
class deleteItemFromMyResearch_result:
1596 ankur.sing 12200
  """
12201
  Attributes:
2981 rajveer 12202
   - scx
1596 ankur.sing 12203
  """
12204
 
12205
  thrift_spec = (
2981 rajveer 12206
    None, # 0
12207
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12208
  )
12209
 
2981 rajveer 12210
  def __init__(self, scx=None,):
12211
    self.scx = scx
1596 ankur.sing 12212
 
12213
  def read(self, iprot):
12214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12216
      return
12217
    iprot.readStructBegin()
12218
    while True:
12219
      (fname, ftype, fid) = iprot.readFieldBegin()
12220
      if ftype == TType.STOP:
12221
        break
2981 rajveer 12222
      if fid == 1:
12223
        if ftype == TType.STRUCT:
12224
          self.scx = WidgetException()
12225
          self.scx.read(iprot)
1596 ankur.sing 12226
        else:
12227
          iprot.skip(ftype)
12228
      else:
12229
        iprot.skip(ftype)
12230
      iprot.readFieldEnd()
12231
    iprot.readStructEnd()
12232
 
12233
  def write(self, oprot):
12234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12236
      return
2981 rajveer 12237
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12238
    if self.scx is not None:
2981 rajveer 12239
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12240
      self.scx.write(oprot)
1596 ankur.sing 12241
      oprot.writeFieldEnd()
12242
    oprot.writeFieldStop()
12243
    oprot.writeStructEnd()
12244
 
3431 rajveer 12245
  def validate(self):
12246
    return
12247
 
12248
 
1596 ankur.sing 12249
  def __repr__(self):
12250
    L = ['%s=%r' % (key, value)
12251
      for key, value in self.__dict__.iteritems()]
12252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12253
 
12254
  def __eq__(self, other):
12255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12256
 
12257
  def __ne__(self, other):
12258
    return not (self == other)
12259
 
2981 rajveer 12260
class getBrowseHistoryItems_args:
1673 ankur.sing 12261
  """
12262
  Attributes:
2981 rajveer 12263
   - userId
1673 ankur.sing 12264
  """
1596 ankur.sing 12265
 
1673 ankur.sing 12266
  thrift_spec = (
12267
    None, # 0
2981 rajveer 12268
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12269
  )
12270
 
2981 rajveer 12271
  def __init__(self, userId=None,):
12272
    self.userId = userId
1673 ankur.sing 12273
 
12274
  def read(self, iprot):
12275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12277
      return
12278
    iprot.readStructBegin()
12279
    while True:
12280
      (fname, ftype, fid) = iprot.readFieldBegin()
12281
      if ftype == TType.STOP:
12282
        break
12283
      if fid == 1:
1891 ankur.sing 12284
        if ftype == TType.I64:
2981 rajveer 12285
          self.userId = iprot.readI64();
1891 ankur.sing 12286
        else:
12287
          iprot.skip(ftype)
1673 ankur.sing 12288
      else:
12289
        iprot.skip(ftype)
12290
      iprot.readFieldEnd()
12291
    iprot.readStructEnd()
12292
 
12293
  def write(self, oprot):
12294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12296
      return
2981 rajveer 12297
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12298
    if self.userId is not None:
2981 rajveer 12299
      oprot.writeFieldBegin('userId', TType.I64, 1)
12300
      oprot.writeI64(self.userId)
1673 ankur.sing 12301
      oprot.writeFieldEnd()
12302
    oprot.writeFieldStop()
12303
    oprot.writeStructEnd()
12304
 
3431 rajveer 12305
  def validate(self):
12306
    return
12307
 
12308
 
1673 ankur.sing 12309
  def __repr__(self):
12310
    L = ['%s=%r' % (key, value)
12311
      for key, value in self.__dict__.iteritems()]
12312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12313
 
12314
  def __eq__(self, other):
12315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12316
 
12317
  def __ne__(self, other):
12318
    return not (self == other)
12319
 
2981 rajveer 12320
class getBrowseHistoryItems_result:
1673 ankur.sing 12321
  """
12322
  Attributes:
12323
   - success
2981 rajveer 12324
   - scx
1673 ankur.sing 12325
  """
12326
 
12327
  thrift_spec = (
2981 rajveer 12328
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12329
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12330
  )
12331
 
2981 rajveer 12332
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12333
    self.success = success
2981 rajveer 12334
    self.scx = scx
1673 ankur.sing 12335
 
12336
  def read(self, iprot):
12337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12339
      return
12340
    iprot.readStructBegin()
12341
    while True:
12342
      (fname, ftype, fid) = iprot.readFieldBegin()
12343
      if ftype == TType.STOP:
12344
        break
12345
      if fid == 0:
12346
        if ftype == TType.LIST:
12347
          self.success = []
5326 rajveer 12348
          (_etype161, _size158) = iprot.readListBegin()
12349
          for _i162 in xrange(_size158):
12350
            _elem163 = iprot.readI64();
12351
            self.success.append(_elem163)
1673 ankur.sing 12352
          iprot.readListEnd()
12353
        else:
12354
          iprot.skip(ftype)
2981 rajveer 12355
      elif fid == 1:
12356
        if ftype == TType.STRUCT:
12357
          self.scx = WidgetException()
12358
          self.scx.read(iprot)
12359
        else:
12360
          iprot.skip(ftype)
1673 ankur.sing 12361
      else:
12362
        iprot.skip(ftype)
12363
      iprot.readFieldEnd()
12364
    iprot.readStructEnd()
12365
 
12366
  def write(self, oprot):
12367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12369
      return
2981 rajveer 12370
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12371
    if self.success is not None:
1673 ankur.sing 12372
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12373
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12374
      for iter164 in self.success:
12375
        oprot.writeI64(iter164)
1673 ankur.sing 12376
      oprot.writeListEnd()
12377
      oprot.writeFieldEnd()
3431 rajveer 12378
    if self.scx is not None:
2981 rajveer 12379
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12380
      self.scx.write(oprot)
2642 varun.gupt 12381
      oprot.writeFieldEnd()
12382
    oprot.writeFieldStop()
12383
    oprot.writeStructEnd()
12384
 
3431 rajveer 12385
  def validate(self):
12386
    return
12387
 
12388
 
2642 varun.gupt 12389
  def __repr__(self):
12390
    L = ['%s=%r' % (key, value)
12391
      for key, value in self.__dict__.iteritems()]
12392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12393
 
12394
  def __eq__(self, other):
12395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12396
 
12397
  def __ne__(self, other):
12398
    return not (self == other)
12399
 
2981 rajveer 12400
class updateBrowseHistory_args:
2642 varun.gupt 12401
  """
12402
  Attributes:
2981 rajveer 12403
   - userId
12404
   - itemId
2642 varun.gupt 12405
  """
12406
 
12407
  thrift_spec = (
12408
    None, # 0
2981 rajveer 12409
    (1, TType.I64, 'userId', None, None, ), # 1
12410
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12411
  )
12412
 
2981 rajveer 12413
  def __init__(self, userId=None, itemId=None,):
12414
    self.userId = userId
12415
    self.itemId = itemId
2642 varun.gupt 12416
 
12417
  def read(self, iprot):
12418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12420
      return
12421
    iprot.readStructBegin()
12422
    while True:
12423
      (fname, ftype, fid) = iprot.readFieldBegin()
12424
      if ftype == TType.STOP:
12425
        break
12426
      if fid == 1:
12427
        if ftype == TType.I64:
2981 rajveer 12428
          self.userId = iprot.readI64();
2642 varun.gupt 12429
        else:
12430
          iprot.skip(ftype)
12431
      elif fid == 2:
12432
        if ftype == TType.I64:
2981 rajveer 12433
          self.itemId = iprot.readI64();
2642 varun.gupt 12434
        else:
12435
          iprot.skip(ftype)
12436
      else:
12437
        iprot.skip(ftype)
12438
      iprot.readFieldEnd()
12439
    iprot.readStructEnd()
12440
 
12441
  def write(self, oprot):
12442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12444
      return
2981 rajveer 12445
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12446
    if self.userId is not None:
2981 rajveer 12447
      oprot.writeFieldBegin('userId', TType.I64, 1)
12448
      oprot.writeI64(self.userId)
2642 varun.gupt 12449
      oprot.writeFieldEnd()
3431 rajveer 12450
    if self.itemId is not None:
2981 rajveer 12451
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12452
      oprot.writeI64(self.itemId)
2642 varun.gupt 12453
      oprot.writeFieldEnd()
12454
    oprot.writeFieldStop()
12455
    oprot.writeStructEnd()
12456
 
3431 rajveer 12457
  def validate(self):
12458
    return
12459
 
12460
 
2642 varun.gupt 12461
  def __repr__(self):
12462
    L = ['%s=%r' % (key, value)
12463
      for key, value in self.__dict__.iteritems()]
12464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12465
 
12466
  def __eq__(self, other):
12467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12468
 
12469
  def __ne__(self, other):
12470
    return not (self == other)
12471
 
2981 rajveer 12472
class updateBrowseHistory_result:
2642 varun.gupt 12473
 
12474
  thrift_spec = (
12475
  )
12476
 
12477
  def read(self, iprot):
12478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12480
      return
12481
    iprot.readStructBegin()
12482
    while True:
12483
      (fname, ftype, fid) = iprot.readFieldBegin()
12484
      if ftype == TType.STOP:
12485
        break
12486
      else:
12487
        iprot.skip(ftype)
12488
      iprot.readFieldEnd()
12489
    iprot.readStructEnd()
12490
 
12491
  def write(self, oprot):
12492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12494
      return
2981 rajveer 12495
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12496
    oprot.writeFieldStop()
12497
    oprot.writeStructEnd()
12498
 
3431 rajveer 12499
  def validate(self):
12500
    return
12501
 
12502
 
2642 varun.gupt 12503
  def __repr__(self):
12504
    L = ['%s=%r' % (key, value)
12505
      for key, value in self.__dict__.iteritems()]
12506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12507
 
12508
  def __eq__(self, other):
12509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12510
 
12511
  def __ne__(self, other):
12512
    return not (self == other)
12513
 
3385 varun.gupt 12514
class getCartsWithCouponCount_args:
12515
  """
12516
  Attributes:
12517
   - couponCode
12518
  """
2642 varun.gupt 12519
 
3385 varun.gupt 12520
  thrift_spec = (
12521
    None, # 0
12522
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12523
  )
12524
 
12525
  def __init__(self, couponCode=None,):
12526
    self.couponCode = couponCode
12527
 
12528
  def read(self, iprot):
12529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12531
      return
12532
    iprot.readStructBegin()
12533
    while True:
12534
      (fname, ftype, fid) = iprot.readFieldBegin()
12535
      if ftype == TType.STOP:
12536
        break
12537
      if fid == 1:
12538
        if ftype == TType.STRING:
12539
          self.couponCode = iprot.readString();
12540
        else:
12541
          iprot.skip(ftype)
12542
      else:
12543
        iprot.skip(ftype)
12544
      iprot.readFieldEnd()
12545
    iprot.readStructEnd()
12546
 
12547
  def write(self, oprot):
12548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12550
      return
12551
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12552
    if self.couponCode is not None:
3385 varun.gupt 12553
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12554
      oprot.writeString(self.couponCode)
12555
      oprot.writeFieldEnd()
12556
    oprot.writeFieldStop()
12557
    oprot.writeStructEnd()
12558
 
3431 rajveer 12559
  def validate(self):
12560
    return
12561
 
12562
 
3385 varun.gupt 12563
  def __repr__(self):
12564
    L = ['%s=%r' % (key, value)
12565
      for key, value in self.__dict__.iteritems()]
12566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12567
 
12568
  def __eq__(self, other):
12569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12570
 
12571
  def __ne__(self, other):
12572
    return not (self == other)
12573
 
12574
class getCartsWithCouponCount_result:
12575
  """
12576
  Attributes:
12577
   - success
12578
  """
12579
 
12580
  thrift_spec = (
12581
    (0, TType.I64, 'success', None, None, ), # 0
12582
  )
12583
 
12584
  def __init__(self, success=None,):
12585
    self.success = success
12586
 
12587
  def read(self, iprot):
12588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12590
      return
12591
    iprot.readStructBegin()
12592
    while True:
12593
      (fname, ftype, fid) = iprot.readFieldBegin()
12594
      if ftype == TType.STOP:
12595
        break
12596
      if fid == 0:
12597
        if ftype == TType.I64:
12598
          self.success = iprot.readI64();
12599
        else:
12600
          iprot.skip(ftype)
12601
      else:
12602
        iprot.skip(ftype)
12603
      iprot.readFieldEnd()
12604
    iprot.readStructEnd()
12605
 
12606
  def write(self, oprot):
12607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12609
      return
12610
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12611
    if self.success is not None:
3385 varun.gupt 12612
      oprot.writeFieldBegin('success', TType.I64, 0)
12613
      oprot.writeI64(self.success)
12614
      oprot.writeFieldEnd()
12615
    oprot.writeFieldStop()
12616
    oprot.writeStructEnd()
12617
 
3431 rajveer 12618
  def validate(self):
12619
    return
12620
 
12621
 
3385 varun.gupt 12622
  def __repr__(self):
12623
    L = ['%s=%r' % (key, value)
12624
      for key, value in self.__dict__.iteritems()]
12625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12626
 
12627
  def __eq__(self, other):
12628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12629
 
12630
  def __ne__(self, other):
12631
    return not (self == other)
3499 mandeep.dh 12632
 
12633
class increaseTrustLevel_args:
12634
  """
12635
  Attributes:
12636
   - userId
12637
   - trustLevelDelta
12638
  """
12639
 
12640
  thrift_spec = (
12641
    None, # 0
12642
    (1, TType.I64, 'userId', None, None, ), # 1
12643
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
12644
  )
12645
 
12646
  def __init__(self, userId=None, trustLevelDelta=None,):
12647
    self.userId = userId
12648
    self.trustLevelDelta = trustLevelDelta
12649
 
12650
  def read(self, iprot):
12651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12653
      return
12654
    iprot.readStructBegin()
12655
    while True:
12656
      (fname, ftype, fid) = iprot.readFieldBegin()
12657
      if ftype == TType.STOP:
12658
        break
12659
      if fid == 1:
12660
        if ftype == TType.I64:
12661
          self.userId = iprot.readI64();
12662
        else:
12663
          iprot.skip(ftype)
12664
      elif fid == 2:
12665
        if ftype == TType.DOUBLE:
12666
          self.trustLevelDelta = iprot.readDouble();
12667
        else:
12668
          iprot.skip(ftype)
12669
      else:
12670
        iprot.skip(ftype)
12671
      iprot.readFieldEnd()
12672
    iprot.readStructEnd()
12673
 
12674
  def write(self, oprot):
12675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12677
      return
12678
    oprot.writeStructBegin('increaseTrustLevel_args')
12679
    if self.userId is not None:
12680
      oprot.writeFieldBegin('userId', TType.I64, 1)
12681
      oprot.writeI64(self.userId)
12682
      oprot.writeFieldEnd()
12683
    if self.trustLevelDelta is not None:
12684
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
12685
      oprot.writeDouble(self.trustLevelDelta)
12686
      oprot.writeFieldEnd()
12687
    oprot.writeFieldStop()
12688
    oprot.writeStructEnd()
12689
 
12690
  def validate(self):
12691
    return
12692
 
12693
 
12694
  def __repr__(self):
12695
    L = ['%s=%r' % (key, value)
12696
      for key, value in self.__dict__.iteritems()]
12697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12698
 
12699
  def __eq__(self, other):
12700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12701
 
12702
  def __ne__(self, other):
12703
    return not (self == other)
4668 varun.gupt 12704
 
12705
class showCODOption_args:
12706
  """
12707
  Attributes:
12708
   - cartId
12709
   - sourceId
12710
   - pincode
12711
  """
12712
 
12713
  thrift_spec = (
12714
    None, # 0
12715
    (1, TType.I64, 'cartId', None, None, ), # 1
12716
    (2, TType.I64, 'sourceId', None, None, ), # 2
12717
    (3, TType.STRING, 'pincode', None, None, ), # 3
12718
  )
12719
 
12720
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
12721
    self.cartId = cartId
12722
    self.sourceId = sourceId
12723
    self.pincode = pincode
12724
 
12725
  def read(self, iprot):
12726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12728
      return
12729
    iprot.readStructBegin()
12730
    while True:
12731
      (fname, ftype, fid) = iprot.readFieldBegin()
12732
      if ftype == TType.STOP:
12733
        break
12734
      if fid == 1:
12735
        if ftype == TType.I64:
12736
          self.cartId = iprot.readI64();
12737
        else:
12738
          iprot.skip(ftype)
12739
      elif fid == 2:
12740
        if ftype == TType.I64:
12741
          self.sourceId = iprot.readI64();
12742
        else:
12743
          iprot.skip(ftype)
12744
      elif fid == 3:
12745
        if ftype == TType.STRING:
12746
          self.pincode = iprot.readString();
12747
        else:
12748
          iprot.skip(ftype)
12749
      else:
12750
        iprot.skip(ftype)
12751
      iprot.readFieldEnd()
12752
    iprot.readStructEnd()
12753
 
12754
  def write(self, oprot):
12755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12757
      return
12758
    oprot.writeStructBegin('showCODOption_args')
12759
    if self.cartId is not None:
12760
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12761
      oprot.writeI64(self.cartId)
12762
      oprot.writeFieldEnd()
12763
    if self.sourceId is not None:
12764
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12765
      oprot.writeI64(self.sourceId)
12766
      oprot.writeFieldEnd()
12767
    if self.pincode is not None:
12768
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
12769
      oprot.writeString(self.pincode)
12770
      oprot.writeFieldEnd()
12771
    oprot.writeFieldStop()
12772
    oprot.writeStructEnd()
12773
 
12774
  def validate(self):
12775
    return
12776
 
12777
 
12778
  def __repr__(self):
12779
    L = ['%s=%r' % (key, value)
12780
      for key, value in self.__dict__.iteritems()]
12781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12782
 
12783
  def __eq__(self, other):
12784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12785
 
12786
  def __ne__(self, other):
12787
    return not (self == other)
12788
 
12789
class showCODOption_result:
12790
  """
12791
  Attributes:
12792
   - success
12793
  """
12794
 
12795
  thrift_spec = (
12796
    (0, TType.BOOL, 'success', None, None, ), # 0
12797
  )
12798
 
12799
  def __init__(self, success=None,):
12800
    self.success = success
12801
 
12802
  def read(self, iprot):
12803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12805
      return
12806
    iprot.readStructBegin()
12807
    while True:
12808
      (fname, ftype, fid) = iprot.readFieldBegin()
12809
      if ftype == TType.STOP:
12810
        break
12811
      if fid == 0:
12812
        if ftype == TType.BOOL:
12813
          self.success = iprot.readBool();
12814
        else:
12815
          iprot.skip(ftype)
12816
      else:
12817
        iprot.skip(ftype)
12818
      iprot.readFieldEnd()
12819
    iprot.readStructEnd()
12820
 
12821
  def write(self, oprot):
12822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12824
      return
12825
    oprot.writeStructBegin('showCODOption_result')
12826
    if self.success is not None:
12827
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12828
      oprot.writeBool(self.success)
12829
      oprot.writeFieldEnd()
12830
    oprot.writeFieldStop()
12831
    oprot.writeStructEnd()
12832
 
12833
  def validate(self):
12834
    return
12835
 
12836
 
12837
  def __repr__(self):
12838
    L = ['%s=%r' % (key, value)
12839
      for key, value in self.__dict__.iteritems()]
12840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12841
 
12842
  def __eq__(self, other):
12843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12844
 
12845
  def __ne__(self, other):
12846
    return not (self == other)