Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
46
  def getItemStatusDescription(self, itemId):
47
    """
48
    Parameters:
49
     - itemId
50
    """
51
    pass
52
 
53
  def startItemOn(self, item_id, timestamp):
54
    """
55
    Parameters:
56
     - item_id
57
     - timestamp
58
    """
59
    pass
60
 
61
  def retireItemOn(self, item_id, timestamp):
62
    """
63
    Parameters:
64
     - item_id
65
     - timestamp
66
    """
67
    pass
68
 
69
  def changeItemStatus(self, item_id, timestamp, newstatus):
70
    """
71
    Parameters:
72
     - item_id
73
     - timestamp
74
     - newstatus
75
    """
76
    pass
77
 
78
  def getItem(self, item_id):
79
    """
80
    Parameters:
81
     - item_id
82
    """
83
    pass
84
 
85
  def getItemsByCatalogId(self, catalog_item_id):
86
    """
87
    Parameters:
88
     - catalog_item_id
89
    """
90
    pass
91
 
92
  def getValidItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getAllItems(self, isActive):
100
    """
101
    Parameters:
102
     - isActive
103
    """
104
    pass
105
 
106
  def getAllItemsByStatus(self, itemStatus):
107
    """
108
    Parameters:
109
     - itemStatus
110
    """
111
    pass
112
 
113
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
114
    """
115
    Parameters:
116
     - entityId
117
     - category
118
     - brand
119
     - modelName
120
     - modelNumber
121
    """
122
    pass
123
 
124
  def getAllItemsInRange(self, offset, limit):
125
    """
126
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
127
 
128
    Parameters:
129
     - offset
130
     - limit
131
    """
132
    pass
133
 
134
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
135
    """
136
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
137
 
138
    Parameters:
139
     - itemStatus
140
     - offset
141
     - limit
142
    """
143
    pass
144
 
145
  def getItemCountByStatus(self, useStatus, itemStatus):
146
    """
147
    Gets a count of all items by status
148
 
149
    Parameters:
150
     - useStatus
151
     - itemStatus
152
    """
153
    pass
154
 
155
  def getBestSellers(self, ):
156
    pass
157
 
158
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
159
    """
160
    Parameters:
161
     - beginIndex
162
     - totalItems
163
     - brand
164
     - category
165
    """
166
    pass
167
 
168
  def getBestSellersCount(self, ):
169
    pass
170
 
171
  def getBestDeals(self, ):
172
    pass
173
 
174
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestDealsCount(self, ):
185
    pass
186
 
187
  def getComingSoon(self, ):
188
    pass
189
 
190
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getComingSoonCount(self, ):
201
    pass
202
 
203
  def getLatestArrivals(self, ):
204
    """
205
    Returns a list of items sorted in the descending order by start date.
206
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
207
    """
208
    pass
209
 
210
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
211
    """
212
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
213
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
214
 
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - categories
220
    """
221
    pass
222
 
223
  def getLatestArrivalsCount(self, ):
224
    """
225
    Get the total number of latest arrivals we are willing to show.
226
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
227
    """
228
    pass
229
 
230
  def generateNewEntityID(self, ):
231
    pass
232
 
233
  def addCategory(self, category):
234
    """
235
    All category related functions
236
 
237
    Parameters:
238
     - category
239
    """
240
    pass
241
 
242
  def getCategory(self, id):
243
    """
244
    Parameters:
245
     - id
246
    """
247
    pass
248
 
249
  def getAllCategories(self, ):
250
    pass
251
 
252
  def getAllSimilarItems(self, itemId):
253
    """
254
    Returns the list of similar items.
255
 
256
    Parameters:
257
     - itemId
258
    """
259
    pass
260
 
261
  def addSimilarItem(self, itemId, catalogItemId):
262
    """
263
    Adds similar item.
264
 
265
    Parameters:
266
     - itemId
267
     - catalogItemId
268
    """
269
    pass
270
 
6512 kshitij.so 271
  def addTag(self, displayName, itemId):
272
    """
273
    Tag Related
274
 
275
    Parameters:
276
     - displayName
277
     - itemId
278
    """
279
    pass
280
 
281
  def deleteEntityTag(self, displayName, itemId):
282
    """
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteTag(self, displayName):
290
    """
291
    Parameters:
292
     - displayName
293
    """
294
    pass
295
 
296
  def getAllTags(self, ):
297
    pass
298
 
299
  def getAllEntitiesByTagName(self, displayName):
300
    """
301
    Parameters:
302
     - displayName
303
    """
304
    pass
305
 
6845 amit.gupta 306
  def getAllEntityTags(self, ):
307
    pass
308
 
6850 kshitij.so 309
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
310
    """
311
    Parameters:
312
     - bannerName
313
     - imageName
314
     - link
315
     - priority
316
     - isActive
317
     - hasMap
318
    """
319
    pass
320
 
321
  def getAllBanners(self, ):
322
    pass
323
 
324
  def deleteBanner(self, bannerName):
325
    """
326
    Parameters:
327
     - bannerName
328
    """
329
    pass
330
 
331
  def getBannerDetails(self, bannerName):
332
    """
333
    Parameters:
334
     - bannerName
335
    """
336
    pass
337
 
338
  def getActiveBanners(self, ):
339
    pass
340
 
6849 kshitij.so 341
  def addBannerMap(self, bannerName, mapLink, coordinates):
342
    """
343
    Parameters:
344
     - bannerName
345
     - mapLink
346
     - coordinates
347
    """
348
    pass
349
 
350
  def deleteBannerMap(self, bannerName):
351
    """
352
    Parameters:
353
     - bannerName
354
    """
355
    pass
356
 
357
  def getBannerMapDetails(self, bannerName):
358
    """
359
    Parameters:
360
     - bannerName
361
    """
362
    pass
363
 
5944 mandeep.dh 364
  def deleteSimilarItem(self, itemId, catalogItemId):
365
    """
366
    Delete similar item.
367
 
368
    Parameters:
369
     - itemId
370
     - catalogItemId
371
    """
372
    pass
373
 
374
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
375
    """
376
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
377
    If yes, returns the itemId else returns 0
378
 
379
    Parameters:
380
     - brand
381
     - modelNumber
382
     - modelName
383
     - color
384
    """
385
    pass
386
 
387
  def validateRiskyStatus(self, itemId):
388
    """
389
    Check wether item is risky and change status if inventory is not available for risky items
390
 
391
    Parameters:
392
     - itemId
393
    """
394
    pass
395
 
396
  def changeItemRiskyFlag(self, itemId, risky):
397
    """
398
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
399
 
400
    Parameters:
401
     - itemId
402
     - risky
403
    """
404
    pass
405
 
406
  def getItemsByRiskyFlag(self, ):
407
    """
408
    Returns list of items marked as risky.
409
    """
410
    pass
411
 
412
  def getItemsForMasterSheet(self, category, brand):
413
    """
414
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
415
 
416
    Parameters:
417
     - category
418
     - brand
419
    """
420
    pass
421
 
422
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
423
    """
424
    Returns list of catalog ids of items with same similarity index as of the given itemId
425
 
426
    Parameters:
427
     - beginIndex
428
     - totalItems
429
     - itemId
430
    """
431
    pass
432
 
433
  def addProductNotification(self, itemId, email):
434
    """
435
    Add user requests for out of stock items. Once user will ask for notify me an entry will
436
 
437
    Parameters:
438
     - itemId
439
     - email
440
    """
441
    pass
442
 
443
  def sendProductNotifications(self, ):
444
    """
445
    Send the product notifications to the users for items which has stock.
446
    """
447
    pass
448
 
449
  def getAllBrandsByCategory(self, categoryId):
450
    """
451
    Returns list of brand names for a given category Id
452
 
453
    Parameters:
454
     - categoryId
455
    """
456
    pass
457
 
458
  def getAllBrands(self, ):
459
    """
460
    Returns list of brand names
461
    """
462
    pass
463
 
464
  def getAllSources(self, ):
465
    """
466
    Return list of all sources
467
    """
468
    pass
469
 
470
  def getItemPricingBySource(self, itemId, sourceId):
471
    """
472
    Returns the pricing information of an item. If no information is found, exception will be thrown.
473
 
474
    Parameters:
475
     - itemId
476
     - sourceId
477
    """
478
    pass
479
 
480
  def addSourceItemPricing(self, sourceItemPricing):
481
    """
482
    Adds prices to be displayed corresponding to the item if user comes from a source.
483
    If item is not found or source is not found, it will throw exception.
484
 
485
    Parameters:
486
     - sourceItemPricing
487
    """
488
    pass
489
 
490
  def getAllSourcePricing(self, itemId):
491
    """
492
    Returns the list of source pricing information of an item.
493
    Raises an exception if item not found corresponding to itemId
494
 
495
    Parameters:
496
     - itemId
497
    """
498
    pass
499
 
500
  def getItemForSource(self, item_id, sourceId):
501
    """
502
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
503
 
504
    Parameters:
505
     - item_id
506
     - sourceId
507
    """
508
    pass
509
 
510
  def searchItemsInRange(self, searchTerms, offset, limit):
511
    """
512
    Searches items matching the the given terms in the catalog and returns results within the specified range.
513
 
514
    Parameters:
515
     - searchTerms
516
     - offset
517
     - limit
518
    """
519
    pass
520
 
521
  def getSearchResultCount(self, searchTerms):
522
    """
523
    Gets the count of search results for the given search terms so that the user can go through all the pages.
524
 
525
    Parameters:
526
     - searchTerms
527
    """
528
    pass
529
 
530
  def getProductNotifications(self, startDateTime):
531
    """
532
    Returns a list of product notifications added after a supplied datetime
533
 
534
    Parameters:
535
     - startDateTime
536
    """
537
    pass
538
 
539
  def getProductNotificationRequestCount(self, startDateTime):
540
    """
541
    Returns a list of count of requests for product notification against each item
542
 
543
    Parameters:
544
     - startDateTime
545
    """
546
    pass
547
 
548
  def addAuthorizationLog(self, itemId, username, reason):
549
    """
550
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
551
 
552
    Parameters:
553
     - itemId
554
     - username
555
     - reason
556
    """
557
    pass
558
 
559
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
560
    """
561
    Parameters:
562
     - catalog_item_id
563
     - voucherType
564
     - voucherAmount
565
    """
566
    pass
567
 
568
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
569
    """
570
    Parameters:
571
     - catalog_item_id
572
     - voucherType
573
    """
574
    pass
575
 
576
  def getVoucherAmount(self, itemId, voucherType):
577
    """
578
    Parameters:
579
     - itemId
580
     - voucherType
581
    """
582
    pass
583
 
584
  def getAllItemVouchers(self, itemId):
585
    """
586
    Parameters:
587
     - itemId
588
    """
589
    pass
590
 
591
  def isValidCatalogItemId(self, catalog_item_id):
592
    """
593
    Parameters:
594
     - catalog_item_id
595
    """
596
    pass
597
 
6039 amit.gupta 598
  def getVatPercentageForItem(self, itemId, price):
599
    """
600
    Parameters:
601
     - itemId
602
     - price
603
    """
604
    pass
5944 mandeep.dh 605
 
6039 amit.gupta 606
  def getVatAmountForItem(self, itemId, price):
607
    """
608
    Parameters:
609
     - itemId
610
     - price
611
    """
612
    pass
613
 
6531 vikram.rag 614
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
615
    """
616
    Parameters:
617
     - offset
618
     - limit
619
    """
620
    pass
6039 amit.gupta 621
 
6821 amar.kumar 622
  def getAllAliveItems(self, ):
623
    pass
624
 
6921 anupam.sin 625
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 626
    """
627
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 628
 
6805 anupam.sin 629
    Parameters:
630
     - itemId
6921 anupam.sin 631
     - price
6805 anupam.sin 632
     - insurerId
633
     - quantity
634
    """
635
    pass
636
 
637
  def getInsurer(self, insurerId):
638
    """
639
    Parameters:
640
     - insurerId
641
    """
642
    pass
643
 
6838 vikram.rag 644
  def getAllInsurers(self, ):
645
    pass
6805 anupam.sin 646
 
6962 rajveer 647
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
648
    """
649
    Parameters:
650
     - insurerId
651
     - amount
652
    """
653
    pass
6838 vikram.rag 654
 
7190 amar.kumar 655
  def getFreebieForItem(self, itemId):
656
    """
657
    Parameters:
658
     - itemId
659
    """
660
    pass
6962 rajveer 661
 
7190 amar.kumar 662
  def addOrUpdateFreebieForItem(self, freebieItem):
663
    """
664
    Parameters:
665
     - freebieItem
666
    """
667
    pass
668
 
7256 rajveer 669
  def getStorePricing(self, itemId):
670
    """
671
    Parameters:
672
     - itemId
673
    """
674
    pass
7190 amar.kumar 675
 
7265 rajveer 676
  def updateStorePricing(self, sp):
677
    """
678
    Parameters:
679
     - sp
680
    """
681
    pass
7256 rajveer 682
 
7265 rajveer 683
 
5944 mandeep.dh 684
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
685
  def __init__(self, iprot, oprot=None):
686
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
687
 
688
  def addItem(self, item):
689
    """
690
    Availability and inventory attributes
691
 
692
    Parameters:
693
     - item
694
    """
695
    self.send_addItem(item)
696
    return self.recv_addItem()
697
 
698
  def send_addItem(self, item):
699
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
700
    args = addItem_args()
701
    args.item = item
702
    args.write(self._oprot)
703
    self._oprot.writeMessageEnd()
704
    self._oprot.trans.flush()
705
 
706
  def recv_addItem(self, ):
707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
708
    if mtype == TMessageType.EXCEPTION:
709
      x = TApplicationException()
710
      x.read(self._iprot)
711
      self._iprot.readMessageEnd()
712
      raise x
713
    result = addItem_result()
714
    result.read(self._iprot)
715
    self._iprot.readMessageEnd()
716
    if result.success is not None:
717
      return result.success
718
    if result.cex is not None:
719
      raise result.cex
720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
721
 
722
  def updateItem(self, item):
723
    """
724
    Parameters:
725
     - item
726
    """
727
    self.send_updateItem(item)
728
    return self.recv_updateItem()
729
 
730
  def send_updateItem(self, item):
731
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
732
    args = updateItem_args()
733
    args.item = item
734
    args.write(self._oprot)
735
    self._oprot.writeMessageEnd()
736
    self._oprot.trans.flush()
737
 
738
  def recv_updateItem(self, ):
739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
740
    if mtype == TMessageType.EXCEPTION:
741
      x = TApplicationException()
742
      x.read(self._iprot)
743
      self._iprot.readMessageEnd()
744
      raise x
745
    result = updateItem_result()
746
    result.read(self._iprot)
747
    self._iprot.readMessageEnd()
748
    if result.success is not None:
749
      return result.success
750
    if result.cex is not None:
751
      raise result.cex
752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
753
 
754
  def isActive(self, itemId):
755
    """
756
    Checks if the item given to the corresponding itemId is active. If it's active,
757
    whether it's risky and if it's risky, its inventory position.
758
 
759
    Parameters:
760
     - itemId
761
    """
762
    self.send_isActive(itemId)
763
    return self.recv_isActive()
764
 
765
  def send_isActive(self, itemId):
766
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
767
    args = isActive_args()
768
    args.itemId = itemId
769
    args.write(self._oprot)
770
    self._oprot.writeMessageEnd()
771
    self._oprot.trans.flush()
772
 
773
  def recv_isActive(self, ):
774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
775
    if mtype == TMessageType.EXCEPTION:
776
      x = TApplicationException()
777
      x.read(self._iprot)
778
      self._iprot.readMessageEnd()
779
      raise x
780
    result = isActive_result()
781
    result.read(self._iprot)
782
    self._iprot.readMessageEnd()
783
    if result.success is not None:
784
      return result.success
785
    if result.isex is not None:
786
      raise result.isex
787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
788
 
789
  def getItemStatusDescription(self, itemId):
790
    """
791
    Parameters:
792
     - itemId
793
    """
794
    self.send_getItemStatusDescription(itemId)
795
    return self.recv_getItemStatusDescription()
796
 
797
  def send_getItemStatusDescription(self, itemId):
798
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
799
    args = getItemStatusDescription_args()
800
    args.itemId = itemId
801
    args.write(self._oprot)
802
    self._oprot.writeMessageEnd()
803
    self._oprot.trans.flush()
804
 
805
  def recv_getItemStatusDescription(self, ):
806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
807
    if mtype == TMessageType.EXCEPTION:
808
      x = TApplicationException()
809
      x.read(self._iprot)
810
      self._iprot.readMessageEnd()
811
      raise x
812
    result = getItemStatusDescription_result()
813
    result.read(self._iprot)
814
    self._iprot.readMessageEnd()
815
    if result.success is not None:
816
      return result.success
817
    if result.isex is not None:
818
      raise result.isex
819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
820
 
821
  def startItemOn(self, item_id, timestamp):
822
    """
823
    Parameters:
824
     - item_id
825
     - timestamp
826
    """
827
    self.send_startItemOn(item_id, timestamp)
828
    self.recv_startItemOn()
829
 
830
  def send_startItemOn(self, item_id, timestamp):
831
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
832
    args = startItemOn_args()
833
    args.item_id = item_id
834
    args.timestamp = timestamp
835
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
838
 
839
  def recv_startItemOn(self, ):
840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
843
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
845
      raise x
846
    result = startItemOn_result()
847
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
849
    if result.cex is not None:
850
      raise result.cex
851
    return
852
 
853
  def retireItemOn(self, item_id, timestamp):
854
    """
855
    Parameters:
856
     - item_id
857
     - timestamp
858
    """
859
    self.send_retireItemOn(item_id, timestamp)
860
    self.recv_retireItemOn()
861
 
862
  def send_retireItemOn(self, item_id, timestamp):
863
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
864
    args = retireItemOn_args()
865
    args.item_id = item_id
866
    args.timestamp = timestamp
867
    args.write(self._oprot)
868
    self._oprot.writeMessageEnd()
869
    self._oprot.trans.flush()
870
 
871
  def recv_retireItemOn(self, ):
872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
873
    if mtype == TMessageType.EXCEPTION:
874
      x = TApplicationException()
875
      x.read(self._iprot)
876
      self._iprot.readMessageEnd()
877
      raise x
878
    result = retireItemOn_result()
879
    result.read(self._iprot)
880
    self._iprot.readMessageEnd()
881
    if result.cex is not None:
882
      raise result.cex
883
    return
884
 
885
  def changeItemStatus(self, item_id, timestamp, newstatus):
886
    """
887
    Parameters:
888
     - item_id
889
     - timestamp
890
     - newstatus
891
    """
892
    self.send_changeItemStatus(item_id, timestamp, newstatus)
893
    self.recv_changeItemStatus()
894
 
895
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
896
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
897
    args = changeItemStatus_args()
898
    args.item_id = item_id
899
    args.timestamp = timestamp
900
    args.newstatus = newstatus
901
    args.write(self._oprot)
902
    self._oprot.writeMessageEnd()
903
    self._oprot.trans.flush()
904
 
905
  def recv_changeItemStatus(self, ):
906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
907
    if mtype == TMessageType.EXCEPTION:
908
      x = TApplicationException()
909
      x.read(self._iprot)
910
      self._iprot.readMessageEnd()
911
      raise x
912
    result = changeItemStatus_result()
913
    result.read(self._iprot)
914
    self._iprot.readMessageEnd()
915
    if result.cex is not None:
916
      raise result.cex
917
    return
918
 
919
  def getItem(self, item_id):
920
    """
921
    Parameters:
922
     - item_id
923
    """
924
    self.send_getItem(item_id)
925
    return self.recv_getItem()
926
 
927
  def send_getItem(self, item_id):
928
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
929
    args = getItem_args()
930
    args.item_id = item_id
931
    args.write(self._oprot)
932
    self._oprot.writeMessageEnd()
933
    self._oprot.trans.flush()
934
 
935
  def recv_getItem(self, ):
936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
937
    if mtype == TMessageType.EXCEPTION:
938
      x = TApplicationException()
939
      x.read(self._iprot)
940
      self._iprot.readMessageEnd()
941
      raise x
942
    result = getItem_result()
943
    result.read(self._iprot)
944
    self._iprot.readMessageEnd()
945
    if result.success is not None:
946
      return result.success
947
    if result.cex is not None:
948
      raise result.cex
949
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
950
 
951
  def getItemsByCatalogId(self, catalog_item_id):
952
    """
953
    Parameters:
954
     - catalog_item_id
955
    """
956
    self.send_getItemsByCatalogId(catalog_item_id)
957
    return self.recv_getItemsByCatalogId()
958
 
959
  def send_getItemsByCatalogId(self, catalog_item_id):
960
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
961
    args = getItemsByCatalogId_args()
962
    args.catalog_item_id = catalog_item_id
963
    args.write(self._oprot)
964
    self._oprot.writeMessageEnd()
965
    self._oprot.trans.flush()
966
 
967
  def recv_getItemsByCatalogId(self, ):
968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
969
    if mtype == TMessageType.EXCEPTION:
970
      x = TApplicationException()
971
      x.read(self._iprot)
972
      self._iprot.readMessageEnd()
973
      raise x
974
    result = getItemsByCatalogId_result()
975
    result.read(self._iprot)
976
    self._iprot.readMessageEnd()
977
    if result.success is not None:
978
      return result.success
979
    if result.cex is not None:
980
      raise result.cex
981
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
982
 
983
  def getValidItemsByCatalogId(self, catalog_item_id):
984
    """
985
    Parameters:
986
     - catalog_item_id
987
    """
988
    self.send_getValidItemsByCatalogId(catalog_item_id)
989
    return self.recv_getValidItemsByCatalogId()
990
 
991
  def send_getValidItemsByCatalogId(self, catalog_item_id):
992
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
993
    args = getValidItemsByCatalogId_args()
994
    args.catalog_item_id = catalog_item_id
995
    args.write(self._oprot)
996
    self._oprot.writeMessageEnd()
997
    self._oprot.trans.flush()
998
 
999
  def recv_getValidItemsByCatalogId(self, ):
1000
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1001
    if mtype == TMessageType.EXCEPTION:
1002
      x = TApplicationException()
1003
      x.read(self._iprot)
1004
      self._iprot.readMessageEnd()
1005
      raise x
1006
    result = getValidItemsByCatalogId_result()
1007
    result.read(self._iprot)
1008
    self._iprot.readMessageEnd()
1009
    if result.success is not None:
1010
      return result.success
1011
    if result.cex is not None:
1012
      raise result.cex
1013
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1014
 
1015
  def getAllItems(self, isActive):
1016
    """
1017
    Parameters:
1018
     - isActive
1019
    """
1020
    self.send_getAllItems(isActive)
1021
    return self.recv_getAllItems()
1022
 
1023
  def send_getAllItems(self, isActive):
1024
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1025
    args = getAllItems_args()
1026
    args.isActive = isActive
1027
    args.write(self._oprot)
1028
    self._oprot.writeMessageEnd()
1029
    self._oprot.trans.flush()
1030
 
1031
  def recv_getAllItems(self, ):
1032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1033
    if mtype == TMessageType.EXCEPTION:
1034
      x = TApplicationException()
1035
      x.read(self._iprot)
1036
      self._iprot.readMessageEnd()
1037
      raise x
1038
    result = getAllItems_result()
1039
    result.read(self._iprot)
1040
    self._iprot.readMessageEnd()
1041
    if result.success is not None:
1042
      return result.success
1043
    if result.cex is not None:
1044
      raise result.cex
1045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1046
 
1047
  def getAllItemsByStatus(self, itemStatus):
1048
    """
1049
    Parameters:
1050
     - itemStatus
1051
    """
1052
    self.send_getAllItemsByStatus(itemStatus)
1053
    return self.recv_getAllItemsByStatus()
1054
 
1055
  def send_getAllItemsByStatus(self, itemStatus):
1056
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1057
    args = getAllItemsByStatus_args()
1058
    args.itemStatus = itemStatus
1059
    args.write(self._oprot)
1060
    self._oprot.writeMessageEnd()
1061
    self._oprot.trans.flush()
1062
 
1063
  def recv_getAllItemsByStatus(self, ):
1064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1065
    if mtype == TMessageType.EXCEPTION:
1066
      x = TApplicationException()
1067
      x.read(self._iprot)
1068
      self._iprot.readMessageEnd()
1069
      raise x
1070
    result = getAllItemsByStatus_result()
1071
    result.read(self._iprot)
1072
    self._iprot.readMessageEnd()
1073
    if result.success is not None:
1074
      return result.success
1075
    if result.cex is not None:
1076
      raise result.cex
1077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1078
 
1079
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1080
    """
1081
    Parameters:
1082
     - entityId
1083
     - category
1084
     - brand
1085
     - modelName
1086
     - modelNumber
1087
    """
1088
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1089
    return self.recv_markItemAsContentComplete()
1090
 
1091
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1092
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1093
    args = markItemAsContentComplete_args()
1094
    args.entityId = entityId
1095
    args.category = category
1096
    args.brand = brand
1097
    args.modelName = modelName
1098
    args.modelNumber = modelNumber
1099
    args.write(self._oprot)
1100
    self._oprot.writeMessageEnd()
1101
    self._oprot.trans.flush()
1102
 
1103
  def recv_markItemAsContentComplete(self, ):
1104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1105
    if mtype == TMessageType.EXCEPTION:
1106
      x = TApplicationException()
1107
      x.read(self._iprot)
1108
      self._iprot.readMessageEnd()
1109
      raise x
1110
    result = markItemAsContentComplete_result()
1111
    result.read(self._iprot)
1112
    self._iprot.readMessageEnd()
1113
    if result.success is not None:
1114
      return result.success
1115
    if result.cex is not None:
1116
      raise result.cex
1117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1118
 
1119
  def getAllItemsInRange(self, offset, limit):
1120
    """
1121
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1122
 
1123
    Parameters:
1124
     - offset
1125
     - limit
1126
    """
1127
    self.send_getAllItemsInRange(offset, limit)
1128
    return self.recv_getAllItemsInRange()
1129
 
1130
  def send_getAllItemsInRange(self, offset, limit):
1131
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1132
    args = getAllItemsInRange_args()
1133
    args.offset = offset
1134
    args.limit = limit
1135
    args.write(self._oprot)
1136
    self._oprot.writeMessageEnd()
1137
    self._oprot.trans.flush()
1138
 
1139
  def recv_getAllItemsInRange(self, ):
1140
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1141
    if mtype == TMessageType.EXCEPTION:
1142
      x = TApplicationException()
1143
      x.read(self._iprot)
1144
      self._iprot.readMessageEnd()
1145
      raise x
1146
    result = getAllItemsInRange_result()
1147
    result.read(self._iprot)
1148
    self._iprot.readMessageEnd()
1149
    if result.success is not None:
1150
      return result.success
1151
    if result.cex is not None:
1152
      raise result.cex
1153
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1154
 
1155
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1156
    """
1157
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
1158
 
1159
    Parameters:
1160
     - itemStatus
1161
     - offset
1162
     - limit
1163
    """
1164
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1165
    return self.recv_getAllItemsByStatusInRange()
1166
 
1167
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1168
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1169
    args = getAllItemsByStatusInRange_args()
1170
    args.itemStatus = itemStatus
1171
    args.offset = offset
1172
    args.limit = limit
1173
    args.write(self._oprot)
1174
    self._oprot.writeMessageEnd()
1175
    self._oprot.trans.flush()
1176
 
1177
  def recv_getAllItemsByStatusInRange(self, ):
1178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1179
    if mtype == TMessageType.EXCEPTION:
1180
      x = TApplicationException()
1181
      x.read(self._iprot)
1182
      self._iprot.readMessageEnd()
1183
      raise x
1184
    result = getAllItemsByStatusInRange_result()
1185
    result.read(self._iprot)
1186
    self._iprot.readMessageEnd()
1187
    if result.success is not None:
1188
      return result.success
1189
    if result.cex is not None:
1190
      raise result.cex
1191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1192
 
1193
  def getItemCountByStatus(self, useStatus, itemStatus):
1194
    """
1195
    Gets a count of all items by status
1196
 
1197
    Parameters:
1198
     - useStatus
1199
     - itemStatus
1200
    """
1201
    self.send_getItemCountByStatus(useStatus, itemStatus)
1202
    return self.recv_getItemCountByStatus()
1203
 
1204
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1205
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1206
    args = getItemCountByStatus_args()
1207
    args.useStatus = useStatus
1208
    args.itemStatus = itemStatus
1209
    args.write(self._oprot)
1210
    self._oprot.writeMessageEnd()
1211
    self._oprot.trans.flush()
1212
 
1213
  def recv_getItemCountByStatus(self, ):
1214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1215
    if mtype == TMessageType.EXCEPTION:
1216
      x = TApplicationException()
1217
      x.read(self._iprot)
1218
      self._iprot.readMessageEnd()
1219
      raise x
1220
    result = getItemCountByStatus_result()
1221
    result.read(self._iprot)
1222
    self._iprot.readMessageEnd()
1223
    if result.success is not None:
1224
      return result.success
1225
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1226
 
1227
  def getBestSellers(self, ):
1228
    self.send_getBestSellers()
1229
    return self.recv_getBestSellers()
1230
 
1231
  def send_getBestSellers(self, ):
1232
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1233
    args = getBestSellers_args()
1234
    args.write(self._oprot)
1235
    self._oprot.writeMessageEnd()
1236
    self._oprot.trans.flush()
1237
 
1238
  def recv_getBestSellers(self, ):
1239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1240
    if mtype == TMessageType.EXCEPTION:
1241
      x = TApplicationException()
1242
      x.read(self._iprot)
1243
      self._iprot.readMessageEnd()
1244
      raise x
1245
    result = getBestSellers_result()
1246
    result.read(self._iprot)
1247
    self._iprot.readMessageEnd()
1248
    if result.success is not None:
1249
      return result.success
1250
    if result.isex is not None:
1251
      raise result.isex
1252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1253
 
1254
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1255
    """
1256
    Parameters:
1257
     - beginIndex
1258
     - totalItems
1259
     - brand
1260
     - category
1261
    """
1262
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1263
    return self.recv_getBestSellersCatalogIds()
1264
 
1265
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1266
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1267
    args = getBestSellersCatalogIds_args()
1268
    args.beginIndex = beginIndex
1269
    args.totalItems = totalItems
1270
    args.brand = brand
1271
    args.category = category
1272
    args.write(self._oprot)
1273
    self._oprot.writeMessageEnd()
1274
    self._oprot.trans.flush()
1275
 
1276
  def recv_getBestSellersCatalogIds(self, ):
1277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1278
    if mtype == TMessageType.EXCEPTION:
1279
      x = TApplicationException()
1280
      x.read(self._iprot)
1281
      self._iprot.readMessageEnd()
1282
      raise x
1283
    result = getBestSellersCatalogIds_result()
1284
    result.read(self._iprot)
1285
    self._iprot.readMessageEnd()
1286
    if result.success is not None:
1287
      return result.success
1288
    if result.cex is not None:
1289
      raise result.cex
1290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1291
 
1292
  def getBestSellersCount(self, ):
1293
    self.send_getBestSellersCount()
1294
    return self.recv_getBestSellersCount()
1295
 
1296
  def send_getBestSellersCount(self, ):
1297
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1298
    args = getBestSellersCount_args()
1299
    args.write(self._oprot)
1300
    self._oprot.writeMessageEnd()
1301
    self._oprot.trans.flush()
1302
 
1303
  def recv_getBestSellersCount(self, ):
1304
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1305
    if mtype == TMessageType.EXCEPTION:
1306
      x = TApplicationException()
1307
      x.read(self._iprot)
1308
      self._iprot.readMessageEnd()
1309
      raise x
1310
    result = getBestSellersCount_result()
1311
    result.read(self._iprot)
1312
    self._iprot.readMessageEnd()
1313
    if result.success is not None:
1314
      return result.success
1315
    if result.cex is not None:
1316
      raise result.cex
1317
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1318
 
1319
  def getBestDeals(self, ):
1320
    self.send_getBestDeals()
1321
    return self.recv_getBestDeals()
1322
 
1323
  def send_getBestDeals(self, ):
1324
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1325
    args = getBestDeals_args()
1326
    args.write(self._oprot)
1327
    self._oprot.writeMessageEnd()
1328
    self._oprot.trans.flush()
1329
 
1330
  def recv_getBestDeals(self, ):
1331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1332
    if mtype == TMessageType.EXCEPTION:
1333
      x = TApplicationException()
1334
      x.read(self._iprot)
1335
      self._iprot.readMessageEnd()
1336
      raise x
1337
    result = getBestDeals_result()
1338
    result.read(self._iprot)
1339
    self._iprot.readMessageEnd()
1340
    if result.success is not None:
1341
      return result.success
1342
    if result.isex is not None:
1343
      raise result.isex
1344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1345
 
1346
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1347
    """
1348
    Parameters:
1349
     - beginIndex
1350
     - totalItems
1351
     - brand
1352
     - category
1353
    """
1354
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1355
    return self.recv_getBestDealsCatalogIds()
1356
 
1357
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1358
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1359
    args = getBestDealsCatalogIds_args()
1360
    args.beginIndex = beginIndex
1361
    args.totalItems = totalItems
1362
    args.brand = brand
1363
    args.category = category
1364
    args.write(self._oprot)
1365
    self._oprot.writeMessageEnd()
1366
    self._oprot.trans.flush()
1367
 
1368
  def recv_getBestDealsCatalogIds(self, ):
1369
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1370
    if mtype == TMessageType.EXCEPTION:
1371
      x = TApplicationException()
1372
      x.read(self._iprot)
1373
      self._iprot.readMessageEnd()
1374
      raise x
1375
    result = getBestDealsCatalogIds_result()
1376
    result.read(self._iprot)
1377
    self._iprot.readMessageEnd()
1378
    if result.success is not None:
1379
      return result.success
1380
    if result.cex is not None:
1381
      raise result.cex
1382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1383
 
1384
  def getBestDealsCount(self, ):
1385
    self.send_getBestDealsCount()
1386
    return self.recv_getBestDealsCount()
1387
 
1388
  def send_getBestDealsCount(self, ):
1389
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1390
    args = getBestDealsCount_args()
1391
    args.write(self._oprot)
1392
    self._oprot.writeMessageEnd()
1393
    self._oprot.trans.flush()
1394
 
1395
  def recv_getBestDealsCount(self, ):
1396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1397
    if mtype == TMessageType.EXCEPTION:
1398
      x = TApplicationException()
1399
      x.read(self._iprot)
1400
      self._iprot.readMessageEnd()
1401
      raise x
1402
    result = getBestDealsCount_result()
1403
    result.read(self._iprot)
1404
    self._iprot.readMessageEnd()
1405
    if result.success is not None:
1406
      return result.success
1407
    if result.cex is not None:
1408
      raise result.cex
1409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1410
 
1411
  def getComingSoon(self, ):
1412
    self.send_getComingSoon()
1413
    return self.recv_getComingSoon()
1414
 
1415
  def send_getComingSoon(self, ):
1416
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1417
    args = getComingSoon_args()
1418
    args.write(self._oprot)
1419
    self._oprot.writeMessageEnd()
1420
    self._oprot.trans.flush()
1421
 
1422
  def recv_getComingSoon(self, ):
1423
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1424
    if mtype == TMessageType.EXCEPTION:
1425
      x = TApplicationException()
1426
      x.read(self._iprot)
1427
      self._iprot.readMessageEnd()
1428
      raise x
1429
    result = getComingSoon_result()
1430
    result.read(self._iprot)
1431
    self._iprot.readMessageEnd()
1432
    if result.success is not None:
1433
      return result.success
1434
    if result.isex is not None:
1435
      raise result.isex
1436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1437
 
1438
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1439
    """
1440
    Parameters:
1441
     - beginIndex
1442
     - totalItems
1443
     - brand
1444
     - category
1445
    """
1446
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1447
    return self.recv_getComingSoonCatalogIds()
1448
 
1449
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1450
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1451
    args = getComingSoonCatalogIds_args()
1452
    args.beginIndex = beginIndex
1453
    args.totalItems = totalItems
1454
    args.brand = brand
1455
    args.category = category
1456
    args.write(self._oprot)
1457
    self._oprot.writeMessageEnd()
1458
    self._oprot.trans.flush()
1459
 
1460
  def recv_getComingSoonCatalogIds(self, ):
1461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1462
    if mtype == TMessageType.EXCEPTION:
1463
      x = TApplicationException()
1464
      x.read(self._iprot)
1465
      self._iprot.readMessageEnd()
1466
      raise x
1467
    result = getComingSoonCatalogIds_result()
1468
    result.read(self._iprot)
1469
    self._iprot.readMessageEnd()
1470
    if result.success is not None:
1471
      return result.success
1472
    if result.cex is not None:
1473
      raise result.cex
1474
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1475
 
1476
  def getComingSoonCount(self, ):
1477
    self.send_getComingSoonCount()
1478
    return self.recv_getComingSoonCount()
1479
 
1480
  def send_getComingSoonCount(self, ):
1481
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1482
    args = getComingSoonCount_args()
1483
    args.write(self._oprot)
1484
    self._oprot.writeMessageEnd()
1485
    self._oprot.trans.flush()
1486
 
1487
  def recv_getComingSoonCount(self, ):
1488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1489
    if mtype == TMessageType.EXCEPTION:
1490
      x = TApplicationException()
1491
      x.read(self._iprot)
1492
      self._iprot.readMessageEnd()
1493
      raise x
1494
    result = getComingSoonCount_result()
1495
    result.read(self._iprot)
1496
    self._iprot.readMessageEnd()
1497
    if result.success is not None:
1498
      return result.success
1499
    if result.cex is not None:
1500
      raise result.cex
1501
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1502
 
1503
  def getLatestArrivals(self, ):
1504
    """
1505
    Returns a list of items sorted in the descending order by start date.
1506
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1507
    """
1508
    self.send_getLatestArrivals()
1509
    return self.recv_getLatestArrivals()
1510
 
1511
  def send_getLatestArrivals(self, ):
1512
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1513
    args = getLatestArrivals_args()
1514
    args.write(self._oprot)
1515
    self._oprot.writeMessageEnd()
1516
    self._oprot.trans.flush()
1517
 
1518
  def recv_getLatestArrivals(self, ):
1519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1520
    if mtype == TMessageType.EXCEPTION:
1521
      x = TApplicationException()
1522
      x.read(self._iprot)
1523
      self._iprot.readMessageEnd()
1524
      raise x
1525
    result = getLatestArrivals_result()
1526
    result.read(self._iprot)
1527
    self._iprot.readMessageEnd()
1528
    if result.success is not None:
1529
      return result.success
1530
    if result.isex is not None:
1531
      raise result.isex
1532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1533
 
1534
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1535
    """
1536
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1537
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1538
 
1539
    Parameters:
1540
     - beginIndex
1541
     - totalItems
1542
     - brand
1543
     - categories
1544
    """
1545
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1546
    return self.recv_getLatestArrivalsCatalogIds()
1547
 
1548
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1549
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1550
    args = getLatestArrivalsCatalogIds_args()
1551
    args.beginIndex = beginIndex
1552
    args.totalItems = totalItems
1553
    args.brand = brand
1554
    args.categories = categories
1555
    args.write(self._oprot)
1556
    self._oprot.writeMessageEnd()
1557
    self._oprot.trans.flush()
1558
 
1559
  def recv_getLatestArrivalsCatalogIds(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 = getLatestArrivalsCatalogIds_result()
1567
    result.read(self._iprot)
1568
    self._iprot.readMessageEnd()
1569
    if result.success is not None:
1570
      return result.success
1571
    if result.cex is not None:
1572
      raise result.cex
1573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1574
 
1575
  def getLatestArrivalsCount(self, ):
1576
    """
1577
    Get the total number of latest arrivals we are willing to show.
1578
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1579
    """
1580
    self.send_getLatestArrivalsCount()
1581
    return self.recv_getLatestArrivalsCount()
1582
 
1583
  def send_getLatestArrivalsCount(self, ):
1584
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1585
    args = getLatestArrivalsCount_args()
1586
    args.write(self._oprot)
1587
    self._oprot.writeMessageEnd()
1588
    self._oprot.trans.flush()
1589
 
1590
  def recv_getLatestArrivalsCount(self, ):
1591
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1592
    if mtype == TMessageType.EXCEPTION:
1593
      x = TApplicationException()
1594
      x.read(self._iprot)
1595
      self._iprot.readMessageEnd()
1596
      raise x
1597
    result = getLatestArrivalsCount_result()
1598
    result.read(self._iprot)
1599
    self._iprot.readMessageEnd()
1600
    if result.success is not None:
1601
      return result.success
1602
    if result.cex is not None:
1603
      raise result.cex
1604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1605
 
1606
  def generateNewEntityID(self, ):
1607
    self.send_generateNewEntityID()
1608
    return self.recv_generateNewEntityID()
1609
 
1610
  def send_generateNewEntityID(self, ):
1611
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1612
    args = generateNewEntityID_args()
1613
    args.write(self._oprot)
1614
    self._oprot.writeMessageEnd()
1615
    self._oprot.trans.flush()
1616
 
1617
  def recv_generateNewEntityID(self, ):
1618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1619
    if mtype == TMessageType.EXCEPTION:
1620
      x = TApplicationException()
1621
      x.read(self._iprot)
1622
      self._iprot.readMessageEnd()
1623
      raise x
1624
    result = generateNewEntityID_result()
1625
    result.read(self._iprot)
1626
    self._iprot.readMessageEnd()
1627
    if result.success is not None:
1628
      return result.success
1629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1630
 
1631
  def addCategory(self, category):
1632
    """
1633
    All category related functions
1634
 
1635
    Parameters:
1636
     - category
1637
    """
1638
    self.send_addCategory(category)
1639
    return self.recv_addCategory()
1640
 
1641
  def send_addCategory(self, category):
1642
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1643
    args = addCategory_args()
1644
    args.category = category
1645
    args.write(self._oprot)
1646
    self._oprot.writeMessageEnd()
1647
    self._oprot.trans.flush()
1648
 
1649
  def recv_addCategory(self, ):
1650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1651
    if mtype == TMessageType.EXCEPTION:
1652
      x = TApplicationException()
1653
      x.read(self._iprot)
1654
      self._iprot.readMessageEnd()
1655
      raise x
1656
    result = addCategory_result()
1657
    result.read(self._iprot)
1658
    self._iprot.readMessageEnd()
1659
    if result.success is not None:
1660
      return result.success
1661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1662
 
1663
  def getCategory(self, id):
1664
    """
1665
    Parameters:
1666
     - id
1667
    """
1668
    self.send_getCategory(id)
1669
    return self.recv_getCategory()
1670
 
1671
  def send_getCategory(self, id):
1672
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1673
    args = getCategory_args()
1674
    args.id = id
1675
    args.write(self._oprot)
1676
    self._oprot.writeMessageEnd()
1677
    self._oprot.trans.flush()
1678
 
1679
  def recv_getCategory(self, ):
1680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1681
    if mtype == TMessageType.EXCEPTION:
1682
      x = TApplicationException()
1683
      x.read(self._iprot)
1684
      self._iprot.readMessageEnd()
1685
      raise x
1686
    result = getCategory_result()
1687
    result.read(self._iprot)
1688
    self._iprot.readMessageEnd()
1689
    if result.success is not None:
1690
      return result.success
1691
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1692
 
1693
  def getAllCategories(self, ):
1694
    self.send_getAllCategories()
1695
    return self.recv_getAllCategories()
1696
 
1697
  def send_getAllCategories(self, ):
1698
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1699
    args = getAllCategories_args()
1700
    args.write(self._oprot)
1701
    self._oprot.writeMessageEnd()
1702
    self._oprot.trans.flush()
1703
 
1704
  def recv_getAllCategories(self, ):
1705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1706
    if mtype == TMessageType.EXCEPTION:
1707
      x = TApplicationException()
1708
      x.read(self._iprot)
1709
      self._iprot.readMessageEnd()
1710
      raise x
1711
    result = getAllCategories_result()
1712
    result.read(self._iprot)
1713
    self._iprot.readMessageEnd()
1714
    if result.success is not None:
1715
      return result.success
1716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1717
 
1718
  def getAllSimilarItems(self, itemId):
1719
    """
1720
    Returns the list of similar items.
1721
 
1722
    Parameters:
1723
     - itemId
1724
    """
1725
    self.send_getAllSimilarItems(itemId)
1726
    return self.recv_getAllSimilarItems()
1727
 
1728
  def send_getAllSimilarItems(self, itemId):
1729
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1730
    args = getAllSimilarItems_args()
1731
    args.itemId = itemId
1732
    args.write(self._oprot)
1733
    self._oprot.writeMessageEnd()
1734
    self._oprot.trans.flush()
1735
 
1736
  def recv_getAllSimilarItems(self, ):
1737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1738
    if mtype == TMessageType.EXCEPTION:
1739
      x = TApplicationException()
1740
      x.read(self._iprot)
1741
      self._iprot.readMessageEnd()
1742
      raise x
1743
    result = getAllSimilarItems_result()
1744
    result.read(self._iprot)
1745
    self._iprot.readMessageEnd()
1746
    if result.success is not None:
1747
      return result.success
1748
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1749
 
1750
  def addSimilarItem(self, itemId, catalogItemId):
1751
    """
1752
    Adds similar item.
1753
 
1754
    Parameters:
1755
     - itemId
1756
     - catalogItemId
1757
    """
1758
    self.send_addSimilarItem(itemId, catalogItemId)
1759
    return self.recv_addSimilarItem()
1760
 
1761
  def send_addSimilarItem(self, itemId, catalogItemId):
1762
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1763
    args = addSimilarItem_args()
1764
    args.itemId = itemId
1765
    args.catalogItemId = catalogItemId
1766
    args.write(self._oprot)
1767
    self._oprot.writeMessageEnd()
1768
    self._oprot.trans.flush()
1769
 
1770
  def recv_addSimilarItem(self, ):
1771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1772
    if mtype == TMessageType.EXCEPTION:
1773
      x = TApplicationException()
1774
      x.read(self._iprot)
1775
      self._iprot.readMessageEnd()
1776
      raise x
1777
    result = addSimilarItem_result()
1778
    result.read(self._iprot)
1779
    self._iprot.readMessageEnd()
1780
    if result.success is not None:
1781
      return result.success
1782
    if result.cex is not None:
1783
      raise result.cex
1784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1785
 
6512 kshitij.so 1786
  def addTag(self, displayName, itemId):
1787
    """
1788
    Tag Related
1789
 
1790
    Parameters:
1791
     - displayName
1792
     - itemId
1793
    """
1794
    self.send_addTag(displayName, itemId)
1795
    return self.recv_addTag()
1796
 
1797
  def send_addTag(self, displayName, itemId):
1798
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1799
    args = addTag_args()
1800
    args.displayName = displayName
1801
    args.itemId = itemId
1802
    args.write(self._oprot)
1803
    self._oprot.writeMessageEnd()
1804
    self._oprot.trans.flush()
1805
 
1806
  def recv_addTag(self, ):
1807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1808
    if mtype == TMessageType.EXCEPTION:
1809
      x = TApplicationException()
1810
      x.read(self._iprot)
1811
      self._iprot.readMessageEnd()
1812
      raise x
1813
    result = addTag_result()
1814
    result.read(self._iprot)
1815
    self._iprot.readMessageEnd()
1816
    if result.success is not None:
1817
      return result.success
1818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1819
 
1820
  def deleteEntityTag(self, displayName, itemId):
1821
    """
1822
    Parameters:
1823
     - displayName
1824
     - itemId
1825
    """
1826
    self.send_deleteEntityTag(displayName, itemId)
1827
    return self.recv_deleteEntityTag()
1828
 
1829
  def send_deleteEntityTag(self, displayName, itemId):
1830
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1831
    args = deleteEntityTag_args()
1832
    args.displayName = displayName
1833
    args.itemId = itemId
1834
    args.write(self._oprot)
1835
    self._oprot.writeMessageEnd()
1836
    self._oprot.trans.flush()
1837
 
1838
  def recv_deleteEntityTag(self, ):
1839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1840
    if mtype == TMessageType.EXCEPTION:
1841
      x = TApplicationException()
1842
      x.read(self._iprot)
1843
      self._iprot.readMessageEnd()
1844
      raise x
1845
    result = deleteEntityTag_result()
1846
    result.read(self._iprot)
1847
    self._iprot.readMessageEnd()
1848
    if result.success is not None:
1849
      return result.success
1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1851
 
1852
  def deleteTag(self, displayName):
1853
    """
1854
    Parameters:
1855
     - displayName
1856
    """
1857
    self.send_deleteTag(displayName)
1858
    return self.recv_deleteTag()
1859
 
1860
  def send_deleteTag(self, displayName):
1861
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1862
    args = deleteTag_args()
1863
    args.displayName = displayName
1864
    args.write(self._oprot)
1865
    self._oprot.writeMessageEnd()
1866
    self._oprot.trans.flush()
1867
 
1868
  def recv_deleteTag(self, ):
1869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1870
    if mtype == TMessageType.EXCEPTION:
1871
      x = TApplicationException()
1872
      x.read(self._iprot)
1873
      self._iprot.readMessageEnd()
1874
      raise x
1875
    result = deleteTag_result()
1876
    result.read(self._iprot)
1877
    self._iprot.readMessageEnd()
1878
    if result.success is not None:
1879
      return result.success
1880
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1881
 
1882
  def getAllTags(self, ):
1883
    self.send_getAllTags()
1884
    return self.recv_getAllTags()
1885
 
1886
  def send_getAllTags(self, ):
1887
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1888
    args = getAllTags_args()
1889
    args.write(self._oprot)
1890
    self._oprot.writeMessageEnd()
1891
    self._oprot.trans.flush()
1892
 
1893
  def recv_getAllTags(self, ):
1894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1895
    if mtype == TMessageType.EXCEPTION:
1896
      x = TApplicationException()
1897
      x.read(self._iprot)
1898
      self._iprot.readMessageEnd()
1899
      raise x
1900
    result = getAllTags_result()
1901
    result.read(self._iprot)
1902
    self._iprot.readMessageEnd()
1903
    if result.success is not None:
1904
      return result.success
1905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1906
 
1907
  def getAllEntitiesByTagName(self, displayName):
1908
    """
1909
    Parameters:
1910
     - displayName
1911
    """
1912
    self.send_getAllEntitiesByTagName(displayName)
1913
    return self.recv_getAllEntitiesByTagName()
1914
 
1915
  def send_getAllEntitiesByTagName(self, displayName):
1916
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1917
    args = getAllEntitiesByTagName_args()
1918
    args.displayName = displayName
1919
    args.write(self._oprot)
1920
    self._oprot.writeMessageEnd()
1921
    self._oprot.trans.flush()
1922
 
1923
  def recv_getAllEntitiesByTagName(self, ):
1924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1925
    if mtype == TMessageType.EXCEPTION:
1926
      x = TApplicationException()
1927
      x.read(self._iprot)
1928
      self._iprot.readMessageEnd()
1929
      raise x
1930
    result = getAllEntitiesByTagName_result()
1931
    result.read(self._iprot)
1932
    self._iprot.readMessageEnd()
1933
    if result.success is not None:
1934
      return result.success
1935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1936
 
6845 amit.gupta 1937
  def getAllEntityTags(self, ):
1938
    self.send_getAllEntityTags()
1939
    return self.recv_getAllEntityTags()
1940
 
1941
  def send_getAllEntityTags(self, ):
1942
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1943
    args = getAllEntityTags_args()
1944
    args.write(self._oprot)
1945
    self._oprot.writeMessageEnd()
1946
    self._oprot.trans.flush()
1947
 
1948
  def recv_getAllEntityTags(self, ):
1949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1950
    if mtype == TMessageType.EXCEPTION:
1951
      x = TApplicationException()
1952
      x.read(self._iprot)
1953
      self._iprot.readMessageEnd()
1954
      raise x
1955
    result = getAllEntityTags_result()
1956
    result.read(self._iprot)
1957
    self._iprot.readMessageEnd()
1958
    if result.success is not None:
1959
      return result.success
1960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1961
 
6850 kshitij.so 1962
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1963
    """
1964
    Parameters:
1965
     - bannerName
1966
     - imageName
1967
     - link
1968
     - priority
1969
     - isActive
1970
     - hasMap
1971
    """
1972
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1973
    return self.recv_addBanner()
1974
 
1975
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1976
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1977
    args = addBanner_args()
1978
    args.bannerName = bannerName
1979
    args.imageName = imageName
1980
    args.link = link
1981
    args.priority = priority
1982
    args.isActive = isActive
1983
    args.hasMap = hasMap
1984
    args.write(self._oprot)
1985
    self._oprot.writeMessageEnd()
1986
    self._oprot.trans.flush()
1987
 
1988
  def recv_addBanner(self, ):
1989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1990
    if mtype == TMessageType.EXCEPTION:
1991
      x = TApplicationException()
1992
      x.read(self._iprot)
1993
      self._iprot.readMessageEnd()
1994
      raise x
1995
    result = addBanner_result()
1996
    result.read(self._iprot)
1997
    self._iprot.readMessageEnd()
1998
    if result.success is not None:
1999
      return result.success
2000
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
2001
 
2002
  def getAllBanners(self, ):
2003
    self.send_getAllBanners()
2004
    return self.recv_getAllBanners()
2005
 
2006
  def send_getAllBanners(self, ):
2007
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2008
    args = getAllBanners_args()
2009
    args.write(self._oprot)
2010
    self._oprot.writeMessageEnd()
2011
    self._oprot.trans.flush()
2012
 
2013
  def recv_getAllBanners(self, ):
2014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2015
    if mtype == TMessageType.EXCEPTION:
2016
      x = TApplicationException()
2017
      x.read(self._iprot)
2018
      self._iprot.readMessageEnd()
2019
      raise x
2020
    result = getAllBanners_result()
2021
    result.read(self._iprot)
2022
    self._iprot.readMessageEnd()
2023
    if result.success is not None:
2024
      return result.success
2025
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2026
 
2027
  def deleteBanner(self, bannerName):
2028
    """
2029
    Parameters:
2030
     - bannerName
2031
    """
2032
    self.send_deleteBanner(bannerName)
2033
    return self.recv_deleteBanner()
2034
 
2035
  def send_deleteBanner(self, bannerName):
2036
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2037
    args = deleteBanner_args()
2038
    args.bannerName = bannerName
2039
    args.write(self._oprot)
2040
    self._oprot.writeMessageEnd()
2041
    self._oprot.trans.flush()
2042
 
2043
  def recv_deleteBanner(self, ):
2044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2045
    if mtype == TMessageType.EXCEPTION:
2046
      x = TApplicationException()
2047
      x.read(self._iprot)
2048
      self._iprot.readMessageEnd()
2049
      raise x
2050
    result = deleteBanner_result()
2051
    result.read(self._iprot)
2052
    self._iprot.readMessageEnd()
2053
    if result.success is not None:
2054
      return result.success
2055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2056
 
2057
  def getBannerDetails(self, bannerName):
2058
    """
2059
    Parameters:
2060
     - bannerName
2061
    """
2062
    self.send_getBannerDetails(bannerName)
2063
    return self.recv_getBannerDetails()
2064
 
2065
  def send_getBannerDetails(self, bannerName):
2066
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2067
    args = getBannerDetails_args()
2068
    args.bannerName = bannerName
2069
    args.write(self._oprot)
2070
    self._oprot.writeMessageEnd()
2071
    self._oprot.trans.flush()
2072
 
2073
  def recv_getBannerDetails(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 = getBannerDetails_result()
2081
    result.read(self._iprot)
2082
    self._iprot.readMessageEnd()
2083
    if result.success is not None:
2084
      return result.success
2085
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2086
 
2087
  def getActiveBanners(self, ):
2088
    self.send_getActiveBanners()
2089
    return self.recv_getActiveBanners()
2090
 
2091
  def send_getActiveBanners(self, ):
2092
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2093
    args = getActiveBanners_args()
2094
    args.write(self._oprot)
2095
    self._oprot.writeMessageEnd()
2096
    self._oprot.trans.flush()
2097
 
2098
  def recv_getActiveBanners(self, ):
2099
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2100
    if mtype == TMessageType.EXCEPTION:
2101
      x = TApplicationException()
2102
      x.read(self._iprot)
2103
      self._iprot.readMessageEnd()
2104
      raise x
2105
    result = getActiveBanners_result()
2106
    result.read(self._iprot)
2107
    self._iprot.readMessageEnd()
2108
    if result.success is not None:
2109
      return result.success
2110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2111
 
6849 kshitij.so 2112
  def addBannerMap(self, bannerName, mapLink, coordinates):
2113
    """
2114
    Parameters:
2115
     - bannerName
2116
     - mapLink
2117
     - coordinates
2118
    """
2119
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2120
    return self.recv_addBannerMap()
2121
 
2122
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2123
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2124
    args = addBannerMap_args()
2125
    args.bannerName = bannerName
2126
    args.mapLink = mapLink
2127
    args.coordinates = coordinates
2128
    args.write(self._oprot)
2129
    self._oprot.writeMessageEnd()
2130
    self._oprot.trans.flush()
2131
 
2132
  def recv_addBannerMap(self, ):
2133
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2134
    if mtype == TMessageType.EXCEPTION:
2135
      x = TApplicationException()
2136
      x.read(self._iprot)
2137
      self._iprot.readMessageEnd()
2138
      raise x
2139
    result = addBannerMap_result()
2140
    result.read(self._iprot)
2141
    self._iprot.readMessageEnd()
2142
    if result.success is not None:
2143
      return result.success
2144
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2145
 
2146
  def deleteBannerMap(self, bannerName):
2147
    """
2148
    Parameters:
2149
     - bannerName
2150
    """
2151
    self.send_deleteBannerMap(bannerName)
2152
    return self.recv_deleteBannerMap()
2153
 
2154
  def send_deleteBannerMap(self, bannerName):
2155
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2156
    args = deleteBannerMap_args()
2157
    args.bannerName = bannerName
2158
    args.write(self._oprot)
2159
    self._oprot.writeMessageEnd()
2160
    self._oprot.trans.flush()
2161
 
2162
  def recv_deleteBannerMap(self, ):
2163
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2164
    if mtype == TMessageType.EXCEPTION:
2165
      x = TApplicationException()
2166
      x.read(self._iprot)
2167
      self._iprot.readMessageEnd()
2168
      raise x
2169
    result = deleteBannerMap_result()
2170
    result.read(self._iprot)
2171
    self._iprot.readMessageEnd()
2172
    if result.success is not None:
2173
      return result.success
2174
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2175
 
2176
  def getBannerMapDetails(self, bannerName):
2177
    """
2178
    Parameters:
2179
     - bannerName
2180
    """
2181
    self.send_getBannerMapDetails(bannerName)
2182
    return self.recv_getBannerMapDetails()
2183
 
2184
  def send_getBannerMapDetails(self, bannerName):
2185
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2186
    args = getBannerMapDetails_args()
2187
    args.bannerName = bannerName
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_getBannerMapDetails(self, ):
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2194
    if mtype == TMessageType.EXCEPTION:
2195
      x = TApplicationException()
2196
      x.read(self._iprot)
2197
      self._iprot.readMessageEnd()
2198
      raise x
2199
    result = getBannerMapDetails_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    if result.success is not None:
2203
      return result.success
2204
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2205
 
5944 mandeep.dh 2206
  def deleteSimilarItem(self, itemId, catalogItemId):
2207
    """
2208
    Delete similar item.
2209
 
2210
    Parameters:
2211
     - itemId
2212
     - catalogItemId
2213
    """
2214
    self.send_deleteSimilarItem(itemId, catalogItemId)
2215
    return self.recv_deleteSimilarItem()
2216
 
2217
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2218
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2219
    args = deleteSimilarItem_args()
2220
    args.itemId = itemId
2221
    args.catalogItemId = catalogItemId
2222
    args.write(self._oprot)
2223
    self._oprot.writeMessageEnd()
2224
    self._oprot.trans.flush()
2225
 
2226
  def recv_deleteSimilarItem(self, ):
2227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2228
    if mtype == TMessageType.EXCEPTION:
2229
      x = TApplicationException()
2230
      x.read(self._iprot)
2231
      self._iprot.readMessageEnd()
2232
      raise x
2233
    result = deleteSimilarItem_result()
2234
    result.read(self._iprot)
2235
    self._iprot.readMessageEnd()
2236
    if result.success is not None:
2237
      return result.success
2238
    if result.cex is not None:
2239
      raise result.cex
2240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2241
 
2242
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2243
    """
2244
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2245
    If yes, returns the itemId else returns 0
2246
 
2247
    Parameters:
2248
     - brand
2249
     - modelNumber
2250
     - modelName
2251
     - color
2252
    """
2253
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2254
    return self.recv_checkSimilarItem()
2255
 
2256
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2257
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2258
    args = checkSimilarItem_args()
2259
    args.brand = brand
2260
    args.modelNumber = modelNumber
2261
    args.modelName = modelName
2262
    args.color = color
2263
    args.write(self._oprot)
2264
    self._oprot.writeMessageEnd()
2265
    self._oprot.trans.flush()
2266
 
2267
  def recv_checkSimilarItem(self, ):
2268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2269
    if mtype == TMessageType.EXCEPTION:
2270
      x = TApplicationException()
2271
      x.read(self._iprot)
2272
      self._iprot.readMessageEnd()
2273
      raise x
2274
    result = checkSimilarItem_result()
2275
    result.read(self._iprot)
2276
    self._iprot.readMessageEnd()
2277
    if result.success is not None:
2278
      return result.success
2279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2280
 
2281
  def validateRiskyStatus(self, itemId):
2282
    """
2283
    Check wether item is risky and change status if inventory is not available for risky items
2284
 
2285
    Parameters:
2286
     - itemId
2287
    """
2288
    self.send_validateRiskyStatus(itemId)
2289
    self.recv_validateRiskyStatus()
2290
 
2291
  def send_validateRiskyStatus(self, itemId):
2292
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2293
    args = validateRiskyStatus_args()
2294
    args.itemId = itemId
2295
    args.write(self._oprot)
2296
    self._oprot.writeMessageEnd()
2297
    self._oprot.trans.flush()
2298
 
2299
  def recv_validateRiskyStatus(self, ):
2300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2301
    if mtype == TMessageType.EXCEPTION:
2302
      x = TApplicationException()
2303
      x.read(self._iprot)
2304
      self._iprot.readMessageEnd()
2305
      raise x
2306
    result = validateRiskyStatus_result()
2307
    result.read(self._iprot)
2308
    self._iprot.readMessageEnd()
2309
    return
2310
 
2311
  def changeItemRiskyFlag(self, itemId, risky):
2312
    """
2313
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2314
 
2315
    Parameters:
2316
     - itemId
2317
     - risky
2318
    """
2319
    self.send_changeItemRiskyFlag(itemId, risky)
2320
    self.recv_changeItemRiskyFlag()
2321
 
2322
  def send_changeItemRiskyFlag(self, itemId, risky):
2323
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2324
    args = changeItemRiskyFlag_args()
2325
    args.itemId = itemId
2326
    args.risky = risky
2327
    args.write(self._oprot)
2328
    self._oprot.writeMessageEnd()
2329
    self._oprot.trans.flush()
2330
 
2331
  def recv_changeItemRiskyFlag(self, ):
2332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2333
    if mtype == TMessageType.EXCEPTION:
2334
      x = TApplicationException()
2335
      x.read(self._iprot)
2336
      self._iprot.readMessageEnd()
2337
      raise x
2338
    result = changeItemRiskyFlag_result()
2339
    result.read(self._iprot)
2340
    self._iprot.readMessageEnd()
2341
    return
2342
 
2343
  def getItemsByRiskyFlag(self, ):
2344
    """
2345
    Returns list of items marked as risky.
2346
    """
2347
    self.send_getItemsByRiskyFlag()
2348
    return self.recv_getItemsByRiskyFlag()
2349
 
2350
  def send_getItemsByRiskyFlag(self, ):
2351
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2352
    args = getItemsByRiskyFlag_args()
2353
    args.write(self._oprot)
2354
    self._oprot.writeMessageEnd()
2355
    self._oprot.trans.flush()
2356
 
2357
  def recv_getItemsByRiskyFlag(self, ):
2358
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2359
    if mtype == TMessageType.EXCEPTION:
2360
      x = TApplicationException()
2361
      x.read(self._iprot)
2362
      self._iprot.readMessageEnd()
2363
      raise x
2364
    result = getItemsByRiskyFlag_result()
2365
    result.read(self._iprot)
2366
    self._iprot.readMessageEnd()
2367
    if result.success is not None:
2368
      return result.success
2369
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2370
 
2371
  def getItemsForMasterSheet(self, category, brand):
2372
    """
2373
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2374
 
2375
    Parameters:
2376
     - category
2377
     - brand
2378
    """
2379
    self.send_getItemsForMasterSheet(category, brand)
2380
    return self.recv_getItemsForMasterSheet()
2381
 
2382
  def send_getItemsForMasterSheet(self, category, brand):
2383
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2384
    args = getItemsForMasterSheet_args()
2385
    args.category = category
2386
    args.brand = brand
2387
    args.write(self._oprot)
2388
    self._oprot.writeMessageEnd()
2389
    self._oprot.trans.flush()
2390
 
2391
  def recv_getItemsForMasterSheet(self, ):
2392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2393
    if mtype == TMessageType.EXCEPTION:
2394
      x = TApplicationException()
2395
      x.read(self._iprot)
2396
      self._iprot.readMessageEnd()
2397
      raise x
2398
    result = getItemsForMasterSheet_result()
2399
    result.read(self._iprot)
2400
    self._iprot.readMessageEnd()
2401
    if result.success is not None:
2402
      return result.success
2403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2404
 
2405
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2406
    """
2407
    Returns list of catalog ids of items with same similarity index as of the given itemId
2408
 
2409
    Parameters:
2410
     - beginIndex
2411
     - totalItems
2412
     - itemId
2413
    """
2414
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2415
    return self.recv_getSimilarItemsCatalogIds()
2416
 
2417
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2418
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2419
    args = getSimilarItemsCatalogIds_args()
2420
    args.beginIndex = beginIndex
2421
    args.totalItems = totalItems
2422
    args.itemId = itemId
2423
    args.write(self._oprot)
2424
    self._oprot.writeMessageEnd()
2425
    self._oprot.trans.flush()
2426
 
2427
  def recv_getSimilarItemsCatalogIds(self, ):
2428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2429
    if mtype == TMessageType.EXCEPTION:
2430
      x = TApplicationException()
2431
      x.read(self._iprot)
2432
      self._iprot.readMessageEnd()
2433
      raise x
2434
    result = getSimilarItemsCatalogIds_result()
2435
    result.read(self._iprot)
2436
    self._iprot.readMessageEnd()
2437
    if result.success is not None:
2438
      return result.success
2439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2440
 
2441
  def addProductNotification(self, itemId, email):
2442
    """
2443
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2444
 
2445
    Parameters:
2446
     - itemId
2447
     - email
2448
    """
2449
    self.send_addProductNotification(itemId, email)
2450
    return self.recv_addProductNotification()
2451
 
2452
  def send_addProductNotification(self, itemId, email):
2453
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2454
    args = addProductNotification_args()
2455
    args.itemId = itemId
2456
    args.email = email
2457
    args.write(self._oprot)
2458
    self._oprot.writeMessageEnd()
2459
    self._oprot.trans.flush()
2460
 
2461
  def recv_addProductNotification(self, ):
2462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2463
    if mtype == TMessageType.EXCEPTION:
2464
      x = TApplicationException()
2465
      x.read(self._iprot)
2466
      self._iprot.readMessageEnd()
2467
      raise x
2468
    result = addProductNotification_result()
2469
    result.read(self._iprot)
2470
    self._iprot.readMessageEnd()
2471
    if result.success is not None:
2472
      return result.success
2473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2474
 
2475
  def sendProductNotifications(self, ):
2476
    """
2477
    Send the product notifications to the users for items which has stock.
2478
    """
2479
    self.send_sendProductNotifications()
2480
    return self.recv_sendProductNotifications()
2481
 
2482
  def send_sendProductNotifications(self, ):
2483
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2484
    args = sendProductNotifications_args()
2485
    args.write(self._oprot)
2486
    self._oprot.writeMessageEnd()
2487
    self._oprot.trans.flush()
2488
 
2489
  def recv_sendProductNotifications(self, ):
2490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2491
    if mtype == TMessageType.EXCEPTION:
2492
      x = TApplicationException()
2493
      x.read(self._iprot)
2494
      self._iprot.readMessageEnd()
2495
      raise x
2496
    result = sendProductNotifications_result()
2497
    result.read(self._iprot)
2498
    self._iprot.readMessageEnd()
2499
    if result.success is not None:
2500
      return result.success
2501
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2502
 
2503
  def getAllBrandsByCategory(self, categoryId):
2504
    """
2505
    Returns list of brand names for a given category Id
2506
 
2507
    Parameters:
2508
     - categoryId
2509
    """
2510
    self.send_getAllBrandsByCategory(categoryId)
2511
    return self.recv_getAllBrandsByCategory()
2512
 
2513
  def send_getAllBrandsByCategory(self, categoryId):
2514
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2515
    args = getAllBrandsByCategory_args()
2516
    args.categoryId = categoryId
2517
    args.write(self._oprot)
2518
    self._oprot.writeMessageEnd()
2519
    self._oprot.trans.flush()
2520
 
2521
  def recv_getAllBrandsByCategory(self, ):
2522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2523
    if mtype == TMessageType.EXCEPTION:
2524
      x = TApplicationException()
2525
      x.read(self._iprot)
2526
      self._iprot.readMessageEnd()
2527
      raise x
2528
    result = getAllBrandsByCategory_result()
2529
    result.read(self._iprot)
2530
    self._iprot.readMessageEnd()
2531
    if result.success is not None:
2532
      return result.success
2533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2534
 
2535
  def getAllBrands(self, ):
2536
    """
2537
    Returns list of brand names
2538
    """
2539
    self.send_getAllBrands()
2540
    return self.recv_getAllBrands()
2541
 
2542
  def send_getAllBrands(self, ):
2543
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2544
    args = getAllBrands_args()
2545
    args.write(self._oprot)
2546
    self._oprot.writeMessageEnd()
2547
    self._oprot.trans.flush()
2548
 
2549
  def recv_getAllBrands(self, ):
2550
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2551
    if mtype == TMessageType.EXCEPTION:
2552
      x = TApplicationException()
2553
      x.read(self._iprot)
2554
      self._iprot.readMessageEnd()
2555
      raise x
2556
    result = getAllBrands_result()
2557
    result.read(self._iprot)
2558
    self._iprot.readMessageEnd()
2559
    if result.success is not None:
2560
      return result.success
2561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2562
 
2563
  def getAllSources(self, ):
2564
    """
2565
    Return list of all sources
2566
    """
2567
    self.send_getAllSources()
2568
    return self.recv_getAllSources()
2569
 
2570
  def send_getAllSources(self, ):
2571
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2572
    args = getAllSources_args()
2573
    args.write(self._oprot)
2574
    self._oprot.writeMessageEnd()
2575
    self._oprot.trans.flush()
2576
 
2577
  def recv_getAllSources(self, ):
2578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2579
    if mtype == TMessageType.EXCEPTION:
2580
      x = TApplicationException()
2581
      x.read(self._iprot)
2582
      self._iprot.readMessageEnd()
2583
      raise x
2584
    result = getAllSources_result()
2585
    result.read(self._iprot)
2586
    self._iprot.readMessageEnd()
2587
    if result.success is not None:
2588
      return result.success
2589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2590
 
2591
  def getItemPricingBySource(self, itemId, sourceId):
2592
    """
2593
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2594
 
2595
    Parameters:
2596
     - itemId
2597
     - sourceId
2598
    """
2599
    self.send_getItemPricingBySource(itemId, sourceId)
2600
    return self.recv_getItemPricingBySource()
2601
 
2602
  def send_getItemPricingBySource(self, itemId, sourceId):
2603
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2604
    args = getItemPricingBySource_args()
2605
    args.itemId = itemId
2606
    args.sourceId = sourceId
2607
    args.write(self._oprot)
2608
    self._oprot.writeMessageEnd()
2609
    self._oprot.trans.flush()
2610
 
2611
  def recv_getItemPricingBySource(self, ):
2612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2613
    if mtype == TMessageType.EXCEPTION:
2614
      x = TApplicationException()
2615
      x.read(self._iprot)
2616
      self._iprot.readMessageEnd()
2617
      raise x
2618
    result = getItemPricingBySource_result()
2619
    result.read(self._iprot)
2620
    self._iprot.readMessageEnd()
2621
    if result.success is not None:
2622
      return result.success
2623
    if result.cex is not None:
2624
      raise result.cex
2625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2626
 
2627
  def addSourceItemPricing(self, sourceItemPricing):
2628
    """
2629
    Adds prices to be displayed corresponding to the item if user comes from a source.
2630
    If item is not found or source is not found, it will throw exception.
2631
 
2632
    Parameters:
2633
     - sourceItemPricing
2634
    """
2635
    self.send_addSourceItemPricing(sourceItemPricing)
2636
    self.recv_addSourceItemPricing()
2637
 
2638
  def send_addSourceItemPricing(self, sourceItemPricing):
2639
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2640
    args = addSourceItemPricing_args()
2641
    args.sourceItemPricing = sourceItemPricing
2642
    args.write(self._oprot)
2643
    self._oprot.writeMessageEnd()
2644
    self._oprot.trans.flush()
2645
 
2646
  def recv_addSourceItemPricing(self, ):
2647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2648
    if mtype == TMessageType.EXCEPTION:
2649
      x = TApplicationException()
2650
      x.read(self._iprot)
2651
      self._iprot.readMessageEnd()
2652
      raise x
2653
    result = addSourceItemPricing_result()
2654
    result.read(self._iprot)
2655
    self._iprot.readMessageEnd()
2656
    if result.cex is not None:
2657
      raise result.cex
2658
    return
2659
 
2660
  def getAllSourcePricing(self, itemId):
2661
    """
2662
    Returns the list of source pricing information of an item.
2663
    Raises an exception if item not found corresponding to itemId
2664
 
2665
    Parameters:
2666
     - itemId
2667
    """
2668
    self.send_getAllSourcePricing(itemId)
2669
    return self.recv_getAllSourcePricing()
2670
 
2671
  def send_getAllSourcePricing(self, itemId):
2672
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2673
    args = getAllSourcePricing_args()
2674
    args.itemId = itemId
2675
    args.write(self._oprot)
2676
    self._oprot.writeMessageEnd()
2677
    self._oprot.trans.flush()
2678
 
2679
  def recv_getAllSourcePricing(self, ):
2680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2681
    if mtype == TMessageType.EXCEPTION:
2682
      x = TApplicationException()
2683
      x.read(self._iprot)
2684
      self._iprot.readMessageEnd()
2685
      raise x
2686
    result = getAllSourcePricing_result()
2687
    result.read(self._iprot)
2688
    self._iprot.readMessageEnd()
2689
    if result.success is not None:
2690
      return result.success
2691
    if result.cex is not None:
2692
      raise result.cex
2693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2694
 
2695
  def getItemForSource(self, item_id, sourceId):
2696
    """
2697
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2698
 
2699
    Parameters:
2700
     - item_id
2701
     - sourceId
2702
    """
2703
    self.send_getItemForSource(item_id, sourceId)
2704
    return self.recv_getItemForSource()
2705
 
2706
  def send_getItemForSource(self, item_id, sourceId):
2707
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2708
    args = getItemForSource_args()
2709
    args.item_id = item_id
2710
    args.sourceId = sourceId
2711
    args.write(self._oprot)
2712
    self._oprot.writeMessageEnd()
2713
    self._oprot.trans.flush()
2714
 
2715
  def recv_getItemForSource(self, ):
2716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2717
    if mtype == TMessageType.EXCEPTION:
2718
      x = TApplicationException()
2719
      x.read(self._iprot)
2720
      self._iprot.readMessageEnd()
2721
      raise x
2722
    result = getItemForSource_result()
2723
    result.read(self._iprot)
2724
    self._iprot.readMessageEnd()
2725
    if result.success is not None:
2726
      return result.success
2727
    if result.cex is not None:
2728
      raise result.cex
2729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2730
 
2731
  def searchItemsInRange(self, searchTerms, offset, limit):
2732
    """
2733
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2734
 
2735
    Parameters:
2736
     - searchTerms
2737
     - offset
2738
     - limit
2739
    """
2740
    self.send_searchItemsInRange(searchTerms, offset, limit)
2741
    return self.recv_searchItemsInRange()
2742
 
2743
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2744
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2745
    args = searchItemsInRange_args()
2746
    args.searchTerms = searchTerms
2747
    args.offset = offset
2748
    args.limit = limit
2749
    args.write(self._oprot)
2750
    self._oprot.writeMessageEnd()
2751
    self._oprot.trans.flush()
2752
 
2753
  def recv_searchItemsInRange(self, ):
2754
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2755
    if mtype == TMessageType.EXCEPTION:
2756
      x = TApplicationException()
2757
      x.read(self._iprot)
2758
      self._iprot.readMessageEnd()
2759
      raise x
2760
    result = searchItemsInRange_result()
2761
    result.read(self._iprot)
2762
    self._iprot.readMessageEnd()
2763
    if result.success is not None:
2764
      return result.success
2765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2766
 
2767
  def getSearchResultCount(self, searchTerms):
2768
    """
2769
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2770
 
2771
    Parameters:
2772
     - searchTerms
2773
    """
2774
    self.send_getSearchResultCount(searchTerms)
2775
    return self.recv_getSearchResultCount()
2776
 
2777
  def send_getSearchResultCount(self, searchTerms):
2778
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2779
    args = getSearchResultCount_args()
2780
    args.searchTerms = searchTerms
2781
    args.write(self._oprot)
2782
    self._oprot.writeMessageEnd()
2783
    self._oprot.trans.flush()
2784
 
2785
  def recv_getSearchResultCount(self, ):
2786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2787
    if mtype == TMessageType.EXCEPTION:
2788
      x = TApplicationException()
2789
      x.read(self._iprot)
2790
      self._iprot.readMessageEnd()
2791
      raise x
2792
    result = getSearchResultCount_result()
2793
    result.read(self._iprot)
2794
    self._iprot.readMessageEnd()
2795
    if result.success is not None:
2796
      return result.success
2797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2798
 
2799
  def getProductNotifications(self, startDateTime):
2800
    """
2801
    Returns a list of product notifications added after a supplied datetime
2802
 
2803
    Parameters:
2804
     - startDateTime
2805
    """
2806
    self.send_getProductNotifications(startDateTime)
2807
    return self.recv_getProductNotifications()
2808
 
2809
  def send_getProductNotifications(self, startDateTime):
2810
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2811
    args = getProductNotifications_args()
2812
    args.startDateTime = startDateTime
2813
    args.write(self._oprot)
2814
    self._oprot.writeMessageEnd()
2815
    self._oprot.trans.flush()
2816
 
2817
  def recv_getProductNotifications(self, ):
2818
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2819
    if mtype == TMessageType.EXCEPTION:
2820
      x = TApplicationException()
2821
      x.read(self._iprot)
2822
      self._iprot.readMessageEnd()
2823
      raise x
2824
    result = getProductNotifications_result()
2825
    result.read(self._iprot)
2826
    self._iprot.readMessageEnd()
2827
    if result.success is not None:
2828
      return result.success
2829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2830
 
2831
  def getProductNotificationRequestCount(self, startDateTime):
2832
    """
2833
    Returns a list of count of requests for product notification against each item
2834
 
2835
    Parameters:
2836
     - startDateTime
2837
    """
2838
    self.send_getProductNotificationRequestCount(startDateTime)
2839
    return self.recv_getProductNotificationRequestCount()
2840
 
2841
  def send_getProductNotificationRequestCount(self, startDateTime):
2842
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2843
    args = getProductNotificationRequestCount_args()
2844
    args.startDateTime = startDateTime
2845
    args.write(self._oprot)
2846
    self._oprot.writeMessageEnd()
2847
    self._oprot.trans.flush()
2848
 
2849
  def recv_getProductNotificationRequestCount(self, ):
2850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2851
    if mtype == TMessageType.EXCEPTION:
2852
      x = TApplicationException()
2853
      x.read(self._iprot)
2854
      self._iprot.readMessageEnd()
2855
      raise x
2856
    result = getProductNotificationRequestCount_result()
2857
    result.read(self._iprot)
2858
    self._iprot.readMessageEnd()
2859
    if result.success is not None:
2860
      return result.success
2861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2862
 
2863
  def addAuthorizationLog(self, itemId, username, reason):
2864
    """
2865
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2866
 
2867
    Parameters:
2868
     - itemId
2869
     - username
2870
     - reason
2871
    """
2872
    self.send_addAuthorizationLog(itemId, username, reason)
2873
    return self.recv_addAuthorizationLog()
2874
 
2875
  def send_addAuthorizationLog(self, itemId, username, reason):
2876
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2877
    args = addAuthorizationLog_args()
2878
    args.itemId = itemId
2879
    args.username = username
2880
    args.reason = reason
2881
    args.write(self._oprot)
2882
    self._oprot.writeMessageEnd()
2883
    self._oprot.trans.flush()
2884
 
2885
  def recv_addAuthorizationLog(self, ):
2886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2887
    if mtype == TMessageType.EXCEPTION:
2888
      x = TApplicationException()
2889
      x.read(self._iprot)
2890
      self._iprot.readMessageEnd()
2891
      raise x
2892
    result = addAuthorizationLog_result()
2893
    result.read(self._iprot)
2894
    self._iprot.readMessageEnd()
2895
    if result.success is not None:
2896
      return result.success
2897
    if result.cex is not None:
2898
      raise result.cex
2899
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2900
 
2901
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2902
    """
2903
    Parameters:
2904
     - catalog_item_id
2905
     - voucherType
2906
     - voucherAmount
2907
    """
2908
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2909
    return self.recv_addupdateVoucherForItem()
2910
 
2911
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2912
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2913
    args = addupdateVoucherForItem_args()
2914
    args.catalog_item_id = catalog_item_id
2915
    args.voucherType = voucherType
2916
    args.voucherAmount = voucherAmount
2917
    args.write(self._oprot)
2918
    self._oprot.writeMessageEnd()
2919
    self._oprot.trans.flush()
2920
 
2921
  def recv_addupdateVoucherForItem(self, ):
2922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2923
    if mtype == TMessageType.EXCEPTION:
2924
      x = TApplicationException()
2925
      x.read(self._iprot)
2926
      self._iprot.readMessageEnd()
2927
      raise x
2928
    result = addupdateVoucherForItem_result()
2929
    result.read(self._iprot)
2930
    self._iprot.readMessageEnd()
2931
    if result.success is not None:
2932
      return result.success
2933
    if result.cex is not None:
2934
      raise result.cex
2935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2936
 
2937
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2938
    """
2939
    Parameters:
2940
     - catalog_item_id
2941
     - voucherType
2942
    """
2943
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2944
    return self.recv_deleteVoucherForItem()
2945
 
2946
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2947
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2948
    args = deleteVoucherForItem_args()
2949
    args.catalog_item_id = catalog_item_id
2950
    args.voucherType = voucherType
2951
    args.write(self._oprot)
2952
    self._oprot.writeMessageEnd()
2953
    self._oprot.trans.flush()
2954
 
2955
  def recv_deleteVoucherForItem(self, ):
2956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2957
    if mtype == TMessageType.EXCEPTION:
2958
      x = TApplicationException()
2959
      x.read(self._iprot)
2960
      self._iprot.readMessageEnd()
2961
      raise x
2962
    result = deleteVoucherForItem_result()
2963
    result.read(self._iprot)
2964
    self._iprot.readMessageEnd()
2965
    if result.success is not None:
2966
      return result.success
2967
    if result.cex is not None:
2968
      raise result.cex
2969
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2970
 
2971
  def getVoucherAmount(self, itemId, voucherType):
2972
    """
2973
    Parameters:
2974
     - itemId
2975
     - voucherType
2976
    """
2977
    self.send_getVoucherAmount(itemId, voucherType)
2978
    return self.recv_getVoucherAmount()
2979
 
2980
  def send_getVoucherAmount(self, itemId, voucherType):
2981
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2982
    args = getVoucherAmount_args()
2983
    args.itemId = itemId
2984
    args.voucherType = voucherType
2985
    args.write(self._oprot)
2986
    self._oprot.writeMessageEnd()
2987
    self._oprot.trans.flush()
2988
 
2989
  def recv_getVoucherAmount(self, ):
2990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2991
    if mtype == TMessageType.EXCEPTION:
2992
      x = TApplicationException()
2993
      x.read(self._iprot)
2994
      self._iprot.readMessageEnd()
2995
      raise x
2996
    result = getVoucherAmount_result()
2997
    result.read(self._iprot)
2998
    self._iprot.readMessageEnd()
2999
    if result.success is not None:
3000
      return result.success
3001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3002
 
3003
  def getAllItemVouchers(self, itemId):
3004
    """
3005
    Parameters:
3006
     - itemId
3007
    """
3008
    self.send_getAllItemVouchers(itemId)
3009
    return self.recv_getAllItemVouchers()
3010
 
3011
  def send_getAllItemVouchers(self, itemId):
3012
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3013
    args = getAllItemVouchers_args()
3014
    args.itemId = itemId
3015
    args.write(self._oprot)
3016
    self._oprot.writeMessageEnd()
3017
    self._oprot.trans.flush()
3018
 
3019
  def recv_getAllItemVouchers(self, ):
3020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3021
    if mtype == TMessageType.EXCEPTION:
3022
      x = TApplicationException()
3023
      x.read(self._iprot)
3024
      self._iprot.readMessageEnd()
3025
      raise x
3026
    result = getAllItemVouchers_result()
3027
    result.read(self._iprot)
3028
    self._iprot.readMessageEnd()
3029
    if result.success is not None:
3030
      return result.success
3031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3032
 
3033
  def isValidCatalogItemId(self, catalog_item_id):
3034
    """
3035
    Parameters:
3036
     - catalog_item_id
3037
    """
3038
    self.send_isValidCatalogItemId(catalog_item_id)
3039
    return self.recv_isValidCatalogItemId()
3040
 
3041
  def send_isValidCatalogItemId(self, catalog_item_id):
3042
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3043
    args = isValidCatalogItemId_args()
3044
    args.catalog_item_id = catalog_item_id
3045
    args.write(self._oprot)
3046
    self._oprot.writeMessageEnd()
3047
    self._oprot.trans.flush()
3048
 
3049
  def recv_isValidCatalogItemId(self, ):
3050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3051
    if mtype == TMessageType.EXCEPTION:
3052
      x = TApplicationException()
3053
      x.read(self._iprot)
3054
      self._iprot.readMessageEnd()
3055
      raise x
3056
    result = isValidCatalogItemId_result()
3057
    result.read(self._iprot)
3058
    self._iprot.readMessageEnd()
3059
    if result.success is not None:
3060
      return result.success
3061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3062
 
6039 amit.gupta 3063
  def getVatPercentageForItem(self, itemId, price):
3064
    """
3065
    Parameters:
3066
     - itemId
3067
     - price
3068
    """
3069
    self.send_getVatPercentageForItem(itemId, price)
3070
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3071
 
6039 amit.gupta 3072
  def send_getVatPercentageForItem(self, itemId, price):
3073
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3074
    args = getVatPercentageForItem_args()
3075
    args.itemId = itemId
3076
    args.price = price
3077
    args.write(self._oprot)
3078
    self._oprot.writeMessageEnd()
3079
    self._oprot.trans.flush()
3080
 
3081
  def recv_getVatPercentageForItem(self, ):
3082
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3083
    if mtype == TMessageType.EXCEPTION:
3084
      x = TApplicationException()
3085
      x.read(self._iprot)
3086
      self._iprot.readMessageEnd()
3087
      raise x
3088
    result = getVatPercentageForItem_result()
3089
    result.read(self._iprot)
3090
    self._iprot.readMessageEnd()
3091
    if result.success is not None:
3092
      return result.success
3093
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3094
 
3095
  def getVatAmountForItem(self, itemId, price):
3096
    """
3097
    Parameters:
3098
     - itemId
3099
     - price
3100
    """
3101
    self.send_getVatAmountForItem(itemId, price)
3102
    return self.recv_getVatAmountForItem()
3103
 
3104
  def send_getVatAmountForItem(self, itemId, price):
3105
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3106
    args = getVatAmountForItem_args()
3107
    args.itemId = itemId
3108
    args.price = price
3109
    args.write(self._oprot)
3110
    self._oprot.writeMessageEnd()
3111
    self._oprot.trans.flush()
3112
 
3113
  def recv_getVatAmountForItem(self, ):
3114
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3115
    if mtype == TMessageType.EXCEPTION:
3116
      x = TApplicationException()
3117
      x.read(self._iprot)
3118
      self._iprot.readMessageEnd()
3119
      raise x
3120
    result = getVatAmountForItem_result()
3121
    result.read(self._iprot)
3122
    self._iprot.readMessageEnd()
3123
    if result.success is not None:
3124
      return result.success
3125
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3126
 
6531 vikram.rag 3127
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3128
    """
3129
    Parameters:
3130
     - offset
3131
     - limit
3132
    """
3133
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3134
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3135
 
6531 vikram.rag 3136
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3137
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3138
    args = getAllIgnoredInventoryUpdateItemsList_args()
3139
    args.offset = offset
3140
    args.limit = limit
3141
    args.write(self._oprot)
3142
    self._oprot.writeMessageEnd()
3143
    self._oprot.trans.flush()
3144
 
3145
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3147
    if mtype == TMessageType.EXCEPTION:
3148
      x = TApplicationException()
3149
      x.read(self._iprot)
3150
      self._iprot.readMessageEnd()
3151
      raise x
3152
    result = getAllIgnoredInventoryUpdateItemsList_result()
3153
    result.read(self._iprot)
3154
    self._iprot.readMessageEnd()
3155
    if result.success is not None:
3156
      return result.success
3157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3158
 
6821 amar.kumar 3159
  def getAllAliveItems(self, ):
3160
    self.send_getAllAliveItems()
3161
    return self.recv_getAllAliveItems()
3162
 
3163
  def send_getAllAliveItems(self, ):
3164
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3165
    args = getAllAliveItems_args()
3166
    args.write(self._oprot)
3167
    self._oprot.writeMessageEnd()
3168
    self._oprot.trans.flush()
3169
 
3170
  def recv_getAllAliveItems(self, ):
3171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3172
    if mtype == TMessageType.EXCEPTION:
3173
      x = TApplicationException()
3174
      x.read(self._iprot)
3175
      self._iprot.readMessageEnd()
3176
      raise x
3177
    result = getAllAliveItems_result()
3178
    result.read(self._iprot)
3179
    self._iprot.readMessageEnd()
3180
    if result.success is not None:
3181
      return result.success
3182
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3183
 
6921 anupam.sin 3184
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3185
    """
3186
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3187
 
6805 anupam.sin 3188
    Parameters:
3189
     - itemId
6921 anupam.sin 3190
     - price
6805 anupam.sin 3191
     - insurerId
3192
     - quantity
3193
    """
6921 anupam.sin 3194
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3195
    return self.recv_getInsuranceAmount()
3196
 
6921 anupam.sin 3197
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3198
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3199
    args = getInsuranceAmount_args()
3200
    args.itemId = itemId
6921 anupam.sin 3201
    args.price = price
6805 anupam.sin 3202
    args.insurerId = insurerId
3203
    args.quantity = quantity
3204
    args.write(self._oprot)
3205
    self._oprot.writeMessageEnd()
3206
    self._oprot.trans.flush()
3207
 
3208
  def recv_getInsuranceAmount(self, ):
3209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3210
    if mtype == TMessageType.EXCEPTION:
3211
      x = TApplicationException()
3212
      x.read(self._iprot)
3213
      self._iprot.readMessageEnd()
3214
      raise x
3215
    result = getInsuranceAmount_result()
3216
    result.read(self._iprot)
3217
    self._iprot.readMessageEnd()
3218
    if result.success is not None:
3219
      return result.success
3220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3221
 
3222
  def getInsurer(self, insurerId):
3223
    """
3224
    Parameters:
3225
     - insurerId
3226
    """
3227
    self.send_getInsurer(insurerId)
3228
    return self.recv_getInsurer()
3229
 
3230
  def send_getInsurer(self, insurerId):
3231
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3232
    args = getInsurer_args()
3233
    args.insurerId = insurerId
3234
    args.write(self._oprot)
3235
    self._oprot.writeMessageEnd()
3236
    self._oprot.trans.flush()
3237
 
3238
  def recv_getInsurer(self, ):
3239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3240
    if mtype == TMessageType.EXCEPTION:
3241
      x = TApplicationException()
3242
      x.read(self._iprot)
3243
      self._iprot.readMessageEnd()
3244
      raise x
3245
    result = getInsurer_result()
3246
    result.read(self._iprot)
3247
    self._iprot.readMessageEnd()
3248
    if result.success is not None:
3249
      return result.success
3250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3251
 
6838 vikram.rag 3252
  def getAllInsurers(self, ):
3253
    self.send_getAllInsurers()
3254
    return self.recv_getAllInsurers()
6805 anupam.sin 3255
 
6838 vikram.rag 3256
  def send_getAllInsurers(self, ):
3257
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3258
    args = getAllInsurers_args()
3259
    args.write(self._oprot)
3260
    self._oprot.writeMessageEnd()
3261
    self._oprot.trans.flush()
3262
 
3263
  def recv_getAllInsurers(self, ):
3264
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3265
    if mtype == TMessageType.EXCEPTION:
3266
      x = TApplicationException()
3267
      x.read(self._iprot)
3268
      self._iprot.readMessageEnd()
3269
      raise x
3270
    result = getAllInsurers_result()
3271
    result.read(self._iprot)
3272
    self._iprot.readMessageEnd()
3273
    if result.success is not None:
3274
      return result.success
3275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3276
 
6962 rajveer 3277
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3278
    """
3279
    Parameters:
3280
     - insurerId
3281
     - amount
3282
    """
3283
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3284
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3285
 
6962 rajveer 3286
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3287
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3288
    args = updateInsuranceDeclaredAmount_args()
3289
    args.insurerId = insurerId
3290
    args.amount = amount
3291
    args.write(self._oprot)
3292
    self._oprot.writeMessageEnd()
3293
    self._oprot.trans.flush()
3294
 
3295
  def recv_updateInsuranceDeclaredAmount(self, ):
3296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3297
    if mtype == TMessageType.EXCEPTION:
3298
      x = TApplicationException()
3299
      x.read(self._iprot)
3300
      self._iprot.readMessageEnd()
3301
      raise x
3302
    result = updateInsuranceDeclaredAmount_result()
3303
    result.read(self._iprot)
3304
    self._iprot.readMessageEnd()
3305
    return
3306
 
7190 amar.kumar 3307
  def getFreebieForItem(self, itemId):
3308
    """
3309
    Parameters:
3310
     - itemId
3311
    """
3312
    self.send_getFreebieForItem(itemId)
3313
    return self.recv_getFreebieForItem()
6962 rajveer 3314
 
7190 amar.kumar 3315
  def send_getFreebieForItem(self, itemId):
3316
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3317
    args = getFreebieForItem_args()
3318
    args.itemId = itemId
3319
    args.write(self._oprot)
3320
    self._oprot.writeMessageEnd()
3321
    self._oprot.trans.flush()
3322
 
3323
  def recv_getFreebieForItem(self, ):
3324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3325
    if mtype == TMessageType.EXCEPTION:
3326
      x = TApplicationException()
3327
      x.read(self._iprot)
3328
      self._iprot.readMessageEnd()
3329
      raise x
3330
    result = getFreebieForItem_result()
3331
    result.read(self._iprot)
3332
    self._iprot.readMessageEnd()
3333
    if result.success is not None:
3334
      return result.success
3335
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3336
 
3337
  def addOrUpdateFreebieForItem(self, freebieItem):
3338
    """
3339
    Parameters:
3340
     - freebieItem
3341
    """
3342
    self.send_addOrUpdateFreebieForItem(freebieItem)
3343
    self.recv_addOrUpdateFreebieForItem()
3344
 
3345
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3346
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3347
    args = addOrUpdateFreebieForItem_args()
3348
    args.freebieItem = freebieItem
3349
    args.write(self._oprot)
3350
    self._oprot.writeMessageEnd()
3351
    self._oprot.trans.flush()
3352
 
3353
  def recv_addOrUpdateFreebieForItem(self, ):
3354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3355
    if mtype == TMessageType.EXCEPTION:
3356
      x = TApplicationException()
3357
      x.read(self._iprot)
3358
      self._iprot.readMessageEnd()
3359
      raise x
3360
    result = addOrUpdateFreebieForItem_result()
3361
    result.read(self._iprot)
3362
    self._iprot.readMessageEnd()
3363
    return
3364
 
7256 rajveer 3365
  def getStorePricing(self, itemId):
3366
    """
3367
    Parameters:
3368
     - itemId
3369
    """
3370
    self.send_getStorePricing(itemId)
3371
    return self.recv_getStorePricing()
7190 amar.kumar 3372
 
7256 rajveer 3373
  def send_getStorePricing(self, itemId):
3374
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
3375
    args = getStorePricing_args()
3376
    args.itemId = itemId
3377
    args.write(self._oprot)
3378
    self._oprot.writeMessageEnd()
3379
    self._oprot.trans.flush()
3380
 
3381
  def recv_getStorePricing(self, ):
3382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3383
    if mtype == TMessageType.EXCEPTION:
3384
      x = TApplicationException()
3385
      x.read(self._iprot)
3386
      self._iprot.readMessageEnd()
3387
      raise x
3388
    result = getStorePricing_result()
3389
    result.read(self._iprot)
3390
    self._iprot.readMessageEnd()
3391
    if result.success is not None:
3392
      return result.success
3393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
3394
 
7265 rajveer 3395
  def updateStorePricing(self, sp):
3396
    """
3397
    Parameters:
3398
     - sp
3399
    """
3400
    self.send_updateStorePricing(sp)
3401
    self.recv_updateStorePricing()
7256 rajveer 3402
 
7265 rajveer 3403
  def send_updateStorePricing(self, sp):
3404
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
3405
    args = updateStorePricing_args()
3406
    args.sp = sp
3407
    args.write(self._oprot)
3408
    self._oprot.writeMessageEnd()
3409
    self._oprot.trans.flush()
3410
 
3411
  def recv_updateStorePricing(self, ):
3412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3413
    if mtype == TMessageType.EXCEPTION:
3414
      x = TApplicationException()
3415
      x.read(self._iprot)
3416
      self._iprot.readMessageEnd()
3417
      raise x
3418
    result = updateStorePricing_result()
3419
    result.read(self._iprot)
3420
    self._iprot.readMessageEnd()
3421
    return
3422
 
3423
 
5944 mandeep.dh 3424
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3425
  def __init__(self, handler):
3426
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3427
    self._processMap["addItem"] = Processor.process_addItem
3428
    self._processMap["updateItem"] = Processor.process_updateItem
3429
    self._processMap["isActive"] = Processor.process_isActive
3430
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3431
    self._processMap["startItemOn"] = Processor.process_startItemOn
3432
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3433
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3434
    self._processMap["getItem"] = Processor.process_getItem
3435
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3436
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3437
    self._processMap["getAllItems"] = Processor.process_getAllItems
3438
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3439
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3440
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3441
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3442
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3443
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3444
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3445
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3446
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3447
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3448
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3449
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3450
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3451
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3452
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3453
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3454
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3455
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3456
    self._processMap["addCategory"] = Processor.process_addCategory
3457
    self._processMap["getCategory"] = Processor.process_getCategory
3458
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3459
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3460
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3461
    self._processMap["addTag"] = Processor.process_addTag
3462
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3463
    self._processMap["deleteTag"] = Processor.process_deleteTag
3464
    self._processMap["getAllTags"] = Processor.process_getAllTags
3465
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3466
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3467
    self._processMap["addBanner"] = Processor.process_addBanner
3468
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3469
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3470
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3471
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3472
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3473
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3474
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3475
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3476
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3477
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3478
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3479
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3480
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3481
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3482
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3483
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3484
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3485
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3486
    self._processMap["getAllSources"] = Processor.process_getAllSources
3487
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3488
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3489
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3490
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3491
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3492
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3493
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3494
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3495
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3496
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3497
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3498
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3499
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3500
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3501
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3502
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3503
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3504
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3505
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3506
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3507
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 3508
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 3509
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3510
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7256 rajveer 3511
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7265 rajveer 3512
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
5944 mandeep.dh 3513
 
3514
  def process(self, iprot, oprot):
3515
    (name, type, seqid) = iprot.readMessageBegin()
3516
    if name not in self._processMap:
3517
      iprot.skip(TType.STRUCT)
3518
      iprot.readMessageEnd()
3519
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3520
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3521
      x.write(oprot)
3522
      oprot.writeMessageEnd()
3523
      oprot.trans.flush()
3524
      return
3525
    else:
3526
      self._processMap[name](self, seqid, iprot, oprot)
3527
    return True
3528
 
3529
  def process_addItem(self, seqid, iprot, oprot):
3530
    args = addItem_args()
3531
    args.read(iprot)
3532
    iprot.readMessageEnd()
3533
    result = addItem_result()
3534
    try:
3535
      result.success = self._handler.addItem(args.item)
3536
    except CatalogServiceException, cex:
3537
      result.cex = cex
3538
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3539
    result.write(oprot)
3540
    oprot.writeMessageEnd()
3541
    oprot.trans.flush()
3542
 
3543
  def process_updateItem(self, seqid, iprot, oprot):
3544
    args = updateItem_args()
3545
    args.read(iprot)
3546
    iprot.readMessageEnd()
3547
    result = updateItem_result()
3548
    try:
3549
      result.success = self._handler.updateItem(args.item)
3550
    except CatalogServiceException, cex:
3551
      result.cex = cex
3552
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3553
    result.write(oprot)
3554
    oprot.writeMessageEnd()
3555
    oprot.trans.flush()
3556
 
3557
  def process_isActive(self, seqid, iprot, oprot):
3558
    args = isActive_args()
3559
    args.read(iprot)
3560
    iprot.readMessageEnd()
3561
    result = isActive_result()
3562
    try:
3563
      result.success = self._handler.isActive(args.itemId)
3564
    except CatalogServiceException, isex:
3565
      result.isex = isex
3566
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3567
    result.write(oprot)
3568
    oprot.writeMessageEnd()
3569
    oprot.trans.flush()
3570
 
3571
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3572
    args = getItemStatusDescription_args()
3573
    args.read(iprot)
3574
    iprot.readMessageEnd()
3575
    result = getItemStatusDescription_result()
3576
    try:
3577
      result.success = self._handler.getItemStatusDescription(args.itemId)
3578
    except CatalogServiceException, isex:
3579
      result.isex = isex
3580
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3581
    result.write(oprot)
3582
    oprot.writeMessageEnd()
3583
    oprot.trans.flush()
3584
 
3585
  def process_startItemOn(self, seqid, iprot, oprot):
3586
    args = startItemOn_args()
3587
    args.read(iprot)
3588
    iprot.readMessageEnd()
3589
    result = startItemOn_result()
3590
    try:
3591
      self._handler.startItemOn(args.item_id, args.timestamp)
3592
    except CatalogServiceException, cex:
3593
      result.cex = cex
3594
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
3598
 
3599
  def process_retireItemOn(self, seqid, iprot, oprot):
3600
    args = retireItemOn_args()
3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
3603
    result = retireItemOn_result()
3604
    try:
3605
      self._handler.retireItemOn(args.item_id, args.timestamp)
3606
    except CatalogServiceException, cex:
3607
      result.cex = cex
3608
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3609
    result.write(oprot)
3610
    oprot.writeMessageEnd()
3611
    oprot.trans.flush()
3612
 
3613
  def process_changeItemStatus(self, seqid, iprot, oprot):
3614
    args = changeItemStatus_args()
3615
    args.read(iprot)
3616
    iprot.readMessageEnd()
3617
    result = changeItemStatus_result()
3618
    try:
3619
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3620
    except CatalogServiceException, cex:
3621
      result.cex = cex
3622
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
3626
 
3627
  def process_getItem(self, seqid, iprot, oprot):
3628
    args = getItem_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = getItem_result()
3632
    try:
3633
      result.success = self._handler.getItem(args.item_id)
3634
    except CatalogServiceException, cex:
3635
      result.cex = cex
3636
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3637
    result.write(oprot)
3638
    oprot.writeMessageEnd()
3639
    oprot.trans.flush()
3640
 
3641
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3642
    args = getItemsByCatalogId_args()
3643
    args.read(iprot)
3644
    iprot.readMessageEnd()
3645
    result = getItemsByCatalogId_result()
3646
    try:
3647
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3648
    except CatalogServiceException, cex:
3649
      result.cex = cex
3650
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3651
    result.write(oprot)
3652
    oprot.writeMessageEnd()
3653
    oprot.trans.flush()
3654
 
3655
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3656
    args = getValidItemsByCatalogId_args()
3657
    args.read(iprot)
3658
    iprot.readMessageEnd()
3659
    result = getValidItemsByCatalogId_result()
3660
    try:
3661
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3662
    except CatalogServiceException, cex:
3663
      result.cex = cex
3664
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3665
    result.write(oprot)
3666
    oprot.writeMessageEnd()
3667
    oprot.trans.flush()
3668
 
3669
  def process_getAllItems(self, seqid, iprot, oprot):
3670
    args = getAllItems_args()
3671
    args.read(iprot)
3672
    iprot.readMessageEnd()
3673
    result = getAllItems_result()
3674
    try:
3675
      result.success = self._handler.getAllItems(args.isActive)
3676
    except CatalogServiceException, cex:
3677
      result.cex = cex
3678
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3679
    result.write(oprot)
3680
    oprot.writeMessageEnd()
3681
    oprot.trans.flush()
3682
 
3683
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3684
    args = getAllItemsByStatus_args()
3685
    args.read(iprot)
3686
    iprot.readMessageEnd()
3687
    result = getAllItemsByStatus_result()
3688
    try:
3689
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3690
    except CatalogServiceException, cex:
3691
      result.cex = cex
3692
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3693
    result.write(oprot)
3694
    oprot.writeMessageEnd()
3695
    oprot.trans.flush()
3696
 
3697
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3698
    args = markItemAsContentComplete_args()
3699
    args.read(iprot)
3700
    iprot.readMessageEnd()
3701
    result = markItemAsContentComplete_result()
3702
    try:
3703
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3704
    except CatalogServiceException, cex:
3705
      result.cex = cex
3706
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3707
    result.write(oprot)
3708
    oprot.writeMessageEnd()
3709
    oprot.trans.flush()
3710
 
3711
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3712
    args = getAllItemsInRange_args()
3713
    args.read(iprot)
3714
    iprot.readMessageEnd()
3715
    result = getAllItemsInRange_result()
3716
    try:
3717
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3718
    except CatalogServiceException, cex:
3719
      result.cex = cex
3720
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3721
    result.write(oprot)
3722
    oprot.writeMessageEnd()
3723
    oprot.trans.flush()
3724
 
3725
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3726
    args = getAllItemsByStatusInRange_args()
3727
    args.read(iprot)
3728
    iprot.readMessageEnd()
3729
    result = getAllItemsByStatusInRange_result()
3730
    try:
3731
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3732
    except CatalogServiceException, cex:
3733
      result.cex = cex
3734
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3735
    result.write(oprot)
3736
    oprot.writeMessageEnd()
3737
    oprot.trans.flush()
3738
 
3739
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3740
    args = getItemCountByStatus_args()
3741
    args.read(iprot)
3742
    iprot.readMessageEnd()
3743
    result = getItemCountByStatus_result()
3744
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3745
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
3750
  def process_getBestSellers(self, seqid, iprot, oprot):
3751
    args = getBestSellers_args()
3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
3754
    result = getBestSellers_result()
3755
    try:
3756
      result.success = self._handler.getBestSellers()
3757
    except CatalogServiceException, isex:
3758
      result.isex = isex
3759
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3765
    args = getBestSellersCatalogIds_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = getBestSellersCatalogIds_result()
3769
    try:
3770
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3771
    except CatalogServiceException, cex:
3772
      result.cex = cex
3773
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
3778
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3779
    args = getBestSellersCount_args()
3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
3782
    result = getBestSellersCount_result()
3783
    try:
3784
      result.success = self._handler.getBestSellersCount()
3785
    except CatalogServiceException, cex:
3786
      result.cex = cex
3787
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
3791
 
3792
  def process_getBestDeals(self, seqid, iprot, oprot):
3793
    args = getBestDeals_args()
3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
3796
    result = getBestDeals_result()
3797
    try:
3798
      result.success = self._handler.getBestDeals()
3799
    except CatalogServiceException, isex:
3800
      result.isex = isex
3801
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
3805
 
3806
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3807
    args = getBestDealsCatalogIds_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = getBestDealsCatalogIds_result()
3811
    try:
3812
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3813
    except CatalogServiceException, cex:
3814
      result.cex = cex
3815
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
3819
 
3820
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3821
    args = getBestDealsCount_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = getBestDealsCount_result()
3825
    try:
3826
      result.success = self._handler.getBestDealsCount()
3827
    except CatalogServiceException, cex:
3828
      result.cex = cex
3829
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3830
    result.write(oprot)
3831
    oprot.writeMessageEnd()
3832
    oprot.trans.flush()
3833
 
3834
  def process_getComingSoon(self, seqid, iprot, oprot):
3835
    args = getComingSoon_args()
3836
    args.read(iprot)
3837
    iprot.readMessageEnd()
3838
    result = getComingSoon_result()
3839
    try:
3840
      result.success = self._handler.getComingSoon()
3841
    except CatalogServiceException, isex:
3842
      result.isex = isex
3843
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
3847
 
3848
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3849
    args = getComingSoonCatalogIds_args()
3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
3852
    result = getComingSoonCatalogIds_result()
3853
    try:
3854
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3855
    except CatalogServiceException, cex:
3856
      result.cex = cex
3857
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3858
    result.write(oprot)
3859
    oprot.writeMessageEnd()
3860
    oprot.trans.flush()
3861
 
3862
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3863
    args = getComingSoonCount_args()
3864
    args.read(iprot)
3865
    iprot.readMessageEnd()
3866
    result = getComingSoonCount_result()
3867
    try:
3868
      result.success = self._handler.getComingSoonCount()
3869
    except CatalogServiceException, cex:
3870
      result.cex = cex
3871
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3875
 
3876
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3877
    args = getLatestArrivals_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    result = getLatestArrivals_result()
3881
    try:
3882
      result.success = self._handler.getLatestArrivals()
3883
    except CatalogServiceException, isex:
3884
      result.isex = isex
3885
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3886
    result.write(oprot)
3887
    oprot.writeMessageEnd()
3888
    oprot.trans.flush()
3889
 
3890
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3891
    args = getLatestArrivalsCatalogIds_args()
3892
    args.read(iprot)
3893
    iprot.readMessageEnd()
3894
    result = getLatestArrivalsCatalogIds_result()
3895
    try:
3896
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3897
    except CatalogServiceException, cex:
3898
      result.cex = cex
3899
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
3903
 
3904
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3905
    args = getLatestArrivalsCount_args()
3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
3908
    result = getLatestArrivalsCount_result()
3909
    try:
3910
      result.success = self._handler.getLatestArrivalsCount()
3911
    except CatalogServiceException, cex:
3912
      result.cex = cex
3913
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3914
    result.write(oprot)
3915
    oprot.writeMessageEnd()
3916
    oprot.trans.flush()
3917
 
3918
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3919
    args = generateNewEntityID_args()
3920
    args.read(iprot)
3921
    iprot.readMessageEnd()
3922
    result = generateNewEntityID_result()
3923
    result.success = self._handler.generateNewEntityID()
3924
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3925
    result.write(oprot)
3926
    oprot.writeMessageEnd()
3927
    oprot.trans.flush()
3928
 
3929
  def process_addCategory(self, seqid, iprot, oprot):
3930
    args = addCategory_args()
3931
    args.read(iprot)
3932
    iprot.readMessageEnd()
3933
    result = addCategory_result()
3934
    result.success = self._handler.addCategory(args.category)
3935
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3936
    result.write(oprot)
3937
    oprot.writeMessageEnd()
3938
    oprot.trans.flush()
3939
 
3940
  def process_getCategory(self, seqid, iprot, oprot):
3941
    args = getCategory_args()
3942
    args.read(iprot)
3943
    iprot.readMessageEnd()
3944
    result = getCategory_result()
3945
    result.success = self._handler.getCategory(args.id)
3946
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3947
    result.write(oprot)
3948
    oprot.writeMessageEnd()
3949
    oprot.trans.flush()
3950
 
3951
  def process_getAllCategories(self, seqid, iprot, oprot):
3952
    args = getAllCategories_args()
3953
    args.read(iprot)
3954
    iprot.readMessageEnd()
3955
    result = getAllCategories_result()
3956
    result.success = self._handler.getAllCategories()
3957
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3958
    result.write(oprot)
3959
    oprot.writeMessageEnd()
3960
    oprot.trans.flush()
3961
 
3962
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3963
    args = getAllSimilarItems_args()
3964
    args.read(iprot)
3965
    iprot.readMessageEnd()
3966
    result = getAllSimilarItems_result()
3967
    result.success = self._handler.getAllSimilarItems(args.itemId)
3968
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3969
    result.write(oprot)
3970
    oprot.writeMessageEnd()
3971
    oprot.trans.flush()
3972
 
3973
  def process_addSimilarItem(self, seqid, iprot, oprot):
3974
    args = addSimilarItem_args()
3975
    args.read(iprot)
3976
    iprot.readMessageEnd()
3977
    result = addSimilarItem_result()
3978
    try:
3979
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3980
    except CatalogServiceException, cex:
3981
      result.cex = cex
3982
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3983
    result.write(oprot)
3984
    oprot.writeMessageEnd()
3985
    oprot.trans.flush()
3986
 
6512 kshitij.so 3987
  def process_addTag(self, seqid, iprot, oprot):
3988
    args = addTag_args()
3989
    args.read(iprot)
3990
    iprot.readMessageEnd()
3991
    result = addTag_result()
3992
    result.success = self._handler.addTag(args.displayName, args.itemId)
3993
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3994
    result.write(oprot)
3995
    oprot.writeMessageEnd()
3996
    oprot.trans.flush()
3997
 
3998
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3999
    args = deleteEntityTag_args()
4000
    args.read(iprot)
4001
    iprot.readMessageEnd()
4002
    result = deleteEntityTag_result()
4003
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
4004
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
4005
    result.write(oprot)
4006
    oprot.writeMessageEnd()
4007
    oprot.trans.flush()
4008
 
4009
  def process_deleteTag(self, seqid, iprot, oprot):
4010
    args = deleteTag_args()
4011
    args.read(iprot)
4012
    iprot.readMessageEnd()
4013
    result = deleteTag_result()
4014
    result.success = self._handler.deleteTag(args.displayName)
4015
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
4016
    result.write(oprot)
4017
    oprot.writeMessageEnd()
4018
    oprot.trans.flush()
4019
 
4020
  def process_getAllTags(self, seqid, iprot, oprot):
4021
    args = getAllTags_args()
4022
    args.read(iprot)
4023
    iprot.readMessageEnd()
4024
    result = getAllTags_result()
4025
    result.success = self._handler.getAllTags()
4026
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
4027
    result.write(oprot)
4028
    oprot.writeMessageEnd()
4029
    oprot.trans.flush()
4030
 
4031
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
4032
    args = getAllEntitiesByTagName_args()
4033
    args.read(iprot)
4034
    iprot.readMessageEnd()
4035
    result = getAllEntitiesByTagName_result()
4036
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
4037
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
4038
    result.write(oprot)
4039
    oprot.writeMessageEnd()
4040
    oprot.trans.flush()
4041
 
6845 amit.gupta 4042
  def process_getAllEntityTags(self, seqid, iprot, oprot):
4043
    args = getAllEntityTags_args()
4044
    args.read(iprot)
4045
    iprot.readMessageEnd()
4046
    result = getAllEntityTags_result()
4047
    result.success = self._handler.getAllEntityTags()
4048
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
4049
    result.write(oprot)
4050
    oprot.writeMessageEnd()
4051
    oprot.trans.flush()
4052
 
6850 kshitij.so 4053
  def process_addBanner(self, seqid, iprot, oprot):
4054
    args = addBanner_args()
4055
    args.read(iprot)
4056
    iprot.readMessageEnd()
4057
    result = addBanner_result()
4058
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
4059
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
4060
    result.write(oprot)
4061
    oprot.writeMessageEnd()
4062
    oprot.trans.flush()
4063
 
4064
  def process_getAllBanners(self, seqid, iprot, oprot):
4065
    args = getAllBanners_args()
4066
    args.read(iprot)
4067
    iprot.readMessageEnd()
4068
    result = getAllBanners_result()
4069
    result.success = self._handler.getAllBanners()
4070
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
4071
    result.write(oprot)
4072
    oprot.writeMessageEnd()
4073
    oprot.trans.flush()
4074
 
4075
  def process_deleteBanner(self, seqid, iprot, oprot):
4076
    args = deleteBanner_args()
4077
    args.read(iprot)
4078
    iprot.readMessageEnd()
4079
    result = deleteBanner_result()
4080
    result.success = self._handler.deleteBanner(args.bannerName)
4081
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
4085
 
4086
  def process_getBannerDetails(self, seqid, iprot, oprot):
4087
    args = getBannerDetails_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = getBannerDetails_result()
4091
    result.success = self._handler.getBannerDetails(args.bannerName)
4092
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
4096
 
4097
  def process_getActiveBanners(self, seqid, iprot, oprot):
4098
    args = getActiveBanners_args()
4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
4101
    result = getActiveBanners_result()
4102
    result.success = self._handler.getActiveBanners()
4103
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
6849 kshitij.so 4108
  def process_addBannerMap(self, seqid, iprot, oprot):
4109
    args = addBannerMap_args()
4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
4112
    result = addBannerMap_result()
4113
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
4114
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
4118
 
4119
  def process_deleteBannerMap(self, seqid, iprot, oprot):
4120
    args = deleteBannerMap_args()
4121
    args.read(iprot)
4122
    iprot.readMessageEnd()
4123
    result = deleteBannerMap_result()
4124
    result.success = self._handler.deleteBannerMap(args.bannerName)
4125
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
4126
    result.write(oprot)
4127
    oprot.writeMessageEnd()
4128
    oprot.trans.flush()
4129
 
4130
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
4131
    args = getBannerMapDetails_args()
4132
    args.read(iprot)
4133
    iprot.readMessageEnd()
4134
    result = getBannerMapDetails_result()
4135
    result.success = self._handler.getBannerMapDetails(args.bannerName)
4136
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
4137
    result.write(oprot)
4138
    oprot.writeMessageEnd()
4139
    oprot.trans.flush()
4140
 
5944 mandeep.dh 4141
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
4142
    args = deleteSimilarItem_args()
4143
    args.read(iprot)
4144
    iprot.readMessageEnd()
4145
    result = deleteSimilarItem_result()
4146
    try:
4147
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
4148
    except CatalogServiceException, cex:
4149
      result.cex = cex
4150
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
4151
    result.write(oprot)
4152
    oprot.writeMessageEnd()
4153
    oprot.trans.flush()
4154
 
4155
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4156
    args = checkSimilarItem_args()
4157
    args.read(iprot)
4158
    iprot.readMessageEnd()
4159
    result = checkSimilarItem_result()
4160
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4161
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4162
    result.write(oprot)
4163
    oprot.writeMessageEnd()
4164
    oprot.trans.flush()
4165
 
4166
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4167
    args = validateRiskyStatus_args()
4168
    args.read(iprot)
4169
    iprot.readMessageEnd()
4170
    result = validateRiskyStatus_result()
4171
    self._handler.validateRiskyStatus(args.itemId)
4172
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4173
    result.write(oprot)
4174
    oprot.writeMessageEnd()
4175
    oprot.trans.flush()
4176
 
4177
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4178
    args = changeItemRiskyFlag_args()
4179
    args.read(iprot)
4180
    iprot.readMessageEnd()
4181
    result = changeItemRiskyFlag_result()
4182
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4183
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4184
    result.write(oprot)
4185
    oprot.writeMessageEnd()
4186
    oprot.trans.flush()
4187
 
4188
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4189
    args = getItemsByRiskyFlag_args()
4190
    args.read(iprot)
4191
    iprot.readMessageEnd()
4192
    result = getItemsByRiskyFlag_result()
4193
    result.success = self._handler.getItemsByRiskyFlag()
4194
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4195
    result.write(oprot)
4196
    oprot.writeMessageEnd()
4197
    oprot.trans.flush()
4198
 
4199
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4200
    args = getItemsForMasterSheet_args()
4201
    args.read(iprot)
4202
    iprot.readMessageEnd()
4203
    result = getItemsForMasterSheet_result()
4204
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4205
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4206
    result.write(oprot)
4207
    oprot.writeMessageEnd()
4208
    oprot.trans.flush()
4209
 
4210
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4211
    args = getSimilarItemsCatalogIds_args()
4212
    args.read(iprot)
4213
    iprot.readMessageEnd()
4214
    result = getSimilarItemsCatalogIds_result()
4215
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4216
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4217
    result.write(oprot)
4218
    oprot.writeMessageEnd()
4219
    oprot.trans.flush()
4220
 
4221
  def process_addProductNotification(self, seqid, iprot, oprot):
4222
    args = addProductNotification_args()
4223
    args.read(iprot)
4224
    iprot.readMessageEnd()
4225
    result = addProductNotification_result()
4226
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4227
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4228
    result.write(oprot)
4229
    oprot.writeMessageEnd()
4230
    oprot.trans.flush()
4231
 
4232
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4233
    args = sendProductNotifications_args()
4234
    args.read(iprot)
4235
    iprot.readMessageEnd()
4236
    result = sendProductNotifications_result()
4237
    result.success = self._handler.sendProductNotifications()
4238
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4239
    result.write(oprot)
4240
    oprot.writeMessageEnd()
4241
    oprot.trans.flush()
4242
 
4243
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4244
    args = getAllBrandsByCategory_args()
4245
    args.read(iprot)
4246
    iprot.readMessageEnd()
4247
    result = getAllBrandsByCategory_result()
4248
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4249
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4250
    result.write(oprot)
4251
    oprot.writeMessageEnd()
4252
    oprot.trans.flush()
4253
 
4254
  def process_getAllBrands(self, seqid, iprot, oprot):
4255
    args = getAllBrands_args()
4256
    args.read(iprot)
4257
    iprot.readMessageEnd()
4258
    result = getAllBrands_result()
4259
    result.success = self._handler.getAllBrands()
4260
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4261
    result.write(oprot)
4262
    oprot.writeMessageEnd()
4263
    oprot.trans.flush()
4264
 
4265
  def process_getAllSources(self, seqid, iprot, oprot):
4266
    args = getAllSources_args()
4267
    args.read(iprot)
4268
    iprot.readMessageEnd()
4269
    result = getAllSources_result()
4270
    result.success = self._handler.getAllSources()
4271
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4272
    result.write(oprot)
4273
    oprot.writeMessageEnd()
4274
    oprot.trans.flush()
4275
 
4276
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4277
    args = getItemPricingBySource_args()
4278
    args.read(iprot)
4279
    iprot.readMessageEnd()
4280
    result = getItemPricingBySource_result()
4281
    try:
4282
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4283
    except CatalogServiceException, cex:
4284
      result.cex = cex
4285
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4286
    result.write(oprot)
4287
    oprot.writeMessageEnd()
4288
    oprot.trans.flush()
4289
 
4290
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4291
    args = addSourceItemPricing_args()
4292
    args.read(iprot)
4293
    iprot.readMessageEnd()
4294
    result = addSourceItemPricing_result()
4295
    try:
4296
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4297
    except CatalogServiceException, cex:
4298
      result.cex = cex
4299
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4300
    result.write(oprot)
4301
    oprot.writeMessageEnd()
4302
    oprot.trans.flush()
4303
 
4304
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4305
    args = getAllSourcePricing_args()
4306
    args.read(iprot)
4307
    iprot.readMessageEnd()
4308
    result = getAllSourcePricing_result()
4309
    try:
4310
      result.success = self._handler.getAllSourcePricing(args.itemId)
4311
    except CatalogServiceException, cex:
4312
      result.cex = cex
4313
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4314
    result.write(oprot)
4315
    oprot.writeMessageEnd()
4316
    oprot.trans.flush()
4317
 
4318
  def process_getItemForSource(self, seqid, iprot, oprot):
4319
    args = getItemForSource_args()
4320
    args.read(iprot)
4321
    iprot.readMessageEnd()
4322
    result = getItemForSource_result()
4323
    try:
4324
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4325
    except CatalogServiceException, cex:
4326
      result.cex = cex
4327
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4328
    result.write(oprot)
4329
    oprot.writeMessageEnd()
4330
    oprot.trans.flush()
4331
 
4332
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4333
    args = searchItemsInRange_args()
4334
    args.read(iprot)
4335
    iprot.readMessageEnd()
4336
    result = searchItemsInRange_result()
4337
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4338
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4339
    result.write(oprot)
4340
    oprot.writeMessageEnd()
4341
    oprot.trans.flush()
4342
 
4343
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4344
    args = getSearchResultCount_args()
4345
    args.read(iprot)
4346
    iprot.readMessageEnd()
4347
    result = getSearchResultCount_result()
4348
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4349
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4350
    result.write(oprot)
4351
    oprot.writeMessageEnd()
4352
    oprot.trans.flush()
4353
 
4354
  def process_getProductNotifications(self, seqid, iprot, oprot):
4355
    args = getProductNotifications_args()
4356
    args.read(iprot)
4357
    iprot.readMessageEnd()
4358
    result = getProductNotifications_result()
4359
    result.success = self._handler.getProductNotifications(args.startDateTime)
4360
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4361
    result.write(oprot)
4362
    oprot.writeMessageEnd()
4363
    oprot.trans.flush()
4364
 
4365
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4366
    args = getProductNotificationRequestCount_args()
4367
    args.read(iprot)
4368
    iprot.readMessageEnd()
4369
    result = getProductNotificationRequestCount_result()
4370
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4371
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4372
    result.write(oprot)
4373
    oprot.writeMessageEnd()
4374
    oprot.trans.flush()
4375
 
4376
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4377
    args = addAuthorizationLog_args()
4378
    args.read(iprot)
4379
    iprot.readMessageEnd()
4380
    result = addAuthorizationLog_result()
4381
    try:
4382
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4383
    except CatalogServiceException, cex:
4384
      result.cex = cex
4385
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4386
    result.write(oprot)
4387
    oprot.writeMessageEnd()
4388
    oprot.trans.flush()
4389
 
4390
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4391
    args = addupdateVoucherForItem_args()
4392
    args.read(iprot)
4393
    iprot.readMessageEnd()
4394
    result = addupdateVoucherForItem_result()
4395
    try:
4396
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4397
    except CatalogServiceException, cex:
4398
      result.cex = cex
4399
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4400
    result.write(oprot)
4401
    oprot.writeMessageEnd()
4402
    oprot.trans.flush()
4403
 
4404
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4405
    args = deleteVoucherForItem_args()
4406
    args.read(iprot)
4407
    iprot.readMessageEnd()
4408
    result = deleteVoucherForItem_result()
4409
    try:
4410
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4411
    except CatalogServiceException, cex:
4412
      result.cex = cex
4413
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4414
    result.write(oprot)
4415
    oprot.writeMessageEnd()
4416
    oprot.trans.flush()
4417
 
4418
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4419
    args = getVoucherAmount_args()
4420
    args.read(iprot)
4421
    iprot.readMessageEnd()
4422
    result = getVoucherAmount_result()
4423
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4424
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4425
    result.write(oprot)
4426
    oprot.writeMessageEnd()
4427
    oprot.trans.flush()
4428
 
4429
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4430
    args = getAllItemVouchers_args()
4431
    args.read(iprot)
4432
    iprot.readMessageEnd()
4433
    result = getAllItemVouchers_result()
4434
    result.success = self._handler.getAllItemVouchers(args.itemId)
4435
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4436
    result.write(oprot)
4437
    oprot.writeMessageEnd()
4438
    oprot.trans.flush()
4439
 
4440
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4441
    args = isValidCatalogItemId_args()
4442
    args.read(iprot)
4443
    iprot.readMessageEnd()
4444
    result = isValidCatalogItemId_result()
4445
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4446
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4447
    result.write(oprot)
4448
    oprot.writeMessageEnd()
4449
    oprot.trans.flush()
4450
 
6039 amit.gupta 4451
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4452
    args = getVatPercentageForItem_args()
4453
    args.read(iprot)
4454
    iprot.readMessageEnd()
4455
    result = getVatPercentageForItem_result()
4456
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4457
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4458
    result.write(oprot)
4459
    oprot.writeMessageEnd()
4460
    oprot.trans.flush()
5944 mandeep.dh 4461
 
6039 amit.gupta 4462
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4463
    args = getVatAmountForItem_args()
4464
    args.read(iprot)
4465
    iprot.readMessageEnd()
4466
    result = getVatAmountForItem_result()
4467
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4468
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4469
    result.write(oprot)
4470
    oprot.writeMessageEnd()
4471
    oprot.trans.flush()
4472
 
6531 vikram.rag 4473
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4474
    args = getAllIgnoredInventoryUpdateItemsList_args()
4475
    args.read(iprot)
4476
    iprot.readMessageEnd()
4477
    result = getAllIgnoredInventoryUpdateItemsList_result()
4478
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4479
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4480
    result.write(oprot)
4481
    oprot.writeMessageEnd()
4482
    oprot.trans.flush()
6039 amit.gupta 4483
 
6821 amar.kumar 4484
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4485
    args = getAllAliveItems_args()
4486
    args.read(iprot)
4487
    iprot.readMessageEnd()
4488
    result = getAllAliveItems_result()
4489
    result.success = self._handler.getAllAliveItems()
4490
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4491
    result.write(oprot)
4492
    oprot.writeMessageEnd()
4493
    oprot.trans.flush()
4494
 
6805 anupam.sin 4495
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4496
    args = getInsuranceAmount_args()
4497
    args.read(iprot)
4498
    iprot.readMessageEnd()
4499
    result = getInsuranceAmount_result()
6921 anupam.sin 4500
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4501
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4502
    result.write(oprot)
4503
    oprot.writeMessageEnd()
4504
    oprot.trans.flush()
6531 vikram.rag 4505
 
6805 anupam.sin 4506
  def process_getInsurer(self, seqid, iprot, oprot):
4507
    args = getInsurer_args()
4508
    args.read(iprot)
4509
    iprot.readMessageEnd()
4510
    result = getInsurer_result()
4511
    result.success = self._handler.getInsurer(args.insurerId)
4512
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4513
    result.write(oprot)
4514
    oprot.writeMessageEnd()
4515
    oprot.trans.flush()
4516
 
6838 vikram.rag 4517
  def process_getAllInsurers(self, seqid, iprot, oprot):
4518
    args = getAllInsurers_args()
4519
    args.read(iprot)
4520
    iprot.readMessageEnd()
4521
    result = getAllInsurers_result()
4522
    result.success = self._handler.getAllInsurers()
4523
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4524
    result.write(oprot)
4525
    oprot.writeMessageEnd()
4526
    oprot.trans.flush()
6805 anupam.sin 4527
 
6962 rajveer 4528
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
4529
    args = updateInsuranceDeclaredAmount_args()
4530
    args.read(iprot)
4531
    iprot.readMessageEnd()
4532
    result = updateInsuranceDeclaredAmount_result()
4533
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
4534
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
4535
    result.write(oprot)
4536
    oprot.writeMessageEnd()
4537
    oprot.trans.flush()
6838 vikram.rag 4538
 
7190 amar.kumar 4539
  def process_getFreebieForItem(self, seqid, iprot, oprot):
4540
    args = getFreebieForItem_args()
4541
    args.read(iprot)
4542
    iprot.readMessageEnd()
4543
    result = getFreebieForItem_result()
4544
    result.success = self._handler.getFreebieForItem(args.itemId)
4545
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
4546
    result.write(oprot)
4547
    oprot.writeMessageEnd()
4548
    oprot.trans.flush()
6962 rajveer 4549
 
7190 amar.kumar 4550
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
4551
    args = addOrUpdateFreebieForItem_args()
4552
    args.read(iprot)
4553
    iprot.readMessageEnd()
4554
    result = addOrUpdateFreebieForItem_result()
4555
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
4556
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4557
    result.write(oprot)
4558
    oprot.writeMessageEnd()
4559
    oprot.trans.flush()
4560
 
7256 rajveer 4561
  def process_getStorePricing(self, seqid, iprot, oprot):
4562
    args = getStorePricing_args()
4563
    args.read(iprot)
4564
    iprot.readMessageEnd()
4565
    result = getStorePricing_result()
4566
    result.success = self._handler.getStorePricing(args.itemId)
4567
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
4568
    result.write(oprot)
4569
    oprot.writeMessageEnd()
4570
    oprot.trans.flush()
7190 amar.kumar 4571
 
7265 rajveer 4572
  def process_updateStorePricing(self, seqid, iprot, oprot):
4573
    args = updateStorePricing_args()
4574
    args.read(iprot)
4575
    iprot.readMessageEnd()
4576
    result = updateStorePricing_result()
4577
    self._handler.updateStorePricing(args.sp)
4578
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4579
    result.write(oprot)
4580
    oprot.writeMessageEnd()
4581
    oprot.trans.flush()
7256 rajveer 4582
 
7265 rajveer 4583
 
5944 mandeep.dh 4584
# HELPER FUNCTIONS AND STRUCTURES
4585
 
4586
class addItem_args:
4587
  """
4588
  Attributes:
4589
   - item
4590
  """
4591
 
4592
  thrift_spec = (
4593
    None, # 0
4594
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4595
  )
4596
 
4597
  def __init__(self, item=None,):
4598
    self.item = item
4599
 
4600
  def read(self, iprot):
4601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4603
      return
4604
    iprot.readStructBegin()
4605
    while True:
4606
      (fname, ftype, fid) = iprot.readFieldBegin()
4607
      if ftype == TType.STOP:
4608
        break
4609
      if fid == 1:
4610
        if ftype == TType.STRUCT:
4611
          self.item = Item()
4612
          self.item.read(iprot)
4613
        else:
4614
          iprot.skip(ftype)
4615
      else:
4616
        iprot.skip(ftype)
4617
      iprot.readFieldEnd()
4618
    iprot.readStructEnd()
4619
 
4620
  def write(self, oprot):
4621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4623
      return
4624
    oprot.writeStructBegin('addItem_args')
4625
    if self.item is not None:
4626
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4627
      self.item.write(oprot)
4628
      oprot.writeFieldEnd()
4629
    oprot.writeFieldStop()
4630
    oprot.writeStructEnd()
4631
 
4632
  def validate(self):
4633
    return
4634
 
4635
 
4636
  def __repr__(self):
4637
    L = ['%s=%r' % (key, value)
4638
      for key, value in self.__dict__.iteritems()]
4639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4640
 
4641
  def __eq__(self, other):
4642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4643
 
4644
  def __ne__(self, other):
4645
    return not (self == other)
4646
 
4647
class addItem_result:
4648
  """
4649
  Attributes:
4650
   - success
4651
   - cex
4652
  """
4653
 
4654
  thrift_spec = (
4655
    (0, TType.I64, 'success', None, None, ), # 0
4656
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4657
  )
4658
 
4659
  def __init__(self, success=None, cex=None,):
4660
    self.success = success
4661
    self.cex = cex
4662
 
4663
  def read(self, iprot):
4664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4666
      return
4667
    iprot.readStructBegin()
4668
    while True:
4669
      (fname, ftype, fid) = iprot.readFieldBegin()
4670
      if ftype == TType.STOP:
4671
        break
4672
      if fid == 0:
4673
        if ftype == TType.I64:
4674
          self.success = iprot.readI64();
4675
        else:
4676
          iprot.skip(ftype)
4677
      elif fid == 1:
4678
        if ftype == TType.STRUCT:
4679
          self.cex = CatalogServiceException()
4680
          self.cex.read(iprot)
4681
        else:
4682
          iprot.skip(ftype)
4683
      else:
4684
        iprot.skip(ftype)
4685
      iprot.readFieldEnd()
4686
    iprot.readStructEnd()
4687
 
4688
  def write(self, oprot):
4689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4691
      return
4692
    oprot.writeStructBegin('addItem_result')
4693
    if self.success is not None:
4694
      oprot.writeFieldBegin('success', TType.I64, 0)
4695
      oprot.writeI64(self.success)
4696
      oprot.writeFieldEnd()
4697
    if self.cex is not None:
4698
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4699
      self.cex.write(oprot)
4700
      oprot.writeFieldEnd()
4701
    oprot.writeFieldStop()
4702
    oprot.writeStructEnd()
4703
 
4704
  def validate(self):
4705
    return
4706
 
4707
 
4708
  def __repr__(self):
4709
    L = ['%s=%r' % (key, value)
4710
      for key, value in self.__dict__.iteritems()]
4711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4712
 
4713
  def __eq__(self, other):
4714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4715
 
4716
  def __ne__(self, other):
4717
    return not (self == other)
4718
 
4719
class updateItem_args:
4720
  """
4721
  Attributes:
4722
   - item
4723
  """
4724
 
4725
  thrift_spec = (
4726
    None, # 0
4727
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4728
  )
4729
 
4730
  def __init__(self, item=None,):
4731
    self.item = item
4732
 
4733
  def read(self, iprot):
4734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4736
      return
4737
    iprot.readStructBegin()
4738
    while True:
4739
      (fname, ftype, fid) = iprot.readFieldBegin()
4740
      if ftype == TType.STOP:
4741
        break
4742
      if fid == 1:
4743
        if ftype == TType.STRUCT:
4744
          self.item = Item()
4745
          self.item.read(iprot)
4746
        else:
4747
          iprot.skip(ftype)
4748
      else:
4749
        iprot.skip(ftype)
4750
      iprot.readFieldEnd()
4751
    iprot.readStructEnd()
4752
 
4753
  def write(self, oprot):
4754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4756
      return
4757
    oprot.writeStructBegin('updateItem_args')
4758
    if self.item is not None:
4759
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4760
      self.item.write(oprot)
4761
      oprot.writeFieldEnd()
4762
    oprot.writeFieldStop()
4763
    oprot.writeStructEnd()
4764
 
4765
  def validate(self):
4766
    return
4767
 
4768
 
4769
  def __repr__(self):
4770
    L = ['%s=%r' % (key, value)
4771
      for key, value in self.__dict__.iteritems()]
4772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4773
 
4774
  def __eq__(self, other):
4775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4776
 
4777
  def __ne__(self, other):
4778
    return not (self == other)
4779
 
4780
class updateItem_result:
4781
  """
4782
  Attributes:
4783
   - success
4784
   - cex
4785
  """
4786
 
4787
  thrift_spec = (
4788
    (0, TType.I64, 'success', None, None, ), # 0
4789
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4790
  )
4791
 
4792
  def __init__(self, success=None, cex=None,):
4793
    self.success = success
4794
    self.cex = cex
4795
 
4796
  def read(self, iprot):
4797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4799
      return
4800
    iprot.readStructBegin()
4801
    while True:
4802
      (fname, ftype, fid) = iprot.readFieldBegin()
4803
      if ftype == TType.STOP:
4804
        break
4805
      if fid == 0:
4806
        if ftype == TType.I64:
4807
          self.success = iprot.readI64();
4808
        else:
4809
          iprot.skip(ftype)
4810
      elif fid == 1:
4811
        if ftype == TType.STRUCT:
4812
          self.cex = CatalogServiceException()
4813
          self.cex.read(iprot)
4814
        else:
4815
          iprot.skip(ftype)
4816
      else:
4817
        iprot.skip(ftype)
4818
      iprot.readFieldEnd()
4819
    iprot.readStructEnd()
4820
 
4821
  def write(self, oprot):
4822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4824
      return
4825
    oprot.writeStructBegin('updateItem_result')
4826
    if self.success is not None:
4827
      oprot.writeFieldBegin('success', TType.I64, 0)
4828
      oprot.writeI64(self.success)
4829
      oprot.writeFieldEnd()
4830
    if self.cex is not None:
4831
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4832
      self.cex.write(oprot)
4833
      oprot.writeFieldEnd()
4834
    oprot.writeFieldStop()
4835
    oprot.writeStructEnd()
4836
 
4837
  def validate(self):
4838
    return
4839
 
4840
 
4841
  def __repr__(self):
4842
    L = ['%s=%r' % (key, value)
4843
      for key, value in self.__dict__.iteritems()]
4844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4845
 
4846
  def __eq__(self, other):
4847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4848
 
4849
  def __ne__(self, other):
4850
    return not (self == other)
4851
 
4852
class isActive_args:
4853
  """
4854
  Attributes:
4855
   - itemId
4856
  """
4857
 
4858
  thrift_spec = (
4859
    None, # 0
4860
    (1, TType.I64, 'itemId', None, None, ), # 1
4861
  )
4862
 
4863
  def __init__(self, itemId=None,):
4864
    self.itemId = itemId
4865
 
4866
  def read(self, iprot):
4867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4869
      return
4870
    iprot.readStructBegin()
4871
    while True:
4872
      (fname, ftype, fid) = iprot.readFieldBegin()
4873
      if ftype == TType.STOP:
4874
        break
4875
      if fid == 1:
4876
        if ftype == TType.I64:
4877
          self.itemId = iprot.readI64();
4878
        else:
4879
          iprot.skip(ftype)
4880
      else:
4881
        iprot.skip(ftype)
4882
      iprot.readFieldEnd()
4883
    iprot.readStructEnd()
4884
 
4885
  def write(self, oprot):
4886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4888
      return
4889
    oprot.writeStructBegin('isActive_args')
4890
    if self.itemId is not None:
4891
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4892
      oprot.writeI64(self.itemId)
4893
      oprot.writeFieldEnd()
4894
    oprot.writeFieldStop()
4895
    oprot.writeStructEnd()
4896
 
4897
  def validate(self):
4898
    return
4899
 
4900
 
4901
  def __repr__(self):
4902
    L = ['%s=%r' % (key, value)
4903
      for key, value in self.__dict__.iteritems()]
4904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4905
 
4906
  def __eq__(self, other):
4907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4908
 
4909
  def __ne__(self, other):
4910
    return not (self == other)
4911
 
4912
class isActive_result:
4913
  """
4914
  Attributes:
4915
   - success
4916
   - isex
4917
  """
4918
 
4919
  thrift_spec = (
4920
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4921
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4922
  )
4923
 
4924
  def __init__(self, success=None, isex=None,):
4925
    self.success = success
4926
    self.isex = isex
4927
 
4928
  def read(self, iprot):
4929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4931
      return
4932
    iprot.readStructBegin()
4933
    while True:
4934
      (fname, ftype, fid) = iprot.readFieldBegin()
4935
      if ftype == TType.STOP:
4936
        break
4937
      if fid == 0:
4938
        if ftype == TType.STRUCT:
4939
          self.success = ItemShippingInfo()
4940
          self.success.read(iprot)
4941
        else:
4942
          iprot.skip(ftype)
4943
      elif fid == 1:
4944
        if ftype == TType.STRUCT:
4945
          self.isex = CatalogServiceException()
4946
          self.isex.read(iprot)
4947
        else:
4948
          iprot.skip(ftype)
4949
      else:
4950
        iprot.skip(ftype)
4951
      iprot.readFieldEnd()
4952
    iprot.readStructEnd()
4953
 
4954
  def write(self, oprot):
4955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4957
      return
4958
    oprot.writeStructBegin('isActive_result')
4959
    if self.success is not None:
4960
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4961
      self.success.write(oprot)
4962
      oprot.writeFieldEnd()
4963
    if self.isex is not None:
4964
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4965
      self.isex.write(oprot)
4966
      oprot.writeFieldEnd()
4967
    oprot.writeFieldStop()
4968
    oprot.writeStructEnd()
4969
 
4970
  def validate(self):
4971
    return
4972
 
4973
 
4974
  def __repr__(self):
4975
    L = ['%s=%r' % (key, value)
4976
      for key, value in self.__dict__.iteritems()]
4977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4978
 
4979
  def __eq__(self, other):
4980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4981
 
4982
  def __ne__(self, other):
4983
    return not (self == other)
4984
 
4985
class getItemStatusDescription_args:
4986
  """
4987
  Attributes:
4988
   - itemId
4989
  """
4990
 
4991
  thrift_spec = (
4992
    None, # 0
4993
    (1, TType.I64, 'itemId', None, None, ), # 1
4994
  )
4995
 
4996
  def __init__(self, itemId=None,):
4997
    self.itemId = itemId
4998
 
4999
  def read(self, iprot):
5000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5002
      return
5003
    iprot.readStructBegin()
5004
    while True:
5005
      (fname, ftype, fid) = iprot.readFieldBegin()
5006
      if ftype == TType.STOP:
5007
        break
5008
      if fid == 1:
5009
        if ftype == TType.I64:
5010
          self.itemId = iprot.readI64();
5011
        else:
5012
          iprot.skip(ftype)
5013
      else:
5014
        iprot.skip(ftype)
5015
      iprot.readFieldEnd()
5016
    iprot.readStructEnd()
5017
 
5018
  def write(self, oprot):
5019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5021
      return
5022
    oprot.writeStructBegin('getItemStatusDescription_args')
5023
    if self.itemId is not None:
5024
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5025
      oprot.writeI64(self.itemId)
5026
      oprot.writeFieldEnd()
5027
    oprot.writeFieldStop()
5028
    oprot.writeStructEnd()
5029
 
5030
  def validate(self):
5031
    return
5032
 
5033
 
5034
  def __repr__(self):
5035
    L = ['%s=%r' % (key, value)
5036
      for key, value in self.__dict__.iteritems()]
5037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5038
 
5039
  def __eq__(self, other):
5040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5041
 
5042
  def __ne__(self, other):
5043
    return not (self == other)
5044
 
5045
class getItemStatusDescription_result:
5046
  """
5047
  Attributes:
5048
   - success
5049
   - isex
5050
  """
5051
 
5052
  thrift_spec = (
5053
    (0, TType.STRING, 'success', None, None, ), # 0
5054
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5055
  )
5056
 
5057
  def __init__(self, success=None, isex=None,):
5058
    self.success = success
5059
    self.isex = isex
5060
 
5061
  def read(self, iprot):
5062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5064
      return
5065
    iprot.readStructBegin()
5066
    while True:
5067
      (fname, ftype, fid) = iprot.readFieldBegin()
5068
      if ftype == TType.STOP:
5069
        break
5070
      if fid == 0:
5071
        if ftype == TType.STRING:
5072
          self.success = iprot.readString();
5073
        else:
5074
          iprot.skip(ftype)
5075
      elif fid == 1:
5076
        if ftype == TType.STRUCT:
5077
          self.isex = CatalogServiceException()
5078
          self.isex.read(iprot)
5079
        else:
5080
          iprot.skip(ftype)
5081
      else:
5082
        iprot.skip(ftype)
5083
      iprot.readFieldEnd()
5084
    iprot.readStructEnd()
5085
 
5086
  def write(self, oprot):
5087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5089
      return
5090
    oprot.writeStructBegin('getItemStatusDescription_result')
5091
    if self.success is not None:
5092
      oprot.writeFieldBegin('success', TType.STRING, 0)
5093
      oprot.writeString(self.success)
5094
      oprot.writeFieldEnd()
5095
    if self.isex is not None:
5096
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5097
      self.isex.write(oprot)
5098
      oprot.writeFieldEnd()
5099
    oprot.writeFieldStop()
5100
    oprot.writeStructEnd()
5101
 
5102
  def validate(self):
5103
    return
5104
 
5105
 
5106
  def __repr__(self):
5107
    L = ['%s=%r' % (key, value)
5108
      for key, value in self.__dict__.iteritems()]
5109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5110
 
5111
  def __eq__(self, other):
5112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5113
 
5114
  def __ne__(self, other):
5115
    return not (self == other)
5116
 
5117
class startItemOn_args:
5118
  """
5119
  Attributes:
5120
   - item_id
5121
   - timestamp
5122
  """
5123
 
5124
  thrift_spec = (
5125
    None, # 0
5126
    (1, TType.I64, 'item_id', None, None, ), # 1
5127
    (2, TType.I64, 'timestamp', None, None, ), # 2
5128
  )
5129
 
5130
  def __init__(self, item_id=None, timestamp=None,):
5131
    self.item_id = item_id
5132
    self.timestamp = timestamp
5133
 
5134
  def read(self, iprot):
5135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5137
      return
5138
    iprot.readStructBegin()
5139
    while True:
5140
      (fname, ftype, fid) = iprot.readFieldBegin()
5141
      if ftype == TType.STOP:
5142
        break
5143
      if fid == 1:
5144
        if ftype == TType.I64:
5145
          self.item_id = iprot.readI64();
5146
        else:
5147
          iprot.skip(ftype)
5148
      elif fid == 2:
5149
        if ftype == TType.I64:
5150
          self.timestamp = iprot.readI64();
5151
        else:
5152
          iprot.skip(ftype)
5153
      else:
5154
        iprot.skip(ftype)
5155
      iprot.readFieldEnd()
5156
    iprot.readStructEnd()
5157
 
5158
  def write(self, oprot):
5159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5161
      return
5162
    oprot.writeStructBegin('startItemOn_args')
5163
    if self.item_id is not None:
5164
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5165
      oprot.writeI64(self.item_id)
5166
      oprot.writeFieldEnd()
5167
    if self.timestamp is not None:
5168
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5169
      oprot.writeI64(self.timestamp)
5170
      oprot.writeFieldEnd()
5171
    oprot.writeFieldStop()
5172
    oprot.writeStructEnd()
5173
 
5174
  def validate(self):
5175
    return
5176
 
5177
 
5178
  def __repr__(self):
5179
    L = ['%s=%r' % (key, value)
5180
      for key, value in self.__dict__.iteritems()]
5181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5182
 
5183
  def __eq__(self, other):
5184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5185
 
5186
  def __ne__(self, other):
5187
    return not (self == other)
5188
 
5189
class startItemOn_result:
5190
  """
5191
  Attributes:
5192
   - cex
5193
  """
5194
 
5195
  thrift_spec = (
5196
    None, # 0
5197
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5198
  )
5199
 
5200
  def __init__(self, cex=None,):
5201
    self.cex = cex
5202
 
5203
  def read(self, iprot):
5204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5206
      return
5207
    iprot.readStructBegin()
5208
    while True:
5209
      (fname, ftype, fid) = iprot.readFieldBegin()
5210
      if ftype == TType.STOP:
5211
        break
5212
      if fid == 1:
5213
        if ftype == TType.STRUCT:
5214
          self.cex = CatalogServiceException()
5215
          self.cex.read(iprot)
5216
        else:
5217
          iprot.skip(ftype)
5218
      else:
5219
        iprot.skip(ftype)
5220
      iprot.readFieldEnd()
5221
    iprot.readStructEnd()
5222
 
5223
  def write(self, oprot):
5224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5226
      return
5227
    oprot.writeStructBegin('startItemOn_result')
5228
    if self.cex is not None:
5229
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5230
      self.cex.write(oprot)
5231
      oprot.writeFieldEnd()
5232
    oprot.writeFieldStop()
5233
    oprot.writeStructEnd()
5234
 
5235
  def validate(self):
5236
    return
5237
 
5238
 
5239
  def __repr__(self):
5240
    L = ['%s=%r' % (key, value)
5241
      for key, value in self.__dict__.iteritems()]
5242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5243
 
5244
  def __eq__(self, other):
5245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5246
 
5247
  def __ne__(self, other):
5248
    return not (self == other)
5249
 
5250
class retireItemOn_args:
5251
  """
5252
  Attributes:
5253
   - item_id
5254
   - timestamp
5255
  """
5256
 
5257
  thrift_spec = (
5258
    None, # 0
5259
    (1, TType.I64, 'item_id', None, None, ), # 1
5260
    (2, TType.I64, 'timestamp', None, None, ), # 2
5261
  )
5262
 
5263
  def __init__(self, item_id=None, timestamp=None,):
5264
    self.item_id = item_id
5265
    self.timestamp = timestamp
5266
 
5267
  def read(self, iprot):
5268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5270
      return
5271
    iprot.readStructBegin()
5272
    while True:
5273
      (fname, ftype, fid) = iprot.readFieldBegin()
5274
      if ftype == TType.STOP:
5275
        break
5276
      if fid == 1:
5277
        if ftype == TType.I64:
5278
          self.item_id = iprot.readI64();
5279
        else:
5280
          iprot.skip(ftype)
5281
      elif fid == 2:
5282
        if ftype == TType.I64:
5283
          self.timestamp = iprot.readI64();
5284
        else:
5285
          iprot.skip(ftype)
5286
      else:
5287
        iprot.skip(ftype)
5288
      iprot.readFieldEnd()
5289
    iprot.readStructEnd()
5290
 
5291
  def write(self, oprot):
5292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5294
      return
5295
    oprot.writeStructBegin('retireItemOn_args')
5296
    if self.item_id is not None:
5297
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5298
      oprot.writeI64(self.item_id)
5299
      oprot.writeFieldEnd()
5300
    if self.timestamp is not None:
5301
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5302
      oprot.writeI64(self.timestamp)
5303
      oprot.writeFieldEnd()
5304
    oprot.writeFieldStop()
5305
    oprot.writeStructEnd()
5306
 
5307
  def validate(self):
5308
    return
5309
 
5310
 
5311
  def __repr__(self):
5312
    L = ['%s=%r' % (key, value)
5313
      for key, value in self.__dict__.iteritems()]
5314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5315
 
5316
  def __eq__(self, other):
5317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5318
 
5319
  def __ne__(self, other):
5320
    return not (self == other)
5321
 
5322
class retireItemOn_result:
5323
  """
5324
  Attributes:
5325
   - cex
5326
  """
5327
 
5328
  thrift_spec = (
5329
    None, # 0
5330
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5331
  )
5332
 
5333
  def __init__(self, cex=None,):
5334
    self.cex = cex
5335
 
5336
  def read(self, iprot):
5337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5339
      return
5340
    iprot.readStructBegin()
5341
    while True:
5342
      (fname, ftype, fid) = iprot.readFieldBegin()
5343
      if ftype == TType.STOP:
5344
        break
5345
      if fid == 1:
5346
        if ftype == TType.STRUCT:
5347
          self.cex = CatalogServiceException()
5348
          self.cex.read(iprot)
5349
        else:
5350
          iprot.skip(ftype)
5351
      else:
5352
        iprot.skip(ftype)
5353
      iprot.readFieldEnd()
5354
    iprot.readStructEnd()
5355
 
5356
  def write(self, oprot):
5357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5359
      return
5360
    oprot.writeStructBegin('retireItemOn_result')
5361
    if self.cex is not None:
5362
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5363
      self.cex.write(oprot)
5364
      oprot.writeFieldEnd()
5365
    oprot.writeFieldStop()
5366
    oprot.writeStructEnd()
5367
 
5368
  def validate(self):
5369
    return
5370
 
5371
 
5372
  def __repr__(self):
5373
    L = ['%s=%r' % (key, value)
5374
      for key, value in self.__dict__.iteritems()]
5375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5376
 
5377
  def __eq__(self, other):
5378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5379
 
5380
  def __ne__(self, other):
5381
    return not (self == other)
5382
 
5383
class changeItemStatus_args:
5384
  """
5385
  Attributes:
5386
   - item_id
5387
   - timestamp
5388
   - newstatus
5389
  """
5390
 
5391
  thrift_spec = (
5392
    None, # 0
5393
    (1, TType.I64, 'item_id', None, None, ), # 1
5394
    (2, TType.I64, 'timestamp', None, None, ), # 2
5395
    (3, TType.I32, 'newstatus', None, None, ), # 3
5396
  )
5397
 
5398
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5399
    self.item_id = item_id
5400
    self.timestamp = timestamp
5401
    self.newstatus = newstatus
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.item_id = iprot.readI64();
5415
        else:
5416
          iprot.skip(ftype)
5417
      elif fid == 2:
5418
        if ftype == TType.I64:
5419
          self.timestamp = iprot.readI64();
5420
        else:
5421
          iprot.skip(ftype)
5422
      elif fid == 3:
5423
        if ftype == TType.I32:
5424
          self.newstatus = iprot.readI32();
5425
        else:
5426
          iprot.skip(ftype)
5427
      else:
5428
        iprot.skip(ftype)
5429
      iprot.readFieldEnd()
5430
    iprot.readStructEnd()
5431
 
5432
  def write(self, oprot):
5433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5435
      return
5436
    oprot.writeStructBegin('changeItemStatus_args')
5437
    if self.item_id is not None:
5438
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5439
      oprot.writeI64(self.item_id)
5440
      oprot.writeFieldEnd()
5441
    if self.timestamp is not None:
5442
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5443
      oprot.writeI64(self.timestamp)
5444
      oprot.writeFieldEnd()
5445
    if self.newstatus is not None:
5446
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5447
      oprot.writeI32(self.newstatus)
5448
      oprot.writeFieldEnd()
5449
    oprot.writeFieldStop()
5450
    oprot.writeStructEnd()
5451
 
5452
  def validate(self):
5453
    return
5454
 
5455
 
5456
  def __repr__(self):
5457
    L = ['%s=%r' % (key, value)
5458
      for key, value in self.__dict__.iteritems()]
5459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5460
 
5461
  def __eq__(self, other):
5462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5463
 
5464
  def __ne__(self, other):
5465
    return not (self == other)
5466
 
5467
class changeItemStatus_result:
5468
  """
5469
  Attributes:
5470
   - cex
5471
  """
5472
 
5473
  thrift_spec = (
5474
    None, # 0
5475
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5476
  )
5477
 
5478
  def __init__(self, cex=None,):
5479
    self.cex = cex
5480
 
5481
  def read(self, iprot):
5482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5484
      return
5485
    iprot.readStructBegin()
5486
    while True:
5487
      (fname, ftype, fid) = iprot.readFieldBegin()
5488
      if ftype == TType.STOP:
5489
        break
5490
      if fid == 1:
5491
        if ftype == TType.STRUCT:
5492
          self.cex = CatalogServiceException()
5493
          self.cex.read(iprot)
5494
        else:
5495
          iprot.skip(ftype)
5496
      else:
5497
        iprot.skip(ftype)
5498
      iprot.readFieldEnd()
5499
    iprot.readStructEnd()
5500
 
5501
  def write(self, oprot):
5502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5504
      return
5505
    oprot.writeStructBegin('changeItemStatus_result')
5506
    if self.cex is not None:
5507
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5508
      self.cex.write(oprot)
5509
      oprot.writeFieldEnd()
5510
    oprot.writeFieldStop()
5511
    oprot.writeStructEnd()
5512
 
5513
  def validate(self):
5514
    return
5515
 
5516
 
5517
  def __repr__(self):
5518
    L = ['%s=%r' % (key, value)
5519
      for key, value in self.__dict__.iteritems()]
5520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5521
 
5522
  def __eq__(self, other):
5523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5524
 
5525
  def __ne__(self, other):
5526
    return not (self == other)
5527
 
5528
class getItem_args:
5529
  """
5530
  Attributes:
5531
   - item_id
5532
  """
5533
 
5534
  thrift_spec = (
5535
    None, # 0
5536
    (1, TType.I64, 'item_id', None, None, ), # 1
5537
  )
5538
 
5539
  def __init__(self, item_id=None,):
5540
    self.item_id = item_id
5541
 
5542
  def read(self, iprot):
5543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5545
      return
5546
    iprot.readStructBegin()
5547
    while True:
5548
      (fname, ftype, fid) = iprot.readFieldBegin()
5549
      if ftype == TType.STOP:
5550
        break
5551
      if fid == 1:
5552
        if ftype == TType.I64:
5553
          self.item_id = iprot.readI64();
5554
        else:
5555
          iprot.skip(ftype)
5556
      else:
5557
        iprot.skip(ftype)
5558
      iprot.readFieldEnd()
5559
    iprot.readStructEnd()
5560
 
5561
  def write(self, oprot):
5562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5564
      return
5565
    oprot.writeStructBegin('getItem_args')
5566
    if self.item_id is not None:
5567
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5568
      oprot.writeI64(self.item_id)
5569
      oprot.writeFieldEnd()
5570
    oprot.writeFieldStop()
5571
    oprot.writeStructEnd()
5572
 
5573
  def validate(self):
5574
    return
5575
 
5576
 
5577
  def __repr__(self):
5578
    L = ['%s=%r' % (key, value)
5579
      for key, value in self.__dict__.iteritems()]
5580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5581
 
5582
  def __eq__(self, other):
5583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5584
 
5585
  def __ne__(self, other):
5586
    return not (self == other)
5587
 
5588
class getItem_result:
5589
  """
5590
  Attributes:
5591
   - success
5592
   - cex
5593
  """
5594
 
5595
  thrift_spec = (
5596
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5597
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5598
  )
5599
 
5600
  def __init__(self, success=None, cex=None,):
5601
    self.success = success
5602
    self.cex = cex
5603
 
5604
  def read(self, iprot):
5605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5607
      return
5608
    iprot.readStructBegin()
5609
    while True:
5610
      (fname, ftype, fid) = iprot.readFieldBegin()
5611
      if ftype == TType.STOP:
5612
        break
5613
      if fid == 0:
5614
        if ftype == TType.STRUCT:
5615
          self.success = Item()
5616
          self.success.read(iprot)
5617
        else:
5618
          iprot.skip(ftype)
5619
      elif fid == 1:
5620
        if ftype == TType.STRUCT:
5621
          self.cex = CatalogServiceException()
5622
          self.cex.read(iprot)
5623
        else:
5624
          iprot.skip(ftype)
5625
      else:
5626
        iprot.skip(ftype)
5627
      iprot.readFieldEnd()
5628
    iprot.readStructEnd()
5629
 
5630
  def write(self, oprot):
5631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5633
      return
5634
    oprot.writeStructBegin('getItem_result')
5635
    if self.success is not None:
5636
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5637
      self.success.write(oprot)
5638
      oprot.writeFieldEnd()
5639
    if self.cex is not None:
5640
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5641
      self.cex.write(oprot)
5642
      oprot.writeFieldEnd()
5643
    oprot.writeFieldStop()
5644
    oprot.writeStructEnd()
5645
 
5646
  def validate(self):
5647
    return
5648
 
5649
 
5650
  def __repr__(self):
5651
    L = ['%s=%r' % (key, value)
5652
      for key, value in self.__dict__.iteritems()]
5653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5654
 
5655
  def __eq__(self, other):
5656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5657
 
5658
  def __ne__(self, other):
5659
    return not (self == other)
5660
 
5661
class getItemsByCatalogId_args:
5662
  """
5663
  Attributes:
5664
   - catalog_item_id
5665
  """
5666
 
5667
  thrift_spec = (
5668
    None, # 0
5669
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5670
  )
5671
 
5672
  def __init__(self, catalog_item_id=None,):
5673
    self.catalog_item_id = catalog_item_id
5674
 
5675
  def read(self, iprot):
5676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5678
      return
5679
    iprot.readStructBegin()
5680
    while True:
5681
      (fname, ftype, fid) = iprot.readFieldBegin()
5682
      if ftype == TType.STOP:
5683
        break
5684
      if fid == 1:
5685
        if ftype == TType.I64:
5686
          self.catalog_item_id = iprot.readI64();
5687
        else:
5688
          iprot.skip(ftype)
5689
      else:
5690
        iprot.skip(ftype)
5691
      iprot.readFieldEnd()
5692
    iprot.readStructEnd()
5693
 
5694
  def write(self, oprot):
5695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5697
      return
5698
    oprot.writeStructBegin('getItemsByCatalogId_args')
5699
    if self.catalog_item_id is not None:
5700
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5701
      oprot.writeI64(self.catalog_item_id)
5702
      oprot.writeFieldEnd()
5703
    oprot.writeFieldStop()
5704
    oprot.writeStructEnd()
5705
 
5706
  def validate(self):
5707
    return
5708
 
5709
 
5710
  def __repr__(self):
5711
    L = ['%s=%r' % (key, value)
5712
      for key, value in self.__dict__.iteritems()]
5713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5714
 
5715
  def __eq__(self, other):
5716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5717
 
5718
  def __ne__(self, other):
5719
    return not (self == other)
5720
 
5721
class getItemsByCatalogId_result:
5722
  """
5723
  Attributes:
5724
   - success
5725
   - cex
5726
  """
5727
 
5728
  thrift_spec = (
5729
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5730
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5731
  )
5732
 
5733
  def __init__(self, success=None, cex=None,):
5734
    self.success = success
5735
    self.cex = cex
5736
 
5737
  def read(self, iprot):
5738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5740
      return
5741
    iprot.readStructBegin()
5742
    while True:
5743
      (fname, ftype, fid) = iprot.readFieldBegin()
5744
      if ftype == TType.STOP:
5745
        break
5746
      if fid == 0:
5747
        if ftype == TType.LIST:
5748
          self.success = []
5749
          (_etype19, _size16) = iprot.readListBegin()
5750
          for _i20 in xrange(_size16):
5751
            _elem21 = Item()
5752
            _elem21.read(iprot)
5753
            self.success.append(_elem21)
5754
          iprot.readListEnd()
5755
        else:
5756
          iprot.skip(ftype)
5757
      elif fid == 1:
5758
        if ftype == TType.STRUCT:
5759
          self.cex = CatalogServiceException()
5760
          self.cex.read(iprot)
5761
        else:
5762
          iprot.skip(ftype)
5763
      else:
5764
        iprot.skip(ftype)
5765
      iprot.readFieldEnd()
5766
    iprot.readStructEnd()
5767
 
5768
  def write(self, oprot):
5769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5771
      return
5772
    oprot.writeStructBegin('getItemsByCatalogId_result')
5773
    if self.success is not None:
5774
      oprot.writeFieldBegin('success', TType.LIST, 0)
5775
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5776
      for iter22 in self.success:
5777
        iter22.write(oprot)
5778
      oprot.writeListEnd()
5779
      oprot.writeFieldEnd()
5780
    if self.cex is not None:
5781
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5782
      self.cex.write(oprot)
5783
      oprot.writeFieldEnd()
5784
    oprot.writeFieldStop()
5785
    oprot.writeStructEnd()
5786
 
5787
  def validate(self):
5788
    return
5789
 
5790
 
5791
  def __repr__(self):
5792
    L = ['%s=%r' % (key, value)
5793
      for key, value in self.__dict__.iteritems()]
5794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5795
 
5796
  def __eq__(self, other):
5797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5798
 
5799
  def __ne__(self, other):
5800
    return not (self == other)
5801
 
5802
class getValidItemsByCatalogId_args:
5803
  """
5804
  Attributes:
5805
   - catalog_item_id
5806
  """
5807
 
5808
  thrift_spec = (
5809
    None, # 0
5810
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5811
  )
5812
 
5813
  def __init__(self, catalog_item_id=None,):
5814
    self.catalog_item_id = catalog_item_id
5815
 
5816
  def read(self, iprot):
5817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5819
      return
5820
    iprot.readStructBegin()
5821
    while True:
5822
      (fname, ftype, fid) = iprot.readFieldBegin()
5823
      if ftype == TType.STOP:
5824
        break
5825
      if fid == 1:
5826
        if ftype == TType.I64:
5827
          self.catalog_item_id = iprot.readI64();
5828
        else:
5829
          iprot.skip(ftype)
5830
      else:
5831
        iprot.skip(ftype)
5832
      iprot.readFieldEnd()
5833
    iprot.readStructEnd()
5834
 
5835
  def write(self, oprot):
5836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5838
      return
5839
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5840
    if self.catalog_item_id is not None:
5841
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5842
      oprot.writeI64(self.catalog_item_id)
5843
      oprot.writeFieldEnd()
5844
    oprot.writeFieldStop()
5845
    oprot.writeStructEnd()
5846
 
5847
  def validate(self):
5848
    return
5849
 
5850
 
5851
  def __repr__(self):
5852
    L = ['%s=%r' % (key, value)
5853
      for key, value in self.__dict__.iteritems()]
5854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5855
 
5856
  def __eq__(self, other):
5857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5858
 
5859
  def __ne__(self, other):
5860
    return not (self == other)
5861
 
5862
class getValidItemsByCatalogId_result:
5863
  """
5864
  Attributes:
5865
   - success
5866
   - cex
5867
  """
5868
 
5869
  thrift_spec = (
5870
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5871
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5872
  )
5873
 
5874
  def __init__(self, success=None, cex=None,):
5875
    self.success = success
5876
    self.cex = cex
5877
 
5878
  def read(self, iprot):
5879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5881
      return
5882
    iprot.readStructBegin()
5883
    while True:
5884
      (fname, ftype, fid) = iprot.readFieldBegin()
5885
      if ftype == TType.STOP:
5886
        break
5887
      if fid == 0:
5888
        if ftype == TType.LIST:
5889
          self.success = []
5890
          (_etype26, _size23) = iprot.readListBegin()
5891
          for _i27 in xrange(_size23):
5892
            _elem28 = Item()
5893
            _elem28.read(iprot)
5894
            self.success.append(_elem28)
5895
          iprot.readListEnd()
5896
        else:
5897
          iprot.skip(ftype)
5898
      elif fid == 1:
5899
        if ftype == TType.STRUCT:
5900
          self.cex = CatalogServiceException()
5901
          self.cex.read(iprot)
5902
        else:
5903
          iprot.skip(ftype)
5904
      else:
5905
        iprot.skip(ftype)
5906
      iprot.readFieldEnd()
5907
    iprot.readStructEnd()
5908
 
5909
  def write(self, oprot):
5910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5912
      return
5913
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5914
    if self.success is not None:
5915
      oprot.writeFieldBegin('success', TType.LIST, 0)
5916
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5917
      for iter29 in self.success:
5918
        iter29.write(oprot)
5919
      oprot.writeListEnd()
5920
      oprot.writeFieldEnd()
5921
    if self.cex is not None:
5922
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5923
      self.cex.write(oprot)
5924
      oprot.writeFieldEnd()
5925
    oprot.writeFieldStop()
5926
    oprot.writeStructEnd()
5927
 
5928
  def validate(self):
5929
    return
5930
 
5931
 
5932
  def __repr__(self):
5933
    L = ['%s=%r' % (key, value)
5934
      for key, value in self.__dict__.iteritems()]
5935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5936
 
5937
  def __eq__(self, other):
5938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5939
 
5940
  def __ne__(self, other):
5941
    return not (self == other)
5942
 
5943
class getAllItems_args:
5944
  """
5945
  Attributes:
5946
   - isActive
5947
  """
5948
 
5949
  thrift_spec = (
5950
    None, # 0
5951
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5952
  )
5953
 
5954
  def __init__(self, isActive=None,):
5955
    self.isActive = isActive
5956
 
5957
  def read(self, iprot):
5958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5960
      return
5961
    iprot.readStructBegin()
5962
    while True:
5963
      (fname, ftype, fid) = iprot.readFieldBegin()
5964
      if ftype == TType.STOP:
5965
        break
5966
      if fid == 1:
5967
        if ftype == TType.BOOL:
5968
          self.isActive = iprot.readBool();
5969
        else:
5970
          iprot.skip(ftype)
5971
      else:
5972
        iprot.skip(ftype)
5973
      iprot.readFieldEnd()
5974
    iprot.readStructEnd()
5975
 
5976
  def write(self, oprot):
5977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5979
      return
5980
    oprot.writeStructBegin('getAllItems_args')
5981
    if self.isActive is not None:
5982
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5983
      oprot.writeBool(self.isActive)
5984
      oprot.writeFieldEnd()
5985
    oprot.writeFieldStop()
5986
    oprot.writeStructEnd()
5987
 
5988
  def validate(self):
5989
    return
5990
 
5991
 
5992
  def __repr__(self):
5993
    L = ['%s=%r' % (key, value)
5994
      for key, value in self.__dict__.iteritems()]
5995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5996
 
5997
  def __eq__(self, other):
5998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5999
 
6000
  def __ne__(self, other):
6001
    return not (self == other)
6002
 
6003
class getAllItems_result:
6004
  """
6005
  Attributes:
6006
   - success
6007
   - cex
6008
  """
6009
 
6010
  thrift_spec = (
6011
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6012
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6013
  )
6014
 
6015
  def __init__(self, success=None, cex=None,):
6016
    self.success = success
6017
    self.cex = cex
6018
 
6019
  def read(self, iprot):
6020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6022
      return
6023
    iprot.readStructBegin()
6024
    while True:
6025
      (fname, ftype, fid) = iprot.readFieldBegin()
6026
      if ftype == TType.STOP:
6027
        break
6028
      if fid == 0:
6029
        if ftype == TType.LIST:
6030
          self.success = []
6031
          (_etype33, _size30) = iprot.readListBegin()
6032
          for _i34 in xrange(_size30):
6033
            _elem35 = Item()
6034
            _elem35.read(iprot)
6035
            self.success.append(_elem35)
6036
          iprot.readListEnd()
6037
        else:
6038
          iprot.skip(ftype)
6039
      elif fid == 1:
6040
        if ftype == TType.STRUCT:
6041
          self.cex = CatalogServiceException()
6042
          self.cex.read(iprot)
6043
        else:
6044
          iprot.skip(ftype)
6045
      else:
6046
        iprot.skip(ftype)
6047
      iprot.readFieldEnd()
6048
    iprot.readStructEnd()
6049
 
6050
  def write(self, oprot):
6051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6053
      return
6054
    oprot.writeStructBegin('getAllItems_result')
6055
    if self.success is not None:
6056
      oprot.writeFieldBegin('success', TType.LIST, 0)
6057
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6058
      for iter36 in self.success:
6059
        iter36.write(oprot)
6060
      oprot.writeListEnd()
6061
      oprot.writeFieldEnd()
6062
    if self.cex is not None:
6063
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6064
      self.cex.write(oprot)
6065
      oprot.writeFieldEnd()
6066
    oprot.writeFieldStop()
6067
    oprot.writeStructEnd()
6068
 
6069
  def validate(self):
6070
    return
6071
 
6072
 
6073
  def __repr__(self):
6074
    L = ['%s=%r' % (key, value)
6075
      for key, value in self.__dict__.iteritems()]
6076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6077
 
6078
  def __eq__(self, other):
6079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6080
 
6081
  def __ne__(self, other):
6082
    return not (self == other)
6083
 
6084
class getAllItemsByStatus_args:
6085
  """
6086
  Attributes:
6087
   - itemStatus
6088
  """
6089
 
6090
  thrift_spec = (
6091
    None, # 0
6092
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6093
  )
6094
 
6095
  def __init__(self, itemStatus=None,):
6096
    self.itemStatus = itemStatus
6097
 
6098
  def read(self, iprot):
6099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6101
      return
6102
    iprot.readStructBegin()
6103
    while True:
6104
      (fname, ftype, fid) = iprot.readFieldBegin()
6105
      if ftype == TType.STOP:
6106
        break
6107
      if fid == 1:
6108
        if ftype == TType.I32:
6109
          self.itemStatus = iprot.readI32();
6110
        else:
6111
          iprot.skip(ftype)
6112
      else:
6113
        iprot.skip(ftype)
6114
      iprot.readFieldEnd()
6115
    iprot.readStructEnd()
6116
 
6117
  def write(self, oprot):
6118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6120
      return
6121
    oprot.writeStructBegin('getAllItemsByStatus_args')
6122
    if self.itemStatus is not None:
6123
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6124
      oprot.writeI32(self.itemStatus)
6125
      oprot.writeFieldEnd()
6126
    oprot.writeFieldStop()
6127
    oprot.writeStructEnd()
6128
 
6129
  def validate(self):
6130
    return
6131
 
6132
 
6133
  def __repr__(self):
6134
    L = ['%s=%r' % (key, value)
6135
      for key, value in self.__dict__.iteritems()]
6136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6137
 
6138
  def __eq__(self, other):
6139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6140
 
6141
  def __ne__(self, other):
6142
    return not (self == other)
6143
 
6144
class getAllItemsByStatus_result:
6145
  """
6146
  Attributes:
6147
   - success
6148
   - cex
6149
  """
6150
 
6151
  thrift_spec = (
6152
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6153
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6154
  )
6155
 
6156
  def __init__(self, success=None, cex=None,):
6157
    self.success = success
6158
    self.cex = cex
6159
 
6160
  def read(self, iprot):
6161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6163
      return
6164
    iprot.readStructBegin()
6165
    while True:
6166
      (fname, ftype, fid) = iprot.readFieldBegin()
6167
      if ftype == TType.STOP:
6168
        break
6169
      if fid == 0:
6170
        if ftype == TType.LIST:
6171
          self.success = []
6172
          (_etype40, _size37) = iprot.readListBegin()
6173
          for _i41 in xrange(_size37):
6174
            _elem42 = Item()
6175
            _elem42.read(iprot)
6176
            self.success.append(_elem42)
6177
          iprot.readListEnd()
6178
        else:
6179
          iprot.skip(ftype)
6180
      elif fid == 1:
6181
        if ftype == TType.STRUCT:
6182
          self.cex = CatalogServiceException()
6183
          self.cex.read(iprot)
6184
        else:
6185
          iprot.skip(ftype)
6186
      else:
6187
        iprot.skip(ftype)
6188
      iprot.readFieldEnd()
6189
    iprot.readStructEnd()
6190
 
6191
  def write(self, oprot):
6192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6194
      return
6195
    oprot.writeStructBegin('getAllItemsByStatus_result')
6196
    if self.success is not None:
6197
      oprot.writeFieldBegin('success', TType.LIST, 0)
6198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6199
      for iter43 in self.success:
6200
        iter43.write(oprot)
6201
      oprot.writeListEnd()
6202
      oprot.writeFieldEnd()
6203
    if self.cex is not None:
6204
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6205
      self.cex.write(oprot)
6206
      oprot.writeFieldEnd()
6207
    oprot.writeFieldStop()
6208
    oprot.writeStructEnd()
6209
 
6210
  def validate(self):
6211
    return
6212
 
6213
 
6214
  def __repr__(self):
6215
    L = ['%s=%r' % (key, value)
6216
      for key, value in self.__dict__.iteritems()]
6217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6218
 
6219
  def __eq__(self, other):
6220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6221
 
6222
  def __ne__(self, other):
6223
    return not (self == other)
6224
 
6225
class markItemAsContentComplete_args:
6226
  """
6227
  Attributes:
6228
   - entityId
6229
   - category
6230
   - brand
6231
   - modelName
6232
   - modelNumber
6233
  """
6234
 
6235
  thrift_spec = (
6236
    None, # 0
6237
    (1, TType.I64, 'entityId', None, None, ), # 1
6238
    (2, TType.I64, 'category', None, None, ), # 2
6239
    (3, TType.STRING, 'brand', None, None, ), # 3
6240
    (4, TType.STRING, 'modelName', None, None, ), # 4
6241
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6242
  )
6243
 
6244
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6245
    self.entityId = entityId
6246
    self.category = category
6247
    self.brand = brand
6248
    self.modelName = modelName
6249
    self.modelNumber = modelNumber
6250
 
6251
  def read(self, iprot):
6252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6254
      return
6255
    iprot.readStructBegin()
6256
    while True:
6257
      (fname, ftype, fid) = iprot.readFieldBegin()
6258
      if ftype == TType.STOP:
6259
        break
6260
      if fid == 1:
6261
        if ftype == TType.I64:
6262
          self.entityId = iprot.readI64();
6263
        else:
6264
          iprot.skip(ftype)
6265
      elif fid == 2:
6266
        if ftype == TType.I64:
6267
          self.category = iprot.readI64();
6268
        else:
6269
          iprot.skip(ftype)
6270
      elif fid == 3:
6271
        if ftype == TType.STRING:
6272
          self.brand = iprot.readString();
6273
        else:
6274
          iprot.skip(ftype)
6275
      elif fid == 4:
6276
        if ftype == TType.STRING:
6277
          self.modelName = iprot.readString();
6278
        else:
6279
          iprot.skip(ftype)
6280
      elif fid == 5:
6281
        if ftype == TType.STRING:
6282
          self.modelNumber = iprot.readString();
6283
        else:
6284
          iprot.skip(ftype)
6285
      else:
6286
        iprot.skip(ftype)
6287
      iprot.readFieldEnd()
6288
    iprot.readStructEnd()
6289
 
6290
  def write(self, oprot):
6291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6293
      return
6294
    oprot.writeStructBegin('markItemAsContentComplete_args')
6295
    if self.entityId is not None:
6296
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6297
      oprot.writeI64(self.entityId)
6298
      oprot.writeFieldEnd()
6299
    if self.category is not None:
6300
      oprot.writeFieldBegin('category', TType.I64, 2)
6301
      oprot.writeI64(self.category)
6302
      oprot.writeFieldEnd()
6303
    if self.brand is not None:
6304
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6305
      oprot.writeString(self.brand)
6306
      oprot.writeFieldEnd()
6307
    if self.modelName is not None:
6308
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6309
      oprot.writeString(self.modelName)
6310
      oprot.writeFieldEnd()
6311
    if self.modelNumber is not None:
6312
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6313
      oprot.writeString(self.modelNumber)
6314
      oprot.writeFieldEnd()
6315
    oprot.writeFieldStop()
6316
    oprot.writeStructEnd()
6317
 
6318
  def validate(self):
6319
    return
6320
 
6321
 
6322
  def __repr__(self):
6323
    L = ['%s=%r' % (key, value)
6324
      for key, value in self.__dict__.iteritems()]
6325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6326
 
6327
  def __eq__(self, other):
6328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6329
 
6330
  def __ne__(self, other):
6331
    return not (self == other)
6332
 
6333
class markItemAsContentComplete_result:
6334
  """
6335
  Attributes:
6336
   - success
6337
   - cex
6338
  """
6339
 
6340
  thrift_spec = (
6341
    (0, TType.BOOL, 'success', None, None, ), # 0
6342
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6343
  )
6344
 
6345
  def __init__(self, success=None, cex=None,):
6346
    self.success = success
6347
    self.cex = cex
6348
 
6349
  def read(self, iprot):
6350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6352
      return
6353
    iprot.readStructBegin()
6354
    while True:
6355
      (fname, ftype, fid) = iprot.readFieldBegin()
6356
      if ftype == TType.STOP:
6357
        break
6358
      if fid == 0:
6359
        if ftype == TType.BOOL:
6360
          self.success = iprot.readBool();
6361
        else:
6362
          iprot.skip(ftype)
6363
      elif fid == 1:
6364
        if ftype == TType.STRUCT:
6365
          self.cex = CatalogServiceException()
6366
          self.cex.read(iprot)
6367
        else:
6368
          iprot.skip(ftype)
6369
      else:
6370
        iprot.skip(ftype)
6371
      iprot.readFieldEnd()
6372
    iprot.readStructEnd()
6373
 
6374
  def write(self, oprot):
6375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6377
      return
6378
    oprot.writeStructBegin('markItemAsContentComplete_result')
6379
    if self.success is not None:
6380
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6381
      oprot.writeBool(self.success)
6382
      oprot.writeFieldEnd()
6383
    if self.cex is not None:
6384
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6385
      self.cex.write(oprot)
6386
      oprot.writeFieldEnd()
6387
    oprot.writeFieldStop()
6388
    oprot.writeStructEnd()
6389
 
6390
  def validate(self):
6391
    return
6392
 
6393
 
6394
  def __repr__(self):
6395
    L = ['%s=%r' % (key, value)
6396
      for key, value in self.__dict__.iteritems()]
6397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6398
 
6399
  def __eq__(self, other):
6400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6401
 
6402
  def __ne__(self, other):
6403
    return not (self == other)
6404
 
6405
class getAllItemsInRange_args:
6406
  """
6407
  Attributes:
6408
   - offset
6409
   - limit
6410
  """
6411
 
6412
  thrift_spec = (
6413
    None, # 0
6414
    (1, TType.I64, 'offset', None, None, ), # 1
6415
    (2, TType.I64, 'limit', None, None, ), # 2
6416
  )
6417
 
6418
  def __init__(self, offset=None, limit=None,):
6419
    self.offset = offset
6420
    self.limit = limit
6421
 
6422
  def read(self, iprot):
6423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6425
      return
6426
    iprot.readStructBegin()
6427
    while True:
6428
      (fname, ftype, fid) = iprot.readFieldBegin()
6429
      if ftype == TType.STOP:
6430
        break
6431
      if fid == 1:
6432
        if ftype == TType.I64:
6433
          self.offset = iprot.readI64();
6434
        else:
6435
          iprot.skip(ftype)
6436
      elif fid == 2:
6437
        if ftype == TType.I64:
6438
          self.limit = iprot.readI64();
6439
        else:
6440
          iprot.skip(ftype)
6441
      else:
6442
        iprot.skip(ftype)
6443
      iprot.readFieldEnd()
6444
    iprot.readStructEnd()
6445
 
6446
  def write(self, oprot):
6447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6449
      return
6450
    oprot.writeStructBegin('getAllItemsInRange_args')
6451
    if self.offset is not None:
6452
      oprot.writeFieldBegin('offset', TType.I64, 1)
6453
      oprot.writeI64(self.offset)
6454
      oprot.writeFieldEnd()
6455
    if self.limit is not None:
6456
      oprot.writeFieldBegin('limit', TType.I64, 2)
6457
      oprot.writeI64(self.limit)
6458
      oprot.writeFieldEnd()
6459
    oprot.writeFieldStop()
6460
    oprot.writeStructEnd()
6461
 
6462
  def validate(self):
6463
    return
6464
 
6465
 
6466
  def __repr__(self):
6467
    L = ['%s=%r' % (key, value)
6468
      for key, value in self.__dict__.iteritems()]
6469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6470
 
6471
  def __eq__(self, other):
6472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6473
 
6474
  def __ne__(self, other):
6475
    return not (self == other)
6476
 
6477
class getAllItemsInRange_result:
6478
  """
6479
  Attributes:
6480
   - success
6481
   - cex
6482
  """
6483
 
6484
  thrift_spec = (
6485
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6486
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6487
  )
6488
 
6489
  def __init__(self, success=None, cex=None,):
6490
    self.success = success
6491
    self.cex = cex
6492
 
6493
  def read(self, iprot):
6494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6496
      return
6497
    iprot.readStructBegin()
6498
    while True:
6499
      (fname, ftype, fid) = iprot.readFieldBegin()
6500
      if ftype == TType.STOP:
6501
        break
6502
      if fid == 0:
6503
        if ftype == TType.LIST:
6504
          self.success = []
6505
          (_etype47, _size44) = iprot.readListBegin()
6506
          for _i48 in xrange(_size44):
6507
            _elem49 = Item()
6508
            _elem49.read(iprot)
6509
            self.success.append(_elem49)
6510
          iprot.readListEnd()
6511
        else:
6512
          iprot.skip(ftype)
6513
      elif fid == 1:
6514
        if ftype == TType.STRUCT:
6515
          self.cex = CatalogServiceException()
6516
          self.cex.read(iprot)
6517
        else:
6518
          iprot.skip(ftype)
6519
      else:
6520
        iprot.skip(ftype)
6521
      iprot.readFieldEnd()
6522
    iprot.readStructEnd()
6523
 
6524
  def write(self, oprot):
6525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6527
      return
6528
    oprot.writeStructBegin('getAllItemsInRange_result')
6529
    if self.success is not None:
6530
      oprot.writeFieldBegin('success', TType.LIST, 0)
6531
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6532
      for iter50 in self.success:
6533
        iter50.write(oprot)
6534
      oprot.writeListEnd()
6535
      oprot.writeFieldEnd()
6536
    if self.cex is not None:
6537
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6538
      self.cex.write(oprot)
6539
      oprot.writeFieldEnd()
6540
    oprot.writeFieldStop()
6541
    oprot.writeStructEnd()
6542
 
6543
  def validate(self):
6544
    return
6545
 
6546
 
6547
  def __repr__(self):
6548
    L = ['%s=%r' % (key, value)
6549
      for key, value in self.__dict__.iteritems()]
6550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6551
 
6552
  def __eq__(self, other):
6553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6554
 
6555
  def __ne__(self, other):
6556
    return not (self == other)
6557
 
6558
class getAllItemsByStatusInRange_args:
6559
  """
6560
  Attributes:
6561
   - itemStatus
6562
   - offset
6563
   - limit
6564
  """
6565
 
6566
  thrift_spec = (
6567
    None, # 0
6568
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6569
    (2, TType.I64, 'offset', None, None, ), # 2
6570
    (3, TType.I64, 'limit', None, None, ), # 3
6571
  )
6572
 
6573
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6574
    self.itemStatus = itemStatus
6575
    self.offset = offset
6576
    self.limit = limit
6577
 
6578
  def read(self, iprot):
6579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6581
      return
6582
    iprot.readStructBegin()
6583
    while True:
6584
      (fname, ftype, fid) = iprot.readFieldBegin()
6585
      if ftype == TType.STOP:
6586
        break
6587
      if fid == 1:
6588
        if ftype == TType.I32:
6589
          self.itemStatus = iprot.readI32();
6590
        else:
6591
          iprot.skip(ftype)
6592
      elif fid == 2:
6593
        if ftype == TType.I64:
6594
          self.offset = iprot.readI64();
6595
        else:
6596
          iprot.skip(ftype)
6597
      elif fid == 3:
6598
        if ftype == TType.I64:
6599
          self.limit = iprot.readI64();
6600
        else:
6601
          iprot.skip(ftype)
6602
      else:
6603
        iprot.skip(ftype)
6604
      iprot.readFieldEnd()
6605
    iprot.readStructEnd()
6606
 
6607
  def write(self, oprot):
6608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6610
      return
6611
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6612
    if self.itemStatus is not None:
6613
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6614
      oprot.writeI32(self.itemStatus)
6615
      oprot.writeFieldEnd()
6616
    if self.offset is not None:
6617
      oprot.writeFieldBegin('offset', TType.I64, 2)
6618
      oprot.writeI64(self.offset)
6619
      oprot.writeFieldEnd()
6620
    if self.limit is not None:
6621
      oprot.writeFieldBegin('limit', TType.I64, 3)
6622
      oprot.writeI64(self.limit)
6623
      oprot.writeFieldEnd()
6624
    oprot.writeFieldStop()
6625
    oprot.writeStructEnd()
6626
 
6627
  def validate(self):
6628
    return
6629
 
6630
 
6631
  def __repr__(self):
6632
    L = ['%s=%r' % (key, value)
6633
      for key, value in self.__dict__.iteritems()]
6634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6635
 
6636
  def __eq__(self, other):
6637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6638
 
6639
  def __ne__(self, other):
6640
    return not (self == other)
6641
 
6642
class getAllItemsByStatusInRange_result:
6643
  """
6644
  Attributes:
6645
   - success
6646
   - cex
6647
  """
6648
 
6649
  thrift_spec = (
6650
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6651
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6652
  )
6653
 
6654
  def __init__(self, success=None, cex=None,):
6655
    self.success = success
6656
    self.cex = cex
6657
 
6658
  def read(self, iprot):
6659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6661
      return
6662
    iprot.readStructBegin()
6663
    while True:
6664
      (fname, ftype, fid) = iprot.readFieldBegin()
6665
      if ftype == TType.STOP:
6666
        break
6667
      if fid == 0:
6668
        if ftype == TType.LIST:
6669
          self.success = []
6670
          (_etype54, _size51) = iprot.readListBegin()
6671
          for _i55 in xrange(_size51):
6672
            _elem56 = Item()
6673
            _elem56.read(iprot)
6674
            self.success.append(_elem56)
6675
          iprot.readListEnd()
6676
        else:
6677
          iprot.skip(ftype)
6678
      elif fid == 1:
6679
        if ftype == TType.STRUCT:
6680
          self.cex = CatalogServiceException()
6681
          self.cex.read(iprot)
6682
        else:
6683
          iprot.skip(ftype)
6684
      else:
6685
        iprot.skip(ftype)
6686
      iprot.readFieldEnd()
6687
    iprot.readStructEnd()
6688
 
6689
  def write(self, oprot):
6690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6692
      return
6693
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6694
    if self.success is not None:
6695
      oprot.writeFieldBegin('success', TType.LIST, 0)
6696
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6697
      for iter57 in self.success:
6698
        iter57.write(oprot)
6699
      oprot.writeListEnd()
6700
      oprot.writeFieldEnd()
6701
    if self.cex is not None:
6702
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6703
      self.cex.write(oprot)
6704
      oprot.writeFieldEnd()
6705
    oprot.writeFieldStop()
6706
    oprot.writeStructEnd()
6707
 
6708
  def validate(self):
6709
    return
6710
 
6711
 
6712
  def __repr__(self):
6713
    L = ['%s=%r' % (key, value)
6714
      for key, value in self.__dict__.iteritems()]
6715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6716
 
6717
  def __eq__(self, other):
6718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6719
 
6720
  def __ne__(self, other):
6721
    return not (self == other)
6722
 
6723
class getItemCountByStatus_args:
6724
  """
6725
  Attributes:
6726
   - useStatus
6727
   - itemStatus
6728
  """
6729
 
6730
  thrift_spec = (
6731
    None, # 0
6732
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6733
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6734
  )
6735
 
6736
  def __init__(self, useStatus=None, itemStatus=None,):
6737
    self.useStatus = useStatus
6738
    self.itemStatus = itemStatus
6739
 
6740
  def read(self, iprot):
6741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6743
      return
6744
    iprot.readStructBegin()
6745
    while True:
6746
      (fname, ftype, fid) = iprot.readFieldBegin()
6747
      if ftype == TType.STOP:
6748
        break
6749
      if fid == 1:
6750
        if ftype == TType.BOOL:
6751
          self.useStatus = iprot.readBool();
6752
        else:
6753
          iprot.skip(ftype)
6754
      elif fid == 2:
6755
        if ftype == TType.I32:
6756
          self.itemStatus = iprot.readI32();
6757
        else:
6758
          iprot.skip(ftype)
6759
      else:
6760
        iprot.skip(ftype)
6761
      iprot.readFieldEnd()
6762
    iprot.readStructEnd()
6763
 
6764
  def write(self, oprot):
6765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6767
      return
6768
    oprot.writeStructBegin('getItemCountByStatus_args')
6769
    if self.useStatus is not None:
6770
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6771
      oprot.writeBool(self.useStatus)
6772
      oprot.writeFieldEnd()
6773
    if self.itemStatus is not None:
6774
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6775
      oprot.writeI32(self.itemStatus)
6776
      oprot.writeFieldEnd()
6777
    oprot.writeFieldStop()
6778
    oprot.writeStructEnd()
6779
 
6780
  def validate(self):
6781
    return
6782
 
6783
 
6784
  def __repr__(self):
6785
    L = ['%s=%r' % (key, value)
6786
      for key, value in self.__dict__.iteritems()]
6787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6788
 
6789
  def __eq__(self, other):
6790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6791
 
6792
  def __ne__(self, other):
6793
    return not (self == other)
6794
 
6795
class getItemCountByStatus_result:
6796
  """
6797
  Attributes:
6798
   - success
6799
  """
6800
 
6801
  thrift_spec = (
6802
    (0, TType.I32, 'success', None, None, ), # 0
6803
  )
6804
 
6805
  def __init__(self, success=None,):
6806
    self.success = success
6807
 
6808
  def read(self, iprot):
6809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6811
      return
6812
    iprot.readStructBegin()
6813
    while True:
6814
      (fname, ftype, fid) = iprot.readFieldBegin()
6815
      if ftype == TType.STOP:
6816
        break
6817
      if fid == 0:
6818
        if ftype == TType.I32:
6819
          self.success = iprot.readI32();
6820
        else:
6821
          iprot.skip(ftype)
6822
      else:
6823
        iprot.skip(ftype)
6824
      iprot.readFieldEnd()
6825
    iprot.readStructEnd()
6826
 
6827
  def write(self, oprot):
6828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6830
      return
6831
    oprot.writeStructBegin('getItemCountByStatus_result')
6832
    if self.success is not None:
6833
      oprot.writeFieldBegin('success', TType.I32, 0)
6834
      oprot.writeI32(self.success)
6835
      oprot.writeFieldEnd()
6836
    oprot.writeFieldStop()
6837
    oprot.writeStructEnd()
6838
 
6839
  def validate(self):
6840
    return
6841
 
6842
 
6843
  def __repr__(self):
6844
    L = ['%s=%r' % (key, value)
6845
      for key, value in self.__dict__.iteritems()]
6846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6847
 
6848
  def __eq__(self, other):
6849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6850
 
6851
  def __ne__(self, other):
6852
    return not (self == other)
6853
 
6854
class getBestSellers_args:
6855
 
6856
  thrift_spec = (
6857
  )
6858
 
6859
  def read(self, iprot):
6860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6862
      return
6863
    iprot.readStructBegin()
6864
    while True:
6865
      (fname, ftype, fid) = iprot.readFieldBegin()
6866
      if ftype == TType.STOP:
6867
        break
6868
      else:
6869
        iprot.skip(ftype)
6870
      iprot.readFieldEnd()
6871
    iprot.readStructEnd()
6872
 
6873
  def write(self, oprot):
6874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6876
      return
6877
    oprot.writeStructBegin('getBestSellers_args')
6878
    oprot.writeFieldStop()
6879
    oprot.writeStructEnd()
6880
 
6881
  def validate(self):
6882
    return
6883
 
6884
 
6885
  def __repr__(self):
6886
    L = ['%s=%r' % (key, value)
6887
      for key, value in self.__dict__.iteritems()]
6888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6889
 
6890
  def __eq__(self, other):
6891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6892
 
6893
  def __ne__(self, other):
6894
    return not (self == other)
6895
 
6896
class getBestSellers_result:
6897
  """
6898
  Attributes:
6899
   - success
6900
   - isex
6901
  """
6902
 
6903
  thrift_spec = (
6904
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6905
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6906
  )
6907
 
6908
  def __init__(self, success=None, isex=None,):
6909
    self.success = success
6910
    self.isex = isex
6911
 
6912
  def read(self, iprot):
6913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6915
      return
6916
    iprot.readStructBegin()
6917
    while True:
6918
      (fname, ftype, fid) = iprot.readFieldBegin()
6919
      if ftype == TType.STOP:
6920
        break
6921
      if fid == 0:
6922
        if ftype == TType.LIST:
6923
          self.success = []
6924
          (_etype61, _size58) = iprot.readListBegin()
6925
          for _i62 in xrange(_size58):
6926
            _elem63 = Item()
6927
            _elem63.read(iprot)
6928
            self.success.append(_elem63)
6929
          iprot.readListEnd()
6930
        else:
6931
          iprot.skip(ftype)
6932
      elif fid == 1:
6933
        if ftype == TType.STRUCT:
6934
          self.isex = CatalogServiceException()
6935
          self.isex.read(iprot)
6936
        else:
6937
          iprot.skip(ftype)
6938
      else:
6939
        iprot.skip(ftype)
6940
      iprot.readFieldEnd()
6941
    iprot.readStructEnd()
6942
 
6943
  def write(self, oprot):
6944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6946
      return
6947
    oprot.writeStructBegin('getBestSellers_result')
6948
    if self.success is not None:
6949
      oprot.writeFieldBegin('success', TType.LIST, 0)
6950
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6951
      for iter64 in self.success:
6952
        iter64.write(oprot)
6953
      oprot.writeListEnd()
6954
      oprot.writeFieldEnd()
6955
    if self.isex is not None:
6956
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6957
      self.isex.write(oprot)
6958
      oprot.writeFieldEnd()
6959
    oprot.writeFieldStop()
6960
    oprot.writeStructEnd()
6961
 
6962
  def validate(self):
6963
    return
6964
 
6965
 
6966
  def __repr__(self):
6967
    L = ['%s=%r' % (key, value)
6968
      for key, value in self.__dict__.iteritems()]
6969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6970
 
6971
  def __eq__(self, other):
6972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6973
 
6974
  def __ne__(self, other):
6975
    return not (self == other)
6976
 
6977
class getBestSellersCatalogIds_args:
6978
  """
6979
  Attributes:
6980
   - beginIndex
6981
   - totalItems
6982
   - brand
6983
   - category
6984
  """
6985
 
6986
  thrift_spec = (
6987
    None, # 0
6988
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6989
    (2, TType.I64, 'totalItems', None, None, ), # 2
6990
    (3, TType.STRING, 'brand', None, None, ), # 3
6991
    (4, TType.I64, 'category', None, None, ), # 4
6992
  )
6993
 
6994
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6995
    self.beginIndex = beginIndex
6996
    self.totalItems = totalItems
6997
    self.brand = brand
6998
    self.category = category
6999
 
7000
  def read(self, iprot):
7001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7003
      return
7004
    iprot.readStructBegin()
7005
    while True:
7006
      (fname, ftype, fid) = iprot.readFieldBegin()
7007
      if ftype == TType.STOP:
7008
        break
7009
      if fid == 1:
7010
        if ftype == TType.I64:
7011
          self.beginIndex = iprot.readI64();
7012
        else:
7013
          iprot.skip(ftype)
7014
      elif fid == 2:
7015
        if ftype == TType.I64:
7016
          self.totalItems = iprot.readI64();
7017
        else:
7018
          iprot.skip(ftype)
7019
      elif fid == 3:
7020
        if ftype == TType.STRING:
7021
          self.brand = iprot.readString();
7022
        else:
7023
          iprot.skip(ftype)
7024
      elif fid == 4:
7025
        if ftype == TType.I64:
7026
          self.category = iprot.readI64();
7027
        else:
7028
          iprot.skip(ftype)
7029
      else:
7030
        iprot.skip(ftype)
7031
      iprot.readFieldEnd()
7032
    iprot.readStructEnd()
7033
 
7034
  def write(self, oprot):
7035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7037
      return
7038
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
7039
    if self.beginIndex is not None:
7040
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7041
      oprot.writeI64(self.beginIndex)
7042
      oprot.writeFieldEnd()
7043
    if self.totalItems is not None:
7044
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7045
      oprot.writeI64(self.totalItems)
7046
      oprot.writeFieldEnd()
7047
    if self.brand is not None:
7048
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7049
      oprot.writeString(self.brand)
7050
      oprot.writeFieldEnd()
7051
    if self.category is not None:
7052
      oprot.writeFieldBegin('category', TType.I64, 4)
7053
      oprot.writeI64(self.category)
7054
      oprot.writeFieldEnd()
7055
    oprot.writeFieldStop()
7056
    oprot.writeStructEnd()
7057
 
7058
  def validate(self):
7059
    return
7060
 
7061
 
7062
  def __repr__(self):
7063
    L = ['%s=%r' % (key, value)
7064
      for key, value in self.__dict__.iteritems()]
7065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7066
 
7067
  def __eq__(self, other):
7068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7069
 
7070
  def __ne__(self, other):
7071
    return not (self == other)
7072
 
7073
class getBestSellersCatalogIds_result:
7074
  """
7075
  Attributes:
7076
   - success
7077
   - cex
7078
  """
7079
 
7080
  thrift_spec = (
7081
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7082
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7083
  )
7084
 
7085
  def __init__(self, success=None, cex=None,):
7086
    self.success = success
7087
    self.cex = cex
7088
 
7089
  def read(self, iprot):
7090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7092
      return
7093
    iprot.readStructBegin()
7094
    while True:
7095
      (fname, ftype, fid) = iprot.readFieldBegin()
7096
      if ftype == TType.STOP:
7097
        break
7098
      if fid == 0:
7099
        if ftype == TType.LIST:
7100
          self.success = []
7101
          (_etype68, _size65) = iprot.readListBegin()
7102
          for _i69 in xrange(_size65):
7103
            _elem70 = iprot.readI64();
7104
            self.success.append(_elem70)
7105
          iprot.readListEnd()
7106
        else:
7107
          iprot.skip(ftype)
7108
      elif fid == 1:
7109
        if ftype == TType.STRUCT:
7110
          self.cex = CatalogServiceException()
7111
          self.cex.read(iprot)
7112
        else:
7113
          iprot.skip(ftype)
7114
      else:
7115
        iprot.skip(ftype)
7116
      iprot.readFieldEnd()
7117
    iprot.readStructEnd()
7118
 
7119
  def write(self, oprot):
7120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7122
      return
7123
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
7124
    if self.success is not None:
7125
      oprot.writeFieldBegin('success', TType.LIST, 0)
7126
      oprot.writeListBegin(TType.I64, len(self.success))
7127
      for iter71 in self.success:
7128
        oprot.writeI64(iter71)
7129
      oprot.writeListEnd()
7130
      oprot.writeFieldEnd()
7131
    if self.cex is not None:
7132
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7133
      self.cex.write(oprot)
7134
      oprot.writeFieldEnd()
7135
    oprot.writeFieldStop()
7136
    oprot.writeStructEnd()
7137
 
7138
  def validate(self):
7139
    return
7140
 
7141
 
7142
  def __repr__(self):
7143
    L = ['%s=%r' % (key, value)
7144
      for key, value in self.__dict__.iteritems()]
7145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7146
 
7147
  def __eq__(self, other):
7148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7149
 
7150
  def __ne__(self, other):
7151
    return not (self == other)
7152
 
7153
class getBestSellersCount_args:
7154
 
7155
  thrift_spec = (
7156
  )
7157
 
7158
  def read(self, iprot):
7159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7161
      return
7162
    iprot.readStructBegin()
7163
    while True:
7164
      (fname, ftype, fid) = iprot.readFieldBegin()
7165
      if ftype == TType.STOP:
7166
        break
7167
      else:
7168
        iprot.skip(ftype)
7169
      iprot.readFieldEnd()
7170
    iprot.readStructEnd()
7171
 
7172
  def write(self, oprot):
7173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7175
      return
7176
    oprot.writeStructBegin('getBestSellersCount_args')
7177
    oprot.writeFieldStop()
7178
    oprot.writeStructEnd()
7179
 
7180
  def validate(self):
7181
    return
7182
 
7183
 
7184
  def __repr__(self):
7185
    L = ['%s=%r' % (key, value)
7186
      for key, value in self.__dict__.iteritems()]
7187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7188
 
7189
  def __eq__(self, other):
7190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7191
 
7192
  def __ne__(self, other):
7193
    return not (self == other)
7194
 
7195
class getBestSellersCount_result:
7196
  """
7197
  Attributes:
7198
   - success
7199
   - cex
7200
  """
7201
 
7202
  thrift_spec = (
7203
    (0, TType.I64, 'success', None, None, ), # 0
7204
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7205
  )
7206
 
7207
  def __init__(self, success=None, cex=None,):
7208
    self.success = success
7209
    self.cex = cex
7210
 
7211
  def read(self, iprot):
7212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7214
      return
7215
    iprot.readStructBegin()
7216
    while True:
7217
      (fname, ftype, fid) = iprot.readFieldBegin()
7218
      if ftype == TType.STOP:
7219
        break
7220
      if fid == 0:
7221
        if ftype == TType.I64:
7222
          self.success = iprot.readI64();
7223
        else:
7224
          iprot.skip(ftype)
7225
      elif fid == 1:
7226
        if ftype == TType.STRUCT:
7227
          self.cex = CatalogServiceException()
7228
          self.cex.read(iprot)
7229
        else:
7230
          iprot.skip(ftype)
7231
      else:
7232
        iprot.skip(ftype)
7233
      iprot.readFieldEnd()
7234
    iprot.readStructEnd()
7235
 
7236
  def write(self, oprot):
7237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7239
      return
7240
    oprot.writeStructBegin('getBestSellersCount_result')
7241
    if self.success is not None:
7242
      oprot.writeFieldBegin('success', TType.I64, 0)
7243
      oprot.writeI64(self.success)
7244
      oprot.writeFieldEnd()
7245
    if self.cex is not None:
7246
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7247
      self.cex.write(oprot)
7248
      oprot.writeFieldEnd()
7249
    oprot.writeFieldStop()
7250
    oprot.writeStructEnd()
7251
 
7252
  def validate(self):
7253
    return
7254
 
7255
 
7256
  def __repr__(self):
7257
    L = ['%s=%r' % (key, value)
7258
      for key, value in self.__dict__.iteritems()]
7259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7260
 
7261
  def __eq__(self, other):
7262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7263
 
7264
  def __ne__(self, other):
7265
    return not (self == other)
7266
 
7267
class getBestDeals_args:
7268
 
7269
  thrift_spec = (
7270
  )
7271
 
7272
  def read(self, iprot):
7273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7275
      return
7276
    iprot.readStructBegin()
7277
    while True:
7278
      (fname, ftype, fid) = iprot.readFieldBegin()
7279
      if ftype == TType.STOP:
7280
        break
7281
      else:
7282
        iprot.skip(ftype)
7283
      iprot.readFieldEnd()
7284
    iprot.readStructEnd()
7285
 
7286
  def write(self, oprot):
7287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7289
      return
7290
    oprot.writeStructBegin('getBestDeals_args')
7291
    oprot.writeFieldStop()
7292
    oprot.writeStructEnd()
7293
 
7294
  def validate(self):
7295
    return
7296
 
7297
 
7298
  def __repr__(self):
7299
    L = ['%s=%r' % (key, value)
7300
      for key, value in self.__dict__.iteritems()]
7301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7302
 
7303
  def __eq__(self, other):
7304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7305
 
7306
  def __ne__(self, other):
7307
    return not (self == other)
7308
 
7309
class getBestDeals_result:
7310
  """
7311
  Attributes:
7312
   - success
7313
   - isex
7314
  """
7315
 
7316
  thrift_spec = (
7317
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7318
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7319
  )
7320
 
7321
  def __init__(self, success=None, isex=None,):
7322
    self.success = success
7323
    self.isex = isex
7324
 
7325
  def read(self, iprot):
7326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7328
      return
7329
    iprot.readStructBegin()
7330
    while True:
7331
      (fname, ftype, fid) = iprot.readFieldBegin()
7332
      if ftype == TType.STOP:
7333
        break
7334
      if fid == 0:
7335
        if ftype == TType.LIST:
7336
          self.success = []
7337
          (_etype75, _size72) = iprot.readListBegin()
7338
          for _i76 in xrange(_size72):
7339
            _elem77 = Item()
7340
            _elem77.read(iprot)
7341
            self.success.append(_elem77)
7342
          iprot.readListEnd()
7343
        else:
7344
          iprot.skip(ftype)
7345
      elif fid == 1:
7346
        if ftype == TType.STRUCT:
7347
          self.isex = CatalogServiceException()
7348
          self.isex.read(iprot)
7349
        else:
7350
          iprot.skip(ftype)
7351
      else:
7352
        iprot.skip(ftype)
7353
      iprot.readFieldEnd()
7354
    iprot.readStructEnd()
7355
 
7356
  def write(self, oprot):
7357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7359
      return
7360
    oprot.writeStructBegin('getBestDeals_result')
7361
    if self.success is not None:
7362
      oprot.writeFieldBegin('success', TType.LIST, 0)
7363
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7364
      for iter78 in self.success:
7365
        iter78.write(oprot)
7366
      oprot.writeListEnd()
7367
      oprot.writeFieldEnd()
7368
    if self.isex is not None:
7369
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7370
      self.isex.write(oprot)
7371
      oprot.writeFieldEnd()
7372
    oprot.writeFieldStop()
7373
    oprot.writeStructEnd()
7374
 
7375
  def validate(self):
7376
    return
7377
 
7378
 
7379
  def __repr__(self):
7380
    L = ['%s=%r' % (key, value)
7381
      for key, value in self.__dict__.iteritems()]
7382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7383
 
7384
  def __eq__(self, other):
7385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7386
 
7387
  def __ne__(self, other):
7388
    return not (self == other)
7389
 
7390
class getBestDealsCatalogIds_args:
7391
  """
7392
  Attributes:
7393
   - beginIndex
7394
   - totalItems
7395
   - brand
7396
   - category
7397
  """
7398
 
7399
  thrift_spec = (
7400
    None, # 0
7401
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7402
    (2, TType.I64, 'totalItems', None, None, ), # 2
7403
    (3, TType.STRING, 'brand', None, None, ), # 3
7404
    (4, TType.I64, 'category', None, None, ), # 4
7405
  )
7406
 
7407
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7408
    self.beginIndex = beginIndex
7409
    self.totalItems = totalItems
7410
    self.brand = brand
7411
    self.category = category
7412
 
7413
  def read(self, iprot):
7414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7416
      return
7417
    iprot.readStructBegin()
7418
    while True:
7419
      (fname, ftype, fid) = iprot.readFieldBegin()
7420
      if ftype == TType.STOP:
7421
        break
7422
      if fid == 1:
7423
        if ftype == TType.I64:
7424
          self.beginIndex = iprot.readI64();
7425
        else:
7426
          iprot.skip(ftype)
7427
      elif fid == 2:
7428
        if ftype == TType.I64:
7429
          self.totalItems = iprot.readI64();
7430
        else:
7431
          iprot.skip(ftype)
7432
      elif fid == 3:
7433
        if ftype == TType.STRING:
7434
          self.brand = iprot.readString();
7435
        else:
7436
          iprot.skip(ftype)
7437
      elif fid == 4:
7438
        if ftype == TType.I64:
7439
          self.category = iprot.readI64();
7440
        else:
7441
          iprot.skip(ftype)
7442
      else:
7443
        iprot.skip(ftype)
7444
      iprot.readFieldEnd()
7445
    iprot.readStructEnd()
7446
 
7447
  def write(self, oprot):
7448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7450
      return
7451
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7452
    if self.beginIndex is not None:
7453
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7454
      oprot.writeI64(self.beginIndex)
7455
      oprot.writeFieldEnd()
7456
    if self.totalItems is not None:
7457
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7458
      oprot.writeI64(self.totalItems)
7459
      oprot.writeFieldEnd()
7460
    if self.brand is not None:
7461
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7462
      oprot.writeString(self.brand)
7463
      oprot.writeFieldEnd()
7464
    if self.category is not None:
7465
      oprot.writeFieldBegin('category', TType.I64, 4)
7466
      oprot.writeI64(self.category)
7467
      oprot.writeFieldEnd()
7468
    oprot.writeFieldStop()
7469
    oprot.writeStructEnd()
7470
 
7471
  def validate(self):
7472
    return
7473
 
7474
 
7475
  def __repr__(self):
7476
    L = ['%s=%r' % (key, value)
7477
      for key, value in self.__dict__.iteritems()]
7478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7479
 
7480
  def __eq__(self, other):
7481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7482
 
7483
  def __ne__(self, other):
7484
    return not (self == other)
7485
 
7486
class getBestDealsCatalogIds_result:
7487
  """
7488
  Attributes:
7489
   - success
7490
   - cex
7491
  """
7492
 
7493
  thrift_spec = (
7494
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7495
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7496
  )
7497
 
7498
  def __init__(self, success=None, cex=None,):
7499
    self.success = success
7500
    self.cex = cex
7501
 
7502
  def read(self, iprot):
7503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7505
      return
7506
    iprot.readStructBegin()
7507
    while True:
7508
      (fname, ftype, fid) = iprot.readFieldBegin()
7509
      if ftype == TType.STOP:
7510
        break
7511
      if fid == 0:
7512
        if ftype == TType.LIST:
7513
          self.success = []
7514
          (_etype82, _size79) = iprot.readListBegin()
7515
          for _i83 in xrange(_size79):
7516
            _elem84 = iprot.readI64();
7517
            self.success.append(_elem84)
7518
          iprot.readListEnd()
7519
        else:
7520
          iprot.skip(ftype)
7521
      elif fid == 1:
7522
        if ftype == TType.STRUCT:
7523
          self.cex = CatalogServiceException()
7524
          self.cex.read(iprot)
7525
        else:
7526
          iprot.skip(ftype)
7527
      else:
7528
        iprot.skip(ftype)
7529
      iprot.readFieldEnd()
7530
    iprot.readStructEnd()
7531
 
7532
  def write(self, oprot):
7533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7535
      return
7536
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7537
    if self.success is not None:
7538
      oprot.writeFieldBegin('success', TType.LIST, 0)
7539
      oprot.writeListBegin(TType.I64, len(self.success))
7540
      for iter85 in self.success:
7541
        oprot.writeI64(iter85)
7542
      oprot.writeListEnd()
7543
      oprot.writeFieldEnd()
7544
    if self.cex is not None:
7545
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7546
      self.cex.write(oprot)
7547
      oprot.writeFieldEnd()
7548
    oprot.writeFieldStop()
7549
    oprot.writeStructEnd()
7550
 
7551
  def validate(self):
7552
    return
7553
 
7554
 
7555
  def __repr__(self):
7556
    L = ['%s=%r' % (key, value)
7557
      for key, value in self.__dict__.iteritems()]
7558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7559
 
7560
  def __eq__(self, other):
7561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7562
 
7563
  def __ne__(self, other):
7564
    return not (self == other)
7565
 
7566
class getBestDealsCount_args:
7567
 
7568
  thrift_spec = (
7569
  )
7570
 
7571
  def read(self, iprot):
7572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7574
      return
7575
    iprot.readStructBegin()
7576
    while True:
7577
      (fname, ftype, fid) = iprot.readFieldBegin()
7578
      if ftype == TType.STOP:
7579
        break
7580
      else:
7581
        iprot.skip(ftype)
7582
      iprot.readFieldEnd()
7583
    iprot.readStructEnd()
7584
 
7585
  def write(self, oprot):
7586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7588
      return
7589
    oprot.writeStructBegin('getBestDealsCount_args')
7590
    oprot.writeFieldStop()
7591
    oprot.writeStructEnd()
7592
 
7593
  def validate(self):
7594
    return
7595
 
7596
 
7597
  def __repr__(self):
7598
    L = ['%s=%r' % (key, value)
7599
      for key, value in self.__dict__.iteritems()]
7600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7601
 
7602
  def __eq__(self, other):
7603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7604
 
7605
  def __ne__(self, other):
7606
    return not (self == other)
7607
 
7608
class getBestDealsCount_result:
7609
  """
7610
  Attributes:
7611
   - success
7612
   - cex
7613
  """
7614
 
7615
  thrift_spec = (
7616
    (0, TType.I64, 'success', None, None, ), # 0
7617
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7618
  )
7619
 
7620
  def __init__(self, success=None, cex=None,):
7621
    self.success = success
7622
    self.cex = cex
7623
 
7624
  def read(self, iprot):
7625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7627
      return
7628
    iprot.readStructBegin()
7629
    while True:
7630
      (fname, ftype, fid) = iprot.readFieldBegin()
7631
      if ftype == TType.STOP:
7632
        break
7633
      if fid == 0:
7634
        if ftype == TType.I64:
7635
          self.success = iprot.readI64();
7636
        else:
7637
          iprot.skip(ftype)
7638
      elif fid == 1:
7639
        if ftype == TType.STRUCT:
7640
          self.cex = CatalogServiceException()
7641
          self.cex.read(iprot)
7642
        else:
7643
          iprot.skip(ftype)
7644
      else:
7645
        iprot.skip(ftype)
7646
      iprot.readFieldEnd()
7647
    iprot.readStructEnd()
7648
 
7649
  def write(self, oprot):
7650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7652
      return
7653
    oprot.writeStructBegin('getBestDealsCount_result')
7654
    if self.success is not None:
7655
      oprot.writeFieldBegin('success', TType.I64, 0)
7656
      oprot.writeI64(self.success)
7657
      oprot.writeFieldEnd()
7658
    if self.cex is not None:
7659
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7660
      self.cex.write(oprot)
7661
      oprot.writeFieldEnd()
7662
    oprot.writeFieldStop()
7663
    oprot.writeStructEnd()
7664
 
7665
  def validate(self):
7666
    return
7667
 
7668
 
7669
  def __repr__(self):
7670
    L = ['%s=%r' % (key, value)
7671
      for key, value in self.__dict__.iteritems()]
7672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7673
 
7674
  def __eq__(self, other):
7675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7676
 
7677
  def __ne__(self, other):
7678
    return not (self == other)
7679
 
7680
class getComingSoon_args:
7681
 
7682
  thrift_spec = (
7683
  )
7684
 
7685
  def read(self, iprot):
7686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7688
      return
7689
    iprot.readStructBegin()
7690
    while True:
7691
      (fname, ftype, fid) = iprot.readFieldBegin()
7692
      if ftype == TType.STOP:
7693
        break
7694
      else:
7695
        iprot.skip(ftype)
7696
      iprot.readFieldEnd()
7697
    iprot.readStructEnd()
7698
 
7699
  def write(self, oprot):
7700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7702
      return
7703
    oprot.writeStructBegin('getComingSoon_args')
7704
    oprot.writeFieldStop()
7705
    oprot.writeStructEnd()
7706
 
7707
  def validate(self):
7708
    return
7709
 
7710
 
7711
  def __repr__(self):
7712
    L = ['%s=%r' % (key, value)
7713
      for key, value in self.__dict__.iteritems()]
7714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7715
 
7716
  def __eq__(self, other):
7717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7718
 
7719
  def __ne__(self, other):
7720
    return not (self == other)
7721
 
7722
class getComingSoon_result:
7723
  """
7724
  Attributes:
7725
   - success
7726
   - isex
7727
  """
7728
 
7729
  thrift_spec = (
7730
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7731
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7732
  )
7733
 
7734
  def __init__(self, success=None, isex=None,):
7735
    self.success = success
7736
    self.isex = isex
7737
 
7738
  def read(self, iprot):
7739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7741
      return
7742
    iprot.readStructBegin()
7743
    while True:
7744
      (fname, ftype, fid) = iprot.readFieldBegin()
7745
      if ftype == TType.STOP:
7746
        break
7747
      if fid == 0:
7748
        if ftype == TType.LIST:
7749
          self.success = []
7750
          (_etype89, _size86) = iprot.readListBegin()
7751
          for _i90 in xrange(_size86):
7752
            _elem91 = Item()
7753
            _elem91.read(iprot)
7754
            self.success.append(_elem91)
7755
          iprot.readListEnd()
7756
        else:
7757
          iprot.skip(ftype)
7758
      elif fid == 1:
7759
        if ftype == TType.STRUCT:
7760
          self.isex = CatalogServiceException()
7761
          self.isex.read(iprot)
7762
        else:
7763
          iprot.skip(ftype)
7764
      else:
7765
        iprot.skip(ftype)
7766
      iprot.readFieldEnd()
7767
    iprot.readStructEnd()
7768
 
7769
  def write(self, oprot):
7770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7772
      return
7773
    oprot.writeStructBegin('getComingSoon_result')
7774
    if self.success is not None:
7775
      oprot.writeFieldBegin('success', TType.LIST, 0)
7776
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7777
      for iter92 in self.success:
7778
        iter92.write(oprot)
7779
      oprot.writeListEnd()
7780
      oprot.writeFieldEnd()
7781
    if self.isex is not None:
7782
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7783
      self.isex.write(oprot)
7784
      oprot.writeFieldEnd()
7785
    oprot.writeFieldStop()
7786
    oprot.writeStructEnd()
7787
 
7788
  def validate(self):
7789
    return
7790
 
7791
 
7792
  def __repr__(self):
7793
    L = ['%s=%r' % (key, value)
7794
      for key, value in self.__dict__.iteritems()]
7795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7796
 
7797
  def __eq__(self, other):
7798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7799
 
7800
  def __ne__(self, other):
7801
    return not (self == other)
7802
 
7803
class getComingSoonCatalogIds_args:
7804
  """
7805
  Attributes:
7806
   - beginIndex
7807
   - totalItems
7808
   - brand
7809
   - category
7810
  """
7811
 
7812
  thrift_spec = (
7813
    None, # 0
7814
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7815
    (2, TType.I64, 'totalItems', None, None, ), # 2
7816
    (3, TType.STRING, 'brand', None, None, ), # 3
7817
    (4, TType.I64, 'category', None, None, ), # 4
7818
  )
7819
 
7820
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7821
    self.beginIndex = beginIndex
7822
    self.totalItems = totalItems
7823
    self.brand = brand
7824
    self.category = category
7825
 
7826
  def read(self, iprot):
7827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7829
      return
7830
    iprot.readStructBegin()
7831
    while True:
7832
      (fname, ftype, fid) = iprot.readFieldBegin()
7833
      if ftype == TType.STOP:
7834
        break
7835
      if fid == 1:
7836
        if ftype == TType.I64:
7837
          self.beginIndex = iprot.readI64();
7838
        else:
7839
          iprot.skip(ftype)
7840
      elif fid == 2:
7841
        if ftype == TType.I64:
7842
          self.totalItems = iprot.readI64();
7843
        else:
7844
          iprot.skip(ftype)
7845
      elif fid == 3:
7846
        if ftype == TType.STRING:
7847
          self.brand = iprot.readString();
7848
        else:
7849
          iprot.skip(ftype)
7850
      elif fid == 4:
7851
        if ftype == TType.I64:
7852
          self.category = iprot.readI64();
7853
        else:
7854
          iprot.skip(ftype)
7855
      else:
7856
        iprot.skip(ftype)
7857
      iprot.readFieldEnd()
7858
    iprot.readStructEnd()
7859
 
7860
  def write(self, oprot):
7861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7863
      return
7864
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7865
    if self.beginIndex is not None:
7866
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7867
      oprot.writeI64(self.beginIndex)
7868
      oprot.writeFieldEnd()
7869
    if self.totalItems is not None:
7870
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7871
      oprot.writeI64(self.totalItems)
7872
      oprot.writeFieldEnd()
7873
    if self.brand is not None:
7874
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7875
      oprot.writeString(self.brand)
7876
      oprot.writeFieldEnd()
7877
    if self.category is not None:
7878
      oprot.writeFieldBegin('category', TType.I64, 4)
7879
      oprot.writeI64(self.category)
7880
      oprot.writeFieldEnd()
7881
    oprot.writeFieldStop()
7882
    oprot.writeStructEnd()
7883
 
7884
  def validate(self):
7885
    return
7886
 
7887
 
7888
  def __repr__(self):
7889
    L = ['%s=%r' % (key, value)
7890
      for key, value in self.__dict__.iteritems()]
7891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7892
 
7893
  def __eq__(self, other):
7894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7895
 
7896
  def __ne__(self, other):
7897
    return not (self == other)
7898
 
7899
class getComingSoonCatalogIds_result:
7900
  """
7901
  Attributes:
7902
   - success
7903
   - cex
7904
  """
7905
 
7906
  thrift_spec = (
7907
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7908
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7909
  )
7910
 
7911
  def __init__(self, success=None, cex=None,):
7912
    self.success = success
7913
    self.cex = cex
7914
 
7915
  def read(self, iprot):
7916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7918
      return
7919
    iprot.readStructBegin()
7920
    while True:
7921
      (fname, ftype, fid) = iprot.readFieldBegin()
7922
      if ftype == TType.STOP:
7923
        break
7924
      if fid == 0:
7925
        if ftype == TType.LIST:
7926
          self.success = []
7927
          (_etype96, _size93) = iprot.readListBegin()
7928
          for _i97 in xrange(_size93):
7929
            _elem98 = iprot.readI64();
7930
            self.success.append(_elem98)
7931
          iprot.readListEnd()
7932
        else:
7933
          iprot.skip(ftype)
7934
      elif fid == 1:
7935
        if ftype == TType.STRUCT:
7936
          self.cex = CatalogServiceException()
7937
          self.cex.read(iprot)
7938
        else:
7939
          iprot.skip(ftype)
7940
      else:
7941
        iprot.skip(ftype)
7942
      iprot.readFieldEnd()
7943
    iprot.readStructEnd()
7944
 
7945
  def write(self, oprot):
7946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7948
      return
7949
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7950
    if self.success is not None:
7951
      oprot.writeFieldBegin('success', TType.LIST, 0)
7952
      oprot.writeListBegin(TType.I64, len(self.success))
7953
      for iter99 in self.success:
7954
        oprot.writeI64(iter99)
7955
      oprot.writeListEnd()
7956
      oprot.writeFieldEnd()
7957
    if self.cex is not None:
7958
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7959
      self.cex.write(oprot)
7960
      oprot.writeFieldEnd()
7961
    oprot.writeFieldStop()
7962
    oprot.writeStructEnd()
7963
 
7964
  def validate(self):
7965
    return
7966
 
7967
 
7968
  def __repr__(self):
7969
    L = ['%s=%r' % (key, value)
7970
      for key, value in self.__dict__.iteritems()]
7971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7972
 
7973
  def __eq__(self, other):
7974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7975
 
7976
  def __ne__(self, other):
7977
    return not (self == other)
7978
 
7979
class getComingSoonCount_args:
7980
 
7981
  thrift_spec = (
7982
  )
7983
 
7984
  def read(self, iprot):
7985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7987
      return
7988
    iprot.readStructBegin()
7989
    while True:
7990
      (fname, ftype, fid) = iprot.readFieldBegin()
7991
      if ftype == TType.STOP:
7992
        break
7993
      else:
7994
        iprot.skip(ftype)
7995
      iprot.readFieldEnd()
7996
    iprot.readStructEnd()
7997
 
7998
  def write(self, oprot):
7999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8001
      return
8002
    oprot.writeStructBegin('getComingSoonCount_args')
8003
    oprot.writeFieldStop()
8004
    oprot.writeStructEnd()
8005
 
8006
  def validate(self):
8007
    return
8008
 
8009
 
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 getComingSoonCount_result:
8022
  """
8023
  Attributes:
8024
   - success
8025
   - cex
8026
  """
8027
 
8028
  thrift_spec = (
8029
    (0, TType.I64, 'success', None, None, ), # 0
8030
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8031
  )
8032
 
8033
  def __init__(self, success=None, cex=None,):
8034
    self.success = success
8035
    self.cex = cex
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.I64:
8048
          self.success = iprot.readI64();
8049
        else:
8050
          iprot.skip(ftype)
8051
      elif fid == 1:
8052
        if ftype == TType.STRUCT:
8053
          self.cex = CatalogServiceException()
8054
          self.cex.read(iprot)
8055
        else:
8056
          iprot.skip(ftype)
8057
      else:
8058
        iprot.skip(ftype)
8059
      iprot.readFieldEnd()
8060
    iprot.readStructEnd()
8061
 
8062
  def write(self, oprot):
8063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8065
      return
8066
    oprot.writeStructBegin('getComingSoonCount_result')
8067
    if self.success is not None:
8068
      oprot.writeFieldBegin('success', TType.I64, 0)
8069
      oprot.writeI64(self.success)
8070
      oprot.writeFieldEnd()
8071
    if self.cex is not None:
8072
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8073
      self.cex.write(oprot)
8074
      oprot.writeFieldEnd()
8075
    oprot.writeFieldStop()
8076
    oprot.writeStructEnd()
8077
 
8078
  def validate(self):
8079
    return
8080
 
8081
 
8082
  def __repr__(self):
8083
    L = ['%s=%r' % (key, value)
8084
      for key, value in self.__dict__.iteritems()]
8085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8086
 
8087
  def __eq__(self, other):
8088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8089
 
8090
  def __ne__(self, other):
8091
    return not (self == other)
8092
 
8093
class getLatestArrivals_args:
8094
 
8095
  thrift_spec = (
8096
  )
8097
 
8098
  def read(self, iprot):
8099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8101
      return
8102
    iprot.readStructBegin()
8103
    while True:
8104
      (fname, ftype, fid) = iprot.readFieldBegin()
8105
      if ftype == TType.STOP:
8106
        break
8107
      else:
8108
        iprot.skip(ftype)
8109
      iprot.readFieldEnd()
8110
    iprot.readStructEnd()
8111
 
8112
  def write(self, oprot):
8113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8115
      return
8116
    oprot.writeStructBegin('getLatestArrivals_args')
8117
    oprot.writeFieldStop()
8118
    oprot.writeStructEnd()
8119
 
8120
  def validate(self):
8121
    return
8122
 
8123
 
8124
  def __repr__(self):
8125
    L = ['%s=%r' % (key, value)
8126
      for key, value in self.__dict__.iteritems()]
8127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8128
 
8129
  def __eq__(self, other):
8130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8131
 
8132
  def __ne__(self, other):
8133
    return not (self == other)
8134
 
8135
class getLatestArrivals_result:
8136
  """
8137
  Attributes:
8138
   - success
8139
   - isex
8140
  """
8141
 
8142
  thrift_spec = (
8143
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8144
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8145
  )
8146
 
8147
  def __init__(self, success=None, isex=None,):
8148
    self.success = success
8149
    self.isex = isex
8150
 
8151
  def read(self, iprot):
8152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8154
      return
8155
    iprot.readStructBegin()
8156
    while True:
8157
      (fname, ftype, fid) = iprot.readFieldBegin()
8158
      if ftype == TType.STOP:
8159
        break
8160
      if fid == 0:
8161
        if ftype == TType.LIST:
8162
          self.success = []
8163
          (_etype103, _size100) = iprot.readListBegin()
8164
          for _i104 in xrange(_size100):
8165
            _elem105 = Item()
8166
            _elem105.read(iprot)
8167
            self.success.append(_elem105)
8168
          iprot.readListEnd()
8169
        else:
8170
          iprot.skip(ftype)
8171
      elif fid == 1:
8172
        if ftype == TType.STRUCT:
8173
          self.isex = CatalogServiceException()
8174
          self.isex.read(iprot)
8175
        else:
8176
          iprot.skip(ftype)
8177
      else:
8178
        iprot.skip(ftype)
8179
      iprot.readFieldEnd()
8180
    iprot.readStructEnd()
8181
 
8182
  def write(self, oprot):
8183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8185
      return
8186
    oprot.writeStructBegin('getLatestArrivals_result')
8187
    if self.success is not None:
8188
      oprot.writeFieldBegin('success', TType.LIST, 0)
8189
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8190
      for iter106 in self.success:
8191
        iter106.write(oprot)
8192
      oprot.writeListEnd()
8193
      oprot.writeFieldEnd()
8194
    if self.isex is not None:
8195
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8196
      self.isex.write(oprot)
8197
      oprot.writeFieldEnd()
8198
    oprot.writeFieldStop()
8199
    oprot.writeStructEnd()
8200
 
8201
  def validate(self):
8202
    return
8203
 
8204
 
8205
  def __repr__(self):
8206
    L = ['%s=%r' % (key, value)
8207
      for key, value in self.__dict__.iteritems()]
8208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8209
 
8210
  def __eq__(self, other):
8211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8212
 
8213
  def __ne__(self, other):
8214
    return not (self == other)
8215
 
8216
class getLatestArrivalsCatalogIds_args:
8217
  """
8218
  Attributes:
8219
   - beginIndex
8220
   - totalItems
8221
   - brand
8222
   - categories
8223
  """
8224
 
8225
  thrift_spec = (
8226
    None, # 0
8227
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8228
    (2, TType.I64, 'totalItems', None, None, ), # 2
8229
    (3, TType.STRING, 'brand', None, None, ), # 3
8230
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8231
  )
8232
 
8233
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8234
    self.beginIndex = beginIndex
8235
    self.totalItems = totalItems
8236
    self.brand = brand
8237
    self.categories = categories
8238
 
8239
  def read(self, iprot):
8240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8242
      return
8243
    iprot.readStructBegin()
8244
    while True:
8245
      (fname, ftype, fid) = iprot.readFieldBegin()
8246
      if ftype == TType.STOP:
8247
        break
8248
      if fid == 1:
8249
        if ftype == TType.I64:
8250
          self.beginIndex = iprot.readI64();
8251
        else:
8252
          iprot.skip(ftype)
8253
      elif fid == 2:
8254
        if ftype == TType.I64:
8255
          self.totalItems = iprot.readI64();
8256
        else:
8257
          iprot.skip(ftype)
8258
      elif fid == 3:
8259
        if ftype == TType.STRING:
8260
          self.brand = iprot.readString();
8261
        else:
8262
          iprot.skip(ftype)
8263
      elif fid == 4:
8264
        if ftype == TType.LIST:
8265
          self.categories = []
8266
          (_etype110, _size107) = iprot.readListBegin()
8267
          for _i111 in xrange(_size107):
8268
            _elem112 = iprot.readI64();
8269
            self.categories.append(_elem112)
8270
          iprot.readListEnd()
8271
        else:
8272
          iprot.skip(ftype)
8273
      else:
8274
        iprot.skip(ftype)
8275
      iprot.readFieldEnd()
8276
    iprot.readStructEnd()
8277
 
8278
  def write(self, oprot):
8279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8281
      return
8282
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8283
    if self.beginIndex is not None:
8284
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8285
      oprot.writeI64(self.beginIndex)
8286
      oprot.writeFieldEnd()
8287
    if self.totalItems is not None:
8288
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8289
      oprot.writeI64(self.totalItems)
8290
      oprot.writeFieldEnd()
8291
    if self.brand is not None:
8292
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8293
      oprot.writeString(self.brand)
8294
      oprot.writeFieldEnd()
8295
    if self.categories is not None:
8296
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8297
      oprot.writeListBegin(TType.I64, len(self.categories))
8298
      for iter113 in self.categories:
8299
        oprot.writeI64(iter113)
8300
      oprot.writeListEnd()
8301
      oprot.writeFieldEnd()
8302
    oprot.writeFieldStop()
8303
    oprot.writeStructEnd()
8304
 
8305
  def validate(self):
8306
    return
8307
 
8308
 
8309
  def __repr__(self):
8310
    L = ['%s=%r' % (key, value)
8311
      for key, value in self.__dict__.iteritems()]
8312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8313
 
8314
  def __eq__(self, other):
8315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8316
 
8317
  def __ne__(self, other):
8318
    return not (self == other)
8319
 
8320
class getLatestArrivalsCatalogIds_result:
8321
  """
8322
  Attributes:
8323
   - success
8324
   - cex
8325
  """
8326
 
8327
  thrift_spec = (
8328
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8329
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8330
  )
8331
 
8332
  def __init__(self, success=None, cex=None,):
8333
    self.success = success
8334
    self.cex = cex
8335
 
8336
  def read(self, iprot):
8337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8339
      return
8340
    iprot.readStructBegin()
8341
    while True:
8342
      (fname, ftype, fid) = iprot.readFieldBegin()
8343
      if ftype == TType.STOP:
8344
        break
8345
      if fid == 0:
8346
        if ftype == TType.LIST:
8347
          self.success = []
8348
          (_etype117, _size114) = iprot.readListBegin()
8349
          for _i118 in xrange(_size114):
8350
            _elem119 = iprot.readI64();
8351
            self.success.append(_elem119)
8352
          iprot.readListEnd()
8353
        else:
8354
          iprot.skip(ftype)
8355
      elif fid == 1:
8356
        if ftype == TType.STRUCT:
8357
          self.cex = CatalogServiceException()
8358
          self.cex.read(iprot)
8359
        else:
8360
          iprot.skip(ftype)
8361
      else:
8362
        iprot.skip(ftype)
8363
      iprot.readFieldEnd()
8364
    iprot.readStructEnd()
8365
 
8366
  def write(self, oprot):
8367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8369
      return
8370
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8371
    if self.success is not None:
8372
      oprot.writeFieldBegin('success', TType.LIST, 0)
8373
      oprot.writeListBegin(TType.I64, len(self.success))
8374
      for iter120 in self.success:
8375
        oprot.writeI64(iter120)
8376
      oprot.writeListEnd()
8377
      oprot.writeFieldEnd()
8378
    if self.cex is not None:
8379
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8380
      self.cex.write(oprot)
8381
      oprot.writeFieldEnd()
8382
    oprot.writeFieldStop()
8383
    oprot.writeStructEnd()
8384
 
8385
  def validate(self):
8386
    return
8387
 
8388
 
8389
  def __repr__(self):
8390
    L = ['%s=%r' % (key, value)
8391
      for key, value in self.__dict__.iteritems()]
8392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8393
 
8394
  def __eq__(self, other):
8395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8396
 
8397
  def __ne__(self, other):
8398
    return not (self == other)
8399
 
8400
class getLatestArrivalsCount_args:
8401
 
8402
  thrift_spec = (
8403
  )
8404
 
8405
  def read(self, iprot):
8406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8408
      return
8409
    iprot.readStructBegin()
8410
    while True:
8411
      (fname, ftype, fid) = iprot.readFieldBegin()
8412
      if ftype == TType.STOP:
8413
        break
8414
      else:
8415
        iprot.skip(ftype)
8416
      iprot.readFieldEnd()
8417
    iprot.readStructEnd()
8418
 
8419
  def write(self, oprot):
8420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8422
      return
8423
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8424
    oprot.writeFieldStop()
8425
    oprot.writeStructEnd()
8426
 
8427
  def validate(self):
8428
    return
8429
 
8430
 
8431
  def __repr__(self):
8432
    L = ['%s=%r' % (key, value)
8433
      for key, value in self.__dict__.iteritems()]
8434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8435
 
8436
  def __eq__(self, other):
8437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8438
 
8439
  def __ne__(self, other):
8440
    return not (self == other)
8441
 
8442
class getLatestArrivalsCount_result:
8443
  """
8444
  Attributes:
8445
   - success
8446
   - cex
8447
  """
8448
 
8449
  thrift_spec = (
8450
    (0, TType.I64, 'success', None, None, ), # 0
8451
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8452
  )
8453
 
8454
  def __init__(self, success=None, cex=None,):
8455
    self.success = success
8456
    self.cex = cex
8457
 
8458
  def read(self, iprot):
8459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8461
      return
8462
    iprot.readStructBegin()
8463
    while True:
8464
      (fname, ftype, fid) = iprot.readFieldBegin()
8465
      if ftype == TType.STOP:
8466
        break
8467
      if fid == 0:
8468
        if ftype == TType.I64:
8469
          self.success = iprot.readI64();
8470
        else:
8471
          iprot.skip(ftype)
8472
      elif fid == 1:
8473
        if ftype == TType.STRUCT:
8474
          self.cex = CatalogServiceException()
8475
          self.cex.read(iprot)
8476
        else:
8477
          iprot.skip(ftype)
8478
      else:
8479
        iprot.skip(ftype)
8480
      iprot.readFieldEnd()
8481
    iprot.readStructEnd()
8482
 
8483
  def write(self, oprot):
8484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8486
      return
8487
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8488
    if self.success is not None:
8489
      oprot.writeFieldBegin('success', TType.I64, 0)
8490
      oprot.writeI64(self.success)
8491
      oprot.writeFieldEnd()
8492
    if self.cex is not None:
8493
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8494
      self.cex.write(oprot)
8495
      oprot.writeFieldEnd()
8496
    oprot.writeFieldStop()
8497
    oprot.writeStructEnd()
8498
 
8499
  def validate(self):
8500
    return
8501
 
8502
 
8503
  def __repr__(self):
8504
    L = ['%s=%r' % (key, value)
8505
      for key, value in self.__dict__.iteritems()]
8506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8507
 
8508
  def __eq__(self, other):
8509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8510
 
8511
  def __ne__(self, other):
8512
    return not (self == other)
8513
 
8514
class generateNewEntityID_args:
8515
 
8516
  thrift_spec = (
8517
  )
8518
 
8519
  def read(self, iprot):
8520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8522
      return
8523
    iprot.readStructBegin()
8524
    while True:
8525
      (fname, ftype, fid) = iprot.readFieldBegin()
8526
      if ftype == TType.STOP:
8527
        break
8528
      else:
8529
        iprot.skip(ftype)
8530
      iprot.readFieldEnd()
8531
    iprot.readStructEnd()
8532
 
8533
  def write(self, oprot):
8534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8536
      return
8537
    oprot.writeStructBegin('generateNewEntityID_args')
8538
    oprot.writeFieldStop()
8539
    oprot.writeStructEnd()
8540
 
8541
  def validate(self):
8542
    return
8543
 
8544
 
8545
  def __repr__(self):
8546
    L = ['%s=%r' % (key, value)
8547
      for key, value in self.__dict__.iteritems()]
8548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8549
 
8550
  def __eq__(self, other):
8551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8552
 
8553
  def __ne__(self, other):
8554
    return not (self == other)
8555
 
8556
class generateNewEntityID_result:
8557
  """
8558
  Attributes:
8559
   - success
8560
  """
8561
 
8562
  thrift_spec = (
8563
    (0, TType.I64, 'success', None, None, ), # 0
8564
  )
8565
 
8566
  def __init__(self, success=None,):
8567
    self.success = success
8568
 
8569
  def read(self, iprot):
8570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8572
      return
8573
    iprot.readStructBegin()
8574
    while True:
8575
      (fname, ftype, fid) = iprot.readFieldBegin()
8576
      if ftype == TType.STOP:
8577
        break
8578
      if fid == 0:
8579
        if ftype == TType.I64:
8580
          self.success = iprot.readI64();
8581
        else:
8582
          iprot.skip(ftype)
8583
      else:
8584
        iprot.skip(ftype)
8585
      iprot.readFieldEnd()
8586
    iprot.readStructEnd()
8587
 
8588
  def write(self, oprot):
8589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8591
      return
8592
    oprot.writeStructBegin('generateNewEntityID_result')
8593
    if self.success is not None:
8594
      oprot.writeFieldBegin('success', TType.I64, 0)
8595
      oprot.writeI64(self.success)
8596
      oprot.writeFieldEnd()
8597
    oprot.writeFieldStop()
8598
    oprot.writeStructEnd()
8599
 
8600
  def validate(self):
8601
    return
8602
 
8603
 
8604
  def __repr__(self):
8605
    L = ['%s=%r' % (key, value)
8606
      for key, value in self.__dict__.iteritems()]
8607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8608
 
8609
  def __eq__(self, other):
8610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8611
 
8612
  def __ne__(self, other):
8613
    return not (self == other)
8614
 
8615
class addCategory_args:
8616
  """
8617
  Attributes:
8618
   - category
8619
  """
8620
 
8621
  thrift_spec = (
8622
    None, # 0
8623
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8624
  )
8625
 
8626
  def __init__(self, category=None,):
8627
    self.category = category
8628
 
8629
  def read(self, iprot):
8630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8632
      return
8633
    iprot.readStructBegin()
8634
    while True:
8635
      (fname, ftype, fid) = iprot.readFieldBegin()
8636
      if ftype == TType.STOP:
8637
        break
8638
      if fid == 1:
8639
        if ftype == TType.STRUCT:
8640
          self.category = Category()
8641
          self.category.read(iprot)
8642
        else:
8643
          iprot.skip(ftype)
8644
      else:
8645
        iprot.skip(ftype)
8646
      iprot.readFieldEnd()
8647
    iprot.readStructEnd()
8648
 
8649
  def write(self, oprot):
8650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8652
      return
8653
    oprot.writeStructBegin('addCategory_args')
8654
    if self.category is not None:
8655
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8656
      self.category.write(oprot)
8657
      oprot.writeFieldEnd()
8658
    oprot.writeFieldStop()
8659
    oprot.writeStructEnd()
8660
 
8661
  def validate(self):
8662
    return
8663
 
8664
 
8665
  def __repr__(self):
8666
    L = ['%s=%r' % (key, value)
8667
      for key, value in self.__dict__.iteritems()]
8668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8669
 
8670
  def __eq__(self, other):
8671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8672
 
8673
  def __ne__(self, other):
8674
    return not (self == other)
8675
 
8676
class addCategory_result:
8677
  """
8678
  Attributes:
8679
   - success
8680
  """
8681
 
8682
  thrift_spec = (
8683
    (0, TType.BOOL, 'success', None, None, ), # 0
8684
  )
8685
 
8686
  def __init__(self, success=None,):
8687
    self.success = success
8688
 
8689
  def read(self, iprot):
8690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8692
      return
8693
    iprot.readStructBegin()
8694
    while True:
8695
      (fname, ftype, fid) = iprot.readFieldBegin()
8696
      if ftype == TType.STOP:
8697
        break
8698
      if fid == 0:
8699
        if ftype == TType.BOOL:
8700
          self.success = iprot.readBool();
8701
        else:
8702
          iprot.skip(ftype)
8703
      else:
8704
        iprot.skip(ftype)
8705
      iprot.readFieldEnd()
8706
    iprot.readStructEnd()
8707
 
8708
  def write(self, oprot):
8709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8711
      return
8712
    oprot.writeStructBegin('addCategory_result')
8713
    if self.success is not None:
8714
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8715
      oprot.writeBool(self.success)
8716
      oprot.writeFieldEnd()
8717
    oprot.writeFieldStop()
8718
    oprot.writeStructEnd()
8719
 
8720
  def validate(self):
8721
    return
8722
 
8723
 
8724
  def __repr__(self):
8725
    L = ['%s=%r' % (key, value)
8726
      for key, value in self.__dict__.iteritems()]
8727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8728
 
8729
  def __eq__(self, other):
8730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8731
 
8732
  def __ne__(self, other):
8733
    return not (self == other)
8734
 
8735
class getCategory_args:
8736
  """
8737
  Attributes:
8738
   - id
8739
  """
8740
 
8741
  thrift_spec = (
8742
    None, # 0
8743
    (1, TType.I64, 'id', None, None, ), # 1
8744
  )
8745
 
8746
  def __init__(self, id=None,):
8747
    self.id = id
8748
 
8749
  def read(self, iprot):
8750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8752
      return
8753
    iprot.readStructBegin()
8754
    while True:
8755
      (fname, ftype, fid) = iprot.readFieldBegin()
8756
      if ftype == TType.STOP:
8757
        break
8758
      if fid == 1:
8759
        if ftype == TType.I64:
8760
          self.id = iprot.readI64();
8761
        else:
8762
          iprot.skip(ftype)
8763
      else:
8764
        iprot.skip(ftype)
8765
      iprot.readFieldEnd()
8766
    iprot.readStructEnd()
8767
 
8768
  def write(self, oprot):
8769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8771
      return
8772
    oprot.writeStructBegin('getCategory_args')
8773
    if self.id is not None:
8774
      oprot.writeFieldBegin('id', TType.I64, 1)
8775
      oprot.writeI64(self.id)
8776
      oprot.writeFieldEnd()
8777
    oprot.writeFieldStop()
8778
    oprot.writeStructEnd()
8779
 
8780
  def validate(self):
8781
    return
8782
 
8783
 
8784
  def __repr__(self):
8785
    L = ['%s=%r' % (key, value)
8786
      for key, value in self.__dict__.iteritems()]
8787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8788
 
8789
  def __eq__(self, other):
8790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8791
 
8792
  def __ne__(self, other):
8793
    return not (self == other)
8794
 
8795
class getCategory_result:
8796
  """
8797
  Attributes:
8798
   - success
8799
  """
8800
 
8801
  thrift_spec = (
8802
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8803
  )
8804
 
8805
  def __init__(self, success=None,):
8806
    self.success = success
8807
 
8808
  def read(self, iprot):
8809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8811
      return
8812
    iprot.readStructBegin()
8813
    while True:
8814
      (fname, ftype, fid) = iprot.readFieldBegin()
8815
      if ftype == TType.STOP:
8816
        break
8817
      if fid == 0:
8818
        if ftype == TType.STRUCT:
8819
          self.success = Category()
8820
          self.success.read(iprot)
8821
        else:
8822
          iprot.skip(ftype)
8823
      else:
8824
        iprot.skip(ftype)
8825
      iprot.readFieldEnd()
8826
    iprot.readStructEnd()
8827
 
8828
  def write(self, oprot):
8829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8831
      return
8832
    oprot.writeStructBegin('getCategory_result')
8833
    if self.success is not None:
8834
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8835
      self.success.write(oprot)
8836
      oprot.writeFieldEnd()
8837
    oprot.writeFieldStop()
8838
    oprot.writeStructEnd()
8839
 
8840
  def validate(self):
8841
    return
8842
 
8843
 
8844
  def __repr__(self):
8845
    L = ['%s=%r' % (key, value)
8846
      for key, value in self.__dict__.iteritems()]
8847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8848
 
8849
  def __eq__(self, other):
8850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8851
 
8852
  def __ne__(self, other):
8853
    return not (self == other)
8854
 
8855
class getAllCategories_args:
8856
 
8857
  thrift_spec = (
8858
  )
8859
 
8860
  def read(self, iprot):
8861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8863
      return
8864
    iprot.readStructBegin()
8865
    while True:
8866
      (fname, ftype, fid) = iprot.readFieldBegin()
8867
      if ftype == TType.STOP:
8868
        break
8869
      else:
8870
        iprot.skip(ftype)
8871
      iprot.readFieldEnd()
8872
    iprot.readStructEnd()
8873
 
8874
  def write(self, oprot):
8875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8877
      return
8878
    oprot.writeStructBegin('getAllCategories_args')
8879
    oprot.writeFieldStop()
8880
    oprot.writeStructEnd()
8881
 
8882
  def validate(self):
8883
    return
8884
 
8885
 
8886
  def __repr__(self):
8887
    L = ['%s=%r' % (key, value)
8888
      for key, value in self.__dict__.iteritems()]
8889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8890
 
8891
  def __eq__(self, other):
8892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8893
 
8894
  def __ne__(self, other):
8895
    return not (self == other)
8896
 
8897
class getAllCategories_result:
8898
  """
8899
  Attributes:
8900
   - success
8901
  """
8902
 
8903
  thrift_spec = (
8904
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8905
  )
8906
 
8907
  def __init__(self, success=None,):
8908
    self.success = success
8909
 
8910
  def read(self, iprot):
8911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8913
      return
8914
    iprot.readStructBegin()
8915
    while True:
8916
      (fname, ftype, fid) = iprot.readFieldBegin()
8917
      if ftype == TType.STOP:
8918
        break
8919
      if fid == 0:
8920
        if ftype == TType.LIST:
8921
          self.success = []
8922
          (_etype124, _size121) = iprot.readListBegin()
8923
          for _i125 in xrange(_size121):
8924
            _elem126 = Category()
8925
            _elem126.read(iprot)
8926
            self.success.append(_elem126)
8927
          iprot.readListEnd()
8928
        else:
8929
          iprot.skip(ftype)
8930
      else:
8931
        iprot.skip(ftype)
8932
      iprot.readFieldEnd()
8933
    iprot.readStructEnd()
8934
 
8935
  def write(self, oprot):
8936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8938
      return
8939
    oprot.writeStructBegin('getAllCategories_result')
8940
    if self.success is not None:
8941
      oprot.writeFieldBegin('success', TType.LIST, 0)
8942
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8943
      for iter127 in self.success:
8944
        iter127.write(oprot)
8945
      oprot.writeListEnd()
8946
      oprot.writeFieldEnd()
8947
    oprot.writeFieldStop()
8948
    oprot.writeStructEnd()
8949
 
8950
  def validate(self):
8951
    return
8952
 
8953
 
8954
  def __repr__(self):
8955
    L = ['%s=%r' % (key, value)
8956
      for key, value in self.__dict__.iteritems()]
8957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8958
 
8959
  def __eq__(self, other):
8960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8961
 
8962
  def __ne__(self, other):
8963
    return not (self == other)
8964
 
8965
class getAllSimilarItems_args:
8966
  """
8967
  Attributes:
8968
   - itemId
8969
  """
8970
 
8971
  thrift_spec = (
8972
    None, # 0
8973
    (1, TType.I64, 'itemId', None, None, ), # 1
8974
  )
8975
 
8976
  def __init__(self, itemId=None,):
8977
    self.itemId = itemId
8978
 
8979
  def read(self, iprot):
8980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8982
      return
8983
    iprot.readStructBegin()
8984
    while True:
8985
      (fname, ftype, fid) = iprot.readFieldBegin()
8986
      if ftype == TType.STOP:
8987
        break
8988
      if fid == 1:
8989
        if ftype == TType.I64:
8990
          self.itemId = iprot.readI64();
8991
        else:
8992
          iprot.skip(ftype)
8993
      else:
8994
        iprot.skip(ftype)
8995
      iprot.readFieldEnd()
8996
    iprot.readStructEnd()
8997
 
8998
  def write(self, oprot):
8999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9001
      return
9002
    oprot.writeStructBegin('getAllSimilarItems_args')
9003
    if self.itemId is not None:
9004
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9005
      oprot.writeI64(self.itemId)
9006
      oprot.writeFieldEnd()
9007
    oprot.writeFieldStop()
9008
    oprot.writeStructEnd()
9009
 
9010
  def validate(self):
9011
    return
9012
 
9013
 
9014
  def __repr__(self):
9015
    L = ['%s=%r' % (key, value)
9016
      for key, value in self.__dict__.iteritems()]
9017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9018
 
9019
  def __eq__(self, other):
9020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9021
 
9022
  def __ne__(self, other):
9023
    return not (self == other)
9024
 
9025
class getAllSimilarItems_result:
9026
  """
9027
  Attributes:
9028
   - success
9029
  """
9030
 
9031
  thrift_spec = (
9032
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9033
  )
9034
 
9035
  def __init__(self, success=None,):
9036
    self.success = success
9037
 
9038
  def read(self, iprot):
9039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9041
      return
9042
    iprot.readStructBegin()
9043
    while True:
9044
      (fname, ftype, fid) = iprot.readFieldBegin()
9045
      if ftype == TType.STOP:
9046
        break
9047
      if fid == 0:
9048
        if ftype == TType.LIST:
9049
          self.success = []
9050
          (_etype131, _size128) = iprot.readListBegin()
9051
          for _i132 in xrange(_size128):
9052
            _elem133 = Item()
9053
            _elem133.read(iprot)
9054
            self.success.append(_elem133)
9055
          iprot.readListEnd()
9056
        else:
9057
          iprot.skip(ftype)
9058
      else:
9059
        iprot.skip(ftype)
9060
      iprot.readFieldEnd()
9061
    iprot.readStructEnd()
9062
 
9063
  def write(self, oprot):
9064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9066
      return
9067
    oprot.writeStructBegin('getAllSimilarItems_result')
9068
    if self.success is not None:
9069
      oprot.writeFieldBegin('success', TType.LIST, 0)
9070
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9071
      for iter134 in self.success:
9072
        iter134.write(oprot)
9073
      oprot.writeListEnd()
9074
      oprot.writeFieldEnd()
9075
    oprot.writeFieldStop()
9076
    oprot.writeStructEnd()
9077
 
9078
  def validate(self):
9079
    return
9080
 
9081
 
9082
  def __repr__(self):
9083
    L = ['%s=%r' % (key, value)
9084
      for key, value in self.__dict__.iteritems()]
9085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9086
 
9087
  def __eq__(self, other):
9088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9089
 
9090
  def __ne__(self, other):
9091
    return not (self == other)
9092
 
9093
class addSimilarItem_args:
9094
  """
9095
  Attributes:
9096
   - itemId
9097
   - catalogItemId
9098
  """
9099
 
9100
  thrift_spec = (
9101
    None, # 0
9102
    (1, TType.I64, 'itemId', None, None, ), # 1
9103
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9104
  )
9105
 
9106
  def __init__(self, itemId=None, catalogItemId=None,):
9107
    self.itemId = itemId
9108
    self.catalogItemId = catalogItemId
9109
 
9110
  def read(self, iprot):
9111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9113
      return
9114
    iprot.readStructBegin()
9115
    while True:
9116
      (fname, ftype, fid) = iprot.readFieldBegin()
9117
      if ftype == TType.STOP:
9118
        break
9119
      if fid == 1:
9120
        if ftype == TType.I64:
9121
          self.itemId = iprot.readI64();
9122
        else:
9123
          iprot.skip(ftype)
9124
      elif fid == 2:
9125
        if ftype == TType.I64:
9126
          self.catalogItemId = iprot.readI64();
9127
        else:
9128
          iprot.skip(ftype)
9129
      else:
9130
        iprot.skip(ftype)
9131
      iprot.readFieldEnd()
9132
    iprot.readStructEnd()
9133
 
9134
  def write(self, oprot):
9135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9137
      return
9138
    oprot.writeStructBegin('addSimilarItem_args')
9139
    if self.itemId is not None:
9140
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9141
      oprot.writeI64(self.itemId)
9142
      oprot.writeFieldEnd()
9143
    if self.catalogItemId is not None:
9144
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9145
      oprot.writeI64(self.catalogItemId)
9146
      oprot.writeFieldEnd()
9147
    oprot.writeFieldStop()
9148
    oprot.writeStructEnd()
9149
 
9150
  def validate(self):
9151
    return
9152
 
9153
 
9154
  def __repr__(self):
9155
    L = ['%s=%r' % (key, value)
9156
      for key, value in self.__dict__.iteritems()]
9157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9158
 
9159
  def __eq__(self, other):
9160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9161
 
9162
  def __ne__(self, other):
9163
    return not (self == other)
9164
 
9165
class addSimilarItem_result:
9166
  """
9167
  Attributes:
9168
   - success
9169
   - cex
9170
  """
9171
 
9172
  thrift_spec = (
9173
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9174
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9175
  )
9176
 
9177
  def __init__(self, success=None, cex=None,):
9178
    self.success = success
9179
    self.cex = cex
9180
 
9181
  def read(self, iprot):
9182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9184
      return
9185
    iprot.readStructBegin()
9186
    while True:
9187
      (fname, ftype, fid) = iprot.readFieldBegin()
9188
      if ftype == TType.STOP:
9189
        break
9190
      if fid == 0:
9191
        if ftype == TType.STRUCT:
9192
          self.success = Item()
9193
          self.success.read(iprot)
9194
        else:
9195
          iprot.skip(ftype)
9196
      elif fid == 1:
9197
        if ftype == TType.STRUCT:
9198
          self.cex = CatalogServiceException()
9199
          self.cex.read(iprot)
9200
        else:
9201
          iprot.skip(ftype)
9202
      else:
9203
        iprot.skip(ftype)
9204
      iprot.readFieldEnd()
9205
    iprot.readStructEnd()
9206
 
9207
  def write(self, oprot):
9208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9210
      return
9211
    oprot.writeStructBegin('addSimilarItem_result')
9212
    if self.success is not None:
9213
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9214
      self.success.write(oprot)
9215
      oprot.writeFieldEnd()
9216
    if self.cex is not None:
9217
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9218
      self.cex.write(oprot)
9219
      oprot.writeFieldEnd()
9220
    oprot.writeFieldStop()
9221
    oprot.writeStructEnd()
9222
 
9223
  def validate(self):
9224
    return
9225
 
9226
 
9227
  def __repr__(self):
9228
    L = ['%s=%r' % (key, value)
9229
      for key, value in self.__dict__.iteritems()]
9230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9231
 
9232
  def __eq__(self, other):
9233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9234
 
9235
  def __ne__(self, other):
9236
    return not (self == other)
9237
 
6512 kshitij.so 9238
class addTag_args:
9239
  """
9240
  Attributes:
9241
   - displayName
9242
   - itemId
9243
  """
9244
 
9245
  thrift_spec = (
9246
    None, # 0
9247
    (1, TType.STRING, 'displayName', None, None, ), # 1
9248
    (2, TType.I64, 'itemId', None, None, ), # 2
9249
  )
9250
 
9251
  def __init__(self, displayName=None, itemId=None,):
9252
    self.displayName = displayName
9253
    self.itemId = itemId
9254
 
9255
  def read(self, iprot):
9256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9258
      return
9259
    iprot.readStructBegin()
9260
    while True:
9261
      (fname, ftype, fid) = iprot.readFieldBegin()
9262
      if ftype == TType.STOP:
9263
        break
9264
      if fid == 1:
9265
        if ftype == TType.STRING:
9266
          self.displayName = iprot.readString();
9267
        else:
9268
          iprot.skip(ftype)
9269
      elif fid == 2:
9270
        if ftype == TType.I64:
9271
          self.itemId = iprot.readI64();
9272
        else:
9273
          iprot.skip(ftype)
9274
      else:
9275
        iprot.skip(ftype)
9276
      iprot.readFieldEnd()
9277
    iprot.readStructEnd()
9278
 
9279
  def write(self, oprot):
9280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9282
      return
9283
    oprot.writeStructBegin('addTag_args')
9284
    if self.displayName is not None:
9285
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9286
      oprot.writeString(self.displayName)
9287
      oprot.writeFieldEnd()
9288
    if self.itemId is not None:
9289
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9290
      oprot.writeI64(self.itemId)
9291
      oprot.writeFieldEnd()
9292
    oprot.writeFieldStop()
9293
    oprot.writeStructEnd()
9294
 
9295
  def validate(self):
9296
    return
9297
 
9298
 
9299
  def __repr__(self):
9300
    L = ['%s=%r' % (key, value)
9301
      for key, value in self.__dict__.iteritems()]
9302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9303
 
9304
  def __eq__(self, other):
9305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9306
 
9307
  def __ne__(self, other):
9308
    return not (self == other)
9309
 
9310
class addTag_result:
9311
  """
9312
  Attributes:
9313
   - success
9314
  """
9315
 
9316
  thrift_spec = (
9317
    (0, TType.BOOL, 'success', None, None, ), # 0
9318
  )
9319
 
9320
  def __init__(self, success=None,):
9321
    self.success = success
9322
 
9323
  def read(self, iprot):
9324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9326
      return
9327
    iprot.readStructBegin()
9328
    while True:
9329
      (fname, ftype, fid) = iprot.readFieldBegin()
9330
      if ftype == TType.STOP:
9331
        break
9332
      if fid == 0:
9333
        if ftype == TType.BOOL:
9334
          self.success = iprot.readBool();
9335
        else:
9336
          iprot.skip(ftype)
9337
      else:
9338
        iprot.skip(ftype)
9339
      iprot.readFieldEnd()
9340
    iprot.readStructEnd()
9341
 
9342
  def write(self, oprot):
9343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9345
      return
9346
    oprot.writeStructBegin('addTag_result')
9347
    if self.success is not None:
9348
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9349
      oprot.writeBool(self.success)
9350
      oprot.writeFieldEnd()
9351
    oprot.writeFieldStop()
9352
    oprot.writeStructEnd()
9353
 
9354
  def validate(self):
9355
    return
9356
 
9357
 
9358
  def __repr__(self):
9359
    L = ['%s=%r' % (key, value)
9360
      for key, value in self.__dict__.iteritems()]
9361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9362
 
9363
  def __eq__(self, other):
9364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9365
 
9366
  def __ne__(self, other):
9367
    return not (self == other)
9368
 
9369
class deleteEntityTag_args:
9370
  """
9371
  Attributes:
9372
   - displayName
9373
   - itemId
9374
  """
9375
 
9376
  thrift_spec = (
9377
    None, # 0
9378
    (1, TType.STRING, 'displayName', None, None, ), # 1
9379
    (2, TType.I64, 'itemId', None, None, ), # 2
9380
  )
9381
 
9382
  def __init__(self, displayName=None, itemId=None,):
9383
    self.displayName = displayName
9384
    self.itemId = itemId
9385
 
9386
  def read(self, iprot):
9387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9389
      return
9390
    iprot.readStructBegin()
9391
    while True:
9392
      (fname, ftype, fid) = iprot.readFieldBegin()
9393
      if ftype == TType.STOP:
9394
        break
9395
      if fid == 1:
9396
        if ftype == TType.STRING:
9397
          self.displayName = iprot.readString();
9398
        else:
9399
          iprot.skip(ftype)
9400
      elif fid == 2:
9401
        if ftype == TType.I64:
9402
          self.itemId = iprot.readI64();
9403
        else:
9404
          iprot.skip(ftype)
9405
      else:
9406
        iprot.skip(ftype)
9407
      iprot.readFieldEnd()
9408
    iprot.readStructEnd()
9409
 
9410
  def write(self, oprot):
9411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9413
      return
9414
    oprot.writeStructBegin('deleteEntityTag_args')
9415
    if self.displayName is not None:
9416
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9417
      oprot.writeString(self.displayName)
9418
      oprot.writeFieldEnd()
9419
    if self.itemId is not None:
9420
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9421
      oprot.writeI64(self.itemId)
9422
      oprot.writeFieldEnd()
9423
    oprot.writeFieldStop()
9424
    oprot.writeStructEnd()
9425
 
9426
  def validate(self):
9427
    return
9428
 
9429
 
9430
  def __repr__(self):
9431
    L = ['%s=%r' % (key, value)
9432
      for key, value in self.__dict__.iteritems()]
9433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9434
 
9435
  def __eq__(self, other):
9436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9437
 
9438
  def __ne__(self, other):
9439
    return not (self == other)
9440
 
9441
class deleteEntityTag_result:
9442
  """
9443
  Attributes:
9444
   - success
9445
  """
9446
 
9447
  thrift_spec = (
9448
    (0, TType.BOOL, 'success', None, None, ), # 0
9449
  )
9450
 
9451
  def __init__(self, success=None,):
9452
    self.success = success
9453
 
9454
  def read(self, iprot):
9455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9457
      return
9458
    iprot.readStructBegin()
9459
    while True:
9460
      (fname, ftype, fid) = iprot.readFieldBegin()
9461
      if ftype == TType.STOP:
9462
        break
9463
      if fid == 0:
9464
        if ftype == TType.BOOL:
9465
          self.success = iprot.readBool();
9466
        else:
9467
          iprot.skip(ftype)
9468
      else:
9469
        iprot.skip(ftype)
9470
      iprot.readFieldEnd()
9471
    iprot.readStructEnd()
9472
 
9473
  def write(self, oprot):
9474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9476
      return
9477
    oprot.writeStructBegin('deleteEntityTag_result')
9478
    if self.success is not None:
9479
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9480
      oprot.writeBool(self.success)
9481
      oprot.writeFieldEnd()
9482
    oprot.writeFieldStop()
9483
    oprot.writeStructEnd()
9484
 
9485
  def validate(self):
9486
    return
9487
 
9488
 
9489
  def __repr__(self):
9490
    L = ['%s=%r' % (key, value)
9491
      for key, value in self.__dict__.iteritems()]
9492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9493
 
9494
  def __eq__(self, other):
9495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9496
 
9497
  def __ne__(self, other):
9498
    return not (self == other)
9499
 
9500
class deleteTag_args:
9501
  """
9502
  Attributes:
9503
   - displayName
9504
  """
9505
 
9506
  thrift_spec = (
9507
    None, # 0
9508
    (1, TType.STRING, 'displayName', None, None, ), # 1
9509
  )
9510
 
9511
  def __init__(self, displayName=None,):
9512
    self.displayName = displayName
9513
 
9514
  def read(self, iprot):
9515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9517
      return
9518
    iprot.readStructBegin()
9519
    while True:
9520
      (fname, ftype, fid) = iprot.readFieldBegin()
9521
      if ftype == TType.STOP:
9522
        break
9523
      if fid == 1:
9524
        if ftype == TType.STRING:
9525
          self.displayName = iprot.readString();
9526
        else:
9527
          iprot.skip(ftype)
9528
      else:
9529
        iprot.skip(ftype)
9530
      iprot.readFieldEnd()
9531
    iprot.readStructEnd()
9532
 
9533
  def write(self, oprot):
9534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9536
      return
9537
    oprot.writeStructBegin('deleteTag_args')
9538
    if self.displayName is not None:
9539
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9540
      oprot.writeString(self.displayName)
9541
      oprot.writeFieldEnd()
9542
    oprot.writeFieldStop()
9543
    oprot.writeStructEnd()
9544
 
9545
  def validate(self):
9546
    return
9547
 
9548
 
9549
  def __repr__(self):
9550
    L = ['%s=%r' % (key, value)
9551
      for key, value in self.__dict__.iteritems()]
9552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9553
 
9554
  def __eq__(self, other):
9555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9556
 
9557
  def __ne__(self, other):
9558
    return not (self == other)
9559
 
9560
class deleteTag_result:
9561
  """
9562
  Attributes:
9563
   - success
9564
  """
9565
 
9566
  thrift_spec = (
9567
    (0, TType.BOOL, 'success', None, None, ), # 0
9568
  )
9569
 
9570
  def __init__(self, success=None,):
9571
    self.success = success
9572
 
9573
  def read(self, iprot):
9574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9576
      return
9577
    iprot.readStructBegin()
9578
    while True:
9579
      (fname, ftype, fid) = iprot.readFieldBegin()
9580
      if ftype == TType.STOP:
9581
        break
9582
      if fid == 0:
9583
        if ftype == TType.BOOL:
9584
          self.success = iprot.readBool();
9585
        else:
9586
          iprot.skip(ftype)
9587
      else:
9588
        iprot.skip(ftype)
9589
      iprot.readFieldEnd()
9590
    iprot.readStructEnd()
9591
 
9592
  def write(self, oprot):
9593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9595
      return
9596
    oprot.writeStructBegin('deleteTag_result')
9597
    if self.success is not None:
9598
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9599
      oprot.writeBool(self.success)
9600
      oprot.writeFieldEnd()
9601
    oprot.writeFieldStop()
9602
    oprot.writeStructEnd()
9603
 
9604
  def validate(self):
9605
    return
9606
 
9607
 
9608
  def __repr__(self):
9609
    L = ['%s=%r' % (key, value)
9610
      for key, value in self.__dict__.iteritems()]
9611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9612
 
9613
  def __eq__(self, other):
9614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9615
 
9616
  def __ne__(self, other):
9617
    return not (self == other)
9618
 
9619
class getAllTags_args:
9620
 
9621
  thrift_spec = (
9622
  )
9623
 
9624
  def read(self, iprot):
9625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9627
      return
9628
    iprot.readStructBegin()
9629
    while True:
9630
      (fname, ftype, fid) = iprot.readFieldBegin()
9631
      if ftype == TType.STOP:
9632
        break
9633
      else:
9634
        iprot.skip(ftype)
9635
      iprot.readFieldEnd()
9636
    iprot.readStructEnd()
9637
 
9638
  def write(self, oprot):
9639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9641
      return
9642
    oprot.writeStructBegin('getAllTags_args')
9643
    oprot.writeFieldStop()
9644
    oprot.writeStructEnd()
9645
 
9646
  def validate(self):
9647
    return
9648
 
9649
 
9650
  def __repr__(self):
9651
    L = ['%s=%r' % (key, value)
9652
      for key, value in self.__dict__.iteritems()]
9653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9654
 
9655
  def __eq__(self, other):
9656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9657
 
9658
  def __ne__(self, other):
9659
    return not (self == other)
9660
 
9661
class getAllTags_result:
9662
  """
9663
  Attributes:
9664
   - success
9665
  """
9666
 
9667
  thrift_spec = (
9668
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9669
  )
9670
 
9671
  def __init__(self, success=None,):
9672
    self.success = success
9673
 
9674
  def read(self, iprot):
9675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9677
      return
9678
    iprot.readStructBegin()
9679
    while True:
9680
      (fname, ftype, fid) = iprot.readFieldBegin()
9681
      if ftype == TType.STOP:
9682
        break
9683
      if fid == 0:
9684
        if ftype == TType.LIST:
9685
          self.success = []
9686
          (_etype138, _size135) = iprot.readListBegin()
9687
          for _i139 in xrange(_size135):
9688
            _elem140 = iprot.readString();
9689
            self.success.append(_elem140)
9690
          iprot.readListEnd()
9691
        else:
9692
          iprot.skip(ftype)
9693
      else:
9694
        iprot.skip(ftype)
9695
      iprot.readFieldEnd()
9696
    iprot.readStructEnd()
9697
 
9698
  def write(self, oprot):
9699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9701
      return
9702
    oprot.writeStructBegin('getAllTags_result')
9703
    if self.success is not None:
9704
      oprot.writeFieldBegin('success', TType.LIST, 0)
9705
      oprot.writeListBegin(TType.STRING, len(self.success))
9706
      for iter141 in self.success:
9707
        oprot.writeString(iter141)
9708
      oprot.writeListEnd()
9709
      oprot.writeFieldEnd()
9710
    oprot.writeFieldStop()
9711
    oprot.writeStructEnd()
9712
 
9713
  def validate(self):
9714
    return
9715
 
9716
 
9717
  def __repr__(self):
9718
    L = ['%s=%r' % (key, value)
9719
      for key, value in self.__dict__.iteritems()]
9720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9721
 
9722
  def __eq__(self, other):
9723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9724
 
9725
  def __ne__(self, other):
9726
    return not (self == other)
9727
 
9728
class getAllEntitiesByTagName_args:
9729
  """
9730
  Attributes:
9731
   - displayName
9732
  """
9733
 
9734
  thrift_spec = (
9735
    None, # 0
9736
    (1, TType.STRING, 'displayName', None, None, ), # 1
9737
  )
9738
 
9739
  def __init__(self, displayName=None,):
9740
    self.displayName = displayName
9741
 
9742
  def read(self, iprot):
9743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9745
      return
9746
    iprot.readStructBegin()
9747
    while True:
9748
      (fname, ftype, fid) = iprot.readFieldBegin()
9749
      if ftype == TType.STOP:
9750
        break
9751
      if fid == 1:
9752
        if ftype == TType.STRING:
9753
          self.displayName = iprot.readString();
9754
        else:
9755
          iprot.skip(ftype)
9756
      else:
9757
        iprot.skip(ftype)
9758
      iprot.readFieldEnd()
9759
    iprot.readStructEnd()
9760
 
9761
  def write(self, oprot):
9762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9764
      return
9765
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9766
    if self.displayName is not None:
9767
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9768
      oprot.writeString(self.displayName)
9769
      oprot.writeFieldEnd()
9770
    oprot.writeFieldStop()
9771
    oprot.writeStructEnd()
9772
 
9773
  def validate(self):
9774
    return
9775
 
9776
 
9777
  def __repr__(self):
9778
    L = ['%s=%r' % (key, value)
9779
      for key, value in self.__dict__.iteritems()]
9780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9781
 
9782
  def __eq__(self, other):
9783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9784
 
9785
  def __ne__(self, other):
9786
    return not (self == other)
9787
 
9788
class getAllEntitiesByTagName_result:
9789
  """
9790
  Attributes:
9791
   - success
9792
  """
9793
 
9794
  thrift_spec = (
9795
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9796
  )
9797
 
9798
  def __init__(self, success=None,):
9799
    self.success = success
9800
 
9801
  def read(self, iprot):
9802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9804
      return
9805
    iprot.readStructBegin()
9806
    while True:
9807
      (fname, ftype, fid) = iprot.readFieldBegin()
9808
      if ftype == TType.STOP:
9809
        break
9810
      if fid == 0:
9811
        if ftype == TType.LIST:
9812
          self.success = []
9813
          (_etype145, _size142) = iprot.readListBegin()
9814
          for _i146 in xrange(_size142):
9815
            _elem147 = iprot.readI64();
9816
            self.success.append(_elem147)
9817
          iprot.readListEnd()
9818
        else:
9819
          iprot.skip(ftype)
9820
      else:
9821
        iprot.skip(ftype)
9822
      iprot.readFieldEnd()
9823
    iprot.readStructEnd()
9824
 
9825
  def write(self, oprot):
9826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9828
      return
9829
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9830
    if self.success is not None:
9831
      oprot.writeFieldBegin('success', TType.LIST, 0)
9832
      oprot.writeListBegin(TType.I64, len(self.success))
9833
      for iter148 in self.success:
9834
        oprot.writeI64(iter148)
9835
      oprot.writeListEnd()
9836
      oprot.writeFieldEnd()
9837
    oprot.writeFieldStop()
9838
    oprot.writeStructEnd()
9839
 
9840
  def validate(self):
9841
    return
9842
 
9843
 
9844
  def __repr__(self):
9845
    L = ['%s=%r' % (key, value)
9846
      for key, value in self.__dict__.iteritems()]
9847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9848
 
9849
  def __eq__(self, other):
9850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9851
 
9852
  def __ne__(self, other):
9853
    return not (self == other)
9854
 
6845 amit.gupta 9855
class getAllEntityTags_args:
9856
 
9857
  thrift_spec = (
9858
  )
9859
 
9860
  def read(self, iprot):
9861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9863
      return
9864
    iprot.readStructBegin()
9865
    while True:
9866
      (fname, ftype, fid) = iprot.readFieldBegin()
9867
      if ftype == TType.STOP:
9868
        break
9869
      else:
9870
        iprot.skip(ftype)
9871
      iprot.readFieldEnd()
9872
    iprot.readStructEnd()
9873
 
9874
  def write(self, oprot):
9875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9877
      return
9878
    oprot.writeStructBegin('getAllEntityTags_args')
9879
    oprot.writeFieldStop()
9880
    oprot.writeStructEnd()
9881
 
9882
  def validate(self):
9883
    return
9884
 
9885
 
9886
  def __repr__(self):
9887
    L = ['%s=%r' % (key, value)
9888
      for key, value in self.__dict__.iteritems()]
9889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9890
 
9891
  def __eq__(self, other):
9892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9893
 
9894
  def __ne__(self, other):
9895
    return not (self == other)
9896
 
9897
class getAllEntityTags_result:
9898
  """
9899
  Attributes:
9900
   - success
9901
  """
9902
 
9903
  thrift_spec = (
9904
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9905
  )
9906
 
9907
  def __init__(self, success=None,):
9908
    self.success = success
9909
 
9910
  def read(self, iprot):
9911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9913
      return
9914
    iprot.readStructBegin()
9915
    while True:
9916
      (fname, ftype, fid) = iprot.readFieldBegin()
9917
      if ftype == TType.STOP:
9918
        break
9919
      if fid == 0:
9920
        if ftype == TType.MAP:
9921
          self.success = {}
9922
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9923
          for _i153 in xrange(_size149):
9924
            _key154 = iprot.readI64();
9925
            _val155 = []
9926
            (_etype159, _size156) = iprot.readListBegin()
9927
            for _i160 in xrange(_size156):
9928
              _elem161 = iprot.readString();
9929
              _val155.append(_elem161)
9930
            iprot.readListEnd()
9931
            self.success[_key154] = _val155
9932
          iprot.readMapEnd()
9933
        else:
9934
          iprot.skip(ftype)
9935
      else:
9936
        iprot.skip(ftype)
9937
      iprot.readFieldEnd()
9938
    iprot.readStructEnd()
9939
 
9940
  def write(self, oprot):
9941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9943
      return
9944
    oprot.writeStructBegin('getAllEntityTags_result')
9945
    if self.success is not None:
9946
      oprot.writeFieldBegin('success', TType.MAP, 0)
9947
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9948
      for kiter162,viter163 in self.success.items():
9949
        oprot.writeI64(kiter162)
9950
        oprot.writeListBegin(TType.STRING, len(viter163))
9951
        for iter164 in viter163:
9952
          oprot.writeString(iter164)
9953
        oprot.writeListEnd()
9954
      oprot.writeMapEnd()
9955
      oprot.writeFieldEnd()
9956
    oprot.writeFieldStop()
9957
    oprot.writeStructEnd()
9958
 
9959
  def validate(self):
9960
    return
9961
 
9962
 
9963
  def __repr__(self):
9964
    L = ['%s=%r' % (key, value)
9965
      for key, value in self.__dict__.iteritems()]
9966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9967
 
9968
  def __eq__(self, other):
9969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9970
 
9971
  def __ne__(self, other):
9972
    return not (self == other)
9973
 
6850 kshitij.so 9974
class addBanner_args:
9975
  """
9976
  Attributes:
9977
   - bannerName
9978
   - imageName
9979
   - link
9980
   - priority
9981
   - isActive
9982
   - hasMap
9983
  """
9984
 
9985
  thrift_spec = (
9986
    None, # 0
9987
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9988
    (2, TType.STRING, 'imageName', None, None, ), # 2
9989
    (3, TType.STRING, 'link', None, None, ), # 3
9990
    (4, TType.I64, 'priority', None, None, ), # 4
9991
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9992
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9993
  )
9994
 
9995
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9996
    self.bannerName = bannerName
9997
    self.imageName = imageName
9998
    self.link = link
9999
    self.priority = priority
10000
    self.isActive = isActive
10001
    self.hasMap = hasMap
10002
 
10003
  def read(self, iprot):
10004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10006
      return
10007
    iprot.readStructBegin()
10008
    while True:
10009
      (fname, ftype, fid) = iprot.readFieldBegin()
10010
      if ftype == TType.STOP:
10011
        break
10012
      if fid == 1:
10013
        if ftype == TType.STRING:
10014
          self.bannerName = iprot.readString();
10015
        else:
10016
          iprot.skip(ftype)
10017
      elif fid == 2:
10018
        if ftype == TType.STRING:
10019
          self.imageName = iprot.readString();
10020
        else:
10021
          iprot.skip(ftype)
10022
      elif fid == 3:
10023
        if ftype == TType.STRING:
10024
          self.link = iprot.readString();
10025
        else:
10026
          iprot.skip(ftype)
10027
      elif fid == 4:
10028
        if ftype == TType.I64:
10029
          self.priority = iprot.readI64();
10030
        else:
10031
          iprot.skip(ftype)
10032
      elif fid == 5:
10033
        if ftype == TType.BOOL:
10034
          self.isActive = iprot.readBool();
10035
        else:
10036
          iprot.skip(ftype)
10037
      elif fid == 6:
10038
        if ftype == TType.BOOL:
10039
          self.hasMap = iprot.readBool();
10040
        else:
10041
          iprot.skip(ftype)
10042
      else:
10043
        iprot.skip(ftype)
10044
      iprot.readFieldEnd()
10045
    iprot.readStructEnd()
10046
 
10047
  def write(self, oprot):
10048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10050
      return
10051
    oprot.writeStructBegin('addBanner_args')
10052
    if self.bannerName is not None:
10053
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10054
      oprot.writeString(self.bannerName)
10055
      oprot.writeFieldEnd()
10056
    if self.imageName is not None:
10057
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
10058
      oprot.writeString(self.imageName)
10059
      oprot.writeFieldEnd()
10060
    if self.link is not None:
10061
      oprot.writeFieldBegin('link', TType.STRING, 3)
10062
      oprot.writeString(self.link)
10063
      oprot.writeFieldEnd()
10064
    if self.priority is not None:
10065
      oprot.writeFieldBegin('priority', TType.I64, 4)
10066
      oprot.writeI64(self.priority)
10067
      oprot.writeFieldEnd()
10068
    if self.isActive is not None:
10069
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
10070
      oprot.writeBool(self.isActive)
10071
      oprot.writeFieldEnd()
10072
    if self.hasMap is not None:
10073
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
10074
      oprot.writeBool(self.hasMap)
10075
      oprot.writeFieldEnd()
10076
    oprot.writeFieldStop()
10077
    oprot.writeStructEnd()
10078
 
10079
  def validate(self):
10080
    return
10081
 
10082
 
10083
  def __repr__(self):
10084
    L = ['%s=%r' % (key, value)
10085
      for key, value in self.__dict__.iteritems()]
10086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10087
 
10088
  def __eq__(self, other):
10089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10090
 
10091
  def __ne__(self, other):
10092
    return not (self == other)
10093
 
10094
class addBanner_result:
10095
  """
10096
  Attributes:
10097
   - success
10098
  """
10099
 
10100
  thrift_spec = (
10101
    (0, TType.BOOL, 'success', None, None, ), # 0
10102
  )
10103
 
10104
  def __init__(self, success=None,):
10105
    self.success = success
10106
 
10107
  def read(self, iprot):
10108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10110
      return
10111
    iprot.readStructBegin()
10112
    while True:
10113
      (fname, ftype, fid) = iprot.readFieldBegin()
10114
      if ftype == TType.STOP:
10115
        break
10116
      if fid == 0:
10117
        if ftype == TType.BOOL:
10118
          self.success = iprot.readBool();
10119
        else:
10120
          iprot.skip(ftype)
10121
      else:
10122
        iprot.skip(ftype)
10123
      iprot.readFieldEnd()
10124
    iprot.readStructEnd()
10125
 
10126
  def write(self, oprot):
10127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10129
      return
10130
    oprot.writeStructBegin('addBanner_result')
10131
    if self.success is not None:
10132
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10133
      oprot.writeBool(self.success)
10134
      oprot.writeFieldEnd()
10135
    oprot.writeFieldStop()
10136
    oprot.writeStructEnd()
10137
 
10138
  def validate(self):
10139
    return
10140
 
10141
 
10142
  def __repr__(self):
10143
    L = ['%s=%r' % (key, value)
10144
      for key, value in self.__dict__.iteritems()]
10145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10146
 
10147
  def __eq__(self, other):
10148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10149
 
10150
  def __ne__(self, other):
10151
    return not (self == other)
10152
 
10153
class getAllBanners_args:
10154
 
10155
  thrift_spec = (
10156
  )
10157
 
10158
  def read(self, iprot):
10159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10161
      return
10162
    iprot.readStructBegin()
10163
    while True:
10164
      (fname, ftype, fid) = iprot.readFieldBegin()
10165
      if ftype == TType.STOP:
10166
        break
10167
      else:
10168
        iprot.skip(ftype)
10169
      iprot.readFieldEnd()
10170
    iprot.readStructEnd()
10171
 
10172
  def write(self, oprot):
10173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10175
      return
10176
    oprot.writeStructBegin('getAllBanners_args')
10177
    oprot.writeFieldStop()
10178
    oprot.writeStructEnd()
10179
 
10180
  def validate(self):
10181
    return
10182
 
10183
 
10184
  def __repr__(self):
10185
    L = ['%s=%r' % (key, value)
10186
      for key, value in self.__dict__.iteritems()]
10187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10188
 
10189
  def __eq__(self, other):
10190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10191
 
10192
  def __ne__(self, other):
10193
    return not (self == other)
10194
 
10195
class getAllBanners_result:
10196
  """
10197
  Attributes:
10198
   - success
10199
  """
10200
 
10201
  thrift_spec = (
10202
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10203
  )
10204
 
10205
  def __init__(self, success=None,):
10206
    self.success = success
10207
 
10208
  def read(self, iprot):
10209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10211
      return
10212
    iprot.readStructBegin()
10213
    while True:
10214
      (fname, ftype, fid) = iprot.readFieldBegin()
10215
      if ftype == TType.STOP:
10216
        break
10217
      if fid == 0:
10218
        if ftype == TType.LIST:
10219
          self.success = []
10220
          (_etype168, _size165) = iprot.readListBegin()
10221
          for _i169 in xrange(_size165):
10222
            _elem170 = iprot.readString();
10223
            self.success.append(_elem170)
10224
          iprot.readListEnd()
10225
        else:
10226
          iprot.skip(ftype)
10227
      else:
10228
        iprot.skip(ftype)
10229
      iprot.readFieldEnd()
10230
    iprot.readStructEnd()
10231
 
10232
  def write(self, oprot):
10233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10235
      return
10236
    oprot.writeStructBegin('getAllBanners_result')
10237
    if self.success is not None:
10238
      oprot.writeFieldBegin('success', TType.LIST, 0)
10239
      oprot.writeListBegin(TType.STRING, len(self.success))
10240
      for iter171 in self.success:
10241
        oprot.writeString(iter171)
10242
      oprot.writeListEnd()
10243
      oprot.writeFieldEnd()
10244
    oprot.writeFieldStop()
10245
    oprot.writeStructEnd()
10246
 
10247
  def validate(self):
10248
    return
10249
 
10250
 
10251
  def __repr__(self):
10252
    L = ['%s=%r' % (key, value)
10253
      for key, value in self.__dict__.iteritems()]
10254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10255
 
10256
  def __eq__(self, other):
10257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10258
 
10259
  def __ne__(self, other):
10260
    return not (self == other)
10261
 
10262
class deleteBanner_args:
10263
  """
10264
  Attributes:
10265
   - bannerName
10266
  """
10267
 
10268
  thrift_spec = (
10269
    None, # 0
10270
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10271
  )
10272
 
10273
  def __init__(self, bannerName=None,):
10274
    self.bannerName = bannerName
10275
 
10276
  def read(self, iprot):
10277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10279
      return
10280
    iprot.readStructBegin()
10281
    while True:
10282
      (fname, ftype, fid) = iprot.readFieldBegin()
10283
      if ftype == TType.STOP:
10284
        break
10285
      if fid == 1:
10286
        if ftype == TType.STRING:
10287
          self.bannerName = iprot.readString();
10288
        else:
10289
          iprot.skip(ftype)
10290
      else:
10291
        iprot.skip(ftype)
10292
      iprot.readFieldEnd()
10293
    iprot.readStructEnd()
10294
 
10295
  def write(self, oprot):
10296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10298
      return
10299
    oprot.writeStructBegin('deleteBanner_args')
10300
    if self.bannerName is not None:
10301
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10302
      oprot.writeString(self.bannerName)
10303
      oprot.writeFieldEnd()
10304
    oprot.writeFieldStop()
10305
    oprot.writeStructEnd()
10306
 
10307
  def validate(self):
10308
    return
10309
 
10310
 
10311
  def __repr__(self):
10312
    L = ['%s=%r' % (key, value)
10313
      for key, value in self.__dict__.iteritems()]
10314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10315
 
10316
  def __eq__(self, other):
10317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10318
 
10319
  def __ne__(self, other):
10320
    return not (self == other)
10321
 
10322
class deleteBanner_result:
10323
  """
10324
  Attributes:
10325
   - success
10326
  """
10327
 
10328
  thrift_spec = (
10329
    (0, TType.BOOL, 'success', None, None, ), # 0
10330
  )
10331
 
10332
  def __init__(self, success=None,):
10333
    self.success = success
10334
 
10335
  def read(self, iprot):
10336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10338
      return
10339
    iprot.readStructBegin()
10340
    while True:
10341
      (fname, ftype, fid) = iprot.readFieldBegin()
10342
      if ftype == TType.STOP:
10343
        break
10344
      if fid == 0:
10345
        if ftype == TType.BOOL:
10346
          self.success = iprot.readBool();
10347
        else:
10348
          iprot.skip(ftype)
10349
      else:
10350
        iprot.skip(ftype)
10351
      iprot.readFieldEnd()
10352
    iprot.readStructEnd()
10353
 
10354
  def write(self, oprot):
10355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10357
      return
10358
    oprot.writeStructBegin('deleteBanner_result')
10359
    if self.success is not None:
10360
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10361
      oprot.writeBool(self.success)
10362
      oprot.writeFieldEnd()
10363
    oprot.writeFieldStop()
10364
    oprot.writeStructEnd()
10365
 
10366
  def validate(self):
10367
    return
10368
 
10369
 
10370
  def __repr__(self):
10371
    L = ['%s=%r' % (key, value)
10372
      for key, value in self.__dict__.iteritems()]
10373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10374
 
10375
  def __eq__(self, other):
10376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10377
 
10378
  def __ne__(self, other):
10379
    return not (self == other)
10380
 
10381
class getBannerDetails_args:
10382
  """
10383
  Attributes:
10384
   - bannerName
10385
  """
10386
 
10387
  thrift_spec = (
10388
    None, # 0
10389
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10390
  )
10391
 
10392
  def __init__(self, bannerName=None,):
10393
    self.bannerName = bannerName
10394
 
10395
  def read(self, iprot):
10396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10398
      return
10399
    iprot.readStructBegin()
10400
    while True:
10401
      (fname, ftype, fid) = iprot.readFieldBegin()
10402
      if ftype == TType.STOP:
10403
        break
10404
      if fid == 1:
10405
        if ftype == TType.STRING:
10406
          self.bannerName = iprot.readString();
10407
        else:
10408
          iprot.skip(ftype)
10409
      else:
10410
        iprot.skip(ftype)
10411
      iprot.readFieldEnd()
10412
    iprot.readStructEnd()
10413
 
10414
  def write(self, oprot):
10415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10417
      return
10418
    oprot.writeStructBegin('getBannerDetails_args')
10419
    if self.bannerName is not None:
10420
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10421
      oprot.writeString(self.bannerName)
10422
      oprot.writeFieldEnd()
10423
    oprot.writeFieldStop()
10424
    oprot.writeStructEnd()
10425
 
10426
  def validate(self):
10427
    return
10428
 
10429
 
10430
  def __repr__(self):
10431
    L = ['%s=%r' % (key, value)
10432
      for key, value in self.__dict__.iteritems()]
10433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10434
 
10435
  def __eq__(self, other):
10436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10437
 
10438
  def __ne__(self, other):
10439
    return not (self == other)
10440
 
10441
class getBannerDetails_result:
10442
  """
10443
  Attributes:
10444
   - success
10445
  """
10446
 
10447
  thrift_spec = (
10448
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10449
  )
10450
 
10451
  def __init__(self, success=None,):
10452
    self.success = success
10453
 
10454
  def read(self, iprot):
10455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10457
      return
10458
    iprot.readStructBegin()
10459
    while True:
10460
      (fname, ftype, fid) = iprot.readFieldBegin()
10461
      if ftype == TType.STOP:
10462
        break
10463
      if fid == 0:
10464
        if ftype == TType.STRUCT:
10465
          self.success = Banner()
10466
          self.success.read(iprot)
10467
        else:
10468
          iprot.skip(ftype)
10469
      else:
10470
        iprot.skip(ftype)
10471
      iprot.readFieldEnd()
10472
    iprot.readStructEnd()
10473
 
10474
  def write(self, oprot):
10475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10477
      return
10478
    oprot.writeStructBegin('getBannerDetails_result')
10479
    if self.success is not None:
10480
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10481
      self.success.write(oprot)
10482
      oprot.writeFieldEnd()
10483
    oprot.writeFieldStop()
10484
    oprot.writeStructEnd()
10485
 
10486
  def validate(self):
10487
    return
10488
 
10489
 
10490
  def __repr__(self):
10491
    L = ['%s=%r' % (key, value)
10492
      for key, value in self.__dict__.iteritems()]
10493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10494
 
10495
  def __eq__(self, other):
10496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10497
 
10498
  def __ne__(self, other):
10499
    return not (self == other)
10500
 
10501
class getActiveBanners_args:
10502
 
10503
  thrift_spec = (
10504
  )
10505
 
10506
  def read(self, iprot):
10507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10509
      return
10510
    iprot.readStructBegin()
10511
    while True:
10512
      (fname, ftype, fid) = iprot.readFieldBegin()
10513
      if ftype == TType.STOP:
10514
        break
10515
      else:
10516
        iprot.skip(ftype)
10517
      iprot.readFieldEnd()
10518
    iprot.readStructEnd()
10519
 
10520
  def write(self, oprot):
10521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10523
      return
10524
    oprot.writeStructBegin('getActiveBanners_args')
10525
    oprot.writeFieldStop()
10526
    oprot.writeStructEnd()
10527
 
10528
  def validate(self):
10529
    return
10530
 
10531
 
10532
  def __repr__(self):
10533
    L = ['%s=%r' % (key, value)
10534
      for key, value in self.__dict__.iteritems()]
10535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10536
 
10537
  def __eq__(self, other):
10538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10539
 
10540
  def __ne__(self, other):
10541
    return not (self == other)
10542
 
10543
class getActiveBanners_result:
10544
  """
10545
  Attributes:
10546
   - success
10547
  """
10548
 
10549
  thrift_spec = (
10550
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10551
  )
10552
 
10553
  def __init__(self, success=None,):
10554
    self.success = success
10555
 
10556
  def read(self, iprot):
10557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10559
      return
10560
    iprot.readStructBegin()
10561
    while True:
10562
      (fname, ftype, fid) = iprot.readFieldBegin()
10563
      if ftype == TType.STOP:
10564
        break
10565
      if fid == 0:
10566
        if ftype == TType.LIST:
10567
          self.success = []
10568
          (_etype175, _size172) = iprot.readListBegin()
10569
          for _i176 in xrange(_size172):
10570
            _elem177 = Banner()
10571
            _elem177.read(iprot)
10572
            self.success.append(_elem177)
10573
          iprot.readListEnd()
10574
        else:
10575
          iprot.skip(ftype)
10576
      else:
10577
        iprot.skip(ftype)
10578
      iprot.readFieldEnd()
10579
    iprot.readStructEnd()
10580
 
10581
  def write(self, oprot):
10582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10584
      return
10585
    oprot.writeStructBegin('getActiveBanners_result')
10586
    if self.success is not None:
10587
      oprot.writeFieldBegin('success', TType.LIST, 0)
10588
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10589
      for iter178 in self.success:
10590
        iter178.write(oprot)
10591
      oprot.writeListEnd()
10592
      oprot.writeFieldEnd()
10593
    oprot.writeFieldStop()
10594
    oprot.writeStructEnd()
10595
 
10596
  def validate(self):
10597
    return
10598
 
10599
 
10600
  def __repr__(self):
10601
    L = ['%s=%r' % (key, value)
10602
      for key, value in self.__dict__.iteritems()]
10603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10604
 
10605
  def __eq__(self, other):
10606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10607
 
10608
  def __ne__(self, other):
10609
    return not (self == other)
10610
 
6849 kshitij.so 10611
class addBannerMap_args:
10612
  """
10613
  Attributes:
10614
   - bannerName
10615
   - mapLink
10616
   - coordinates
10617
  """
10618
 
10619
  thrift_spec = (
10620
    None, # 0
10621
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10622
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10623
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10624
  )
10625
 
10626
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10627
    self.bannerName = bannerName
10628
    self.mapLink = mapLink
10629
    self.coordinates = coordinates
10630
 
10631
  def read(self, iprot):
10632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10634
      return
10635
    iprot.readStructBegin()
10636
    while True:
10637
      (fname, ftype, fid) = iprot.readFieldBegin()
10638
      if ftype == TType.STOP:
10639
        break
10640
      if fid == 1:
10641
        if ftype == TType.STRING:
10642
          self.bannerName = iprot.readString();
10643
        else:
10644
          iprot.skip(ftype)
10645
      elif fid == 2:
10646
        if ftype == TType.STRING:
10647
          self.mapLink = iprot.readString();
10648
        else:
10649
          iprot.skip(ftype)
10650
      elif fid == 3:
10651
        if ftype == TType.STRING:
10652
          self.coordinates = iprot.readString();
10653
        else:
10654
          iprot.skip(ftype)
10655
      else:
10656
        iprot.skip(ftype)
10657
      iprot.readFieldEnd()
10658
    iprot.readStructEnd()
10659
 
10660
  def write(self, oprot):
10661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10663
      return
10664
    oprot.writeStructBegin('addBannerMap_args')
10665
    if self.bannerName is not None:
10666
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10667
      oprot.writeString(self.bannerName)
10668
      oprot.writeFieldEnd()
10669
    if self.mapLink is not None:
10670
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10671
      oprot.writeString(self.mapLink)
10672
      oprot.writeFieldEnd()
10673
    if self.coordinates is not None:
10674
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10675
      oprot.writeString(self.coordinates)
10676
      oprot.writeFieldEnd()
10677
    oprot.writeFieldStop()
10678
    oprot.writeStructEnd()
10679
 
10680
  def validate(self):
10681
    return
10682
 
10683
 
10684
  def __repr__(self):
10685
    L = ['%s=%r' % (key, value)
10686
      for key, value in self.__dict__.iteritems()]
10687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10688
 
10689
  def __eq__(self, other):
10690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10691
 
10692
  def __ne__(self, other):
10693
    return not (self == other)
10694
 
10695
class addBannerMap_result:
10696
  """
10697
  Attributes:
10698
   - success
10699
  """
10700
 
10701
  thrift_spec = (
10702
    (0, TType.BOOL, 'success', None, None, ), # 0
10703
  )
10704
 
10705
  def __init__(self, success=None,):
10706
    self.success = success
10707
 
10708
  def read(self, iprot):
10709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10711
      return
10712
    iprot.readStructBegin()
10713
    while True:
10714
      (fname, ftype, fid) = iprot.readFieldBegin()
10715
      if ftype == TType.STOP:
10716
        break
10717
      if fid == 0:
10718
        if ftype == TType.BOOL:
10719
          self.success = iprot.readBool();
10720
        else:
10721
          iprot.skip(ftype)
10722
      else:
10723
        iprot.skip(ftype)
10724
      iprot.readFieldEnd()
10725
    iprot.readStructEnd()
10726
 
10727
  def write(self, oprot):
10728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10730
      return
10731
    oprot.writeStructBegin('addBannerMap_result')
10732
    if self.success is not None:
10733
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10734
      oprot.writeBool(self.success)
10735
      oprot.writeFieldEnd()
10736
    oprot.writeFieldStop()
10737
    oprot.writeStructEnd()
10738
 
10739
  def validate(self):
10740
    return
10741
 
10742
 
10743
  def __repr__(self):
10744
    L = ['%s=%r' % (key, value)
10745
      for key, value in self.__dict__.iteritems()]
10746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10747
 
10748
  def __eq__(self, other):
10749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10750
 
10751
  def __ne__(self, other):
10752
    return not (self == other)
10753
 
10754
class deleteBannerMap_args:
10755
  """
10756
  Attributes:
10757
   - bannerName
10758
  """
10759
 
10760
  thrift_spec = (
10761
    None, # 0
10762
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10763
  )
10764
 
10765
  def __init__(self, bannerName=None,):
10766
    self.bannerName = bannerName
10767
 
10768
  def read(self, iprot):
10769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10771
      return
10772
    iprot.readStructBegin()
10773
    while True:
10774
      (fname, ftype, fid) = iprot.readFieldBegin()
10775
      if ftype == TType.STOP:
10776
        break
10777
      if fid == 1:
10778
        if ftype == TType.STRING:
10779
          self.bannerName = iprot.readString();
10780
        else:
10781
          iprot.skip(ftype)
10782
      else:
10783
        iprot.skip(ftype)
10784
      iprot.readFieldEnd()
10785
    iprot.readStructEnd()
10786
 
10787
  def write(self, oprot):
10788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10790
      return
10791
    oprot.writeStructBegin('deleteBannerMap_args')
10792
    if self.bannerName is not None:
10793
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10794
      oprot.writeString(self.bannerName)
10795
      oprot.writeFieldEnd()
10796
    oprot.writeFieldStop()
10797
    oprot.writeStructEnd()
10798
 
10799
  def validate(self):
10800
    return
10801
 
10802
 
10803
  def __repr__(self):
10804
    L = ['%s=%r' % (key, value)
10805
      for key, value in self.__dict__.iteritems()]
10806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10807
 
10808
  def __eq__(self, other):
10809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10810
 
10811
  def __ne__(self, other):
10812
    return not (self == other)
10813
 
10814
class deleteBannerMap_result:
10815
  """
10816
  Attributes:
10817
   - success
10818
  """
10819
 
10820
  thrift_spec = (
10821
    (0, TType.BOOL, 'success', None, None, ), # 0
10822
  )
10823
 
10824
  def __init__(self, success=None,):
10825
    self.success = success
10826
 
10827
  def read(self, iprot):
10828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10830
      return
10831
    iprot.readStructBegin()
10832
    while True:
10833
      (fname, ftype, fid) = iprot.readFieldBegin()
10834
      if ftype == TType.STOP:
10835
        break
10836
      if fid == 0:
10837
        if ftype == TType.BOOL:
10838
          self.success = iprot.readBool();
10839
        else:
10840
          iprot.skip(ftype)
10841
      else:
10842
        iprot.skip(ftype)
10843
      iprot.readFieldEnd()
10844
    iprot.readStructEnd()
10845
 
10846
  def write(self, oprot):
10847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10849
      return
10850
    oprot.writeStructBegin('deleteBannerMap_result')
10851
    if self.success is not None:
10852
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10853
      oprot.writeBool(self.success)
10854
      oprot.writeFieldEnd()
10855
    oprot.writeFieldStop()
10856
    oprot.writeStructEnd()
10857
 
10858
  def validate(self):
10859
    return
10860
 
10861
 
10862
  def __repr__(self):
10863
    L = ['%s=%r' % (key, value)
10864
      for key, value in self.__dict__.iteritems()]
10865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10866
 
10867
  def __eq__(self, other):
10868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10869
 
10870
  def __ne__(self, other):
10871
    return not (self == other)
10872
 
10873
class getBannerMapDetails_args:
10874
  """
10875
  Attributes:
10876
   - bannerName
10877
  """
10878
 
10879
  thrift_spec = (
10880
    None, # 0
10881
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10882
  )
10883
 
10884
  def __init__(self, bannerName=None,):
10885
    self.bannerName = bannerName
10886
 
10887
  def read(self, iprot):
10888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10890
      return
10891
    iprot.readStructBegin()
10892
    while True:
10893
      (fname, ftype, fid) = iprot.readFieldBegin()
10894
      if ftype == TType.STOP:
10895
        break
10896
      if fid == 1:
10897
        if ftype == TType.STRING:
10898
          self.bannerName = iprot.readString();
10899
        else:
10900
          iprot.skip(ftype)
10901
      else:
10902
        iprot.skip(ftype)
10903
      iprot.readFieldEnd()
10904
    iprot.readStructEnd()
10905
 
10906
  def write(self, oprot):
10907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10909
      return
10910
    oprot.writeStructBegin('getBannerMapDetails_args')
10911
    if self.bannerName is not None:
10912
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10913
      oprot.writeString(self.bannerName)
10914
      oprot.writeFieldEnd()
10915
    oprot.writeFieldStop()
10916
    oprot.writeStructEnd()
10917
 
10918
  def validate(self):
10919
    return
10920
 
10921
 
10922
  def __repr__(self):
10923
    L = ['%s=%r' % (key, value)
10924
      for key, value in self.__dict__.iteritems()]
10925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10926
 
10927
  def __eq__(self, other):
10928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10929
 
10930
  def __ne__(self, other):
10931
    return not (self == other)
10932
 
10933
class getBannerMapDetails_result:
10934
  """
10935
  Attributes:
10936
   - success
10937
  """
10938
 
10939
  thrift_spec = (
10940
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10941
  )
10942
 
10943
  def __init__(self, success=None,):
10944
    self.success = success
10945
 
10946
  def read(self, iprot):
10947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10949
      return
10950
    iprot.readStructBegin()
10951
    while True:
10952
      (fname, ftype, fid) = iprot.readFieldBegin()
10953
      if ftype == TType.STOP:
10954
        break
10955
      if fid == 0:
10956
        if ftype == TType.LIST:
10957
          self.success = []
6850 kshitij.so 10958
          (_etype182, _size179) = iprot.readListBegin()
10959
          for _i183 in xrange(_size179):
10960
            _elem184 = BannerMap()
10961
            _elem184.read(iprot)
10962
            self.success.append(_elem184)
6849 kshitij.so 10963
          iprot.readListEnd()
10964
        else:
10965
          iprot.skip(ftype)
10966
      else:
10967
        iprot.skip(ftype)
10968
      iprot.readFieldEnd()
10969
    iprot.readStructEnd()
10970
 
10971
  def write(self, oprot):
10972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10974
      return
10975
    oprot.writeStructBegin('getBannerMapDetails_result')
10976
    if self.success is not None:
10977
      oprot.writeFieldBegin('success', TType.LIST, 0)
10978
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10979
      for iter185 in self.success:
10980
        iter185.write(oprot)
6849 kshitij.so 10981
      oprot.writeListEnd()
10982
      oprot.writeFieldEnd()
10983
    oprot.writeFieldStop()
10984
    oprot.writeStructEnd()
10985
 
10986
  def validate(self):
10987
    return
10988
 
10989
 
10990
  def __repr__(self):
10991
    L = ['%s=%r' % (key, value)
10992
      for key, value in self.__dict__.iteritems()]
10993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10994
 
10995
  def __eq__(self, other):
10996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10997
 
10998
  def __ne__(self, other):
10999
    return not (self == other)
11000
 
5944 mandeep.dh 11001
class deleteSimilarItem_args:
11002
  """
11003
  Attributes:
11004
   - itemId
11005
   - catalogItemId
11006
  """
11007
 
11008
  thrift_spec = (
11009
    None, # 0
11010
    (1, TType.I64, 'itemId', None, None, ), # 1
11011
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
11012
  )
11013
 
11014
  def __init__(self, itemId=None, catalogItemId=None,):
11015
    self.itemId = itemId
11016
    self.catalogItemId = catalogItemId
11017
 
11018
  def read(self, iprot):
11019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11021
      return
11022
    iprot.readStructBegin()
11023
    while True:
11024
      (fname, ftype, fid) = iprot.readFieldBegin()
11025
      if ftype == TType.STOP:
11026
        break
11027
      if fid == 1:
11028
        if ftype == TType.I64:
11029
          self.itemId = iprot.readI64();
11030
        else:
11031
          iprot.skip(ftype)
11032
      elif fid == 2:
11033
        if ftype == TType.I64:
11034
          self.catalogItemId = iprot.readI64();
11035
        else:
11036
          iprot.skip(ftype)
11037
      else:
11038
        iprot.skip(ftype)
11039
      iprot.readFieldEnd()
11040
    iprot.readStructEnd()
11041
 
11042
  def write(self, oprot):
11043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11045
      return
11046
    oprot.writeStructBegin('deleteSimilarItem_args')
11047
    if self.itemId is not None:
11048
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11049
      oprot.writeI64(self.itemId)
11050
      oprot.writeFieldEnd()
11051
    if self.catalogItemId is not None:
11052
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11053
      oprot.writeI64(self.catalogItemId)
11054
      oprot.writeFieldEnd()
11055
    oprot.writeFieldStop()
11056
    oprot.writeStructEnd()
11057
 
11058
  def validate(self):
11059
    return
11060
 
11061
 
11062
  def __repr__(self):
11063
    L = ['%s=%r' % (key, value)
11064
      for key, value in self.__dict__.iteritems()]
11065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11066
 
11067
  def __eq__(self, other):
11068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11069
 
11070
  def __ne__(self, other):
11071
    return not (self == other)
11072
 
11073
class deleteSimilarItem_result:
11074
  """
11075
  Attributes:
11076
   - success
11077
   - cex
11078
  """
11079
 
11080
  thrift_spec = (
11081
    (0, TType.BOOL, 'success', None, None, ), # 0
11082
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11083
  )
11084
 
11085
  def __init__(self, success=None, cex=None,):
11086
    self.success = success
11087
    self.cex = cex
11088
 
11089
  def read(self, iprot):
11090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11092
      return
11093
    iprot.readStructBegin()
11094
    while True:
11095
      (fname, ftype, fid) = iprot.readFieldBegin()
11096
      if ftype == TType.STOP:
11097
        break
11098
      if fid == 0:
11099
        if ftype == TType.BOOL:
11100
          self.success = iprot.readBool();
11101
        else:
11102
          iprot.skip(ftype)
11103
      elif fid == 1:
11104
        if ftype == TType.STRUCT:
11105
          self.cex = CatalogServiceException()
11106
          self.cex.read(iprot)
11107
        else:
11108
          iprot.skip(ftype)
11109
      else:
11110
        iprot.skip(ftype)
11111
      iprot.readFieldEnd()
11112
    iprot.readStructEnd()
11113
 
11114
  def write(self, oprot):
11115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11117
      return
11118
    oprot.writeStructBegin('deleteSimilarItem_result')
11119
    if self.success is not None:
11120
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11121
      oprot.writeBool(self.success)
11122
      oprot.writeFieldEnd()
11123
    if self.cex is not None:
11124
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11125
      self.cex.write(oprot)
11126
      oprot.writeFieldEnd()
11127
    oprot.writeFieldStop()
11128
    oprot.writeStructEnd()
11129
 
11130
  def validate(self):
11131
    return
11132
 
11133
 
11134
  def __repr__(self):
11135
    L = ['%s=%r' % (key, value)
11136
      for key, value in self.__dict__.iteritems()]
11137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11138
 
11139
  def __eq__(self, other):
11140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11141
 
11142
  def __ne__(self, other):
11143
    return not (self == other)
11144
 
11145
class checkSimilarItem_args:
11146
  """
11147
  Attributes:
11148
   - brand
11149
   - modelNumber
11150
   - modelName
11151
   - color
11152
  """
11153
 
11154
  thrift_spec = (
11155
    None, # 0
11156
    (1, TType.STRING, 'brand', None, None, ), # 1
11157
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
11158
    (3, TType.STRING, 'modelName', None, None, ), # 3
11159
    (4, TType.STRING, 'color', None, None, ), # 4
11160
  )
11161
 
11162
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
11163
    self.brand = brand
11164
    self.modelNumber = modelNumber
11165
    self.modelName = modelName
11166
    self.color = color
11167
 
11168
  def read(self, iprot):
11169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11171
      return
11172
    iprot.readStructBegin()
11173
    while True:
11174
      (fname, ftype, fid) = iprot.readFieldBegin()
11175
      if ftype == TType.STOP:
11176
        break
11177
      if fid == 1:
11178
        if ftype == TType.STRING:
11179
          self.brand = iprot.readString();
11180
        else:
11181
          iprot.skip(ftype)
11182
      elif fid == 2:
11183
        if ftype == TType.STRING:
11184
          self.modelNumber = iprot.readString();
11185
        else:
11186
          iprot.skip(ftype)
11187
      elif fid == 3:
11188
        if ftype == TType.STRING:
11189
          self.modelName = iprot.readString();
11190
        else:
11191
          iprot.skip(ftype)
11192
      elif fid == 4:
11193
        if ftype == TType.STRING:
11194
          self.color = iprot.readString();
11195
        else:
11196
          iprot.skip(ftype)
11197
      else:
11198
        iprot.skip(ftype)
11199
      iprot.readFieldEnd()
11200
    iprot.readStructEnd()
11201
 
11202
  def write(self, oprot):
11203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11205
      return
11206
    oprot.writeStructBegin('checkSimilarItem_args')
11207
    if self.brand is not None:
11208
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11209
      oprot.writeString(self.brand)
11210
      oprot.writeFieldEnd()
11211
    if self.modelNumber is not None:
11212
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11213
      oprot.writeString(self.modelNumber)
11214
      oprot.writeFieldEnd()
11215
    if self.modelName is not None:
11216
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11217
      oprot.writeString(self.modelName)
11218
      oprot.writeFieldEnd()
11219
    if self.color is not None:
11220
      oprot.writeFieldBegin('color', TType.STRING, 4)
11221
      oprot.writeString(self.color)
11222
      oprot.writeFieldEnd()
11223
    oprot.writeFieldStop()
11224
    oprot.writeStructEnd()
11225
 
11226
  def validate(self):
11227
    return
11228
 
11229
 
11230
  def __repr__(self):
11231
    L = ['%s=%r' % (key, value)
11232
      for key, value in self.__dict__.iteritems()]
11233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11234
 
11235
  def __eq__(self, other):
11236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11237
 
11238
  def __ne__(self, other):
11239
    return not (self == other)
11240
 
11241
class checkSimilarItem_result:
11242
  """
11243
  Attributes:
11244
   - success
11245
  """
11246
 
11247
  thrift_spec = (
11248
    (0, TType.I64, 'success', None, None, ), # 0
11249
  )
11250
 
11251
  def __init__(self, success=None,):
11252
    self.success = success
11253
 
11254
  def read(self, iprot):
11255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11257
      return
11258
    iprot.readStructBegin()
11259
    while True:
11260
      (fname, ftype, fid) = iprot.readFieldBegin()
11261
      if ftype == TType.STOP:
11262
        break
11263
      if fid == 0:
11264
        if ftype == TType.I64:
11265
          self.success = iprot.readI64();
11266
        else:
11267
          iprot.skip(ftype)
11268
      else:
11269
        iprot.skip(ftype)
11270
      iprot.readFieldEnd()
11271
    iprot.readStructEnd()
11272
 
11273
  def write(self, oprot):
11274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11276
      return
11277
    oprot.writeStructBegin('checkSimilarItem_result')
11278
    if self.success is not None:
11279
      oprot.writeFieldBegin('success', TType.I64, 0)
11280
      oprot.writeI64(self.success)
11281
      oprot.writeFieldEnd()
11282
    oprot.writeFieldStop()
11283
    oprot.writeStructEnd()
11284
 
11285
  def validate(self):
11286
    return
11287
 
11288
 
11289
  def __repr__(self):
11290
    L = ['%s=%r' % (key, value)
11291
      for key, value in self.__dict__.iteritems()]
11292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11293
 
11294
  def __eq__(self, other):
11295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11296
 
11297
  def __ne__(self, other):
11298
    return not (self == other)
11299
 
11300
class validateRiskyStatus_args:
11301
  """
11302
  Attributes:
11303
   - itemId
11304
  """
11305
 
11306
  thrift_spec = (
11307
    None, # 0
11308
    (1, TType.I64, 'itemId', None, None, ), # 1
11309
  )
11310
 
11311
  def __init__(self, itemId=None,):
11312
    self.itemId = itemId
11313
 
11314
  def read(self, iprot):
11315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11317
      return
11318
    iprot.readStructBegin()
11319
    while True:
11320
      (fname, ftype, fid) = iprot.readFieldBegin()
11321
      if ftype == TType.STOP:
11322
        break
11323
      if fid == 1:
11324
        if ftype == TType.I64:
11325
          self.itemId = iprot.readI64();
11326
        else:
11327
          iprot.skip(ftype)
11328
      else:
11329
        iprot.skip(ftype)
11330
      iprot.readFieldEnd()
11331
    iprot.readStructEnd()
11332
 
11333
  def write(self, oprot):
11334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11336
      return
11337
    oprot.writeStructBegin('validateRiskyStatus_args')
11338
    if self.itemId is not None:
11339
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11340
      oprot.writeI64(self.itemId)
11341
      oprot.writeFieldEnd()
11342
    oprot.writeFieldStop()
11343
    oprot.writeStructEnd()
11344
 
11345
  def validate(self):
11346
    return
11347
 
11348
 
11349
  def __repr__(self):
11350
    L = ['%s=%r' % (key, value)
11351
      for key, value in self.__dict__.iteritems()]
11352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11353
 
11354
  def __eq__(self, other):
11355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11356
 
11357
  def __ne__(self, other):
11358
    return not (self == other)
11359
 
11360
class validateRiskyStatus_result:
11361
 
11362
  thrift_spec = (
11363
  )
11364
 
11365
  def read(self, iprot):
11366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11368
      return
11369
    iprot.readStructBegin()
11370
    while True:
11371
      (fname, ftype, fid) = iprot.readFieldBegin()
11372
      if ftype == TType.STOP:
11373
        break
11374
      else:
11375
        iprot.skip(ftype)
11376
      iprot.readFieldEnd()
11377
    iprot.readStructEnd()
11378
 
11379
  def write(self, oprot):
11380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11382
      return
11383
    oprot.writeStructBegin('validateRiskyStatus_result')
11384
    oprot.writeFieldStop()
11385
    oprot.writeStructEnd()
11386
 
11387
  def validate(self):
11388
    return
11389
 
11390
 
11391
  def __repr__(self):
11392
    L = ['%s=%r' % (key, value)
11393
      for key, value in self.__dict__.iteritems()]
11394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11395
 
11396
  def __eq__(self, other):
11397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11398
 
11399
  def __ne__(self, other):
11400
    return not (self == other)
11401
 
11402
class changeItemRiskyFlag_args:
11403
  """
11404
  Attributes:
11405
   - itemId
11406
   - risky
11407
  """
11408
 
11409
  thrift_spec = (
11410
    None, # 0
11411
    (1, TType.I64, 'itemId', None, None, ), # 1
11412
    (2, TType.BOOL, 'risky', None, None, ), # 2
11413
  )
11414
 
11415
  def __init__(self, itemId=None, risky=None,):
11416
    self.itemId = itemId
11417
    self.risky = risky
11418
 
11419
  def read(self, iprot):
11420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11422
      return
11423
    iprot.readStructBegin()
11424
    while True:
11425
      (fname, ftype, fid) = iprot.readFieldBegin()
11426
      if ftype == TType.STOP:
11427
        break
11428
      if fid == 1:
11429
        if ftype == TType.I64:
11430
          self.itemId = iprot.readI64();
11431
        else:
11432
          iprot.skip(ftype)
11433
      elif fid == 2:
11434
        if ftype == TType.BOOL:
11435
          self.risky = iprot.readBool();
11436
        else:
11437
          iprot.skip(ftype)
11438
      else:
11439
        iprot.skip(ftype)
11440
      iprot.readFieldEnd()
11441
    iprot.readStructEnd()
11442
 
11443
  def write(self, oprot):
11444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11446
      return
11447
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11448
    if self.itemId is not None:
11449
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11450
      oprot.writeI64(self.itemId)
11451
      oprot.writeFieldEnd()
11452
    if self.risky is not None:
11453
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11454
      oprot.writeBool(self.risky)
11455
      oprot.writeFieldEnd()
11456
    oprot.writeFieldStop()
11457
    oprot.writeStructEnd()
11458
 
11459
  def validate(self):
11460
    return
11461
 
11462
 
11463
  def __repr__(self):
11464
    L = ['%s=%r' % (key, value)
11465
      for key, value in self.__dict__.iteritems()]
11466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11467
 
11468
  def __eq__(self, other):
11469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11470
 
11471
  def __ne__(self, other):
11472
    return not (self == other)
11473
 
11474
class changeItemRiskyFlag_result:
11475
 
11476
  thrift_spec = (
11477
  )
11478
 
11479
  def read(self, iprot):
11480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11482
      return
11483
    iprot.readStructBegin()
11484
    while True:
11485
      (fname, ftype, fid) = iprot.readFieldBegin()
11486
      if ftype == TType.STOP:
11487
        break
11488
      else:
11489
        iprot.skip(ftype)
11490
      iprot.readFieldEnd()
11491
    iprot.readStructEnd()
11492
 
11493
  def write(self, oprot):
11494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11496
      return
11497
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11498
    oprot.writeFieldStop()
11499
    oprot.writeStructEnd()
11500
 
11501
  def validate(self):
11502
    return
11503
 
11504
 
11505
  def __repr__(self):
11506
    L = ['%s=%r' % (key, value)
11507
      for key, value in self.__dict__.iteritems()]
11508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11509
 
11510
  def __eq__(self, other):
11511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11512
 
11513
  def __ne__(self, other):
11514
    return not (self == other)
11515
 
11516
class getItemsByRiskyFlag_args:
11517
 
11518
  thrift_spec = (
11519
  )
11520
 
11521
  def read(self, iprot):
11522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11524
      return
11525
    iprot.readStructBegin()
11526
    while True:
11527
      (fname, ftype, fid) = iprot.readFieldBegin()
11528
      if ftype == TType.STOP:
11529
        break
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
11539
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11540
    oprot.writeFieldStop()
11541
    oprot.writeStructEnd()
11542
 
11543
  def validate(self):
11544
    return
11545
 
11546
 
11547
  def __repr__(self):
11548
    L = ['%s=%r' % (key, value)
11549
      for key, value in self.__dict__.iteritems()]
11550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11551
 
11552
  def __eq__(self, other):
11553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11554
 
11555
  def __ne__(self, other):
11556
    return not (self == other)
11557
 
11558
class getItemsByRiskyFlag_result:
11559
  """
11560
  Attributes:
11561
   - success
11562
  """
11563
 
11564
  thrift_spec = (
11565
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11566
  )
11567
 
11568
  def __init__(self, success=None,):
11569
    self.success = success
11570
 
11571
  def read(self, iprot):
11572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11574
      return
11575
    iprot.readStructBegin()
11576
    while True:
11577
      (fname, ftype, fid) = iprot.readFieldBegin()
11578
      if ftype == TType.STOP:
11579
        break
11580
      if fid == 0:
11581
        if ftype == TType.LIST:
11582
          self.success = []
6850 kshitij.so 11583
          (_etype189, _size186) = iprot.readListBegin()
11584
          for _i190 in xrange(_size186):
11585
            _elem191 = Item()
11586
            _elem191.read(iprot)
11587
            self.success.append(_elem191)
5944 mandeep.dh 11588
          iprot.readListEnd()
11589
        else:
11590
          iprot.skip(ftype)
11591
      else:
11592
        iprot.skip(ftype)
11593
      iprot.readFieldEnd()
11594
    iprot.readStructEnd()
11595
 
11596
  def write(self, oprot):
11597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11599
      return
11600
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11601
    if self.success is not None:
11602
      oprot.writeFieldBegin('success', TType.LIST, 0)
11603
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11604
      for iter192 in self.success:
11605
        iter192.write(oprot)
5944 mandeep.dh 11606
      oprot.writeListEnd()
11607
      oprot.writeFieldEnd()
11608
    oprot.writeFieldStop()
11609
    oprot.writeStructEnd()
11610
 
11611
  def validate(self):
11612
    return
11613
 
11614
 
11615
  def __repr__(self):
11616
    L = ['%s=%r' % (key, value)
11617
      for key, value in self.__dict__.iteritems()]
11618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11619
 
11620
  def __eq__(self, other):
11621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11622
 
11623
  def __ne__(self, other):
11624
    return not (self == other)
11625
 
11626
class getItemsForMasterSheet_args:
11627
  """
11628
  Attributes:
11629
   - category
11630
   - brand
11631
  """
11632
 
11633
  thrift_spec = (
11634
    None, # 0
11635
    (1, TType.STRING, 'category', None, None, ), # 1
11636
    (2, TType.STRING, 'brand', None, None, ), # 2
11637
  )
11638
 
11639
  def __init__(self, category=None, brand=None,):
11640
    self.category = category
11641
    self.brand = brand
11642
 
11643
  def read(self, iprot):
11644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11646
      return
11647
    iprot.readStructBegin()
11648
    while True:
11649
      (fname, ftype, fid) = iprot.readFieldBegin()
11650
      if ftype == TType.STOP:
11651
        break
11652
      if fid == 1:
11653
        if ftype == TType.STRING:
11654
          self.category = iprot.readString();
11655
        else:
11656
          iprot.skip(ftype)
11657
      elif fid == 2:
11658
        if ftype == TType.STRING:
11659
          self.brand = iprot.readString();
11660
        else:
11661
          iprot.skip(ftype)
11662
      else:
11663
        iprot.skip(ftype)
11664
      iprot.readFieldEnd()
11665
    iprot.readStructEnd()
11666
 
11667
  def write(self, oprot):
11668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11670
      return
11671
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11672
    if self.category is not None:
11673
      oprot.writeFieldBegin('category', TType.STRING, 1)
11674
      oprot.writeString(self.category)
11675
      oprot.writeFieldEnd()
11676
    if self.brand is not None:
11677
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11678
      oprot.writeString(self.brand)
11679
      oprot.writeFieldEnd()
11680
    oprot.writeFieldStop()
11681
    oprot.writeStructEnd()
11682
 
11683
  def validate(self):
11684
    return
11685
 
11686
 
11687
  def __repr__(self):
11688
    L = ['%s=%r' % (key, value)
11689
      for key, value in self.__dict__.iteritems()]
11690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11691
 
11692
  def __eq__(self, other):
11693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11694
 
11695
  def __ne__(self, other):
11696
    return not (self == other)
11697
 
11698
class getItemsForMasterSheet_result:
11699
  """
11700
  Attributes:
11701
   - success
11702
  """
11703
 
11704
  thrift_spec = (
11705
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11706
  )
11707
 
11708
  def __init__(self, success=None,):
11709
    self.success = success
11710
 
11711
  def read(self, iprot):
11712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11714
      return
11715
    iprot.readStructBegin()
11716
    while True:
11717
      (fname, ftype, fid) = iprot.readFieldBegin()
11718
      if ftype == TType.STOP:
11719
        break
11720
      if fid == 0:
11721
        if ftype == TType.LIST:
11722
          self.success = []
6850 kshitij.so 11723
          (_etype196, _size193) = iprot.readListBegin()
11724
          for _i197 in xrange(_size193):
11725
            _elem198 = Item()
11726
            _elem198.read(iprot)
11727
            self.success.append(_elem198)
5944 mandeep.dh 11728
          iprot.readListEnd()
11729
        else:
11730
          iprot.skip(ftype)
11731
      else:
11732
        iprot.skip(ftype)
11733
      iprot.readFieldEnd()
11734
    iprot.readStructEnd()
11735
 
11736
  def write(self, oprot):
11737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11739
      return
11740
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11741
    if self.success is not None:
11742
      oprot.writeFieldBegin('success', TType.LIST, 0)
11743
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11744
      for iter199 in self.success:
11745
        iter199.write(oprot)
5944 mandeep.dh 11746
      oprot.writeListEnd()
11747
      oprot.writeFieldEnd()
11748
    oprot.writeFieldStop()
11749
    oprot.writeStructEnd()
11750
 
11751
  def validate(self):
11752
    return
11753
 
11754
 
11755
  def __repr__(self):
11756
    L = ['%s=%r' % (key, value)
11757
      for key, value in self.__dict__.iteritems()]
11758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11759
 
11760
  def __eq__(self, other):
11761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11762
 
11763
  def __ne__(self, other):
11764
    return not (self == other)
11765
 
11766
class getSimilarItemsCatalogIds_args:
11767
  """
11768
  Attributes:
11769
   - beginIndex
11770
   - totalItems
11771
   - itemId
11772
  """
11773
 
11774
  thrift_spec = (
11775
    None, # 0
11776
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11777
    (2, TType.I64, 'totalItems', None, None, ), # 2
11778
    (3, TType.I64, 'itemId', None, None, ), # 3
11779
  )
11780
 
11781
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11782
    self.beginIndex = beginIndex
11783
    self.totalItems = totalItems
11784
    self.itemId = itemId
11785
 
11786
  def read(self, iprot):
11787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11789
      return
11790
    iprot.readStructBegin()
11791
    while True:
11792
      (fname, ftype, fid) = iprot.readFieldBegin()
11793
      if ftype == TType.STOP:
11794
        break
11795
      if fid == 1:
11796
        if ftype == TType.I64:
11797
          self.beginIndex = iprot.readI64();
11798
        else:
11799
          iprot.skip(ftype)
11800
      elif fid == 2:
11801
        if ftype == TType.I64:
11802
          self.totalItems = iprot.readI64();
11803
        else:
11804
          iprot.skip(ftype)
11805
      elif fid == 3:
11806
        if ftype == TType.I64:
11807
          self.itemId = iprot.readI64();
11808
        else:
11809
          iprot.skip(ftype)
11810
      else:
11811
        iprot.skip(ftype)
11812
      iprot.readFieldEnd()
11813
    iprot.readStructEnd()
11814
 
11815
  def write(self, oprot):
11816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11818
      return
11819
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11820
    if self.beginIndex is not None:
11821
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11822
      oprot.writeI64(self.beginIndex)
11823
      oprot.writeFieldEnd()
11824
    if self.totalItems is not None:
11825
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11826
      oprot.writeI64(self.totalItems)
11827
      oprot.writeFieldEnd()
11828
    if self.itemId is not None:
11829
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11830
      oprot.writeI64(self.itemId)
11831
      oprot.writeFieldEnd()
11832
    oprot.writeFieldStop()
11833
    oprot.writeStructEnd()
11834
 
11835
  def validate(self):
11836
    return
11837
 
11838
 
11839
  def __repr__(self):
11840
    L = ['%s=%r' % (key, value)
11841
      for key, value in self.__dict__.iteritems()]
11842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11843
 
11844
  def __eq__(self, other):
11845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11846
 
11847
  def __ne__(self, other):
11848
    return not (self == other)
11849
 
11850
class getSimilarItemsCatalogIds_result:
11851
  """
11852
  Attributes:
11853
   - success
11854
  """
11855
 
11856
  thrift_spec = (
11857
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11858
  )
11859
 
11860
  def __init__(self, success=None,):
11861
    self.success = success
11862
 
11863
  def read(self, iprot):
11864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11866
      return
11867
    iprot.readStructBegin()
11868
    while True:
11869
      (fname, ftype, fid) = iprot.readFieldBegin()
11870
      if ftype == TType.STOP:
11871
        break
11872
      if fid == 0:
11873
        if ftype == TType.LIST:
11874
          self.success = []
6850 kshitij.so 11875
          (_etype203, _size200) = iprot.readListBegin()
11876
          for _i204 in xrange(_size200):
11877
            _elem205 = iprot.readI64();
11878
            self.success.append(_elem205)
5944 mandeep.dh 11879
          iprot.readListEnd()
11880
        else:
11881
          iprot.skip(ftype)
11882
      else:
11883
        iprot.skip(ftype)
11884
      iprot.readFieldEnd()
11885
    iprot.readStructEnd()
11886
 
11887
  def write(self, oprot):
11888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11890
      return
11891
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11892
    if self.success is not None:
11893
      oprot.writeFieldBegin('success', TType.LIST, 0)
11894
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11895
      for iter206 in self.success:
11896
        oprot.writeI64(iter206)
5944 mandeep.dh 11897
      oprot.writeListEnd()
11898
      oprot.writeFieldEnd()
11899
    oprot.writeFieldStop()
11900
    oprot.writeStructEnd()
11901
 
11902
  def validate(self):
11903
    return
11904
 
11905
 
11906
  def __repr__(self):
11907
    L = ['%s=%r' % (key, value)
11908
      for key, value in self.__dict__.iteritems()]
11909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11910
 
11911
  def __eq__(self, other):
11912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11913
 
11914
  def __ne__(self, other):
11915
    return not (self == other)
11916
 
11917
class addProductNotification_args:
11918
  """
11919
  Attributes:
11920
   - itemId
11921
   - email
11922
  """
11923
 
11924
  thrift_spec = None
11925
  def __init__(self, itemId=None, email=None,):
11926
    self.itemId = itemId
11927
    self.email = email
11928
 
11929
  def read(self, iprot):
11930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11932
      return
11933
    iprot.readStructBegin()
11934
    while True:
11935
      (fname, ftype, fid) = iprot.readFieldBegin()
11936
      if ftype == TType.STOP:
11937
        break
11938
      if fid == -1:
11939
        if ftype == TType.I64:
11940
          self.itemId = iprot.readI64();
11941
        else:
11942
          iprot.skip(ftype)
11943
      elif fid == -2:
11944
        if ftype == TType.STRING:
11945
          self.email = iprot.readString();
11946
        else:
11947
          iprot.skip(ftype)
11948
      else:
11949
        iprot.skip(ftype)
11950
      iprot.readFieldEnd()
11951
    iprot.readStructEnd()
11952
 
11953
  def write(self, oprot):
11954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11956
      return
11957
    oprot.writeStructBegin('addProductNotification_args')
11958
    if self.email is not None:
11959
      oprot.writeFieldBegin('email', TType.STRING, -2)
11960
      oprot.writeString(self.email)
11961
      oprot.writeFieldEnd()
11962
    if self.itemId is not None:
11963
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11964
      oprot.writeI64(self.itemId)
11965
      oprot.writeFieldEnd()
11966
    oprot.writeFieldStop()
11967
    oprot.writeStructEnd()
11968
 
11969
  def validate(self):
11970
    return
11971
 
11972
 
11973
  def __repr__(self):
11974
    L = ['%s=%r' % (key, value)
11975
      for key, value in self.__dict__.iteritems()]
11976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11977
 
11978
  def __eq__(self, other):
11979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11980
 
11981
  def __ne__(self, other):
11982
    return not (self == other)
11983
 
11984
class addProductNotification_result:
11985
  """
11986
  Attributes:
11987
   - success
11988
  """
11989
 
11990
  thrift_spec = (
11991
    (0, TType.BOOL, 'success', None, None, ), # 0
11992
  )
11993
 
11994
  def __init__(self, success=None,):
11995
    self.success = success
11996
 
11997
  def read(self, iprot):
11998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12000
      return
12001
    iprot.readStructBegin()
12002
    while True:
12003
      (fname, ftype, fid) = iprot.readFieldBegin()
12004
      if ftype == TType.STOP:
12005
        break
12006
      if fid == 0:
12007
        if ftype == TType.BOOL:
12008
          self.success = iprot.readBool();
12009
        else:
12010
          iprot.skip(ftype)
12011
      else:
12012
        iprot.skip(ftype)
12013
      iprot.readFieldEnd()
12014
    iprot.readStructEnd()
12015
 
12016
  def write(self, oprot):
12017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12019
      return
12020
    oprot.writeStructBegin('addProductNotification_result')
12021
    if self.success is not None:
12022
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12023
      oprot.writeBool(self.success)
12024
      oprot.writeFieldEnd()
12025
    oprot.writeFieldStop()
12026
    oprot.writeStructEnd()
12027
 
12028
  def validate(self):
12029
    return
12030
 
12031
 
12032
  def __repr__(self):
12033
    L = ['%s=%r' % (key, value)
12034
      for key, value in self.__dict__.iteritems()]
12035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12036
 
12037
  def __eq__(self, other):
12038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12039
 
12040
  def __ne__(self, other):
12041
    return not (self == other)
12042
 
12043
class sendProductNotifications_args:
12044
 
12045
  thrift_spec = (
12046
  )
12047
 
12048
  def read(self, iprot):
12049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12051
      return
12052
    iprot.readStructBegin()
12053
    while True:
12054
      (fname, ftype, fid) = iprot.readFieldBegin()
12055
      if ftype == TType.STOP:
12056
        break
12057
      else:
12058
        iprot.skip(ftype)
12059
      iprot.readFieldEnd()
12060
    iprot.readStructEnd()
12061
 
12062
  def write(self, oprot):
12063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12065
      return
12066
    oprot.writeStructBegin('sendProductNotifications_args')
12067
    oprot.writeFieldStop()
12068
    oprot.writeStructEnd()
12069
 
12070
  def validate(self):
12071
    return
12072
 
12073
 
12074
  def __repr__(self):
12075
    L = ['%s=%r' % (key, value)
12076
      for key, value in self.__dict__.iteritems()]
12077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12078
 
12079
  def __eq__(self, other):
12080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12081
 
12082
  def __ne__(self, other):
12083
    return not (self == other)
12084
 
12085
class sendProductNotifications_result:
12086
  """
12087
  Attributes:
12088
   - success
12089
  """
12090
 
12091
  thrift_spec = (
12092
    (0, TType.BOOL, 'success', None, None, ), # 0
12093
  )
12094
 
12095
  def __init__(self, success=None,):
12096
    self.success = success
12097
 
12098
  def read(self, iprot):
12099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12101
      return
12102
    iprot.readStructBegin()
12103
    while True:
12104
      (fname, ftype, fid) = iprot.readFieldBegin()
12105
      if ftype == TType.STOP:
12106
        break
12107
      if fid == 0:
12108
        if ftype == TType.BOOL:
12109
          self.success = iprot.readBool();
12110
        else:
12111
          iprot.skip(ftype)
12112
      else:
12113
        iprot.skip(ftype)
12114
      iprot.readFieldEnd()
12115
    iprot.readStructEnd()
12116
 
12117
  def write(self, oprot):
12118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12120
      return
12121
    oprot.writeStructBegin('sendProductNotifications_result')
12122
    if self.success is not None:
12123
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12124
      oprot.writeBool(self.success)
12125
      oprot.writeFieldEnd()
12126
    oprot.writeFieldStop()
12127
    oprot.writeStructEnd()
12128
 
12129
  def validate(self):
12130
    return
12131
 
12132
 
12133
  def __repr__(self):
12134
    L = ['%s=%r' % (key, value)
12135
      for key, value in self.__dict__.iteritems()]
12136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12137
 
12138
  def __eq__(self, other):
12139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12140
 
12141
  def __ne__(self, other):
12142
    return not (self == other)
12143
 
12144
class getAllBrandsByCategory_args:
12145
  """
12146
  Attributes:
12147
   - categoryId
12148
  """
12149
 
12150
  thrift_spec = (
12151
    None, # 0
12152
    (1, TType.I64, 'categoryId', None, None, ), # 1
12153
  )
12154
 
12155
  def __init__(self, categoryId=None,):
12156
    self.categoryId = categoryId
12157
 
12158
  def read(self, iprot):
12159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12161
      return
12162
    iprot.readStructBegin()
12163
    while True:
12164
      (fname, ftype, fid) = iprot.readFieldBegin()
12165
      if ftype == TType.STOP:
12166
        break
12167
      if fid == 1:
12168
        if ftype == TType.I64:
12169
          self.categoryId = iprot.readI64();
12170
        else:
12171
          iprot.skip(ftype)
12172
      else:
12173
        iprot.skip(ftype)
12174
      iprot.readFieldEnd()
12175
    iprot.readStructEnd()
12176
 
12177
  def write(self, oprot):
12178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12180
      return
12181
    oprot.writeStructBegin('getAllBrandsByCategory_args')
12182
    if self.categoryId is not None:
12183
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
12184
      oprot.writeI64(self.categoryId)
12185
      oprot.writeFieldEnd()
12186
    oprot.writeFieldStop()
12187
    oprot.writeStructEnd()
12188
 
12189
  def validate(self):
12190
    return
12191
 
12192
 
12193
  def __repr__(self):
12194
    L = ['%s=%r' % (key, value)
12195
      for key, value in self.__dict__.iteritems()]
12196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12197
 
12198
  def __eq__(self, other):
12199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12200
 
12201
  def __ne__(self, other):
12202
    return not (self == other)
12203
 
12204
class getAllBrandsByCategory_result:
12205
  """
12206
  Attributes:
12207
   - success
12208
  """
12209
 
12210
  thrift_spec = (
12211
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12212
  )
12213
 
12214
  def __init__(self, success=None,):
12215
    self.success = success
12216
 
12217
  def read(self, iprot):
12218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12220
      return
12221
    iprot.readStructBegin()
12222
    while True:
12223
      (fname, ftype, fid) = iprot.readFieldBegin()
12224
      if ftype == TType.STOP:
12225
        break
12226
      if fid == 0:
12227
        if ftype == TType.LIST:
12228
          self.success = []
6850 kshitij.so 12229
          (_etype210, _size207) = iprot.readListBegin()
12230
          for _i211 in xrange(_size207):
12231
            _elem212 = iprot.readString();
12232
            self.success.append(_elem212)
5944 mandeep.dh 12233
          iprot.readListEnd()
12234
        else:
12235
          iprot.skip(ftype)
12236
      else:
12237
        iprot.skip(ftype)
12238
      iprot.readFieldEnd()
12239
    iprot.readStructEnd()
12240
 
12241
  def write(self, oprot):
12242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12244
      return
12245
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12246
    if self.success is not None:
12247
      oprot.writeFieldBegin('success', TType.LIST, 0)
12248
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12249
      for iter213 in self.success:
12250
        oprot.writeString(iter213)
5944 mandeep.dh 12251
      oprot.writeListEnd()
12252
      oprot.writeFieldEnd()
12253
    oprot.writeFieldStop()
12254
    oprot.writeStructEnd()
12255
 
12256
  def validate(self):
12257
    return
12258
 
12259
 
12260
  def __repr__(self):
12261
    L = ['%s=%r' % (key, value)
12262
      for key, value in self.__dict__.iteritems()]
12263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12264
 
12265
  def __eq__(self, other):
12266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12267
 
12268
  def __ne__(self, other):
12269
    return not (self == other)
12270
 
12271
class getAllBrands_args:
12272
 
12273
  thrift_spec = (
12274
  )
12275
 
12276
  def read(self, iprot):
12277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12279
      return
12280
    iprot.readStructBegin()
12281
    while True:
12282
      (fname, ftype, fid) = iprot.readFieldBegin()
12283
      if ftype == TType.STOP:
12284
        break
12285
      else:
12286
        iprot.skip(ftype)
12287
      iprot.readFieldEnd()
12288
    iprot.readStructEnd()
12289
 
12290
  def write(self, oprot):
12291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12293
      return
12294
    oprot.writeStructBegin('getAllBrands_args')
12295
    oprot.writeFieldStop()
12296
    oprot.writeStructEnd()
12297
 
12298
  def validate(self):
12299
    return
12300
 
12301
 
12302
  def __repr__(self):
12303
    L = ['%s=%r' % (key, value)
12304
      for key, value in self.__dict__.iteritems()]
12305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12306
 
12307
  def __eq__(self, other):
12308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12309
 
12310
  def __ne__(self, other):
12311
    return not (self == other)
12312
 
12313
class getAllBrands_result:
12314
  """
12315
  Attributes:
12316
   - success
12317
  """
12318
 
12319
  thrift_spec = (
12320
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12321
  )
12322
 
12323
  def __init__(self, success=None,):
12324
    self.success = success
12325
 
12326
  def read(self, iprot):
12327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12329
      return
12330
    iprot.readStructBegin()
12331
    while True:
12332
      (fname, ftype, fid) = iprot.readFieldBegin()
12333
      if ftype == TType.STOP:
12334
        break
12335
      if fid == 0:
12336
        if ftype == TType.LIST:
12337
          self.success = []
6850 kshitij.so 12338
          (_etype217, _size214) = iprot.readListBegin()
12339
          for _i218 in xrange(_size214):
12340
            _elem219 = iprot.readString();
12341
            self.success.append(_elem219)
5944 mandeep.dh 12342
          iprot.readListEnd()
12343
        else:
12344
          iprot.skip(ftype)
12345
      else:
12346
        iprot.skip(ftype)
12347
      iprot.readFieldEnd()
12348
    iprot.readStructEnd()
12349
 
12350
  def write(self, oprot):
12351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12353
      return
12354
    oprot.writeStructBegin('getAllBrands_result')
12355
    if self.success is not None:
12356
      oprot.writeFieldBegin('success', TType.LIST, 0)
12357
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12358
      for iter220 in self.success:
12359
        oprot.writeString(iter220)
5944 mandeep.dh 12360
      oprot.writeListEnd()
12361
      oprot.writeFieldEnd()
12362
    oprot.writeFieldStop()
12363
    oprot.writeStructEnd()
12364
 
12365
  def validate(self):
12366
    return
12367
 
12368
 
12369
  def __repr__(self):
12370
    L = ['%s=%r' % (key, value)
12371
      for key, value in self.__dict__.iteritems()]
12372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12373
 
12374
  def __eq__(self, other):
12375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12376
 
12377
  def __ne__(self, other):
12378
    return not (self == other)
12379
 
12380
class getAllSources_args:
12381
 
12382
  thrift_spec = (
12383
  )
12384
 
12385
  def read(self, iprot):
12386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12388
      return
12389
    iprot.readStructBegin()
12390
    while True:
12391
      (fname, ftype, fid) = iprot.readFieldBegin()
12392
      if ftype == TType.STOP:
12393
        break
12394
      else:
12395
        iprot.skip(ftype)
12396
      iprot.readFieldEnd()
12397
    iprot.readStructEnd()
12398
 
12399
  def write(self, oprot):
12400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12402
      return
12403
    oprot.writeStructBegin('getAllSources_args')
12404
    oprot.writeFieldStop()
12405
    oprot.writeStructEnd()
12406
 
12407
  def validate(self):
12408
    return
12409
 
12410
 
12411
  def __repr__(self):
12412
    L = ['%s=%r' % (key, value)
12413
      for key, value in self.__dict__.iteritems()]
12414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12415
 
12416
  def __eq__(self, other):
12417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12418
 
12419
  def __ne__(self, other):
12420
    return not (self == other)
12421
 
12422
class getAllSources_result:
12423
  """
12424
  Attributes:
12425
   - success
12426
  """
12427
 
12428
  thrift_spec = (
12429
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12430
  )
12431
 
12432
  def __init__(self, success=None,):
12433
    self.success = success
12434
 
12435
  def read(self, iprot):
12436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12438
      return
12439
    iprot.readStructBegin()
12440
    while True:
12441
      (fname, ftype, fid) = iprot.readFieldBegin()
12442
      if ftype == TType.STOP:
12443
        break
12444
      if fid == 0:
12445
        if ftype == TType.LIST:
12446
          self.success = []
6850 kshitij.so 12447
          (_etype224, _size221) = iprot.readListBegin()
12448
          for _i225 in xrange(_size221):
12449
            _elem226 = Source()
12450
            _elem226.read(iprot)
12451
            self.success.append(_elem226)
5944 mandeep.dh 12452
          iprot.readListEnd()
12453
        else:
12454
          iprot.skip(ftype)
12455
      else:
12456
        iprot.skip(ftype)
12457
      iprot.readFieldEnd()
12458
    iprot.readStructEnd()
12459
 
12460
  def write(self, oprot):
12461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12463
      return
12464
    oprot.writeStructBegin('getAllSources_result')
12465
    if self.success is not None:
12466
      oprot.writeFieldBegin('success', TType.LIST, 0)
12467
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12468
      for iter227 in self.success:
12469
        iter227.write(oprot)
5944 mandeep.dh 12470
      oprot.writeListEnd()
12471
      oprot.writeFieldEnd()
12472
    oprot.writeFieldStop()
12473
    oprot.writeStructEnd()
12474
 
12475
  def validate(self):
12476
    return
12477
 
12478
 
12479
  def __repr__(self):
12480
    L = ['%s=%r' % (key, value)
12481
      for key, value in self.__dict__.iteritems()]
12482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12483
 
12484
  def __eq__(self, other):
12485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12486
 
12487
  def __ne__(self, other):
12488
    return not (self == other)
12489
 
12490
class getItemPricingBySource_args:
12491
  """
12492
  Attributes:
12493
   - itemId
12494
   - sourceId
12495
  """
12496
 
12497
  thrift_spec = (
12498
    None, # 0
12499
    (1, TType.I64, 'itemId', None, None, ), # 1
12500
    (2, TType.I64, 'sourceId', None, None, ), # 2
12501
  )
12502
 
12503
  def __init__(self, itemId=None, sourceId=None,):
12504
    self.itemId = itemId
12505
    self.sourceId = sourceId
12506
 
12507
  def read(self, iprot):
12508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12510
      return
12511
    iprot.readStructBegin()
12512
    while True:
12513
      (fname, ftype, fid) = iprot.readFieldBegin()
12514
      if ftype == TType.STOP:
12515
        break
12516
      if fid == 1:
12517
        if ftype == TType.I64:
12518
          self.itemId = iprot.readI64();
12519
        else:
12520
          iprot.skip(ftype)
12521
      elif fid == 2:
12522
        if ftype == TType.I64:
12523
          self.sourceId = iprot.readI64();
12524
        else:
12525
          iprot.skip(ftype)
12526
      else:
12527
        iprot.skip(ftype)
12528
      iprot.readFieldEnd()
12529
    iprot.readStructEnd()
12530
 
12531
  def write(self, oprot):
12532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12534
      return
12535
    oprot.writeStructBegin('getItemPricingBySource_args')
12536
    if self.itemId is not None:
12537
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12538
      oprot.writeI64(self.itemId)
12539
      oprot.writeFieldEnd()
12540
    if self.sourceId is not None:
12541
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12542
      oprot.writeI64(self.sourceId)
12543
      oprot.writeFieldEnd()
12544
    oprot.writeFieldStop()
12545
    oprot.writeStructEnd()
12546
 
12547
  def validate(self):
12548
    return
12549
 
12550
 
12551
  def __repr__(self):
12552
    L = ['%s=%r' % (key, value)
12553
      for key, value in self.__dict__.iteritems()]
12554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12555
 
12556
  def __eq__(self, other):
12557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12558
 
12559
  def __ne__(self, other):
12560
    return not (self == other)
12561
 
12562
class getItemPricingBySource_result:
12563
  """
12564
  Attributes:
12565
   - success
12566
   - cex
12567
  """
12568
 
12569
  thrift_spec = (
12570
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12571
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12572
  )
12573
 
12574
  def __init__(self, success=None, cex=None,):
12575
    self.success = success
12576
    self.cex = cex
12577
 
12578
  def read(self, iprot):
12579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12581
      return
12582
    iprot.readStructBegin()
12583
    while True:
12584
      (fname, ftype, fid) = iprot.readFieldBegin()
12585
      if ftype == TType.STOP:
12586
        break
12587
      if fid == 0:
12588
        if ftype == TType.STRUCT:
12589
          self.success = SourceItemPricing()
12590
          self.success.read(iprot)
12591
        else:
12592
          iprot.skip(ftype)
12593
      elif fid == 1:
12594
        if ftype == TType.STRUCT:
12595
          self.cex = CatalogServiceException()
12596
          self.cex.read(iprot)
12597
        else:
12598
          iprot.skip(ftype)
12599
      else:
12600
        iprot.skip(ftype)
12601
      iprot.readFieldEnd()
12602
    iprot.readStructEnd()
12603
 
12604
  def write(self, oprot):
12605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12607
      return
12608
    oprot.writeStructBegin('getItemPricingBySource_result')
12609
    if self.success is not None:
12610
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12611
      self.success.write(oprot)
12612
      oprot.writeFieldEnd()
12613
    if self.cex is not None:
12614
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12615
      self.cex.write(oprot)
12616
      oprot.writeFieldEnd()
12617
    oprot.writeFieldStop()
12618
    oprot.writeStructEnd()
12619
 
12620
  def validate(self):
12621
    return
12622
 
12623
 
12624
  def __repr__(self):
12625
    L = ['%s=%r' % (key, value)
12626
      for key, value in self.__dict__.iteritems()]
12627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12628
 
12629
  def __eq__(self, other):
12630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12631
 
12632
  def __ne__(self, other):
12633
    return not (self == other)
12634
 
12635
class addSourceItemPricing_args:
12636
  """
12637
  Attributes:
12638
   - sourceItemPricing
12639
  """
12640
 
12641
  thrift_spec = (
12642
    None, # 0
12643
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12644
  )
12645
 
12646
  def __init__(self, sourceItemPricing=None,):
12647
    self.sourceItemPricing = sourceItemPricing
12648
 
12649
  def read(self, iprot):
12650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12652
      return
12653
    iprot.readStructBegin()
12654
    while True:
12655
      (fname, ftype, fid) = iprot.readFieldBegin()
12656
      if ftype == TType.STOP:
12657
        break
12658
      if fid == 1:
12659
        if ftype == TType.STRUCT:
12660
          self.sourceItemPricing = SourceItemPricing()
12661
          self.sourceItemPricing.read(iprot)
12662
        else:
12663
          iprot.skip(ftype)
12664
      else:
12665
        iprot.skip(ftype)
12666
      iprot.readFieldEnd()
12667
    iprot.readStructEnd()
12668
 
12669
  def write(self, oprot):
12670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12672
      return
12673
    oprot.writeStructBegin('addSourceItemPricing_args')
12674
    if self.sourceItemPricing is not None:
12675
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12676
      self.sourceItemPricing.write(oprot)
12677
      oprot.writeFieldEnd()
12678
    oprot.writeFieldStop()
12679
    oprot.writeStructEnd()
12680
 
12681
  def validate(self):
12682
    return
12683
 
12684
 
12685
  def __repr__(self):
12686
    L = ['%s=%r' % (key, value)
12687
      for key, value in self.__dict__.iteritems()]
12688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12689
 
12690
  def __eq__(self, other):
12691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12692
 
12693
  def __ne__(self, other):
12694
    return not (self == other)
12695
 
12696
class addSourceItemPricing_result:
12697
  """
12698
  Attributes:
12699
   - cex
12700
  """
12701
 
12702
  thrift_spec = (
12703
    None, # 0
12704
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12705
  )
12706
 
12707
  def __init__(self, cex=None,):
12708
    self.cex = cex
12709
 
12710
  def read(self, iprot):
12711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12713
      return
12714
    iprot.readStructBegin()
12715
    while True:
12716
      (fname, ftype, fid) = iprot.readFieldBegin()
12717
      if ftype == TType.STOP:
12718
        break
12719
      if fid == 1:
12720
        if ftype == TType.STRUCT:
12721
          self.cex = CatalogServiceException()
12722
          self.cex.read(iprot)
12723
        else:
12724
          iprot.skip(ftype)
12725
      else:
12726
        iprot.skip(ftype)
12727
      iprot.readFieldEnd()
12728
    iprot.readStructEnd()
12729
 
12730
  def write(self, oprot):
12731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12733
      return
12734
    oprot.writeStructBegin('addSourceItemPricing_result')
12735
    if self.cex is not None:
12736
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12737
      self.cex.write(oprot)
12738
      oprot.writeFieldEnd()
12739
    oprot.writeFieldStop()
12740
    oprot.writeStructEnd()
12741
 
12742
  def validate(self):
12743
    return
12744
 
12745
 
12746
  def __repr__(self):
12747
    L = ['%s=%r' % (key, value)
12748
      for key, value in self.__dict__.iteritems()]
12749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12750
 
12751
  def __eq__(self, other):
12752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12753
 
12754
  def __ne__(self, other):
12755
    return not (self == other)
12756
 
12757
class getAllSourcePricing_args:
12758
  """
12759
  Attributes:
12760
   - itemId
12761
  """
12762
 
12763
  thrift_spec = (
12764
    None, # 0
12765
    (1, TType.I64, 'itemId', None, None, ), # 1
12766
  )
12767
 
12768
  def __init__(self, itemId=None,):
12769
    self.itemId = itemId
12770
 
12771
  def read(self, iprot):
12772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12774
      return
12775
    iprot.readStructBegin()
12776
    while True:
12777
      (fname, ftype, fid) = iprot.readFieldBegin()
12778
      if ftype == TType.STOP:
12779
        break
12780
      if fid == 1:
12781
        if ftype == TType.I64:
12782
          self.itemId = iprot.readI64();
12783
        else:
12784
          iprot.skip(ftype)
12785
      else:
12786
        iprot.skip(ftype)
12787
      iprot.readFieldEnd()
12788
    iprot.readStructEnd()
12789
 
12790
  def write(self, oprot):
12791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12793
      return
12794
    oprot.writeStructBegin('getAllSourcePricing_args')
12795
    if self.itemId is not None:
12796
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12797
      oprot.writeI64(self.itemId)
12798
      oprot.writeFieldEnd()
12799
    oprot.writeFieldStop()
12800
    oprot.writeStructEnd()
12801
 
12802
  def validate(self):
12803
    return
12804
 
12805
 
12806
  def __repr__(self):
12807
    L = ['%s=%r' % (key, value)
12808
      for key, value in self.__dict__.iteritems()]
12809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12810
 
12811
  def __eq__(self, other):
12812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12813
 
12814
  def __ne__(self, other):
12815
    return not (self == other)
12816
 
12817
class getAllSourcePricing_result:
12818
  """
12819
  Attributes:
12820
   - success
12821
   - cex
12822
  """
12823
 
12824
  thrift_spec = (
12825
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12826
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12827
  )
12828
 
12829
  def __init__(self, success=None, cex=None,):
12830
    self.success = success
12831
    self.cex = cex
12832
 
12833
  def read(self, iprot):
12834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12836
      return
12837
    iprot.readStructBegin()
12838
    while True:
12839
      (fname, ftype, fid) = iprot.readFieldBegin()
12840
      if ftype == TType.STOP:
12841
        break
12842
      if fid == 0:
12843
        if ftype == TType.LIST:
12844
          self.success = []
6850 kshitij.so 12845
          (_etype231, _size228) = iprot.readListBegin()
12846
          for _i232 in xrange(_size228):
12847
            _elem233 = SourceItemPricing()
12848
            _elem233.read(iprot)
12849
            self.success.append(_elem233)
5944 mandeep.dh 12850
          iprot.readListEnd()
12851
        else:
12852
          iprot.skip(ftype)
12853
      elif fid == 1:
12854
        if ftype == TType.STRUCT:
12855
          self.cex = CatalogServiceException()
12856
          self.cex.read(iprot)
12857
        else:
12858
          iprot.skip(ftype)
12859
      else:
12860
        iprot.skip(ftype)
12861
      iprot.readFieldEnd()
12862
    iprot.readStructEnd()
12863
 
12864
  def write(self, oprot):
12865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12867
      return
12868
    oprot.writeStructBegin('getAllSourcePricing_result')
12869
    if self.success is not None:
12870
      oprot.writeFieldBegin('success', TType.LIST, 0)
12871
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12872
      for iter234 in self.success:
12873
        iter234.write(oprot)
5944 mandeep.dh 12874
      oprot.writeListEnd()
12875
      oprot.writeFieldEnd()
12876
    if self.cex is not None:
12877
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12878
      self.cex.write(oprot)
12879
      oprot.writeFieldEnd()
12880
    oprot.writeFieldStop()
12881
    oprot.writeStructEnd()
12882
 
12883
  def validate(self):
12884
    return
12885
 
12886
 
12887
  def __repr__(self):
12888
    L = ['%s=%r' % (key, value)
12889
      for key, value in self.__dict__.iteritems()]
12890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12891
 
12892
  def __eq__(self, other):
12893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12894
 
12895
  def __ne__(self, other):
12896
    return not (self == other)
12897
 
12898
class getItemForSource_args:
12899
  """
12900
  Attributes:
12901
   - item_id
12902
   - sourceId
12903
  """
12904
 
12905
  thrift_spec = (
12906
    None, # 0
12907
    (1, TType.I64, 'item_id', None, None, ), # 1
12908
    (2, TType.I64, 'sourceId', None, None, ), # 2
12909
  )
12910
 
12911
  def __init__(self, item_id=None, sourceId=None,):
12912
    self.item_id = item_id
12913
    self.sourceId = sourceId
12914
 
12915
  def read(self, iprot):
12916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12918
      return
12919
    iprot.readStructBegin()
12920
    while True:
12921
      (fname, ftype, fid) = iprot.readFieldBegin()
12922
      if ftype == TType.STOP:
12923
        break
12924
      if fid == 1:
12925
        if ftype == TType.I64:
12926
          self.item_id = iprot.readI64();
12927
        else:
12928
          iprot.skip(ftype)
12929
      elif fid == 2:
12930
        if ftype == TType.I64:
12931
          self.sourceId = iprot.readI64();
12932
        else:
12933
          iprot.skip(ftype)
12934
      else:
12935
        iprot.skip(ftype)
12936
      iprot.readFieldEnd()
12937
    iprot.readStructEnd()
12938
 
12939
  def write(self, oprot):
12940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12942
      return
12943
    oprot.writeStructBegin('getItemForSource_args')
12944
    if self.item_id is not None:
12945
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12946
      oprot.writeI64(self.item_id)
12947
      oprot.writeFieldEnd()
12948
    if self.sourceId is not None:
12949
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12950
      oprot.writeI64(self.sourceId)
12951
      oprot.writeFieldEnd()
12952
    oprot.writeFieldStop()
12953
    oprot.writeStructEnd()
12954
 
12955
  def validate(self):
12956
    return
12957
 
12958
 
12959
  def __repr__(self):
12960
    L = ['%s=%r' % (key, value)
12961
      for key, value in self.__dict__.iteritems()]
12962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12963
 
12964
  def __eq__(self, other):
12965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12966
 
12967
  def __ne__(self, other):
12968
    return not (self == other)
12969
 
12970
class getItemForSource_result:
12971
  """
12972
  Attributes:
12973
   - success
12974
   - cex
12975
  """
12976
 
12977
  thrift_spec = (
12978
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12979
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12980
  )
12981
 
12982
  def __init__(self, success=None, cex=None,):
12983
    self.success = success
12984
    self.cex = cex
12985
 
12986
  def read(self, iprot):
12987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12989
      return
12990
    iprot.readStructBegin()
12991
    while True:
12992
      (fname, ftype, fid) = iprot.readFieldBegin()
12993
      if ftype == TType.STOP:
12994
        break
12995
      if fid == 0:
12996
        if ftype == TType.STRUCT:
12997
          self.success = Item()
12998
          self.success.read(iprot)
12999
        else:
13000
          iprot.skip(ftype)
13001
      elif fid == 1:
13002
        if ftype == TType.STRUCT:
13003
          self.cex = CatalogServiceException()
13004
          self.cex.read(iprot)
13005
        else:
13006
          iprot.skip(ftype)
13007
      else:
13008
        iprot.skip(ftype)
13009
      iprot.readFieldEnd()
13010
    iprot.readStructEnd()
13011
 
13012
  def write(self, oprot):
13013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13015
      return
13016
    oprot.writeStructBegin('getItemForSource_result')
13017
    if self.success is not None:
13018
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13019
      self.success.write(oprot)
13020
      oprot.writeFieldEnd()
13021
    if self.cex is not None:
13022
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13023
      self.cex.write(oprot)
13024
      oprot.writeFieldEnd()
13025
    oprot.writeFieldStop()
13026
    oprot.writeStructEnd()
13027
 
13028
  def validate(self):
13029
    return
13030
 
13031
 
13032
  def __repr__(self):
13033
    L = ['%s=%r' % (key, value)
13034
      for key, value in self.__dict__.iteritems()]
13035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13036
 
13037
  def __eq__(self, other):
13038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13039
 
13040
  def __ne__(self, other):
13041
    return not (self == other)
13042
 
13043
class searchItemsInRange_args:
13044
  """
13045
  Attributes:
13046
   - searchTerms
13047
   - offset
13048
   - limit
13049
  """
13050
 
13051
  thrift_spec = (
13052
    None, # 0
13053
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13054
    (2, TType.I64, 'offset', None, None, ), # 2
13055
    (3, TType.I64, 'limit', None, None, ), # 3
13056
  )
13057
 
13058
  def __init__(self, searchTerms=None, offset=None, limit=None,):
13059
    self.searchTerms = searchTerms
13060
    self.offset = offset
13061
    self.limit = limit
13062
 
13063
  def read(self, iprot):
13064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13066
      return
13067
    iprot.readStructBegin()
13068
    while True:
13069
      (fname, ftype, fid) = iprot.readFieldBegin()
13070
      if ftype == TType.STOP:
13071
        break
13072
      if fid == 1:
13073
        if ftype == TType.LIST:
13074
          self.searchTerms = []
6850 kshitij.so 13075
          (_etype238, _size235) = iprot.readListBegin()
13076
          for _i239 in xrange(_size235):
13077
            _elem240 = iprot.readString();
13078
            self.searchTerms.append(_elem240)
5944 mandeep.dh 13079
          iprot.readListEnd()
13080
        else:
13081
          iprot.skip(ftype)
13082
      elif fid == 2:
13083
        if ftype == TType.I64:
13084
          self.offset = iprot.readI64();
13085
        else:
13086
          iprot.skip(ftype)
13087
      elif fid == 3:
13088
        if ftype == TType.I64:
13089
          self.limit = iprot.readI64();
13090
        else:
13091
          iprot.skip(ftype)
13092
      else:
13093
        iprot.skip(ftype)
13094
      iprot.readFieldEnd()
13095
    iprot.readStructEnd()
13096
 
13097
  def write(self, oprot):
13098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13100
      return
13101
    oprot.writeStructBegin('searchItemsInRange_args')
13102
    if self.searchTerms is not None:
13103
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13104
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13105
      for iter241 in self.searchTerms:
13106
        oprot.writeString(iter241)
5944 mandeep.dh 13107
      oprot.writeListEnd()
13108
      oprot.writeFieldEnd()
13109
    if self.offset is not None:
13110
      oprot.writeFieldBegin('offset', TType.I64, 2)
13111
      oprot.writeI64(self.offset)
13112
      oprot.writeFieldEnd()
13113
    if self.limit is not None:
13114
      oprot.writeFieldBegin('limit', TType.I64, 3)
13115
      oprot.writeI64(self.limit)
13116
      oprot.writeFieldEnd()
13117
    oprot.writeFieldStop()
13118
    oprot.writeStructEnd()
13119
 
13120
  def validate(self):
13121
    return
13122
 
13123
 
13124
  def __repr__(self):
13125
    L = ['%s=%r' % (key, value)
13126
      for key, value in self.__dict__.iteritems()]
13127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13128
 
13129
  def __eq__(self, other):
13130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13131
 
13132
  def __ne__(self, other):
13133
    return not (self == other)
13134
 
13135
class searchItemsInRange_result:
13136
  """
13137
  Attributes:
13138
   - success
13139
  """
13140
 
13141
  thrift_spec = (
13142
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13143
  )
13144
 
13145
  def __init__(self, success=None,):
13146
    self.success = success
13147
 
13148
  def read(self, iprot):
13149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13151
      return
13152
    iprot.readStructBegin()
13153
    while True:
13154
      (fname, ftype, fid) = iprot.readFieldBegin()
13155
      if ftype == TType.STOP:
13156
        break
13157
      if fid == 0:
13158
        if ftype == TType.LIST:
13159
          self.success = []
6850 kshitij.so 13160
          (_etype245, _size242) = iprot.readListBegin()
13161
          for _i246 in xrange(_size242):
13162
            _elem247 = Item()
13163
            _elem247.read(iprot)
13164
            self.success.append(_elem247)
5944 mandeep.dh 13165
          iprot.readListEnd()
13166
        else:
13167
          iprot.skip(ftype)
13168
      else:
13169
        iprot.skip(ftype)
13170
      iprot.readFieldEnd()
13171
    iprot.readStructEnd()
13172
 
13173
  def write(self, oprot):
13174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13176
      return
13177
    oprot.writeStructBegin('searchItemsInRange_result')
13178
    if self.success is not None:
13179
      oprot.writeFieldBegin('success', TType.LIST, 0)
13180
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13181
      for iter248 in self.success:
13182
        iter248.write(oprot)
5944 mandeep.dh 13183
      oprot.writeListEnd()
13184
      oprot.writeFieldEnd()
13185
    oprot.writeFieldStop()
13186
    oprot.writeStructEnd()
13187
 
13188
  def validate(self):
13189
    return
13190
 
13191
 
13192
  def __repr__(self):
13193
    L = ['%s=%r' % (key, value)
13194
      for key, value in self.__dict__.iteritems()]
13195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13196
 
13197
  def __eq__(self, other):
13198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13199
 
13200
  def __ne__(self, other):
13201
    return not (self == other)
13202
 
13203
class getSearchResultCount_args:
13204
  """
13205
  Attributes:
13206
   - searchTerms
13207
  """
13208
 
13209
  thrift_spec = (
13210
    None, # 0
13211
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13212
  )
13213
 
13214
  def __init__(self, searchTerms=None,):
13215
    self.searchTerms = searchTerms
13216
 
13217
  def read(self, iprot):
13218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13220
      return
13221
    iprot.readStructBegin()
13222
    while True:
13223
      (fname, ftype, fid) = iprot.readFieldBegin()
13224
      if ftype == TType.STOP:
13225
        break
13226
      if fid == 1:
13227
        if ftype == TType.LIST:
13228
          self.searchTerms = []
6850 kshitij.so 13229
          (_etype252, _size249) = iprot.readListBegin()
13230
          for _i253 in xrange(_size249):
13231
            _elem254 = iprot.readString();
13232
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13233
          iprot.readListEnd()
13234
        else:
13235
          iprot.skip(ftype)
13236
      else:
13237
        iprot.skip(ftype)
13238
      iprot.readFieldEnd()
13239
    iprot.readStructEnd()
13240
 
13241
  def write(self, oprot):
13242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13244
      return
13245
    oprot.writeStructBegin('getSearchResultCount_args')
13246
    if self.searchTerms is not None:
13247
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13248
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13249
      for iter255 in self.searchTerms:
13250
        oprot.writeString(iter255)
5944 mandeep.dh 13251
      oprot.writeListEnd()
13252
      oprot.writeFieldEnd()
13253
    oprot.writeFieldStop()
13254
    oprot.writeStructEnd()
13255
 
13256
  def validate(self):
13257
    return
13258
 
13259
 
13260
  def __repr__(self):
13261
    L = ['%s=%r' % (key, value)
13262
      for key, value in self.__dict__.iteritems()]
13263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13264
 
13265
  def __eq__(self, other):
13266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13267
 
13268
  def __ne__(self, other):
13269
    return not (self == other)
13270
 
13271
class getSearchResultCount_result:
13272
  """
13273
  Attributes:
13274
   - success
13275
  """
13276
 
13277
  thrift_spec = (
13278
    (0, TType.I32, 'success', None, None, ), # 0
13279
  )
13280
 
13281
  def __init__(self, success=None,):
13282
    self.success = success
13283
 
13284
  def read(self, iprot):
13285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13287
      return
13288
    iprot.readStructBegin()
13289
    while True:
13290
      (fname, ftype, fid) = iprot.readFieldBegin()
13291
      if ftype == TType.STOP:
13292
        break
13293
      if fid == 0:
13294
        if ftype == TType.I32:
13295
          self.success = iprot.readI32();
13296
        else:
13297
          iprot.skip(ftype)
13298
      else:
13299
        iprot.skip(ftype)
13300
      iprot.readFieldEnd()
13301
    iprot.readStructEnd()
13302
 
13303
  def write(self, oprot):
13304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13306
      return
13307
    oprot.writeStructBegin('getSearchResultCount_result')
13308
    if self.success is not None:
13309
      oprot.writeFieldBegin('success', TType.I32, 0)
13310
      oprot.writeI32(self.success)
13311
      oprot.writeFieldEnd()
13312
    oprot.writeFieldStop()
13313
    oprot.writeStructEnd()
13314
 
13315
  def validate(self):
13316
    return
13317
 
13318
 
13319
  def __repr__(self):
13320
    L = ['%s=%r' % (key, value)
13321
      for key, value in self.__dict__.iteritems()]
13322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13323
 
13324
  def __eq__(self, other):
13325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13326
 
13327
  def __ne__(self, other):
13328
    return not (self == other)
13329
 
13330
class getProductNotifications_args:
13331
  """
13332
  Attributes:
13333
   - startDateTime
13334
  """
13335
 
13336
  thrift_spec = (
13337
    None, # 0
13338
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13339
  )
13340
 
13341
  def __init__(self, startDateTime=None,):
13342
    self.startDateTime = startDateTime
13343
 
13344
  def read(self, iprot):
13345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13347
      return
13348
    iprot.readStructBegin()
13349
    while True:
13350
      (fname, ftype, fid) = iprot.readFieldBegin()
13351
      if ftype == TType.STOP:
13352
        break
13353
      if fid == 1:
13354
        if ftype == TType.I64:
13355
          self.startDateTime = iprot.readI64();
13356
        else:
13357
          iprot.skip(ftype)
13358
      else:
13359
        iprot.skip(ftype)
13360
      iprot.readFieldEnd()
13361
    iprot.readStructEnd()
13362
 
13363
  def write(self, oprot):
13364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13366
      return
13367
    oprot.writeStructBegin('getProductNotifications_args')
13368
    if self.startDateTime is not None:
13369
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13370
      oprot.writeI64(self.startDateTime)
13371
      oprot.writeFieldEnd()
13372
    oprot.writeFieldStop()
13373
    oprot.writeStructEnd()
13374
 
13375
  def validate(self):
13376
    return
13377
 
13378
 
13379
  def __repr__(self):
13380
    L = ['%s=%r' % (key, value)
13381
      for key, value in self.__dict__.iteritems()]
13382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13383
 
13384
  def __eq__(self, other):
13385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13386
 
13387
  def __ne__(self, other):
13388
    return not (self == other)
13389
 
13390
class getProductNotifications_result:
13391
  """
13392
  Attributes:
13393
   - success
13394
  """
13395
 
13396
  thrift_spec = (
13397
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13398
  )
13399
 
13400
  def __init__(self, success=None,):
13401
    self.success = success
13402
 
13403
  def read(self, iprot):
13404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13406
      return
13407
    iprot.readStructBegin()
13408
    while True:
13409
      (fname, ftype, fid) = iprot.readFieldBegin()
13410
      if ftype == TType.STOP:
13411
        break
13412
      if fid == 0:
13413
        if ftype == TType.LIST:
13414
          self.success = []
6850 kshitij.so 13415
          (_etype259, _size256) = iprot.readListBegin()
13416
          for _i260 in xrange(_size256):
13417
            _elem261 = ProductNotificationRequest()
13418
            _elem261.read(iprot)
13419
            self.success.append(_elem261)
5944 mandeep.dh 13420
          iprot.readListEnd()
13421
        else:
13422
          iprot.skip(ftype)
13423
      else:
13424
        iprot.skip(ftype)
13425
      iprot.readFieldEnd()
13426
    iprot.readStructEnd()
13427
 
13428
  def write(self, oprot):
13429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13431
      return
13432
    oprot.writeStructBegin('getProductNotifications_result')
13433
    if self.success is not None:
13434
      oprot.writeFieldBegin('success', TType.LIST, 0)
13435
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13436
      for iter262 in self.success:
13437
        iter262.write(oprot)
5944 mandeep.dh 13438
      oprot.writeListEnd()
13439
      oprot.writeFieldEnd()
13440
    oprot.writeFieldStop()
13441
    oprot.writeStructEnd()
13442
 
13443
  def validate(self):
13444
    return
13445
 
13446
 
13447
  def __repr__(self):
13448
    L = ['%s=%r' % (key, value)
13449
      for key, value in self.__dict__.iteritems()]
13450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13451
 
13452
  def __eq__(self, other):
13453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13454
 
13455
  def __ne__(self, other):
13456
    return not (self == other)
13457
 
13458
class getProductNotificationRequestCount_args:
13459
  """
13460
  Attributes:
13461
   - startDateTime
13462
  """
13463
 
13464
  thrift_spec = (
13465
    None, # 0
13466
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13467
  )
13468
 
13469
  def __init__(self, startDateTime=None,):
13470
    self.startDateTime = startDateTime
13471
 
13472
  def read(self, iprot):
13473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13475
      return
13476
    iprot.readStructBegin()
13477
    while True:
13478
      (fname, ftype, fid) = iprot.readFieldBegin()
13479
      if ftype == TType.STOP:
13480
        break
13481
      if fid == 1:
13482
        if ftype == TType.I64:
13483
          self.startDateTime = iprot.readI64();
13484
        else:
13485
          iprot.skip(ftype)
13486
      else:
13487
        iprot.skip(ftype)
13488
      iprot.readFieldEnd()
13489
    iprot.readStructEnd()
13490
 
13491
  def write(self, oprot):
13492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13494
      return
13495
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13496
    if self.startDateTime is not None:
13497
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13498
      oprot.writeI64(self.startDateTime)
13499
      oprot.writeFieldEnd()
13500
    oprot.writeFieldStop()
13501
    oprot.writeStructEnd()
13502
 
13503
  def validate(self):
13504
    return
13505
 
13506
 
13507
  def __repr__(self):
13508
    L = ['%s=%r' % (key, value)
13509
      for key, value in self.__dict__.iteritems()]
13510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13511
 
13512
  def __eq__(self, other):
13513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13514
 
13515
  def __ne__(self, other):
13516
    return not (self == other)
13517
 
13518
class getProductNotificationRequestCount_result:
13519
  """
13520
  Attributes:
13521
   - success
13522
  """
13523
 
13524
  thrift_spec = (
13525
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13526
  )
13527
 
13528
  def __init__(self, success=None,):
13529
    self.success = success
13530
 
13531
  def read(self, iprot):
13532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13534
      return
13535
    iprot.readStructBegin()
13536
    while True:
13537
      (fname, ftype, fid) = iprot.readFieldBegin()
13538
      if ftype == TType.STOP:
13539
        break
13540
      if fid == 0:
13541
        if ftype == TType.LIST:
13542
          self.success = []
6850 kshitij.so 13543
          (_etype266, _size263) = iprot.readListBegin()
13544
          for _i267 in xrange(_size263):
13545
            _elem268 = ProductNotificationRequestCount()
13546
            _elem268.read(iprot)
13547
            self.success.append(_elem268)
5944 mandeep.dh 13548
          iprot.readListEnd()
13549
        else:
13550
          iprot.skip(ftype)
13551
      else:
13552
        iprot.skip(ftype)
13553
      iprot.readFieldEnd()
13554
    iprot.readStructEnd()
13555
 
13556
  def write(self, oprot):
13557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13559
      return
13560
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13561
    if self.success is not None:
13562
      oprot.writeFieldBegin('success', TType.LIST, 0)
13563
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13564
      for iter269 in self.success:
13565
        iter269.write(oprot)
5944 mandeep.dh 13566
      oprot.writeListEnd()
13567
      oprot.writeFieldEnd()
13568
    oprot.writeFieldStop()
13569
    oprot.writeStructEnd()
13570
 
13571
  def validate(self):
13572
    return
13573
 
13574
 
13575
  def __repr__(self):
13576
    L = ['%s=%r' % (key, value)
13577
      for key, value in self.__dict__.iteritems()]
13578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13579
 
13580
  def __eq__(self, other):
13581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13582
 
13583
  def __ne__(self, other):
13584
    return not (self == other)
13585
 
13586
class addAuthorizationLog_args:
13587
  """
13588
  Attributes:
13589
   - itemId
13590
   - username
13591
   - reason
13592
  """
13593
 
13594
  thrift_spec = (
13595
    None, # 0
13596
    (1, TType.I64, 'itemId', None, None, ), # 1
13597
    (2, TType.STRING, 'username', None, None, ), # 2
13598
    (3, TType.STRING, 'reason', None, None, ), # 3
13599
  )
13600
 
13601
  def __init__(self, itemId=None, username=None, reason=None,):
13602
    self.itemId = itemId
13603
    self.username = username
13604
    self.reason = reason
13605
 
13606
  def read(self, iprot):
13607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13609
      return
13610
    iprot.readStructBegin()
13611
    while True:
13612
      (fname, ftype, fid) = iprot.readFieldBegin()
13613
      if ftype == TType.STOP:
13614
        break
13615
      if fid == 1:
13616
        if ftype == TType.I64:
13617
          self.itemId = iprot.readI64();
13618
        else:
13619
          iprot.skip(ftype)
13620
      elif fid == 2:
13621
        if ftype == TType.STRING:
13622
          self.username = iprot.readString();
13623
        else:
13624
          iprot.skip(ftype)
13625
      elif fid == 3:
13626
        if ftype == TType.STRING:
13627
          self.reason = iprot.readString();
13628
        else:
13629
          iprot.skip(ftype)
13630
      else:
13631
        iprot.skip(ftype)
13632
      iprot.readFieldEnd()
13633
    iprot.readStructEnd()
13634
 
13635
  def write(self, oprot):
13636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13638
      return
13639
    oprot.writeStructBegin('addAuthorizationLog_args')
13640
    if self.itemId is not None:
13641
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13642
      oprot.writeI64(self.itemId)
13643
      oprot.writeFieldEnd()
13644
    if self.username is not None:
13645
      oprot.writeFieldBegin('username', TType.STRING, 2)
13646
      oprot.writeString(self.username)
13647
      oprot.writeFieldEnd()
13648
    if self.reason is not None:
13649
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13650
      oprot.writeString(self.reason)
13651
      oprot.writeFieldEnd()
13652
    oprot.writeFieldStop()
13653
    oprot.writeStructEnd()
13654
 
13655
  def validate(self):
13656
    return
13657
 
13658
 
13659
  def __repr__(self):
13660
    L = ['%s=%r' % (key, value)
13661
      for key, value in self.__dict__.iteritems()]
13662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13663
 
13664
  def __eq__(self, other):
13665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13666
 
13667
  def __ne__(self, other):
13668
    return not (self == other)
13669
 
13670
class addAuthorizationLog_result:
13671
  """
13672
  Attributes:
13673
   - success
13674
   - cex
13675
  """
13676
 
13677
  thrift_spec = (
13678
    (0, TType.BOOL, 'success', None, None, ), # 0
13679
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13680
  )
13681
 
13682
  def __init__(self, success=None, cex=None,):
13683
    self.success = success
13684
    self.cex = cex
13685
 
13686
  def read(self, iprot):
13687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13689
      return
13690
    iprot.readStructBegin()
13691
    while True:
13692
      (fname, ftype, fid) = iprot.readFieldBegin()
13693
      if ftype == TType.STOP:
13694
        break
13695
      if fid == 0:
13696
        if ftype == TType.BOOL:
13697
          self.success = iprot.readBool();
13698
        else:
13699
          iprot.skip(ftype)
13700
      elif fid == 1:
13701
        if ftype == TType.STRUCT:
13702
          self.cex = CatalogServiceException()
13703
          self.cex.read(iprot)
13704
        else:
13705
          iprot.skip(ftype)
13706
      else:
13707
        iprot.skip(ftype)
13708
      iprot.readFieldEnd()
13709
    iprot.readStructEnd()
13710
 
13711
  def write(self, oprot):
13712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13714
      return
13715
    oprot.writeStructBegin('addAuthorizationLog_result')
13716
    if self.success is not None:
13717
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13718
      oprot.writeBool(self.success)
13719
      oprot.writeFieldEnd()
13720
    if self.cex is not None:
13721
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13722
      self.cex.write(oprot)
13723
      oprot.writeFieldEnd()
13724
    oprot.writeFieldStop()
13725
    oprot.writeStructEnd()
13726
 
13727
  def validate(self):
13728
    return
13729
 
13730
 
13731
  def __repr__(self):
13732
    L = ['%s=%r' % (key, value)
13733
      for key, value in self.__dict__.iteritems()]
13734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13735
 
13736
  def __eq__(self, other):
13737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13738
 
13739
  def __ne__(self, other):
13740
    return not (self == other)
13741
 
13742
class addupdateVoucherForItem_args:
13743
  """
13744
  Attributes:
13745
   - catalog_item_id
13746
   - voucherType
13747
   - voucherAmount
13748
  """
13749
 
13750
  thrift_spec = (
13751
    None, # 0
13752
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13753
    (2, TType.I64, 'voucherType', None, None, ), # 2
13754
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13755
  )
13756
 
13757
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13758
    self.catalog_item_id = catalog_item_id
13759
    self.voucherType = voucherType
13760
    self.voucherAmount = voucherAmount
13761
 
13762
  def read(self, iprot):
13763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13765
      return
13766
    iprot.readStructBegin()
13767
    while True:
13768
      (fname, ftype, fid) = iprot.readFieldBegin()
13769
      if ftype == TType.STOP:
13770
        break
13771
      if fid == 1:
13772
        if ftype == TType.I64:
13773
          self.catalog_item_id = iprot.readI64();
13774
        else:
13775
          iprot.skip(ftype)
13776
      elif fid == 2:
13777
        if ftype == TType.I64:
13778
          self.voucherType = iprot.readI64();
13779
        else:
13780
          iprot.skip(ftype)
13781
      elif fid == 3:
13782
        if ftype == TType.I64:
13783
          self.voucherAmount = iprot.readI64();
13784
        else:
13785
          iprot.skip(ftype)
13786
      else:
13787
        iprot.skip(ftype)
13788
      iprot.readFieldEnd()
13789
    iprot.readStructEnd()
13790
 
13791
  def write(self, oprot):
13792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13794
      return
13795
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13796
    if self.catalog_item_id is not None:
13797
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13798
      oprot.writeI64(self.catalog_item_id)
13799
      oprot.writeFieldEnd()
13800
    if self.voucherType is not None:
13801
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13802
      oprot.writeI64(self.voucherType)
13803
      oprot.writeFieldEnd()
13804
    if self.voucherAmount is not None:
13805
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13806
      oprot.writeI64(self.voucherAmount)
13807
      oprot.writeFieldEnd()
13808
    oprot.writeFieldStop()
13809
    oprot.writeStructEnd()
13810
 
13811
  def validate(self):
13812
    return
13813
 
13814
 
13815
  def __repr__(self):
13816
    L = ['%s=%r' % (key, value)
13817
      for key, value in self.__dict__.iteritems()]
13818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13819
 
13820
  def __eq__(self, other):
13821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13822
 
13823
  def __ne__(self, other):
13824
    return not (self == other)
13825
 
13826
class addupdateVoucherForItem_result:
13827
  """
13828
  Attributes:
13829
   - success
13830
   - cex
13831
  """
13832
 
13833
  thrift_spec = (
13834
    (0, TType.BOOL, 'success', None, None, ), # 0
13835
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13836
  )
13837
 
13838
  def __init__(self, success=None, cex=None,):
13839
    self.success = success
13840
    self.cex = cex
13841
 
13842
  def read(self, iprot):
13843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13845
      return
13846
    iprot.readStructBegin()
13847
    while True:
13848
      (fname, ftype, fid) = iprot.readFieldBegin()
13849
      if ftype == TType.STOP:
13850
        break
13851
      if fid == 0:
13852
        if ftype == TType.BOOL:
13853
          self.success = iprot.readBool();
13854
        else:
13855
          iprot.skip(ftype)
13856
      elif fid == 1:
13857
        if ftype == TType.STRUCT:
13858
          self.cex = CatalogServiceException()
13859
          self.cex.read(iprot)
13860
        else:
13861
          iprot.skip(ftype)
13862
      else:
13863
        iprot.skip(ftype)
13864
      iprot.readFieldEnd()
13865
    iprot.readStructEnd()
13866
 
13867
  def write(self, oprot):
13868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13870
      return
13871
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13872
    if self.success is not None:
13873
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13874
      oprot.writeBool(self.success)
13875
      oprot.writeFieldEnd()
13876
    if self.cex is not None:
13877
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13878
      self.cex.write(oprot)
13879
      oprot.writeFieldEnd()
13880
    oprot.writeFieldStop()
13881
    oprot.writeStructEnd()
13882
 
13883
  def validate(self):
13884
    return
13885
 
13886
 
13887
  def __repr__(self):
13888
    L = ['%s=%r' % (key, value)
13889
      for key, value in self.__dict__.iteritems()]
13890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13891
 
13892
  def __eq__(self, other):
13893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13894
 
13895
  def __ne__(self, other):
13896
    return not (self == other)
13897
 
13898
class deleteVoucherForItem_args:
13899
  """
13900
  Attributes:
13901
   - catalog_item_id
13902
   - voucherType
13903
  """
13904
 
13905
  thrift_spec = (
13906
    None, # 0
13907
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13908
    (2, TType.I64, 'voucherType', None, None, ), # 2
13909
  )
13910
 
13911
  def __init__(self, catalog_item_id=None, voucherType=None,):
13912
    self.catalog_item_id = catalog_item_id
13913
    self.voucherType = voucherType
13914
 
13915
  def read(self, iprot):
13916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13918
      return
13919
    iprot.readStructBegin()
13920
    while True:
13921
      (fname, ftype, fid) = iprot.readFieldBegin()
13922
      if ftype == TType.STOP:
13923
        break
13924
      if fid == 1:
13925
        if ftype == TType.I64:
13926
          self.catalog_item_id = iprot.readI64();
13927
        else:
13928
          iprot.skip(ftype)
13929
      elif fid == 2:
13930
        if ftype == TType.I64:
13931
          self.voucherType = iprot.readI64();
13932
        else:
13933
          iprot.skip(ftype)
13934
      else:
13935
        iprot.skip(ftype)
13936
      iprot.readFieldEnd()
13937
    iprot.readStructEnd()
13938
 
13939
  def write(self, oprot):
13940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13942
      return
13943
    oprot.writeStructBegin('deleteVoucherForItem_args')
13944
    if self.catalog_item_id is not None:
13945
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13946
      oprot.writeI64(self.catalog_item_id)
13947
      oprot.writeFieldEnd()
13948
    if self.voucherType is not None:
13949
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13950
      oprot.writeI64(self.voucherType)
13951
      oprot.writeFieldEnd()
13952
    oprot.writeFieldStop()
13953
    oprot.writeStructEnd()
13954
 
13955
  def validate(self):
13956
    return
13957
 
13958
 
13959
  def __repr__(self):
13960
    L = ['%s=%r' % (key, value)
13961
      for key, value in self.__dict__.iteritems()]
13962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13963
 
13964
  def __eq__(self, other):
13965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13966
 
13967
  def __ne__(self, other):
13968
    return not (self == other)
13969
 
13970
class deleteVoucherForItem_result:
13971
  """
13972
  Attributes:
13973
   - success
13974
   - cex
13975
  """
13976
 
13977
  thrift_spec = (
13978
    (0, TType.BOOL, 'success', None, None, ), # 0
13979
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13980
  )
13981
 
13982
  def __init__(self, success=None, cex=None,):
13983
    self.success = success
13984
    self.cex = cex
13985
 
13986
  def read(self, iprot):
13987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13989
      return
13990
    iprot.readStructBegin()
13991
    while True:
13992
      (fname, ftype, fid) = iprot.readFieldBegin()
13993
      if ftype == TType.STOP:
13994
        break
13995
      if fid == 0:
13996
        if ftype == TType.BOOL:
13997
          self.success = iprot.readBool();
13998
        else:
13999
          iprot.skip(ftype)
14000
      elif fid == 1:
14001
        if ftype == TType.STRUCT:
14002
          self.cex = CatalogServiceException()
14003
          self.cex.read(iprot)
14004
        else:
14005
          iprot.skip(ftype)
14006
      else:
14007
        iprot.skip(ftype)
14008
      iprot.readFieldEnd()
14009
    iprot.readStructEnd()
14010
 
14011
  def write(self, oprot):
14012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14014
      return
14015
    oprot.writeStructBegin('deleteVoucherForItem_result')
14016
    if self.success is not None:
14017
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14018
      oprot.writeBool(self.success)
14019
      oprot.writeFieldEnd()
14020
    if self.cex is not None:
14021
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14022
      self.cex.write(oprot)
14023
      oprot.writeFieldEnd()
14024
    oprot.writeFieldStop()
14025
    oprot.writeStructEnd()
14026
 
14027
  def validate(self):
14028
    return
14029
 
14030
 
14031
  def __repr__(self):
14032
    L = ['%s=%r' % (key, value)
14033
      for key, value in self.__dict__.iteritems()]
14034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14035
 
14036
  def __eq__(self, other):
14037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14038
 
14039
  def __ne__(self, other):
14040
    return not (self == other)
14041
 
14042
class getVoucherAmount_args:
14043
  """
14044
  Attributes:
14045
   - itemId
14046
   - voucherType
14047
  """
14048
 
14049
  thrift_spec = (
14050
    None, # 0
14051
    (1, TType.I64, 'itemId', None, None, ), # 1
14052
    (2, TType.I64, 'voucherType', None, None, ), # 2
14053
  )
14054
 
14055
  def __init__(self, itemId=None, voucherType=None,):
14056
    self.itemId = itemId
14057
    self.voucherType = voucherType
14058
 
14059
  def read(self, iprot):
14060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14062
      return
14063
    iprot.readStructBegin()
14064
    while True:
14065
      (fname, ftype, fid) = iprot.readFieldBegin()
14066
      if ftype == TType.STOP:
14067
        break
14068
      if fid == 1:
14069
        if ftype == TType.I64:
14070
          self.itemId = iprot.readI64();
14071
        else:
14072
          iprot.skip(ftype)
14073
      elif fid == 2:
14074
        if ftype == TType.I64:
14075
          self.voucherType = iprot.readI64();
14076
        else:
14077
          iprot.skip(ftype)
14078
      else:
14079
        iprot.skip(ftype)
14080
      iprot.readFieldEnd()
14081
    iprot.readStructEnd()
14082
 
14083
  def write(self, oprot):
14084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14086
      return
14087
    oprot.writeStructBegin('getVoucherAmount_args')
14088
    if self.itemId is not None:
14089
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14090
      oprot.writeI64(self.itemId)
14091
      oprot.writeFieldEnd()
14092
    if self.voucherType is not None:
14093
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14094
      oprot.writeI64(self.voucherType)
14095
      oprot.writeFieldEnd()
14096
    oprot.writeFieldStop()
14097
    oprot.writeStructEnd()
14098
 
14099
  def validate(self):
14100
    return
14101
 
14102
 
14103
  def __repr__(self):
14104
    L = ['%s=%r' % (key, value)
14105
      for key, value in self.__dict__.iteritems()]
14106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14107
 
14108
  def __eq__(self, other):
14109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14110
 
14111
  def __ne__(self, other):
14112
    return not (self == other)
14113
 
14114
class getVoucherAmount_result:
14115
  """
14116
  Attributes:
14117
   - success
14118
  """
14119
 
14120
  thrift_spec = (
14121
    (0, TType.I64, 'success', None, None, ), # 0
14122
  )
14123
 
14124
  def __init__(self, success=None,):
14125
    self.success = success
14126
 
14127
  def read(self, iprot):
14128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14130
      return
14131
    iprot.readStructBegin()
14132
    while True:
14133
      (fname, ftype, fid) = iprot.readFieldBegin()
14134
      if ftype == TType.STOP:
14135
        break
14136
      if fid == 0:
14137
        if ftype == TType.I64:
14138
          self.success = iprot.readI64();
14139
        else:
14140
          iprot.skip(ftype)
14141
      else:
14142
        iprot.skip(ftype)
14143
      iprot.readFieldEnd()
14144
    iprot.readStructEnd()
14145
 
14146
  def write(self, oprot):
14147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14149
      return
14150
    oprot.writeStructBegin('getVoucherAmount_result')
14151
    if self.success is not None:
14152
      oprot.writeFieldBegin('success', TType.I64, 0)
14153
      oprot.writeI64(self.success)
14154
      oprot.writeFieldEnd()
14155
    oprot.writeFieldStop()
14156
    oprot.writeStructEnd()
14157
 
14158
  def validate(self):
14159
    return
14160
 
14161
 
14162
  def __repr__(self):
14163
    L = ['%s=%r' % (key, value)
14164
      for key, value in self.__dict__.iteritems()]
14165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14166
 
14167
  def __eq__(self, other):
14168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14169
 
14170
  def __ne__(self, other):
14171
    return not (self == other)
14172
 
14173
class getAllItemVouchers_args:
14174
  """
14175
  Attributes:
14176
   - itemId
14177
  """
14178
 
14179
  thrift_spec = (
14180
    None, # 0
14181
    (1, TType.I64, 'itemId', None, None, ), # 1
14182
  )
14183
 
14184
  def __init__(self, itemId=None,):
14185
    self.itemId = itemId
14186
 
14187
  def read(self, iprot):
14188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14190
      return
14191
    iprot.readStructBegin()
14192
    while True:
14193
      (fname, ftype, fid) = iprot.readFieldBegin()
14194
      if ftype == TType.STOP:
14195
        break
14196
      if fid == 1:
14197
        if ftype == TType.I64:
14198
          self.itemId = iprot.readI64();
14199
        else:
14200
          iprot.skip(ftype)
14201
      else:
14202
        iprot.skip(ftype)
14203
      iprot.readFieldEnd()
14204
    iprot.readStructEnd()
14205
 
14206
  def write(self, oprot):
14207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14209
      return
14210
    oprot.writeStructBegin('getAllItemVouchers_args')
14211
    if self.itemId is not None:
14212
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14213
      oprot.writeI64(self.itemId)
14214
      oprot.writeFieldEnd()
14215
    oprot.writeFieldStop()
14216
    oprot.writeStructEnd()
14217
 
14218
  def validate(self):
14219
    return
14220
 
14221
 
14222
  def __repr__(self):
14223
    L = ['%s=%r' % (key, value)
14224
      for key, value in self.__dict__.iteritems()]
14225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14226
 
14227
  def __eq__(self, other):
14228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14229
 
14230
  def __ne__(self, other):
14231
    return not (self == other)
14232
 
14233
class getAllItemVouchers_result:
14234
  """
14235
  Attributes:
14236
   - success
14237
  """
14238
 
14239
  thrift_spec = (
14240
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14241
  )
14242
 
14243
  def __init__(self, success=None,):
14244
    self.success = success
14245
 
14246
  def read(self, iprot):
14247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14249
      return
14250
    iprot.readStructBegin()
14251
    while True:
14252
      (fname, ftype, fid) = iprot.readFieldBegin()
14253
      if ftype == TType.STOP:
14254
        break
14255
      if fid == 0:
14256
        if ftype == TType.LIST:
14257
          self.success = []
7256 rajveer 14258
          (_etype273, _size270) = iprot.readListBegin()
14259
          for _i274 in xrange(_size270):
14260
            _elem275 = VoucherItemMapping()
14261
            _elem275.read(iprot)
14262
            self.success.append(_elem275)
5944 mandeep.dh 14263
          iprot.readListEnd()
14264
        else:
14265
          iprot.skip(ftype)
14266
      else:
14267
        iprot.skip(ftype)
14268
      iprot.readFieldEnd()
14269
    iprot.readStructEnd()
14270
 
14271
  def write(self, oprot):
14272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14274
      return
14275
    oprot.writeStructBegin('getAllItemVouchers_result')
14276
    if self.success is not None:
14277
      oprot.writeFieldBegin('success', TType.LIST, 0)
14278
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14279
      for iter276 in self.success:
14280
        iter276.write(oprot)
5944 mandeep.dh 14281
      oprot.writeListEnd()
14282
      oprot.writeFieldEnd()
14283
    oprot.writeFieldStop()
14284
    oprot.writeStructEnd()
14285
 
14286
  def validate(self):
14287
    return
14288
 
14289
 
14290
  def __repr__(self):
14291
    L = ['%s=%r' % (key, value)
14292
      for key, value in self.__dict__.iteritems()]
14293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14294
 
14295
  def __eq__(self, other):
14296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14297
 
14298
  def __ne__(self, other):
14299
    return not (self == other)
14300
 
14301
class isValidCatalogItemId_args:
14302
  """
14303
  Attributes:
14304
   - catalog_item_id
14305
  """
14306
 
14307
  thrift_spec = (
14308
    None, # 0
14309
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14310
  )
14311
 
14312
  def __init__(self, catalog_item_id=None,):
14313
    self.catalog_item_id = catalog_item_id
14314
 
14315
  def read(self, iprot):
14316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14318
      return
14319
    iprot.readStructBegin()
14320
    while True:
14321
      (fname, ftype, fid) = iprot.readFieldBegin()
14322
      if ftype == TType.STOP:
14323
        break
14324
      if fid == 1:
14325
        if ftype == TType.I64:
14326
          self.catalog_item_id = iprot.readI64();
14327
        else:
14328
          iprot.skip(ftype)
14329
      else:
14330
        iprot.skip(ftype)
14331
      iprot.readFieldEnd()
14332
    iprot.readStructEnd()
14333
 
14334
  def write(self, oprot):
14335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14337
      return
14338
    oprot.writeStructBegin('isValidCatalogItemId_args')
14339
    if self.catalog_item_id is not None:
14340
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14341
      oprot.writeI64(self.catalog_item_id)
14342
      oprot.writeFieldEnd()
14343
    oprot.writeFieldStop()
14344
    oprot.writeStructEnd()
14345
 
14346
  def validate(self):
14347
    return
14348
 
14349
 
14350
  def __repr__(self):
14351
    L = ['%s=%r' % (key, value)
14352
      for key, value in self.__dict__.iteritems()]
14353
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14354
 
14355
  def __eq__(self, other):
14356
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14357
 
14358
  def __ne__(self, other):
14359
    return not (self == other)
14360
 
14361
class isValidCatalogItemId_result:
14362
  """
14363
  Attributes:
14364
   - success
14365
  """
14366
 
14367
  thrift_spec = (
14368
    (0, TType.BOOL, 'success', None, None, ), # 0
14369
  )
14370
 
14371
  def __init__(self, success=None,):
14372
    self.success = success
14373
 
14374
  def read(self, iprot):
14375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14377
      return
14378
    iprot.readStructBegin()
14379
    while True:
14380
      (fname, ftype, fid) = iprot.readFieldBegin()
14381
      if ftype == TType.STOP:
14382
        break
14383
      if fid == 0:
14384
        if ftype == TType.BOOL:
14385
          self.success = iprot.readBool();
14386
        else:
14387
          iprot.skip(ftype)
14388
      else:
14389
        iprot.skip(ftype)
14390
      iprot.readFieldEnd()
14391
    iprot.readStructEnd()
14392
 
14393
  def write(self, oprot):
14394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14396
      return
14397
    oprot.writeStructBegin('isValidCatalogItemId_result')
14398
    if self.success is not None:
14399
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14400
      oprot.writeBool(self.success)
14401
      oprot.writeFieldEnd()
14402
    oprot.writeFieldStop()
14403
    oprot.writeStructEnd()
14404
 
14405
  def validate(self):
14406
    return
14407
 
14408
 
14409
  def __repr__(self):
14410
    L = ['%s=%r' % (key, value)
14411
      for key, value in self.__dict__.iteritems()]
14412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14413
 
14414
  def __eq__(self, other):
14415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14416
 
14417
  def __ne__(self, other):
14418
    return not (self == other)
6039 amit.gupta 14419
 
14420
class getVatPercentageForItem_args:
14421
  """
14422
  Attributes:
14423
   - itemId
14424
   - price
14425
  """
14426
 
14427
  thrift_spec = (
14428
    None, # 0
14429
    (1, TType.I64, 'itemId', None, None, ), # 1
14430
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14431
  )
14432
 
14433
  def __init__(self, itemId=None, price=None,):
14434
    self.itemId = itemId
14435
    self.price = price
14436
 
14437
  def read(self, iprot):
14438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14440
      return
14441
    iprot.readStructBegin()
14442
    while True:
14443
      (fname, ftype, fid) = iprot.readFieldBegin()
14444
      if ftype == TType.STOP:
14445
        break
14446
      if fid == 1:
14447
        if ftype == TType.I64:
14448
          self.itemId = iprot.readI64();
14449
        else:
14450
          iprot.skip(ftype)
14451
      elif fid == 2:
14452
        if ftype == TType.DOUBLE:
14453
          self.price = iprot.readDouble();
14454
        else:
14455
          iprot.skip(ftype)
14456
      else:
14457
        iprot.skip(ftype)
14458
      iprot.readFieldEnd()
14459
    iprot.readStructEnd()
14460
 
14461
  def write(self, oprot):
14462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14464
      return
14465
    oprot.writeStructBegin('getVatPercentageForItem_args')
14466
    if self.itemId is not None:
14467
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14468
      oprot.writeI64(self.itemId)
14469
      oprot.writeFieldEnd()
14470
    if self.price is not None:
14471
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14472
      oprot.writeDouble(self.price)
14473
      oprot.writeFieldEnd()
14474
    oprot.writeFieldStop()
14475
    oprot.writeStructEnd()
14476
 
14477
  def validate(self):
14478
    return
14479
 
14480
 
14481
  def __repr__(self):
14482
    L = ['%s=%r' % (key, value)
14483
      for key, value in self.__dict__.iteritems()]
14484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14485
 
14486
  def __eq__(self, other):
14487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14488
 
14489
  def __ne__(self, other):
14490
    return not (self == other)
14491
 
14492
class getVatPercentageForItem_result:
14493
  """
14494
  Attributes:
14495
   - success
14496
  """
14497
 
14498
  thrift_spec = (
14499
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14500
  )
14501
 
14502
  def __init__(self, success=None,):
14503
    self.success = success
14504
 
14505
  def read(self, iprot):
14506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14508
      return
14509
    iprot.readStructBegin()
14510
    while True:
14511
      (fname, ftype, fid) = iprot.readFieldBegin()
14512
      if ftype == TType.STOP:
14513
        break
14514
      if fid == 0:
14515
        if ftype == TType.DOUBLE:
14516
          self.success = iprot.readDouble();
14517
        else:
14518
          iprot.skip(ftype)
14519
      else:
14520
        iprot.skip(ftype)
14521
      iprot.readFieldEnd()
14522
    iprot.readStructEnd()
14523
 
14524
  def write(self, oprot):
14525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14527
      return
14528
    oprot.writeStructBegin('getVatPercentageForItem_result')
14529
    if self.success is not None:
14530
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14531
      oprot.writeDouble(self.success)
14532
      oprot.writeFieldEnd()
14533
    oprot.writeFieldStop()
14534
    oprot.writeStructEnd()
14535
 
14536
  def validate(self):
14537
    return
14538
 
14539
 
14540
  def __repr__(self):
14541
    L = ['%s=%r' % (key, value)
14542
      for key, value in self.__dict__.iteritems()]
14543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14544
 
14545
  def __eq__(self, other):
14546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14547
 
14548
  def __ne__(self, other):
14549
    return not (self == other)
14550
 
14551
class getVatAmountForItem_args:
14552
  """
14553
  Attributes:
14554
   - itemId
14555
   - price
14556
  """
14557
 
14558
  thrift_spec = (
14559
    None, # 0
14560
    (1, TType.I64, 'itemId', None, None, ), # 1
14561
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14562
  )
14563
 
14564
  def __init__(self, itemId=None, price=None,):
14565
    self.itemId = itemId
14566
    self.price = price
14567
 
14568
  def read(self, iprot):
14569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14571
      return
14572
    iprot.readStructBegin()
14573
    while True:
14574
      (fname, ftype, fid) = iprot.readFieldBegin()
14575
      if ftype == TType.STOP:
14576
        break
14577
      if fid == 1:
14578
        if ftype == TType.I64:
14579
          self.itemId = iprot.readI64();
14580
        else:
14581
          iprot.skip(ftype)
14582
      elif fid == 2:
14583
        if ftype == TType.DOUBLE:
14584
          self.price = iprot.readDouble();
14585
        else:
14586
          iprot.skip(ftype)
14587
      else:
14588
        iprot.skip(ftype)
14589
      iprot.readFieldEnd()
14590
    iprot.readStructEnd()
14591
 
14592
  def write(self, oprot):
14593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14595
      return
14596
    oprot.writeStructBegin('getVatAmountForItem_args')
14597
    if self.itemId is not None:
14598
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14599
      oprot.writeI64(self.itemId)
14600
      oprot.writeFieldEnd()
14601
    if self.price is not None:
14602
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14603
      oprot.writeDouble(self.price)
14604
      oprot.writeFieldEnd()
14605
    oprot.writeFieldStop()
14606
    oprot.writeStructEnd()
14607
 
14608
  def validate(self):
14609
    return
14610
 
14611
 
14612
  def __repr__(self):
14613
    L = ['%s=%r' % (key, value)
14614
      for key, value in self.__dict__.iteritems()]
14615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14616
 
14617
  def __eq__(self, other):
14618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14619
 
14620
  def __ne__(self, other):
14621
    return not (self == other)
14622
 
14623
class getVatAmountForItem_result:
14624
  """
14625
  Attributes:
14626
   - success
14627
  """
14628
 
14629
  thrift_spec = (
14630
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14631
  )
14632
 
14633
  def __init__(self, success=None,):
14634
    self.success = success
14635
 
14636
  def read(self, iprot):
14637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14639
      return
14640
    iprot.readStructBegin()
14641
    while True:
14642
      (fname, ftype, fid) = iprot.readFieldBegin()
14643
      if ftype == TType.STOP:
14644
        break
14645
      if fid == 0:
14646
        if ftype == TType.DOUBLE:
14647
          self.success = iprot.readDouble();
14648
        else:
14649
          iprot.skip(ftype)
14650
      else:
14651
        iprot.skip(ftype)
14652
      iprot.readFieldEnd()
14653
    iprot.readStructEnd()
14654
 
14655
  def write(self, oprot):
14656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14658
      return
14659
    oprot.writeStructBegin('getVatAmountForItem_result')
14660
    if self.success is not None:
14661
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14662
      oprot.writeDouble(self.success)
14663
      oprot.writeFieldEnd()
14664
    oprot.writeFieldStop()
14665
    oprot.writeStructEnd()
14666
 
14667
  def validate(self):
14668
    return
14669
 
14670
 
14671
  def __repr__(self):
14672
    L = ['%s=%r' % (key, value)
14673
      for key, value in self.__dict__.iteritems()]
14674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14675
 
14676
  def __eq__(self, other):
14677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14678
 
14679
  def __ne__(self, other):
14680
    return not (self == other)
6531 vikram.rag 14681
 
14682
class getAllIgnoredInventoryUpdateItemsList_args:
14683
  """
14684
  Attributes:
14685
   - offset
14686
   - limit
14687
  """
14688
 
14689
  thrift_spec = (
14690
    None, # 0
14691
    (1, TType.I32, 'offset', None, None, ), # 1
14692
    (2, TType.I32, 'limit', None, None, ), # 2
14693
  )
14694
 
14695
  def __init__(self, offset=None, limit=None,):
14696
    self.offset = offset
14697
    self.limit = limit
14698
 
14699
  def read(self, iprot):
14700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14702
      return
14703
    iprot.readStructBegin()
14704
    while True:
14705
      (fname, ftype, fid) = iprot.readFieldBegin()
14706
      if ftype == TType.STOP:
14707
        break
14708
      if fid == 1:
14709
        if ftype == TType.I32:
14710
          self.offset = iprot.readI32();
14711
        else:
14712
          iprot.skip(ftype)
14713
      elif fid == 2:
14714
        if ftype == TType.I32:
14715
          self.limit = iprot.readI32();
14716
        else:
14717
          iprot.skip(ftype)
14718
      else:
14719
        iprot.skip(ftype)
14720
      iprot.readFieldEnd()
14721
    iprot.readStructEnd()
14722
 
14723
  def write(self, oprot):
14724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14726
      return
14727
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14728
    if self.offset is not None:
14729
      oprot.writeFieldBegin('offset', TType.I32, 1)
14730
      oprot.writeI32(self.offset)
14731
      oprot.writeFieldEnd()
14732
    if self.limit is not None:
14733
      oprot.writeFieldBegin('limit', TType.I32, 2)
14734
      oprot.writeI32(self.limit)
14735
      oprot.writeFieldEnd()
14736
    oprot.writeFieldStop()
14737
    oprot.writeStructEnd()
14738
 
14739
  def validate(self):
14740
    return
14741
 
14742
 
14743
  def __repr__(self):
14744
    L = ['%s=%r' % (key, value)
14745
      for key, value in self.__dict__.iteritems()]
14746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14747
 
14748
  def __eq__(self, other):
14749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14750
 
14751
  def __ne__(self, other):
14752
    return not (self == other)
14753
 
14754
class getAllIgnoredInventoryUpdateItemsList_result:
14755
  """
14756
  Attributes:
14757
   - success
14758
  """
14759
 
14760
  thrift_spec = (
14761
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14762
  )
14763
 
14764
  def __init__(self, success=None,):
14765
    self.success = success
14766
 
14767
  def read(self, iprot):
14768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14770
      return
14771
    iprot.readStructBegin()
14772
    while True:
14773
      (fname, ftype, fid) = iprot.readFieldBegin()
14774
      if ftype == TType.STOP:
14775
        break
14776
      if fid == 0:
14777
        if ftype == TType.LIST:
14778
          self.success = []
7256 rajveer 14779
          (_etype280, _size277) = iprot.readListBegin()
14780
          for _i281 in xrange(_size277):
14781
            _elem282 = Item()
14782
            _elem282.read(iprot)
14783
            self.success.append(_elem282)
6531 vikram.rag 14784
          iprot.readListEnd()
14785
        else:
14786
          iprot.skip(ftype)
14787
      else:
14788
        iprot.skip(ftype)
14789
      iprot.readFieldEnd()
14790
    iprot.readStructEnd()
14791
 
14792
  def write(self, oprot):
14793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14795
      return
14796
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14797
    if self.success is not None:
14798
      oprot.writeFieldBegin('success', TType.LIST, 0)
14799
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14800
      for iter283 in self.success:
14801
        iter283.write(oprot)
6531 vikram.rag 14802
      oprot.writeListEnd()
14803
      oprot.writeFieldEnd()
14804
    oprot.writeFieldStop()
14805
    oprot.writeStructEnd()
14806
 
14807
  def validate(self):
14808
    return
14809
 
14810
 
14811
  def __repr__(self):
14812
    L = ['%s=%r' % (key, value)
14813
      for key, value in self.__dict__.iteritems()]
14814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14815
 
14816
  def __eq__(self, other):
14817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14818
 
14819
  def __ne__(self, other):
14820
    return not (self == other)
6805 anupam.sin 14821
 
6821 amar.kumar 14822
class getAllAliveItems_args:
14823
 
14824
  thrift_spec = (
14825
  )
14826
 
14827
  def read(self, iprot):
14828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14830
      return
14831
    iprot.readStructBegin()
14832
    while True:
14833
      (fname, ftype, fid) = iprot.readFieldBegin()
14834
      if ftype == TType.STOP:
14835
        break
14836
      else:
14837
        iprot.skip(ftype)
14838
      iprot.readFieldEnd()
14839
    iprot.readStructEnd()
14840
 
14841
  def write(self, oprot):
14842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14844
      return
14845
    oprot.writeStructBegin('getAllAliveItems_args')
14846
    oprot.writeFieldStop()
14847
    oprot.writeStructEnd()
14848
 
14849
  def validate(self):
14850
    return
14851
 
14852
 
14853
  def __repr__(self):
14854
    L = ['%s=%r' % (key, value)
14855
      for key, value in self.__dict__.iteritems()]
14856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14857
 
14858
  def __eq__(self, other):
14859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14860
 
14861
  def __ne__(self, other):
14862
    return not (self == other)
14863
 
14864
class getAllAliveItems_result:
14865
  """
14866
  Attributes:
14867
   - success
14868
  """
14869
 
14870
  thrift_spec = (
14871
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14872
  )
14873
 
14874
  def __init__(self, success=None,):
14875
    self.success = success
14876
 
14877
  def read(self, iprot):
14878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14880
      return
14881
    iprot.readStructBegin()
14882
    while True:
14883
      (fname, ftype, fid) = iprot.readFieldBegin()
14884
      if ftype == TType.STOP:
14885
        break
14886
      if fid == 0:
14887
        if ftype == TType.LIST:
14888
          self.success = []
7256 rajveer 14889
          (_etype287, _size284) = iprot.readListBegin()
14890
          for _i288 in xrange(_size284):
14891
            _elem289 = Item()
14892
            _elem289.read(iprot)
14893
            self.success.append(_elem289)
6821 amar.kumar 14894
          iprot.readListEnd()
14895
        else:
14896
          iprot.skip(ftype)
14897
      else:
14898
        iprot.skip(ftype)
14899
      iprot.readFieldEnd()
14900
    iprot.readStructEnd()
14901
 
14902
  def write(self, oprot):
14903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14905
      return
14906
    oprot.writeStructBegin('getAllAliveItems_result')
14907
    if self.success is not None:
14908
      oprot.writeFieldBegin('success', TType.LIST, 0)
14909
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 14910
      for iter290 in self.success:
14911
        iter290.write(oprot)
6821 amar.kumar 14912
      oprot.writeListEnd()
14913
      oprot.writeFieldEnd()
14914
    oprot.writeFieldStop()
14915
    oprot.writeStructEnd()
14916
 
14917
  def validate(self):
14918
    return
14919
 
14920
 
14921
  def __repr__(self):
14922
    L = ['%s=%r' % (key, value)
14923
      for key, value in self.__dict__.iteritems()]
14924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14925
 
14926
  def __eq__(self, other):
14927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14928
 
14929
  def __ne__(self, other):
14930
    return not (self == other)
14931
 
6805 anupam.sin 14932
class getInsuranceAmount_args:
14933
  """
14934
  Attributes:
14935
   - itemId
6921 anupam.sin 14936
   - price
6805 anupam.sin 14937
   - insurerId
14938
   - quantity
14939
  """
14940
 
14941
  thrift_spec = (
14942
    None, # 0
14943
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 14944
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14945
    (3, TType.I64, 'insurerId', None, None, ), # 3
14946
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 14947
  )
14948
 
6921 anupam.sin 14949
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 14950
    self.itemId = itemId
6921 anupam.sin 14951
    self.price = price
6805 anupam.sin 14952
    self.insurerId = insurerId
14953
    self.quantity = quantity
14954
 
14955
  def read(self, iprot):
14956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14958
      return
14959
    iprot.readStructBegin()
14960
    while True:
14961
      (fname, ftype, fid) = iprot.readFieldBegin()
14962
      if ftype == TType.STOP:
14963
        break
14964
      if fid == 1:
14965
        if ftype == TType.I64:
14966
          self.itemId = iprot.readI64();
14967
        else:
14968
          iprot.skip(ftype)
14969
      elif fid == 2:
6921 anupam.sin 14970
        if ftype == TType.DOUBLE:
14971
          self.price = iprot.readDouble();
14972
        else:
14973
          iprot.skip(ftype)
14974
      elif fid == 3:
6805 anupam.sin 14975
        if ftype == TType.I64:
14976
          self.insurerId = iprot.readI64();
14977
        else:
14978
          iprot.skip(ftype)
6921 anupam.sin 14979
      elif fid == 4:
6805 anupam.sin 14980
        if ftype == TType.I64:
14981
          self.quantity = iprot.readI64();
14982
        else:
14983
          iprot.skip(ftype)
14984
      else:
14985
        iprot.skip(ftype)
14986
      iprot.readFieldEnd()
14987
    iprot.readStructEnd()
14988
 
14989
  def write(self, oprot):
14990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14992
      return
14993
    oprot.writeStructBegin('getInsuranceAmount_args')
14994
    if self.itemId is not None:
14995
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14996
      oprot.writeI64(self.itemId)
14997
      oprot.writeFieldEnd()
6921 anupam.sin 14998
    if self.price is not None:
14999
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
15000
      oprot.writeDouble(self.price)
15001
      oprot.writeFieldEnd()
6805 anupam.sin 15002
    if self.insurerId is not None:
6921 anupam.sin 15003
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 15004
      oprot.writeI64(self.insurerId)
15005
      oprot.writeFieldEnd()
15006
    if self.quantity is not None:
6921 anupam.sin 15007
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 15008
      oprot.writeI64(self.quantity)
15009
      oprot.writeFieldEnd()
15010
    oprot.writeFieldStop()
15011
    oprot.writeStructEnd()
15012
 
15013
  def validate(self):
15014
    return
15015
 
15016
 
15017
  def __repr__(self):
15018
    L = ['%s=%r' % (key, value)
15019
      for key, value in self.__dict__.iteritems()]
15020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15021
 
15022
  def __eq__(self, other):
15023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15024
 
15025
  def __ne__(self, other):
15026
    return not (self == other)
15027
 
15028
class getInsuranceAmount_result:
15029
  """
15030
  Attributes:
15031
   - success
15032
  """
15033
 
15034
  thrift_spec = (
15035
    (0, TType.I64, 'success', None, None, ), # 0
15036
  )
15037
 
15038
  def __init__(self, success=None,):
15039
    self.success = success
15040
 
15041
  def read(self, iprot):
15042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15044
      return
15045
    iprot.readStructBegin()
15046
    while True:
15047
      (fname, ftype, fid) = iprot.readFieldBegin()
15048
      if ftype == TType.STOP:
15049
        break
15050
      if fid == 0:
15051
        if ftype == TType.I64:
15052
          self.success = iprot.readI64();
15053
        else:
15054
          iprot.skip(ftype)
15055
      else:
15056
        iprot.skip(ftype)
15057
      iprot.readFieldEnd()
15058
    iprot.readStructEnd()
15059
 
15060
  def write(self, oprot):
15061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15063
      return
15064
    oprot.writeStructBegin('getInsuranceAmount_result')
15065
    if self.success is not None:
15066
      oprot.writeFieldBegin('success', TType.I64, 0)
15067
      oprot.writeI64(self.success)
15068
      oprot.writeFieldEnd()
15069
    oprot.writeFieldStop()
15070
    oprot.writeStructEnd()
15071
 
15072
  def validate(self):
15073
    return
15074
 
15075
 
15076
  def __repr__(self):
15077
    L = ['%s=%r' % (key, value)
15078
      for key, value in self.__dict__.iteritems()]
15079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15080
 
15081
  def __eq__(self, other):
15082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15083
 
15084
  def __ne__(self, other):
15085
    return not (self == other)
15086
 
15087
class getInsurer_args:
15088
  """
15089
  Attributes:
15090
   - insurerId
15091
  """
15092
 
15093
  thrift_spec = (
15094
    None, # 0
15095
    (1, TType.I64, 'insurerId', None, None, ), # 1
15096
  )
15097
 
15098
  def __init__(self, insurerId=None,):
15099
    self.insurerId = insurerId
15100
 
15101
  def read(self, iprot):
15102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15104
      return
15105
    iprot.readStructBegin()
15106
    while True:
15107
      (fname, ftype, fid) = iprot.readFieldBegin()
15108
      if ftype == TType.STOP:
15109
        break
15110
      if fid == 1:
15111
        if ftype == TType.I64:
15112
          self.insurerId = iprot.readI64();
15113
        else:
15114
          iprot.skip(ftype)
15115
      else:
15116
        iprot.skip(ftype)
15117
      iprot.readFieldEnd()
15118
    iprot.readStructEnd()
15119
 
15120
  def write(self, oprot):
15121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15123
      return
15124
    oprot.writeStructBegin('getInsurer_args')
15125
    if self.insurerId is not None:
15126
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15127
      oprot.writeI64(self.insurerId)
15128
      oprot.writeFieldEnd()
15129
    oprot.writeFieldStop()
15130
    oprot.writeStructEnd()
15131
 
15132
  def validate(self):
15133
    return
15134
 
15135
 
15136
  def __repr__(self):
15137
    L = ['%s=%r' % (key, value)
15138
      for key, value in self.__dict__.iteritems()]
15139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15140
 
15141
  def __eq__(self, other):
15142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15143
 
15144
  def __ne__(self, other):
15145
    return not (self == other)
15146
 
15147
class getInsurer_result:
15148
  """
15149
  Attributes:
15150
   - success
15151
  """
15152
 
15153
  thrift_spec = (
15154
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15155
  )
15156
 
15157
  def __init__(self, success=None,):
15158
    self.success = success
15159
 
15160
  def read(self, iprot):
15161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15163
      return
15164
    iprot.readStructBegin()
15165
    while True:
15166
      (fname, ftype, fid) = iprot.readFieldBegin()
15167
      if ftype == TType.STOP:
15168
        break
15169
      if fid == 0:
15170
        if ftype == TType.STRUCT:
15171
          self.success = Insurer()
15172
          self.success.read(iprot)
15173
        else:
15174
          iprot.skip(ftype)
15175
      else:
15176
        iprot.skip(ftype)
15177
      iprot.readFieldEnd()
15178
    iprot.readStructEnd()
15179
 
15180
  def write(self, oprot):
15181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15183
      return
15184
    oprot.writeStructBegin('getInsurer_result')
15185
    if self.success is not None:
15186
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15187
      self.success.write(oprot)
15188
      oprot.writeFieldEnd()
15189
    oprot.writeFieldStop()
15190
    oprot.writeStructEnd()
15191
 
15192
  def validate(self):
15193
    return
15194
 
15195
 
15196
  def __repr__(self):
15197
    L = ['%s=%r' % (key, value)
15198
      for key, value in self.__dict__.iteritems()]
15199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15200
 
15201
  def __eq__(self, other):
15202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15203
 
15204
  def __ne__(self, other):
15205
    return not (self == other)
6838 vikram.rag 15206
 
15207
class getAllInsurers_args:
15208
 
15209
  thrift_spec = (
15210
  )
15211
 
15212
  def read(self, iprot):
15213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15215
      return
15216
    iprot.readStructBegin()
15217
    while True:
15218
      (fname, ftype, fid) = iprot.readFieldBegin()
15219
      if ftype == TType.STOP:
15220
        break
15221
      else:
15222
        iprot.skip(ftype)
15223
      iprot.readFieldEnd()
15224
    iprot.readStructEnd()
15225
 
15226
  def write(self, oprot):
15227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15229
      return
15230
    oprot.writeStructBegin('getAllInsurers_args')
15231
    oprot.writeFieldStop()
15232
    oprot.writeStructEnd()
15233
 
15234
  def validate(self):
15235
    return
15236
 
15237
 
15238
  def __repr__(self):
15239
    L = ['%s=%r' % (key, value)
15240
      for key, value in self.__dict__.iteritems()]
15241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15242
 
15243
  def __eq__(self, other):
15244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15245
 
15246
  def __ne__(self, other):
15247
    return not (self == other)
15248
 
15249
class getAllInsurers_result:
15250
  """
15251
  Attributes:
15252
   - success
15253
  """
15254
 
15255
  thrift_spec = (
15256
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15257
  )
15258
 
15259
  def __init__(self, success=None,):
15260
    self.success = success
15261
 
15262
  def read(self, iprot):
15263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15265
      return
15266
    iprot.readStructBegin()
15267
    while True:
15268
      (fname, ftype, fid) = iprot.readFieldBegin()
15269
      if ftype == TType.STOP:
15270
        break
15271
      if fid == 0:
15272
        if ftype == TType.LIST:
15273
          self.success = []
7256 rajveer 15274
          (_etype294, _size291) = iprot.readListBegin()
15275
          for _i295 in xrange(_size291):
15276
            _elem296 = Insurer()
15277
            _elem296.read(iprot)
15278
            self.success.append(_elem296)
6838 vikram.rag 15279
          iprot.readListEnd()
15280
        else:
15281
          iprot.skip(ftype)
15282
      else:
15283
        iprot.skip(ftype)
15284
      iprot.readFieldEnd()
15285
    iprot.readStructEnd()
15286
 
15287
  def write(self, oprot):
15288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15290
      return
15291
    oprot.writeStructBegin('getAllInsurers_result')
15292
    if self.success is not None:
15293
      oprot.writeFieldBegin('success', TType.LIST, 0)
15294
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7256 rajveer 15295
      for iter297 in self.success:
15296
        iter297.write(oprot)
6838 vikram.rag 15297
      oprot.writeListEnd()
15298
      oprot.writeFieldEnd()
15299
    oprot.writeFieldStop()
15300
    oprot.writeStructEnd()
15301
 
15302
  def validate(self):
15303
    return
15304
 
15305
 
15306
  def __repr__(self):
15307
    L = ['%s=%r' % (key, value)
15308
      for key, value in self.__dict__.iteritems()]
15309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15310
 
15311
  def __eq__(self, other):
15312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15313
 
15314
  def __ne__(self, other):
15315
    return not (self == other)
6962 rajveer 15316
 
15317
class updateInsuranceDeclaredAmount_args:
15318
  """
15319
  Attributes:
15320
   - insurerId
15321
   - amount
15322
  """
15323
 
15324
  thrift_spec = (
15325
    None, # 0
15326
    (1, TType.I64, 'insurerId', None, None, ), # 1
15327
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
15328
  )
15329
 
15330
  def __init__(self, insurerId=None, amount=None,):
15331
    self.insurerId = insurerId
15332
    self.amount = amount
15333
 
15334
  def read(self, iprot):
15335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15337
      return
15338
    iprot.readStructBegin()
15339
    while True:
15340
      (fname, ftype, fid) = iprot.readFieldBegin()
15341
      if ftype == TType.STOP:
15342
        break
15343
      if fid == 1:
15344
        if ftype == TType.I64:
15345
          self.insurerId = iprot.readI64();
15346
        else:
15347
          iprot.skip(ftype)
15348
      elif fid == 2:
15349
        if ftype == TType.DOUBLE:
15350
          self.amount = iprot.readDouble();
15351
        else:
15352
          iprot.skip(ftype)
15353
      else:
15354
        iprot.skip(ftype)
15355
      iprot.readFieldEnd()
15356
    iprot.readStructEnd()
15357
 
15358
  def write(self, oprot):
15359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15361
      return
15362
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
15363
    if self.insurerId is not None:
15364
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15365
      oprot.writeI64(self.insurerId)
15366
      oprot.writeFieldEnd()
15367
    if self.amount is not None:
15368
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
15369
      oprot.writeDouble(self.amount)
15370
      oprot.writeFieldEnd()
15371
    oprot.writeFieldStop()
15372
    oprot.writeStructEnd()
15373
 
15374
  def validate(self):
15375
    return
15376
 
15377
 
15378
  def __repr__(self):
15379
    L = ['%s=%r' % (key, value)
15380
      for key, value in self.__dict__.iteritems()]
15381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15382
 
15383
  def __eq__(self, other):
15384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15385
 
15386
  def __ne__(self, other):
15387
    return not (self == other)
15388
 
15389
class updateInsuranceDeclaredAmount_result:
15390
 
15391
  thrift_spec = (
15392
  )
15393
 
15394
  def read(self, iprot):
15395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15397
      return
15398
    iprot.readStructBegin()
15399
    while True:
15400
      (fname, ftype, fid) = iprot.readFieldBegin()
15401
      if ftype == TType.STOP:
15402
        break
15403
      else:
15404
        iprot.skip(ftype)
15405
      iprot.readFieldEnd()
15406
    iprot.readStructEnd()
15407
 
15408
  def write(self, oprot):
15409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15411
      return
15412
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
15413
    oprot.writeFieldStop()
15414
    oprot.writeStructEnd()
15415
 
15416
  def validate(self):
15417
    return
15418
 
15419
 
15420
  def __repr__(self):
15421
    L = ['%s=%r' % (key, value)
15422
      for key, value in self.__dict__.iteritems()]
15423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15424
 
15425
  def __eq__(self, other):
15426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15427
 
15428
  def __ne__(self, other):
15429
    return not (self == other)
7190 amar.kumar 15430
 
15431
class getFreebieForItem_args:
15432
  """
15433
  Attributes:
15434
   - itemId
15435
  """
15436
 
15437
  thrift_spec = (
15438
    None, # 0
15439
    (1, TType.I64, 'itemId', None, None, ), # 1
15440
  )
15441
 
15442
  def __init__(self, itemId=None,):
15443
    self.itemId = itemId
15444
 
15445
  def read(self, iprot):
15446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15448
      return
15449
    iprot.readStructBegin()
15450
    while True:
15451
      (fname, ftype, fid) = iprot.readFieldBegin()
15452
      if ftype == TType.STOP:
15453
        break
15454
      if fid == 1:
15455
        if ftype == TType.I64:
15456
          self.itemId = iprot.readI64();
15457
        else:
15458
          iprot.skip(ftype)
15459
      else:
15460
        iprot.skip(ftype)
15461
      iprot.readFieldEnd()
15462
    iprot.readStructEnd()
15463
 
15464
  def write(self, oprot):
15465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15467
      return
15468
    oprot.writeStructBegin('getFreebieForItem_args')
15469
    if self.itemId is not None:
15470
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15471
      oprot.writeI64(self.itemId)
15472
      oprot.writeFieldEnd()
15473
    oprot.writeFieldStop()
15474
    oprot.writeStructEnd()
15475
 
15476
  def validate(self):
15477
    return
15478
 
15479
 
15480
  def __repr__(self):
15481
    L = ['%s=%r' % (key, value)
15482
      for key, value in self.__dict__.iteritems()]
15483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15484
 
15485
  def __eq__(self, other):
15486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15487
 
15488
  def __ne__(self, other):
15489
    return not (self == other)
15490
 
15491
class getFreebieForItem_result:
15492
  """
15493
  Attributes:
15494
   - success
15495
  """
15496
 
15497
  thrift_spec = (
15498
    (0, TType.I64, 'success', None, None, ), # 0
15499
  )
15500
 
15501
  def __init__(self, success=None,):
15502
    self.success = success
15503
 
15504
  def read(self, iprot):
15505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15507
      return
15508
    iprot.readStructBegin()
15509
    while True:
15510
      (fname, ftype, fid) = iprot.readFieldBegin()
15511
      if ftype == TType.STOP:
15512
        break
15513
      if fid == 0:
15514
        if ftype == TType.I64:
15515
          self.success = iprot.readI64();
15516
        else:
15517
          iprot.skip(ftype)
15518
      else:
15519
        iprot.skip(ftype)
15520
      iprot.readFieldEnd()
15521
    iprot.readStructEnd()
15522
 
15523
  def write(self, oprot):
15524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15526
      return
15527
    oprot.writeStructBegin('getFreebieForItem_result')
15528
    if self.success is not None:
15529
      oprot.writeFieldBegin('success', TType.I64, 0)
15530
      oprot.writeI64(self.success)
15531
      oprot.writeFieldEnd()
15532
    oprot.writeFieldStop()
15533
    oprot.writeStructEnd()
15534
 
15535
  def validate(self):
15536
    return
15537
 
15538
 
15539
  def __repr__(self):
15540
    L = ['%s=%r' % (key, value)
15541
      for key, value in self.__dict__.iteritems()]
15542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15543
 
15544
  def __eq__(self, other):
15545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15546
 
15547
  def __ne__(self, other):
15548
    return not (self == other)
15549
 
15550
class addOrUpdateFreebieForItem_args:
15551
  """
15552
  Attributes:
15553
   - freebieItem
15554
  """
15555
 
15556
  thrift_spec = (
15557
    None, # 0
15558
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
15559
  )
15560
 
15561
  def __init__(self, freebieItem=None,):
15562
    self.freebieItem = freebieItem
15563
 
15564
  def read(self, iprot):
15565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15567
      return
15568
    iprot.readStructBegin()
15569
    while True:
15570
      (fname, ftype, fid) = iprot.readFieldBegin()
15571
      if ftype == TType.STOP:
15572
        break
15573
      if fid == 1:
15574
        if ftype == TType.STRUCT:
15575
          self.freebieItem = FreebieItem()
15576
          self.freebieItem.read(iprot)
15577
        else:
15578
          iprot.skip(ftype)
15579
      else:
15580
        iprot.skip(ftype)
15581
      iprot.readFieldEnd()
15582
    iprot.readStructEnd()
15583
 
15584
  def write(self, oprot):
15585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15587
      return
15588
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
15589
    if self.freebieItem is not None:
15590
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
15591
      self.freebieItem.write(oprot)
15592
      oprot.writeFieldEnd()
15593
    oprot.writeFieldStop()
15594
    oprot.writeStructEnd()
15595
 
15596
  def validate(self):
15597
    return
15598
 
15599
 
15600
  def __repr__(self):
15601
    L = ['%s=%r' % (key, value)
15602
      for key, value in self.__dict__.iteritems()]
15603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15604
 
15605
  def __eq__(self, other):
15606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15607
 
15608
  def __ne__(self, other):
15609
    return not (self == other)
15610
 
15611
class addOrUpdateFreebieForItem_result:
15612
 
15613
  thrift_spec = (
15614
  )
15615
 
15616
  def read(self, iprot):
15617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15619
      return
15620
    iprot.readStructBegin()
15621
    while True:
15622
      (fname, ftype, fid) = iprot.readFieldBegin()
15623
      if ftype == TType.STOP:
15624
        break
15625
      else:
15626
        iprot.skip(ftype)
15627
      iprot.readFieldEnd()
15628
    iprot.readStructEnd()
15629
 
15630
  def write(self, oprot):
15631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15633
      return
15634
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
15635
    oprot.writeFieldStop()
15636
    oprot.writeStructEnd()
15637
 
15638
  def validate(self):
15639
    return
15640
 
15641
 
15642
  def __repr__(self):
15643
    L = ['%s=%r' % (key, value)
15644
      for key, value in self.__dict__.iteritems()]
15645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15646
 
15647
  def __eq__(self, other):
15648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15649
 
15650
  def __ne__(self, other):
15651
    return not (self == other)
7256 rajveer 15652
 
15653
class getStorePricing_args:
15654
  """
15655
  Attributes:
15656
   - itemId
15657
  """
15658
 
15659
  thrift_spec = (
15660
    None, # 0
15661
    (1, TType.I64, 'itemId', None, None, ), # 1
15662
  )
15663
 
15664
  def __init__(self, itemId=None,):
15665
    self.itemId = itemId
15666
 
15667
  def read(self, iprot):
15668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15670
      return
15671
    iprot.readStructBegin()
15672
    while True:
15673
      (fname, ftype, fid) = iprot.readFieldBegin()
15674
      if ftype == TType.STOP:
15675
        break
15676
      if fid == 1:
15677
        if ftype == TType.I64:
15678
          self.itemId = iprot.readI64();
15679
        else:
15680
          iprot.skip(ftype)
15681
      else:
15682
        iprot.skip(ftype)
15683
      iprot.readFieldEnd()
15684
    iprot.readStructEnd()
15685
 
15686
  def write(self, oprot):
15687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15689
      return
15690
    oprot.writeStructBegin('getStorePricing_args')
15691
    if self.itemId is not None:
15692
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15693
      oprot.writeI64(self.itemId)
15694
      oprot.writeFieldEnd()
15695
    oprot.writeFieldStop()
15696
    oprot.writeStructEnd()
15697
 
15698
  def validate(self):
15699
    return
15700
 
15701
 
15702
  def __repr__(self):
15703
    L = ['%s=%r' % (key, value)
15704
      for key, value in self.__dict__.iteritems()]
15705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15706
 
15707
  def __eq__(self, other):
15708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15709
 
15710
  def __ne__(self, other):
15711
    return not (self == other)
15712
 
15713
class getStorePricing_result:
15714
  """
15715
  Attributes:
15716
   - success
15717
  """
15718
 
15719
  thrift_spec = (
15720
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
15721
  )
15722
 
15723
  def __init__(self, success=None,):
15724
    self.success = success
15725
 
15726
  def read(self, iprot):
15727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15729
      return
15730
    iprot.readStructBegin()
15731
    while True:
15732
      (fname, ftype, fid) = iprot.readFieldBegin()
15733
      if ftype == TType.STOP:
15734
        break
15735
      if fid == 0:
15736
        if ftype == TType.STRUCT:
15737
          self.success = StorePricing()
15738
          self.success.read(iprot)
15739
        else:
15740
          iprot.skip(ftype)
15741
      else:
15742
        iprot.skip(ftype)
15743
      iprot.readFieldEnd()
15744
    iprot.readStructEnd()
15745
 
15746
  def write(self, oprot):
15747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15749
      return
15750
    oprot.writeStructBegin('getStorePricing_result')
15751
    if self.success is not None:
15752
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15753
      self.success.write(oprot)
15754
      oprot.writeFieldEnd()
15755
    oprot.writeFieldStop()
15756
    oprot.writeStructEnd()
15757
 
15758
  def validate(self):
15759
    return
15760
 
15761
 
15762
  def __repr__(self):
15763
    L = ['%s=%r' % (key, value)
15764
      for key, value in self.__dict__.iteritems()]
15765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15766
 
15767
  def __eq__(self, other):
15768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15769
 
15770
  def __ne__(self, other):
15771
    return not (self == other)
7265 rajveer 15772
 
15773
class updateStorePricing_args:
15774
  """
15775
  Attributes:
15776
   - sp
15777
  """
15778
 
15779
  thrift_spec = (
15780
    None, # 0
15781
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
15782
  )
15783
 
15784
  def __init__(self, sp=None,):
15785
    self.sp = sp
15786
 
15787
  def read(self, iprot):
15788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15790
      return
15791
    iprot.readStructBegin()
15792
    while True:
15793
      (fname, ftype, fid) = iprot.readFieldBegin()
15794
      if ftype == TType.STOP:
15795
        break
15796
      if fid == 1:
15797
        if ftype == TType.STRUCT:
15798
          self.sp = StorePricing()
15799
          self.sp.read(iprot)
15800
        else:
15801
          iprot.skip(ftype)
15802
      else:
15803
        iprot.skip(ftype)
15804
      iprot.readFieldEnd()
15805
    iprot.readStructEnd()
15806
 
15807
  def write(self, oprot):
15808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15810
      return
15811
    oprot.writeStructBegin('updateStorePricing_args')
15812
    if self.sp is not None:
15813
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
15814
      self.sp.write(oprot)
15815
      oprot.writeFieldEnd()
15816
    oprot.writeFieldStop()
15817
    oprot.writeStructEnd()
15818
 
15819
  def validate(self):
15820
    return
15821
 
15822
 
15823
  def __repr__(self):
15824
    L = ['%s=%r' % (key, value)
15825
      for key, value in self.__dict__.iteritems()]
15826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15827
 
15828
  def __eq__(self, other):
15829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15830
 
15831
  def __ne__(self, other):
15832
    return not (self == other)
15833
 
15834
class updateStorePricing_result:
15835
 
15836
  thrift_spec = (
15837
  )
15838
 
15839
  def read(self, iprot):
15840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15842
      return
15843
    iprot.readStructBegin()
15844
    while True:
15845
      (fname, ftype, fid) = iprot.readFieldBegin()
15846
      if ftype == TType.STOP:
15847
        break
15848
      else:
15849
        iprot.skip(ftype)
15850
      iprot.readFieldEnd()
15851
    iprot.readStructEnd()
15852
 
15853
  def write(self, oprot):
15854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15856
      return
15857
    oprot.writeStructBegin('updateStorePricing_result')
15858
    oprot.writeFieldStop()
15859
    oprot.writeStructEnd()
15860
 
15861
  def validate(self):
15862
    return
15863
 
15864
 
15865
  def __repr__(self):
15866
    L = ['%s=%r' % (key, value)
15867
      for key, value in self.__dict__.iteritems()]
15868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15869
 
15870
  def __eq__(self, other):
15871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15872
 
15873
  def __ne__(self, other):
15874
    return not (self == other)