Subversion Repositories SmartDukaan

Rev

Rev 6849 | Rev 6921 | 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 getClearanceSaleCatalogIds(self, ):
560
    pass
561
 
562
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
563
    """
564
    Parameters:
565
     - catalog_item_id
566
     - voucherType
567
     - voucherAmount
568
    """
569
    pass
570
 
571
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
572
    """
573
    Parameters:
574
     - catalog_item_id
575
     - voucherType
576
    """
577
    pass
578
 
579
  def getVoucherAmount(self, itemId, voucherType):
580
    """
581
    Parameters:
582
     - itemId
583
     - voucherType
584
    """
585
    pass
586
 
587
  def getAllItemVouchers(self, itemId):
588
    """
589
    Parameters:
590
     - itemId
591
    """
592
    pass
593
 
594
  def isValidCatalogItemId(self, catalog_item_id):
595
    """
596
    Parameters:
597
     - catalog_item_id
598
    """
599
    pass
600
 
6039 amit.gupta 601
  def getVatPercentageForItem(self, itemId, price):
602
    """
603
    Parameters:
604
     - itemId
605
     - price
606
    """
607
    pass
5944 mandeep.dh 608
 
6039 amit.gupta 609
  def getVatAmountForItem(self, itemId, price):
610
    """
611
    Parameters:
612
     - itemId
613
     - price
614
    """
615
    pass
616
 
6531 vikram.rag 617
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
618
    """
619
    Parameters:
620
     - offset
621
     - limit
622
    """
623
    pass
6039 amit.gupta 624
 
6821 amar.kumar 625
  def getAllAliveItems(self, ):
626
    pass
627
 
6805 anupam.sin 628
  def getInsuranceAmount(self, itemId, insurerId, quantity):
629
    """
630
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 631
 
6805 anupam.sin 632
    Parameters:
633
     - itemId
634
     - insurerId
635
     - quantity
636
    """
637
    pass
638
 
639
  def getInsurer(self, insurerId):
640
    """
641
    Parameters:
642
     - insurerId
643
    """
644
    pass
645
 
6838 vikram.rag 646
  def getAllInsurers(self, ):
647
    pass
6805 anupam.sin 648
 
6838 vikram.rag 649
 
5944 mandeep.dh 650
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
651
  def __init__(self, iprot, oprot=None):
652
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
653
 
654
  def addItem(self, item):
655
    """
656
    Availability and inventory attributes
657
 
658
    Parameters:
659
     - item
660
    """
661
    self.send_addItem(item)
662
    return self.recv_addItem()
663
 
664
  def send_addItem(self, item):
665
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
666
    args = addItem_args()
667
    args.item = item
668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
672
  def recv_addItem(self, ):
673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
679
    result = addItem_result()
680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
682
    if result.success is not None:
683
      return result.success
684
    if result.cex is not None:
685
      raise result.cex
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
687
 
688
  def updateItem(self, item):
689
    """
690
    Parameters:
691
     - item
692
    """
693
    self.send_updateItem(item)
694
    return self.recv_updateItem()
695
 
696
  def send_updateItem(self, item):
697
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
698
    args = updateItem_args()
699
    args.item = item
700
    args.write(self._oprot)
701
    self._oprot.writeMessageEnd()
702
    self._oprot.trans.flush()
703
 
704
  def recv_updateItem(self, ):
705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
706
    if mtype == TMessageType.EXCEPTION:
707
      x = TApplicationException()
708
      x.read(self._iprot)
709
      self._iprot.readMessageEnd()
710
      raise x
711
    result = updateItem_result()
712
    result.read(self._iprot)
713
    self._iprot.readMessageEnd()
714
    if result.success is not None:
715
      return result.success
716
    if result.cex is not None:
717
      raise result.cex
718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
719
 
720
  def isActive(self, itemId):
721
    """
722
    Checks if the item given to the corresponding itemId is active. If it's active,
723
    whether it's risky and if it's risky, its inventory position.
724
 
725
    Parameters:
726
     - itemId
727
    """
728
    self.send_isActive(itemId)
729
    return self.recv_isActive()
730
 
731
  def send_isActive(self, itemId):
732
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
733
    args = isActive_args()
734
    args.itemId = itemId
735
    args.write(self._oprot)
736
    self._oprot.writeMessageEnd()
737
    self._oprot.trans.flush()
738
 
739
  def recv_isActive(self, ):
740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
741
    if mtype == TMessageType.EXCEPTION:
742
      x = TApplicationException()
743
      x.read(self._iprot)
744
      self._iprot.readMessageEnd()
745
      raise x
746
    result = isActive_result()
747
    result.read(self._iprot)
748
    self._iprot.readMessageEnd()
749
    if result.success is not None:
750
      return result.success
751
    if result.isex is not None:
752
      raise result.isex
753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
754
 
755
  def getItemStatusDescription(self, itemId):
756
    """
757
    Parameters:
758
     - itemId
759
    """
760
    self.send_getItemStatusDescription(itemId)
761
    return self.recv_getItemStatusDescription()
762
 
763
  def send_getItemStatusDescription(self, itemId):
764
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
765
    args = getItemStatusDescription_args()
766
    args.itemId = itemId
767
    args.write(self._oprot)
768
    self._oprot.writeMessageEnd()
769
    self._oprot.trans.flush()
770
 
771
  def recv_getItemStatusDescription(self, ):
772
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
773
    if mtype == TMessageType.EXCEPTION:
774
      x = TApplicationException()
775
      x.read(self._iprot)
776
      self._iprot.readMessageEnd()
777
      raise x
778
    result = getItemStatusDescription_result()
779
    result.read(self._iprot)
780
    self._iprot.readMessageEnd()
781
    if result.success is not None:
782
      return result.success
783
    if result.isex is not None:
784
      raise result.isex
785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
786
 
787
  def startItemOn(self, item_id, timestamp):
788
    """
789
    Parameters:
790
     - item_id
791
     - timestamp
792
    """
793
    self.send_startItemOn(item_id, timestamp)
794
    self.recv_startItemOn()
795
 
796
  def send_startItemOn(self, item_id, timestamp):
797
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
798
    args = startItemOn_args()
799
    args.item_id = item_id
800
    args.timestamp = timestamp
801
    args.write(self._oprot)
802
    self._oprot.writeMessageEnd()
803
    self._oprot.trans.flush()
804
 
805
  def recv_startItemOn(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 = startItemOn_result()
813
    result.read(self._iprot)
814
    self._iprot.readMessageEnd()
815
    if result.cex is not None:
816
      raise result.cex
817
    return
818
 
819
  def retireItemOn(self, item_id, timestamp):
820
    """
821
    Parameters:
822
     - item_id
823
     - timestamp
824
    """
825
    self.send_retireItemOn(item_id, timestamp)
826
    self.recv_retireItemOn()
827
 
828
  def send_retireItemOn(self, item_id, timestamp):
829
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
830
    args = retireItemOn_args()
831
    args.item_id = item_id
832
    args.timestamp = timestamp
833
    args.write(self._oprot)
834
    self._oprot.writeMessageEnd()
835
    self._oprot.trans.flush()
836
 
837
  def recv_retireItemOn(self, ):
838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
839
    if mtype == TMessageType.EXCEPTION:
840
      x = TApplicationException()
841
      x.read(self._iprot)
842
      self._iprot.readMessageEnd()
843
      raise x
844
    result = retireItemOn_result()
845
    result.read(self._iprot)
846
    self._iprot.readMessageEnd()
847
    if result.cex is not None:
848
      raise result.cex
849
    return
850
 
851
  def changeItemStatus(self, item_id, timestamp, newstatus):
852
    """
853
    Parameters:
854
     - item_id
855
     - timestamp
856
     - newstatus
857
    """
858
    self.send_changeItemStatus(item_id, timestamp, newstatus)
859
    self.recv_changeItemStatus()
860
 
861
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
862
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
863
    args = changeItemStatus_args()
864
    args.item_id = item_id
865
    args.timestamp = timestamp
866
    args.newstatus = newstatus
867
    args.write(self._oprot)
868
    self._oprot.writeMessageEnd()
869
    self._oprot.trans.flush()
870
 
871
  def recv_changeItemStatus(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 = changeItemStatus_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 getItem(self, item_id):
886
    """
887
    Parameters:
888
     - item_id
889
    """
890
    self.send_getItem(item_id)
891
    return self.recv_getItem()
892
 
893
  def send_getItem(self, item_id):
894
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
895
    args = getItem_args()
896
    args.item_id = item_id
897
    args.write(self._oprot)
898
    self._oprot.writeMessageEnd()
899
    self._oprot.trans.flush()
900
 
901
  def recv_getItem(self, ):
902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
903
    if mtype == TMessageType.EXCEPTION:
904
      x = TApplicationException()
905
      x.read(self._iprot)
906
      self._iprot.readMessageEnd()
907
      raise x
908
    result = getItem_result()
909
    result.read(self._iprot)
910
    self._iprot.readMessageEnd()
911
    if result.success is not None:
912
      return result.success
913
    if result.cex is not None:
914
      raise result.cex
915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
916
 
917
  def getItemsByCatalogId(self, catalog_item_id):
918
    """
919
    Parameters:
920
     - catalog_item_id
921
    """
922
    self.send_getItemsByCatalogId(catalog_item_id)
923
    return self.recv_getItemsByCatalogId()
924
 
925
  def send_getItemsByCatalogId(self, catalog_item_id):
926
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
927
    args = getItemsByCatalogId_args()
928
    args.catalog_item_id = catalog_item_id
929
    args.write(self._oprot)
930
    self._oprot.writeMessageEnd()
931
    self._oprot.trans.flush()
932
 
933
  def recv_getItemsByCatalogId(self, ):
934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
935
    if mtype == TMessageType.EXCEPTION:
936
      x = TApplicationException()
937
      x.read(self._iprot)
938
      self._iprot.readMessageEnd()
939
      raise x
940
    result = getItemsByCatalogId_result()
941
    result.read(self._iprot)
942
    self._iprot.readMessageEnd()
943
    if result.success is not None:
944
      return result.success
945
    if result.cex is not None:
946
      raise result.cex
947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
948
 
949
  def getValidItemsByCatalogId(self, catalog_item_id):
950
    """
951
    Parameters:
952
     - catalog_item_id
953
    """
954
    self.send_getValidItemsByCatalogId(catalog_item_id)
955
    return self.recv_getValidItemsByCatalogId()
956
 
957
  def send_getValidItemsByCatalogId(self, catalog_item_id):
958
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
959
    args = getValidItemsByCatalogId_args()
960
    args.catalog_item_id = catalog_item_id
961
    args.write(self._oprot)
962
    self._oprot.writeMessageEnd()
963
    self._oprot.trans.flush()
964
 
965
  def recv_getValidItemsByCatalogId(self, ):
966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
967
    if mtype == TMessageType.EXCEPTION:
968
      x = TApplicationException()
969
      x.read(self._iprot)
970
      self._iprot.readMessageEnd()
971
      raise x
972
    result = getValidItemsByCatalogId_result()
973
    result.read(self._iprot)
974
    self._iprot.readMessageEnd()
975
    if result.success is not None:
976
      return result.success
977
    if result.cex is not None:
978
      raise result.cex
979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
980
 
981
  def getAllItems(self, isActive):
982
    """
983
    Parameters:
984
     - isActive
985
    """
986
    self.send_getAllItems(isActive)
987
    return self.recv_getAllItems()
988
 
989
  def send_getAllItems(self, isActive):
990
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
991
    args = getAllItems_args()
992
    args.isActive = isActive
993
    args.write(self._oprot)
994
    self._oprot.writeMessageEnd()
995
    self._oprot.trans.flush()
996
 
997
  def recv_getAllItems(self, ):
998
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
999
    if mtype == TMessageType.EXCEPTION:
1000
      x = TApplicationException()
1001
      x.read(self._iprot)
1002
      self._iprot.readMessageEnd()
1003
      raise x
1004
    result = getAllItems_result()
1005
    result.read(self._iprot)
1006
    self._iprot.readMessageEnd()
1007
    if result.success is not None:
1008
      return result.success
1009
    if result.cex is not None:
1010
      raise result.cex
1011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1012
 
1013
  def getAllItemsByStatus(self, itemStatus):
1014
    """
1015
    Parameters:
1016
     - itemStatus
1017
    """
1018
    self.send_getAllItemsByStatus(itemStatus)
1019
    return self.recv_getAllItemsByStatus()
1020
 
1021
  def send_getAllItemsByStatus(self, itemStatus):
1022
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1023
    args = getAllItemsByStatus_args()
1024
    args.itemStatus = itemStatus
1025
    args.write(self._oprot)
1026
    self._oprot.writeMessageEnd()
1027
    self._oprot.trans.flush()
1028
 
1029
  def recv_getAllItemsByStatus(self, ):
1030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1031
    if mtype == TMessageType.EXCEPTION:
1032
      x = TApplicationException()
1033
      x.read(self._iprot)
1034
      self._iprot.readMessageEnd()
1035
      raise x
1036
    result = getAllItemsByStatus_result()
1037
    result.read(self._iprot)
1038
    self._iprot.readMessageEnd()
1039
    if result.success is not None:
1040
      return result.success
1041
    if result.cex is not None:
1042
      raise result.cex
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1044
 
1045
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1046
    """
1047
    Parameters:
1048
     - entityId
1049
     - category
1050
     - brand
1051
     - modelName
1052
     - modelNumber
1053
    """
1054
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1055
    return self.recv_markItemAsContentComplete()
1056
 
1057
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1058
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1059
    args = markItemAsContentComplete_args()
1060
    args.entityId = entityId
1061
    args.category = category
1062
    args.brand = brand
1063
    args.modelName = modelName
1064
    args.modelNumber = modelNumber
1065
    args.write(self._oprot)
1066
    self._oprot.writeMessageEnd()
1067
    self._oprot.trans.flush()
1068
 
1069
  def recv_markItemAsContentComplete(self, ):
1070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1071
    if mtype == TMessageType.EXCEPTION:
1072
      x = TApplicationException()
1073
      x.read(self._iprot)
1074
      self._iprot.readMessageEnd()
1075
      raise x
1076
    result = markItemAsContentComplete_result()
1077
    result.read(self._iprot)
1078
    self._iprot.readMessageEnd()
1079
    if result.success is not None:
1080
      return result.success
1081
    if result.cex is not None:
1082
      raise result.cex
1083
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1084
 
1085
  def getAllItemsInRange(self, offset, limit):
1086
    """
1087
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1088
 
1089
    Parameters:
1090
     - offset
1091
     - limit
1092
    """
1093
    self.send_getAllItemsInRange(offset, limit)
1094
    return self.recv_getAllItemsInRange()
1095
 
1096
  def send_getAllItemsInRange(self, offset, limit):
1097
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1098
    args = getAllItemsInRange_args()
1099
    args.offset = offset
1100
    args.limit = limit
1101
    args.write(self._oprot)
1102
    self._oprot.writeMessageEnd()
1103
    self._oprot.trans.flush()
1104
 
1105
  def recv_getAllItemsInRange(self, ):
1106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1107
    if mtype == TMessageType.EXCEPTION:
1108
      x = TApplicationException()
1109
      x.read(self._iprot)
1110
      self._iprot.readMessageEnd()
1111
      raise x
1112
    result = getAllItemsInRange_result()
1113
    result.read(self._iprot)
1114
    self._iprot.readMessageEnd()
1115
    if result.success is not None:
1116
      return result.success
1117
    if result.cex is not None:
1118
      raise result.cex
1119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1120
 
1121
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1122
    """
1123
    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.
1124
 
1125
    Parameters:
1126
     - itemStatus
1127
     - offset
1128
     - limit
1129
    """
1130
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1131
    return self.recv_getAllItemsByStatusInRange()
1132
 
1133
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1134
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1135
    args = getAllItemsByStatusInRange_args()
1136
    args.itemStatus = itemStatus
1137
    args.offset = offset
1138
    args.limit = limit
1139
    args.write(self._oprot)
1140
    self._oprot.writeMessageEnd()
1141
    self._oprot.trans.flush()
1142
 
1143
  def recv_getAllItemsByStatusInRange(self, ):
1144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1145
    if mtype == TMessageType.EXCEPTION:
1146
      x = TApplicationException()
1147
      x.read(self._iprot)
1148
      self._iprot.readMessageEnd()
1149
      raise x
1150
    result = getAllItemsByStatusInRange_result()
1151
    result.read(self._iprot)
1152
    self._iprot.readMessageEnd()
1153
    if result.success is not None:
1154
      return result.success
1155
    if result.cex is not None:
1156
      raise result.cex
1157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1158
 
1159
  def getItemCountByStatus(self, useStatus, itemStatus):
1160
    """
1161
    Gets a count of all items by status
1162
 
1163
    Parameters:
1164
     - useStatus
1165
     - itemStatus
1166
    """
1167
    self.send_getItemCountByStatus(useStatus, itemStatus)
1168
    return self.recv_getItemCountByStatus()
1169
 
1170
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1171
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1172
    args = getItemCountByStatus_args()
1173
    args.useStatus = useStatus
1174
    args.itemStatus = itemStatus
1175
    args.write(self._oprot)
1176
    self._oprot.writeMessageEnd()
1177
    self._oprot.trans.flush()
1178
 
1179
  def recv_getItemCountByStatus(self, ):
1180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1181
    if mtype == TMessageType.EXCEPTION:
1182
      x = TApplicationException()
1183
      x.read(self._iprot)
1184
      self._iprot.readMessageEnd()
1185
      raise x
1186
    result = getItemCountByStatus_result()
1187
    result.read(self._iprot)
1188
    self._iprot.readMessageEnd()
1189
    if result.success is not None:
1190
      return result.success
1191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1192
 
1193
  def getBestSellers(self, ):
1194
    self.send_getBestSellers()
1195
    return self.recv_getBestSellers()
1196
 
1197
  def send_getBestSellers(self, ):
1198
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1199
    args = getBestSellers_args()
1200
    args.write(self._oprot)
1201
    self._oprot.writeMessageEnd()
1202
    self._oprot.trans.flush()
1203
 
1204
  def recv_getBestSellers(self, ):
1205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1206
    if mtype == TMessageType.EXCEPTION:
1207
      x = TApplicationException()
1208
      x.read(self._iprot)
1209
      self._iprot.readMessageEnd()
1210
      raise x
1211
    result = getBestSellers_result()
1212
    result.read(self._iprot)
1213
    self._iprot.readMessageEnd()
1214
    if result.success is not None:
1215
      return result.success
1216
    if result.isex is not None:
1217
      raise result.isex
1218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1219
 
1220
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1221
    """
1222
    Parameters:
1223
     - beginIndex
1224
     - totalItems
1225
     - brand
1226
     - category
1227
    """
1228
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1229
    return self.recv_getBestSellersCatalogIds()
1230
 
1231
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1232
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1233
    args = getBestSellersCatalogIds_args()
1234
    args.beginIndex = beginIndex
1235
    args.totalItems = totalItems
1236
    args.brand = brand
1237
    args.category = category
1238
    args.write(self._oprot)
1239
    self._oprot.writeMessageEnd()
1240
    self._oprot.trans.flush()
1241
 
1242
  def recv_getBestSellersCatalogIds(self, ):
1243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1244
    if mtype == TMessageType.EXCEPTION:
1245
      x = TApplicationException()
1246
      x.read(self._iprot)
1247
      self._iprot.readMessageEnd()
1248
      raise x
1249
    result = getBestSellersCatalogIds_result()
1250
    result.read(self._iprot)
1251
    self._iprot.readMessageEnd()
1252
    if result.success is not None:
1253
      return result.success
1254
    if result.cex is not None:
1255
      raise result.cex
1256
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1257
 
1258
  def getBestSellersCount(self, ):
1259
    self.send_getBestSellersCount()
1260
    return self.recv_getBestSellersCount()
1261
 
1262
  def send_getBestSellersCount(self, ):
1263
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1264
    args = getBestSellersCount_args()
1265
    args.write(self._oprot)
1266
    self._oprot.writeMessageEnd()
1267
    self._oprot.trans.flush()
1268
 
1269
  def recv_getBestSellersCount(self, ):
1270
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1271
    if mtype == TMessageType.EXCEPTION:
1272
      x = TApplicationException()
1273
      x.read(self._iprot)
1274
      self._iprot.readMessageEnd()
1275
      raise x
1276
    result = getBestSellersCount_result()
1277
    result.read(self._iprot)
1278
    self._iprot.readMessageEnd()
1279
    if result.success is not None:
1280
      return result.success
1281
    if result.cex is not None:
1282
      raise result.cex
1283
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1284
 
1285
  def getBestDeals(self, ):
1286
    self.send_getBestDeals()
1287
    return self.recv_getBestDeals()
1288
 
1289
  def send_getBestDeals(self, ):
1290
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1291
    args = getBestDeals_args()
1292
    args.write(self._oprot)
1293
    self._oprot.writeMessageEnd()
1294
    self._oprot.trans.flush()
1295
 
1296
  def recv_getBestDeals(self, ):
1297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1298
    if mtype == TMessageType.EXCEPTION:
1299
      x = TApplicationException()
1300
      x.read(self._iprot)
1301
      self._iprot.readMessageEnd()
1302
      raise x
1303
    result = getBestDeals_result()
1304
    result.read(self._iprot)
1305
    self._iprot.readMessageEnd()
1306
    if result.success is not None:
1307
      return result.success
1308
    if result.isex is not None:
1309
      raise result.isex
1310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1311
 
1312
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1313
    """
1314
    Parameters:
1315
     - beginIndex
1316
     - totalItems
1317
     - brand
1318
     - category
1319
    """
1320
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1321
    return self.recv_getBestDealsCatalogIds()
1322
 
1323
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1324
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1325
    args = getBestDealsCatalogIds_args()
1326
    args.beginIndex = beginIndex
1327
    args.totalItems = totalItems
1328
    args.brand = brand
1329
    args.category = category
1330
    args.write(self._oprot)
1331
    self._oprot.writeMessageEnd()
1332
    self._oprot.trans.flush()
1333
 
1334
  def recv_getBestDealsCatalogIds(self, ):
1335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1336
    if mtype == TMessageType.EXCEPTION:
1337
      x = TApplicationException()
1338
      x.read(self._iprot)
1339
      self._iprot.readMessageEnd()
1340
      raise x
1341
    result = getBestDealsCatalogIds_result()
1342
    result.read(self._iprot)
1343
    self._iprot.readMessageEnd()
1344
    if result.success is not None:
1345
      return result.success
1346
    if result.cex is not None:
1347
      raise result.cex
1348
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1349
 
1350
  def getBestDealsCount(self, ):
1351
    self.send_getBestDealsCount()
1352
    return self.recv_getBestDealsCount()
1353
 
1354
  def send_getBestDealsCount(self, ):
1355
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1356
    args = getBestDealsCount_args()
1357
    args.write(self._oprot)
1358
    self._oprot.writeMessageEnd()
1359
    self._oprot.trans.flush()
1360
 
1361
  def recv_getBestDealsCount(self, ):
1362
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1363
    if mtype == TMessageType.EXCEPTION:
1364
      x = TApplicationException()
1365
      x.read(self._iprot)
1366
      self._iprot.readMessageEnd()
1367
      raise x
1368
    result = getBestDealsCount_result()
1369
    result.read(self._iprot)
1370
    self._iprot.readMessageEnd()
1371
    if result.success is not None:
1372
      return result.success
1373
    if result.cex is not None:
1374
      raise result.cex
1375
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1376
 
1377
  def getComingSoon(self, ):
1378
    self.send_getComingSoon()
1379
    return self.recv_getComingSoon()
1380
 
1381
  def send_getComingSoon(self, ):
1382
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1383
    args = getComingSoon_args()
1384
    args.write(self._oprot)
1385
    self._oprot.writeMessageEnd()
1386
    self._oprot.trans.flush()
1387
 
1388
  def recv_getComingSoon(self, ):
1389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1390
    if mtype == TMessageType.EXCEPTION:
1391
      x = TApplicationException()
1392
      x.read(self._iprot)
1393
      self._iprot.readMessageEnd()
1394
      raise x
1395
    result = getComingSoon_result()
1396
    result.read(self._iprot)
1397
    self._iprot.readMessageEnd()
1398
    if result.success is not None:
1399
      return result.success
1400
    if result.isex is not None:
1401
      raise result.isex
1402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1403
 
1404
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1405
    """
1406
    Parameters:
1407
     - beginIndex
1408
     - totalItems
1409
     - brand
1410
     - category
1411
    """
1412
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1413
    return self.recv_getComingSoonCatalogIds()
1414
 
1415
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1416
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1417
    args = getComingSoonCatalogIds_args()
1418
    args.beginIndex = beginIndex
1419
    args.totalItems = totalItems
1420
    args.brand = brand
1421
    args.category = category
1422
    args.write(self._oprot)
1423
    self._oprot.writeMessageEnd()
1424
    self._oprot.trans.flush()
1425
 
1426
  def recv_getComingSoonCatalogIds(self, ):
1427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1428
    if mtype == TMessageType.EXCEPTION:
1429
      x = TApplicationException()
1430
      x.read(self._iprot)
1431
      self._iprot.readMessageEnd()
1432
      raise x
1433
    result = getComingSoonCatalogIds_result()
1434
    result.read(self._iprot)
1435
    self._iprot.readMessageEnd()
1436
    if result.success is not None:
1437
      return result.success
1438
    if result.cex is not None:
1439
      raise result.cex
1440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1441
 
1442
  def getComingSoonCount(self, ):
1443
    self.send_getComingSoonCount()
1444
    return self.recv_getComingSoonCount()
1445
 
1446
  def send_getComingSoonCount(self, ):
1447
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1448
    args = getComingSoonCount_args()
1449
    args.write(self._oprot)
1450
    self._oprot.writeMessageEnd()
1451
    self._oprot.trans.flush()
1452
 
1453
  def recv_getComingSoonCount(self, ):
1454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1455
    if mtype == TMessageType.EXCEPTION:
1456
      x = TApplicationException()
1457
      x.read(self._iprot)
1458
      self._iprot.readMessageEnd()
1459
      raise x
1460
    result = getComingSoonCount_result()
1461
    result.read(self._iprot)
1462
    self._iprot.readMessageEnd()
1463
    if result.success is not None:
1464
      return result.success
1465
    if result.cex is not None:
1466
      raise result.cex
1467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1468
 
1469
  def getLatestArrivals(self, ):
1470
    """
1471
    Returns a list of items sorted in the descending order by start date.
1472
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1473
    """
1474
    self.send_getLatestArrivals()
1475
    return self.recv_getLatestArrivals()
1476
 
1477
  def send_getLatestArrivals(self, ):
1478
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1479
    args = getLatestArrivals_args()
1480
    args.write(self._oprot)
1481
    self._oprot.writeMessageEnd()
1482
    self._oprot.trans.flush()
1483
 
1484
  def recv_getLatestArrivals(self, ):
1485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1486
    if mtype == TMessageType.EXCEPTION:
1487
      x = TApplicationException()
1488
      x.read(self._iprot)
1489
      self._iprot.readMessageEnd()
1490
      raise x
1491
    result = getLatestArrivals_result()
1492
    result.read(self._iprot)
1493
    self._iprot.readMessageEnd()
1494
    if result.success is not None:
1495
      return result.success
1496
    if result.isex is not None:
1497
      raise result.isex
1498
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1499
 
1500
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1501
    """
1502
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1503
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1504
 
1505
    Parameters:
1506
     - beginIndex
1507
     - totalItems
1508
     - brand
1509
     - categories
1510
    """
1511
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1512
    return self.recv_getLatestArrivalsCatalogIds()
1513
 
1514
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1515
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1516
    args = getLatestArrivalsCatalogIds_args()
1517
    args.beginIndex = beginIndex
1518
    args.totalItems = totalItems
1519
    args.brand = brand
1520
    args.categories = categories
1521
    args.write(self._oprot)
1522
    self._oprot.writeMessageEnd()
1523
    self._oprot.trans.flush()
1524
 
1525
  def recv_getLatestArrivalsCatalogIds(self, ):
1526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1527
    if mtype == TMessageType.EXCEPTION:
1528
      x = TApplicationException()
1529
      x.read(self._iprot)
1530
      self._iprot.readMessageEnd()
1531
      raise x
1532
    result = getLatestArrivalsCatalogIds_result()
1533
    result.read(self._iprot)
1534
    self._iprot.readMessageEnd()
1535
    if result.success is not None:
1536
      return result.success
1537
    if result.cex is not None:
1538
      raise result.cex
1539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1540
 
1541
  def getLatestArrivalsCount(self, ):
1542
    """
1543
    Get the total number of latest arrivals we are willing to show.
1544
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1545
    """
1546
    self.send_getLatestArrivalsCount()
1547
    return self.recv_getLatestArrivalsCount()
1548
 
1549
  def send_getLatestArrivalsCount(self, ):
1550
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1551
    args = getLatestArrivalsCount_args()
1552
    args.write(self._oprot)
1553
    self._oprot.writeMessageEnd()
1554
    self._oprot.trans.flush()
1555
 
1556
  def recv_getLatestArrivalsCount(self, ):
1557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1558
    if mtype == TMessageType.EXCEPTION:
1559
      x = TApplicationException()
1560
      x.read(self._iprot)
1561
      self._iprot.readMessageEnd()
1562
      raise x
1563
    result = getLatestArrivalsCount_result()
1564
    result.read(self._iprot)
1565
    self._iprot.readMessageEnd()
1566
    if result.success is not None:
1567
      return result.success
1568
    if result.cex is not None:
1569
      raise result.cex
1570
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1571
 
1572
  def generateNewEntityID(self, ):
1573
    self.send_generateNewEntityID()
1574
    return self.recv_generateNewEntityID()
1575
 
1576
  def send_generateNewEntityID(self, ):
1577
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1578
    args = generateNewEntityID_args()
1579
    args.write(self._oprot)
1580
    self._oprot.writeMessageEnd()
1581
    self._oprot.trans.flush()
1582
 
1583
  def recv_generateNewEntityID(self, ):
1584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1585
    if mtype == TMessageType.EXCEPTION:
1586
      x = TApplicationException()
1587
      x.read(self._iprot)
1588
      self._iprot.readMessageEnd()
1589
      raise x
1590
    result = generateNewEntityID_result()
1591
    result.read(self._iprot)
1592
    self._iprot.readMessageEnd()
1593
    if result.success is not None:
1594
      return result.success
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1596
 
1597
  def addCategory(self, category):
1598
    """
1599
    All category related functions
1600
 
1601
    Parameters:
1602
     - category
1603
    """
1604
    self.send_addCategory(category)
1605
    return self.recv_addCategory()
1606
 
1607
  def send_addCategory(self, category):
1608
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1609
    args = addCategory_args()
1610
    args.category = category
1611
    args.write(self._oprot)
1612
    self._oprot.writeMessageEnd()
1613
    self._oprot.trans.flush()
1614
 
1615
  def recv_addCategory(self, ):
1616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1617
    if mtype == TMessageType.EXCEPTION:
1618
      x = TApplicationException()
1619
      x.read(self._iprot)
1620
      self._iprot.readMessageEnd()
1621
      raise x
1622
    result = addCategory_result()
1623
    result.read(self._iprot)
1624
    self._iprot.readMessageEnd()
1625
    if result.success is not None:
1626
      return result.success
1627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1628
 
1629
  def getCategory(self, id):
1630
    """
1631
    Parameters:
1632
     - id
1633
    """
1634
    self.send_getCategory(id)
1635
    return self.recv_getCategory()
1636
 
1637
  def send_getCategory(self, id):
1638
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1639
    args = getCategory_args()
1640
    args.id = id
1641
    args.write(self._oprot)
1642
    self._oprot.writeMessageEnd()
1643
    self._oprot.trans.flush()
1644
 
1645
  def recv_getCategory(self, ):
1646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1647
    if mtype == TMessageType.EXCEPTION:
1648
      x = TApplicationException()
1649
      x.read(self._iprot)
1650
      self._iprot.readMessageEnd()
1651
      raise x
1652
    result = getCategory_result()
1653
    result.read(self._iprot)
1654
    self._iprot.readMessageEnd()
1655
    if result.success is not None:
1656
      return result.success
1657
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1658
 
1659
  def getAllCategories(self, ):
1660
    self.send_getAllCategories()
1661
    return self.recv_getAllCategories()
1662
 
1663
  def send_getAllCategories(self, ):
1664
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1665
    args = getAllCategories_args()
1666
    args.write(self._oprot)
1667
    self._oprot.writeMessageEnd()
1668
    self._oprot.trans.flush()
1669
 
1670
  def recv_getAllCategories(self, ):
1671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1672
    if mtype == TMessageType.EXCEPTION:
1673
      x = TApplicationException()
1674
      x.read(self._iprot)
1675
      self._iprot.readMessageEnd()
1676
      raise x
1677
    result = getAllCategories_result()
1678
    result.read(self._iprot)
1679
    self._iprot.readMessageEnd()
1680
    if result.success is not None:
1681
      return result.success
1682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1683
 
1684
  def getAllSimilarItems(self, itemId):
1685
    """
1686
    Returns the list of similar items.
1687
 
1688
    Parameters:
1689
     - itemId
1690
    """
1691
    self.send_getAllSimilarItems(itemId)
1692
    return self.recv_getAllSimilarItems()
1693
 
1694
  def send_getAllSimilarItems(self, itemId):
1695
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1696
    args = getAllSimilarItems_args()
1697
    args.itemId = itemId
1698
    args.write(self._oprot)
1699
    self._oprot.writeMessageEnd()
1700
    self._oprot.trans.flush()
1701
 
1702
  def recv_getAllSimilarItems(self, ):
1703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1704
    if mtype == TMessageType.EXCEPTION:
1705
      x = TApplicationException()
1706
      x.read(self._iprot)
1707
      self._iprot.readMessageEnd()
1708
      raise x
1709
    result = getAllSimilarItems_result()
1710
    result.read(self._iprot)
1711
    self._iprot.readMessageEnd()
1712
    if result.success is not None:
1713
      return result.success
1714
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1715
 
1716
  def addSimilarItem(self, itemId, catalogItemId):
1717
    """
1718
    Adds similar item.
1719
 
1720
    Parameters:
1721
     - itemId
1722
     - catalogItemId
1723
    """
1724
    self.send_addSimilarItem(itemId, catalogItemId)
1725
    return self.recv_addSimilarItem()
1726
 
1727
  def send_addSimilarItem(self, itemId, catalogItemId):
1728
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1729
    args = addSimilarItem_args()
1730
    args.itemId = itemId
1731
    args.catalogItemId = catalogItemId
1732
    args.write(self._oprot)
1733
    self._oprot.writeMessageEnd()
1734
    self._oprot.trans.flush()
1735
 
1736
  def recv_addSimilarItem(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 = addSimilarItem_result()
1744
    result.read(self._iprot)
1745
    self._iprot.readMessageEnd()
1746
    if result.success is not None:
1747
      return result.success
1748
    if result.cex is not None:
1749
      raise result.cex
1750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1751
 
6512 kshitij.so 1752
  def addTag(self, displayName, itemId):
1753
    """
1754
    Tag Related
1755
 
1756
    Parameters:
1757
     - displayName
1758
     - itemId
1759
    """
1760
    self.send_addTag(displayName, itemId)
1761
    return self.recv_addTag()
1762
 
1763
  def send_addTag(self, displayName, itemId):
1764
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1765
    args = addTag_args()
1766
    args.displayName = displayName
1767
    args.itemId = itemId
1768
    args.write(self._oprot)
1769
    self._oprot.writeMessageEnd()
1770
    self._oprot.trans.flush()
1771
 
1772
  def recv_addTag(self, ):
1773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1774
    if mtype == TMessageType.EXCEPTION:
1775
      x = TApplicationException()
1776
      x.read(self._iprot)
1777
      self._iprot.readMessageEnd()
1778
      raise x
1779
    result = addTag_result()
1780
    result.read(self._iprot)
1781
    self._iprot.readMessageEnd()
1782
    if result.success is not None:
1783
      return result.success
1784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1785
 
1786
  def deleteEntityTag(self, displayName, itemId):
1787
    """
1788
    Parameters:
1789
     - displayName
1790
     - itemId
1791
    """
1792
    self.send_deleteEntityTag(displayName, itemId)
1793
    return self.recv_deleteEntityTag()
1794
 
1795
  def send_deleteEntityTag(self, displayName, itemId):
1796
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1797
    args = deleteEntityTag_args()
1798
    args.displayName = displayName
1799
    args.itemId = itemId
1800
    args.write(self._oprot)
1801
    self._oprot.writeMessageEnd()
1802
    self._oprot.trans.flush()
1803
 
1804
  def recv_deleteEntityTag(self, ):
1805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1806
    if mtype == TMessageType.EXCEPTION:
1807
      x = TApplicationException()
1808
      x.read(self._iprot)
1809
      self._iprot.readMessageEnd()
1810
      raise x
1811
    result = deleteEntityTag_result()
1812
    result.read(self._iprot)
1813
    self._iprot.readMessageEnd()
1814
    if result.success is not None:
1815
      return result.success
1816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1817
 
1818
  def deleteTag(self, displayName):
1819
    """
1820
    Parameters:
1821
     - displayName
1822
    """
1823
    self.send_deleteTag(displayName)
1824
    return self.recv_deleteTag()
1825
 
1826
  def send_deleteTag(self, displayName):
1827
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1828
    args = deleteTag_args()
1829
    args.displayName = displayName
1830
    args.write(self._oprot)
1831
    self._oprot.writeMessageEnd()
1832
    self._oprot.trans.flush()
1833
 
1834
  def recv_deleteTag(self, ):
1835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1836
    if mtype == TMessageType.EXCEPTION:
1837
      x = TApplicationException()
1838
      x.read(self._iprot)
1839
      self._iprot.readMessageEnd()
1840
      raise x
1841
    result = deleteTag_result()
1842
    result.read(self._iprot)
1843
    self._iprot.readMessageEnd()
1844
    if result.success is not None:
1845
      return result.success
1846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1847
 
1848
  def getAllTags(self, ):
1849
    self.send_getAllTags()
1850
    return self.recv_getAllTags()
1851
 
1852
  def send_getAllTags(self, ):
1853
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1854
    args = getAllTags_args()
1855
    args.write(self._oprot)
1856
    self._oprot.writeMessageEnd()
1857
    self._oprot.trans.flush()
1858
 
1859
  def recv_getAllTags(self, ):
1860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1861
    if mtype == TMessageType.EXCEPTION:
1862
      x = TApplicationException()
1863
      x.read(self._iprot)
1864
      self._iprot.readMessageEnd()
1865
      raise x
1866
    result = getAllTags_result()
1867
    result.read(self._iprot)
1868
    self._iprot.readMessageEnd()
1869
    if result.success is not None:
1870
      return result.success
1871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1872
 
1873
  def getAllEntitiesByTagName(self, displayName):
1874
    """
1875
    Parameters:
1876
     - displayName
1877
    """
1878
    self.send_getAllEntitiesByTagName(displayName)
1879
    return self.recv_getAllEntitiesByTagName()
1880
 
1881
  def send_getAllEntitiesByTagName(self, displayName):
1882
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1883
    args = getAllEntitiesByTagName_args()
1884
    args.displayName = displayName
1885
    args.write(self._oprot)
1886
    self._oprot.writeMessageEnd()
1887
    self._oprot.trans.flush()
1888
 
1889
  def recv_getAllEntitiesByTagName(self, ):
1890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1891
    if mtype == TMessageType.EXCEPTION:
1892
      x = TApplicationException()
1893
      x.read(self._iprot)
1894
      self._iprot.readMessageEnd()
1895
      raise x
1896
    result = getAllEntitiesByTagName_result()
1897
    result.read(self._iprot)
1898
    self._iprot.readMessageEnd()
1899
    if result.success is not None:
1900
      return result.success
1901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1902
 
6845 amit.gupta 1903
  def getAllEntityTags(self, ):
1904
    self.send_getAllEntityTags()
1905
    return self.recv_getAllEntityTags()
1906
 
1907
  def send_getAllEntityTags(self, ):
1908
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1909
    args = getAllEntityTags_args()
1910
    args.write(self._oprot)
1911
    self._oprot.writeMessageEnd()
1912
    self._oprot.trans.flush()
1913
 
1914
  def recv_getAllEntityTags(self, ):
1915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1916
    if mtype == TMessageType.EXCEPTION:
1917
      x = TApplicationException()
1918
      x.read(self._iprot)
1919
      self._iprot.readMessageEnd()
1920
      raise x
1921
    result = getAllEntityTags_result()
1922
    result.read(self._iprot)
1923
    self._iprot.readMessageEnd()
1924
    if result.success is not None:
1925
      return result.success
1926
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1927
 
6850 kshitij.so 1928
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1929
    """
1930
    Parameters:
1931
     - bannerName
1932
     - imageName
1933
     - link
1934
     - priority
1935
     - isActive
1936
     - hasMap
1937
    """
1938
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1939
    return self.recv_addBanner()
1940
 
1941
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1942
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1943
    args = addBanner_args()
1944
    args.bannerName = bannerName
1945
    args.imageName = imageName
1946
    args.link = link
1947
    args.priority = priority
1948
    args.isActive = isActive
1949
    args.hasMap = hasMap
1950
    args.write(self._oprot)
1951
    self._oprot.writeMessageEnd()
1952
    self._oprot.trans.flush()
1953
 
1954
  def recv_addBanner(self, ):
1955
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1956
    if mtype == TMessageType.EXCEPTION:
1957
      x = TApplicationException()
1958
      x.read(self._iprot)
1959
      self._iprot.readMessageEnd()
1960
      raise x
1961
    result = addBanner_result()
1962
    result.read(self._iprot)
1963
    self._iprot.readMessageEnd()
1964
    if result.success is not None:
1965
      return result.success
1966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1967
 
1968
  def getAllBanners(self, ):
1969
    self.send_getAllBanners()
1970
    return self.recv_getAllBanners()
1971
 
1972
  def send_getAllBanners(self, ):
1973
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
1974
    args = getAllBanners_args()
1975
    args.write(self._oprot)
1976
    self._oprot.writeMessageEnd()
1977
    self._oprot.trans.flush()
1978
 
1979
  def recv_getAllBanners(self, ):
1980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1981
    if mtype == TMessageType.EXCEPTION:
1982
      x = TApplicationException()
1983
      x.read(self._iprot)
1984
      self._iprot.readMessageEnd()
1985
      raise x
1986
    result = getAllBanners_result()
1987
    result.read(self._iprot)
1988
    self._iprot.readMessageEnd()
1989
    if result.success is not None:
1990
      return result.success
1991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
1992
 
1993
  def deleteBanner(self, bannerName):
1994
    """
1995
    Parameters:
1996
     - bannerName
1997
    """
1998
    self.send_deleteBanner(bannerName)
1999
    return self.recv_deleteBanner()
2000
 
2001
  def send_deleteBanner(self, bannerName):
2002
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2003
    args = deleteBanner_args()
2004
    args.bannerName = bannerName
2005
    args.write(self._oprot)
2006
    self._oprot.writeMessageEnd()
2007
    self._oprot.trans.flush()
2008
 
2009
  def recv_deleteBanner(self, ):
2010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2011
    if mtype == TMessageType.EXCEPTION:
2012
      x = TApplicationException()
2013
      x.read(self._iprot)
2014
      self._iprot.readMessageEnd()
2015
      raise x
2016
    result = deleteBanner_result()
2017
    result.read(self._iprot)
2018
    self._iprot.readMessageEnd()
2019
    if result.success is not None:
2020
      return result.success
2021
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2022
 
2023
  def getBannerDetails(self, bannerName):
2024
    """
2025
    Parameters:
2026
     - bannerName
2027
    """
2028
    self.send_getBannerDetails(bannerName)
2029
    return self.recv_getBannerDetails()
2030
 
2031
  def send_getBannerDetails(self, bannerName):
2032
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2033
    args = getBannerDetails_args()
2034
    args.bannerName = bannerName
2035
    args.write(self._oprot)
2036
    self._oprot.writeMessageEnd()
2037
    self._oprot.trans.flush()
2038
 
2039
  def recv_getBannerDetails(self, ):
2040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2041
    if mtype == TMessageType.EXCEPTION:
2042
      x = TApplicationException()
2043
      x.read(self._iprot)
2044
      self._iprot.readMessageEnd()
2045
      raise x
2046
    result = getBannerDetails_result()
2047
    result.read(self._iprot)
2048
    self._iprot.readMessageEnd()
2049
    if result.success is not None:
2050
      return result.success
2051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2052
 
2053
  def getActiveBanners(self, ):
2054
    self.send_getActiveBanners()
2055
    return self.recv_getActiveBanners()
2056
 
2057
  def send_getActiveBanners(self, ):
2058
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2059
    args = getActiveBanners_args()
2060
    args.write(self._oprot)
2061
    self._oprot.writeMessageEnd()
2062
    self._oprot.trans.flush()
2063
 
2064
  def recv_getActiveBanners(self, ):
2065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2066
    if mtype == TMessageType.EXCEPTION:
2067
      x = TApplicationException()
2068
      x.read(self._iprot)
2069
      self._iprot.readMessageEnd()
2070
      raise x
2071
    result = getActiveBanners_result()
2072
    result.read(self._iprot)
2073
    self._iprot.readMessageEnd()
2074
    if result.success is not None:
2075
      return result.success
2076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2077
 
6849 kshitij.so 2078
  def addBannerMap(self, bannerName, mapLink, coordinates):
2079
    """
2080
    Parameters:
2081
     - bannerName
2082
     - mapLink
2083
     - coordinates
2084
    """
2085
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2086
    return self.recv_addBannerMap()
2087
 
2088
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2089
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2090
    args = addBannerMap_args()
2091
    args.bannerName = bannerName
2092
    args.mapLink = mapLink
2093
    args.coordinates = coordinates
2094
    args.write(self._oprot)
2095
    self._oprot.writeMessageEnd()
2096
    self._oprot.trans.flush()
2097
 
2098
  def recv_addBannerMap(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 = addBannerMap_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, "addBannerMap failed: unknown result");
2111
 
2112
  def deleteBannerMap(self, bannerName):
2113
    """
2114
    Parameters:
2115
     - bannerName
2116
    """
2117
    self.send_deleteBannerMap(bannerName)
2118
    return self.recv_deleteBannerMap()
2119
 
2120
  def send_deleteBannerMap(self, bannerName):
2121
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2122
    args = deleteBannerMap_args()
2123
    args.bannerName = bannerName
2124
    args.write(self._oprot)
2125
    self._oprot.writeMessageEnd()
2126
    self._oprot.trans.flush()
2127
 
2128
  def recv_deleteBannerMap(self, ):
2129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2130
    if mtype == TMessageType.EXCEPTION:
2131
      x = TApplicationException()
2132
      x.read(self._iprot)
2133
      self._iprot.readMessageEnd()
2134
      raise x
2135
    result = deleteBannerMap_result()
2136
    result.read(self._iprot)
2137
    self._iprot.readMessageEnd()
2138
    if result.success is not None:
2139
      return result.success
2140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2141
 
2142
  def getBannerMapDetails(self, bannerName):
2143
    """
2144
    Parameters:
2145
     - bannerName
2146
    """
2147
    self.send_getBannerMapDetails(bannerName)
2148
    return self.recv_getBannerMapDetails()
2149
 
2150
  def send_getBannerMapDetails(self, bannerName):
2151
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2152
    args = getBannerMapDetails_args()
2153
    args.bannerName = bannerName
2154
    args.write(self._oprot)
2155
    self._oprot.writeMessageEnd()
2156
    self._oprot.trans.flush()
2157
 
2158
  def recv_getBannerMapDetails(self, ):
2159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2160
    if mtype == TMessageType.EXCEPTION:
2161
      x = TApplicationException()
2162
      x.read(self._iprot)
2163
      self._iprot.readMessageEnd()
2164
      raise x
2165
    result = getBannerMapDetails_result()
2166
    result.read(self._iprot)
2167
    self._iprot.readMessageEnd()
2168
    if result.success is not None:
2169
      return result.success
2170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2171
 
5944 mandeep.dh 2172
  def deleteSimilarItem(self, itemId, catalogItemId):
2173
    """
2174
    Delete similar item.
2175
 
2176
    Parameters:
2177
     - itemId
2178
     - catalogItemId
2179
    """
2180
    self.send_deleteSimilarItem(itemId, catalogItemId)
2181
    return self.recv_deleteSimilarItem()
2182
 
2183
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2184
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2185
    args = deleteSimilarItem_args()
2186
    args.itemId = itemId
2187
    args.catalogItemId = catalogItemId
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_deleteSimilarItem(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 = deleteSimilarItem_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    if result.success is not None:
2203
      return result.success
2204
    if result.cex is not None:
2205
      raise result.cex
2206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2207
 
2208
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2209
    """
2210
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2211
    If yes, returns the itemId else returns 0
2212
 
2213
    Parameters:
2214
     - brand
2215
     - modelNumber
2216
     - modelName
2217
     - color
2218
    """
2219
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2220
    return self.recv_checkSimilarItem()
2221
 
2222
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2223
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2224
    args = checkSimilarItem_args()
2225
    args.brand = brand
2226
    args.modelNumber = modelNumber
2227
    args.modelName = modelName
2228
    args.color = color
2229
    args.write(self._oprot)
2230
    self._oprot.writeMessageEnd()
2231
    self._oprot.trans.flush()
2232
 
2233
  def recv_checkSimilarItem(self, ):
2234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2235
    if mtype == TMessageType.EXCEPTION:
2236
      x = TApplicationException()
2237
      x.read(self._iprot)
2238
      self._iprot.readMessageEnd()
2239
      raise x
2240
    result = checkSimilarItem_result()
2241
    result.read(self._iprot)
2242
    self._iprot.readMessageEnd()
2243
    if result.success is not None:
2244
      return result.success
2245
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2246
 
2247
  def validateRiskyStatus(self, itemId):
2248
    """
2249
    Check wether item is risky and change status if inventory is not available for risky items
2250
 
2251
    Parameters:
2252
     - itemId
2253
    """
2254
    self.send_validateRiskyStatus(itemId)
2255
    self.recv_validateRiskyStatus()
2256
 
2257
  def send_validateRiskyStatus(self, itemId):
2258
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2259
    args = validateRiskyStatus_args()
2260
    args.itemId = itemId
2261
    args.write(self._oprot)
2262
    self._oprot.writeMessageEnd()
2263
    self._oprot.trans.flush()
2264
 
2265
  def recv_validateRiskyStatus(self, ):
2266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2267
    if mtype == TMessageType.EXCEPTION:
2268
      x = TApplicationException()
2269
      x.read(self._iprot)
2270
      self._iprot.readMessageEnd()
2271
      raise x
2272
    result = validateRiskyStatus_result()
2273
    result.read(self._iprot)
2274
    self._iprot.readMessageEnd()
2275
    return
2276
 
2277
  def changeItemRiskyFlag(self, itemId, risky):
2278
    """
2279
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2280
 
2281
    Parameters:
2282
     - itemId
2283
     - risky
2284
    """
2285
    self.send_changeItemRiskyFlag(itemId, risky)
2286
    self.recv_changeItemRiskyFlag()
2287
 
2288
  def send_changeItemRiskyFlag(self, itemId, risky):
2289
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2290
    args = changeItemRiskyFlag_args()
2291
    args.itemId = itemId
2292
    args.risky = risky
2293
    args.write(self._oprot)
2294
    self._oprot.writeMessageEnd()
2295
    self._oprot.trans.flush()
2296
 
2297
  def recv_changeItemRiskyFlag(self, ):
2298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2299
    if mtype == TMessageType.EXCEPTION:
2300
      x = TApplicationException()
2301
      x.read(self._iprot)
2302
      self._iprot.readMessageEnd()
2303
      raise x
2304
    result = changeItemRiskyFlag_result()
2305
    result.read(self._iprot)
2306
    self._iprot.readMessageEnd()
2307
    return
2308
 
2309
  def getItemsByRiskyFlag(self, ):
2310
    """
2311
    Returns list of items marked as risky.
2312
    """
2313
    self.send_getItemsByRiskyFlag()
2314
    return self.recv_getItemsByRiskyFlag()
2315
 
2316
  def send_getItemsByRiskyFlag(self, ):
2317
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2318
    args = getItemsByRiskyFlag_args()
2319
    args.write(self._oprot)
2320
    self._oprot.writeMessageEnd()
2321
    self._oprot.trans.flush()
2322
 
2323
  def recv_getItemsByRiskyFlag(self, ):
2324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2325
    if mtype == TMessageType.EXCEPTION:
2326
      x = TApplicationException()
2327
      x.read(self._iprot)
2328
      self._iprot.readMessageEnd()
2329
      raise x
2330
    result = getItemsByRiskyFlag_result()
2331
    result.read(self._iprot)
2332
    self._iprot.readMessageEnd()
2333
    if result.success is not None:
2334
      return result.success
2335
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2336
 
2337
  def getItemsForMasterSheet(self, category, brand):
2338
    """
2339
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2340
 
2341
    Parameters:
2342
     - category
2343
     - brand
2344
    """
2345
    self.send_getItemsForMasterSheet(category, brand)
2346
    return self.recv_getItemsForMasterSheet()
2347
 
2348
  def send_getItemsForMasterSheet(self, category, brand):
2349
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2350
    args = getItemsForMasterSheet_args()
2351
    args.category = category
2352
    args.brand = brand
2353
    args.write(self._oprot)
2354
    self._oprot.writeMessageEnd()
2355
    self._oprot.trans.flush()
2356
 
2357
  def recv_getItemsForMasterSheet(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 = getItemsForMasterSheet_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, "getItemsForMasterSheet failed: unknown result");
2370
 
2371
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2372
    """
2373
    Returns list of catalog ids of items with same similarity index as of the given itemId
2374
 
2375
    Parameters:
2376
     - beginIndex
2377
     - totalItems
2378
     - itemId
2379
    """
2380
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2381
    return self.recv_getSimilarItemsCatalogIds()
2382
 
2383
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2384
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2385
    args = getSimilarItemsCatalogIds_args()
2386
    args.beginIndex = beginIndex
2387
    args.totalItems = totalItems
2388
    args.itemId = itemId
2389
    args.write(self._oprot)
2390
    self._oprot.writeMessageEnd()
2391
    self._oprot.trans.flush()
2392
 
2393
  def recv_getSimilarItemsCatalogIds(self, ):
2394
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2395
    if mtype == TMessageType.EXCEPTION:
2396
      x = TApplicationException()
2397
      x.read(self._iprot)
2398
      self._iprot.readMessageEnd()
2399
      raise x
2400
    result = getSimilarItemsCatalogIds_result()
2401
    result.read(self._iprot)
2402
    self._iprot.readMessageEnd()
2403
    if result.success is not None:
2404
      return result.success
2405
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2406
 
2407
  def addProductNotification(self, itemId, email):
2408
    """
2409
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2410
 
2411
    Parameters:
2412
     - itemId
2413
     - email
2414
    """
2415
    self.send_addProductNotification(itemId, email)
2416
    return self.recv_addProductNotification()
2417
 
2418
  def send_addProductNotification(self, itemId, email):
2419
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2420
    args = addProductNotification_args()
2421
    args.itemId = itemId
2422
    args.email = email
2423
    args.write(self._oprot)
2424
    self._oprot.writeMessageEnd()
2425
    self._oprot.trans.flush()
2426
 
2427
  def recv_addProductNotification(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 = addProductNotification_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, "addProductNotification failed: unknown result");
2440
 
2441
  def sendProductNotifications(self, ):
2442
    """
2443
    Send the product notifications to the users for items which has stock.
2444
    """
2445
    self.send_sendProductNotifications()
2446
    return self.recv_sendProductNotifications()
2447
 
2448
  def send_sendProductNotifications(self, ):
2449
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2450
    args = sendProductNotifications_args()
2451
    args.write(self._oprot)
2452
    self._oprot.writeMessageEnd()
2453
    self._oprot.trans.flush()
2454
 
2455
  def recv_sendProductNotifications(self, ):
2456
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2457
    if mtype == TMessageType.EXCEPTION:
2458
      x = TApplicationException()
2459
      x.read(self._iprot)
2460
      self._iprot.readMessageEnd()
2461
      raise x
2462
    result = sendProductNotifications_result()
2463
    result.read(self._iprot)
2464
    self._iprot.readMessageEnd()
2465
    if result.success is not None:
2466
      return result.success
2467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2468
 
2469
  def getAllBrandsByCategory(self, categoryId):
2470
    """
2471
    Returns list of brand names for a given category Id
2472
 
2473
    Parameters:
2474
     - categoryId
2475
    """
2476
    self.send_getAllBrandsByCategory(categoryId)
2477
    return self.recv_getAllBrandsByCategory()
2478
 
2479
  def send_getAllBrandsByCategory(self, categoryId):
2480
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2481
    args = getAllBrandsByCategory_args()
2482
    args.categoryId = categoryId
2483
    args.write(self._oprot)
2484
    self._oprot.writeMessageEnd()
2485
    self._oprot.trans.flush()
2486
 
2487
  def recv_getAllBrandsByCategory(self, ):
2488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2489
    if mtype == TMessageType.EXCEPTION:
2490
      x = TApplicationException()
2491
      x.read(self._iprot)
2492
      self._iprot.readMessageEnd()
2493
      raise x
2494
    result = getAllBrandsByCategory_result()
2495
    result.read(self._iprot)
2496
    self._iprot.readMessageEnd()
2497
    if result.success is not None:
2498
      return result.success
2499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2500
 
2501
  def getAllBrands(self, ):
2502
    """
2503
    Returns list of brand names
2504
    """
2505
    self.send_getAllBrands()
2506
    return self.recv_getAllBrands()
2507
 
2508
  def send_getAllBrands(self, ):
2509
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2510
    args = getAllBrands_args()
2511
    args.write(self._oprot)
2512
    self._oprot.writeMessageEnd()
2513
    self._oprot.trans.flush()
2514
 
2515
  def recv_getAllBrands(self, ):
2516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2517
    if mtype == TMessageType.EXCEPTION:
2518
      x = TApplicationException()
2519
      x.read(self._iprot)
2520
      self._iprot.readMessageEnd()
2521
      raise x
2522
    result = getAllBrands_result()
2523
    result.read(self._iprot)
2524
    self._iprot.readMessageEnd()
2525
    if result.success is not None:
2526
      return result.success
2527
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2528
 
2529
  def getAllSources(self, ):
2530
    """
2531
    Return list of all sources
2532
    """
2533
    self.send_getAllSources()
2534
    return self.recv_getAllSources()
2535
 
2536
  def send_getAllSources(self, ):
2537
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2538
    args = getAllSources_args()
2539
    args.write(self._oprot)
2540
    self._oprot.writeMessageEnd()
2541
    self._oprot.trans.flush()
2542
 
2543
  def recv_getAllSources(self, ):
2544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2545
    if mtype == TMessageType.EXCEPTION:
2546
      x = TApplicationException()
2547
      x.read(self._iprot)
2548
      self._iprot.readMessageEnd()
2549
      raise x
2550
    result = getAllSources_result()
2551
    result.read(self._iprot)
2552
    self._iprot.readMessageEnd()
2553
    if result.success is not None:
2554
      return result.success
2555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2556
 
2557
  def getItemPricingBySource(self, itemId, sourceId):
2558
    """
2559
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2560
 
2561
    Parameters:
2562
     - itemId
2563
     - sourceId
2564
    """
2565
    self.send_getItemPricingBySource(itemId, sourceId)
2566
    return self.recv_getItemPricingBySource()
2567
 
2568
  def send_getItemPricingBySource(self, itemId, sourceId):
2569
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2570
    args = getItemPricingBySource_args()
2571
    args.itemId = itemId
2572
    args.sourceId = sourceId
2573
    args.write(self._oprot)
2574
    self._oprot.writeMessageEnd()
2575
    self._oprot.trans.flush()
2576
 
2577
  def recv_getItemPricingBySource(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 = getItemPricingBySource_result()
2585
    result.read(self._iprot)
2586
    self._iprot.readMessageEnd()
2587
    if result.success is not None:
2588
      return result.success
2589
    if result.cex is not None:
2590
      raise result.cex
2591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2592
 
2593
  def addSourceItemPricing(self, sourceItemPricing):
2594
    """
2595
    Adds prices to be displayed corresponding to the item if user comes from a source.
2596
    If item is not found or source is not found, it will throw exception.
2597
 
2598
    Parameters:
2599
     - sourceItemPricing
2600
    """
2601
    self.send_addSourceItemPricing(sourceItemPricing)
2602
    self.recv_addSourceItemPricing()
2603
 
2604
  def send_addSourceItemPricing(self, sourceItemPricing):
2605
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2606
    args = addSourceItemPricing_args()
2607
    args.sourceItemPricing = sourceItemPricing
2608
    args.write(self._oprot)
2609
    self._oprot.writeMessageEnd()
2610
    self._oprot.trans.flush()
2611
 
2612
  def recv_addSourceItemPricing(self, ):
2613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2614
    if mtype == TMessageType.EXCEPTION:
2615
      x = TApplicationException()
2616
      x.read(self._iprot)
2617
      self._iprot.readMessageEnd()
2618
      raise x
2619
    result = addSourceItemPricing_result()
2620
    result.read(self._iprot)
2621
    self._iprot.readMessageEnd()
2622
    if result.cex is not None:
2623
      raise result.cex
2624
    return
2625
 
2626
  def getAllSourcePricing(self, itemId):
2627
    """
2628
    Returns the list of source pricing information of an item.
2629
    Raises an exception if item not found corresponding to itemId
2630
 
2631
    Parameters:
2632
     - itemId
2633
    """
2634
    self.send_getAllSourcePricing(itemId)
2635
    return self.recv_getAllSourcePricing()
2636
 
2637
  def send_getAllSourcePricing(self, itemId):
2638
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2639
    args = getAllSourcePricing_args()
2640
    args.itemId = itemId
2641
    args.write(self._oprot)
2642
    self._oprot.writeMessageEnd()
2643
    self._oprot.trans.flush()
2644
 
2645
  def recv_getAllSourcePricing(self, ):
2646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2647
    if mtype == TMessageType.EXCEPTION:
2648
      x = TApplicationException()
2649
      x.read(self._iprot)
2650
      self._iprot.readMessageEnd()
2651
      raise x
2652
    result = getAllSourcePricing_result()
2653
    result.read(self._iprot)
2654
    self._iprot.readMessageEnd()
2655
    if result.success is not None:
2656
      return result.success
2657
    if result.cex is not None:
2658
      raise result.cex
2659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2660
 
2661
  def getItemForSource(self, item_id, sourceId):
2662
    """
2663
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2664
 
2665
    Parameters:
2666
     - item_id
2667
     - sourceId
2668
    """
2669
    self.send_getItemForSource(item_id, sourceId)
2670
    return self.recv_getItemForSource()
2671
 
2672
  def send_getItemForSource(self, item_id, sourceId):
2673
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2674
    args = getItemForSource_args()
2675
    args.item_id = item_id
2676
    args.sourceId = sourceId
2677
    args.write(self._oprot)
2678
    self._oprot.writeMessageEnd()
2679
    self._oprot.trans.flush()
2680
 
2681
  def recv_getItemForSource(self, ):
2682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2683
    if mtype == TMessageType.EXCEPTION:
2684
      x = TApplicationException()
2685
      x.read(self._iprot)
2686
      self._iprot.readMessageEnd()
2687
      raise x
2688
    result = getItemForSource_result()
2689
    result.read(self._iprot)
2690
    self._iprot.readMessageEnd()
2691
    if result.success is not None:
2692
      return result.success
2693
    if result.cex is not None:
2694
      raise result.cex
2695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2696
 
2697
  def searchItemsInRange(self, searchTerms, offset, limit):
2698
    """
2699
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2700
 
2701
    Parameters:
2702
     - searchTerms
2703
     - offset
2704
     - limit
2705
    """
2706
    self.send_searchItemsInRange(searchTerms, offset, limit)
2707
    return self.recv_searchItemsInRange()
2708
 
2709
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2710
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2711
    args = searchItemsInRange_args()
2712
    args.searchTerms = searchTerms
2713
    args.offset = offset
2714
    args.limit = limit
2715
    args.write(self._oprot)
2716
    self._oprot.writeMessageEnd()
2717
    self._oprot.trans.flush()
2718
 
2719
  def recv_searchItemsInRange(self, ):
2720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2721
    if mtype == TMessageType.EXCEPTION:
2722
      x = TApplicationException()
2723
      x.read(self._iprot)
2724
      self._iprot.readMessageEnd()
2725
      raise x
2726
    result = searchItemsInRange_result()
2727
    result.read(self._iprot)
2728
    self._iprot.readMessageEnd()
2729
    if result.success is not None:
2730
      return result.success
2731
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2732
 
2733
  def getSearchResultCount(self, searchTerms):
2734
    """
2735
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2736
 
2737
    Parameters:
2738
     - searchTerms
2739
    """
2740
    self.send_getSearchResultCount(searchTerms)
2741
    return self.recv_getSearchResultCount()
2742
 
2743
  def send_getSearchResultCount(self, searchTerms):
2744
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2745
    args = getSearchResultCount_args()
2746
    args.searchTerms = searchTerms
2747
    args.write(self._oprot)
2748
    self._oprot.writeMessageEnd()
2749
    self._oprot.trans.flush()
2750
 
2751
  def recv_getSearchResultCount(self, ):
2752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2753
    if mtype == TMessageType.EXCEPTION:
2754
      x = TApplicationException()
2755
      x.read(self._iprot)
2756
      self._iprot.readMessageEnd()
2757
      raise x
2758
    result = getSearchResultCount_result()
2759
    result.read(self._iprot)
2760
    self._iprot.readMessageEnd()
2761
    if result.success is not None:
2762
      return result.success
2763
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2764
 
2765
  def getProductNotifications(self, startDateTime):
2766
    """
2767
    Returns a list of product notifications added after a supplied datetime
2768
 
2769
    Parameters:
2770
     - startDateTime
2771
    """
2772
    self.send_getProductNotifications(startDateTime)
2773
    return self.recv_getProductNotifications()
2774
 
2775
  def send_getProductNotifications(self, startDateTime):
2776
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2777
    args = getProductNotifications_args()
2778
    args.startDateTime = startDateTime
2779
    args.write(self._oprot)
2780
    self._oprot.writeMessageEnd()
2781
    self._oprot.trans.flush()
2782
 
2783
  def recv_getProductNotifications(self, ):
2784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2785
    if mtype == TMessageType.EXCEPTION:
2786
      x = TApplicationException()
2787
      x.read(self._iprot)
2788
      self._iprot.readMessageEnd()
2789
      raise x
2790
    result = getProductNotifications_result()
2791
    result.read(self._iprot)
2792
    self._iprot.readMessageEnd()
2793
    if result.success is not None:
2794
      return result.success
2795
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2796
 
2797
  def getProductNotificationRequestCount(self, startDateTime):
2798
    """
2799
    Returns a list of count of requests for product notification against each item
2800
 
2801
    Parameters:
2802
     - startDateTime
2803
    """
2804
    self.send_getProductNotificationRequestCount(startDateTime)
2805
    return self.recv_getProductNotificationRequestCount()
2806
 
2807
  def send_getProductNotificationRequestCount(self, startDateTime):
2808
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2809
    args = getProductNotificationRequestCount_args()
2810
    args.startDateTime = startDateTime
2811
    args.write(self._oprot)
2812
    self._oprot.writeMessageEnd()
2813
    self._oprot.trans.flush()
2814
 
2815
  def recv_getProductNotificationRequestCount(self, ):
2816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2817
    if mtype == TMessageType.EXCEPTION:
2818
      x = TApplicationException()
2819
      x.read(self._iprot)
2820
      self._iprot.readMessageEnd()
2821
      raise x
2822
    result = getProductNotificationRequestCount_result()
2823
    result.read(self._iprot)
2824
    self._iprot.readMessageEnd()
2825
    if result.success is not None:
2826
      return result.success
2827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2828
 
2829
  def addAuthorizationLog(self, itemId, username, reason):
2830
    """
2831
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2832
 
2833
    Parameters:
2834
     - itemId
2835
     - username
2836
     - reason
2837
    """
2838
    self.send_addAuthorizationLog(itemId, username, reason)
2839
    return self.recv_addAuthorizationLog()
2840
 
2841
  def send_addAuthorizationLog(self, itemId, username, reason):
2842
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2843
    args = addAuthorizationLog_args()
2844
    args.itemId = itemId
2845
    args.username = username
2846
    args.reason = reason
2847
    args.write(self._oprot)
2848
    self._oprot.writeMessageEnd()
2849
    self._oprot.trans.flush()
2850
 
2851
  def recv_addAuthorizationLog(self, ):
2852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2853
    if mtype == TMessageType.EXCEPTION:
2854
      x = TApplicationException()
2855
      x.read(self._iprot)
2856
      self._iprot.readMessageEnd()
2857
      raise x
2858
    result = addAuthorizationLog_result()
2859
    result.read(self._iprot)
2860
    self._iprot.readMessageEnd()
2861
    if result.success is not None:
2862
      return result.success
2863
    if result.cex is not None:
2864
      raise result.cex
2865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2866
 
2867
  def getClearanceSaleCatalogIds(self, ):
2868
    self.send_getClearanceSaleCatalogIds()
2869
    return self.recv_getClearanceSaleCatalogIds()
2870
 
2871
  def send_getClearanceSaleCatalogIds(self, ):
2872
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2873
    args = getClearanceSaleCatalogIds_args()
2874
    args.write(self._oprot)
2875
    self._oprot.writeMessageEnd()
2876
    self._oprot.trans.flush()
2877
 
2878
  def recv_getClearanceSaleCatalogIds(self, ):
2879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2880
    if mtype == TMessageType.EXCEPTION:
2881
      x = TApplicationException()
2882
      x.read(self._iprot)
2883
      self._iprot.readMessageEnd()
2884
      raise x
2885
    result = getClearanceSaleCatalogIds_result()
2886
    result.read(self._iprot)
2887
    self._iprot.readMessageEnd()
2888
    if result.success is not None:
2889
      return result.success
2890
    if result.cex is not None:
2891
      raise result.cex
2892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2893
 
2894
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2895
    """
2896
    Parameters:
2897
     - catalog_item_id
2898
     - voucherType
2899
     - voucherAmount
2900
    """
2901
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2902
    return self.recv_addupdateVoucherForItem()
2903
 
2904
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2905
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2906
    args = addupdateVoucherForItem_args()
2907
    args.catalog_item_id = catalog_item_id
2908
    args.voucherType = voucherType
2909
    args.voucherAmount = voucherAmount
2910
    args.write(self._oprot)
2911
    self._oprot.writeMessageEnd()
2912
    self._oprot.trans.flush()
2913
 
2914
  def recv_addupdateVoucherForItem(self, ):
2915
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2916
    if mtype == TMessageType.EXCEPTION:
2917
      x = TApplicationException()
2918
      x.read(self._iprot)
2919
      self._iprot.readMessageEnd()
2920
      raise x
2921
    result = addupdateVoucherForItem_result()
2922
    result.read(self._iprot)
2923
    self._iprot.readMessageEnd()
2924
    if result.success is not None:
2925
      return result.success
2926
    if result.cex is not None:
2927
      raise result.cex
2928
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2929
 
2930
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2931
    """
2932
    Parameters:
2933
     - catalog_item_id
2934
     - voucherType
2935
    """
2936
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2937
    return self.recv_deleteVoucherForItem()
2938
 
2939
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2940
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2941
    args = deleteVoucherForItem_args()
2942
    args.catalog_item_id = catalog_item_id
2943
    args.voucherType = voucherType
2944
    args.write(self._oprot)
2945
    self._oprot.writeMessageEnd()
2946
    self._oprot.trans.flush()
2947
 
2948
  def recv_deleteVoucherForItem(self, ):
2949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2950
    if mtype == TMessageType.EXCEPTION:
2951
      x = TApplicationException()
2952
      x.read(self._iprot)
2953
      self._iprot.readMessageEnd()
2954
      raise x
2955
    result = deleteVoucherForItem_result()
2956
    result.read(self._iprot)
2957
    self._iprot.readMessageEnd()
2958
    if result.success is not None:
2959
      return result.success
2960
    if result.cex is not None:
2961
      raise result.cex
2962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2963
 
2964
  def getVoucherAmount(self, itemId, voucherType):
2965
    """
2966
    Parameters:
2967
     - itemId
2968
     - voucherType
2969
    """
2970
    self.send_getVoucherAmount(itemId, voucherType)
2971
    return self.recv_getVoucherAmount()
2972
 
2973
  def send_getVoucherAmount(self, itemId, voucherType):
2974
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2975
    args = getVoucherAmount_args()
2976
    args.itemId = itemId
2977
    args.voucherType = voucherType
2978
    args.write(self._oprot)
2979
    self._oprot.writeMessageEnd()
2980
    self._oprot.trans.flush()
2981
 
2982
  def recv_getVoucherAmount(self, ):
2983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2984
    if mtype == TMessageType.EXCEPTION:
2985
      x = TApplicationException()
2986
      x.read(self._iprot)
2987
      self._iprot.readMessageEnd()
2988
      raise x
2989
    result = getVoucherAmount_result()
2990
    result.read(self._iprot)
2991
    self._iprot.readMessageEnd()
2992
    if result.success is not None:
2993
      return result.success
2994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2995
 
2996
  def getAllItemVouchers(self, itemId):
2997
    """
2998
    Parameters:
2999
     - itemId
3000
    """
3001
    self.send_getAllItemVouchers(itemId)
3002
    return self.recv_getAllItemVouchers()
3003
 
3004
  def send_getAllItemVouchers(self, itemId):
3005
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3006
    args = getAllItemVouchers_args()
3007
    args.itemId = itemId
3008
    args.write(self._oprot)
3009
    self._oprot.writeMessageEnd()
3010
    self._oprot.trans.flush()
3011
 
3012
  def recv_getAllItemVouchers(self, ):
3013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3014
    if mtype == TMessageType.EXCEPTION:
3015
      x = TApplicationException()
3016
      x.read(self._iprot)
3017
      self._iprot.readMessageEnd()
3018
      raise x
3019
    result = getAllItemVouchers_result()
3020
    result.read(self._iprot)
3021
    self._iprot.readMessageEnd()
3022
    if result.success is not None:
3023
      return result.success
3024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3025
 
3026
  def isValidCatalogItemId(self, catalog_item_id):
3027
    """
3028
    Parameters:
3029
     - catalog_item_id
3030
    """
3031
    self.send_isValidCatalogItemId(catalog_item_id)
3032
    return self.recv_isValidCatalogItemId()
3033
 
3034
  def send_isValidCatalogItemId(self, catalog_item_id):
3035
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3036
    args = isValidCatalogItemId_args()
3037
    args.catalog_item_id = catalog_item_id
3038
    args.write(self._oprot)
3039
    self._oprot.writeMessageEnd()
3040
    self._oprot.trans.flush()
3041
 
3042
  def recv_isValidCatalogItemId(self, ):
3043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3044
    if mtype == TMessageType.EXCEPTION:
3045
      x = TApplicationException()
3046
      x.read(self._iprot)
3047
      self._iprot.readMessageEnd()
3048
      raise x
3049
    result = isValidCatalogItemId_result()
3050
    result.read(self._iprot)
3051
    self._iprot.readMessageEnd()
3052
    if result.success is not None:
3053
      return result.success
3054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3055
 
6039 amit.gupta 3056
  def getVatPercentageForItem(self, itemId, price):
3057
    """
3058
    Parameters:
3059
     - itemId
3060
     - price
3061
    """
3062
    self.send_getVatPercentageForItem(itemId, price)
3063
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3064
 
6039 amit.gupta 3065
  def send_getVatPercentageForItem(self, itemId, price):
3066
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3067
    args = getVatPercentageForItem_args()
3068
    args.itemId = itemId
3069
    args.price = price
3070
    args.write(self._oprot)
3071
    self._oprot.writeMessageEnd()
3072
    self._oprot.trans.flush()
3073
 
3074
  def recv_getVatPercentageForItem(self, ):
3075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3076
    if mtype == TMessageType.EXCEPTION:
3077
      x = TApplicationException()
3078
      x.read(self._iprot)
3079
      self._iprot.readMessageEnd()
3080
      raise x
3081
    result = getVatPercentageForItem_result()
3082
    result.read(self._iprot)
3083
    self._iprot.readMessageEnd()
3084
    if result.success is not None:
3085
      return result.success
3086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3087
 
3088
  def getVatAmountForItem(self, itemId, price):
3089
    """
3090
    Parameters:
3091
     - itemId
3092
     - price
3093
    """
3094
    self.send_getVatAmountForItem(itemId, price)
3095
    return self.recv_getVatAmountForItem()
3096
 
3097
  def send_getVatAmountForItem(self, itemId, price):
3098
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3099
    args = getVatAmountForItem_args()
3100
    args.itemId = itemId
3101
    args.price = price
3102
    args.write(self._oprot)
3103
    self._oprot.writeMessageEnd()
3104
    self._oprot.trans.flush()
3105
 
3106
  def recv_getVatAmountForItem(self, ):
3107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3108
    if mtype == TMessageType.EXCEPTION:
3109
      x = TApplicationException()
3110
      x.read(self._iprot)
3111
      self._iprot.readMessageEnd()
3112
      raise x
3113
    result = getVatAmountForItem_result()
3114
    result.read(self._iprot)
3115
    self._iprot.readMessageEnd()
3116
    if result.success is not None:
3117
      return result.success
3118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3119
 
6531 vikram.rag 3120
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3121
    """
3122
    Parameters:
3123
     - offset
3124
     - limit
3125
    """
3126
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3127
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3128
 
6531 vikram.rag 3129
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3130
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3131
    args = getAllIgnoredInventoryUpdateItemsList_args()
3132
    args.offset = offset
3133
    args.limit = limit
3134
    args.write(self._oprot)
3135
    self._oprot.writeMessageEnd()
3136
    self._oprot.trans.flush()
3137
 
3138
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3140
    if mtype == TMessageType.EXCEPTION:
3141
      x = TApplicationException()
3142
      x.read(self._iprot)
3143
      self._iprot.readMessageEnd()
3144
      raise x
3145
    result = getAllIgnoredInventoryUpdateItemsList_result()
3146
    result.read(self._iprot)
3147
    self._iprot.readMessageEnd()
3148
    if result.success is not None:
3149
      return result.success
3150
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3151
 
6821 amar.kumar 3152
  def getAllAliveItems(self, ):
3153
    self.send_getAllAliveItems()
3154
    return self.recv_getAllAliveItems()
3155
 
3156
  def send_getAllAliveItems(self, ):
3157
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3158
    args = getAllAliveItems_args()
3159
    args.write(self._oprot)
3160
    self._oprot.writeMessageEnd()
3161
    self._oprot.trans.flush()
3162
 
3163
  def recv_getAllAliveItems(self, ):
3164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3165
    if mtype == TMessageType.EXCEPTION:
3166
      x = TApplicationException()
3167
      x.read(self._iprot)
3168
      self._iprot.readMessageEnd()
3169
      raise x
3170
    result = getAllAliveItems_result()
3171
    result.read(self._iprot)
3172
    self._iprot.readMessageEnd()
3173
    if result.success is not None:
3174
      return result.success
3175
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3176
 
6805 anupam.sin 3177
  def getInsuranceAmount(self, itemId, insurerId, quantity):
3178
    """
3179
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3180
 
6805 anupam.sin 3181
    Parameters:
3182
     - itemId
3183
     - insurerId
3184
     - quantity
3185
    """
3186
    self.send_getInsuranceAmount(itemId, insurerId, quantity)
3187
    return self.recv_getInsuranceAmount()
3188
 
3189
  def send_getInsuranceAmount(self, itemId, insurerId, quantity):
3190
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3191
    args = getInsuranceAmount_args()
3192
    args.itemId = itemId
3193
    args.insurerId = insurerId
3194
    args.quantity = quantity
3195
    args.write(self._oprot)
3196
    self._oprot.writeMessageEnd()
3197
    self._oprot.trans.flush()
3198
 
3199
  def recv_getInsuranceAmount(self, ):
3200
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3201
    if mtype == TMessageType.EXCEPTION:
3202
      x = TApplicationException()
3203
      x.read(self._iprot)
3204
      self._iprot.readMessageEnd()
3205
      raise x
3206
    result = getInsuranceAmount_result()
3207
    result.read(self._iprot)
3208
    self._iprot.readMessageEnd()
3209
    if result.success is not None:
3210
      return result.success
3211
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3212
 
3213
  def getInsurer(self, insurerId):
3214
    """
3215
    Parameters:
3216
     - insurerId
3217
    """
3218
    self.send_getInsurer(insurerId)
3219
    return self.recv_getInsurer()
3220
 
3221
  def send_getInsurer(self, insurerId):
3222
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3223
    args = getInsurer_args()
3224
    args.insurerId = insurerId
3225
    args.write(self._oprot)
3226
    self._oprot.writeMessageEnd()
3227
    self._oprot.trans.flush()
3228
 
3229
  def recv_getInsurer(self, ):
3230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3231
    if mtype == TMessageType.EXCEPTION:
3232
      x = TApplicationException()
3233
      x.read(self._iprot)
3234
      self._iprot.readMessageEnd()
3235
      raise x
3236
    result = getInsurer_result()
3237
    result.read(self._iprot)
3238
    self._iprot.readMessageEnd()
3239
    if result.success is not None:
3240
      return result.success
3241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3242
 
6838 vikram.rag 3243
  def getAllInsurers(self, ):
3244
    self.send_getAllInsurers()
3245
    return self.recv_getAllInsurers()
6805 anupam.sin 3246
 
6838 vikram.rag 3247
  def send_getAllInsurers(self, ):
3248
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3249
    args = getAllInsurers_args()
3250
    args.write(self._oprot)
3251
    self._oprot.writeMessageEnd()
3252
    self._oprot.trans.flush()
3253
 
3254
  def recv_getAllInsurers(self, ):
3255
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3256
    if mtype == TMessageType.EXCEPTION:
3257
      x = TApplicationException()
3258
      x.read(self._iprot)
3259
      self._iprot.readMessageEnd()
3260
      raise x
3261
    result = getAllInsurers_result()
3262
    result.read(self._iprot)
3263
    self._iprot.readMessageEnd()
3264
    if result.success is not None:
3265
      return result.success
3266
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3267
 
3268
 
5944 mandeep.dh 3269
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3270
  def __init__(self, handler):
3271
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3272
    self._processMap["addItem"] = Processor.process_addItem
3273
    self._processMap["updateItem"] = Processor.process_updateItem
3274
    self._processMap["isActive"] = Processor.process_isActive
3275
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3276
    self._processMap["startItemOn"] = Processor.process_startItemOn
3277
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3278
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3279
    self._processMap["getItem"] = Processor.process_getItem
3280
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3281
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3282
    self._processMap["getAllItems"] = Processor.process_getAllItems
3283
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3284
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3285
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3286
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3287
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3288
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3289
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3290
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3291
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3292
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3293
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3294
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3295
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3296
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3297
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3298
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3299
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3300
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3301
    self._processMap["addCategory"] = Processor.process_addCategory
3302
    self._processMap["getCategory"] = Processor.process_getCategory
3303
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3304
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3305
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3306
    self._processMap["addTag"] = Processor.process_addTag
3307
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3308
    self._processMap["deleteTag"] = Processor.process_deleteTag
3309
    self._processMap["getAllTags"] = Processor.process_getAllTags
3310
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3311
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3312
    self._processMap["addBanner"] = Processor.process_addBanner
3313
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3314
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3315
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3316
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3317
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3318
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3319
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3320
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3321
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3322
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3323
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3324
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3325
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3326
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3327
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3328
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3329
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3330
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3331
    self._processMap["getAllSources"] = Processor.process_getAllSources
3332
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3333
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3334
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3335
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3336
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3337
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3338
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3339
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3340
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3341
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3342
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3343
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3344
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3345
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3346
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3347
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3348
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3349
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3350
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3351
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3352
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3353
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
5944 mandeep.dh 3354
 
3355
  def process(self, iprot, oprot):
3356
    (name, type, seqid) = iprot.readMessageBegin()
3357
    if name not in self._processMap:
3358
      iprot.skip(TType.STRUCT)
3359
      iprot.readMessageEnd()
3360
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3361
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3362
      x.write(oprot)
3363
      oprot.writeMessageEnd()
3364
      oprot.trans.flush()
3365
      return
3366
    else:
3367
      self._processMap[name](self, seqid, iprot, oprot)
3368
    return True
3369
 
3370
  def process_addItem(self, seqid, iprot, oprot):
3371
    args = addItem_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = addItem_result()
3375
    try:
3376
      result.success = self._handler.addItem(args.item)
3377
    except CatalogServiceException, cex:
3378
      result.cex = cex
3379
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3380
    result.write(oprot)
3381
    oprot.writeMessageEnd()
3382
    oprot.trans.flush()
3383
 
3384
  def process_updateItem(self, seqid, iprot, oprot):
3385
    args = updateItem_args()
3386
    args.read(iprot)
3387
    iprot.readMessageEnd()
3388
    result = updateItem_result()
3389
    try:
3390
      result.success = self._handler.updateItem(args.item)
3391
    except CatalogServiceException, cex:
3392
      result.cex = cex
3393
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3394
    result.write(oprot)
3395
    oprot.writeMessageEnd()
3396
    oprot.trans.flush()
3397
 
3398
  def process_isActive(self, seqid, iprot, oprot):
3399
    args = isActive_args()
3400
    args.read(iprot)
3401
    iprot.readMessageEnd()
3402
    result = isActive_result()
3403
    try:
3404
      result.success = self._handler.isActive(args.itemId)
3405
    except CatalogServiceException, isex:
3406
      result.isex = isex
3407
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3408
    result.write(oprot)
3409
    oprot.writeMessageEnd()
3410
    oprot.trans.flush()
3411
 
3412
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3413
    args = getItemStatusDescription_args()
3414
    args.read(iprot)
3415
    iprot.readMessageEnd()
3416
    result = getItemStatusDescription_result()
3417
    try:
3418
      result.success = self._handler.getItemStatusDescription(args.itemId)
3419
    except CatalogServiceException, isex:
3420
      result.isex = isex
3421
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3422
    result.write(oprot)
3423
    oprot.writeMessageEnd()
3424
    oprot.trans.flush()
3425
 
3426
  def process_startItemOn(self, seqid, iprot, oprot):
3427
    args = startItemOn_args()
3428
    args.read(iprot)
3429
    iprot.readMessageEnd()
3430
    result = startItemOn_result()
3431
    try:
3432
      self._handler.startItemOn(args.item_id, args.timestamp)
3433
    except CatalogServiceException, cex:
3434
      result.cex = cex
3435
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3436
    result.write(oprot)
3437
    oprot.writeMessageEnd()
3438
    oprot.trans.flush()
3439
 
3440
  def process_retireItemOn(self, seqid, iprot, oprot):
3441
    args = retireItemOn_args()
3442
    args.read(iprot)
3443
    iprot.readMessageEnd()
3444
    result = retireItemOn_result()
3445
    try:
3446
      self._handler.retireItemOn(args.item_id, args.timestamp)
3447
    except CatalogServiceException, cex:
3448
      result.cex = cex
3449
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3450
    result.write(oprot)
3451
    oprot.writeMessageEnd()
3452
    oprot.trans.flush()
3453
 
3454
  def process_changeItemStatus(self, seqid, iprot, oprot):
3455
    args = changeItemStatus_args()
3456
    args.read(iprot)
3457
    iprot.readMessageEnd()
3458
    result = changeItemStatus_result()
3459
    try:
3460
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3461
    except CatalogServiceException, cex:
3462
      result.cex = cex
3463
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3464
    result.write(oprot)
3465
    oprot.writeMessageEnd()
3466
    oprot.trans.flush()
3467
 
3468
  def process_getItem(self, seqid, iprot, oprot):
3469
    args = getItem_args()
3470
    args.read(iprot)
3471
    iprot.readMessageEnd()
3472
    result = getItem_result()
3473
    try:
3474
      result.success = self._handler.getItem(args.item_id)
3475
    except CatalogServiceException, cex:
3476
      result.cex = cex
3477
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3478
    result.write(oprot)
3479
    oprot.writeMessageEnd()
3480
    oprot.trans.flush()
3481
 
3482
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3483
    args = getItemsByCatalogId_args()
3484
    args.read(iprot)
3485
    iprot.readMessageEnd()
3486
    result = getItemsByCatalogId_result()
3487
    try:
3488
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3489
    except CatalogServiceException, cex:
3490
      result.cex = cex
3491
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
3496
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3497
    args = getValidItemsByCatalogId_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = getValidItemsByCatalogId_result()
3501
    try:
3502
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3503
    except CatalogServiceException, cex:
3504
      result.cex = cex
3505
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3506
    result.write(oprot)
3507
    oprot.writeMessageEnd()
3508
    oprot.trans.flush()
3509
 
3510
  def process_getAllItems(self, seqid, iprot, oprot):
3511
    args = getAllItems_args()
3512
    args.read(iprot)
3513
    iprot.readMessageEnd()
3514
    result = getAllItems_result()
3515
    try:
3516
      result.success = self._handler.getAllItems(args.isActive)
3517
    except CatalogServiceException, cex:
3518
      result.cex = cex
3519
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3520
    result.write(oprot)
3521
    oprot.writeMessageEnd()
3522
    oprot.trans.flush()
3523
 
3524
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3525
    args = getAllItemsByStatus_args()
3526
    args.read(iprot)
3527
    iprot.readMessageEnd()
3528
    result = getAllItemsByStatus_result()
3529
    try:
3530
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3531
    except CatalogServiceException, cex:
3532
      result.cex = cex
3533
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3534
    result.write(oprot)
3535
    oprot.writeMessageEnd()
3536
    oprot.trans.flush()
3537
 
3538
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3539
    args = markItemAsContentComplete_args()
3540
    args.read(iprot)
3541
    iprot.readMessageEnd()
3542
    result = markItemAsContentComplete_result()
3543
    try:
3544
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3545
    except CatalogServiceException, cex:
3546
      result.cex = cex
3547
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3548
    result.write(oprot)
3549
    oprot.writeMessageEnd()
3550
    oprot.trans.flush()
3551
 
3552
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3553
    args = getAllItemsInRange_args()
3554
    args.read(iprot)
3555
    iprot.readMessageEnd()
3556
    result = getAllItemsInRange_result()
3557
    try:
3558
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3559
    except CatalogServiceException, cex:
3560
      result.cex = cex
3561
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
3565
 
3566
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3567
    args = getAllItemsByStatusInRange_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = getAllItemsByStatusInRange_result()
3571
    try:
3572
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3573
    except CatalogServiceException, cex:
3574
      result.cex = cex
3575
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3576
    result.write(oprot)
3577
    oprot.writeMessageEnd()
3578
    oprot.trans.flush()
3579
 
3580
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3581
    args = getItemCountByStatus_args()
3582
    args.read(iprot)
3583
    iprot.readMessageEnd()
3584
    result = getItemCountByStatus_result()
3585
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3586
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3587
    result.write(oprot)
3588
    oprot.writeMessageEnd()
3589
    oprot.trans.flush()
3590
 
3591
  def process_getBestSellers(self, seqid, iprot, oprot):
3592
    args = getBestSellers_args()
3593
    args.read(iprot)
3594
    iprot.readMessageEnd()
3595
    result = getBestSellers_result()
3596
    try:
3597
      result.success = self._handler.getBestSellers()
3598
    except CatalogServiceException, isex:
3599
      result.isex = isex
3600
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3606
    args = getBestSellersCatalogIds_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getBestSellersCatalogIds_result()
3610
    try:
3611
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3612
    except CatalogServiceException, cex:
3613
      result.cex = cex
3614
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3615
    result.write(oprot)
3616
    oprot.writeMessageEnd()
3617
    oprot.trans.flush()
3618
 
3619
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3620
    args = getBestSellersCount_args()
3621
    args.read(iprot)
3622
    iprot.readMessageEnd()
3623
    result = getBestSellersCount_result()
3624
    try:
3625
      result.success = self._handler.getBestSellersCount()
3626
    except CatalogServiceException, cex:
3627
      result.cex = cex
3628
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3629
    result.write(oprot)
3630
    oprot.writeMessageEnd()
3631
    oprot.trans.flush()
3632
 
3633
  def process_getBestDeals(self, seqid, iprot, oprot):
3634
    args = getBestDeals_args()
3635
    args.read(iprot)
3636
    iprot.readMessageEnd()
3637
    result = getBestDeals_result()
3638
    try:
3639
      result.success = self._handler.getBestDeals()
3640
    except CatalogServiceException, isex:
3641
      result.isex = isex
3642
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3643
    result.write(oprot)
3644
    oprot.writeMessageEnd()
3645
    oprot.trans.flush()
3646
 
3647
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3648
    args = getBestDealsCatalogIds_args()
3649
    args.read(iprot)
3650
    iprot.readMessageEnd()
3651
    result = getBestDealsCatalogIds_result()
3652
    try:
3653
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3654
    except CatalogServiceException, cex:
3655
      result.cex = cex
3656
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
3660
 
3661
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3662
    args = getBestDealsCount_args()
3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
3665
    result = getBestDealsCount_result()
3666
    try:
3667
      result.success = self._handler.getBestDealsCount()
3668
    except CatalogServiceException, cex:
3669
      result.cex = cex
3670
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_getComingSoon(self, seqid, iprot, oprot):
3676
    args = getComingSoon_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = getComingSoon_result()
3680
    try:
3681
      result.success = self._handler.getComingSoon()
3682
    except CatalogServiceException, isex:
3683
      result.isex = isex
3684
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3690
    args = getComingSoonCatalogIds_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getComingSoonCatalogIds_result()
3694
    try:
3695
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3696
    except CatalogServiceException, cex:
3697
      result.cex = cex
3698
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
3703
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3704
    args = getComingSoonCount_args()
3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
3707
    result = getComingSoonCount_result()
3708
    try:
3709
      result.success = self._handler.getComingSoonCount()
3710
    except CatalogServiceException, cex:
3711
      result.cex = cex
3712
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3713
    result.write(oprot)
3714
    oprot.writeMessageEnd()
3715
    oprot.trans.flush()
3716
 
3717
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3718
    args = getLatestArrivals_args()
3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
3721
    result = getLatestArrivals_result()
3722
    try:
3723
      result.success = self._handler.getLatestArrivals()
3724
    except CatalogServiceException, isex:
3725
      result.isex = isex
3726
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
3731
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3732
    args = getLatestArrivalsCatalogIds_args()
3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
3735
    result = getLatestArrivalsCatalogIds_result()
3736
    try:
3737
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3738
    except CatalogServiceException, cex:
3739
      result.cex = cex
3740
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3741
    result.write(oprot)
3742
    oprot.writeMessageEnd()
3743
    oprot.trans.flush()
3744
 
3745
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3746
    args = getLatestArrivalsCount_args()
3747
    args.read(iprot)
3748
    iprot.readMessageEnd()
3749
    result = getLatestArrivalsCount_result()
3750
    try:
3751
      result.success = self._handler.getLatestArrivalsCount()
3752
    except CatalogServiceException, cex:
3753
      result.cex = cex
3754
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
3759
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3760
    args = generateNewEntityID_args()
3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
3763
    result = generateNewEntityID_result()
3764
    result.success = self._handler.generateNewEntityID()
3765
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
3769
 
3770
  def process_addCategory(self, seqid, iprot, oprot):
3771
    args = addCategory_args()
3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
3774
    result = addCategory_result()
3775
    result.success = self._handler.addCategory(args.category)
3776
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3777
    result.write(oprot)
3778
    oprot.writeMessageEnd()
3779
    oprot.trans.flush()
3780
 
3781
  def process_getCategory(self, seqid, iprot, oprot):
3782
    args = getCategory_args()
3783
    args.read(iprot)
3784
    iprot.readMessageEnd()
3785
    result = getCategory_result()
3786
    result.success = self._handler.getCategory(args.id)
3787
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
3791
 
3792
  def process_getAllCategories(self, seqid, iprot, oprot):
3793
    args = getAllCategories_args()
3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
3796
    result = getAllCategories_result()
3797
    result.success = self._handler.getAllCategories()
3798
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3799
    result.write(oprot)
3800
    oprot.writeMessageEnd()
3801
    oprot.trans.flush()
3802
 
3803
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3804
    args = getAllSimilarItems_args()
3805
    args.read(iprot)
3806
    iprot.readMessageEnd()
3807
    result = getAllSimilarItems_result()
3808
    result.success = self._handler.getAllSimilarItems(args.itemId)
3809
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3810
    result.write(oprot)
3811
    oprot.writeMessageEnd()
3812
    oprot.trans.flush()
3813
 
3814
  def process_addSimilarItem(self, seqid, iprot, oprot):
3815
    args = addSimilarItem_args()
3816
    args.read(iprot)
3817
    iprot.readMessageEnd()
3818
    result = addSimilarItem_result()
3819
    try:
3820
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3821
    except CatalogServiceException, cex:
3822
      result.cex = cex
3823
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3824
    result.write(oprot)
3825
    oprot.writeMessageEnd()
3826
    oprot.trans.flush()
3827
 
6512 kshitij.so 3828
  def process_addTag(self, seqid, iprot, oprot):
3829
    args = addTag_args()
3830
    args.read(iprot)
3831
    iprot.readMessageEnd()
3832
    result = addTag_result()
3833
    result.success = self._handler.addTag(args.displayName, args.itemId)
3834
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3835
    result.write(oprot)
3836
    oprot.writeMessageEnd()
3837
    oprot.trans.flush()
3838
 
3839
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3840
    args = deleteEntityTag_args()
3841
    args.read(iprot)
3842
    iprot.readMessageEnd()
3843
    result = deleteEntityTag_result()
3844
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3845
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3846
    result.write(oprot)
3847
    oprot.writeMessageEnd()
3848
    oprot.trans.flush()
3849
 
3850
  def process_deleteTag(self, seqid, iprot, oprot):
3851
    args = deleteTag_args()
3852
    args.read(iprot)
3853
    iprot.readMessageEnd()
3854
    result = deleteTag_result()
3855
    result.success = self._handler.deleteTag(args.displayName)
3856
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
3861
  def process_getAllTags(self, seqid, iprot, oprot):
3862
    args = getAllTags_args()
3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
3865
    result = getAllTags_result()
3866
    result.success = self._handler.getAllTags()
3867
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3868
    result.write(oprot)
3869
    oprot.writeMessageEnd()
3870
    oprot.trans.flush()
3871
 
3872
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3873
    args = getAllEntitiesByTagName_args()
3874
    args.read(iprot)
3875
    iprot.readMessageEnd()
3876
    result = getAllEntitiesByTagName_result()
3877
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3878
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3879
    result.write(oprot)
3880
    oprot.writeMessageEnd()
3881
    oprot.trans.flush()
3882
 
6845 amit.gupta 3883
  def process_getAllEntityTags(self, seqid, iprot, oprot):
3884
    args = getAllEntityTags_args()
3885
    args.read(iprot)
3886
    iprot.readMessageEnd()
3887
    result = getAllEntityTags_result()
3888
    result.success = self._handler.getAllEntityTags()
3889
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
3890
    result.write(oprot)
3891
    oprot.writeMessageEnd()
3892
    oprot.trans.flush()
3893
 
6850 kshitij.so 3894
  def process_addBanner(self, seqid, iprot, oprot):
3895
    args = addBanner_args()
3896
    args.read(iprot)
3897
    iprot.readMessageEnd()
3898
    result = addBanner_result()
3899
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
3900
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
3901
    result.write(oprot)
3902
    oprot.writeMessageEnd()
3903
    oprot.trans.flush()
3904
 
3905
  def process_getAllBanners(self, seqid, iprot, oprot):
3906
    args = getAllBanners_args()
3907
    args.read(iprot)
3908
    iprot.readMessageEnd()
3909
    result = getAllBanners_result()
3910
    result.success = self._handler.getAllBanners()
3911
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
3912
    result.write(oprot)
3913
    oprot.writeMessageEnd()
3914
    oprot.trans.flush()
3915
 
3916
  def process_deleteBanner(self, seqid, iprot, oprot):
3917
    args = deleteBanner_args()
3918
    args.read(iprot)
3919
    iprot.readMessageEnd()
3920
    result = deleteBanner_result()
3921
    result.success = self._handler.deleteBanner(args.bannerName)
3922
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
3923
    result.write(oprot)
3924
    oprot.writeMessageEnd()
3925
    oprot.trans.flush()
3926
 
3927
  def process_getBannerDetails(self, seqid, iprot, oprot):
3928
    args = getBannerDetails_args()
3929
    args.read(iprot)
3930
    iprot.readMessageEnd()
3931
    result = getBannerDetails_result()
3932
    result.success = self._handler.getBannerDetails(args.bannerName)
3933
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
3934
    result.write(oprot)
3935
    oprot.writeMessageEnd()
3936
    oprot.trans.flush()
3937
 
3938
  def process_getActiveBanners(self, seqid, iprot, oprot):
3939
    args = getActiveBanners_args()
3940
    args.read(iprot)
3941
    iprot.readMessageEnd()
3942
    result = getActiveBanners_result()
3943
    result.success = self._handler.getActiveBanners()
3944
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
3945
    result.write(oprot)
3946
    oprot.writeMessageEnd()
3947
    oprot.trans.flush()
3948
 
6849 kshitij.so 3949
  def process_addBannerMap(self, seqid, iprot, oprot):
3950
    args = addBannerMap_args()
3951
    args.read(iprot)
3952
    iprot.readMessageEnd()
3953
    result = addBannerMap_result()
3954
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
3955
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
3956
    result.write(oprot)
3957
    oprot.writeMessageEnd()
3958
    oprot.trans.flush()
3959
 
3960
  def process_deleteBannerMap(self, seqid, iprot, oprot):
3961
    args = deleteBannerMap_args()
3962
    args.read(iprot)
3963
    iprot.readMessageEnd()
3964
    result = deleteBannerMap_result()
3965
    result.success = self._handler.deleteBannerMap(args.bannerName)
3966
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
3967
    result.write(oprot)
3968
    oprot.writeMessageEnd()
3969
    oprot.trans.flush()
3970
 
3971
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
3972
    args = getBannerMapDetails_args()
3973
    args.read(iprot)
3974
    iprot.readMessageEnd()
3975
    result = getBannerMapDetails_result()
3976
    result.success = self._handler.getBannerMapDetails(args.bannerName)
3977
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
3978
    result.write(oprot)
3979
    oprot.writeMessageEnd()
3980
    oprot.trans.flush()
3981
 
5944 mandeep.dh 3982
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3983
    args = deleteSimilarItem_args()
3984
    args.read(iprot)
3985
    iprot.readMessageEnd()
3986
    result = deleteSimilarItem_result()
3987
    try:
3988
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3989
    except CatalogServiceException, cex:
3990
      result.cex = cex
3991
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3992
    result.write(oprot)
3993
    oprot.writeMessageEnd()
3994
    oprot.trans.flush()
3995
 
3996
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3997
    args = checkSimilarItem_args()
3998
    args.read(iprot)
3999
    iprot.readMessageEnd()
4000
    result = checkSimilarItem_result()
4001
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4002
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4003
    result.write(oprot)
4004
    oprot.writeMessageEnd()
4005
    oprot.trans.flush()
4006
 
4007
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4008
    args = validateRiskyStatus_args()
4009
    args.read(iprot)
4010
    iprot.readMessageEnd()
4011
    result = validateRiskyStatus_result()
4012
    self._handler.validateRiskyStatus(args.itemId)
4013
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4014
    result.write(oprot)
4015
    oprot.writeMessageEnd()
4016
    oprot.trans.flush()
4017
 
4018
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4019
    args = changeItemRiskyFlag_args()
4020
    args.read(iprot)
4021
    iprot.readMessageEnd()
4022
    result = changeItemRiskyFlag_result()
4023
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4024
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4025
    result.write(oprot)
4026
    oprot.writeMessageEnd()
4027
    oprot.trans.flush()
4028
 
4029
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4030
    args = getItemsByRiskyFlag_args()
4031
    args.read(iprot)
4032
    iprot.readMessageEnd()
4033
    result = getItemsByRiskyFlag_result()
4034
    result.success = self._handler.getItemsByRiskyFlag()
4035
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4036
    result.write(oprot)
4037
    oprot.writeMessageEnd()
4038
    oprot.trans.flush()
4039
 
4040
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4041
    args = getItemsForMasterSheet_args()
4042
    args.read(iprot)
4043
    iprot.readMessageEnd()
4044
    result = getItemsForMasterSheet_result()
4045
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4046
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4047
    result.write(oprot)
4048
    oprot.writeMessageEnd()
4049
    oprot.trans.flush()
4050
 
4051
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4052
    args = getSimilarItemsCatalogIds_args()
4053
    args.read(iprot)
4054
    iprot.readMessageEnd()
4055
    result = getSimilarItemsCatalogIds_result()
4056
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4057
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4058
    result.write(oprot)
4059
    oprot.writeMessageEnd()
4060
    oprot.trans.flush()
4061
 
4062
  def process_addProductNotification(self, seqid, iprot, oprot):
4063
    args = addProductNotification_args()
4064
    args.read(iprot)
4065
    iprot.readMessageEnd()
4066
    result = addProductNotification_result()
4067
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4068
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4069
    result.write(oprot)
4070
    oprot.writeMessageEnd()
4071
    oprot.trans.flush()
4072
 
4073
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4074
    args = sendProductNotifications_args()
4075
    args.read(iprot)
4076
    iprot.readMessageEnd()
4077
    result = sendProductNotifications_result()
4078
    result.success = self._handler.sendProductNotifications()
4079
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4080
    result.write(oprot)
4081
    oprot.writeMessageEnd()
4082
    oprot.trans.flush()
4083
 
4084
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4085
    args = getAllBrandsByCategory_args()
4086
    args.read(iprot)
4087
    iprot.readMessageEnd()
4088
    result = getAllBrandsByCategory_result()
4089
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4090
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4091
    result.write(oprot)
4092
    oprot.writeMessageEnd()
4093
    oprot.trans.flush()
4094
 
4095
  def process_getAllBrands(self, seqid, iprot, oprot):
4096
    args = getAllBrands_args()
4097
    args.read(iprot)
4098
    iprot.readMessageEnd()
4099
    result = getAllBrands_result()
4100
    result.success = self._handler.getAllBrands()
4101
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4102
    result.write(oprot)
4103
    oprot.writeMessageEnd()
4104
    oprot.trans.flush()
4105
 
4106
  def process_getAllSources(self, seqid, iprot, oprot):
4107
    args = getAllSources_args()
4108
    args.read(iprot)
4109
    iprot.readMessageEnd()
4110
    result = getAllSources_result()
4111
    result.success = self._handler.getAllSources()
4112
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4113
    result.write(oprot)
4114
    oprot.writeMessageEnd()
4115
    oprot.trans.flush()
4116
 
4117
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4118
    args = getItemPricingBySource_args()
4119
    args.read(iprot)
4120
    iprot.readMessageEnd()
4121
    result = getItemPricingBySource_result()
4122
    try:
4123
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4124
    except CatalogServiceException, cex:
4125
      result.cex = cex
4126
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4127
    result.write(oprot)
4128
    oprot.writeMessageEnd()
4129
    oprot.trans.flush()
4130
 
4131
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4132
    args = addSourceItemPricing_args()
4133
    args.read(iprot)
4134
    iprot.readMessageEnd()
4135
    result = addSourceItemPricing_result()
4136
    try:
4137
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4138
    except CatalogServiceException, cex:
4139
      result.cex = cex
4140
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4141
    result.write(oprot)
4142
    oprot.writeMessageEnd()
4143
    oprot.trans.flush()
4144
 
4145
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4146
    args = getAllSourcePricing_args()
4147
    args.read(iprot)
4148
    iprot.readMessageEnd()
4149
    result = getAllSourcePricing_result()
4150
    try:
4151
      result.success = self._handler.getAllSourcePricing(args.itemId)
4152
    except CatalogServiceException, cex:
4153
      result.cex = cex
4154
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4155
    result.write(oprot)
4156
    oprot.writeMessageEnd()
4157
    oprot.trans.flush()
4158
 
4159
  def process_getItemForSource(self, seqid, iprot, oprot):
4160
    args = getItemForSource_args()
4161
    args.read(iprot)
4162
    iprot.readMessageEnd()
4163
    result = getItemForSource_result()
4164
    try:
4165
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4166
    except CatalogServiceException, cex:
4167
      result.cex = cex
4168
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4169
    result.write(oprot)
4170
    oprot.writeMessageEnd()
4171
    oprot.trans.flush()
4172
 
4173
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4174
    args = searchItemsInRange_args()
4175
    args.read(iprot)
4176
    iprot.readMessageEnd()
4177
    result = searchItemsInRange_result()
4178
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4179
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4180
    result.write(oprot)
4181
    oprot.writeMessageEnd()
4182
    oprot.trans.flush()
4183
 
4184
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4185
    args = getSearchResultCount_args()
4186
    args.read(iprot)
4187
    iprot.readMessageEnd()
4188
    result = getSearchResultCount_result()
4189
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4190
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4191
    result.write(oprot)
4192
    oprot.writeMessageEnd()
4193
    oprot.trans.flush()
4194
 
4195
  def process_getProductNotifications(self, seqid, iprot, oprot):
4196
    args = getProductNotifications_args()
4197
    args.read(iprot)
4198
    iprot.readMessageEnd()
4199
    result = getProductNotifications_result()
4200
    result.success = self._handler.getProductNotifications(args.startDateTime)
4201
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4202
    result.write(oprot)
4203
    oprot.writeMessageEnd()
4204
    oprot.trans.flush()
4205
 
4206
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4207
    args = getProductNotificationRequestCount_args()
4208
    args.read(iprot)
4209
    iprot.readMessageEnd()
4210
    result = getProductNotificationRequestCount_result()
4211
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4212
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4213
    result.write(oprot)
4214
    oprot.writeMessageEnd()
4215
    oprot.trans.flush()
4216
 
4217
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4218
    args = addAuthorizationLog_args()
4219
    args.read(iprot)
4220
    iprot.readMessageEnd()
4221
    result = addAuthorizationLog_result()
4222
    try:
4223
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4224
    except CatalogServiceException, cex:
4225
      result.cex = cex
4226
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4227
    result.write(oprot)
4228
    oprot.writeMessageEnd()
4229
    oprot.trans.flush()
4230
 
4231
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
4232
    args = getClearanceSaleCatalogIds_args()
4233
    args.read(iprot)
4234
    iprot.readMessageEnd()
4235
    result = getClearanceSaleCatalogIds_result()
4236
    try:
4237
      result.success = self._handler.getClearanceSaleCatalogIds()
4238
    except CatalogServiceException, cex:
4239
      result.cex = cex
4240
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
4241
    result.write(oprot)
4242
    oprot.writeMessageEnd()
4243
    oprot.trans.flush()
4244
 
4245
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4246
    args = addupdateVoucherForItem_args()
4247
    args.read(iprot)
4248
    iprot.readMessageEnd()
4249
    result = addupdateVoucherForItem_result()
4250
    try:
4251
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4252
    except CatalogServiceException, cex:
4253
      result.cex = cex
4254
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4255
    result.write(oprot)
4256
    oprot.writeMessageEnd()
4257
    oprot.trans.flush()
4258
 
4259
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4260
    args = deleteVoucherForItem_args()
4261
    args.read(iprot)
4262
    iprot.readMessageEnd()
4263
    result = deleteVoucherForItem_result()
4264
    try:
4265
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4266
    except CatalogServiceException, cex:
4267
      result.cex = cex
4268
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4269
    result.write(oprot)
4270
    oprot.writeMessageEnd()
4271
    oprot.trans.flush()
4272
 
4273
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4274
    args = getVoucherAmount_args()
4275
    args.read(iprot)
4276
    iprot.readMessageEnd()
4277
    result = getVoucherAmount_result()
4278
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4279
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4280
    result.write(oprot)
4281
    oprot.writeMessageEnd()
4282
    oprot.trans.flush()
4283
 
4284
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4285
    args = getAllItemVouchers_args()
4286
    args.read(iprot)
4287
    iprot.readMessageEnd()
4288
    result = getAllItemVouchers_result()
4289
    result.success = self._handler.getAllItemVouchers(args.itemId)
4290
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4291
    result.write(oprot)
4292
    oprot.writeMessageEnd()
4293
    oprot.trans.flush()
4294
 
4295
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4296
    args = isValidCatalogItemId_args()
4297
    args.read(iprot)
4298
    iprot.readMessageEnd()
4299
    result = isValidCatalogItemId_result()
4300
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4301
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4302
    result.write(oprot)
4303
    oprot.writeMessageEnd()
4304
    oprot.trans.flush()
4305
 
6039 amit.gupta 4306
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4307
    args = getVatPercentageForItem_args()
4308
    args.read(iprot)
4309
    iprot.readMessageEnd()
4310
    result = getVatPercentageForItem_result()
4311
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4312
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4313
    result.write(oprot)
4314
    oprot.writeMessageEnd()
4315
    oprot.trans.flush()
5944 mandeep.dh 4316
 
6039 amit.gupta 4317
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4318
    args = getVatAmountForItem_args()
4319
    args.read(iprot)
4320
    iprot.readMessageEnd()
4321
    result = getVatAmountForItem_result()
4322
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4323
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4324
    result.write(oprot)
4325
    oprot.writeMessageEnd()
4326
    oprot.trans.flush()
4327
 
6531 vikram.rag 4328
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4329
    args = getAllIgnoredInventoryUpdateItemsList_args()
4330
    args.read(iprot)
4331
    iprot.readMessageEnd()
4332
    result = getAllIgnoredInventoryUpdateItemsList_result()
4333
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4334
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4335
    result.write(oprot)
4336
    oprot.writeMessageEnd()
4337
    oprot.trans.flush()
6039 amit.gupta 4338
 
6821 amar.kumar 4339
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4340
    args = getAllAliveItems_args()
4341
    args.read(iprot)
4342
    iprot.readMessageEnd()
4343
    result = getAllAliveItems_result()
4344
    result.success = self._handler.getAllAliveItems()
4345
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4346
    result.write(oprot)
4347
    oprot.writeMessageEnd()
4348
    oprot.trans.flush()
4349
 
6805 anupam.sin 4350
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4351
    args = getInsuranceAmount_args()
4352
    args.read(iprot)
4353
    iprot.readMessageEnd()
4354
    result = getInsuranceAmount_result()
4355
    result.success = self._handler.getInsuranceAmount(args.itemId, args.insurerId, args.quantity)
4356
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4357
    result.write(oprot)
4358
    oprot.writeMessageEnd()
4359
    oprot.trans.flush()
6531 vikram.rag 4360
 
6805 anupam.sin 4361
  def process_getInsurer(self, seqid, iprot, oprot):
4362
    args = getInsurer_args()
4363
    args.read(iprot)
4364
    iprot.readMessageEnd()
4365
    result = getInsurer_result()
4366
    result.success = self._handler.getInsurer(args.insurerId)
4367
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4368
    result.write(oprot)
4369
    oprot.writeMessageEnd()
4370
    oprot.trans.flush()
4371
 
6838 vikram.rag 4372
  def process_getAllInsurers(self, seqid, iprot, oprot):
4373
    args = getAllInsurers_args()
4374
    args.read(iprot)
4375
    iprot.readMessageEnd()
4376
    result = getAllInsurers_result()
4377
    result.success = self._handler.getAllInsurers()
4378
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4379
    result.write(oprot)
4380
    oprot.writeMessageEnd()
4381
    oprot.trans.flush()
6805 anupam.sin 4382
 
6838 vikram.rag 4383
 
5944 mandeep.dh 4384
# HELPER FUNCTIONS AND STRUCTURES
4385
 
4386
class addItem_args:
4387
  """
4388
  Attributes:
4389
   - item
4390
  """
4391
 
4392
  thrift_spec = (
4393
    None, # 0
4394
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4395
  )
4396
 
4397
  def __init__(self, item=None,):
4398
    self.item = item
4399
 
4400
  def read(self, iprot):
4401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4403
      return
4404
    iprot.readStructBegin()
4405
    while True:
4406
      (fname, ftype, fid) = iprot.readFieldBegin()
4407
      if ftype == TType.STOP:
4408
        break
4409
      if fid == 1:
4410
        if ftype == TType.STRUCT:
4411
          self.item = Item()
4412
          self.item.read(iprot)
4413
        else:
4414
          iprot.skip(ftype)
4415
      else:
4416
        iprot.skip(ftype)
4417
      iprot.readFieldEnd()
4418
    iprot.readStructEnd()
4419
 
4420
  def write(self, oprot):
4421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4423
      return
4424
    oprot.writeStructBegin('addItem_args')
4425
    if self.item is not None:
4426
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4427
      self.item.write(oprot)
4428
      oprot.writeFieldEnd()
4429
    oprot.writeFieldStop()
4430
    oprot.writeStructEnd()
4431
 
4432
  def validate(self):
4433
    return
4434
 
4435
 
4436
  def __repr__(self):
4437
    L = ['%s=%r' % (key, value)
4438
      for key, value in self.__dict__.iteritems()]
4439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4440
 
4441
  def __eq__(self, other):
4442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4443
 
4444
  def __ne__(self, other):
4445
    return not (self == other)
4446
 
4447
class addItem_result:
4448
  """
4449
  Attributes:
4450
   - success
4451
   - cex
4452
  """
4453
 
4454
  thrift_spec = (
4455
    (0, TType.I64, 'success', None, None, ), # 0
4456
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4457
  )
4458
 
4459
  def __init__(self, success=None, cex=None,):
4460
    self.success = success
4461
    self.cex = cex
4462
 
4463
  def read(self, iprot):
4464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4466
      return
4467
    iprot.readStructBegin()
4468
    while True:
4469
      (fname, ftype, fid) = iprot.readFieldBegin()
4470
      if ftype == TType.STOP:
4471
        break
4472
      if fid == 0:
4473
        if ftype == TType.I64:
4474
          self.success = iprot.readI64();
4475
        else:
4476
          iprot.skip(ftype)
4477
      elif fid == 1:
4478
        if ftype == TType.STRUCT:
4479
          self.cex = CatalogServiceException()
4480
          self.cex.read(iprot)
4481
        else:
4482
          iprot.skip(ftype)
4483
      else:
4484
        iprot.skip(ftype)
4485
      iprot.readFieldEnd()
4486
    iprot.readStructEnd()
4487
 
4488
  def write(self, oprot):
4489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4491
      return
4492
    oprot.writeStructBegin('addItem_result')
4493
    if self.success is not None:
4494
      oprot.writeFieldBegin('success', TType.I64, 0)
4495
      oprot.writeI64(self.success)
4496
      oprot.writeFieldEnd()
4497
    if self.cex is not None:
4498
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4499
      self.cex.write(oprot)
4500
      oprot.writeFieldEnd()
4501
    oprot.writeFieldStop()
4502
    oprot.writeStructEnd()
4503
 
4504
  def validate(self):
4505
    return
4506
 
4507
 
4508
  def __repr__(self):
4509
    L = ['%s=%r' % (key, value)
4510
      for key, value in self.__dict__.iteritems()]
4511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4512
 
4513
  def __eq__(self, other):
4514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4515
 
4516
  def __ne__(self, other):
4517
    return not (self == other)
4518
 
4519
class updateItem_args:
4520
  """
4521
  Attributes:
4522
   - item
4523
  """
4524
 
4525
  thrift_spec = (
4526
    None, # 0
4527
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4528
  )
4529
 
4530
  def __init__(self, item=None,):
4531
    self.item = item
4532
 
4533
  def read(self, iprot):
4534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4536
      return
4537
    iprot.readStructBegin()
4538
    while True:
4539
      (fname, ftype, fid) = iprot.readFieldBegin()
4540
      if ftype == TType.STOP:
4541
        break
4542
      if fid == 1:
4543
        if ftype == TType.STRUCT:
4544
          self.item = Item()
4545
          self.item.read(iprot)
4546
        else:
4547
          iprot.skip(ftype)
4548
      else:
4549
        iprot.skip(ftype)
4550
      iprot.readFieldEnd()
4551
    iprot.readStructEnd()
4552
 
4553
  def write(self, oprot):
4554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4556
      return
4557
    oprot.writeStructBegin('updateItem_args')
4558
    if self.item is not None:
4559
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4560
      self.item.write(oprot)
4561
      oprot.writeFieldEnd()
4562
    oprot.writeFieldStop()
4563
    oprot.writeStructEnd()
4564
 
4565
  def validate(self):
4566
    return
4567
 
4568
 
4569
  def __repr__(self):
4570
    L = ['%s=%r' % (key, value)
4571
      for key, value in self.__dict__.iteritems()]
4572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4573
 
4574
  def __eq__(self, other):
4575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4576
 
4577
  def __ne__(self, other):
4578
    return not (self == other)
4579
 
4580
class updateItem_result:
4581
  """
4582
  Attributes:
4583
   - success
4584
   - cex
4585
  """
4586
 
4587
  thrift_spec = (
4588
    (0, TType.I64, 'success', None, None, ), # 0
4589
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4590
  )
4591
 
4592
  def __init__(self, success=None, cex=None,):
4593
    self.success = success
4594
    self.cex = cex
4595
 
4596
  def read(self, iprot):
4597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4599
      return
4600
    iprot.readStructBegin()
4601
    while True:
4602
      (fname, ftype, fid) = iprot.readFieldBegin()
4603
      if ftype == TType.STOP:
4604
        break
4605
      if fid == 0:
4606
        if ftype == TType.I64:
4607
          self.success = iprot.readI64();
4608
        else:
4609
          iprot.skip(ftype)
4610
      elif fid == 1:
4611
        if ftype == TType.STRUCT:
4612
          self.cex = CatalogServiceException()
4613
          self.cex.read(iprot)
4614
        else:
4615
          iprot.skip(ftype)
4616
      else:
4617
        iprot.skip(ftype)
4618
      iprot.readFieldEnd()
4619
    iprot.readStructEnd()
4620
 
4621
  def write(self, oprot):
4622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4624
      return
4625
    oprot.writeStructBegin('updateItem_result')
4626
    if self.success is not None:
4627
      oprot.writeFieldBegin('success', TType.I64, 0)
4628
      oprot.writeI64(self.success)
4629
      oprot.writeFieldEnd()
4630
    if self.cex is not None:
4631
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4632
      self.cex.write(oprot)
4633
      oprot.writeFieldEnd()
4634
    oprot.writeFieldStop()
4635
    oprot.writeStructEnd()
4636
 
4637
  def validate(self):
4638
    return
4639
 
4640
 
4641
  def __repr__(self):
4642
    L = ['%s=%r' % (key, value)
4643
      for key, value in self.__dict__.iteritems()]
4644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4645
 
4646
  def __eq__(self, other):
4647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4648
 
4649
  def __ne__(self, other):
4650
    return not (self == other)
4651
 
4652
class isActive_args:
4653
  """
4654
  Attributes:
4655
   - itemId
4656
  """
4657
 
4658
  thrift_spec = (
4659
    None, # 0
4660
    (1, TType.I64, 'itemId', None, None, ), # 1
4661
  )
4662
 
4663
  def __init__(self, itemId=None,):
4664
    self.itemId = itemId
4665
 
4666
  def read(self, iprot):
4667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4669
      return
4670
    iprot.readStructBegin()
4671
    while True:
4672
      (fname, ftype, fid) = iprot.readFieldBegin()
4673
      if ftype == TType.STOP:
4674
        break
4675
      if fid == 1:
4676
        if ftype == TType.I64:
4677
          self.itemId = iprot.readI64();
4678
        else:
4679
          iprot.skip(ftype)
4680
      else:
4681
        iprot.skip(ftype)
4682
      iprot.readFieldEnd()
4683
    iprot.readStructEnd()
4684
 
4685
  def write(self, oprot):
4686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4688
      return
4689
    oprot.writeStructBegin('isActive_args')
4690
    if self.itemId is not None:
4691
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4692
      oprot.writeI64(self.itemId)
4693
      oprot.writeFieldEnd()
4694
    oprot.writeFieldStop()
4695
    oprot.writeStructEnd()
4696
 
4697
  def validate(self):
4698
    return
4699
 
4700
 
4701
  def __repr__(self):
4702
    L = ['%s=%r' % (key, value)
4703
      for key, value in self.__dict__.iteritems()]
4704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4705
 
4706
  def __eq__(self, other):
4707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4708
 
4709
  def __ne__(self, other):
4710
    return not (self == other)
4711
 
4712
class isActive_result:
4713
  """
4714
  Attributes:
4715
   - success
4716
   - isex
4717
  """
4718
 
4719
  thrift_spec = (
4720
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4721
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4722
  )
4723
 
4724
  def __init__(self, success=None, isex=None,):
4725
    self.success = success
4726
    self.isex = isex
4727
 
4728
  def read(self, iprot):
4729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4731
      return
4732
    iprot.readStructBegin()
4733
    while True:
4734
      (fname, ftype, fid) = iprot.readFieldBegin()
4735
      if ftype == TType.STOP:
4736
        break
4737
      if fid == 0:
4738
        if ftype == TType.STRUCT:
4739
          self.success = ItemShippingInfo()
4740
          self.success.read(iprot)
4741
        else:
4742
          iprot.skip(ftype)
4743
      elif fid == 1:
4744
        if ftype == TType.STRUCT:
4745
          self.isex = CatalogServiceException()
4746
          self.isex.read(iprot)
4747
        else:
4748
          iprot.skip(ftype)
4749
      else:
4750
        iprot.skip(ftype)
4751
      iprot.readFieldEnd()
4752
    iprot.readStructEnd()
4753
 
4754
  def write(self, oprot):
4755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4757
      return
4758
    oprot.writeStructBegin('isActive_result')
4759
    if self.success is not None:
4760
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4761
      self.success.write(oprot)
4762
      oprot.writeFieldEnd()
4763
    if self.isex is not None:
4764
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4765
      self.isex.write(oprot)
4766
      oprot.writeFieldEnd()
4767
    oprot.writeFieldStop()
4768
    oprot.writeStructEnd()
4769
 
4770
  def validate(self):
4771
    return
4772
 
4773
 
4774
  def __repr__(self):
4775
    L = ['%s=%r' % (key, value)
4776
      for key, value in self.__dict__.iteritems()]
4777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4778
 
4779
  def __eq__(self, other):
4780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4781
 
4782
  def __ne__(self, other):
4783
    return not (self == other)
4784
 
4785
class getItemStatusDescription_args:
4786
  """
4787
  Attributes:
4788
   - itemId
4789
  """
4790
 
4791
  thrift_spec = (
4792
    None, # 0
4793
    (1, TType.I64, 'itemId', None, None, ), # 1
4794
  )
4795
 
4796
  def __init__(self, itemId=None,):
4797
    self.itemId = itemId
4798
 
4799
  def read(self, iprot):
4800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4802
      return
4803
    iprot.readStructBegin()
4804
    while True:
4805
      (fname, ftype, fid) = iprot.readFieldBegin()
4806
      if ftype == TType.STOP:
4807
        break
4808
      if fid == 1:
4809
        if ftype == TType.I64:
4810
          self.itemId = iprot.readI64();
4811
        else:
4812
          iprot.skip(ftype)
4813
      else:
4814
        iprot.skip(ftype)
4815
      iprot.readFieldEnd()
4816
    iprot.readStructEnd()
4817
 
4818
  def write(self, oprot):
4819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4821
      return
4822
    oprot.writeStructBegin('getItemStatusDescription_args')
4823
    if self.itemId is not None:
4824
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4825
      oprot.writeI64(self.itemId)
4826
      oprot.writeFieldEnd()
4827
    oprot.writeFieldStop()
4828
    oprot.writeStructEnd()
4829
 
4830
  def validate(self):
4831
    return
4832
 
4833
 
4834
  def __repr__(self):
4835
    L = ['%s=%r' % (key, value)
4836
      for key, value in self.__dict__.iteritems()]
4837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4838
 
4839
  def __eq__(self, other):
4840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4841
 
4842
  def __ne__(self, other):
4843
    return not (self == other)
4844
 
4845
class getItemStatusDescription_result:
4846
  """
4847
  Attributes:
4848
   - success
4849
   - isex
4850
  """
4851
 
4852
  thrift_spec = (
4853
    (0, TType.STRING, 'success', None, None, ), # 0
4854
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4855
  )
4856
 
4857
  def __init__(self, success=None, isex=None,):
4858
    self.success = success
4859
    self.isex = isex
4860
 
4861
  def read(self, iprot):
4862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4864
      return
4865
    iprot.readStructBegin()
4866
    while True:
4867
      (fname, ftype, fid) = iprot.readFieldBegin()
4868
      if ftype == TType.STOP:
4869
        break
4870
      if fid == 0:
4871
        if ftype == TType.STRING:
4872
          self.success = iprot.readString();
4873
        else:
4874
          iprot.skip(ftype)
4875
      elif fid == 1:
4876
        if ftype == TType.STRUCT:
4877
          self.isex = CatalogServiceException()
4878
          self.isex.read(iprot)
4879
        else:
4880
          iprot.skip(ftype)
4881
      else:
4882
        iprot.skip(ftype)
4883
      iprot.readFieldEnd()
4884
    iprot.readStructEnd()
4885
 
4886
  def write(self, oprot):
4887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4889
      return
4890
    oprot.writeStructBegin('getItemStatusDescription_result')
4891
    if self.success is not None:
4892
      oprot.writeFieldBegin('success', TType.STRING, 0)
4893
      oprot.writeString(self.success)
4894
      oprot.writeFieldEnd()
4895
    if self.isex is not None:
4896
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4897
      self.isex.write(oprot)
4898
      oprot.writeFieldEnd()
4899
    oprot.writeFieldStop()
4900
    oprot.writeStructEnd()
4901
 
4902
  def validate(self):
4903
    return
4904
 
4905
 
4906
  def __repr__(self):
4907
    L = ['%s=%r' % (key, value)
4908
      for key, value in self.__dict__.iteritems()]
4909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4910
 
4911
  def __eq__(self, other):
4912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4913
 
4914
  def __ne__(self, other):
4915
    return not (self == other)
4916
 
4917
class startItemOn_args:
4918
  """
4919
  Attributes:
4920
   - item_id
4921
   - timestamp
4922
  """
4923
 
4924
  thrift_spec = (
4925
    None, # 0
4926
    (1, TType.I64, 'item_id', None, None, ), # 1
4927
    (2, TType.I64, 'timestamp', None, None, ), # 2
4928
  )
4929
 
4930
  def __init__(self, item_id=None, timestamp=None,):
4931
    self.item_id = item_id
4932
    self.timestamp = timestamp
4933
 
4934
  def read(self, iprot):
4935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4937
      return
4938
    iprot.readStructBegin()
4939
    while True:
4940
      (fname, ftype, fid) = iprot.readFieldBegin()
4941
      if ftype == TType.STOP:
4942
        break
4943
      if fid == 1:
4944
        if ftype == TType.I64:
4945
          self.item_id = iprot.readI64();
4946
        else:
4947
          iprot.skip(ftype)
4948
      elif fid == 2:
4949
        if ftype == TType.I64:
4950
          self.timestamp = iprot.readI64();
4951
        else:
4952
          iprot.skip(ftype)
4953
      else:
4954
        iprot.skip(ftype)
4955
      iprot.readFieldEnd()
4956
    iprot.readStructEnd()
4957
 
4958
  def write(self, oprot):
4959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4961
      return
4962
    oprot.writeStructBegin('startItemOn_args')
4963
    if self.item_id is not None:
4964
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4965
      oprot.writeI64(self.item_id)
4966
      oprot.writeFieldEnd()
4967
    if self.timestamp is not None:
4968
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4969
      oprot.writeI64(self.timestamp)
4970
      oprot.writeFieldEnd()
4971
    oprot.writeFieldStop()
4972
    oprot.writeStructEnd()
4973
 
4974
  def validate(self):
4975
    return
4976
 
4977
 
4978
  def __repr__(self):
4979
    L = ['%s=%r' % (key, value)
4980
      for key, value in self.__dict__.iteritems()]
4981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4982
 
4983
  def __eq__(self, other):
4984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4985
 
4986
  def __ne__(self, other):
4987
    return not (self == other)
4988
 
4989
class startItemOn_result:
4990
  """
4991
  Attributes:
4992
   - cex
4993
  """
4994
 
4995
  thrift_spec = (
4996
    None, # 0
4997
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4998
  )
4999
 
5000
  def __init__(self, cex=None,):
5001
    self.cex = cex
5002
 
5003
  def read(self, iprot):
5004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5006
      return
5007
    iprot.readStructBegin()
5008
    while True:
5009
      (fname, ftype, fid) = iprot.readFieldBegin()
5010
      if ftype == TType.STOP:
5011
        break
5012
      if fid == 1:
5013
        if ftype == TType.STRUCT:
5014
          self.cex = CatalogServiceException()
5015
          self.cex.read(iprot)
5016
        else:
5017
          iprot.skip(ftype)
5018
      else:
5019
        iprot.skip(ftype)
5020
      iprot.readFieldEnd()
5021
    iprot.readStructEnd()
5022
 
5023
  def write(self, oprot):
5024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5026
      return
5027
    oprot.writeStructBegin('startItemOn_result')
5028
    if self.cex is not None:
5029
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5030
      self.cex.write(oprot)
5031
      oprot.writeFieldEnd()
5032
    oprot.writeFieldStop()
5033
    oprot.writeStructEnd()
5034
 
5035
  def validate(self):
5036
    return
5037
 
5038
 
5039
  def __repr__(self):
5040
    L = ['%s=%r' % (key, value)
5041
      for key, value in self.__dict__.iteritems()]
5042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5043
 
5044
  def __eq__(self, other):
5045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5046
 
5047
  def __ne__(self, other):
5048
    return not (self == other)
5049
 
5050
class retireItemOn_args:
5051
  """
5052
  Attributes:
5053
   - item_id
5054
   - timestamp
5055
  """
5056
 
5057
  thrift_spec = (
5058
    None, # 0
5059
    (1, TType.I64, 'item_id', None, None, ), # 1
5060
    (2, TType.I64, 'timestamp', None, None, ), # 2
5061
  )
5062
 
5063
  def __init__(self, item_id=None, timestamp=None,):
5064
    self.item_id = item_id
5065
    self.timestamp = timestamp
5066
 
5067
  def read(self, iprot):
5068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5070
      return
5071
    iprot.readStructBegin()
5072
    while True:
5073
      (fname, ftype, fid) = iprot.readFieldBegin()
5074
      if ftype == TType.STOP:
5075
        break
5076
      if fid == 1:
5077
        if ftype == TType.I64:
5078
          self.item_id = iprot.readI64();
5079
        else:
5080
          iprot.skip(ftype)
5081
      elif fid == 2:
5082
        if ftype == TType.I64:
5083
          self.timestamp = iprot.readI64();
5084
        else:
5085
          iprot.skip(ftype)
5086
      else:
5087
        iprot.skip(ftype)
5088
      iprot.readFieldEnd()
5089
    iprot.readStructEnd()
5090
 
5091
  def write(self, oprot):
5092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5094
      return
5095
    oprot.writeStructBegin('retireItemOn_args')
5096
    if self.item_id is not None:
5097
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5098
      oprot.writeI64(self.item_id)
5099
      oprot.writeFieldEnd()
5100
    if self.timestamp is not None:
5101
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5102
      oprot.writeI64(self.timestamp)
5103
      oprot.writeFieldEnd()
5104
    oprot.writeFieldStop()
5105
    oprot.writeStructEnd()
5106
 
5107
  def validate(self):
5108
    return
5109
 
5110
 
5111
  def __repr__(self):
5112
    L = ['%s=%r' % (key, value)
5113
      for key, value in self.__dict__.iteritems()]
5114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5115
 
5116
  def __eq__(self, other):
5117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5118
 
5119
  def __ne__(self, other):
5120
    return not (self == other)
5121
 
5122
class retireItemOn_result:
5123
  """
5124
  Attributes:
5125
   - cex
5126
  """
5127
 
5128
  thrift_spec = (
5129
    None, # 0
5130
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5131
  )
5132
 
5133
  def __init__(self, cex=None,):
5134
    self.cex = cex
5135
 
5136
  def read(self, iprot):
5137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5139
      return
5140
    iprot.readStructBegin()
5141
    while True:
5142
      (fname, ftype, fid) = iprot.readFieldBegin()
5143
      if ftype == TType.STOP:
5144
        break
5145
      if fid == 1:
5146
        if ftype == TType.STRUCT:
5147
          self.cex = CatalogServiceException()
5148
          self.cex.read(iprot)
5149
        else:
5150
          iprot.skip(ftype)
5151
      else:
5152
        iprot.skip(ftype)
5153
      iprot.readFieldEnd()
5154
    iprot.readStructEnd()
5155
 
5156
  def write(self, oprot):
5157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5159
      return
5160
    oprot.writeStructBegin('retireItemOn_result')
5161
    if self.cex is not None:
5162
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5163
      self.cex.write(oprot)
5164
      oprot.writeFieldEnd()
5165
    oprot.writeFieldStop()
5166
    oprot.writeStructEnd()
5167
 
5168
  def validate(self):
5169
    return
5170
 
5171
 
5172
  def __repr__(self):
5173
    L = ['%s=%r' % (key, value)
5174
      for key, value in self.__dict__.iteritems()]
5175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5176
 
5177
  def __eq__(self, other):
5178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5179
 
5180
  def __ne__(self, other):
5181
    return not (self == other)
5182
 
5183
class changeItemStatus_args:
5184
  """
5185
  Attributes:
5186
   - item_id
5187
   - timestamp
5188
   - newstatus
5189
  """
5190
 
5191
  thrift_spec = (
5192
    None, # 0
5193
    (1, TType.I64, 'item_id', None, None, ), # 1
5194
    (2, TType.I64, 'timestamp', None, None, ), # 2
5195
    (3, TType.I32, 'newstatus', None, None, ), # 3
5196
  )
5197
 
5198
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5199
    self.item_id = item_id
5200
    self.timestamp = timestamp
5201
    self.newstatus = newstatus
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.I64:
5214
          self.item_id = iprot.readI64();
5215
        else:
5216
          iprot.skip(ftype)
5217
      elif fid == 2:
5218
        if ftype == TType.I64:
5219
          self.timestamp = iprot.readI64();
5220
        else:
5221
          iprot.skip(ftype)
5222
      elif fid == 3:
5223
        if ftype == TType.I32:
5224
          self.newstatus = iprot.readI32();
5225
        else:
5226
          iprot.skip(ftype)
5227
      else:
5228
        iprot.skip(ftype)
5229
      iprot.readFieldEnd()
5230
    iprot.readStructEnd()
5231
 
5232
  def write(self, oprot):
5233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5235
      return
5236
    oprot.writeStructBegin('changeItemStatus_args')
5237
    if self.item_id is not None:
5238
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5239
      oprot.writeI64(self.item_id)
5240
      oprot.writeFieldEnd()
5241
    if self.timestamp is not None:
5242
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5243
      oprot.writeI64(self.timestamp)
5244
      oprot.writeFieldEnd()
5245
    if self.newstatus is not None:
5246
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5247
      oprot.writeI32(self.newstatus)
5248
      oprot.writeFieldEnd()
5249
    oprot.writeFieldStop()
5250
    oprot.writeStructEnd()
5251
 
5252
  def validate(self):
5253
    return
5254
 
5255
 
5256
  def __repr__(self):
5257
    L = ['%s=%r' % (key, value)
5258
      for key, value in self.__dict__.iteritems()]
5259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5260
 
5261
  def __eq__(self, other):
5262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5263
 
5264
  def __ne__(self, other):
5265
    return not (self == other)
5266
 
5267
class changeItemStatus_result:
5268
  """
5269
  Attributes:
5270
   - cex
5271
  """
5272
 
5273
  thrift_spec = (
5274
    None, # 0
5275
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5276
  )
5277
 
5278
  def __init__(self, cex=None,):
5279
    self.cex = cex
5280
 
5281
  def read(self, iprot):
5282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5284
      return
5285
    iprot.readStructBegin()
5286
    while True:
5287
      (fname, ftype, fid) = iprot.readFieldBegin()
5288
      if ftype == TType.STOP:
5289
        break
5290
      if fid == 1:
5291
        if ftype == TType.STRUCT:
5292
          self.cex = CatalogServiceException()
5293
          self.cex.read(iprot)
5294
        else:
5295
          iprot.skip(ftype)
5296
      else:
5297
        iprot.skip(ftype)
5298
      iprot.readFieldEnd()
5299
    iprot.readStructEnd()
5300
 
5301
  def write(self, oprot):
5302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5304
      return
5305
    oprot.writeStructBegin('changeItemStatus_result')
5306
    if self.cex is not None:
5307
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5308
      self.cex.write(oprot)
5309
      oprot.writeFieldEnd()
5310
    oprot.writeFieldStop()
5311
    oprot.writeStructEnd()
5312
 
5313
  def validate(self):
5314
    return
5315
 
5316
 
5317
  def __repr__(self):
5318
    L = ['%s=%r' % (key, value)
5319
      for key, value in self.__dict__.iteritems()]
5320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5321
 
5322
  def __eq__(self, other):
5323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5324
 
5325
  def __ne__(self, other):
5326
    return not (self == other)
5327
 
5328
class getItem_args:
5329
  """
5330
  Attributes:
5331
   - item_id
5332
  """
5333
 
5334
  thrift_spec = (
5335
    None, # 0
5336
    (1, TType.I64, 'item_id', None, None, ), # 1
5337
  )
5338
 
5339
  def __init__(self, item_id=None,):
5340
    self.item_id = item_id
5341
 
5342
  def read(self, iprot):
5343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5345
      return
5346
    iprot.readStructBegin()
5347
    while True:
5348
      (fname, ftype, fid) = iprot.readFieldBegin()
5349
      if ftype == TType.STOP:
5350
        break
5351
      if fid == 1:
5352
        if ftype == TType.I64:
5353
          self.item_id = iprot.readI64();
5354
        else:
5355
          iprot.skip(ftype)
5356
      else:
5357
        iprot.skip(ftype)
5358
      iprot.readFieldEnd()
5359
    iprot.readStructEnd()
5360
 
5361
  def write(self, oprot):
5362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5364
      return
5365
    oprot.writeStructBegin('getItem_args')
5366
    if self.item_id is not None:
5367
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5368
      oprot.writeI64(self.item_id)
5369
      oprot.writeFieldEnd()
5370
    oprot.writeFieldStop()
5371
    oprot.writeStructEnd()
5372
 
5373
  def validate(self):
5374
    return
5375
 
5376
 
5377
  def __repr__(self):
5378
    L = ['%s=%r' % (key, value)
5379
      for key, value in self.__dict__.iteritems()]
5380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5381
 
5382
  def __eq__(self, other):
5383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5384
 
5385
  def __ne__(self, other):
5386
    return not (self == other)
5387
 
5388
class getItem_result:
5389
  """
5390
  Attributes:
5391
   - success
5392
   - cex
5393
  """
5394
 
5395
  thrift_spec = (
5396
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5397
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5398
  )
5399
 
5400
  def __init__(self, success=None, cex=None,):
5401
    self.success = success
5402
    self.cex = cex
5403
 
5404
  def read(self, iprot):
5405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5407
      return
5408
    iprot.readStructBegin()
5409
    while True:
5410
      (fname, ftype, fid) = iprot.readFieldBegin()
5411
      if ftype == TType.STOP:
5412
        break
5413
      if fid == 0:
5414
        if ftype == TType.STRUCT:
5415
          self.success = Item()
5416
          self.success.read(iprot)
5417
        else:
5418
          iprot.skip(ftype)
5419
      elif fid == 1:
5420
        if ftype == TType.STRUCT:
5421
          self.cex = CatalogServiceException()
5422
          self.cex.read(iprot)
5423
        else:
5424
          iprot.skip(ftype)
5425
      else:
5426
        iprot.skip(ftype)
5427
      iprot.readFieldEnd()
5428
    iprot.readStructEnd()
5429
 
5430
  def write(self, oprot):
5431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5433
      return
5434
    oprot.writeStructBegin('getItem_result')
5435
    if self.success is not None:
5436
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5437
      self.success.write(oprot)
5438
      oprot.writeFieldEnd()
5439
    if self.cex is not None:
5440
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5441
      self.cex.write(oprot)
5442
      oprot.writeFieldEnd()
5443
    oprot.writeFieldStop()
5444
    oprot.writeStructEnd()
5445
 
5446
  def validate(self):
5447
    return
5448
 
5449
 
5450
  def __repr__(self):
5451
    L = ['%s=%r' % (key, value)
5452
      for key, value in self.__dict__.iteritems()]
5453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5454
 
5455
  def __eq__(self, other):
5456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5457
 
5458
  def __ne__(self, other):
5459
    return not (self == other)
5460
 
5461
class getItemsByCatalogId_args:
5462
  """
5463
  Attributes:
5464
   - catalog_item_id
5465
  """
5466
 
5467
  thrift_spec = (
5468
    None, # 0
5469
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5470
  )
5471
 
5472
  def __init__(self, catalog_item_id=None,):
5473
    self.catalog_item_id = catalog_item_id
5474
 
5475
  def read(self, iprot):
5476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5478
      return
5479
    iprot.readStructBegin()
5480
    while True:
5481
      (fname, ftype, fid) = iprot.readFieldBegin()
5482
      if ftype == TType.STOP:
5483
        break
5484
      if fid == 1:
5485
        if ftype == TType.I64:
5486
          self.catalog_item_id = iprot.readI64();
5487
        else:
5488
          iprot.skip(ftype)
5489
      else:
5490
        iprot.skip(ftype)
5491
      iprot.readFieldEnd()
5492
    iprot.readStructEnd()
5493
 
5494
  def write(self, oprot):
5495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5497
      return
5498
    oprot.writeStructBegin('getItemsByCatalogId_args')
5499
    if self.catalog_item_id is not None:
5500
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5501
      oprot.writeI64(self.catalog_item_id)
5502
      oprot.writeFieldEnd()
5503
    oprot.writeFieldStop()
5504
    oprot.writeStructEnd()
5505
 
5506
  def validate(self):
5507
    return
5508
 
5509
 
5510
  def __repr__(self):
5511
    L = ['%s=%r' % (key, value)
5512
      for key, value in self.__dict__.iteritems()]
5513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5514
 
5515
  def __eq__(self, other):
5516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5517
 
5518
  def __ne__(self, other):
5519
    return not (self == other)
5520
 
5521
class getItemsByCatalogId_result:
5522
  """
5523
  Attributes:
5524
   - success
5525
   - cex
5526
  """
5527
 
5528
  thrift_spec = (
5529
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5530
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5531
  )
5532
 
5533
  def __init__(self, success=None, cex=None,):
5534
    self.success = success
5535
    self.cex = cex
5536
 
5537
  def read(self, iprot):
5538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5540
      return
5541
    iprot.readStructBegin()
5542
    while True:
5543
      (fname, ftype, fid) = iprot.readFieldBegin()
5544
      if ftype == TType.STOP:
5545
        break
5546
      if fid == 0:
5547
        if ftype == TType.LIST:
5548
          self.success = []
5549
          (_etype19, _size16) = iprot.readListBegin()
5550
          for _i20 in xrange(_size16):
5551
            _elem21 = Item()
5552
            _elem21.read(iprot)
5553
            self.success.append(_elem21)
5554
          iprot.readListEnd()
5555
        else:
5556
          iprot.skip(ftype)
5557
      elif fid == 1:
5558
        if ftype == TType.STRUCT:
5559
          self.cex = CatalogServiceException()
5560
          self.cex.read(iprot)
5561
        else:
5562
          iprot.skip(ftype)
5563
      else:
5564
        iprot.skip(ftype)
5565
      iprot.readFieldEnd()
5566
    iprot.readStructEnd()
5567
 
5568
  def write(self, oprot):
5569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5571
      return
5572
    oprot.writeStructBegin('getItemsByCatalogId_result')
5573
    if self.success is not None:
5574
      oprot.writeFieldBegin('success', TType.LIST, 0)
5575
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5576
      for iter22 in self.success:
5577
        iter22.write(oprot)
5578
      oprot.writeListEnd()
5579
      oprot.writeFieldEnd()
5580
    if self.cex is not None:
5581
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5582
      self.cex.write(oprot)
5583
      oprot.writeFieldEnd()
5584
    oprot.writeFieldStop()
5585
    oprot.writeStructEnd()
5586
 
5587
  def validate(self):
5588
    return
5589
 
5590
 
5591
  def __repr__(self):
5592
    L = ['%s=%r' % (key, value)
5593
      for key, value in self.__dict__.iteritems()]
5594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5595
 
5596
  def __eq__(self, other):
5597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5598
 
5599
  def __ne__(self, other):
5600
    return not (self == other)
5601
 
5602
class getValidItemsByCatalogId_args:
5603
  """
5604
  Attributes:
5605
   - catalog_item_id
5606
  """
5607
 
5608
  thrift_spec = (
5609
    None, # 0
5610
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5611
  )
5612
 
5613
  def __init__(self, catalog_item_id=None,):
5614
    self.catalog_item_id = catalog_item_id
5615
 
5616
  def read(self, iprot):
5617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5619
      return
5620
    iprot.readStructBegin()
5621
    while True:
5622
      (fname, ftype, fid) = iprot.readFieldBegin()
5623
      if ftype == TType.STOP:
5624
        break
5625
      if fid == 1:
5626
        if ftype == TType.I64:
5627
          self.catalog_item_id = iprot.readI64();
5628
        else:
5629
          iprot.skip(ftype)
5630
      else:
5631
        iprot.skip(ftype)
5632
      iprot.readFieldEnd()
5633
    iprot.readStructEnd()
5634
 
5635
  def write(self, oprot):
5636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5638
      return
5639
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5640
    if self.catalog_item_id is not None:
5641
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5642
      oprot.writeI64(self.catalog_item_id)
5643
      oprot.writeFieldEnd()
5644
    oprot.writeFieldStop()
5645
    oprot.writeStructEnd()
5646
 
5647
  def validate(self):
5648
    return
5649
 
5650
 
5651
  def __repr__(self):
5652
    L = ['%s=%r' % (key, value)
5653
      for key, value in self.__dict__.iteritems()]
5654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5655
 
5656
  def __eq__(self, other):
5657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5658
 
5659
  def __ne__(self, other):
5660
    return not (self == other)
5661
 
5662
class getValidItemsByCatalogId_result:
5663
  """
5664
  Attributes:
5665
   - success
5666
   - cex
5667
  """
5668
 
5669
  thrift_spec = (
5670
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5671
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5672
  )
5673
 
5674
  def __init__(self, success=None, cex=None,):
5675
    self.success = success
5676
    self.cex = cex
5677
 
5678
  def read(self, iprot):
5679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5681
      return
5682
    iprot.readStructBegin()
5683
    while True:
5684
      (fname, ftype, fid) = iprot.readFieldBegin()
5685
      if ftype == TType.STOP:
5686
        break
5687
      if fid == 0:
5688
        if ftype == TType.LIST:
5689
          self.success = []
5690
          (_etype26, _size23) = iprot.readListBegin()
5691
          for _i27 in xrange(_size23):
5692
            _elem28 = Item()
5693
            _elem28.read(iprot)
5694
            self.success.append(_elem28)
5695
          iprot.readListEnd()
5696
        else:
5697
          iprot.skip(ftype)
5698
      elif fid == 1:
5699
        if ftype == TType.STRUCT:
5700
          self.cex = CatalogServiceException()
5701
          self.cex.read(iprot)
5702
        else:
5703
          iprot.skip(ftype)
5704
      else:
5705
        iprot.skip(ftype)
5706
      iprot.readFieldEnd()
5707
    iprot.readStructEnd()
5708
 
5709
  def write(self, oprot):
5710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5712
      return
5713
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5714
    if self.success is not None:
5715
      oprot.writeFieldBegin('success', TType.LIST, 0)
5716
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5717
      for iter29 in self.success:
5718
        iter29.write(oprot)
5719
      oprot.writeListEnd()
5720
      oprot.writeFieldEnd()
5721
    if self.cex is not None:
5722
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5723
      self.cex.write(oprot)
5724
      oprot.writeFieldEnd()
5725
    oprot.writeFieldStop()
5726
    oprot.writeStructEnd()
5727
 
5728
  def validate(self):
5729
    return
5730
 
5731
 
5732
  def __repr__(self):
5733
    L = ['%s=%r' % (key, value)
5734
      for key, value in self.__dict__.iteritems()]
5735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5736
 
5737
  def __eq__(self, other):
5738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5739
 
5740
  def __ne__(self, other):
5741
    return not (self == other)
5742
 
5743
class getAllItems_args:
5744
  """
5745
  Attributes:
5746
   - isActive
5747
  """
5748
 
5749
  thrift_spec = (
5750
    None, # 0
5751
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5752
  )
5753
 
5754
  def __init__(self, isActive=None,):
5755
    self.isActive = isActive
5756
 
5757
  def read(self, iprot):
5758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5760
      return
5761
    iprot.readStructBegin()
5762
    while True:
5763
      (fname, ftype, fid) = iprot.readFieldBegin()
5764
      if ftype == TType.STOP:
5765
        break
5766
      if fid == 1:
5767
        if ftype == TType.BOOL:
5768
          self.isActive = iprot.readBool();
5769
        else:
5770
          iprot.skip(ftype)
5771
      else:
5772
        iprot.skip(ftype)
5773
      iprot.readFieldEnd()
5774
    iprot.readStructEnd()
5775
 
5776
  def write(self, oprot):
5777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5779
      return
5780
    oprot.writeStructBegin('getAllItems_args')
5781
    if self.isActive is not None:
5782
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5783
      oprot.writeBool(self.isActive)
5784
      oprot.writeFieldEnd()
5785
    oprot.writeFieldStop()
5786
    oprot.writeStructEnd()
5787
 
5788
  def validate(self):
5789
    return
5790
 
5791
 
5792
  def __repr__(self):
5793
    L = ['%s=%r' % (key, value)
5794
      for key, value in self.__dict__.iteritems()]
5795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5796
 
5797
  def __eq__(self, other):
5798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5799
 
5800
  def __ne__(self, other):
5801
    return not (self == other)
5802
 
5803
class getAllItems_result:
5804
  """
5805
  Attributes:
5806
   - success
5807
   - cex
5808
  """
5809
 
5810
  thrift_spec = (
5811
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5812
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5813
  )
5814
 
5815
  def __init__(self, success=None, cex=None,):
5816
    self.success = success
5817
    self.cex = cex
5818
 
5819
  def read(self, iprot):
5820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5822
      return
5823
    iprot.readStructBegin()
5824
    while True:
5825
      (fname, ftype, fid) = iprot.readFieldBegin()
5826
      if ftype == TType.STOP:
5827
        break
5828
      if fid == 0:
5829
        if ftype == TType.LIST:
5830
          self.success = []
5831
          (_etype33, _size30) = iprot.readListBegin()
5832
          for _i34 in xrange(_size30):
5833
            _elem35 = Item()
5834
            _elem35.read(iprot)
5835
            self.success.append(_elem35)
5836
          iprot.readListEnd()
5837
        else:
5838
          iprot.skip(ftype)
5839
      elif fid == 1:
5840
        if ftype == TType.STRUCT:
5841
          self.cex = CatalogServiceException()
5842
          self.cex.read(iprot)
5843
        else:
5844
          iprot.skip(ftype)
5845
      else:
5846
        iprot.skip(ftype)
5847
      iprot.readFieldEnd()
5848
    iprot.readStructEnd()
5849
 
5850
  def write(self, oprot):
5851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5853
      return
5854
    oprot.writeStructBegin('getAllItems_result')
5855
    if self.success is not None:
5856
      oprot.writeFieldBegin('success', TType.LIST, 0)
5857
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5858
      for iter36 in self.success:
5859
        iter36.write(oprot)
5860
      oprot.writeListEnd()
5861
      oprot.writeFieldEnd()
5862
    if self.cex is not None:
5863
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5864
      self.cex.write(oprot)
5865
      oprot.writeFieldEnd()
5866
    oprot.writeFieldStop()
5867
    oprot.writeStructEnd()
5868
 
5869
  def validate(self):
5870
    return
5871
 
5872
 
5873
  def __repr__(self):
5874
    L = ['%s=%r' % (key, value)
5875
      for key, value in self.__dict__.iteritems()]
5876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5877
 
5878
  def __eq__(self, other):
5879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5880
 
5881
  def __ne__(self, other):
5882
    return not (self == other)
5883
 
5884
class getAllItemsByStatus_args:
5885
  """
5886
  Attributes:
5887
   - itemStatus
5888
  """
5889
 
5890
  thrift_spec = (
5891
    None, # 0
5892
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5893
  )
5894
 
5895
  def __init__(self, itemStatus=None,):
5896
    self.itemStatus = itemStatus
5897
 
5898
  def read(self, iprot):
5899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5901
      return
5902
    iprot.readStructBegin()
5903
    while True:
5904
      (fname, ftype, fid) = iprot.readFieldBegin()
5905
      if ftype == TType.STOP:
5906
        break
5907
      if fid == 1:
5908
        if ftype == TType.I32:
5909
          self.itemStatus = iprot.readI32();
5910
        else:
5911
          iprot.skip(ftype)
5912
      else:
5913
        iprot.skip(ftype)
5914
      iprot.readFieldEnd()
5915
    iprot.readStructEnd()
5916
 
5917
  def write(self, oprot):
5918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5920
      return
5921
    oprot.writeStructBegin('getAllItemsByStatus_args')
5922
    if self.itemStatus is not None:
5923
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5924
      oprot.writeI32(self.itemStatus)
5925
      oprot.writeFieldEnd()
5926
    oprot.writeFieldStop()
5927
    oprot.writeStructEnd()
5928
 
5929
  def validate(self):
5930
    return
5931
 
5932
 
5933
  def __repr__(self):
5934
    L = ['%s=%r' % (key, value)
5935
      for key, value in self.__dict__.iteritems()]
5936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5937
 
5938
  def __eq__(self, other):
5939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5940
 
5941
  def __ne__(self, other):
5942
    return not (self == other)
5943
 
5944
class getAllItemsByStatus_result:
5945
  """
5946
  Attributes:
5947
   - success
5948
   - cex
5949
  """
5950
 
5951
  thrift_spec = (
5952
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5953
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5954
  )
5955
 
5956
  def __init__(self, success=None, cex=None,):
5957
    self.success = success
5958
    self.cex = cex
5959
 
5960
  def read(self, iprot):
5961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5963
      return
5964
    iprot.readStructBegin()
5965
    while True:
5966
      (fname, ftype, fid) = iprot.readFieldBegin()
5967
      if ftype == TType.STOP:
5968
        break
5969
      if fid == 0:
5970
        if ftype == TType.LIST:
5971
          self.success = []
5972
          (_etype40, _size37) = iprot.readListBegin()
5973
          for _i41 in xrange(_size37):
5974
            _elem42 = Item()
5975
            _elem42.read(iprot)
5976
            self.success.append(_elem42)
5977
          iprot.readListEnd()
5978
        else:
5979
          iprot.skip(ftype)
5980
      elif fid == 1:
5981
        if ftype == TType.STRUCT:
5982
          self.cex = CatalogServiceException()
5983
          self.cex.read(iprot)
5984
        else:
5985
          iprot.skip(ftype)
5986
      else:
5987
        iprot.skip(ftype)
5988
      iprot.readFieldEnd()
5989
    iprot.readStructEnd()
5990
 
5991
  def write(self, oprot):
5992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5994
      return
5995
    oprot.writeStructBegin('getAllItemsByStatus_result')
5996
    if self.success is not None:
5997
      oprot.writeFieldBegin('success', TType.LIST, 0)
5998
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5999
      for iter43 in self.success:
6000
        iter43.write(oprot)
6001
      oprot.writeListEnd()
6002
      oprot.writeFieldEnd()
6003
    if self.cex is not None:
6004
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6005
      self.cex.write(oprot)
6006
      oprot.writeFieldEnd()
6007
    oprot.writeFieldStop()
6008
    oprot.writeStructEnd()
6009
 
6010
  def validate(self):
6011
    return
6012
 
6013
 
6014
  def __repr__(self):
6015
    L = ['%s=%r' % (key, value)
6016
      for key, value in self.__dict__.iteritems()]
6017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6018
 
6019
  def __eq__(self, other):
6020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6021
 
6022
  def __ne__(self, other):
6023
    return not (self == other)
6024
 
6025
class markItemAsContentComplete_args:
6026
  """
6027
  Attributes:
6028
   - entityId
6029
   - category
6030
   - brand
6031
   - modelName
6032
   - modelNumber
6033
  """
6034
 
6035
  thrift_spec = (
6036
    None, # 0
6037
    (1, TType.I64, 'entityId', None, None, ), # 1
6038
    (2, TType.I64, 'category', None, None, ), # 2
6039
    (3, TType.STRING, 'brand', None, None, ), # 3
6040
    (4, TType.STRING, 'modelName', None, None, ), # 4
6041
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6042
  )
6043
 
6044
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6045
    self.entityId = entityId
6046
    self.category = category
6047
    self.brand = brand
6048
    self.modelName = modelName
6049
    self.modelNumber = modelNumber
6050
 
6051
  def read(self, iprot):
6052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6054
      return
6055
    iprot.readStructBegin()
6056
    while True:
6057
      (fname, ftype, fid) = iprot.readFieldBegin()
6058
      if ftype == TType.STOP:
6059
        break
6060
      if fid == 1:
6061
        if ftype == TType.I64:
6062
          self.entityId = iprot.readI64();
6063
        else:
6064
          iprot.skip(ftype)
6065
      elif fid == 2:
6066
        if ftype == TType.I64:
6067
          self.category = iprot.readI64();
6068
        else:
6069
          iprot.skip(ftype)
6070
      elif fid == 3:
6071
        if ftype == TType.STRING:
6072
          self.brand = iprot.readString();
6073
        else:
6074
          iprot.skip(ftype)
6075
      elif fid == 4:
6076
        if ftype == TType.STRING:
6077
          self.modelName = iprot.readString();
6078
        else:
6079
          iprot.skip(ftype)
6080
      elif fid == 5:
6081
        if ftype == TType.STRING:
6082
          self.modelNumber = iprot.readString();
6083
        else:
6084
          iprot.skip(ftype)
6085
      else:
6086
        iprot.skip(ftype)
6087
      iprot.readFieldEnd()
6088
    iprot.readStructEnd()
6089
 
6090
  def write(self, oprot):
6091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6093
      return
6094
    oprot.writeStructBegin('markItemAsContentComplete_args')
6095
    if self.entityId is not None:
6096
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6097
      oprot.writeI64(self.entityId)
6098
      oprot.writeFieldEnd()
6099
    if self.category is not None:
6100
      oprot.writeFieldBegin('category', TType.I64, 2)
6101
      oprot.writeI64(self.category)
6102
      oprot.writeFieldEnd()
6103
    if self.brand is not None:
6104
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6105
      oprot.writeString(self.brand)
6106
      oprot.writeFieldEnd()
6107
    if self.modelName is not None:
6108
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6109
      oprot.writeString(self.modelName)
6110
      oprot.writeFieldEnd()
6111
    if self.modelNumber is not None:
6112
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6113
      oprot.writeString(self.modelNumber)
6114
      oprot.writeFieldEnd()
6115
    oprot.writeFieldStop()
6116
    oprot.writeStructEnd()
6117
 
6118
  def validate(self):
6119
    return
6120
 
6121
 
6122
  def __repr__(self):
6123
    L = ['%s=%r' % (key, value)
6124
      for key, value in self.__dict__.iteritems()]
6125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6126
 
6127
  def __eq__(self, other):
6128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6129
 
6130
  def __ne__(self, other):
6131
    return not (self == other)
6132
 
6133
class markItemAsContentComplete_result:
6134
  """
6135
  Attributes:
6136
   - success
6137
   - cex
6138
  """
6139
 
6140
  thrift_spec = (
6141
    (0, TType.BOOL, 'success', None, None, ), # 0
6142
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6143
  )
6144
 
6145
  def __init__(self, success=None, cex=None,):
6146
    self.success = success
6147
    self.cex = cex
6148
 
6149
  def read(self, iprot):
6150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6152
      return
6153
    iprot.readStructBegin()
6154
    while True:
6155
      (fname, ftype, fid) = iprot.readFieldBegin()
6156
      if ftype == TType.STOP:
6157
        break
6158
      if fid == 0:
6159
        if ftype == TType.BOOL:
6160
          self.success = iprot.readBool();
6161
        else:
6162
          iprot.skip(ftype)
6163
      elif fid == 1:
6164
        if ftype == TType.STRUCT:
6165
          self.cex = CatalogServiceException()
6166
          self.cex.read(iprot)
6167
        else:
6168
          iprot.skip(ftype)
6169
      else:
6170
        iprot.skip(ftype)
6171
      iprot.readFieldEnd()
6172
    iprot.readStructEnd()
6173
 
6174
  def write(self, oprot):
6175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6177
      return
6178
    oprot.writeStructBegin('markItemAsContentComplete_result')
6179
    if self.success is not None:
6180
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6181
      oprot.writeBool(self.success)
6182
      oprot.writeFieldEnd()
6183
    if self.cex is not None:
6184
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6185
      self.cex.write(oprot)
6186
      oprot.writeFieldEnd()
6187
    oprot.writeFieldStop()
6188
    oprot.writeStructEnd()
6189
 
6190
  def validate(self):
6191
    return
6192
 
6193
 
6194
  def __repr__(self):
6195
    L = ['%s=%r' % (key, value)
6196
      for key, value in self.__dict__.iteritems()]
6197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6198
 
6199
  def __eq__(self, other):
6200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6201
 
6202
  def __ne__(self, other):
6203
    return not (self == other)
6204
 
6205
class getAllItemsInRange_args:
6206
  """
6207
  Attributes:
6208
   - offset
6209
   - limit
6210
  """
6211
 
6212
  thrift_spec = (
6213
    None, # 0
6214
    (1, TType.I64, 'offset', None, None, ), # 1
6215
    (2, TType.I64, 'limit', None, None, ), # 2
6216
  )
6217
 
6218
  def __init__(self, offset=None, limit=None,):
6219
    self.offset = offset
6220
    self.limit = limit
6221
 
6222
  def read(self, iprot):
6223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6225
      return
6226
    iprot.readStructBegin()
6227
    while True:
6228
      (fname, ftype, fid) = iprot.readFieldBegin()
6229
      if ftype == TType.STOP:
6230
        break
6231
      if fid == 1:
6232
        if ftype == TType.I64:
6233
          self.offset = iprot.readI64();
6234
        else:
6235
          iprot.skip(ftype)
6236
      elif fid == 2:
6237
        if ftype == TType.I64:
6238
          self.limit = iprot.readI64();
6239
        else:
6240
          iprot.skip(ftype)
6241
      else:
6242
        iprot.skip(ftype)
6243
      iprot.readFieldEnd()
6244
    iprot.readStructEnd()
6245
 
6246
  def write(self, oprot):
6247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6249
      return
6250
    oprot.writeStructBegin('getAllItemsInRange_args')
6251
    if self.offset is not None:
6252
      oprot.writeFieldBegin('offset', TType.I64, 1)
6253
      oprot.writeI64(self.offset)
6254
      oprot.writeFieldEnd()
6255
    if self.limit is not None:
6256
      oprot.writeFieldBegin('limit', TType.I64, 2)
6257
      oprot.writeI64(self.limit)
6258
      oprot.writeFieldEnd()
6259
    oprot.writeFieldStop()
6260
    oprot.writeStructEnd()
6261
 
6262
  def validate(self):
6263
    return
6264
 
6265
 
6266
  def __repr__(self):
6267
    L = ['%s=%r' % (key, value)
6268
      for key, value in self.__dict__.iteritems()]
6269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6270
 
6271
  def __eq__(self, other):
6272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6273
 
6274
  def __ne__(self, other):
6275
    return not (self == other)
6276
 
6277
class getAllItemsInRange_result:
6278
  """
6279
  Attributes:
6280
   - success
6281
   - cex
6282
  """
6283
 
6284
  thrift_spec = (
6285
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6286
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6287
  )
6288
 
6289
  def __init__(self, success=None, cex=None,):
6290
    self.success = success
6291
    self.cex = cex
6292
 
6293
  def read(self, iprot):
6294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6296
      return
6297
    iprot.readStructBegin()
6298
    while True:
6299
      (fname, ftype, fid) = iprot.readFieldBegin()
6300
      if ftype == TType.STOP:
6301
        break
6302
      if fid == 0:
6303
        if ftype == TType.LIST:
6304
          self.success = []
6305
          (_etype47, _size44) = iprot.readListBegin()
6306
          for _i48 in xrange(_size44):
6307
            _elem49 = Item()
6308
            _elem49.read(iprot)
6309
            self.success.append(_elem49)
6310
          iprot.readListEnd()
6311
        else:
6312
          iprot.skip(ftype)
6313
      elif fid == 1:
6314
        if ftype == TType.STRUCT:
6315
          self.cex = CatalogServiceException()
6316
          self.cex.read(iprot)
6317
        else:
6318
          iprot.skip(ftype)
6319
      else:
6320
        iprot.skip(ftype)
6321
      iprot.readFieldEnd()
6322
    iprot.readStructEnd()
6323
 
6324
  def write(self, oprot):
6325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6327
      return
6328
    oprot.writeStructBegin('getAllItemsInRange_result')
6329
    if self.success is not None:
6330
      oprot.writeFieldBegin('success', TType.LIST, 0)
6331
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6332
      for iter50 in self.success:
6333
        iter50.write(oprot)
6334
      oprot.writeListEnd()
6335
      oprot.writeFieldEnd()
6336
    if self.cex is not None:
6337
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6338
      self.cex.write(oprot)
6339
      oprot.writeFieldEnd()
6340
    oprot.writeFieldStop()
6341
    oprot.writeStructEnd()
6342
 
6343
  def validate(self):
6344
    return
6345
 
6346
 
6347
  def __repr__(self):
6348
    L = ['%s=%r' % (key, value)
6349
      for key, value in self.__dict__.iteritems()]
6350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6351
 
6352
  def __eq__(self, other):
6353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6354
 
6355
  def __ne__(self, other):
6356
    return not (self == other)
6357
 
6358
class getAllItemsByStatusInRange_args:
6359
  """
6360
  Attributes:
6361
   - itemStatus
6362
   - offset
6363
   - limit
6364
  """
6365
 
6366
  thrift_spec = (
6367
    None, # 0
6368
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6369
    (2, TType.I64, 'offset', None, None, ), # 2
6370
    (3, TType.I64, 'limit', None, None, ), # 3
6371
  )
6372
 
6373
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6374
    self.itemStatus = itemStatus
6375
    self.offset = offset
6376
    self.limit = limit
6377
 
6378
  def read(self, iprot):
6379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6381
      return
6382
    iprot.readStructBegin()
6383
    while True:
6384
      (fname, ftype, fid) = iprot.readFieldBegin()
6385
      if ftype == TType.STOP:
6386
        break
6387
      if fid == 1:
6388
        if ftype == TType.I32:
6389
          self.itemStatus = iprot.readI32();
6390
        else:
6391
          iprot.skip(ftype)
6392
      elif fid == 2:
6393
        if ftype == TType.I64:
6394
          self.offset = iprot.readI64();
6395
        else:
6396
          iprot.skip(ftype)
6397
      elif fid == 3:
6398
        if ftype == TType.I64:
6399
          self.limit = iprot.readI64();
6400
        else:
6401
          iprot.skip(ftype)
6402
      else:
6403
        iprot.skip(ftype)
6404
      iprot.readFieldEnd()
6405
    iprot.readStructEnd()
6406
 
6407
  def write(self, oprot):
6408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6410
      return
6411
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6412
    if self.itemStatus is not None:
6413
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6414
      oprot.writeI32(self.itemStatus)
6415
      oprot.writeFieldEnd()
6416
    if self.offset is not None:
6417
      oprot.writeFieldBegin('offset', TType.I64, 2)
6418
      oprot.writeI64(self.offset)
6419
      oprot.writeFieldEnd()
6420
    if self.limit is not None:
6421
      oprot.writeFieldBegin('limit', TType.I64, 3)
6422
      oprot.writeI64(self.limit)
6423
      oprot.writeFieldEnd()
6424
    oprot.writeFieldStop()
6425
    oprot.writeStructEnd()
6426
 
6427
  def validate(self):
6428
    return
6429
 
6430
 
6431
  def __repr__(self):
6432
    L = ['%s=%r' % (key, value)
6433
      for key, value in self.__dict__.iteritems()]
6434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6435
 
6436
  def __eq__(self, other):
6437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6438
 
6439
  def __ne__(self, other):
6440
    return not (self == other)
6441
 
6442
class getAllItemsByStatusInRange_result:
6443
  """
6444
  Attributes:
6445
   - success
6446
   - cex
6447
  """
6448
 
6449
  thrift_spec = (
6450
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6451
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6452
  )
6453
 
6454
  def __init__(self, success=None, cex=None,):
6455
    self.success = success
6456
    self.cex = cex
6457
 
6458
  def read(self, iprot):
6459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6461
      return
6462
    iprot.readStructBegin()
6463
    while True:
6464
      (fname, ftype, fid) = iprot.readFieldBegin()
6465
      if ftype == TType.STOP:
6466
        break
6467
      if fid == 0:
6468
        if ftype == TType.LIST:
6469
          self.success = []
6470
          (_etype54, _size51) = iprot.readListBegin()
6471
          for _i55 in xrange(_size51):
6472
            _elem56 = Item()
6473
            _elem56.read(iprot)
6474
            self.success.append(_elem56)
6475
          iprot.readListEnd()
6476
        else:
6477
          iprot.skip(ftype)
6478
      elif fid == 1:
6479
        if ftype == TType.STRUCT:
6480
          self.cex = CatalogServiceException()
6481
          self.cex.read(iprot)
6482
        else:
6483
          iprot.skip(ftype)
6484
      else:
6485
        iprot.skip(ftype)
6486
      iprot.readFieldEnd()
6487
    iprot.readStructEnd()
6488
 
6489
  def write(self, oprot):
6490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6492
      return
6493
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6494
    if self.success is not None:
6495
      oprot.writeFieldBegin('success', TType.LIST, 0)
6496
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6497
      for iter57 in self.success:
6498
        iter57.write(oprot)
6499
      oprot.writeListEnd()
6500
      oprot.writeFieldEnd()
6501
    if self.cex is not None:
6502
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6503
      self.cex.write(oprot)
6504
      oprot.writeFieldEnd()
6505
    oprot.writeFieldStop()
6506
    oprot.writeStructEnd()
6507
 
6508
  def validate(self):
6509
    return
6510
 
6511
 
6512
  def __repr__(self):
6513
    L = ['%s=%r' % (key, value)
6514
      for key, value in self.__dict__.iteritems()]
6515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6516
 
6517
  def __eq__(self, other):
6518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6519
 
6520
  def __ne__(self, other):
6521
    return not (self == other)
6522
 
6523
class getItemCountByStatus_args:
6524
  """
6525
  Attributes:
6526
   - useStatus
6527
   - itemStatus
6528
  """
6529
 
6530
  thrift_spec = (
6531
    None, # 0
6532
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6533
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6534
  )
6535
 
6536
  def __init__(self, useStatus=None, itemStatus=None,):
6537
    self.useStatus = useStatus
6538
    self.itemStatus = itemStatus
6539
 
6540
  def read(self, iprot):
6541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6543
      return
6544
    iprot.readStructBegin()
6545
    while True:
6546
      (fname, ftype, fid) = iprot.readFieldBegin()
6547
      if ftype == TType.STOP:
6548
        break
6549
      if fid == 1:
6550
        if ftype == TType.BOOL:
6551
          self.useStatus = iprot.readBool();
6552
        else:
6553
          iprot.skip(ftype)
6554
      elif fid == 2:
6555
        if ftype == TType.I32:
6556
          self.itemStatus = iprot.readI32();
6557
        else:
6558
          iprot.skip(ftype)
6559
      else:
6560
        iprot.skip(ftype)
6561
      iprot.readFieldEnd()
6562
    iprot.readStructEnd()
6563
 
6564
  def write(self, oprot):
6565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6567
      return
6568
    oprot.writeStructBegin('getItemCountByStatus_args')
6569
    if self.useStatus is not None:
6570
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6571
      oprot.writeBool(self.useStatus)
6572
      oprot.writeFieldEnd()
6573
    if self.itemStatus is not None:
6574
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6575
      oprot.writeI32(self.itemStatus)
6576
      oprot.writeFieldEnd()
6577
    oprot.writeFieldStop()
6578
    oprot.writeStructEnd()
6579
 
6580
  def validate(self):
6581
    return
6582
 
6583
 
6584
  def __repr__(self):
6585
    L = ['%s=%r' % (key, value)
6586
      for key, value in self.__dict__.iteritems()]
6587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6588
 
6589
  def __eq__(self, other):
6590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6591
 
6592
  def __ne__(self, other):
6593
    return not (self == other)
6594
 
6595
class getItemCountByStatus_result:
6596
  """
6597
  Attributes:
6598
   - success
6599
  """
6600
 
6601
  thrift_spec = (
6602
    (0, TType.I32, 'success', None, None, ), # 0
6603
  )
6604
 
6605
  def __init__(self, success=None,):
6606
    self.success = success
6607
 
6608
  def read(self, iprot):
6609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6611
      return
6612
    iprot.readStructBegin()
6613
    while True:
6614
      (fname, ftype, fid) = iprot.readFieldBegin()
6615
      if ftype == TType.STOP:
6616
        break
6617
      if fid == 0:
6618
        if ftype == TType.I32:
6619
          self.success = iprot.readI32();
6620
        else:
6621
          iprot.skip(ftype)
6622
      else:
6623
        iprot.skip(ftype)
6624
      iprot.readFieldEnd()
6625
    iprot.readStructEnd()
6626
 
6627
  def write(self, oprot):
6628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6630
      return
6631
    oprot.writeStructBegin('getItemCountByStatus_result')
6632
    if self.success is not None:
6633
      oprot.writeFieldBegin('success', TType.I32, 0)
6634
      oprot.writeI32(self.success)
6635
      oprot.writeFieldEnd()
6636
    oprot.writeFieldStop()
6637
    oprot.writeStructEnd()
6638
 
6639
  def validate(self):
6640
    return
6641
 
6642
 
6643
  def __repr__(self):
6644
    L = ['%s=%r' % (key, value)
6645
      for key, value in self.__dict__.iteritems()]
6646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6647
 
6648
  def __eq__(self, other):
6649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6650
 
6651
  def __ne__(self, other):
6652
    return not (self == other)
6653
 
6654
class getBestSellers_args:
6655
 
6656
  thrift_spec = (
6657
  )
6658
 
6659
  def read(self, iprot):
6660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6662
      return
6663
    iprot.readStructBegin()
6664
    while True:
6665
      (fname, ftype, fid) = iprot.readFieldBegin()
6666
      if ftype == TType.STOP:
6667
        break
6668
      else:
6669
        iprot.skip(ftype)
6670
      iprot.readFieldEnd()
6671
    iprot.readStructEnd()
6672
 
6673
  def write(self, oprot):
6674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6676
      return
6677
    oprot.writeStructBegin('getBestSellers_args')
6678
    oprot.writeFieldStop()
6679
    oprot.writeStructEnd()
6680
 
6681
  def validate(self):
6682
    return
6683
 
6684
 
6685
  def __repr__(self):
6686
    L = ['%s=%r' % (key, value)
6687
      for key, value in self.__dict__.iteritems()]
6688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6689
 
6690
  def __eq__(self, other):
6691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6692
 
6693
  def __ne__(self, other):
6694
    return not (self == other)
6695
 
6696
class getBestSellers_result:
6697
  """
6698
  Attributes:
6699
   - success
6700
   - isex
6701
  """
6702
 
6703
  thrift_spec = (
6704
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6705
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6706
  )
6707
 
6708
  def __init__(self, success=None, isex=None,):
6709
    self.success = success
6710
    self.isex = isex
6711
 
6712
  def read(self, iprot):
6713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6715
      return
6716
    iprot.readStructBegin()
6717
    while True:
6718
      (fname, ftype, fid) = iprot.readFieldBegin()
6719
      if ftype == TType.STOP:
6720
        break
6721
      if fid == 0:
6722
        if ftype == TType.LIST:
6723
          self.success = []
6724
          (_etype61, _size58) = iprot.readListBegin()
6725
          for _i62 in xrange(_size58):
6726
            _elem63 = Item()
6727
            _elem63.read(iprot)
6728
            self.success.append(_elem63)
6729
          iprot.readListEnd()
6730
        else:
6731
          iprot.skip(ftype)
6732
      elif fid == 1:
6733
        if ftype == TType.STRUCT:
6734
          self.isex = CatalogServiceException()
6735
          self.isex.read(iprot)
6736
        else:
6737
          iprot.skip(ftype)
6738
      else:
6739
        iprot.skip(ftype)
6740
      iprot.readFieldEnd()
6741
    iprot.readStructEnd()
6742
 
6743
  def write(self, oprot):
6744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6746
      return
6747
    oprot.writeStructBegin('getBestSellers_result')
6748
    if self.success is not None:
6749
      oprot.writeFieldBegin('success', TType.LIST, 0)
6750
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6751
      for iter64 in self.success:
6752
        iter64.write(oprot)
6753
      oprot.writeListEnd()
6754
      oprot.writeFieldEnd()
6755
    if self.isex is not None:
6756
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6757
      self.isex.write(oprot)
6758
      oprot.writeFieldEnd()
6759
    oprot.writeFieldStop()
6760
    oprot.writeStructEnd()
6761
 
6762
  def validate(self):
6763
    return
6764
 
6765
 
6766
  def __repr__(self):
6767
    L = ['%s=%r' % (key, value)
6768
      for key, value in self.__dict__.iteritems()]
6769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6770
 
6771
  def __eq__(self, other):
6772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6773
 
6774
  def __ne__(self, other):
6775
    return not (self == other)
6776
 
6777
class getBestSellersCatalogIds_args:
6778
  """
6779
  Attributes:
6780
   - beginIndex
6781
   - totalItems
6782
   - brand
6783
   - category
6784
  """
6785
 
6786
  thrift_spec = (
6787
    None, # 0
6788
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6789
    (2, TType.I64, 'totalItems', None, None, ), # 2
6790
    (3, TType.STRING, 'brand', None, None, ), # 3
6791
    (4, TType.I64, 'category', None, None, ), # 4
6792
  )
6793
 
6794
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6795
    self.beginIndex = beginIndex
6796
    self.totalItems = totalItems
6797
    self.brand = brand
6798
    self.category = category
6799
 
6800
  def read(self, iprot):
6801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6803
      return
6804
    iprot.readStructBegin()
6805
    while True:
6806
      (fname, ftype, fid) = iprot.readFieldBegin()
6807
      if ftype == TType.STOP:
6808
        break
6809
      if fid == 1:
6810
        if ftype == TType.I64:
6811
          self.beginIndex = iprot.readI64();
6812
        else:
6813
          iprot.skip(ftype)
6814
      elif fid == 2:
6815
        if ftype == TType.I64:
6816
          self.totalItems = iprot.readI64();
6817
        else:
6818
          iprot.skip(ftype)
6819
      elif fid == 3:
6820
        if ftype == TType.STRING:
6821
          self.brand = iprot.readString();
6822
        else:
6823
          iprot.skip(ftype)
6824
      elif fid == 4:
6825
        if ftype == TType.I64:
6826
          self.category = iprot.readI64();
6827
        else:
6828
          iprot.skip(ftype)
6829
      else:
6830
        iprot.skip(ftype)
6831
      iprot.readFieldEnd()
6832
    iprot.readStructEnd()
6833
 
6834
  def write(self, oprot):
6835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6837
      return
6838
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6839
    if self.beginIndex is not None:
6840
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6841
      oprot.writeI64(self.beginIndex)
6842
      oprot.writeFieldEnd()
6843
    if self.totalItems is not None:
6844
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6845
      oprot.writeI64(self.totalItems)
6846
      oprot.writeFieldEnd()
6847
    if self.brand is not None:
6848
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6849
      oprot.writeString(self.brand)
6850
      oprot.writeFieldEnd()
6851
    if self.category is not None:
6852
      oprot.writeFieldBegin('category', TType.I64, 4)
6853
      oprot.writeI64(self.category)
6854
      oprot.writeFieldEnd()
6855
    oprot.writeFieldStop()
6856
    oprot.writeStructEnd()
6857
 
6858
  def validate(self):
6859
    return
6860
 
6861
 
6862
  def __repr__(self):
6863
    L = ['%s=%r' % (key, value)
6864
      for key, value in self.__dict__.iteritems()]
6865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6866
 
6867
  def __eq__(self, other):
6868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6869
 
6870
  def __ne__(self, other):
6871
    return not (self == other)
6872
 
6873
class getBestSellersCatalogIds_result:
6874
  """
6875
  Attributes:
6876
   - success
6877
   - cex
6878
  """
6879
 
6880
  thrift_spec = (
6881
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6882
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6883
  )
6884
 
6885
  def __init__(self, success=None, cex=None,):
6886
    self.success = success
6887
    self.cex = cex
6888
 
6889
  def read(self, iprot):
6890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6892
      return
6893
    iprot.readStructBegin()
6894
    while True:
6895
      (fname, ftype, fid) = iprot.readFieldBegin()
6896
      if ftype == TType.STOP:
6897
        break
6898
      if fid == 0:
6899
        if ftype == TType.LIST:
6900
          self.success = []
6901
          (_etype68, _size65) = iprot.readListBegin()
6902
          for _i69 in xrange(_size65):
6903
            _elem70 = iprot.readI64();
6904
            self.success.append(_elem70)
6905
          iprot.readListEnd()
6906
        else:
6907
          iprot.skip(ftype)
6908
      elif fid == 1:
6909
        if ftype == TType.STRUCT:
6910
          self.cex = CatalogServiceException()
6911
          self.cex.read(iprot)
6912
        else:
6913
          iprot.skip(ftype)
6914
      else:
6915
        iprot.skip(ftype)
6916
      iprot.readFieldEnd()
6917
    iprot.readStructEnd()
6918
 
6919
  def write(self, oprot):
6920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6922
      return
6923
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6924
    if self.success is not None:
6925
      oprot.writeFieldBegin('success', TType.LIST, 0)
6926
      oprot.writeListBegin(TType.I64, len(self.success))
6927
      for iter71 in self.success:
6928
        oprot.writeI64(iter71)
6929
      oprot.writeListEnd()
6930
      oprot.writeFieldEnd()
6931
    if self.cex is not None:
6932
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6933
      self.cex.write(oprot)
6934
      oprot.writeFieldEnd()
6935
    oprot.writeFieldStop()
6936
    oprot.writeStructEnd()
6937
 
6938
  def validate(self):
6939
    return
6940
 
6941
 
6942
  def __repr__(self):
6943
    L = ['%s=%r' % (key, value)
6944
      for key, value in self.__dict__.iteritems()]
6945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6946
 
6947
  def __eq__(self, other):
6948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6949
 
6950
  def __ne__(self, other):
6951
    return not (self == other)
6952
 
6953
class getBestSellersCount_args:
6954
 
6955
  thrift_spec = (
6956
  )
6957
 
6958
  def read(self, iprot):
6959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6961
      return
6962
    iprot.readStructBegin()
6963
    while True:
6964
      (fname, ftype, fid) = iprot.readFieldBegin()
6965
      if ftype == TType.STOP:
6966
        break
6967
      else:
6968
        iprot.skip(ftype)
6969
      iprot.readFieldEnd()
6970
    iprot.readStructEnd()
6971
 
6972
  def write(self, oprot):
6973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6975
      return
6976
    oprot.writeStructBegin('getBestSellersCount_args')
6977
    oprot.writeFieldStop()
6978
    oprot.writeStructEnd()
6979
 
6980
  def validate(self):
6981
    return
6982
 
6983
 
6984
  def __repr__(self):
6985
    L = ['%s=%r' % (key, value)
6986
      for key, value in self.__dict__.iteritems()]
6987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6988
 
6989
  def __eq__(self, other):
6990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6991
 
6992
  def __ne__(self, other):
6993
    return not (self == other)
6994
 
6995
class getBestSellersCount_result:
6996
  """
6997
  Attributes:
6998
   - success
6999
   - cex
7000
  """
7001
 
7002
  thrift_spec = (
7003
    (0, TType.I64, 'success', None, None, ), # 0
7004
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7005
  )
7006
 
7007
  def __init__(self, success=None, cex=None,):
7008
    self.success = success
7009
    self.cex = cex
7010
 
7011
  def read(self, iprot):
7012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7014
      return
7015
    iprot.readStructBegin()
7016
    while True:
7017
      (fname, ftype, fid) = iprot.readFieldBegin()
7018
      if ftype == TType.STOP:
7019
        break
7020
      if fid == 0:
7021
        if ftype == TType.I64:
7022
          self.success = iprot.readI64();
7023
        else:
7024
          iprot.skip(ftype)
7025
      elif fid == 1:
7026
        if ftype == TType.STRUCT:
7027
          self.cex = CatalogServiceException()
7028
          self.cex.read(iprot)
7029
        else:
7030
          iprot.skip(ftype)
7031
      else:
7032
        iprot.skip(ftype)
7033
      iprot.readFieldEnd()
7034
    iprot.readStructEnd()
7035
 
7036
  def write(self, oprot):
7037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7039
      return
7040
    oprot.writeStructBegin('getBestSellersCount_result')
7041
    if self.success is not None:
7042
      oprot.writeFieldBegin('success', TType.I64, 0)
7043
      oprot.writeI64(self.success)
7044
      oprot.writeFieldEnd()
7045
    if self.cex is not None:
7046
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7047
      self.cex.write(oprot)
7048
      oprot.writeFieldEnd()
7049
    oprot.writeFieldStop()
7050
    oprot.writeStructEnd()
7051
 
7052
  def validate(self):
7053
    return
7054
 
7055
 
7056
  def __repr__(self):
7057
    L = ['%s=%r' % (key, value)
7058
      for key, value in self.__dict__.iteritems()]
7059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7060
 
7061
  def __eq__(self, other):
7062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7063
 
7064
  def __ne__(self, other):
7065
    return not (self == other)
7066
 
7067
class getBestDeals_args:
7068
 
7069
  thrift_spec = (
7070
  )
7071
 
7072
  def read(self, iprot):
7073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7075
      return
7076
    iprot.readStructBegin()
7077
    while True:
7078
      (fname, ftype, fid) = iprot.readFieldBegin()
7079
      if ftype == TType.STOP:
7080
        break
7081
      else:
7082
        iprot.skip(ftype)
7083
      iprot.readFieldEnd()
7084
    iprot.readStructEnd()
7085
 
7086
  def write(self, oprot):
7087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7089
      return
7090
    oprot.writeStructBegin('getBestDeals_args')
7091
    oprot.writeFieldStop()
7092
    oprot.writeStructEnd()
7093
 
7094
  def validate(self):
7095
    return
7096
 
7097
 
7098
  def __repr__(self):
7099
    L = ['%s=%r' % (key, value)
7100
      for key, value in self.__dict__.iteritems()]
7101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7102
 
7103
  def __eq__(self, other):
7104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7105
 
7106
  def __ne__(self, other):
7107
    return not (self == other)
7108
 
7109
class getBestDeals_result:
7110
  """
7111
  Attributes:
7112
   - success
7113
   - isex
7114
  """
7115
 
7116
  thrift_spec = (
7117
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7118
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7119
  )
7120
 
7121
  def __init__(self, success=None, isex=None,):
7122
    self.success = success
7123
    self.isex = isex
7124
 
7125
  def read(self, iprot):
7126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7128
      return
7129
    iprot.readStructBegin()
7130
    while True:
7131
      (fname, ftype, fid) = iprot.readFieldBegin()
7132
      if ftype == TType.STOP:
7133
        break
7134
      if fid == 0:
7135
        if ftype == TType.LIST:
7136
          self.success = []
7137
          (_etype75, _size72) = iprot.readListBegin()
7138
          for _i76 in xrange(_size72):
7139
            _elem77 = Item()
7140
            _elem77.read(iprot)
7141
            self.success.append(_elem77)
7142
          iprot.readListEnd()
7143
        else:
7144
          iprot.skip(ftype)
7145
      elif fid == 1:
7146
        if ftype == TType.STRUCT:
7147
          self.isex = CatalogServiceException()
7148
          self.isex.read(iprot)
7149
        else:
7150
          iprot.skip(ftype)
7151
      else:
7152
        iprot.skip(ftype)
7153
      iprot.readFieldEnd()
7154
    iprot.readStructEnd()
7155
 
7156
  def write(self, oprot):
7157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7159
      return
7160
    oprot.writeStructBegin('getBestDeals_result')
7161
    if self.success is not None:
7162
      oprot.writeFieldBegin('success', TType.LIST, 0)
7163
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7164
      for iter78 in self.success:
7165
        iter78.write(oprot)
7166
      oprot.writeListEnd()
7167
      oprot.writeFieldEnd()
7168
    if self.isex is not None:
7169
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7170
      self.isex.write(oprot)
7171
      oprot.writeFieldEnd()
7172
    oprot.writeFieldStop()
7173
    oprot.writeStructEnd()
7174
 
7175
  def validate(self):
7176
    return
7177
 
7178
 
7179
  def __repr__(self):
7180
    L = ['%s=%r' % (key, value)
7181
      for key, value in self.__dict__.iteritems()]
7182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7183
 
7184
  def __eq__(self, other):
7185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7186
 
7187
  def __ne__(self, other):
7188
    return not (self == other)
7189
 
7190
class getBestDealsCatalogIds_args:
7191
  """
7192
  Attributes:
7193
   - beginIndex
7194
   - totalItems
7195
   - brand
7196
   - category
7197
  """
7198
 
7199
  thrift_spec = (
7200
    None, # 0
7201
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7202
    (2, TType.I64, 'totalItems', None, None, ), # 2
7203
    (3, TType.STRING, 'brand', None, None, ), # 3
7204
    (4, TType.I64, 'category', None, None, ), # 4
7205
  )
7206
 
7207
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7208
    self.beginIndex = beginIndex
7209
    self.totalItems = totalItems
7210
    self.brand = brand
7211
    self.category = category
7212
 
7213
  def read(self, iprot):
7214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7216
      return
7217
    iprot.readStructBegin()
7218
    while True:
7219
      (fname, ftype, fid) = iprot.readFieldBegin()
7220
      if ftype == TType.STOP:
7221
        break
7222
      if fid == 1:
7223
        if ftype == TType.I64:
7224
          self.beginIndex = iprot.readI64();
7225
        else:
7226
          iprot.skip(ftype)
7227
      elif fid == 2:
7228
        if ftype == TType.I64:
7229
          self.totalItems = iprot.readI64();
7230
        else:
7231
          iprot.skip(ftype)
7232
      elif fid == 3:
7233
        if ftype == TType.STRING:
7234
          self.brand = iprot.readString();
7235
        else:
7236
          iprot.skip(ftype)
7237
      elif fid == 4:
7238
        if ftype == TType.I64:
7239
          self.category = iprot.readI64();
7240
        else:
7241
          iprot.skip(ftype)
7242
      else:
7243
        iprot.skip(ftype)
7244
      iprot.readFieldEnd()
7245
    iprot.readStructEnd()
7246
 
7247
  def write(self, oprot):
7248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7250
      return
7251
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7252
    if self.beginIndex is not None:
7253
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7254
      oprot.writeI64(self.beginIndex)
7255
      oprot.writeFieldEnd()
7256
    if self.totalItems is not None:
7257
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7258
      oprot.writeI64(self.totalItems)
7259
      oprot.writeFieldEnd()
7260
    if self.brand is not None:
7261
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7262
      oprot.writeString(self.brand)
7263
      oprot.writeFieldEnd()
7264
    if self.category is not None:
7265
      oprot.writeFieldBegin('category', TType.I64, 4)
7266
      oprot.writeI64(self.category)
7267
      oprot.writeFieldEnd()
7268
    oprot.writeFieldStop()
7269
    oprot.writeStructEnd()
7270
 
7271
  def validate(self):
7272
    return
7273
 
7274
 
7275
  def __repr__(self):
7276
    L = ['%s=%r' % (key, value)
7277
      for key, value in self.__dict__.iteritems()]
7278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7279
 
7280
  def __eq__(self, other):
7281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7282
 
7283
  def __ne__(self, other):
7284
    return not (self == other)
7285
 
7286
class getBestDealsCatalogIds_result:
7287
  """
7288
  Attributes:
7289
   - success
7290
   - cex
7291
  """
7292
 
7293
  thrift_spec = (
7294
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7295
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7296
  )
7297
 
7298
  def __init__(self, success=None, cex=None,):
7299
    self.success = success
7300
    self.cex = cex
7301
 
7302
  def read(self, iprot):
7303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7305
      return
7306
    iprot.readStructBegin()
7307
    while True:
7308
      (fname, ftype, fid) = iprot.readFieldBegin()
7309
      if ftype == TType.STOP:
7310
        break
7311
      if fid == 0:
7312
        if ftype == TType.LIST:
7313
          self.success = []
7314
          (_etype82, _size79) = iprot.readListBegin()
7315
          for _i83 in xrange(_size79):
7316
            _elem84 = iprot.readI64();
7317
            self.success.append(_elem84)
7318
          iprot.readListEnd()
7319
        else:
7320
          iprot.skip(ftype)
7321
      elif fid == 1:
7322
        if ftype == TType.STRUCT:
7323
          self.cex = CatalogServiceException()
7324
          self.cex.read(iprot)
7325
        else:
7326
          iprot.skip(ftype)
7327
      else:
7328
        iprot.skip(ftype)
7329
      iprot.readFieldEnd()
7330
    iprot.readStructEnd()
7331
 
7332
  def write(self, oprot):
7333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7335
      return
7336
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7337
    if self.success is not None:
7338
      oprot.writeFieldBegin('success', TType.LIST, 0)
7339
      oprot.writeListBegin(TType.I64, len(self.success))
7340
      for iter85 in self.success:
7341
        oprot.writeI64(iter85)
7342
      oprot.writeListEnd()
7343
      oprot.writeFieldEnd()
7344
    if self.cex is not None:
7345
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7346
      self.cex.write(oprot)
7347
      oprot.writeFieldEnd()
7348
    oprot.writeFieldStop()
7349
    oprot.writeStructEnd()
7350
 
7351
  def validate(self):
7352
    return
7353
 
7354
 
7355
  def __repr__(self):
7356
    L = ['%s=%r' % (key, value)
7357
      for key, value in self.__dict__.iteritems()]
7358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7359
 
7360
  def __eq__(self, other):
7361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7362
 
7363
  def __ne__(self, other):
7364
    return not (self == other)
7365
 
7366
class getBestDealsCount_args:
7367
 
7368
  thrift_spec = (
7369
  )
7370
 
7371
  def read(self, iprot):
7372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7374
      return
7375
    iprot.readStructBegin()
7376
    while True:
7377
      (fname, ftype, fid) = iprot.readFieldBegin()
7378
      if ftype == TType.STOP:
7379
        break
7380
      else:
7381
        iprot.skip(ftype)
7382
      iprot.readFieldEnd()
7383
    iprot.readStructEnd()
7384
 
7385
  def write(self, oprot):
7386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7388
      return
7389
    oprot.writeStructBegin('getBestDealsCount_args')
7390
    oprot.writeFieldStop()
7391
    oprot.writeStructEnd()
7392
 
7393
  def validate(self):
7394
    return
7395
 
7396
 
7397
  def __repr__(self):
7398
    L = ['%s=%r' % (key, value)
7399
      for key, value in self.__dict__.iteritems()]
7400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7401
 
7402
  def __eq__(self, other):
7403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7404
 
7405
  def __ne__(self, other):
7406
    return not (self == other)
7407
 
7408
class getBestDealsCount_result:
7409
  """
7410
  Attributes:
7411
   - success
7412
   - cex
7413
  """
7414
 
7415
  thrift_spec = (
7416
    (0, TType.I64, 'success', None, None, ), # 0
7417
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7418
  )
7419
 
7420
  def __init__(self, success=None, cex=None,):
7421
    self.success = success
7422
    self.cex = cex
7423
 
7424
  def read(self, iprot):
7425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7427
      return
7428
    iprot.readStructBegin()
7429
    while True:
7430
      (fname, ftype, fid) = iprot.readFieldBegin()
7431
      if ftype == TType.STOP:
7432
        break
7433
      if fid == 0:
7434
        if ftype == TType.I64:
7435
          self.success = iprot.readI64();
7436
        else:
7437
          iprot.skip(ftype)
7438
      elif fid == 1:
7439
        if ftype == TType.STRUCT:
7440
          self.cex = CatalogServiceException()
7441
          self.cex.read(iprot)
7442
        else:
7443
          iprot.skip(ftype)
7444
      else:
7445
        iprot.skip(ftype)
7446
      iprot.readFieldEnd()
7447
    iprot.readStructEnd()
7448
 
7449
  def write(self, oprot):
7450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7452
      return
7453
    oprot.writeStructBegin('getBestDealsCount_result')
7454
    if self.success is not None:
7455
      oprot.writeFieldBegin('success', TType.I64, 0)
7456
      oprot.writeI64(self.success)
7457
      oprot.writeFieldEnd()
7458
    if self.cex is not None:
7459
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7460
      self.cex.write(oprot)
7461
      oprot.writeFieldEnd()
7462
    oprot.writeFieldStop()
7463
    oprot.writeStructEnd()
7464
 
7465
  def validate(self):
7466
    return
7467
 
7468
 
7469
  def __repr__(self):
7470
    L = ['%s=%r' % (key, value)
7471
      for key, value in self.__dict__.iteritems()]
7472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7473
 
7474
  def __eq__(self, other):
7475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7476
 
7477
  def __ne__(self, other):
7478
    return not (self == other)
7479
 
7480
class getComingSoon_args:
7481
 
7482
  thrift_spec = (
7483
  )
7484
 
7485
  def read(self, iprot):
7486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7488
      return
7489
    iprot.readStructBegin()
7490
    while True:
7491
      (fname, ftype, fid) = iprot.readFieldBegin()
7492
      if ftype == TType.STOP:
7493
        break
7494
      else:
7495
        iprot.skip(ftype)
7496
      iprot.readFieldEnd()
7497
    iprot.readStructEnd()
7498
 
7499
  def write(self, oprot):
7500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7502
      return
7503
    oprot.writeStructBegin('getComingSoon_args')
7504
    oprot.writeFieldStop()
7505
    oprot.writeStructEnd()
7506
 
7507
  def validate(self):
7508
    return
7509
 
7510
 
7511
  def __repr__(self):
7512
    L = ['%s=%r' % (key, value)
7513
      for key, value in self.__dict__.iteritems()]
7514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7515
 
7516
  def __eq__(self, other):
7517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7518
 
7519
  def __ne__(self, other):
7520
    return not (self == other)
7521
 
7522
class getComingSoon_result:
7523
  """
7524
  Attributes:
7525
   - success
7526
   - isex
7527
  """
7528
 
7529
  thrift_spec = (
7530
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7531
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7532
  )
7533
 
7534
  def __init__(self, success=None, isex=None,):
7535
    self.success = success
7536
    self.isex = isex
7537
 
7538
  def read(self, iprot):
7539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7541
      return
7542
    iprot.readStructBegin()
7543
    while True:
7544
      (fname, ftype, fid) = iprot.readFieldBegin()
7545
      if ftype == TType.STOP:
7546
        break
7547
      if fid == 0:
7548
        if ftype == TType.LIST:
7549
          self.success = []
7550
          (_etype89, _size86) = iprot.readListBegin()
7551
          for _i90 in xrange(_size86):
7552
            _elem91 = Item()
7553
            _elem91.read(iprot)
7554
            self.success.append(_elem91)
7555
          iprot.readListEnd()
7556
        else:
7557
          iprot.skip(ftype)
7558
      elif fid == 1:
7559
        if ftype == TType.STRUCT:
7560
          self.isex = CatalogServiceException()
7561
          self.isex.read(iprot)
7562
        else:
7563
          iprot.skip(ftype)
7564
      else:
7565
        iprot.skip(ftype)
7566
      iprot.readFieldEnd()
7567
    iprot.readStructEnd()
7568
 
7569
  def write(self, oprot):
7570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7572
      return
7573
    oprot.writeStructBegin('getComingSoon_result')
7574
    if self.success is not None:
7575
      oprot.writeFieldBegin('success', TType.LIST, 0)
7576
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7577
      for iter92 in self.success:
7578
        iter92.write(oprot)
7579
      oprot.writeListEnd()
7580
      oprot.writeFieldEnd()
7581
    if self.isex is not None:
7582
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7583
      self.isex.write(oprot)
7584
      oprot.writeFieldEnd()
7585
    oprot.writeFieldStop()
7586
    oprot.writeStructEnd()
7587
 
7588
  def validate(self):
7589
    return
7590
 
7591
 
7592
  def __repr__(self):
7593
    L = ['%s=%r' % (key, value)
7594
      for key, value in self.__dict__.iteritems()]
7595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7596
 
7597
  def __eq__(self, other):
7598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7599
 
7600
  def __ne__(self, other):
7601
    return not (self == other)
7602
 
7603
class getComingSoonCatalogIds_args:
7604
  """
7605
  Attributes:
7606
   - beginIndex
7607
   - totalItems
7608
   - brand
7609
   - category
7610
  """
7611
 
7612
  thrift_spec = (
7613
    None, # 0
7614
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7615
    (2, TType.I64, 'totalItems', None, None, ), # 2
7616
    (3, TType.STRING, 'brand', None, None, ), # 3
7617
    (4, TType.I64, 'category', None, None, ), # 4
7618
  )
7619
 
7620
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7621
    self.beginIndex = beginIndex
7622
    self.totalItems = totalItems
7623
    self.brand = brand
7624
    self.category = category
7625
 
7626
  def read(self, iprot):
7627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7629
      return
7630
    iprot.readStructBegin()
7631
    while True:
7632
      (fname, ftype, fid) = iprot.readFieldBegin()
7633
      if ftype == TType.STOP:
7634
        break
7635
      if fid == 1:
7636
        if ftype == TType.I64:
7637
          self.beginIndex = iprot.readI64();
7638
        else:
7639
          iprot.skip(ftype)
7640
      elif fid == 2:
7641
        if ftype == TType.I64:
7642
          self.totalItems = iprot.readI64();
7643
        else:
7644
          iprot.skip(ftype)
7645
      elif fid == 3:
7646
        if ftype == TType.STRING:
7647
          self.brand = iprot.readString();
7648
        else:
7649
          iprot.skip(ftype)
7650
      elif fid == 4:
7651
        if ftype == TType.I64:
7652
          self.category = iprot.readI64();
7653
        else:
7654
          iprot.skip(ftype)
7655
      else:
7656
        iprot.skip(ftype)
7657
      iprot.readFieldEnd()
7658
    iprot.readStructEnd()
7659
 
7660
  def write(self, oprot):
7661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7663
      return
7664
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7665
    if self.beginIndex is not None:
7666
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7667
      oprot.writeI64(self.beginIndex)
7668
      oprot.writeFieldEnd()
7669
    if self.totalItems is not None:
7670
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7671
      oprot.writeI64(self.totalItems)
7672
      oprot.writeFieldEnd()
7673
    if self.brand is not None:
7674
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7675
      oprot.writeString(self.brand)
7676
      oprot.writeFieldEnd()
7677
    if self.category is not None:
7678
      oprot.writeFieldBegin('category', TType.I64, 4)
7679
      oprot.writeI64(self.category)
7680
      oprot.writeFieldEnd()
7681
    oprot.writeFieldStop()
7682
    oprot.writeStructEnd()
7683
 
7684
  def validate(self):
7685
    return
7686
 
7687
 
7688
  def __repr__(self):
7689
    L = ['%s=%r' % (key, value)
7690
      for key, value in self.__dict__.iteritems()]
7691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7692
 
7693
  def __eq__(self, other):
7694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7695
 
7696
  def __ne__(self, other):
7697
    return not (self == other)
7698
 
7699
class getComingSoonCatalogIds_result:
7700
  """
7701
  Attributes:
7702
   - success
7703
   - cex
7704
  """
7705
 
7706
  thrift_spec = (
7707
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7708
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7709
  )
7710
 
7711
  def __init__(self, success=None, cex=None,):
7712
    self.success = success
7713
    self.cex = cex
7714
 
7715
  def read(self, iprot):
7716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7718
      return
7719
    iprot.readStructBegin()
7720
    while True:
7721
      (fname, ftype, fid) = iprot.readFieldBegin()
7722
      if ftype == TType.STOP:
7723
        break
7724
      if fid == 0:
7725
        if ftype == TType.LIST:
7726
          self.success = []
7727
          (_etype96, _size93) = iprot.readListBegin()
7728
          for _i97 in xrange(_size93):
7729
            _elem98 = iprot.readI64();
7730
            self.success.append(_elem98)
7731
          iprot.readListEnd()
7732
        else:
7733
          iprot.skip(ftype)
7734
      elif fid == 1:
7735
        if ftype == TType.STRUCT:
7736
          self.cex = CatalogServiceException()
7737
          self.cex.read(iprot)
7738
        else:
7739
          iprot.skip(ftype)
7740
      else:
7741
        iprot.skip(ftype)
7742
      iprot.readFieldEnd()
7743
    iprot.readStructEnd()
7744
 
7745
  def write(self, oprot):
7746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7748
      return
7749
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7750
    if self.success is not None:
7751
      oprot.writeFieldBegin('success', TType.LIST, 0)
7752
      oprot.writeListBegin(TType.I64, len(self.success))
7753
      for iter99 in self.success:
7754
        oprot.writeI64(iter99)
7755
      oprot.writeListEnd()
7756
      oprot.writeFieldEnd()
7757
    if self.cex is not None:
7758
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7759
      self.cex.write(oprot)
7760
      oprot.writeFieldEnd()
7761
    oprot.writeFieldStop()
7762
    oprot.writeStructEnd()
7763
 
7764
  def validate(self):
7765
    return
7766
 
7767
 
7768
  def __repr__(self):
7769
    L = ['%s=%r' % (key, value)
7770
      for key, value in self.__dict__.iteritems()]
7771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7772
 
7773
  def __eq__(self, other):
7774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7775
 
7776
  def __ne__(self, other):
7777
    return not (self == other)
7778
 
7779
class getComingSoonCount_args:
7780
 
7781
  thrift_spec = (
7782
  )
7783
 
7784
  def read(self, iprot):
7785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7787
      return
7788
    iprot.readStructBegin()
7789
    while True:
7790
      (fname, ftype, fid) = iprot.readFieldBegin()
7791
      if ftype == TType.STOP:
7792
        break
7793
      else:
7794
        iprot.skip(ftype)
7795
      iprot.readFieldEnd()
7796
    iprot.readStructEnd()
7797
 
7798
  def write(self, oprot):
7799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7801
      return
7802
    oprot.writeStructBegin('getComingSoonCount_args')
7803
    oprot.writeFieldStop()
7804
    oprot.writeStructEnd()
7805
 
7806
  def validate(self):
7807
    return
7808
 
7809
 
7810
  def __repr__(self):
7811
    L = ['%s=%r' % (key, value)
7812
      for key, value in self.__dict__.iteritems()]
7813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7814
 
7815
  def __eq__(self, other):
7816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7817
 
7818
  def __ne__(self, other):
7819
    return not (self == other)
7820
 
7821
class getComingSoonCount_result:
7822
  """
7823
  Attributes:
7824
   - success
7825
   - cex
7826
  """
7827
 
7828
  thrift_spec = (
7829
    (0, TType.I64, 'success', None, None, ), # 0
7830
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7831
  )
7832
 
7833
  def __init__(self, success=None, cex=None,):
7834
    self.success = success
7835
    self.cex = cex
7836
 
7837
  def read(self, iprot):
7838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7840
      return
7841
    iprot.readStructBegin()
7842
    while True:
7843
      (fname, ftype, fid) = iprot.readFieldBegin()
7844
      if ftype == TType.STOP:
7845
        break
7846
      if fid == 0:
7847
        if ftype == TType.I64:
7848
          self.success = iprot.readI64();
7849
        else:
7850
          iprot.skip(ftype)
7851
      elif fid == 1:
7852
        if ftype == TType.STRUCT:
7853
          self.cex = CatalogServiceException()
7854
          self.cex.read(iprot)
7855
        else:
7856
          iprot.skip(ftype)
7857
      else:
7858
        iprot.skip(ftype)
7859
      iprot.readFieldEnd()
7860
    iprot.readStructEnd()
7861
 
7862
  def write(self, oprot):
7863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7865
      return
7866
    oprot.writeStructBegin('getComingSoonCount_result')
7867
    if self.success is not None:
7868
      oprot.writeFieldBegin('success', TType.I64, 0)
7869
      oprot.writeI64(self.success)
7870
      oprot.writeFieldEnd()
7871
    if self.cex is not None:
7872
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7873
      self.cex.write(oprot)
7874
      oprot.writeFieldEnd()
7875
    oprot.writeFieldStop()
7876
    oprot.writeStructEnd()
7877
 
7878
  def validate(self):
7879
    return
7880
 
7881
 
7882
  def __repr__(self):
7883
    L = ['%s=%r' % (key, value)
7884
      for key, value in self.__dict__.iteritems()]
7885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7886
 
7887
  def __eq__(self, other):
7888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7889
 
7890
  def __ne__(self, other):
7891
    return not (self == other)
7892
 
7893
class getLatestArrivals_args:
7894
 
7895
  thrift_spec = (
7896
  )
7897
 
7898
  def read(self, iprot):
7899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7901
      return
7902
    iprot.readStructBegin()
7903
    while True:
7904
      (fname, ftype, fid) = iprot.readFieldBegin()
7905
      if ftype == TType.STOP:
7906
        break
7907
      else:
7908
        iprot.skip(ftype)
7909
      iprot.readFieldEnd()
7910
    iprot.readStructEnd()
7911
 
7912
  def write(self, oprot):
7913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7915
      return
7916
    oprot.writeStructBegin('getLatestArrivals_args')
7917
    oprot.writeFieldStop()
7918
    oprot.writeStructEnd()
7919
 
7920
  def validate(self):
7921
    return
7922
 
7923
 
7924
  def __repr__(self):
7925
    L = ['%s=%r' % (key, value)
7926
      for key, value in self.__dict__.iteritems()]
7927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7928
 
7929
  def __eq__(self, other):
7930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7931
 
7932
  def __ne__(self, other):
7933
    return not (self == other)
7934
 
7935
class getLatestArrivals_result:
7936
  """
7937
  Attributes:
7938
   - success
7939
   - isex
7940
  """
7941
 
7942
  thrift_spec = (
7943
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7944
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7945
  )
7946
 
7947
  def __init__(self, success=None, isex=None,):
7948
    self.success = success
7949
    self.isex = isex
7950
 
7951
  def read(self, iprot):
7952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7954
      return
7955
    iprot.readStructBegin()
7956
    while True:
7957
      (fname, ftype, fid) = iprot.readFieldBegin()
7958
      if ftype == TType.STOP:
7959
        break
7960
      if fid == 0:
7961
        if ftype == TType.LIST:
7962
          self.success = []
7963
          (_etype103, _size100) = iprot.readListBegin()
7964
          for _i104 in xrange(_size100):
7965
            _elem105 = Item()
7966
            _elem105.read(iprot)
7967
            self.success.append(_elem105)
7968
          iprot.readListEnd()
7969
        else:
7970
          iprot.skip(ftype)
7971
      elif fid == 1:
7972
        if ftype == TType.STRUCT:
7973
          self.isex = CatalogServiceException()
7974
          self.isex.read(iprot)
7975
        else:
7976
          iprot.skip(ftype)
7977
      else:
7978
        iprot.skip(ftype)
7979
      iprot.readFieldEnd()
7980
    iprot.readStructEnd()
7981
 
7982
  def write(self, oprot):
7983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7985
      return
7986
    oprot.writeStructBegin('getLatestArrivals_result')
7987
    if self.success is not None:
7988
      oprot.writeFieldBegin('success', TType.LIST, 0)
7989
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7990
      for iter106 in self.success:
7991
        iter106.write(oprot)
7992
      oprot.writeListEnd()
7993
      oprot.writeFieldEnd()
7994
    if self.isex is not None:
7995
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7996
      self.isex.write(oprot)
7997
      oprot.writeFieldEnd()
7998
    oprot.writeFieldStop()
7999
    oprot.writeStructEnd()
8000
 
8001
  def validate(self):
8002
    return
8003
 
8004
 
8005
  def __repr__(self):
8006
    L = ['%s=%r' % (key, value)
8007
      for key, value in self.__dict__.iteritems()]
8008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8009
 
8010
  def __eq__(self, other):
8011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8012
 
8013
  def __ne__(self, other):
8014
    return not (self == other)
8015
 
8016
class getLatestArrivalsCatalogIds_args:
8017
  """
8018
  Attributes:
8019
   - beginIndex
8020
   - totalItems
8021
   - brand
8022
   - categories
8023
  """
8024
 
8025
  thrift_spec = (
8026
    None, # 0
8027
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8028
    (2, TType.I64, 'totalItems', None, None, ), # 2
8029
    (3, TType.STRING, 'brand', None, None, ), # 3
8030
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8031
  )
8032
 
8033
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8034
    self.beginIndex = beginIndex
8035
    self.totalItems = totalItems
8036
    self.brand = brand
8037
    self.categories = categories
8038
 
8039
  def read(self, iprot):
8040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8042
      return
8043
    iprot.readStructBegin()
8044
    while True:
8045
      (fname, ftype, fid) = iprot.readFieldBegin()
8046
      if ftype == TType.STOP:
8047
        break
8048
      if fid == 1:
8049
        if ftype == TType.I64:
8050
          self.beginIndex = iprot.readI64();
8051
        else:
8052
          iprot.skip(ftype)
8053
      elif fid == 2:
8054
        if ftype == TType.I64:
8055
          self.totalItems = iprot.readI64();
8056
        else:
8057
          iprot.skip(ftype)
8058
      elif fid == 3:
8059
        if ftype == TType.STRING:
8060
          self.brand = iprot.readString();
8061
        else:
8062
          iprot.skip(ftype)
8063
      elif fid == 4:
8064
        if ftype == TType.LIST:
8065
          self.categories = []
8066
          (_etype110, _size107) = iprot.readListBegin()
8067
          for _i111 in xrange(_size107):
8068
            _elem112 = iprot.readI64();
8069
            self.categories.append(_elem112)
8070
          iprot.readListEnd()
8071
        else:
8072
          iprot.skip(ftype)
8073
      else:
8074
        iprot.skip(ftype)
8075
      iprot.readFieldEnd()
8076
    iprot.readStructEnd()
8077
 
8078
  def write(self, oprot):
8079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8081
      return
8082
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8083
    if self.beginIndex is not None:
8084
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8085
      oprot.writeI64(self.beginIndex)
8086
      oprot.writeFieldEnd()
8087
    if self.totalItems is not None:
8088
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8089
      oprot.writeI64(self.totalItems)
8090
      oprot.writeFieldEnd()
8091
    if self.brand is not None:
8092
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8093
      oprot.writeString(self.brand)
8094
      oprot.writeFieldEnd()
8095
    if self.categories is not None:
8096
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8097
      oprot.writeListBegin(TType.I64, len(self.categories))
8098
      for iter113 in self.categories:
8099
        oprot.writeI64(iter113)
8100
      oprot.writeListEnd()
8101
      oprot.writeFieldEnd()
8102
    oprot.writeFieldStop()
8103
    oprot.writeStructEnd()
8104
 
8105
  def validate(self):
8106
    return
8107
 
8108
 
8109
  def __repr__(self):
8110
    L = ['%s=%r' % (key, value)
8111
      for key, value in self.__dict__.iteritems()]
8112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8113
 
8114
  def __eq__(self, other):
8115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8116
 
8117
  def __ne__(self, other):
8118
    return not (self == other)
8119
 
8120
class getLatestArrivalsCatalogIds_result:
8121
  """
8122
  Attributes:
8123
   - success
8124
   - cex
8125
  """
8126
 
8127
  thrift_spec = (
8128
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8129
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8130
  )
8131
 
8132
  def __init__(self, success=None, cex=None,):
8133
    self.success = success
8134
    self.cex = cex
8135
 
8136
  def read(self, iprot):
8137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8139
      return
8140
    iprot.readStructBegin()
8141
    while True:
8142
      (fname, ftype, fid) = iprot.readFieldBegin()
8143
      if ftype == TType.STOP:
8144
        break
8145
      if fid == 0:
8146
        if ftype == TType.LIST:
8147
          self.success = []
8148
          (_etype117, _size114) = iprot.readListBegin()
8149
          for _i118 in xrange(_size114):
8150
            _elem119 = iprot.readI64();
8151
            self.success.append(_elem119)
8152
          iprot.readListEnd()
8153
        else:
8154
          iprot.skip(ftype)
8155
      elif fid == 1:
8156
        if ftype == TType.STRUCT:
8157
          self.cex = CatalogServiceException()
8158
          self.cex.read(iprot)
8159
        else:
8160
          iprot.skip(ftype)
8161
      else:
8162
        iprot.skip(ftype)
8163
      iprot.readFieldEnd()
8164
    iprot.readStructEnd()
8165
 
8166
  def write(self, oprot):
8167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8169
      return
8170
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8171
    if self.success is not None:
8172
      oprot.writeFieldBegin('success', TType.LIST, 0)
8173
      oprot.writeListBegin(TType.I64, len(self.success))
8174
      for iter120 in self.success:
8175
        oprot.writeI64(iter120)
8176
      oprot.writeListEnd()
8177
      oprot.writeFieldEnd()
8178
    if self.cex is not None:
8179
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8180
      self.cex.write(oprot)
8181
      oprot.writeFieldEnd()
8182
    oprot.writeFieldStop()
8183
    oprot.writeStructEnd()
8184
 
8185
  def validate(self):
8186
    return
8187
 
8188
 
8189
  def __repr__(self):
8190
    L = ['%s=%r' % (key, value)
8191
      for key, value in self.__dict__.iteritems()]
8192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8193
 
8194
  def __eq__(self, other):
8195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8196
 
8197
  def __ne__(self, other):
8198
    return not (self == other)
8199
 
8200
class getLatestArrivalsCount_args:
8201
 
8202
  thrift_spec = (
8203
  )
8204
 
8205
  def read(self, iprot):
8206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8208
      return
8209
    iprot.readStructBegin()
8210
    while True:
8211
      (fname, ftype, fid) = iprot.readFieldBegin()
8212
      if ftype == TType.STOP:
8213
        break
8214
      else:
8215
        iprot.skip(ftype)
8216
      iprot.readFieldEnd()
8217
    iprot.readStructEnd()
8218
 
8219
  def write(self, oprot):
8220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8222
      return
8223
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8224
    oprot.writeFieldStop()
8225
    oprot.writeStructEnd()
8226
 
8227
  def validate(self):
8228
    return
8229
 
8230
 
8231
  def __repr__(self):
8232
    L = ['%s=%r' % (key, value)
8233
      for key, value in self.__dict__.iteritems()]
8234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8235
 
8236
  def __eq__(self, other):
8237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8238
 
8239
  def __ne__(self, other):
8240
    return not (self == other)
8241
 
8242
class getLatestArrivalsCount_result:
8243
  """
8244
  Attributes:
8245
   - success
8246
   - cex
8247
  """
8248
 
8249
  thrift_spec = (
8250
    (0, TType.I64, 'success', None, None, ), # 0
8251
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8252
  )
8253
 
8254
  def __init__(self, success=None, cex=None,):
8255
    self.success = success
8256
    self.cex = cex
8257
 
8258
  def read(self, iprot):
8259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8261
      return
8262
    iprot.readStructBegin()
8263
    while True:
8264
      (fname, ftype, fid) = iprot.readFieldBegin()
8265
      if ftype == TType.STOP:
8266
        break
8267
      if fid == 0:
8268
        if ftype == TType.I64:
8269
          self.success = iprot.readI64();
8270
        else:
8271
          iprot.skip(ftype)
8272
      elif fid == 1:
8273
        if ftype == TType.STRUCT:
8274
          self.cex = CatalogServiceException()
8275
          self.cex.read(iprot)
8276
        else:
8277
          iprot.skip(ftype)
8278
      else:
8279
        iprot.skip(ftype)
8280
      iprot.readFieldEnd()
8281
    iprot.readStructEnd()
8282
 
8283
  def write(self, oprot):
8284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8286
      return
8287
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8288
    if self.success is not None:
8289
      oprot.writeFieldBegin('success', TType.I64, 0)
8290
      oprot.writeI64(self.success)
8291
      oprot.writeFieldEnd()
8292
    if self.cex is not None:
8293
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8294
      self.cex.write(oprot)
8295
      oprot.writeFieldEnd()
8296
    oprot.writeFieldStop()
8297
    oprot.writeStructEnd()
8298
 
8299
  def validate(self):
8300
    return
8301
 
8302
 
8303
  def __repr__(self):
8304
    L = ['%s=%r' % (key, value)
8305
      for key, value in self.__dict__.iteritems()]
8306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8307
 
8308
  def __eq__(self, other):
8309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8310
 
8311
  def __ne__(self, other):
8312
    return not (self == other)
8313
 
8314
class generateNewEntityID_args:
8315
 
8316
  thrift_spec = (
8317
  )
8318
 
8319
  def read(self, iprot):
8320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8322
      return
8323
    iprot.readStructBegin()
8324
    while True:
8325
      (fname, ftype, fid) = iprot.readFieldBegin()
8326
      if ftype == TType.STOP:
8327
        break
8328
      else:
8329
        iprot.skip(ftype)
8330
      iprot.readFieldEnd()
8331
    iprot.readStructEnd()
8332
 
8333
  def write(self, oprot):
8334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8336
      return
8337
    oprot.writeStructBegin('generateNewEntityID_args')
8338
    oprot.writeFieldStop()
8339
    oprot.writeStructEnd()
8340
 
8341
  def validate(self):
8342
    return
8343
 
8344
 
8345
  def __repr__(self):
8346
    L = ['%s=%r' % (key, value)
8347
      for key, value in self.__dict__.iteritems()]
8348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8349
 
8350
  def __eq__(self, other):
8351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8352
 
8353
  def __ne__(self, other):
8354
    return not (self == other)
8355
 
8356
class generateNewEntityID_result:
8357
  """
8358
  Attributes:
8359
   - success
8360
  """
8361
 
8362
  thrift_spec = (
8363
    (0, TType.I64, 'success', None, None, ), # 0
8364
  )
8365
 
8366
  def __init__(self, success=None,):
8367
    self.success = success
8368
 
8369
  def read(self, iprot):
8370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8372
      return
8373
    iprot.readStructBegin()
8374
    while True:
8375
      (fname, ftype, fid) = iprot.readFieldBegin()
8376
      if ftype == TType.STOP:
8377
        break
8378
      if fid == 0:
8379
        if ftype == TType.I64:
8380
          self.success = iprot.readI64();
8381
        else:
8382
          iprot.skip(ftype)
8383
      else:
8384
        iprot.skip(ftype)
8385
      iprot.readFieldEnd()
8386
    iprot.readStructEnd()
8387
 
8388
  def write(self, oprot):
8389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8391
      return
8392
    oprot.writeStructBegin('generateNewEntityID_result')
8393
    if self.success is not None:
8394
      oprot.writeFieldBegin('success', TType.I64, 0)
8395
      oprot.writeI64(self.success)
8396
      oprot.writeFieldEnd()
8397
    oprot.writeFieldStop()
8398
    oprot.writeStructEnd()
8399
 
8400
  def validate(self):
8401
    return
8402
 
8403
 
8404
  def __repr__(self):
8405
    L = ['%s=%r' % (key, value)
8406
      for key, value in self.__dict__.iteritems()]
8407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8408
 
8409
  def __eq__(self, other):
8410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8411
 
8412
  def __ne__(self, other):
8413
    return not (self == other)
8414
 
8415
class addCategory_args:
8416
  """
8417
  Attributes:
8418
   - category
8419
  """
8420
 
8421
  thrift_spec = (
8422
    None, # 0
8423
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8424
  )
8425
 
8426
  def __init__(self, category=None,):
8427
    self.category = category
8428
 
8429
  def read(self, iprot):
8430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8432
      return
8433
    iprot.readStructBegin()
8434
    while True:
8435
      (fname, ftype, fid) = iprot.readFieldBegin()
8436
      if ftype == TType.STOP:
8437
        break
8438
      if fid == 1:
8439
        if ftype == TType.STRUCT:
8440
          self.category = Category()
8441
          self.category.read(iprot)
8442
        else:
8443
          iprot.skip(ftype)
8444
      else:
8445
        iprot.skip(ftype)
8446
      iprot.readFieldEnd()
8447
    iprot.readStructEnd()
8448
 
8449
  def write(self, oprot):
8450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8452
      return
8453
    oprot.writeStructBegin('addCategory_args')
8454
    if self.category is not None:
8455
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8456
      self.category.write(oprot)
8457
      oprot.writeFieldEnd()
8458
    oprot.writeFieldStop()
8459
    oprot.writeStructEnd()
8460
 
8461
  def validate(self):
8462
    return
8463
 
8464
 
8465
  def __repr__(self):
8466
    L = ['%s=%r' % (key, value)
8467
      for key, value in self.__dict__.iteritems()]
8468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8469
 
8470
  def __eq__(self, other):
8471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8472
 
8473
  def __ne__(self, other):
8474
    return not (self == other)
8475
 
8476
class addCategory_result:
8477
  """
8478
  Attributes:
8479
   - success
8480
  """
8481
 
8482
  thrift_spec = (
8483
    (0, TType.BOOL, 'success', None, None, ), # 0
8484
  )
8485
 
8486
  def __init__(self, success=None,):
8487
    self.success = success
8488
 
8489
  def read(self, iprot):
8490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8492
      return
8493
    iprot.readStructBegin()
8494
    while True:
8495
      (fname, ftype, fid) = iprot.readFieldBegin()
8496
      if ftype == TType.STOP:
8497
        break
8498
      if fid == 0:
8499
        if ftype == TType.BOOL:
8500
          self.success = iprot.readBool();
8501
        else:
8502
          iprot.skip(ftype)
8503
      else:
8504
        iprot.skip(ftype)
8505
      iprot.readFieldEnd()
8506
    iprot.readStructEnd()
8507
 
8508
  def write(self, oprot):
8509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8511
      return
8512
    oprot.writeStructBegin('addCategory_result')
8513
    if self.success is not None:
8514
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8515
      oprot.writeBool(self.success)
8516
      oprot.writeFieldEnd()
8517
    oprot.writeFieldStop()
8518
    oprot.writeStructEnd()
8519
 
8520
  def validate(self):
8521
    return
8522
 
8523
 
8524
  def __repr__(self):
8525
    L = ['%s=%r' % (key, value)
8526
      for key, value in self.__dict__.iteritems()]
8527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8528
 
8529
  def __eq__(self, other):
8530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8531
 
8532
  def __ne__(self, other):
8533
    return not (self == other)
8534
 
8535
class getCategory_args:
8536
  """
8537
  Attributes:
8538
   - id
8539
  """
8540
 
8541
  thrift_spec = (
8542
    None, # 0
8543
    (1, TType.I64, 'id', None, None, ), # 1
8544
  )
8545
 
8546
  def __init__(self, id=None,):
8547
    self.id = id
8548
 
8549
  def read(self, iprot):
8550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8552
      return
8553
    iprot.readStructBegin()
8554
    while True:
8555
      (fname, ftype, fid) = iprot.readFieldBegin()
8556
      if ftype == TType.STOP:
8557
        break
8558
      if fid == 1:
8559
        if ftype == TType.I64:
8560
          self.id = iprot.readI64();
8561
        else:
8562
          iprot.skip(ftype)
8563
      else:
8564
        iprot.skip(ftype)
8565
      iprot.readFieldEnd()
8566
    iprot.readStructEnd()
8567
 
8568
  def write(self, oprot):
8569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8571
      return
8572
    oprot.writeStructBegin('getCategory_args')
8573
    if self.id is not None:
8574
      oprot.writeFieldBegin('id', TType.I64, 1)
8575
      oprot.writeI64(self.id)
8576
      oprot.writeFieldEnd()
8577
    oprot.writeFieldStop()
8578
    oprot.writeStructEnd()
8579
 
8580
  def validate(self):
8581
    return
8582
 
8583
 
8584
  def __repr__(self):
8585
    L = ['%s=%r' % (key, value)
8586
      for key, value in self.__dict__.iteritems()]
8587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8588
 
8589
  def __eq__(self, other):
8590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8591
 
8592
  def __ne__(self, other):
8593
    return not (self == other)
8594
 
8595
class getCategory_result:
8596
  """
8597
  Attributes:
8598
   - success
8599
  """
8600
 
8601
  thrift_spec = (
8602
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8603
  )
8604
 
8605
  def __init__(self, success=None,):
8606
    self.success = success
8607
 
8608
  def read(self, iprot):
8609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8611
      return
8612
    iprot.readStructBegin()
8613
    while True:
8614
      (fname, ftype, fid) = iprot.readFieldBegin()
8615
      if ftype == TType.STOP:
8616
        break
8617
      if fid == 0:
8618
        if ftype == TType.STRUCT:
8619
          self.success = Category()
8620
          self.success.read(iprot)
8621
        else:
8622
          iprot.skip(ftype)
8623
      else:
8624
        iprot.skip(ftype)
8625
      iprot.readFieldEnd()
8626
    iprot.readStructEnd()
8627
 
8628
  def write(self, oprot):
8629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8631
      return
8632
    oprot.writeStructBegin('getCategory_result')
8633
    if self.success is not None:
8634
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8635
      self.success.write(oprot)
8636
      oprot.writeFieldEnd()
8637
    oprot.writeFieldStop()
8638
    oprot.writeStructEnd()
8639
 
8640
  def validate(self):
8641
    return
8642
 
8643
 
8644
  def __repr__(self):
8645
    L = ['%s=%r' % (key, value)
8646
      for key, value in self.__dict__.iteritems()]
8647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8648
 
8649
  def __eq__(self, other):
8650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8651
 
8652
  def __ne__(self, other):
8653
    return not (self == other)
8654
 
8655
class getAllCategories_args:
8656
 
8657
  thrift_spec = (
8658
  )
8659
 
8660
  def read(self, iprot):
8661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8663
      return
8664
    iprot.readStructBegin()
8665
    while True:
8666
      (fname, ftype, fid) = iprot.readFieldBegin()
8667
      if ftype == TType.STOP:
8668
        break
8669
      else:
8670
        iprot.skip(ftype)
8671
      iprot.readFieldEnd()
8672
    iprot.readStructEnd()
8673
 
8674
  def write(self, oprot):
8675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8677
      return
8678
    oprot.writeStructBegin('getAllCategories_args')
8679
    oprot.writeFieldStop()
8680
    oprot.writeStructEnd()
8681
 
8682
  def validate(self):
8683
    return
8684
 
8685
 
8686
  def __repr__(self):
8687
    L = ['%s=%r' % (key, value)
8688
      for key, value in self.__dict__.iteritems()]
8689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8690
 
8691
  def __eq__(self, other):
8692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8693
 
8694
  def __ne__(self, other):
8695
    return not (self == other)
8696
 
8697
class getAllCategories_result:
8698
  """
8699
  Attributes:
8700
   - success
8701
  """
8702
 
8703
  thrift_spec = (
8704
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8705
  )
8706
 
8707
  def __init__(self, success=None,):
8708
    self.success = success
8709
 
8710
  def read(self, iprot):
8711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8713
      return
8714
    iprot.readStructBegin()
8715
    while True:
8716
      (fname, ftype, fid) = iprot.readFieldBegin()
8717
      if ftype == TType.STOP:
8718
        break
8719
      if fid == 0:
8720
        if ftype == TType.LIST:
8721
          self.success = []
8722
          (_etype124, _size121) = iprot.readListBegin()
8723
          for _i125 in xrange(_size121):
8724
            _elem126 = Category()
8725
            _elem126.read(iprot)
8726
            self.success.append(_elem126)
8727
          iprot.readListEnd()
8728
        else:
8729
          iprot.skip(ftype)
8730
      else:
8731
        iprot.skip(ftype)
8732
      iprot.readFieldEnd()
8733
    iprot.readStructEnd()
8734
 
8735
  def write(self, oprot):
8736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8738
      return
8739
    oprot.writeStructBegin('getAllCategories_result')
8740
    if self.success is not None:
8741
      oprot.writeFieldBegin('success', TType.LIST, 0)
8742
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8743
      for iter127 in self.success:
8744
        iter127.write(oprot)
8745
      oprot.writeListEnd()
8746
      oprot.writeFieldEnd()
8747
    oprot.writeFieldStop()
8748
    oprot.writeStructEnd()
8749
 
8750
  def validate(self):
8751
    return
8752
 
8753
 
8754
  def __repr__(self):
8755
    L = ['%s=%r' % (key, value)
8756
      for key, value in self.__dict__.iteritems()]
8757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8758
 
8759
  def __eq__(self, other):
8760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8761
 
8762
  def __ne__(self, other):
8763
    return not (self == other)
8764
 
8765
class getAllSimilarItems_args:
8766
  """
8767
  Attributes:
8768
   - itemId
8769
  """
8770
 
8771
  thrift_spec = (
8772
    None, # 0
8773
    (1, TType.I64, 'itemId', None, None, ), # 1
8774
  )
8775
 
8776
  def __init__(self, itemId=None,):
8777
    self.itemId = itemId
8778
 
8779
  def read(self, iprot):
8780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8782
      return
8783
    iprot.readStructBegin()
8784
    while True:
8785
      (fname, ftype, fid) = iprot.readFieldBegin()
8786
      if ftype == TType.STOP:
8787
        break
8788
      if fid == 1:
8789
        if ftype == TType.I64:
8790
          self.itemId = iprot.readI64();
8791
        else:
8792
          iprot.skip(ftype)
8793
      else:
8794
        iprot.skip(ftype)
8795
      iprot.readFieldEnd()
8796
    iprot.readStructEnd()
8797
 
8798
  def write(self, oprot):
8799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8801
      return
8802
    oprot.writeStructBegin('getAllSimilarItems_args')
8803
    if self.itemId is not None:
8804
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8805
      oprot.writeI64(self.itemId)
8806
      oprot.writeFieldEnd()
8807
    oprot.writeFieldStop()
8808
    oprot.writeStructEnd()
8809
 
8810
  def validate(self):
8811
    return
8812
 
8813
 
8814
  def __repr__(self):
8815
    L = ['%s=%r' % (key, value)
8816
      for key, value in self.__dict__.iteritems()]
8817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8818
 
8819
  def __eq__(self, other):
8820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8821
 
8822
  def __ne__(self, other):
8823
    return not (self == other)
8824
 
8825
class getAllSimilarItems_result:
8826
  """
8827
  Attributes:
8828
   - success
8829
  """
8830
 
8831
  thrift_spec = (
8832
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8833
  )
8834
 
8835
  def __init__(self, success=None,):
8836
    self.success = success
8837
 
8838
  def read(self, iprot):
8839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8841
      return
8842
    iprot.readStructBegin()
8843
    while True:
8844
      (fname, ftype, fid) = iprot.readFieldBegin()
8845
      if ftype == TType.STOP:
8846
        break
8847
      if fid == 0:
8848
        if ftype == TType.LIST:
8849
          self.success = []
8850
          (_etype131, _size128) = iprot.readListBegin()
8851
          for _i132 in xrange(_size128):
8852
            _elem133 = Item()
8853
            _elem133.read(iprot)
8854
            self.success.append(_elem133)
8855
          iprot.readListEnd()
8856
        else:
8857
          iprot.skip(ftype)
8858
      else:
8859
        iprot.skip(ftype)
8860
      iprot.readFieldEnd()
8861
    iprot.readStructEnd()
8862
 
8863
  def write(self, oprot):
8864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8866
      return
8867
    oprot.writeStructBegin('getAllSimilarItems_result')
8868
    if self.success is not None:
8869
      oprot.writeFieldBegin('success', TType.LIST, 0)
8870
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8871
      for iter134 in self.success:
8872
        iter134.write(oprot)
8873
      oprot.writeListEnd()
8874
      oprot.writeFieldEnd()
8875
    oprot.writeFieldStop()
8876
    oprot.writeStructEnd()
8877
 
8878
  def validate(self):
8879
    return
8880
 
8881
 
8882
  def __repr__(self):
8883
    L = ['%s=%r' % (key, value)
8884
      for key, value in self.__dict__.iteritems()]
8885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8886
 
8887
  def __eq__(self, other):
8888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8889
 
8890
  def __ne__(self, other):
8891
    return not (self == other)
8892
 
8893
class addSimilarItem_args:
8894
  """
8895
  Attributes:
8896
   - itemId
8897
   - catalogItemId
8898
  """
8899
 
8900
  thrift_spec = (
8901
    None, # 0
8902
    (1, TType.I64, 'itemId', None, None, ), # 1
8903
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8904
  )
8905
 
8906
  def __init__(self, itemId=None, catalogItemId=None,):
8907
    self.itemId = itemId
8908
    self.catalogItemId = catalogItemId
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 == 1:
8920
        if ftype == TType.I64:
8921
          self.itemId = iprot.readI64();
8922
        else:
8923
          iprot.skip(ftype)
8924
      elif fid == 2:
8925
        if ftype == TType.I64:
8926
          self.catalogItemId = iprot.readI64();
8927
        else:
8928
          iprot.skip(ftype)
8929
      else:
8930
        iprot.skip(ftype)
8931
      iprot.readFieldEnd()
8932
    iprot.readStructEnd()
8933
 
8934
  def write(self, oprot):
8935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8937
      return
8938
    oprot.writeStructBegin('addSimilarItem_args')
8939
    if self.itemId is not None:
8940
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8941
      oprot.writeI64(self.itemId)
8942
      oprot.writeFieldEnd()
8943
    if self.catalogItemId is not None:
8944
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8945
      oprot.writeI64(self.catalogItemId)
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 addSimilarItem_result:
8966
  """
8967
  Attributes:
8968
   - success
8969
   - cex
8970
  """
8971
 
8972
  thrift_spec = (
8973
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8974
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8975
  )
8976
 
8977
  def __init__(self, success=None, cex=None,):
8978
    self.success = success
8979
    self.cex = cex
8980
 
8981
  def read(self, iprot):
8982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8984
      return
8985
    iprot.readStructBegin()
8986
    while True:
8987
      (fname, ftype, fid) = iprot.readFieldBegin()
8988
      if ftype == TType.STOP:
8989
        break
8990
      if fid == 0:
8991
        if ftype == TType.STRUCT:
8992
          self.success = Item()
8993
          self.success.read(iprot)
8994
        else:
8995
          iprot.skip(ftype)
8996
      elif fid == 1:
8997
        if ftype == TType.STRUCT:
8998
          self.cex = CatalogServiceException()
8999
          self.cex.read(iprot)
9000
        else:
9001
          iprot.skip(ftype)
9002
      else:
9003
        iprot.skip(ftype)
9004
      iprot.readFieldEnd()
9005
    iprot.readStructEnd()
9006
 
9007
  def write(self, oprot):
9008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9010
      return
9011
    oprot.writeStructBegin('addSimilarItem_result')
9012
    if self.success is not None:
9013
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9014
      self.success.write(oprot)
9015
      oprot.writeFieldEnd()
9016
    if self.cex is not None:
9017
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9018
      self.cex.write(oprot)
9019
      oprot.writeFieldEnd()
9020
    oprot.writeFieldStop()
9021
    oprot.writeStructEnd()
9022
 
9023
  def validate(self):
9024
    return
9025
 
9026
 
9027
  def __repr__(self):
9028
    L = ['%s=%r' % (key, value)
9029
      for key, value in self.__dict__.iteritems()]
9030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9031
 
9032
  def __eq__(self, other):
9033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9034
 
9035
  def __ne__(self, other):
9036
    return not (self == other)
9037
 
6512 kshitij.so 9038
class addTag_args:
9039
  """
9040
  Attributes:
9041
   - displayName
9042
   - itemId
9043
  """
9044
 
9045
  thrift_spec = (
9046
    None, # 0
9047
    (1, TType.STRING, 'displayName', None, None, ), # 1
9048
    (2, TType.I64, 'itemId', None, None, ), # 2
9049
  )
9050
 
9051
  def __init__(self, displayName=None, itemId=None,):
9052
    self.displayName = displayName
9053
    self.itemId = itemId
9054
 
9055
  def read(self, iprot):
9056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9058
      return
9059
    iprot.readStructBegin()
9060
    while True:
9061
      (fname, ftype, fid) = iprot.readFieldBegin()
9062
      if ftype == TType.STOP:
9063
        break
9064
      if fid == 1:
9065
        if ftype == TType.STRING:
9066
          self.displayName = iprot.readString();
9067
        else:
9068
          iprot.skip(ftype)
9069
      elif fid == 2:
9070
        if ftype == TType.I64:
9071
          self.itemId = iprot.readI64();
9072
        else:
9073
          iprot.skip(ftype)
9074
      else:
9075
        iprot.skip(ftype)
9076
      iprot.readFieldEnd()
9077
    iprot.readStructEnd()
9078
 
9079
  def write(self, oprot):
9080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9082
      return
9083
    oprot.writeStructBegin('addTag_args')
9084
    if self.displayName is not None:
9085
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9086
      oprot.writeString(self.displayName)
9087
      oprot.writeFieldEnd()
9088
    if self.itemId is not None:
9089
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9090
      oprot.writeI64(self.itemId)
9091
      oprot.writeFieldEnd()
9092
    oprot.writeFieldStop()
9093
    oprot.writeStructEnd()
9094
 
9095
  def validate(self):
9096
    return
9097
 
9098
 
9099
  def __repr__(self):
9100
    L = ['%s=%r' % (key, value)
9101
      for key, value in self.__dict__.iteritems()]
9102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9103
 
9104
  def __eq__(self, other):
9105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9106
 
9107
  def __ne__(self, other):
9108
    return not (self == other)
9109
 
9110
class addTag_result:
9111
  """
9112
  Attributes:
9113
   - success
9114
  """
9115
 
9116
  thrift_spec = (
9117
    (0, TType.BOOL, 'success', None, None, ), # 0
9118
  )
9119
 
9120
  def __init__(self, success=None,):
9121
    self.success = success
9122
 
9123
  def read(self, iprot):
9124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9126
      return
9127
    iprot.readStructBegin()
9128
    while True:
9129
      (fname, ftype, fid) = iprot.readFieldBegin()
9130
      if ftype == TType.STOP:
9131
        break
9132
      if fid == 0:
9133
        if ftype == TType.BOOL:
9134
          self.success = iprot.readBool();
9135
        else:
9136
          iprot.skip(ftype)
9137
      else:
9138
        iprot.skip(ftype)
9139
      iprot.readFieldEnd()
9140
    iprot.readStructEnd()
9141
 
9142
  def write(self, oprot):
9143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9145
      return
9146
    oprot.writeStructBegin('addTag_result')
9147
    if self.success is not None:
9148
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9149
      oprot.writeBool(self.success)
9150
      oprot.writeFieldEnd()
9151
    oprot.writeFieldStop()
9152
    oprot.writeStructEnd()
9153
 
9154
  def validate(self):
9155
    return
9156
 
9157
 
9158
  def __repr__(self):
9159
    L = ['%s=%r' % (key, value)
9160
      for key, value in self.__dict__.iteritems()]
9161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9162
 
9163
  def __eq__(self, other):
9164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9165
 
9166
  def __ne__(self, other):
9167
    return not (self == other)
9168
 
9169
class deleteEntityTag_args:
9170
  """
9171
  Attributes:
9172
   - displayName
9173
   - itemId
9174
  """
9175
 
9176
  thrift_spec = (
9177
    None, # 0
9178
    (1, TType.STRING, 'displayName', None, None, ), # 1
9179
    (2, TType.I64, 'itemId', None, None, ), # 2
9180
  )
9181
 
9182
  def __init__(self, displayName=None, itemId=None,):
9183
    self.displayName = displayName
9184
    self.itemId = itemId
9185
 
9186
  def read(self, iprot):
9187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9189
      return
9190
    iprot.readStructBegin()
9191
    while True:
9192
      (fname, ftype, fid) = iprot.readFieldBegin()
9193
      if ftype == TType.STOP:
9194
        break
9195
      if fid == 1:
9196
        if ftype == TType.STRING:
9197
          self.displayName = iprot.readString();
9198
        else:
9199
          iprot.skip(ftype)
9200
      elif fid == 2:
9201
        if ftype == TType.I64:
9202
          self.itemId = iprot.readI64();
9203
        else:
9204
          iprot.skip(ftype)
9205
      else:
9206
        iprot.skip(ftype)
9207
      iprot.readFieldEnd()
9208
    iprot.readStructEnd()
9209
 
9210
  def write(self, oprot):
9211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9213
      return
9214
    oprot.writeStructBegin('deleteEntityTag_args')
9215
    if self.displayName is not None:
9216
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9217
      oprot.writeString(self.displayName)
9218
      oprot.writeFieldEnd()
9219
    if self.itemId is not None:
9220
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9221
      oprot.writeI64(self.itemId)
9222
      oprot.writeFieldEnd()
9223
    oprot.writeFieldStop()
9224
    oprot.writeStructEnd()
9225
 
9226
  def validate(self):
9227
    return
9228
 
9229
 
9230
  def __repr__(self):
9231
    L = ['%s=%r' % (key, value)
9232
      for key, value in self.__dict__.iteritems()]
9233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9234
 
9235
  def __eq__(self, other):
9236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9237
 
9238
  def __ne__(self, other):
9239
    return not (self == other)
9240
 
9241
class deleteEntityTag_result:
9242
  """
9243
  Attributes:
9244
   - success
9245
  """
9246
 
9247
  thrift_spec = (
9248
    (0, TType.BOOL, 'success', None, None, ), # 0
9249
  )
9250
 
9251
  def __init__(self, success=None,):
9252
    self.success = success
9253
 
9254
  def read(self, iprot):
9255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9257
      return
9258
    iprot.readStructBegin()
9259
    while True:
9260
      (fname, ftype, fid) = iprot.readFieldBegin()
9261
      if ftype == TType.STOP:
9262
        break
9263
      if fid == 0:
9264
        if ftype == TType.BOOL:
9265
          self.success = iprot.readBool();
9266
        else:
9267
          iprot.skip(ftype)
9268
      else:
9269
        iprot.skip(ftype)
9270
      iprot.readFieldEnd()
9271
    iprot.readStructEnd()
9272
 
9273
  def write(self, oprot):
9274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9276
      return
9277
    oprot.writeStructBegin('deleteEntityTag_result')
9278
    if self.success is not None:
9279
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9280
      oprot.writeBool(self.success)
9281
      oprot.writeFieldEnd()
9282
    oprot.writeFieldStop()
9283
    oprot.writeStructEnd()
9284
 
9285
  def validate(self):
9286
    return
9287
 
9288
 
9289
  def __repr__(self):
9290
    L = ['%s=%r' % (key, value)
9291
      for key, value in self.__dict__.iteritems()]
9292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9293
 
9294
  def __eq__(self, other):
9295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9296
 
9297
  def __ne__(self, other):
9298
    return not (self == other)
9299
 
9300
class deleteTag_args:
9301
  """
9302
  Attributes:
9303
   - displayName
9304
  """
9305
 
9306
  thrift_spec = (
9307
    None, # 0
9308
    (1, TType.STRING, 'displayName', None, None, ), # 1
9309
  )
9310
 
9311
  def __init__(self, displayName=None,):
9312
    self.displayName = displayName
9313
 
9314
  def read(self, iprot):
9315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9317
      return
9318
    iprot.readStructBegin()
9319
    while True:
9320
      (fname, ftype, fid) = iprot.readFieldBegin()
9321
      if ftype == TType.STOP:
9322
        break
9323
      if fid == 1:
9324
        if ftype == TType.STRING:
9325
          self.displayName = iprot.readString();
9326
        else:
9327
          iprot.skip(ftype)
9328
      else:
9329
        iprot.skip(ftype)
9330
      iprot.readFieldEnd()
9331
    iprot.readStructEnd()
9332
 
9333
  def write(self, oprot):
9334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9336
      return
9337
    oprot.writeStructBegin('deleteTag_args')
9338
    if self.displayName is not None:
9339
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9340
      oprot.writeString(self.displayName)
9341
      oprot.writeFieldEnd()
9342
    oprot.writeFieldStop()
9343
    oprot.writeStructEnd()
9344
 
9345
  def validate(self):
9346
    return
9347
 
9348
 
9349
  def __repr__(self):
9350
    L = ['%s=%r' % (key, value)
9351
      for key, value in self.__dict__.iteritems()]
9352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9353
 
9354
  def __eq__(self, other):
9355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9356
 
9357
  def __ne__(self, other):
9358
    return not (self == other)
9359
 
9360
class deleteTag_result:
9361
  """
9362
  Attributes:
9363
   - success
9364
  """
9365
 
9366
  thrift_spec = (
9367
    (0, TType.BOOL, 'success', None, None, ), # 0
9368
  )
9369
 
9370
  def __init__(self, success=None,):
9371
    self.success = success
9372
 
9373
  def read(self, iprot):
9374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9376
      return
9377
    iprot.readStructBegin()
9378
    while True:
9379
      (fname, ftype, fid) = iprot.readFieldBegin()
9380
      if ftype == TType.STOP:
9381
        break
9382
      if fid == 0:
9383
        if ftype == TType.BOOL:
9384
          self.success = iprot.readBool();
9385
        else:
9386
          iprot.skip(ftype)
9387
      else:
9388
        iprot.skip(ftype)
9389
      iprot.readFieldEnd()
9390
    iprot.readStructEnd()
9391
 
9392
  def write(self, oprot):
9393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9395
      return
9396
    oprot.writeStructBegin('deleteTag_result')
9397
    if self.success is not None:
9398
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9399
      oprot.writeBool(self.success)
9400
      oprot.writeFieldEnd()
9401
    oprot.writeFieldStop()
9402
    oprot.writeStructEnd()
9403
 
9404
  def validate(self):
9405
    return
9406
 
9407
 
9408
  def __repr__(self):
9409
    L = ['%s=%r' % (key, value)
9410
      for key, value in self.__dict__.iteritems()]
9411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9412
 
9413
  def __eq__(self, other):
9414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9415
 
9416
  def __ne__(self, other):
9417
    return not (self == other)
9418
 
9419
class getAllTags_args:
9420
 
9421
  thrift_spec = (
9422
  )
9423
 
9424
  def read(self, iprot):
9425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9427
      return
9428
    iprot.readStructBegin()
9429
    while True:
9430
      (fname, ftype, fid) = iprot.readFieldBegin()
9431
      if ftype == TType.STOP:
9432
        break
9433
      else:
9434
        iprot.skip(ftype)
9435
      iprot.readFieldEnd()
9436
    iprot.readStructEnd()
9437
 
9438
  def write(self, oprot):
9439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9441
      return
9442
    oprot.writeStructBegin('getAllTags_args')
9443
    oprot.writeFieldStop()
9444
    oprot.writeStructEnd()
9445
 
9446
  def validate(self):
9447
    return
9448
 
9449
 
9450
  def __repr__(self):
9451
    L = ['%s=%r' % (key, value)
9452
      for key, value in self.__dict__.iteritems()]
9453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9454
 
9455
  def __eq__(self, other):
9456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9457
 
9458
  def __ne__(self, other):
9459
    return not (self == other)
9460
 
9461
class getAllTags_result:
9462
  """
9463
  Attributes:
9464
   - success
9465
  """
9466
 
9467
  thrift_spec = (
9468
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9469
  )
9470
 
9471
  def __init__(self, success=None,):
9472
    self.success = success
9473
 
9474
  def read(self, iprot):
9475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9477
      return
9478
    iprot.readStructBegin()
9479
    while True:
9480
      (fname, ftype, fid) = iprot.readFieldBegin()
9481
      if ftype == TType.STOP:
9482
        break
9483
      if fid == 0:
9484
        if ftype == TType.LIST:
9485
          self.success = []
9486
          (_etype138, _size135) = iprot.readListBegin()
9487
          for _i139 in xrange(_size135):
9488
            _elem140 = iprot.readString();
9489
            self.success.append(_elem140)
9490
          iprot.readListEnd()
9491
        else:
9492
          iprot.skip(ftype)
9493
      else:
9494
        iprot.skip(ftype)
9495
      iprot.readFieldEnd()
9496
    iprot.readStructEnd()
9497
 
9498
  def write(self, oprot):
9499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9501
      return
9502
    oprot.writeStructBegin('getAllTags_result')
9503
    if self.success is not None:
9504
      oprot.writeFieldBegin('success', TType.LIST, 0)
9505
      oprot.writeListBegin(TType.STRING, len(self.success))
9506
      for iter141 in self.success:
9507
        oprot.writeString(iter141)
9508
      oprot.writeListEnd()
9509
      oprot.writeFieldEnd()
9510
    oprot.writeFieldStop()
9511
    oprot.writeStructEnd()
9512
 
9513
  def validate(self):
9514
    return
9515
 
9516
 
9517
  def __repr__(self):
9518
    L = ['%s=%r' % (key, value)
9519
      for key, value in self.__dict__.iteritems()]
9520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9521
 
9522
  def __eq__(self, other):
9523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9524
 
9525
  def __ne__(self, other):
9526
    return not (self == other)
9527
 
9528
class getAllEntitiesByTagName_args:
9529
  """
9530
  Attributes:
9531
   - displayName
9532
  """
9533
 
9534
  thrift_spec = (
9535
    None, # 0
9536
    (1, TType.STRING, 'displayName', None, None, ), # 1
9537
  )
9538
 
9539
  def __init__(self, displayName=None,):
9540
    self.displayName = displayName
9541
 
9542
  def read(self, iprot):
9543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9545
      return
9546
    iprot.readStructBegin()
9547
    while True:
9548
      (fname, ftype, fid) = iprot.readFieldBegin()
9549
      if ftype == TType.STOP:
9550
        break
9551
      if fid == 1:
9552
        if ftype == TType.STRING:
9553
          self.displayName = iprot.readString();
9554
        else:
9555
          iprot.skip(ftype)
9556
      else:
9557
        iprot.skip(ftype)
9558
      iprot.readFieldEnd()
9559
    iprot.readStructEnd()
9560
 
9561
  def write(self, oprot):
9562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9564
      return
9565
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9566
    if self.displayName is not None:
9567
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9568
      oprot.writeString(self.displayName)
9569
      oprot.writeFieldEnd()
9570
    oprot.writeFieldStop()
9571
    oprot.writeStructEnd()
9572
 
9573
  def validate(self):
9574
    return
9575
 
9576
 
9577
  def __repr__(self):
9578
    L = ['%s=%r' % (key, value)
9579
      for key, value in self.__dict__.iteritems()]
9580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9581
 
9582
  def __eq__(self, other):
9583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9584
 
9585
  def __ne__(self, other):
9586
    return not (self == other)
9587
 
9588
class getAllEntitiesByTagName_result:
9589
  """
9590
  Attributes:
9591
   - success
9592
  """
9593
 
9594
  thrift_spec = (
9595
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9596
  )
9597
 
9598
  def __init__(self, success=None,):
9599
    self.success = success
9600
 
9601
  def read(self, iprot):
9602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9604
      return
9605
    iprot.readStructBegin()
9606
    while True:
9607
      (fname, ftype, fid) = iprot.readFieldBegin()
9608
      if ftype == TType.STOP:
9609
        break
9610
      if fid == 0:
9611
        if ftype == TType.LIST:
9612
          self.success = []
9613
          (_etype145, _size142) = iprot.readListBegin()
9614
          for _i146 in xrange(_size142):
9615
            _elem147 = iprot.readI64();
9616
            self.success.append(_elem147)
9617
          iprot.readListEnd()
9618
        else:
9619
          iprot.skip(ftype)
9620
      else:
9621
        iprot.skip(ftype)
9622
      iprot.readFieldEnd()
9623
    iprot.readStructEnd()
9624
 
9625
  def write(self, oprot):
9626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9628
      return
9629
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9630
    if self.success is not None:
9631
      oprot.writeFieldBegin('success', TType.LIST, 0)
9632
      oprot.writeListBegin(TType.I64, len(self.success))
9633
      for iter148 in self.success:
9634
        oprot.writeI64(iter148)
9635
      oprot.writeListEnd()
9636
      oprot.writeFieldEnd()
9637
    oprot.writeFieldStop()
9638
    oprot.writeStructEnd()
9639
 
9640
  def validate(self):
9641
    return
9642
 
9643
 
9644
  def __repr__(self):
9645
    L = ['%s=%r' % (key, value)
9646
      for key, value in self.__dict__.iteritems()]
9647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9648
 
9649
  def __eq__(self, other):
9650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9651
 
9652
  def __ne__(self, other):
9653
    return not (self == other)
9654
 
6845 amit.gupta 9655
class getAllEntityTags_args:
9656
 
9657
  thrift_spec = (
9658
  )
9659
 
9660
  def read(self, iprot):
9661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9663
      return
9664
    iprot.readStructBegin()
9665
    while True:
9666
      (fname, ftype, fid) = iprot.readFieldBegin()
9667
      if ftype == TType.STOP:
9668
        break
9669
      else:
9670
        iprot.skip(ftype)
9671
      iprot.readFieldEnd()
9672
    iprot.readStructEnd()
9673
 
9674
  def write(self, oprot):
9675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9677
      return
9678
    oprot.writeStructBegin('getAllEntityTags_args')
9679
    oprot.writeFieldStop()
9680
    oprot.writeStructEnd()
9681
 
9682
  def validate(self):
9683
    return
9684
 
9685
 
9686
  def __repr__(self):
9687
    L = ['%s=%r' % (key, value)
9688
      for key, value in self.__dict__.iteritems()]
9689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9690
 
9691
  def __eq__(self, other):
9692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9693
 
9694
  def __ne__(self, other):
9695
    return not (self == other)
9696
 
9697
class getAllEntityTags_result:
9698
  """
9699
  Attributes:
9700
   - success
9701
  """
9702
 
9703
  thrift_spec = (
9704
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9705
  )
9706
 
9707
  def __init__(self, success=None,):
9708
    self.success = success
9709
 
9710
  def read(self, iprot):
9711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9713
      return
9714
    iprot.readStructBegin()
9715
    while True:
9716
      (fname, ftype, fid) = iprot.readFieldBegin()
9717
      if ftype == TType.STOP:
9718
        break
9719
      if fid == 0:
9720
        if ftype == TType.MAP:
9721
          self.success = {}
9722
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9723
          for _i153 in xrange(_size149):
9724
            _key154 = iprot.readI64();
9725
            _val155 = []
9726
            (_etype159, _size156) = iprot.readListBegin()
9727
            for _i160 in xrange(_size156):
9728
              _elem161 = iprot.readString();
9729
              _val155.append(_elem161)
9730
            iprot.readListEnd()
9731
            self.success[_key154] = _val155
9732
          iprot.readMapEnd()
9733
        else:
9734
          iprot.skip(ftype)
9735
      else:
9736
        iprot.skip(ftype)
9737
      iprot.readFieldEnd()
9738
    iprot.readStructEnd()
9739
 
9740
  def write(self, oprot):
9741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9743
      return
9744
    oprot.writeStructBegin('getAllEntityTags_result')
9745
    if self.success is not None:
9746
      oprot.writeFieldBegin('success', TType.MAP, 0)
9747
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9748
      for kiter162,viter163 in self.success.items():
9749
        oprot.writeI64(kiter162)
9750
        oprot.writeListBegin(TType.STRING, len(viter163))
9751
        for iter164 in viter163:
9752
          oprot.writeString(iter164)
9753
        oprot.writeListEnd()
9754
      oprot.writeMapEnd()
9755
      oprot.writeFieldEnd()
9756
    oprot.writeFieldStop()
9757
    oprot.writeStructEnd()
9758
 
9759
  def validate(self):
9760
    return
9761
 
9762
 
9763
  def __repr__(self):
9764
    L = ['%s=%r' % (key, value)
9765
      for key, value in self.__dict__.iteritems()]
9766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9767
 
9768
  def __eq__(self, other):
9769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9770
 
9771
  def __ne__(self, other):
9772
    return not (self == other)
9773
 
6850 kshitij.so 9774
class addBanner_args:
9775
  """
9776
  Attributes:
9777
   - bannerName
9778
   - imageName
9779
   - link
9780
   - priority
9781
   - isActive
9782
   - hasMap
9783
  """
9784
 
9785
  thrift_spec = (
9786
    None, # 0
9787
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9788
    (2, TType.STRING, 'imageName', None, None, ), # 2
9789
    (3, TType.STRING, 'link', None, None, ), # 3
9790
    (4, TType.I64, 'priority', None, None, ), # 4
9791
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9792
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9793
  )
9794
 
9795
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9796
    self.bannerName = bannerName
9797
    self.imageName = imageName
9798
    self.link = link
9799
    self.priority = priority
9800
    self.isActive = isActive
9801
    self.hasMap = hasMap
9802
 
9803
  def read(self, iprot):
9804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9806
      return
9807
    iprot.readStructBegin()
9808
    while True:
9809
      (fname, ftype, fid) = iprot.readFieldBegin()
9810
      if ftype == TType.STOP:
9811
        break
9812
      if fid == 1:
9813
        if ftype == TType.STRING:
9814
          self.bannerName = iprot.readString();
9815
        else:
9816
          iprot.skip(ftype)
9817
      elif fid == 2:
9818
        if ftype == TType.STRING:
9819
          self.imageName = iprot.readString();
9820
        else:
9821
          iprot.skip(ftype)
9822
      elif fid == 3:
9823
        if ftype == TType.STRING:
9824
          self.link = iprot.readString();
9825
        else:
9826
          iprot.skip(ftype)
9827
      elif fid == 4:
9828
        if ftype == TType.I64:
9829
          self.priority = iprot.readI64();
9830
        else:
9831
          iprot.skip(ftype)
9832
      elif fid == 5:
9833
        if ftype == TType.BOOL:
9834
          self.isActive = iprot.readBool();
9835
        else:
9836
          iprot.skip(ftype)
9837
      elif fid == 6:
9838
        if ftype == TType.BOOL:
9839
          self.hasMap = iprot.readBool();
9840
        else:
9841
          iprot.skip(ftype)
9842
      else:
9843
        iprot.skip(ftype)
9844
      iprot.readFieldEnd()
9845
    iprot.readStructEnd()
9846
 
9847
  def write(self, oprot):
9848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9850
      return
9851
    oprot.writeStructBegin('addBanner_args')
9852
    if self.bannerName is not None:
9853
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9854
      oprot.writeString(self.bannerName)
9855
      oprot.writeFieldEnd()
9856
    if self.imageName is not None:
9857
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
9858
      oprot.writeString(self.imageName)
9859
      oprot.writeFieldEnd()
9860
    if self.link is not None:
9861
      oprot.writeFieldBegin('link', TType.STRING, 3)
9862
      oprot.writeString(self.link)
9863
      oprot.writeFieldEnd()
9864
    if self.priority is not None:
9865
      oprot.writeFieldBegin('priority', TType.I64, 4)
9866
      oprot.writeI64(self.priority)
9867
      oprot.writeFieldEnd()
9868
    if self.isActive is not None:
9869
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
9870
      oprot.writeBool(self.isActive)
9871
      oprot.writeFieldEnd()
9872
    if self.hasMap is not None:
9873
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
9874
      oprot.writeBool(self.hasMap)
9875
      oprot.writeFieldEnd()
9876
    oprot.writeFieldStop()
9877
    oprot.writeStructEnd()
9878
 
9879
  def validate(self):
9880
    return
9881
 
9882
 
9883
  def __repr__(self):
9884
    L = ['%s=%r' % (key, value)
9885
      for key, value in self.__dict__.iteritems()]
9886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9887
 
9888
  def __eq__(self, other):
9889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9890
 
9891
  def __ne__(self, other):
9892
    return not (self == other)
9893
 
9894
class addBanner_result:
9895
  """
9896
  Attributes:
9897
   - success
9898
  """
9899
 
9900
  thrift_spec = (
9901
    (0, TType.BOOL, 'success', None, None, ), # 0
9902
  )
9903
 
9904
  def __init__(self, success=None,):
9905
    self.success = success
9906
 
9907
  def read(self, iprot):
9908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9910
      return
9911
    iprot.readStructBegin()
9912
    while True:
9913
      (fname, ftype, fid) = iprot.readFieldBegin()
9914
      if ftype == TType.STOP:
9915
        break
9916
      if fid == 0:
9917
        if ftype == TType.BOOL:
9918
          self.success = iprot.readBool();
9919
        else:
9920
          iprot.skip(ftype)
9921
      else:
9922
        iprot.skip(ftype)
9923
      iprot.readFieldEnd()
9924
    iprot.readStructEnd()
9925
 
9926
  def write(self, oprot):
9927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9929
      return
9930
    oprot.writeStructBegin('addBanner_result')
9931
    if self.success is not None:
9932
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9933
      oprot.writeBool(self.success)
9934
      oprot.writeFieldEnd()
9935
    oprot.writeFieldStop()
9936
    oprot.writeStructEnd()
9937
 
9938
  def validate(self):
9939
    return
9940
 
9941
 
9942
  def __repr__(self):
9943
    L = ['%s=%r' % (key, value)
9944
      for key, value in self.__dict__.iteritems()]
9945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9946
 
9947
  def __eq__(self, other):
9948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9949
 
9950
  def __ne__(self, other):
9951
    return not (self == other)
9952
 
9953
class getAllBanners_args:
9954
 
9955
  thrift_spec = (
9956
  )
9957
 
9958
  def read(self, iprot):
9959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9961
      return
9962
    iprot.readStructBegin()
9963
    while True:
9964
      (fname, ftype, fid) = iprot.readFieldBegin()
9965
      if ftype == TType.STOP:
9966
        break
9967
      else:
9968
        iprot.skip(ftype)
9969
      iprot.readFieldEnd()
9970
    iprot.readStructEnd()
9971
 
9972
  def write(self, oprot):
9973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9975
      return
9976
    oprot.writeStructBegin('getAllBanners_args')
9977
    oprot.writeFieldStop()
9978
    oprot.writeStructEnd()
9979
 
9980
  def validate(self):
9981
    return
9982
 
9983
 
9984
  def __repr__(self):
9985
    L = ['%s=%r' % (key, value)
9986
      for key, value in self.__dict__.iteritems()]
9987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9988
 
9989
  def __eq__(self, other):
9990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9991
 
9992
  def __ne__(self, other):
9993
    return not (self == other)
9994
 
9995
class getAllBanners_result:
9996
  """
9997
  Attributes:
9998
   - success
9999
  """
10000
 
10001
  thrift_spec = (
10002
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10003
  )
10004
 
10005
  def __init__(self, success=None,):
10006
    self.success = success
10007
 
10008
  def read(self, iprot):
10009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10011
      return
10012
    iprot.readStructBegin()
10013
    while True:
10014
      (fname, ftype, fid) = iprot.readFieldBegin()
10015
      if ftype == TType.STOP:
10016
        break
10017
      if fid == 0:
10018
        if ftype == TType.LIST:
10019
          self.success = []
10020
          (_etype168, _size165) = iprot.readListBegin()
10021
          for _i169 in xrange(_size165):
10022
            _elem170 = iprot.readString();
10023
            self.success.append(_elem170)
10024
          iprot.readListEnd()
10025
        else:
10026
          iprot.skip(ftype)
10027
      else:
10028
        iprot.skip(ftype)
10029
      iprot.readFieldEnd()
10030
    iprot.readStructEnd()
10031
 
10032
  def write(self, oprot):
10033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10035
      return
10036
    oprot.writeStructBegin('getAllBanners_result')
10037
    if self.success is not None:
10038
      oprot.writeFieldBegin('success', TType.LIST, 0)
10039
      oprot.writeListBegin(TType.STRING, len(self.success))
10040
      for iter171 in self.success:
10041
        oprot.writeString(iter171)
10042
      oprot.writeListEnd()
10043
      oprot.writeFieldEnd()
10044
    oprot.writeFieldStop()
10045
    oprot.writeStructEnd()
10046
 
10047
  def validate(self):
10048
    return
10049
 
10050
 
10051
  def __repr__(self):
10052
    L = ['%s=%r' % (key, value)
10053
      for key, value in self.__dict__.iteritems()]
10054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10055
 
10056
  def __eq__(self, other):
10057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10058
 
10059
  def __ne__(self, other):
10060
    return not (self == other)
10061
 
10062
class deleteBanner_args:
10063
  """
10064
  Attributes:
10065
   - bannerName
10066
  """
10067
 
10068
  thrift_spec = (
10069
    None, # 0
10070
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10071
  )
10072
 
10073
  def __init__(self, bannerName=None,):
10074
    self.bannerName = bannerName
10075
 
10076
  def read(self, iprot):
10077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10079
      return
10080
    iprot.readStructBegin()
10081
    while True:
10082
      (fname, ftype, fid) = iprot.readFieldBegin()
10083
      if ftype == TType.STOP:
10084
        break
10085
      if fid == 1:
10086
        if ftype == TType.STRING:
10087
          self.bannerName = iprot.readString();
10088
        else:
10089
          iprot.skip(ftype)
10090
      else:
10091
        iprot.skip(ftype)
10092
      iprot.readFieldEnd()
10093
    iprot.readStructEnd()
10094
 
10095
  def write(self, oprot):
10096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10098
      return
10099
    oprot.writeStructBegin('deleteBanner_args')
10100
    if self.bannerName is not None:
10101
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10102
      oprot.writeString(self.bannerName)
10103
      oprot.writeFieldEnd()
10104
    oprot.writeFieldStop()
10105
    oprot.writeStructEnd()
10106
 
10107
  def validate(self):
10108
    return
10109
 
10110
 
10111
  def __repr__(self):
10112
    L = ['%s=%r' % (key, value)
10113
      for key, value in self.__dict__.iteritems()]
10114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10115
 
10116
  def __eq__(self, other):
10117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10118
 
10119
  def __ne__(self, other):
10120
    return not (self == other)
10121
 
10122
class deleteBanner_result:
10123
  """
10124
  Attributes:
10125
   - success
10126
  """
10127
 
10128
  thrift_spec = (
10129
    (0, TType.BOOL, 'success', None, None, ), # 0
10130
  )
10131
 
10132
  def __init__(self, success=None,):
10133
    self.success = success
10134
 
10135
  def read(self, iprot):
10136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10138
      return
10139
    iprot.readStructBegin()
10140
    while True:
10141
      (fname, ftype, fid) = iprot.readFieldBegin()
10142
      if ftype == TType.STOP:
10143
        break
10144
      if fid == 0:
10145
        if ftype == TType.BOOL:
10146
          self.success = iprot.readBool();
10147
        else:
10148
          iprot.skip(ftype)
10149
      else:
10150
        iprot.skip(ftype)
10151
      iprot.readFieldEnd()
10152
    iprot.readStructEnd()
10153
 
10154
  def write(self, oprot):
10155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10157
      return
10158
    oprot.writeStructBegin('deleteBanner_result')
10159
    if self.success is not None:
10160
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10161
      oprot.writeBool(self.success)
10162
      oprot.writeFieldEnd()
10163
    oprot.writeFieldStop()
10164
    oprot.writeStructEnd()
10165
 
10166
  def validate(self):
10167
    return
10168
 
10169
 
10170
  def __repr__(self):
10171
    L = ['%s=%r' % (key, value)
10172
      for key, value in self.__dict__.iteritems()]
10173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10174
 
10175
  def __eq__(self, other):
10176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10177
 
10178
  def __ne__(self, other):
10179
    return not (self == other)
10180
 
10181
class getBannerDetails_args:
10182
  """
10183
  Attributes:
10184
   - bannerName
10185
  """
10186
 
10187
  thrift_spec = (
10188
    None, # 0
10189
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10190
  )
10191
 
10192
  def __init__(self, bannerName=None,):
10193
    self.bannerName = bannerName
10194
 
10195
  def read(self, iprot):
10196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10198
      return
10199
    iprot.readStructBegin()
10200
    while True:
10201
      (fname, ftype, fid) = iprot.readFieldBegin()
10202
      if ftype == TType.STOP:
10203
        break
10204
      if fid == 1:
10205
        if ftype == TType.STRING:
10206
          self.bannerName = iprot.readString();
10207
        else:
10208
          iprot.skip(ftype)
10209
      else:
10210
        iprot.skip(ftype)
10211
      iprot.readFieldEnd()
10212
    iprot.readStructEnd()
10213
 
10214
  def write(self, oprot):
10215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10217
      return
10218
    oprot.writeStructBegin('getBannerDetails_args')
10219
    if self.bannerName is not None:
10220
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10221
      oprot.writeString(self.bannerName)
10222
      oprot.writeFieldEnd()
10223
    oprot.writeFieldStop()
10224
    oprot.writeStructEnd()
10225
 
10226
  def validate(self):
10227
    return
10228
 
10229
 
10230
  def __repr__(self):
10231
    L = ['%s=%r' % (key, value)
10232
      for key, value in self.__dict__.iteritems()]
10233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10234
 
10235
  def __eq__(self, other):
10236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10237
 
10238
  def __ne__(self, other):
10239
    return not (self == other)
10240
 
10241
class getBannerDetails_result:
10242
  """
10243
  Attributes:
10244
   - success
10245
  """
10246
 
10247
  thrift_spec = (
10248
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10249
  )
10250
 
10251
  def __init__(self, success=None,):
10252
    self.success = success
10253
 
10254
  def read(self, iprot):
10255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10257
      return
10258
    iprot.readStructBegin()
10259
    while True:
10260
      (fname, ftype, fid) = iprot.readFieldBegin()
10261
      if ftype == TType.STOP:
10262
        break
10263
      if fid == 0:
10264
        if ftype == TType.STRUCT:
10265
          self.success = Banner()
10266
          self.success.read(iprot)
10267
        else:
10268
          iprot.skip(ftype)
10269
      else:
10270
        iprot.skip(ftype)
10271
      iprot.readFieldEnd()
10272
    iprot.readStructEnd()
10273
 
10274
  def write(self, oprot):
10275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10277
      return
10278
    oprot.writeStructBegin('getBannerDetails_result')
10279
    if self.success is not None:
10280
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10281
      self.success.write(oprot)
10282
      oprot.writeFieldEnd()
10283
    oprot.writeFieldStop()
10284
    oprot.writeStructEnd()
10285
 
10286
  def validate(self):
10287
    return
10288
 
10289
 
10290
  def __repr__(self):
10291
    L = ['%s=%r' % (key, value)
10292
      for key, value in self.__dict__.iteritems()]
10293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10294
 
10295
  def __eq__(self, other):
10296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10297
 
10298
  def __ne__(self, other):
10299
    return not (self == other)
10300
 
10301
class getActiveBanners_args:
10302
 
10303
  thrift_spec = (
10304
  )
10305
 
10306
  def read(self, iprot):
10307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10309
      return
10310
    iprot.readStructBegin()
10311
    while True:
10312
      (fname, ftype, fid) = iprot.readFieldBegin()
10313
      if ftype == TType.STOP:
10314
        break
10315
      else:
10316
        iprot.skip(ftype)
10317
      iprot.readFieldEnd()
10318
    iprot.readStructEnd()
10319
 
10320
  def write(self, oprot):
10321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10323
      return
10324
    oprot.writeStructBegin('getActiveBanners_args')
10325
    oprot.writeFieldStop()
10326
    oprot.writeStructEnd()
10327
 
10328
  def validate(self):
10329
    return
10330
 
10331
 
10332
  def __repr__(self):
10333
    L = ['%s=%r' % (key, value)
10334
      for key, value in self.__dict__.iteritems()]
10335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10336
 
10337
  def __eq__(self, other):
10338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10339
 
10340
  def __ne__(self, other):
10341
    return not (self == other)
10342
 
10343
class getActiveBanners_result:
10344
  """
10345
  Attributes:
10346
   - success
10347
  """
10348
 
10349
  thrift_spec = (
10350
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10351
  )
10352
 
10353
  def __init__(self, success=None,):
10354
    self.success = success
10355
 
10356
  def read(self, iprot):
10357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10359
      return
10360
    iprot.readStructBegin()
10361
    while True:
10362
      (fname, ftype, fid) = iprot.readFieldBegin()
10363
      if ftype == TType.STOP:
10364
        break
10365
      if fid == 0:
10366
        if ftype == TType.LIST:
10367
          self.success = []
10368
          (_etype175, _size172) = iprot.readListBegin()
10369
          for _i176 in xrange(_size172):
10370
            _elem177 = Banner()
10371
            _elem177.read(iprot)
10372
            self.success.append(_elem177)
10373
          iprot.readListEnd()
10374
        else:
10375
          iprot.skip(ftype)
10376
      else:
10377
        iprot.skip(ftype)
10378
      iprot.readFieldEnd()
10379
    iprot.readStructEnd()
10380
 
10381
  def write(self, oprot):
10382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10384
      return
10385
    oprot.writeStructBegin('getActiveBanners_result')
10386
    if self.success is not None:
10387
      oprot.writeFieldBegin('success', TType.LIST, 0)
10388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10389
      for iter178 in self.success:
10390
        iter178.write(oprot)
10391
      oprot.writeListEnd()
10392
      oprot.writeFieldEnd()
10393
    oprot.writeFieldStop()
10394
    oprot.writeStructEnd()
10395
 
10396
  def validate(self):
10397
    return
10398
 
10399
 
10400
  def __repr__(self):
10401
    L = ['%s=%r' % (key, value)
10402
      for key, value in self.__dict__.iteritems()]
10403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10404
 
10405
  def __eq__(self, other):
10406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10407
 
10408
  def __ne__(self, other):
10409
    return not (self == other)
10410
 
6849 kshitij.so 10411
class addBannerMap_args:
10412
  """
10413
  Attributes:
10414
   - bannerName
10415
   - mapLink
10416
   - coordinates
10417
  """
10418
 
10419
  thrift_spec = (
10420
    None, # 0
10421
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10422
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10423
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10424
  )
10425
 
10426
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10427
    self.bannerName = bannerName
10428
    self.mapLink = mapLink
10429
    self.coordinates = coordinates
10430
 
10431
  def read(self, iprot):
10432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10434
      return
10435
    iprot.readStructBegin()
10436
    while True:
10437
      (fname, ftype, fid) = iprot.readFieldBegin()
10438
      if ftype == TType.STOP:
10439
        break
10440
      if fid == 1:
10441
        if ftype == TType.STRING:
10442
          self.bannerName = iprot.readString();
10443
        else:
10444
          iprot.skip(ftype)
10445
      elif fid == 2:
10446
        if ftype == TType.STRING:
10447
          self.mapLink = iprot.readString();
10448
        else:
10449
          iprot.skip(ftype)
10450
      elif fid == 3:
10451
        if ftype == TType.STRING:
10452
          self.coordinates = iprot.readString();
10453
        else:
10454
          iprot.skip(ftype)
10455
      else:
10456
        iprot.skip(ftype)
10457
      iprot.readFieldEnd()
10458
    iprot.readStructEnd()
10459
 
10460
  def write(self, oprot):
10461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10463
      return
10464
    oprot.writeStructBegin('addBannerMap_args')
10465
    if self.bannerName is not None:
10466
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10467
      oprot.writeString(self.bannerName)
10468
      oprot.writeFieldEnd()
10469
    if self.mapLink is not None:
10470
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10471
      oprot.writeString(self.mapLink)
10472
      oprot.writeFieldEnd()
10473
    if self.coordinates is not None:
10474
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10475
      oprot.writeString(self.coordinates)
10476
      oprot.writeFieldEnd()
10477
    oprot.writeFieldStop()
10478
    oprot.writeStructEnd()
10479
 
10480
  def validate(self):
10481
    return
10482
 
10483
 
10484
  def __repr__(self):
10485
    L = ['%s=%r' % (key, value)
10486
      for key, value in self.__dict__.iteritems()]
10487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10488
 
10489
  def __eq__(self, other):
10490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10491
 
10492
  def __ne__(self, other):
10493
    return not (self == other)
10494
 
10495
class addBannerMap_result:
10496
  """
10497
  Attributes:
10498
   - success
10499
  """
10500
 
10501
  thrift_spec = (
10502
    (0, TType.BOOL, 'success', None, None, ), # 0
10503
  )
10504
 
10505
  def __init__(self, success=None,):
10506
    self.success = success
10507
 
10508
  def read(self, iprot):
10509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10511
      return
10512
    iprot.readStructBegin()
10513
    while True:
10514
      (fname, ftype, fid) = iprot.readFieldBegin()
10515
      if ftype == TType.STOP:
10516
        break
10517
      if fid == 0:
10518
        if ftype == TType.BOOL:
10519
          self.success = iprot.readBool();
10520
        else:
10521
          iprot.skip(ftype)
10522
      else:
10523
        iprot.skip(ftype)
10524
      iprot.readFieldEnd()
10525
    iprot.readStructEnd()
10526
 
10527
  def write(self, oprot):
10528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10530
      return
10531
    oprot.writeStructBegin('addBannerMap_result')
10532
    if self.success is not None:
10533
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10534
      oprot.writeBool(self.success)
10535
      oprot.writeFieldEnd()
10536
    oprot.writeFieldStop()
10537
    oprot.writeStructEnd()
10538
 
10539
  def validate(self):
10540
    return
10541
 
10542
 
10543
  def __repr__(self):
10544
    L = ['%s=%r' % (key, value)
10545
      for key, value in self.__dict__.iteritems()]
10546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10547
 
10548
  def __eq__(self, other):
10549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10550
 
10551
  def __ne__(self, other):
10552
    return not (self == other)
10553
 
10554
class deleteBannerMap_args:
10555
  """
10556
  Attributes:
10557
   - bannerName
10558
  """
10559
 
10560
  thrift_spec = (
10561
    None, # 0
10562
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10563
  )
10564
 
10565
  def __init__(self, bannerName=None,):
10566
    self.bannerName = bannerName
10567
 
10568
  def read(self, iprot):
10569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10571
      return
10572
    iprot.readStructBegin()
10573
    while True:
10574
      (fname, ftype, fid) = iprot.readFieldBegin()
10575
      if ftype == TType.STOP:
10576
        break
10577
      if fid == 1:
10578
        if ftype == TType.STRING:
10579
          self.bannerName = iprot.readString();
10580
        else:
10581
          iprot.skip(ftype)
10582
      else:
10583
        iprot.skip(ftype)
10584
      iprot.readFieldEnd()
10585
    iprot.readStructEnd()
10586
 
10587
  def write(self, oprot):
10588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10590
      return
10591
    oprot.writeStructBegin('deleteBannerMap_args')
10592
    if self.bannerName is not None:
10593
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10594
      oprot.writeString(self.bannerName)
10595
      oprot.writeFieldEnd()
10596
    oprot.writeFieldStop()
10597
    oprot.writeStructEnd()
10598
 
10599
  def validate(self):
10600
    return
10601
 
10602
 
10603
  def __repr__(self):
10604
    L = ['%s=%r' % (key, value)
10605
      for key, value in self.__dict__.iteritems()]
10606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10607
 
10608
  def __eq__(self, other):
10609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10610
 
10611
  def __ne__(self, other):
10612
    return not (self == other)
10613
 
10614
class deleteBannerMap_result:
10615
  """
10616
  Attributes:
10617
   - success
10618
  """
10619
 
10620
  thrift_spec = (
10621
    (0, TType.BOOL, 'success', None, None, ), # 0
10622
  )
10623
 
10624
  def __init__(self, success=None,):
10625
    self.success = success
10626
 
10627
  def read(self, iprot):
10628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10630
      return
10631
    iprot.readStructBegin()
10632
    while True:
10633
      (fname, ftype, fid) = iprot.readFieldBegin()
10634
      if ftype == TType.STOP:
10635
        break
10636
      if fid == 0:
10637
        if ftype == TType.BOOL:
10638
          self.success = iprot.readBool();
10639
        else:
10640
          iprot.skip(ftype)
10641
      else:
10642
        iprot.skip(ftype)
10643
      iprot.readFieldEnd()
10644
    iprot.readStructEnd()
10645
 
10646
  def write(self, oprot):
10647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10649
      return
10650
    oprot.writeStructBegin('deleteBannerMap_result')
10651
    if self.success is not None:
10652
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10653
      oprot.writeBool(self.success)
10654
      oprot.writeFieldEnd()
10655
    oprot.writeFieldStop()
10656
    oprot.writeStructEnd()
10657
 
10658
  def validate(self):
10659
    return
10660
 
10661
 
10662
  def __repr__(self):
10663
    L = ['%s=%r' % (key, value)
10664
      for key, value in self.__dict__.iteritems()]
10665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10666
 
10667
  def __eq__(self, other):
10668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10669
 
10670
  def __ne__(self, other):
10671
    return not (self == other)
10672
 
10673
class getBannerMapDetails_args:
10674
  """
10675
  Attributes:
10676
   - bannerName
10677
  """
10678
 
10679
  thrift_spec = (
10680
    None, # 0
10681
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10682
  )
10683
 
10684
  def __init__(self, bannerName=None,):
10685
    self.bannerName = bannerName
10686
 
10687
  def read(self, iprot):
10688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10690
      return
10691
    iprot.readStructBegin()
10692
    while True:
10693
      (fname, ftype, fid) = iprot.readFieldBegin()
10694
      if ftype == TType.STOP:
10695
        break
10696
      if fid == 1:
10697
        if ftype == TType.STRING:
10698
          self.bannerName = iprot.readString();
10699
        else:
10700
          iprot.skip(ftype)
10701
      else:
10702
        iprot.skip(ftype)
10703
      iprot.readFieldEnd()
10704
    iprot.readStructEnd()
10705
 
10706
  def write(self, oprot):
10707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10709
      return
10710
    oprot.writeStructBegin('getBannerMapDetails_args')
10711
    if self.bannerName is not None:
10712
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10713
      oprot.writeString(self.bannerName)
10714
      oprot.writeFieldEnd()
10715
    oprot.writeFieldStop()
10716
    oprot.writeStructEnd()
10717
 
10718
  def validate(self):
10719
    return
10720
 
10721
 
10722
  def __repr__(self):
10723
    L = ['%s=%r' % (key, value)
10724
      for key, value in self.__dict__.iteritems()]
10725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10726
 
10727
  def __eq__(self, other):
10728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10729
 
10730
  def __ne__(self, other):
10731
    return not (self == other)
10732
 
10733
class getBannerMapDetails_result:
10734
  """
10735
  Attributes:
10736
   - success
10737
  """
10738
 
10739
  thrift_spec = (
10740
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10741
  )
10742
 
10743
  def __init__(self, success=None,):
10744
    self.success = success
10745
 
10746
  def read(self, iprot):
10747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10749
      return
10750
    iprot.readStructBegin()
10751
    while True:
10752
      (fname, ftype, fid) = iprot.readFieldBegin()
10753
      if ftype == TType.STOP:
10754
        break
10755
      if fid == 0:
10756
        if ftype == TType.LIST:
10757
          self.success = []
6850 kshitij.so 10758
          (_etype182, _size179) = iprot.readListBegin()
10759
          for _i183 in xrange(_size179):
10760
            _elem184 = BannerMap()
10761
            _elem184.read(iprot)
10762
            self.success.append(_elem184)
6849 kshitij.so 10763
          iprot.readListEnd()
10764
        else:
10765
          iprot.skip(ftype)
10766
      else:
10767
        iprot.skip(ftype)
10768
      iprot.readFieldEnd()
10769
    iprot.readStructEnd()
10770
 
10771
  def write(self, oprot):
10772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10774
      return
10775
    oprot.writeStructBegin('getBannerMapDetails_result')
10776
    if self.success is not None:
10777
      oprot.writeFieldBegin('success', TType.LIST, 0)
10778
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10779
      for iter185 in self.success:
10780
        iter185.write(oprot)
6849 kshitij.so 10781
      oprot.writeListEnd()
10782
      oprot.writeFieldEnd()
10783
    oprot.writeFieldStop()
10784
    oprot.writeStructEnd()
10785
 
10786
  def validate(self):
10787
    return
10788
 
10789
 
10790
  def __repr__(self):
10791
    L = ['%s=%r' % (key, value)
10792
      for key, value in self.__dict__.iteritems()]
10793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10794
 
10795
  def __eq__(self, other):
10796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10797
 
10798
  def __ne__(self, other):
10799
    return not (self == other)
10800
 
5944 mandeep.dh 10801
class deleteSimilarItem_args:
10802
  """
10803
  Attributes:
10804
   - itemId
10805
   - catalogItemId
10806
  """
10807
 
10808
  thrift_spec = (
10809
    None, # 0
10810
    (1, TType.I64, 'itemId', None, None, ), # 1
10811
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
10812
  )
10813
 
10814
  def __init__(self, itemId=None, catalogItemId=None,):
10815
    self.itemId = itemId
10816
    self.catalogItemId = catalogItemId
10817
 
10818
  def read(self, iprot):
10819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10821
      return
10822
    iprot.readStructBegin()
10823
    while True:
10824
      (fname, ftype, fid) = iprot.readFieldBegin()
10825
      if ftype == TType.STOP:
10826
        break
10827
      if fid == 1:
10828
        if ftype == TType.I64:
10829
          self.itemId = iprot.readI64();
10830
        else:
10831
          iprot.skip(ftype)
10832
      elif fid == 2:
10833
        if ftype == TType.I64:
10834
          self.catalogItemId = iprot.readI64();
10835
        else:
10836
          iprot.skip(ftype)
10837
      else:
10838
        iprot.skip(ftype)
10839
      iprot.readFieldEnd()
10840
    iprot.readStructEnd()
10841
 
10842
  def write(self, oprot):
10843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10845
      return
10846
    oprot.writeStructBegin('deleteSimilarItem_args')
10847
    if self.itemId is not None:
10848
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10849
      oprot.writeI64(self.itemId)
10850
      oprot.writeFieldEnd()
10851
    if self.catalogItemId is not None:
10852
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
10853
      oprot.writeI64(self.catalogItemId)
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 deleteSimilarItem_result:
10874
  """
10875
  Attributes:
10876
   - success
10877
   - cex
10878
  """
10879
 
10880
  thrift_spec = (
10881
    (0, TType.BOOL, 'success', None, None, ), # 0
10882
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10883
  )
10884
 
10885
  def __init__(self, success=None, cex=None,):
10886
    self.success = success
10887
    self.cex = cex
10888
 
10889
  def read(self, iprot):
10890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10892
      return
10893
    iprot.readStructBegin()
10894
    while True:
10895
      (fname, ftype, fid) = iprot.readFieldBegin()
10896
      if ftype == TType.STOP:
10897
        break
10898
      if fid == 0:
10899
        if ftype == TType.BOOL:
10900
          self.success = iprot.readBool();
10901
        else:
10902
          iprot.skip(ftype)
10903
      elif fid == 1:
10904
        if ftype == TType.STRUCT:
10905
          self.cex = CatalogServiceException()
10906
          self.cex.read(iprot)
10907
        else:
10908
          iprot.skip(ftype)
10909
      else:
10910
        iprot.skip(ftype)
10911
      iprot.readFieldEnd()
10912
    iprot.readStructEnd()
10913
 
10914
  def write(self, oprot):
10915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10917
      return
10918
    oprot.writeStructBegin('deleteSimilarItem_result')
10919
    if self.success is not None:
10920
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10921
      oprot.writeBool(self.success)
10922
      oprot.writeFieldEnd()
10923
    if self.cex is not None:
10924
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10925
      self.cex.write(oprot)
10926
      oprot.writeFieldEnd()
10927
    oprot.writeFieldStop()
10928
    oprot.writeStructEnd()
10929
 
10930
  def validate(self):
10931
    return
10932
 
10933
 
10934
  def __repr__(self):
10935
    L = ['%s=%r' % (key, value)
10936
      for key, value in self.__dict__.iteritems()]
10937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10938
 
10939
  def __eq__(self, other):
10940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10941
 
10942
  def __ne__(self, other):
10943
    return not (self == other)
10944
 
10945
class checkSimilarItem_args:
10946
  """
10947
  Attributes:
10948
   - brand
10949
   - modelNumber
10950
   - modelName
10951
   - color
10952
  """
10953
 
10954
  thrift_spec = (
10955
    None, # 0
10956
    (1, TType.STRING, 'brand', None, None, ), # 1
10957
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
10958
    (3, TType.STRING, 'modelName', None, None, ), # 3
10959
    (4, TType.STRING, 'color', None, None, ), # 4
10960
  )
10961
 
10962
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
10963
    self.brand = brand
10964
    self.modelNumber = modelNumber
10965
    self.modelName = modelName
10966
    self.color = color
10967
 
10968
  def read(self, iprot):
10969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10971
      return
10972
    iprot.readStructBegin()
10973
    while True:
10974
      (fname, ftype, fid) = iprot.readFieldBegin()
10975
      if ftype == TType.STOP:
10976
        break
10977
      if fid == 1:
10978
        if ftype == TType.STRING:
10979
          self.brand = iprot.readString();
10980
        else:
10981
          iprot.skip(ftype)
10982
      elif fid == 2:
10983
        if ftype == TType.STRING:
10984
          self.modelNumber = iprot.readString();
10985
        else:
10986
          iprot.skip(ftype)
10987
      elif fid == 3:
10988
        if ftype == TType.STRING:
10989
          self.modelName = iprot.readString();
10990
        else:
10991
          iprot.skip(ftype)
10992
      elif fid == 4:
10993
        if ftype == TType.STRING:
10994
          self.color = iprot.readString();
10995
        else:
10996
          iprot.skip(ftype)
10997
      else:
10998
        iprot.skip(ftype)
10999
      iprot.readFieldEnd()
11000
    iprot.readStructEnd()
11001
 
11002
  def write(self, oprot):
11003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11005
      return
11006
    oprot.writeStructBegin('checkSimilarItem_args')
11007
    if self.brand is not None:
11008
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11009
      oprot.writeString(self.brand)
11010
      oprot.writeFieldEnd()
11011
    if self.modelNumber is not None:
11012
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11013
      oprot.writeString(self.modelNumber)
11014
      oprot.writeFieldEnd()
11015
    if self.modelName is not None:
11016
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11017
      oprot.writeString(self.modelName)
11018
      oprot.writeFieldEnd()
11019
    if self.color is not None:
11020
      oprot.writeFieldBegin('color', TType.STRING, 4)
11021
      oprot.writeString(self.color)
11022
      oprot.writeFieldEnd()
11023
    oprot.writeFieldStop()
11024
    oprot.writeStructEnd()
11025
 
11026
  def validate(self):
11027
    return
11028
 
11029
 
11030
  def __repr__(self):
11031
    L = ['%s=%r' % (key, value)
11032
      for key, value in self.__dict__.iteritems()]
11033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11034
 
11035
  def __eq__(self, other):
11036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11037
 
11038
  def __ne__(self, other):
11039
    return not (self == other)
11040
 
11041
class checkSimilarItem_result:
11042
  """
11043
  Attributes:
11044
   - success
11045
  """
11046
 
11047
  thrift_spec = (
11048
    (0, TType.I64, 'success', None, None, ), # 0
11049
  )
11050
 
11051
  def __init__(self, success=None,):
11052
    self.success = success
11053
 
11054
  def read(self, iprot):
11055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11057
      return
11058
    iprot.readStructBegin()
11059
    while True:
11060
      (fname, ftype, fid) = iprot.readFieldBegin()
11061
      if ftype == TType.STOP:
11062
        break
11063
      if fid == 0:
11064
        if ftype == TType.I64:
11065
          self.success = iprot.readI64();
11066
        else:
11067
          iprot.skip(ftype)
11068
      else:
11069
        iprot.skip(ftype)
11070
      iprot.readFieldEnd()
11071
    iprot.readStructEnd()
11072
 
11073
  def write(self, oprot):
11074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11076
      return
11077
    oprot.writeStructBegin('checkSimilarItem_result')
11078
    if self.success is not None:
11079
      oprot.writeFieldBegin('success', TType.I64, 0)
11080
      oprot.writeI64(self.success)
11081
      oprot.writeFieldEnd()
11082
    oprot.writeFieldStop()
11083
    oprot.writeStructEnd()
11084
 
11085
  def validate(self):
11086
    return
11087
 
11088
 
11089
  def __repr__(self):
11090
    L = ['%s=%r' % (key, value)
11091
      for key, value in self.__dict__.iteritems()]
11092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11093
 
11094
  def __eq__(self, other):
11095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11096
 
11097
  def __ne__(self, other):
11098
    return not (self == other)
11099
 
11100
class validateRiskyStatus_args:
11101
  """
11102
  Attributes:
11103
   - itemId
11104
  """
11105
 
11106
  thrift_spec = (
11107
    None, # 0
11108
    (1, TType.I64, 'itemId', None, None, ), # 1
11109
  )
11110
 
11111
  def __init__(self, itemId=None,):
11112
    self.itemId = itemId
11113
 
11114
  def read(self, iprot):
11115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11117
      return
11118
    iprot.readStructBegin()
11119
    while True:
11120
      (fname, ftype, fid) = iprot.readFieldBegin()
11121
      if ftype == TType.STOP:
11122
        break
11123
      if fid == 1:
11124
        if ftype == TType.I64:
11125
          self.itemId = iprot.readI64();
11126
        else:
11127
          iprot.skip(ftype)
11128
      else:
11129
        iprot.skip(ftype)
11130
      iprot.readFieldEnd()
11131
    iprot.readStructEnd()
11132
 
11133
  def write(self, oprot):
11134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11136
      return
11137
    oprot.writeStructBegin('validateRiskyStatus_args')
11138
    if self.itemId is not None:
11139
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11140
      oprot.writeI64(self.itemId)
11141
      oprot.writeFieldEnd()
11142
    oprot.writeFieldStop()
11143
    oprot.writeStructEnd()
11144
 
11145
  def validate(self):
11146
    return
11147
 
11148
 
11149
  def __repr__(self):
11150
    L = ['%s=%r' % (key, value)
11151
      for key, value in self.__dict__.iteritems()]
11152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11153
 
11154
  def __eq__(self, other):
11155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11156
 
11157
  def __ne__(self, other):
11158
    return not (self == other)
11159
 
11160
class validateRiskyStatus_result:
11161
 
11162
  thrift_spec = (
11163
  )
11164
 
11165
  def read(self, iprot):
11166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11168
      return
11169
    iprot.readStructBegin()
11170
    while True:
11171
      (fname, ftype, fid) = iprot.readFieldBegin()
11172
      if ftype == TType.STOP:
11173
        break
11174
      else:
11175
        iprot.skip(ftype)
11176
      iprot.readFieldEnd()
11177
    iprot.readStructEnd()
11178
 
11179
  def write(self, oprot):
11180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11182
      return
11183
    oprot.writeStructBegin('validateRiskyStatus_result')
11184
    oprot.writeFieldStop()
11185
    oprot.writeStructEnd()
11186
 
11187
  def validate(self):
11188
    return
11189
 
11190
 
11191
  def __repr__(self):
11192
    L = ['%s=%r' % (key, value)
11193
      for key, value in self.__dict__.iteritems()]
11194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11195
 
11196
  def __eq__(self, other):
11197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11198
 
11199
  def __ne__(self, other):
11200
    return not (self == other)
11201
 
11202
class changeItemRiskyFlag_args:
11203
  """
11204
  Attributes:
11205
   - itemId
11206
   - risky
11207
  """
11208
 
11209
  thrift_spec = (
11210
    None, # 0
11211
    (1, TType.I64, 'itemId', None, None, ), # 1
11212
    (2, TType.BOOL, 'risky', None, None, ), # 2
11213
  )
11214
 
11215
  def __init__(self, itemId=None, risky=None,):
11216
    self.itemId = itemId
11217
    self.risky = risky
11218
 
11219
  def read(self, iprot):
11220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11222
      return
11223
    iprot.readStructBegin()
11224
    while True:
11225
      (fname, ftype, fid) = iprot.readFieldBegin()
11226
      if ftype == TType.STOP:
11227
        break
11228
      if fid == 1:
11229
        if ftype == TType.I64:
11230
          self.itemId = iprot.readI64();
11231
        else:
11232
          iprot.skip(ftype)
11233
      elif fid == 2:
11234
        if ftype == TType.BOOL:
11235
          self.risky = iprot.readBool();
11236
        else:
11237
          iprot.skip(ftype)
11238
      else:
11239
        iprot.skip(ftype)
11240
      iprot.readFieldEnd()
11241
    iprot.readStructEnd()
11242
 
11243
  def write(self, oprot):
11244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11246
      return
11247
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11248
    if self.itemId is not None:
11249
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11250
      oprot.writeI64(self.itemId)
11251
      oprot.writeFieldEnd()
11252
    if self.risky is not None:
11253
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11254
      oprot.writeBool(self.risky)
11255
      oprot.writeFieldEnd()
11256
    oprot.writeFieldStop()
11257
    oprot.writeStructEnd()
11258
 
11259
  def validate(self):
11260
    return
11261
 
11262
 
11263
  def __repr__(self):
11264
    L = ['%s=%r' % (key, value)
11265
      for key, value in self.__dict__.iteritems()]
11266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11267
 
11268
  def __eq__(self, other):
11269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11270
 
11271
  def __ne__(self, other):
11272
    return not (self == other)
11273
 
11274
class changeItemRiskyFlag_result:
11275
 
11276
  thrift_spec = (
11277
  )
11278
 
11279
  def read(self, iprot):
11280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11282
      return
11283
    iprot.readStructBegin()
11284
    while True:
11285
      (fname, ftype, fid) = iprot.readFieldBegin()
11286
      if ftype == TType.STOP:
11287
        break
11288
      else:
11289
        iprot.skip(ftype)
11290
      iprot.readFieldEnd()
11291
    iprot.readStructEnd()
11292
 
11293
  def write(self, oprot):
11294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11296
      return
11297
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11298
    oprot.writeFieldStop()
11299
    oprot.writeStructEnd()
11300
 
11301
  def validate(self):
11302
    return
11303
 
11304
 
11305
  def __repr__(self):
11306
    L = ['%s=%r' % (key, value)
11307
      for key, value in self.__dict__.iteritems()]
11308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11309
 
11310
  def __eq__(self, other):
11311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11312
 
11313
  def __ne__(self, other):
11314
    return not (self == other)
11315
 
11316
class getItemsByRiskyFlag_args:
11317
 
11318
  thrift_spec = (
11319
  )
11320
 
11321
  def read(self, iprot):
11322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11324
      return
11325
    iprot.readStructBegin()
11326
    while True:
11327
      (fname, ftype, fid) = iprot.readFieldBegin()
11328
      if ftype == TType.STOP:
11329
        break
11330
      else:
11331
        iprot.skip(ftype)
11332
      iprot.readFieldEnd()
11333
    iprot.readStructEnd()
11334
 
11335
  def write(self, oprot):
11336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11338
      return
11339
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11340
    oprot.writeFieldStop()
11341
    oprot.writeStructEnd()
11342
 
11343
  def validate(self):
11344
    return
11345
 
11346
 
11347
  def __repr__(self):
11348
    L = ['%s=%r' % (key, value)
11349
      for key, value in self.__dict__.iteritems()]
11350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11351
 
11352
  def __eq__(self, other):
11353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11354
 
11355
  def __ne__(self, other):
11356
    return not (self == other)
11357
 
11358
class getItemsByRiskyFlag_result:
11359
  """
11360
  Attributes:
11361
   - success
11362
  """
11363
 
11364
  thrift_spec = (
11365
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11366
  )
11367
 
11368
  def __init__(self, success=None,):
11369
    self.success = success
11370
 
11371
  def read(self, iprot):
11372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11374
      return
11375
    iprot.readStructBegin()
11376
    while True:
11377
      (fname, ftype, fid) = iprot.readFieldBegin()
11378
      if ftype == TType.STOP:
11379
        break
11380
      if fid == 0:
11381
        if ftype == TType.LIST:
11382
          self.success = []
6850 kshitij.so 11383
          (_etype189, _size186) = iprot.readListBegin()
11384
          for _i190 in xrange(_size186):
11385
            _elem191 = Item()
11386
            _elem191.read(iprot)
11387
            self.success.append(_elem191)
5944 mandeep.dh 11388
          iprot.readListEnd()
11389
        else:
11390
          iprot.skip(ftype)
11391
      else:
11392
        iprot.skip(ftype)
11393
      iprot.readFieldEnd()
11394
    iprot.readStructEnd()
11395
 
11396
  def write(self, oprot):
11397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11399
      return
11400
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11401
    if self.success is not None:
11402
      oprot.writeFieldBegin('success', TType.LIST, 0)
11403
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11404
      for iter192 in self.success:
11405
        iter192.write(oprot)
5944 mandeep.dh 11406
      oprot.writeListEnd()
11407
      oprot.writeFieldEnd()
11408
    oprot.writeFieldStop()
11409
    oprot.writeStructEnd()
11410
 
11411
  def validate(self):
11412
    return
11413
 
11414
 
11415
  def __repr__(self):
11416
    L = ['%s=%r' % (key, value)
11417
      for key, value in self.__dict__.iteritems()]
11418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11419
 
11420
  def __eq__(self, other):
11421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11422
 
11423
  def __ne__(self, other):
11424
    return not (self == other)
11425
 
11426
class getItemsForMasterSheet_args:
11427
  """
11428
  Attributes:
11429
   - category
11430
   - brand
11431
  """
11432
 
11433
  thrift_spec = (
11434
    None, # 0
11435
    (1, TType.STRING, 'category', None, None, ), # 1
11436
    (2, TType.STRING, 'brand', None, None, ), # 2
11437
  )
11438
 
11439
  def __init__(self, category=None, brand=None,):
11440
    self.category = category
11441
    self.brand = brand
11442
 
11443
  def read(self, iprot):
11444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11446
      return
11447
    iprot.readStructBegin()
11448
    while True:
11449
      (fname, ftype, fid) = iprot.readFieldBegin()
11450
      if ftype == TType.STOP:
11451
        break
11452
      if fid == 1:
11453
        if ftype == TType.STRING:
11454
          self.category = iprot.readString();
11455
        else:
11456
          iprot.skip(ftype)
11457
      elif fid == 2:
11458
        if ftype == TType.STRING:
11459
          self.brand = iprot.readString();
11460
        else:
11461
          iprot.skip(ftype)
11462
      else:
11463
        iprot.skip(ftype)
11464
      iprot.readFieldEnd()
11465
    iprot.readStructEnd()
11466
 
11467
  def write(self, oprot):
11468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11470
      return
11471
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11472
    if self.category is not None:
11473
      oprot.writeFieldBegin('category', TType.STRING, 1)
11474
      oprot.writeString(self.category)
11475
      oprot.writeFieldEnd()
11476
    if self.brand is not None:
11477
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11478
      oprot.writeString(self.brand)
11479
      oprot.writeFieldEnd()
11480
    oprot.writeFieldStop()
11481
    oprot.writeStructEnd()
11482
 
11483
  def validate(self):
11484
    return
11485
 
11486
 
11487
  def __repr__(self):
11488
    L = ['%s=%r' % (key, value)
11489
      for key, value in self.__dict__.iteritems()]
11490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11491
 
11492
  def __eq__(self, other):
11493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11494
 
11495
  def __ne__(self, other):
11496
    return not (self == other)
11497
 
11498
class getItemsForMasterSheet_result:
11499
  """
11500
  Attributes:
11501
   - success
11502
  """
11503
 
11504
  thrift_spec = (
11505
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11506
  )
11507
 
11508
  def __init__(self, success=None,):
11509
    self.success = success
11510
 
11511
  def read(self, iprot):
11512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11514
      return
11515
    iprot.readStructBegin()
11516
    while True:
11517
      (fname, ftype, fid) = iprot.readFieldBegin()
11518
      if ftype == TType.STOP:
11519
        break
11520
      if fid == 0:
11521
        if ftype == TType.LIST:
11522
          self.success = []
6850 kshitij.so 11523
          (_etype196, _size193) = iprot.readListBegin()
11524
          for _i197 in xrange(_size193):
11525
            _elem198 = Item()
11526
            _elem198.read(iprot)
11527
            self.success.append(_elem198)
5944 mandeep.dh 11528
          iprot.readListEnd()
11529
        else:
11530
          iprot.skip(ftype)
11531
      else:
11532
        iprot.skip(ftype)
11533
      iprot.readFieldEnd()
11534
    iprot.readStructEnd()
11535
 
11536
  def write(self, oprot):
11537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11539
      return
11540
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11541
    if self.success is not None:
11542
      oprot.writeFieldBegin('success', TType.LIST, 0)
11543
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11544
      for iter199 in self.success:
11545
        iter199.write(oprot)
5944 mandeep.dh 11546
      oprot.writeListEnd()
11547
      oprot.writeFieldEnd()
11548
    oprot.writeFieldStop()
11549
    oprot.writeStructEnd()
11550
 
11551
  def validate(self):
11552
    return
11553
 
11554
 
11555
  def __repr__(self):
11556
    L = ['%s=%r' % (key, value)
11557
      for key, value in self.__dict__.iteritems()]
11558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11559
 
11560
  def __eq__(self, other):
11561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11562
 
11563
  def __ne__(self, other):
11564
    return not (self == other)
11565
 
11566
class getSimilarItemsCatalogIds_args:
11567
  """
11568
  Attributes:
11569
   - beginIndex
11570
   - totalItems
11571
   - itemId
11572
  """
11573
 
11574
  thrift_spec = (
11575
    None, # 0
11576
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11577
    (2, TType.I64, 'totalItems', None, None, ), # 2
11578
    (3, TType.I64, 'itemId', None, None, ), # 3
11579
  )
11580
 
11581
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11582
    self.beginIndex = beginIndex
11583
    self.totalItems = totalItems
11584
    self.itemId = itemId
11585
 
11586
  def read(self, iprot):
11587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11589
      return
11590
    iprot.readStructBegin()
11591
    while True:
11592
      (fname, ftype, fid) = iprot.readFieldBegin()
11593
      if ftype == TType.STOP:
11594
        break
11595
      if fid == 1:
11596
        if ftype == TType.I64:
11597
          self.beginIndex = iprot.readI64();
11598
        else:
11599
          iprot.skip(ftype)
11600
      elif fid == 2:
11601
        if ftype == TType.I64:
11602
          self.totalItems = iprot.readI64();
11603
        else:
11604
          iprot.skip(ftype)
11605
      elif fid == 3:
11606
        if ftype == TType.I64:
11607
          self.itemId = iprot.readI64();
11608
        else:
11609
          iprot.skip(ftype)
11610
      else:
11611
        iprot.skip(ftype)
11612
      iprot.readFieldEnd()
11613
    iprot.readStructEnd()
11614
 
11615
  def write(self, oprot):
11616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11618
      return
11619
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11620
    if self.beginIndex is not None:
11621
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11622
      oprot.writeI64(self.beginIndex)
11623
      oprot.writeFieldEnd()
11624
    if self.totalItems is not None:
11625
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11626
      oprot.writeI64(self.totalItems)
11627
      oprot.writeFieldEnd()
11628
    if self.itemId is not None:
11629
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11630
      oprot.writeI64(self.itemId)
11631
      oprot.writeFieldEnd()
11632
    oprot.writeFieldStop()
11633
    oprot.writeStructEnd()
11634
 
11635
  def validate(self):
11636
    return
11637
 
11638
 
11639
  def __repr__(self):
11640
    L = ['%s=%r' % (key, value)
11641
      for key, value in self.__dict__.iteritems()]
11642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11643
 
11644
  def __eq__(self, other):
11645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11646
 
11647
  def __ne__(self, other):
11648
    return not (self == other)
11649
 
11650
class getSimilarItemsCatalogIds_result:
11651
  """
11652
  Attributes:
11653
   - success
11654
  """
11655
 
11656
  thrift_spec = (
11657
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11658
  )
11659
 
11660
  def __init__(self, success=None,):
11661
    self.success = success
11662
 
11663
  def read(self, iprot):
11664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11666
      return
11667
    iprot.readStructBegin()
11668
    while True:
11669
      (fname, ftype, fid) = iprot.readFieldBegin()
11670
      if ftype == TType.STOP:
11671
        break
11672
      if fid == 0:
11673
        if ftype == TType.LIST:
11674
          self.success = []
6850 kshitij.so 11675
          (_etype203, _size200) = iprot.readListBegin()
11676
          for _i204 in xrange(_size200):
11677
            _elem205 = iprot.readI64();
11678
            self.success.append(_elem205)
5944 mandeep.dh 11679
          iprot.readListEnd()
11680
        else:
11681
          iprot.skip(ftype)
11682
      else:
11683
        iprot.skip(ftype)
11684
      iprot.readFieldEnd()
11685
    iprot.readStructEnd()
11686
 
11687
  def write(self, oprot):
11688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11690
      return
11691
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11692
    if self.success is not None:
11693
      oprot.writeFieldBegin('success', TType.LIST, 0)
11694
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11695
      for iter206 in self.success:
11696
        oprot.writeI64(iter206)
5944 mandeep.dh 11697
      oprot.writeListEnd()
11698
      oprot.writeFieldEnd()
11699
    oprot.writeFieldStop()
11700
    oprot.writeStructEnd()
11701
 
11702
  def validate(self):
11703
    return
11704
 
11705
 
11706
  def __repr__(self):
11707
    L = ['%s=%r' % (key, value)
11708
      for key, value in self.__dict__.iteritems()]
11709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11710
 
11711
  def __eq__(self, other):
11712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11713
 
11714
  def __ne__(self, other):
11715
    return not (self == other)
11716
 
11717
class addProductNotification_args:
11718
  """
11719
  Attributes:
11720
   - itemId
11721
   - email
11722
  """
11723
 
11724
  thrift_spec = None
11725
  def __init__(self, itemId=None, email=None,):
11726
    self.itemId = itemId
11727
    self.email = email
11728
 
11729
  def read(self, iprot):
11730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11732
      return
11733
    iprot.readStructBegin()
11734
    while True:
11735
      (fname, ftype, fid) = iprot.readFieldBegin()
11736
      if ftype == TType.STOP:
11737
        break
11738
      if fid == -1:
11739
        if ftype == TType.I64:
11740
          self.itemId = iprot.readI64();
11741
        else:
11742
          iprot.skip(ftype)
11743
      elif fid == -2:
11744
        if ftype == TType.STRING:
11745
          self.email = iprot.readString();
11746
        else:
11747
          iprot.skip(ftype)
11748
      else:
11749
        iprot.skip(ftype)
11750
      iprot.readFieldEnd()
11751
    iprot.readStructEnd()
11752
 
11753
  def write(self, oprot):
11754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11756
      return
11757
    oprot.writeStructBegin('addProductNotification_args')
11758
    if self.email is not None:
11759
      oprot.writeFieldBegin('email', TType.STRING, -2)
11760
      oprot.writeString(self.email)
11761
      oprot.writeFieldEnd()
11762
    if self.itemId is not None:
11763
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11764
      oprot.writeI64(self.itemId)
11765
      oprot.writeFieldEnd()
11766
    oprot.writeFieldStop()
11767
    oprot.writeStructEnd()
11768
 
11769
  def validate(self):
11770
    return
11771
 
11772
 
11773
  def __repr__(self):
11774
    L = ['%s=%r' % (key, value)
11775
      for key, value in self.__dict__.iteritems()]
11776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11777
 
11778
  def __eq__(self, other):
11779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11780
 
11781
  def __ne__(self, other):
11782
    return not (self == other)
11783
 
11784
class addProductNotification_result:
11785
  """
11786
  Attributes:
11787
   - success
11788
  """
11789
 
11790
  thrift_spec = (
11791
    (0, TType.BOOL, 'success', None, None, ), # 0
11792
  )
11793
 
11794
  def __init__(self, success=None,):
11795
    self.success = success
11796
 
11797
  def read(self, iprot):
11798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11800
      return
11801
    iprot.readStructBegin()
11802
    while True:
11803
      (fname, ftype, fid) = iprot.readFieldBegin()
11804
      if ftype == TType.STOP:
11805
        break
11806
      if fid == 0:
11807
        if ftype == TType.BOOL:
11808
          self.success = iprot.readBool();
11809
        else:
11810
          iprot.skip(ftype)
11811
      else:
11812
        iprot.skip(ftype)
11813
      iprot.readFieldEnd()
11814
    iprot.readStructEnd()
11815
 
11816
  def write(self, oprot):
11817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11819
      return
11820
    oprot.writeStructBegin('addProductNotification_result')
11821
    if self.success is not None:
11822
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11823
      oprot.writeBool(self.success)
11824
      oprot.writeFieldEnd()
11825
    oprot.writeFieldStop()
11826
    oprot.writeStructEnd()
11827
 
11828
  def validate(self):
11829
    return
11830
 
11831
 
11832
  def __repr__(self):
11833
    L = ['%s=%r' % (key, value)
11834
      for key, value in self.__dict__.iteritems()]
11835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11836
 
11837
  def __eq__(self, other):
11838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11839
 
11840
  def __ne__(self, other):
11841
    return not (self == other)
11842
 
11843
class sendProductNotifications_args:
11844
 
11845
  thrift_spec = (
11846
  )
11847
 
11848
  def read(self, iprot):
11849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11851
      return
11852
    iprot.readStructBegin()
11853
    while True:
11854
      (fname, ftype, fid) = iprot.readFieldBegin()
11855
      if ftype == TType.STOP:
11856
        break
11857
      else:
11858
        iprot.skip(ftype)
11859
      iprot.readFieldEnd()
11860
    iprot.readStructEnd()
11861
 
11862
  def write(self, oprot):
11863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11865
      return
11866
    oprot.writeStructBegin('sendProductNotifications_args')
11867
    oprot.writeFieldStop()
11868
    oprot.writeStructEnd()
11869
 
11870
  def validate(self):
11871
    return
11872
 
11873
 
11874
  def __repr__(self):
11875
    L = ['%s=%r' % (key, value)
11876
      for key, value in self.__dict__.iteritems()]
11877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11878
 
11879
  def __eq__(self, other):
11880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11881
 
11882
  def __ne__(self, other):
11883
    return not (self == other)
11884
 
11885
class sendProductNotifications_result:
11886
  """
11887
  Attributes:
11888
   - success
11889
  """
11890
 
11891
  thrift_spec = (
11892
    (0, TType.BOOL, 'success', None, None, ), # 0
11893
  )
11894
 
11895
  def __init__(self, success=None,):
11896
    self.success = success
11897
 
11898
  def read(self, iprot):
11899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11901
      return
11902
    iprot.readStructBegin()
11903
    while True:
11904
      (fname, ftype, fid) = iprot.readFieldBegin()
11905
      if ftype == TType.STOP:
11906
        break
11907
      if fid == 0:
11908
        if ftype == TType.BOOL:
11909
          self.success = iprot.readBool();
11910
        else:
11911
          iprot.skip(ftype)
11912
      else:
11913
        iprot.skip(ftype)
11914
      iprot.readFieldEnd()
11915
    iprot.readStructEnd()
11916
 
11917
  def write(self, oprot):
11918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11920
      return
11921
    oprot.writeStructBegin('sendProductNotifications_result')
11922
    if self.success is not None:
11923
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11924
      oprot.writeBool(self.success)
11925
      oprot.writeFieldEnd()
11926
    oprot.writeFieldStop()
11927
    oprot.writeStructEnd()
11928
 
11929
  def validate(self):
11930
    return
11931
 
11932
 
11933
  def __repr__(self):
11934
    L = ['%s=%r' % (key, value)
11935
      for key, value in self.__dict__.iteritems()]
11936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11937
 
11938
  def __eq__(self, other):
11939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11940
 
11941
  def __ne__(self, other):
11942
    return not (self == other)
11943
 
11944
class getAllBrandsByCategory_args:
11945
  """
11946
  Attributes:
11947
   - categoryId
11948
  """
11949
 
11950
  thrift_spec = (
11951
    None, # 0
11952
    (1, TType.I64, 'categoryId', None, None, ), # 1
11953
  )
11954
 
11955
  def __init__(self, categoryId=None,):
11956
    self.categoryId = categoryId
11957
 
11958
  def read(self, iprot):
11959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11961
      return
11962
    iprot.readStructBegin()
11963
    while True:
11964
      (fname, ftype, fid) = iprot.readFieldBegin()
11965
      if ftype == TType.STOP:
11966
        break
11967
      if fid == 1:
11968
        if ftype == TType.I64:
11969
          self.categoryId = iprot.readI64();
11970
        else:
11971
          iprot.skip(ftype)
11972
      else:
11973
        iprot.skip(ftype)
11974
      iprot.readFieldEnd()
11975
    iprot.readStructEnd()
11976
 
11977
  def write(self, oprot):
11978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11980
      return
11981
    oprot.writeStructBegin('getAllBrandsByCategory_args')
11982
    if self.categoryId is not None:
11983
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
11984
      oprot.writeI64(self.categoryId)
11985
      oprot.writeFieldEnd()
11986
    oprot.writeFieldStop()
11987
    oprot.writeStructEnd()
11988
 
11989
  def validate(self):
11990
    return
11991
 
11992
 
11993
  def __repr__(self):
11994
    L = ['%s=%r' % (key, value)
11995
      for key, value in self.__dict__.iteritems()]
11996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11997
 
11998
  def __eq__(self, other):
11999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12000
 
12001
  def __ne__(self, other):
12002
    return not (self == other)
12003
 
12004
class getAllBrandsByCategory_result:
12005
  """
12006
  Attributes:
12007
   - success
12008
  """
12009
 
12010
  thrift_spec = (
12011
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12012
  )
12013
 
12014
  def __init__(self, success=None,):
12015
    self.success = success
12016
 
12017
  def read(self, iprot):
12018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12020
      return
12021
    iprot.readStructBegin()
12022
    while True:
12023
      (fname, ftype, fid) = iprot.readFieldBegin()
12024
      if ftype == TType.STOP:
12025
        break
12026
      if fid == 0:
12027
        if ftype == TType.LIST:
12028
          self.success = []
6850 kshitij.so 12029
          (_etype210, _size207) = iprot.readListBegin()
12030
          for _i211 in xrange(_size207):
12031
            _elem212 = iprot.readString();
12032
            self.success.append(_elem212)
5944 mandeep.dh 12033
          iprot.readListEnd()
12034
        else:
12035
          iprot.skip(ftype)
12036
      else:
12037
        iprot.skip(ftype)
12038
      iprot.readFieldEnd()
12039
    iprot.readStructEnd()
12040
 
12041
  def write(self, oprot):
12042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12044
      return
12045
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12046
    if self.success is not None:
12047
      oprot.writeFieldBegin('success', TType.LIST, 0)
12048
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12049
      for iter213 in self.success:
12050
        oprot.writeString(iter213)
5944 mandeep.dh 12051
      oprot.writeListEnd()
12052
      oprot.writeFieldEnd()
12053
    oprot.writeFieldStop()
12054
    oprot.writeStructEnd()
12055
 
12056
  def validate(self):
12057
    return
12058
 
12059
 
12060
  def __repr__(self):
12061
    L = ['%s=%r' % (key, value)
12062
      for key, value in self.__dict__.iteritems()]
12063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12064
 
12065
  def __eq__(self, other):
12066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12067
 
12068
  def __ne__(self, other):
12069
    return not (self == other)
12070
 
12071
class getAllBrands_args:
12072
 
12073
  thrift_spec = (
12074
  )
12075
 
12076
  def read(self, iprot):
12077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12079
      return
12080
    iprot.readStructBegin()
12081
    while True:
12082
      (fname, ftype, fid) = iprot.readFieldBegin()
12083
      if ftype == TType.STOP:
12084
        break
12085
      else:
12086
        iprot.skip(ftype)
12087
      iprot.readFieldEnd()
12088
    iprot.readStructEnd()
12089
 
12090
  def write(self, oprot):
12091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12093
      return
12094
    oprot.writeStructBegin('getAllBrands_args')
12095
    oprot.writeFieldStop()
12096
    oprot.writeStructEnd()
12097
 
12098
  def validate(self):
12099
    return
12100
 
12101
 
12102
  def __repr__(self):
12103
    L = ['%s=%r' % (key, value)
12104
      for key, value in self.__dict__.iteritems()]
12105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12106
 
12107
  def __eq__(self, other):
12108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12109
 
12110
  def __ne__(self, other):
12111
    return not (self == other)
12112
 
12113
class getAllBrands_result:
12114
  """
12115
  Attributes:
12116
   - success
12117
  """
12118
 
12119
  thrift_spec = (
12120
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12121
  )
12122
 
12123
  def __init__(self, success=None,):
12124
    self.success = success
12125
 
12126
  def read(self, iprot):
12127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12129
      return
12130
    iprot.readStructBegin()
12131
    while True:
12132
      (fname, ftype, fid) = iprot.readFieldBegin()
12133
      if ftype == TType.STOP:
12134
        break
12135
      if fid == 0:
12136
        if ftype == TType.LIST:
12137
          self.success = []
6850 kshitij.so 12138
          (_etype217, _size214) = iprot.readListBegin()
12139
          for _i218 in xrange(_size214):
12140
            _elem219 = iprot.readString();
12141
            self.success.append(_elem219)
5944 mandeep.dh 12142
          iprot.readListEnd()
12143
        else:
12144
          iprot.skip(ftype)
12145
      else:
12146
        iprot.skip(ftype)
12147
      iprot.readFieldEnd()
12148
    iprot.readStructEnd()
12149
 
12150
  def write(self, oprot):
12151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12153
      return
12154
    oprot.writeStructBegin('getAllBrands_result')
12155
    if self.success is not None:
12156
      oprot.writeFieldBegin('success', TType.LIST, 0)
12157
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12158
      for iter220 in self.success:
12159
        oprot.writeString(iter220)
5944 mandeep.dh 12160
      oprot.writeListEnd()
12161
      oprot.writeFieldEnd()
12162
    oprot.writeFieldStop()
12163
    oprot.writeStructEnd()
12164
 
12165
  def validate(self):
12166
    return
12167
 
12168
 
12169
  def __repr__(self):
12170
    L = ['%s=%r' % (key, value)
12171
      for key, value in self.__dict__.iteritems()]
12172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12173
 
12174
  def __eq__(self, other):
12175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12176
 
12177
  def __ne__(self, other):
12178
    return not (self == other)
12179
 
12180
class getAllSources_args:
12181
 
12182
  thrift_spec = (
12183
  )
12184
 
12185
  def read(self, iprot):
12186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12188
      return
12189
    iprot.readStructBegin()
12190
    while True:
12191
      (fname, ftype, fid) = iprot.readFieldBegin()
12192
      if ftype == TType.STOP:
12193
        break
12194
      else:
12195
        iprot.skip(ftype)
12196
      iprot.readFieldEnd()
12197
    iprot.readStructEnd()
12198
 
12199
  def write(self, oprot):
12200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12202
      return
12203
    oprot.writeStructBegin('getAllSources_args')
12204
    oprot.writeFieldStop()
12205
    oprot.writeStructEnd()
12206
 
12207
  def validate(self):
12208
    return
12209
 
12210
 
12211
  def __repr__(self):
12212
    L = ['%s=%r' % (key, value)
12213
      for key, value in self.__dict__.iteritems()]
12214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12215
 
12216
  def __eq__(self, other):
12217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12218
 
12219
  def __ne__(self, other):
12220
    return not (self == other)
12221
 
12222
class getAllSources_result:
12223
  """
12224
  Attributes:
12225
   - success
12226
  """
12227
 
12228
  thrift_spec = (
12229
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12230
  )
12231
 
12232
  def __init__(self, success=None,):
12233
    self.success = success
12234
 
12235
  def read(self, iprot):
12236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12238
      return
12239
    iprot.readStructBegin()
12240
    while True:
12241
      (fname, ftype, fid) = iprot.readFieldBegin()
12242
      if ftype == TType.STOP:
12243
        break
12244
      if fid == 0:
12245
        if ftype == TType.LIST:
12246
          self.success = []
6850 kshitij.so 12247
          (_etype224, _size221) = iprot.readListBegin()
12248
          for _i225 in xrange(_size221):
12249
            _elem226 = Source()
12250
            _elem226.read(iprot)
12251
            self.success.append(_elem226)
5944 mandeep.dh 12252
          iprot.readListEnd()
12253
        else:
12254
          iprot.skip(ftype)
12255
      else:
12256
        iprot.skip(ftype)
12257
      iprot.readFieldEnd()
12258
    iprot.readStructEnd()
12259
 
12260
  def write(self, oprot):
12261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12263
      return
12264
    oprot.writeStructBegin('getAllSources_result')
12265
    if self.success is not None:
12266
      oprot.writeFieldBegin('success', TType.LIST, 0)
12267
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12268
      for iter227 in self.success:
12269
        iter227.write(oprot)
5944 mandeep.dh 12270
      oprot.writeListEnd()
12271
      oprot.writeFieldEnd()
12272
    oprot.writeFieldStop()
12273
    oprot.writeStructEnd()
12274
 
12275
  def validate(self):
12276
    return
12277
 
12278
 
12279
  def __repr__(self):
12280
    L = ['%s=%r' % (key, value)
12281
      for key, value in self.__dict__.iteritems()]
12282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12283
 
12284
  def __eq__(self, other):
12285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12286
 
12287
  def __ne__(self, other):
12288
    return not (self == other)
12289
 
12290
class getItemPricingBySource_args:
12291
  """
12292
  Attributes:
12293
   - itemId
12294
   - sourceId
12295
  """
12296
 
12297
  thrift_spec = (
12298
    None, # 0
12299
    (1, TType.I64, 'itemId', None, None, ), # 1
12300
    (2, TType.I64, 'sourceId', None, None, ), # 2
12301
  )
12302
 
12303
  def __init__(self, itemId=None, sourceId=None,):
12304
    self.itemId = itemId
12305
    self.sourceId = sourceId
12306
 
12307
  def read(self, iprot):
12308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12310
      return
12311
    iprot.readStructBegin()
12312
    while True:
12313
      (fname, ftype, fid) = iprot.readFieldBegin()
12314
      if ftype == TType.STOP:
12315
        break
12316
      if fid == 1:
12317
        if ftype == TType.I64:
12318
          self.itemId = iprot.readI64();
12319
        else:
12320
          iprot.skip(ftype)
12321
      elif fid == 2:
12322
        if ftype == TType.I64:
12323
          self.sourceId = iprot.readI64();
12324
        else:
12325
          iprot.skip(ftype)
12326
      else:
12327
        iprot.skip(ftype)
12328
      iprot.readFieldEnd()
12329
    iprot.readStructEnd()
12330
 
12331
  def write(self, oprot):
12332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12334
      return
12335
    oprot.writeStructBegin('getItemPricingBySource_args')
12336
    if self.itemId is not None:
12337
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12338
      oprot.writeI64(self.itemId)
12339
      oprot.writeFieldEnd()
12340
    if self.sourceId is not None:
12341
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12342
      oprot.writeI64(self.sourceId)
12343
      oprot.writeFieldEnd()
12344
    oprot.writeFieldStop()
12345
    oprot.writeStructEnd()
12346
 
12347
  def validate(self):
12348
    return
12349
 
12350
 
12351
  def __repr__(self):
12352
    L = ['%s=%r' % (key, value)
12353
      for key, value in self.__dict__.iteritems()]
12354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12355
 
12356
  def __eq__(self, other):
12357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12358
 
12359
  def __ne__(self, other):
12360
    return not (self == other)
12361
 
12362
class getItemPricingBySource_result:
12363
  """
12364
  Attributes:
12365
   - success
12366
   - cex
12367
  """
12368
 
12369
  thrift_spec = (
12370
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12371
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12372
  )
12373
 
12374
  def __init__(self, success=None, cex=None,):
12375
    self.success = success
12376
    self.cex = cex
12377
 
12378
  def read(self, iprot):
12379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12381
      return
12382
    iprot.readStructBegin()
12383
    while True:
12384
      (fname, ftype, fid) = iprot.readFieldBegin()
12385
      if ftype == TType.STOP:
12386
        break
12387
      if fid == 0:
12388
        if ftype == TType.STRUCT:
12389
          self.success = SourceItemPricing()
12390
          self.success.read(iprot)
12391
        else:
12392
          iprot.skip(ftype)
12393
      elif fid == 1:
12394
        if ftype == TType.STRUCT:
12395
          self.cex = CatalogServiceException()
12396
          self.cex.read(iprot)
12397
        else:
12398
          iprot.skip(ftype)
12399
      else:
12400
        iprot.skip(ftype)
12401
      iprot.readFieldEnd()
12402
    iprot.readStructEnd()
12403
 
12404
  def write(self, oprot):
12405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12407
      return
12408
    oprot.writeStructBegin('getItemPricingBySource_result')
12409
    if self.success is not None:
12410
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12411
      self.success.write(oprot)
12412
      oprot.writeFieldEnd()
12413
    if self.cex is not None:
12414
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12415
      self.cex.write(oprot)
12416
      oprot.writeFieldEnd()
12417
    oprot.writeFieldStop()
12418
    oprot.writeStructEnd()
12419
 
12420
  def validate(self):
12421
    return
12422
 
12423
 
12424
  def __repr__(self):
12425
    L = ['%s=%r' % (key, value)
12426
      for key, value in self.__dict__.iteritems()]
12427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12428
 
12429
  def __eq__(self, other):
12430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12431
 
12432
  def __ne__(self, other):
12433
    return not (self == other)
12434
 
12435
class addSourceItemPricing_args:
12436
  """
12437
  Attributes:
12438
   - sourceItemPricing
12439
  """
12440
 
12441
  thrift_spec = (
12442
    None, # 0
12443
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12444
  )
12445
 
12446
  def __init__(self, sourceItemPricing=None,):
12447
    self.sourceItemPricing = sourceItemPricing
12448
 
12449
  def read(self, iprot):
12450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12452
      return
12453
    iprot.readStructBegin()
12454
    while True:
12455
      (fname, ftype, fid) = iprot.readFieldBegin()
12456
      if ftype == TType.STOP:
12457
        break
12458
      if fid == 1:
12459
        if ftype == TType.STRUCT:
12460
          self.sourceItemPricing = SourceItemPricing()
12461
          self.sourceItemPricing.read(iprot)
12462
        else:
12463
          iprot.skip(ftype)
12464
      else:
12465
        iprot.skip(ftype)
12466
      iprot.readFieldEnd()
12467
    iprot.readStructEnd()
12468
 
12469
  def write(self, oprot):
12470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12472
      return
12473
    oprot.writeStructBegin('addSourceItemPricing_args')
12474
    if self.sourceItemPricing is not None:
12475
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12476
      self.sourceItemPricing.write(oprot)
12477
      oprot.writeFieldEnd()
12478
    oprot.writeFieldStop()
12479
    oprot.writeStructEnd()
12480
 
12481
  def validate(self):
12482
    return
12483
 
12484
 
12485
  def __repr__(self):
12486
    L = ['%s=%r' % (key, value)
12487
      for key, value in self.__dict__.iteritems()]
12488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12489
 
12490
  def __eq__(self, other):
12491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12492
 
12493
  def __ne__(self, other):
12494
    return not (self == other)
12495
 
12496
class addSourceItemPricing_result:
12497
  """
12498
  Attributes:
12499
   - cex
12500
  """
12501
 
12502
  thrift_spec = (
12503
    None, # 0
12504
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12505
  )
12506
 
12507
  def __init__(self, cex=None,):
12508
    self.cex = cex
12509
 
12510
  def read(self, iprot):
12511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12513
      return
12514
    iprot.readStructBegin()
12515
    while True:
12516
      (fname, ftype, fid) = iprot.readFieldBegin()
12517
      if ftype == TType.STOP:
12518
        break
12519
      if fid == 1:
12520
        if ftype == TType.STRUCT:
12521
          self.cex = CatalogServiceException()
12522
          self.cex.read(iprot)
12523
        else:
12524
          iprot.skip(ftype)
12525
      else:
12526
        iprot.skip(ftype)
12527
      iprot.readFieldEnd()
12528
    iprot.readStructEnd()
12529
 
12530
  def write(self, oprot):
12531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12533
      return
12534
    oprot.writeStructBegin('addSourceItemPricing_result')
12535
    if self.cex is not None:
12536
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12537
      self.cex.write(oprot)
12538
      oprot.writeFieldEnd()
12539
    oprot.writeFieldStop()
12540
    oprot.writeStructEnd()
12541
 
12542
  def validate(self):
12543
    return
12544
 
12545
 
12546
  def __repr__(self):
12547
    L = ['%s=%r' % (key, value)
12548
      for key, value in self.__dict__.iteritems()]
12549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12550
 
12551
  def __eq__(self, other):
12552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12553
 
12554
  def __ne__(self, other):
12555
    return not (self == other)
12556
 
12557
class getAllSourcePricing_args:
12558
  """
12559
  Attributes:
12560
   - itemId
12561
  """
12562
 
12563
  thrift_spec = (
12564
    None, # 0
12565
    (1, TType.I64, 'itemId', None, None, ), # 1
12566
  )
12567
 
12568
  def __init__(self, itemId=None,):
12569
    self.itemId = itemId
12570
 
12571
  def read(self, iprot):
12572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12574
      return
12575
    iprot.readStructBegin()
12576
    while True:
12577
      (fname, ftype, fid) = iprot.readFieldBegin()
12578
      if ftype == TType.STOP:
12579
        break
12580
      if fid == 1:
12581
        if ftype == TType.I64:
12582
          self.itemId = iprot.readI64();
12583
        else:
12584
          iprot.skip(ftype)
12585
      else:
12586
        iprot.skip(ftype)
12587
      iprot.readFieldEnd()
12588
    iprot.readStructEnd()
12589
 
12590
  def write(self, oprot):
12591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12593
      return
12594
    oprot.writeStructBegin('getAllSourcePricing_args')
12595
    if self.itemId is not None:
12596
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12597
      oprot.writeI64(self.itemId)
12598
      oprot.writeFieldEnd()
12599
    oprot.writeFieldStop()
12600
    oprot.writeStructEnd()
12601
 
12602
  def validate(self):
12603
    return
12604
 
12605
 
12606
  def __repr__(self):
12607
    L = ['%s=%r' % (key, value)
12608
      for key, value in self.__dict__.iteritems()]
12609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12610
 
12611
  def __eq__(self, other):
12612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12613
 
12614
  def __ne__(self, other):
12615
    return not (self == other)
12616
 
12617
class getAllSourcePricing_result:
12618
  """
12619
  Attributes:
12620
   - success
12621
   - cex
12622
  """
12623
 
12624
  thrift_spec = (
12625
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12626
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12627
  )
12628
 
12629
  def __init__(self, success=None, cex=None,):
12630
    self.success = success
12631
    self.cex = cex
12632
 
12633
  def read(self, iprot):
12634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12636
      return
12637
    iprot.readStructBegin()
12638
    while True:
12639
      (fname, ftype, fid) = iprot.readFieldBegin()
12640
      if ftype == TType.STOP:
12641
        break
12642
      if fid == 0:
12643
        if ftype == TType.LIST:
12644
          self.success = []
6850 kshitij.so 12645
          (_etype231, _size228) = iprot.readListBegin()
12646
          for _i232 in xrange(_size228):
12647
            _elem233 = SourceItemPricing()
12648
            _elem233.read(iprot)
12649
            self.success.append(_elem233)
5944 mandeep.dh 12650
          iprot.readListEnd()
12651
        else:
12652
          iprot.skip(ftype)
12653
      elif fid == 1:
12654
        if ftype == TType.STRUCT:
12655
          self.cex = CatalogServiceException()
12656
          self.cex.read(iprot)
12657
        else:
12658
          iprot.skip(ftype)
12659
      else:
12660
        iprot.skip(ftype)
12661
      iprot.readFieldEnd()
12662
    iprot.readStructEnd()
12663
 
12664
  def write(self, oprot):
12665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12667
      return
12668
    oprot.writeStructBegin('getAllSourcePricing_result')
12669
    if self.success is not None:
12670
      oprot.writeFieldBegin('success', TType.LIST, 0)
12671
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12672
      for iter234 in self.success:
12673
        iter234.write(oprot)
5944 mandeep.dh 12674
      oprot.writeListEnd()
12675
      oprot.writeFieldEnd()
12676
    if self.cex is not None:
12677
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12678
      self.cex.write(oprot)
12679
      oprot.writeFieldEnd()
12680
    oprot.writeFieldStop()
12681
    oprot.writeStructEnd()
12682
 
12683
  def validate(self):
12684
    return
12685
 
12686
 
12687
  def __repr__(self):
12688
    L = ['%s=%r' % (key, value)
12689
      for key, value in self.__dict__.iteritems()]
12690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12691
 
12692
  def __eq__(self, other):
12693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12694
 
12695
  def __ne__(self, other):
12696
    return not (self == other)
12697
 
12698
class getItemForSource_args:
12699
  """
12700
  Attributes:
12701
   - item_id
12702
   - sourceId
12703
  """
12704
 
12705
  thrift_spec = (
12706
    None, # 0
12707
    (1, TType.I64, 'item_id', None, None, ), # 1
12708
    (2, TType.I64, 'sourceId', None, None, ), # 2
12709
  )
12710
 
12711
  def __init__(self, item_id=None, sourceId=None,):
12712
    self.item_id = item_id
12713
    self.sourceId = sourceId
12714
 
12715
  def read(self, iprot):
12716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12718
      return
12719
    iprot.readStructBegin()
12720
    while True:
12721
      (fname, ftype, fid) = iprot.readFieldBegin()
12722
      if ftype == TType.STOP:
12723
        break
12724
      if fid == 1:
12725
        if ftype == TType.I64:
12726
          self.item_id = iprot.readI64();
12727
        else:
12728
          iprot.skip(ftype)
12729
      elif fid == 2:
12730
        if ftype == TType.I64:
12731
          self.sourceId = iprot.readI64();
12732
        else:
12733
          iprot.skip(ftype)
12734
      else:
12735
        iprot.skip(ftype)
12736
      iprot.readFieldEnd()
12737
    iprot.readStructEnd()
12738
 
12739
  def write(self, oprot):
12740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12742
      return
12743
    oprot.writeStructBegin('getItemForSource_args')
12744
    if self.item_id is not None:
12745
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12746
      oprot.writeI64(self.item_id)
12747
      oprot.writeFieldEnd()
12748
    if self.sourceId is not None:
12749
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12750
      oprot.writeI64(self.sourceId)
12751
      oprot.writeFieldEnd()
12752
    oprot.writeFieldStop()
12753
    oprot.writeStructEnd()
12754
 
12755
  def validate(self):
12756
    return
12757
 
12758
 
12759
  def __repr__(self):
12760
    L = ['%s=%r' % (key, value)
12761
      for key, value in self.__dict__.iteritems()]
12762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12763
 
12764
  def __eq__(self, other):
12765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12766
 
12767
  def __ne__(self, other):
12768
    return not (self == other)
12769
 
12770
class getItemForSource_result:
12771
  """
12772
  Attributes:
12773
   - success
12774
   - cex
12775
  """
12776
 
12777
  thrift_spec = (
12778
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12779
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12780
  )
12781
 
12782
  def __init__(self, success=None, cex=None,):
12783
    self.success = success
12784
    self.cex = cex
12785
 
12786
  def read(self, iprot):
12787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12789
      return
12790
    iprot.readStructBegin()
12791
    while True:
12792
      (fname, ftype, fid) = iprot.readFieldBegin()
12793
      if ftype == TType.STOP:
12794
        break
12795
      if fid == 0:
12796
        if ftype == TType.STRUCT:
12797
          self.success = Item()
12798
          self.success.read(iprot)
12799
        else:
12800
          iprot.skip(ftype)
12801
      elif fid == 1:
12802
        if ftype == TType.STRUCT:
12803
          self.cex = CatalogServiceException()
12804
          self.cex.read(iprot)
12805
        else:
12806
          iprot.skip(ftype)
12807
      else:
12808
        iprot.skip(ftype)
12809
      iprot.readFieldEnd()
12810
    iprot.readStructEnd()
12811
 
12812
  def write(self, oprot):
12813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12815
      return
12816
    oprot.writeStructBegin('getItemForSource_result')
12817
    if self.success is not None:
12818
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12819
      self.success.write(oprot)
12820
      oprot.writeFieldEnd()
12821
    if self.cex is not None:
12822
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12823
      self.cex.write(oprot)
12824
      oprot.writeFieldEnd()
12825
    oprot.writeFieldStop()
12826
    oprot.writeStructEnd()
12827
 
12828
  def validate(self):
12829
    return
12830
 
12831
 
12832
  def __repr__(self):
12833
    L = ['%s=%r' % (key, value)
12834
      for key, value in self.__dict__.iteritems()]
12835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12836
 
12837
  def __eq__(self, other):
12838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12839
 
12840
  def __ne__(self, other):
12841
    return not (self == other)
12842
 
12843
class searchItemsInRange_args:
12844
  """
12845
  Attributes:
12846
   - searchTerms
12847
   - offset
12848
   - limit
12849
  """
12850
 
12851
  thrift_spec = (
12852
    None, # 0
12853
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
12854
    (2, TType.I64, 'offset', None, None, ), # 2
12855
    (3, TType.I64, 'limit', None, None, ), # 3
12856
  )
12857
 
12858
  def __init__(self, searchTerms=None, offset=None, limit=None,):
12859
    self.searchTerms = searchTerms
12860
    self.offset = offset
12861
    self.limit = limit
12862
 
12863
  def read(self, iprot):
12864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12866
      return
12867
    iprot.readStructBegin()
12868
    while True:
12869
      (fname, ftype, fid) = iprot.readFieldBegin()
12870
      if ftype == TType.STOP:
12871
        break
12872
      if fid == 1:
12873
        if ftype == TType.LIST:
12874
          self.searchTerms = []
6850 kshitij.so 12875
          (_etype238, _size235) = iprot.readListBegin()
12876
          for _i239 in xrange(_size235):
12877
            _elem240 = iprot.readString();
12878
            self.searchTerms.append(_elem240)
5944 mandeep.dh 12879
          iprot.readListEnd()
12880
        else:
12881
          iprot.skip(ftype)
12882
      elif fid == 2:
12883
        if ftype == TType.I64:
12884
          self.offset = iprot.readI64();
12885
        else:
12886
          iprot.skip(ftype)
12887
      elif fid == 3:
12888
        if ftype == TType.I64:
12889
          self.limit = iprot.readI64();
12890
        else:
12891
          iprot.skip(ftype)
12892
      else:
12893
        iprot.skip(ftype)
12894
      iprot.readFieldEnd()
12895
    iprot.readStructEnd()
12896
 
12897
  def write(self, oprot):
12898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12900
      return
12901
    oprot.writeStructBegin('searchItemsInRange_args')
12902
    if self.searchTerms is not None:
12903
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
12904
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 12905
      for iter241 in self.searchTerms:
12906
        oprot.writeString(iter241)
5944 mandeep.dh 12907
      oprot.writeListEnd()
12908
      oprot.writeFieldEnd()
12909
    if self.offset is not None:
12910
      oprot.writeFieldBegin('offset', TType.I64, 2)
12911
      oprot.writeI64(self.offset)
12912
      oprot.writeFieldEnd()
12913
    if self.limit is not None:
12914
      oprot.writeFieldBegin('limit', TType.I64, 3)
12915
      oprot.writeI64(self.limit)
12916
      oprot.writeFieldEnd()
12917
    oprot.writeFieldStop()
12918
    oprot.writeStructEnd()
12919
 
12920
  def validate(self):
12921
    return
12922
 
12923
 
12924
  def __repr__(self):
12925
    L = ['%s=%r' % (key, value)
12926
      for key, value in self.__dict__.iteritems()]
12927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12928
 
12929
  def __eq__(self, other):
12930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12931
 
12932
  def __ne__(self, other):
12933
    return not (self == other)
12934
 
12935
class searchItemsInRange_result:
12936
  """
12937
  Attributes:
12938
   - success
12939
  """
12940
 
12941
  thrift_spec = (
12942
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12943
  )
12944
 
12945
  def __init__(self, success=None,):
12946
    self.success = success
12947
 
12948
  def read(self, iprot):
12949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12951
      return
12952
    iprot.readStructBegin()
12953
    while True:
12954
      (fname, ftype, fid) = iprot.readFieldBegin()
12955
      if ftype == TType.STOP:
12956
        break
12957
      if fid == 0:
12958
        if ftype == TType.LIST:
12959
          self.success = []
6850 kshitij.so 12960
          (_etype245, _size242) = iprot.readListBegin()
12961
          for _i246 in xrange(_size242):
12962
            _elem247 = Item()
12963
            _elem247.read(iprot)
12964
            self.success.append(_elem247)
5944 mandeep.dh 12965
          iprot.readListEnd()
12966
        else:
12967
          iprot.skip(ftype)
12968
      else:
12969
        iprot.skip(ftype)
12970
      iprot.readFieldEnd()
12971
    iprot.readStructEnd()
12972
 
12973
  def write(self, oprot):
12974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12976
      return
12977
    oprot.writeStructBegin('searchItemsInRange_result')
12978
    if self.success is not None:
12979
      oprot.writeFieldBegin('success', TType.LIST, 0)
12980
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12981
      for iter248 in self.success:
12982
        iter248.write(oprot)
5944 mandeep.dh 12983
      oprot.writeListEnd()
12984
      oprot.writeFieldEnd()
12985
    oprot.writeFieldStop()
12986
    oprot.writeStructEnd()
12987
 
12988
  def validate(self):
12989
    return
12990
 
12991
 
12992
  def __repr__(self):
12993
    L = ['%s=%r' % (key, value)
12994
      for key, value in self.__dict__.iteritems()]
12995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12996
 
12997
  def __eq__(self, other):
12998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12999
 
13000
  def __ne__(self, other):
13001
    return not (self == other)
13002
 
13003
class getSearchResultCount_args:
13004
  """
13005
  Attributes:
13006
   - searchTerms
13007
  """
13008
 
13009
  thrift_spec = (
13010
    None, # 0
13011
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13012
  )
13013
 
13014
  def __init__(self, searchTerms=None,):
13015
    self.searchTerms = searchTerms
13016
 
13017
  def read(self, iprot):
13018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13020
      return
13021
    iprot.readStructBegin()
13022
    while True:
13023
      (fname, ftype, fid) = iprot.readFieldBegin()
13024
      if ftype == TType.STOP:
13025
        break
13026
      if fid == 1:
13027
        if ftype == TType.LIST:
13028
          self.searchTerms = []
6850 kshitij.so 13029
          (_etype252, _size249) = iprot.readListBegin()
13030
          for _i253 in xrange(_size249):
13031
            _elem254 = iprot.readString();
13032
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13033
          iprot.readListEnd()
13034
        else:
13035
          iprot.skip(ftype)
13036
      else:
13037
        iprot.skip(ftype)
13038
      iprot.readFieldEnd()
13039
    iprot.readStructEnd()
13040
 
13041
  def write(self, oprot):
13042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13044
      return
13045
    oprot.writeStructBegin('getSearchResultCount_args')
13046
    if self.searchTerms is not None:
13047
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13048
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13049
      for iter255 in self.searchTerms:
13050
        oprot.writeString(iter255)
5944 mandeep.dh 13051
      oprot.writeListEnd()
13052
      oprot.writeFieldEnd()
13053
    oprot.writeFieldStop()
13054
    oprot.writeStructEnd()
13055
 
13056
  def validate(self):
13057
    return
13058
 
13059
 
13060
  def __repr__(self):
13061
    L = ['%s=%r' % (key, value)
13062
      for key, value in self.__dict__.iteritems()]
13063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13064
 
13065
  def __eq__(self, other):
13066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13067
 
13068
  def __ne__(self, other):
13069
    return not (self == other)
13070
 
13071
class getSearchResultCount_result:
13072
  """
13073
  Attributes:
13074
   - success
13075
  """
13076
 
13077
  thrift_spec = (
13078
    (0, TType.I32, 'success', None, None, ), # 0
13079
  )
13080
 
13081
  def __init__(self, success=None,):
13082
    self.success = success
13083
 
13084
  def read(self, iprot):
13085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13087
      return
13088
    iprot.readStructBegin()
13089
    while True:
13090
      (fname, ftype, fid) = iprot.readFieldBegin()
13091
      if ftype == TType.STOP:
13092
        break
13093
      if fid == 0:
13094
        if ftype == TType.I32:
13095
          self.success = iprot.readI32();
13096
        else:
13097
          iprot.skip(ftype)
13098
      else:
13099
        iprot.skip(ftype)
13100
      iprot.readFieldEnd()
13101
    iprot.readStructEnd()
13102
 
13103
  def write(self, oprot):
13104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13106
      return
13107
    oprot.writeStructBegin('getSearchResultCount_result')
13108
    if self.success is not None:
13109
      oprot.writeFieldBegin('success', TType.I32, 0)
13110
      oprot.writeI32(self.success)
13111
      oprot.writeFieldEnd()
13112
    oprot.writeFieldStop()
13113
    oprot.writeStructEnd()
13114
 
13115
  def validate(self):
13116
    return
13117
 
13118
 
13119
  def __repr__(self):
13120
    L = ['%s=%r' % (key, value)
13121
      for key, value in self.__dict__.iteritems()]
13122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13123
 
13124
  def __eq__(self, other):
13125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13126
 
13127
  def __ne__(self, other):
13128
    return not (self == other)
13129
 
13130
class getProductNotifications_args:
13131
  """
13132
  Attributes:
13133
   - startDateTime
13134
  """
13135
 
13136
  thrift_spec = (
13137
    None, # 0
13138
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13139
  )
13140
 
13141
  def __init__(self, startDateTime=None,):
13142
    self.startDateTime = startDateTime
13143
 
13144
  def read(self, iprot):
13145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13147
      return
13148
    iprot.readStructBegin()
13149
    while True:
13150
      (fname, ftype, fid) = iprot.readFieldBegin()
13151
      if ftype == TType.STOP:
13152
        break
13153
      if fid == 1:
13154
        if ftype == TType.I64:
13155
          self.startDateTime = iprot.readI64();
13156
        else:
13157
          iprot.skip(ftype)
13158
      else:
13159
        iprot.skip(ftype)
13160
      iprot.readFieldEnd()
13161
    iprot.readStructEnd()
13162
 
13163
  def write(self, oprot):
13164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13166
      return
13167
    oprot.writeStructBegin('getProductNotifications_args')
13168
    if self.startDateTime is not None:
13169
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13170
      oprot.writeI64(self.startDateTime)
13171
      oprot.writeFieldEnd()
13172
    oprot.writeFieldStop()
13173
    oprot.writeStructEnd()
13174
 
13175
  def validate(self):
13176
    return
13177
 
13178
 
13179
  def __repr__(self):
13180
    L = ['%s=%r' % (key, value)
13181
      for key, value in self.__dict__.iteritems()]
13182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13183
 
13184
  def __eq__(self, other):
13185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13186
 
13187
  def __ne__(self, other):
13188
    return not (self == other)
13189
 
13190
class getProductNotifications_result:
13191
  """
13192
  Attributes:
13193
   - success
13194
  """
13195
 
13196
  thrift_spec = (
13197
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13198
  )
13199
 
13200
  def __init__(self, success=None,):
13201
    self.success = success
13202
 
13203
  def read(self, iprot):
13204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13206
      return
13207
    iprot.readStructBegin()
13208
    while True:
13209
      (fname, ftype, fid) = iprot.readFieldBegin()
13210
      if ftype == TType.STOP:
13211
        break
13212
      if fid == 0:
13213
        if ftype == TType.LIST:
13214
          self.success = []
6850 kshitij.so 13215
          (_etype259, _size256) = iprot.readListBegin()
13216
          for _i260 in xrange(_size256):
13217
            _elem261 = ProductNotificationRequest()
13218
            _elem261.read(iprot)
13219
            self.success.append(_elem261)
5944 mandeep.dh 13220
          iprot.readListEnd()
13221
        else:
13222
          iprot.skip(ftype)
13223
      else:
13224
        iprot.skip(ftype)
13225
      iprot.readFieldEnd()
13226
    iprot.readStructEnd()
13227
 
13228
  def write(self, oprot):
13229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13231
      return
13232
    oprot.writeStructBegin('getProductNotifications_result')
13233
    if self.success is not None:
13234
      oprot.writeFieldBegin('success', TType.LIST, 0)
13235
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13236
      for iter262 in self.success:
13237
        iter262.write(oprot)
5944 mandeep.dh 13238
      oprot.writeListEnd()
13239
      oprot.writeFieldEnd()
13240
    oprot.writeFieldStop()
13241
    oprot.writeStructEnd()
13242
 
13243
  def validate(self):
13244
    return
13245
 
13246
 
13247
  def __repr__(self):
13248
    L = ['%s=%r' % (key, value)
13249
      for key, value in self.__dict__.iteritems()]
13250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13251
 
13252
  def __eq__(self, other):
13253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13254
 
13255
  def __ne__(self, other):
13256
    return not (self == other)
13257
 
13258
class getProductNotificationRequestCount_args:
13259
  """
13260
  Attributes:
13261
   - startDateTime
13262
  """
13263
 
13264
  thrift_spec = (
13265
    None, # 0
13266
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13267
  )
13268
 
13269
  def __init__(self, startDateTime=None,):
13270
    self.startDateTime = startDateTime
13271
 
13272
  def read(self, iprot):
13273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13275
      return
13276
    iprot.readStructBegin()
13277
    while True:
13278
      (fname, ftype, fid) = iprot.readFieldBegin()
13279
      if ftype == TType.STOP:
13280
        break
13281
      if fid == 1:
13282
        if ftype == TType.I64:
13283
          self.startDateTime = iprot.readI64();
13284
        else:
13285
          iprot.skip(ftype)
13286
      else:
13287
        iprot.skip(ftype)
13288
      iprot.readFieldEnd()
13289
    iprot.readStructEnd()
13290
 
13291
  def write(self, oprot):
13292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13294
      return
13295
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13296
    if self.startDateTime is not None:
13297
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13298
      oprot.writeI64(self.startDateTime)
13299
      oprot.writeFieldEnd()
13300
    oprot.writeFieldStop()
13301
    oprot.writeStructEnd()
13302
 
13303
  def validate(self):
13304
    return
13305
 
13306
 
13307
  def __repr__(self):
13308
    L = ['%s=%r' % (key, value)
13309
      for key, value in self.__dict__.iteritems()]
13310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13311
 
13312
  def __eq__(self, other):
13313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13314
 
13315
  def __ne__(self, other):
13316
    return not (self == other)
13317
 
13318
class getProductNotificationRequestCount_result:
13319
  """
13320
  Attributes:
13321
   - success
13322
  """
13323
 
13324
  thrift_spec = (
13325
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13326
  )
13327
 
13328
  def __init__(self, success=None,):
13329
    self.success = success
13330
 
13331
  def read(self, iprot):
13332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13334
      return
13335
    iprot.readStructBegin()
13336
    while True:
13337
      (fname, ftype, fid) = iprot.readFieldBegin()
13338
      if ftype == TType.STOP:
13339
        break
13340
      if fid == 0:
13341
        if ftype == TType.LIST:
13342
          self.success = []
6850 kshitij.so 13343
          (_etype266, _size263) = iprot.readListBegin()
13344
          for _i267 in xrange(_size263):
13345
            _elem268 = ProductNotificationRequestCount()
13346
            _elem268.read(iprot)
13347
            self.success.append(_elem268)
5944 mandeep.dh 13348
          iprot.readListEnd()
13349
        else:
13350
          iprot.skip(ftype)
13351
      else:
13352
        iprot.skip(ftype)
13353
      iprot.readFieldEnd()
13354
    iprot.readStructEnd()
13355
 
13356
  def write(self, oprot):
13357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13359
      return
13360
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13361
    if self.success is not None:
13362
      oprot.writeFieldBegin('success', TType.LIST, 0)
13363
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13364
      for iter269 in self.success:
13365
        iter269.write(oprot)
5944 mandeep.dh 13366
      oprot.writeListEnd()
13367
      oprot.writeFieldEnd()
13368
    oprot.writeFieldStop()
13369
    oprot.writeStructEnd()
13370
 
13371
  def validate(self):
13372
    return
13373
 
13374
 
13375
  def __repr__(self):
13376
    L = ['%s=%r' % (key, value)
13377
      for key, value in self.__dict__.iteritems()]
13378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13379
 
13380
  def __eq__(self, other):
13381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13382
 
13383
  def __ne__(self, other):
13384
    return not (self == other)
13385
 
13386
class addAuthorizationLog_args:
13387
  """
13388
  Attributes:
13389
   - itemId
13390
   - username
13391
   - reason
13392
  """
13393
 
13394
  thrift_spec = (
13395
    None, # 0
13396
    (1, TType.I64, 'itemId', None, None, ), # 1
13397
    (2, TType.STRING, 'username', None, None, ), # 2
13398
    (3, TType.STRING, 'reason', None, None, ), # 3
13399
  )
13400
 
13401
  def __init__(self, itemId=None, username=None, reason=None,):
13402
    self.itemId = itemId
13403
    self.username = username
13404
    self.reason = reason
13405
 
13406
  def read(self, iprot):
13407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13409
      return
13410
    iprot.readStructBegin()
13411
    while True:
13412
      (fname, ftype, fid) = iprot.readFieldBegin()
13413
      if ftype == TType.STOP:
13414
        break
13415
      if fid == 1:
13416
        if ftype == TType.I64:
13417
          self.itemId = iprot.readI64();
13418
        else:
13419
          iprot.skip(ftype)
13420
      elif fid == 2:
13421
        if ftype == TType.STRING:
13422
          self.username = iprot.readString();
13423
        else:
13424
          iprot.skip(ftype)
13425
      elif fid == 3:
13426
        if ftype == TType.STRING:
13427
          self.reason = iprot.readString();
13428
        else:
13429
          iprot.skip(ftype)
13430
      else:
13431
        iprot.skip(ftype)
13432
      iprot.readFieldEnd()
13433
    iprot.readStructEnd()
13434
 
13435
  def write(self, oprot):
13436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13438
      return
13439
    oprot.writeStructBegin('addAuthorizationLog_args')
13440
    if self.itemId is not None:
13441
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13442
      oprot.writeI64(self.itemId)
13443
      oprot.writeFieldEnd()
13444
    if self.username is not None:
13445
      oprot.writeFieldBegin('username', TType.STRING, 2)
13446
      oprot.writeString(self.username)
13447
      oprot.writeFieldEnd()
13448
    if self.reason is not None:
13449
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13450
      oprot.writeString(self.reason)
13451
      oprot.writeFieldEnd()
13452
    oprot.writeFieldStop()
13453
    oprot.writeStructEnd()
13454
 
13455
  def validate(self):
13456
    return
13457
 
13458
 
13459
  def __repr__(self):
13460
    L = ['%s=%r' % (key, value)
13461
      for key, value in self.__dict__.iteritems()]
13462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13463
 
13464
  def __eq__(self, other):
13465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13466
 
13467
  def __ne__(self, other):
13468
    return not (self == other)
13469
 
13470
class addAuthorizationLog_result:
13471
  """
13472
  Attributes:
13473
   - success
13474
   - cex
13475
  """
13476
 
13477
  thrift_spec = (
13478
    (0, TType.BOOL, 'success', None, None, ), # 0
13479
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13480
  )
13481
 
13482
  def __init__(self, success=None, cex=None,):
13483
    self.success = success
13484
    self.cex = cex
13485
 
13486
  def read(self, iprot):
13487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13489
      return
13490
    iprot.readStructBegin()
13491
    while True:
13492
      (fname, ftype, fid) = iprot.readFieldBegin()
13493
      if ftype == TType.STOP:
13494
        break
13495
      if fid == 0:
13496
        if ftype == TType.BOOL:
13497
          self.success = iprot.readBool();
13498
        else:
13499
          iprot.skip(ftype)
13500
      elif fid == 1:
13501
        if ftype == TType.STRUCT:
13502
          self.cex = CatalogServiceException()
13503
          self.cex.read(iprot)
13504
        else:
13505
          iprot.skip(ftype)
13506
      else:
13507
        iprot.skip(ftype)
13508
      iprot.readFieldEnd()
13509
    iprot.readStructEnd()
13510
 
13511
  def write(self, oprot):
13512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13514
      return
13515
    oprot.writeStructBegin('addAuthorizationLog_result')
13516
    if self.success is not None:
13517
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13518
      oprot.writeBool(self.success)
13519
      oprot.writeFieldEnd()
13520
    if self.cex is not None:
13521
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13522
      self.cex.write(oprot)
13523
      oprot.writeFieldEnd()
13524
    oprot.writeFieldStop()
13525
    oprot.writeStructEnd()
13526
 
13527
  def validate(self):
13528
    return
13529
 
13530
 
13531
  def __repr__(self):
13532
    L = ['%s=%r' % (key, value)
13533
      for key, value in self.__dict__.iteritems()]
13534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13535
 
13536
  def __eq__(self, other):
13537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13538
 
13539
  def __ne__(self, other):
13540
    return not (self == other)
13541
 
13542
class getClearanceSaleCatalogIds_args:
13543
 
13544
  thrift_spec = (
13545
  )
13546
 
13547
  def read(self, iprot):
13548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13550
      return
13551
    iprot.readStructBegin()
13552
    while True:
13553
      (fname, ftype, fid) = iprot.readFieldBegin()
13554
      if ftype == TType.STOP:
13555
        break
13556
      else:
13557
        iprot.skip(ftype)
13558
      iprot.readFieldEnd()
13559
    iprot.readStructEnd()
13560
 
13561
  def write(self, oprot):
13562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13564
      return
13565
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
13566
    oprot.writeFieldStop()
13567
    oprot.writeStructEnd()
13568
 
13569
  def validate(self):
13570
    return
13571
 
13572
 
13573
  def __repr__(self):
13574
    L = ['%s=%r' % (key, value)
13575
      for key, value in self.__dict__.iteritems()]
13576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13577
 
13578
  def __eq__(self, other):
13579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13580
 
13581
  def __ne__(self, other):
13582
    return not (self == other)
13583
 
13584
class getClearanceSaleCatalogIds_result:
13585
  """
13586
  Attributes:
13587
   - success
13588
   - cex
13589
  """
13590
 
13591
  thrift_spec = (
13592
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13593
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13594
  )
13595
 
13596
  def __init__(self, success=None, cex=None,):
13597
    self.success = success
13598
    self.cex = cex
13599
 
13600
  def read(self, iprot):
13601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13603
      return
13604
    iprot.readStructBegin()
13605
    while True:
13606
      (fname, ftype, fid) = iprot.readFieldBegin()
13607
      if ftype == TType.STOP:
13608
        break
13609
      if fid == 0:
13610
        if ftype == TType.LIST:
13611
          self.success = []
6850 kshitij.so 13612
          (_etype273, _size270) = iprot.readListBegin()
13613
          for _i274 in xrange(_size270):
13614
            _elem275 = iprot.readI64();
13615
            self.success.append(_elem275)
5944 mandeep.dh 13616
          iprot.readListEnd()
13617
        else:
13618
          iprot.skip(ftype)
13619
      elif fid == 1:
13620
        if ftype == TType.STRUCT:
13621
          self.cex = CatalogServiceException()
13622
          self.cex.read(iprot)
13623
        else:
13624
          iprot.skip(ftype)
13625
      else:
13626
        iprot.skip(ftype)
13627
      iprot.readFieldEnd()
13628
    iprot.readStructEnd()
13629
 
13630
  def write(self, oprot):
13631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13633
      return
13634
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
13635
    if self.success is not None:
13636
      oprot.writeFieldBegin('success', TType.LIST, 0)
13637
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 13638
      for iter276 in self.success:
13639
        oprot.writeI64(iter276)
5944 mandeep.dh 13640
      oprot.writeListEnd()
13641
      oprot.writeFieldEnd()
13642
    if self.cex is not None:
13643
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13644
      self.cex.write(oprot)
13645
      oprot.writeFieldEnd()
13646
    oprot.writeFieldStop()
13647
    oprot.writeStructEnd()
13648
 
13649
  def validate(self):
13650
    return
13651
 
13652
 
13653
  def __repr__(self):
13654
    L = ['%s=%r' % (key, value)
13655
      for key, value in self.__dict__.iteritems()]
13656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13657
 
13658
  def __eq__(self, other):
13659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13660
 
13661
  def __ne__(self, other):
13662
    return not (self == other)
13663
 
13664
class addupdateVoucherForItem_args:
13665
  """
13666
  Attributes:
13667
   - catalog_item_id
13668
   - voucherType
13669
   - voucherAmount
13670
  """
13671
 
13672
  thrift_spec = (
13673
    None, # 0
13674
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13675
    (2, TType.I64, 'voucherType', None, None, ), # 2
13676
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13677
  )
13678
 
13679
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13680
    self.catalog_item_id = catalog_item_id
13681
    self.voucherType = voucherType
13682
    self.voucherAmount = voucherAmount
13683
 
13684
  def read(self, iprot):
13685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13687
      return
13688
    iprot.readStructBegin()
13689
    while True:
13690
      (fname, ftype, fid) = iprot.readFieldBegin()
13691
      if ftype == TType.STOP:
13692
        break
13693
      if fid == 1:
13694
        if ftype == TType.I64:
13695
          self.catalog_item_id = iprot.readI64();
13696
        else:
13697
          iprot.skip(ftype)
13698
      elif fid == 2:
13699
        if ftype == TType.I64:
13700
          self.voucherType = iprot.readI64();
13701
        else:
13702
          iprot.skip(ftype)
13703
      elif fid == 3:
13704
        if ftype == TType.I64:
13705
          self.voucherAmount = iprot.readI64();
13706
        else:
13707
          iprot.skip(ftype)
13708
      else:
13709
        iprot.skip(ftype)
13710
      iprot.readFieldEnd()
13711
    iprot.readStructEnd()
13712
 
13713
  def write(self, oprot):
13714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13716
      return
13717
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13718
    if self.catalog_item_id is not None:
13719
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13720
      oprot.writeI64(self.catalog_item_id)
13721
      oprot.writeFieldEnd()
13722
    if self.voucherType is not None:
13723
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13724
      oprot.writeI64(self.voucherType)
13725
      oprot.writeFieldEnd()
13726
    if self.voucherAmount is not None:
13727
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13728
      oprot.writeI64(self.voucherAmount)
13729
      oprot.writeFieldEnd()
13730
    oprot.writeFieldStop()
13731
    oprot.writeStructEnd()
13732
 
13733
  def validate(self):
13734
    return
13735
 
13736
 
13737
  def __repr__(self):
13738
    L = ['%s=%r' % (key, value)
13739
      for key, value in self.__dict__.iteritems()]
13740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13741
 
13742
  def __eq__(self, other):
13743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13744
 
13745
  def __ne__(self, other):
13746
    return not (self == other)
13747
 
13748
class addupdateVoucherForItem_result:
13749
  """
13750
  Attributes:
13751
   - success
13752
   - cex
13753
  """
13754
 
13755
  thrift_spec = (
13756
    (0, TType.BOOL, 'success', None, None, ), # 0
13757
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13758
  )
13759
 
13760
  def __init__(self, success=None, cex=None,):
13761
    self.success = success
13762
    self.cex = cex
13763
 
13764
  def read(self, iprot):
13765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13767
      return
13768
    iprot.readStructBegin()
13769
    while True:
13770
      (fname, ftype, fid) = iprot.readFieldBegin()
13771
      if ftype == TType.STOP:
13772
        break
13773
      if fid == 0:
13774
        if ftype == TType.BOOL:
13775
          self.success = iprot.readBool();
13776
        else:
13777
          iprot.skip(ftype)
13778
      elif fid == 1:
13779
        if ftype == TType.STRUCT:
13780
          self.cex = CatalogServiceException()
13781
          self.cex.read(iprot)
13782
        else:
13783
          iprot.skip(ftype)
13784
      else:
13785
        iprot.skip(ftype)
13786
      iprot.readFieldEnd()
13787
    iprot.readStructEnd()
13788
 
13789
  def write(self, oprot):
13790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13792
      return
13793
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13794
    if self.success is not None:
13795
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13796
      oprot.writeBool(self.success)
13797
      oprot.writeFieldEnd()
13798
    if self.cex is not None:
13799
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13800
      self.cex.write(oprot)
13801
      oprot.writeFieldEnd()
13802
    oprot.writeFieldStop()
13803
    oprot.writeStructEnd()
13804
 
13805
  def validate(self):
13806
    return
13807
 
13808
 
13809
  def __repr__(self):
13810
    L = ['%s=%r' % (key, value)
13811
      for key, value in self.__dict__.iteritems()]
13812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13813
 
13814
  def __eq__(self, other):
13815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13816
 
13817
  def __ne__(self, other):
13818
    return not (self == other)
13819
 
13820
class deleteVoucherForItem_args:
13821
  """
13822
  Attributes:
13823
   - catalog_item_id
13824
   - voucherType
13825
  """
13826
 
13827
  thrift_spec = (
13828
    None, # 0
13829
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13830
    (2, TType.I64, 'voucherType', None, None, ), # 2
13831
  )
13832
 
13833
  def __init__(self, catalog_item_id=None, voucherType=None,):
13834
    self.catalog_item_id = catalog_item_id
13835
    self.voucherType = voucherType
13836
 
13837
  def read(self, iprot):
13838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13840
      return
13841
    iprot.readStructBegin()
13842
    while True:
13843
      (fname, ftype, fid) = iprot.readFieldBegin()
13844
      if ftype == TType.STOP:
13845
        break
13846
      if fid == 1:
13847
        if ftype == TType.I64:
13848
          self.catalog_item_id = iprot.readI64();
13849
        else:
13850
          iprot.skip(ftype)
13851
      elif fid == 2:
13852
        if ftype == TType.I64:
13853
          self.voucherType = iprot.readI64();
13854
        else:
13855
          iprot.skip(ftype)
13856
      else:
13857
        iprot.skip(ftype)
13858
      iprot.readFieldEnd()
13859
    iprot.readStructEnd()
13860
 
13861
  def write(self, oprot):
13862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13864
      return
13865
    oprot.writeStructBegin('deleteVoucherForItem_args')
13866
    if self.catalog_item_id is not None:
13867
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13868
      oprot.writeI64(self.catalog_item_id)
13869
      oprot.writeFieldEnd()
13870
    if self.voucherType is not None:
13871
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13872
      oprot.writeI64(self.voucherType)
13873
      oprot.writeFieldEnd()
13874
    oprot.writeFieldStop()
13875
    oprot.writeStructEnd()
13876
 
13877
  def validate(self):
13878
    return
13879
 
13880
 
13881
  def __repr__(self):
13882
    L = ['%s=%r' % (key, value)
13883
      for key, value in self.__dict__.iteritems()]
13884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13885
 
13886
  def __eq__(self, other):
13887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13888
 
13889
  def __ne__(self, other):
13890
    return not (self == other)
13891
 
13892
class deleteVoucherForItem_result:
13893
  """
13894
  Attributes:
13895
   - success
13896
   - cex
13897
  """
13898
 
13899
  thrift_spec = (
13900
    (0, TType.BOOL, 'success', None, None, ), # 0
13901
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13902
  )
13903
 
13904
  def __init__(self, success=None, cex=None,):
13905
    self.success = success
13906
    self.cex = cex
13907
 
13908
  def read(self, iprot):
13909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13911
      return
13912
    iprot.readStructBegin()
13913
    while True:
13914
      (fname, ftype, fid) = iprot.readFieldBegin()
13915
      if ftype == TType.STOP:
13916
        break
13917
      if fid == 0:
13918
        if ftype == TType.BOOL:
13919
          self.success = iprot.readBool();
13920
        else:
13921
          iprot.skip(ftype)
13922
      elif fid == 1:
13923
        if ftype == TType.STRUCT:
13924
          self.cex = CatalogServiceException()
13925
          self.cex.read(iprot)
13926
        else:
13927
          iprot.skip(ftype)
13928
      else:
13929
        iprot.skip(ftype)
13930
      iprot.readFieldEnd()
13931
    iprot.readStructEnd()
13932
 
13933
  def write(self, oprot):
13934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13936
      return
13937
    oprot.writeStructBegin('deleteVoucherForItem_result')
13938
    if self.success is not None:
13939
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13940
      oprot.writeBool(self.success)
13941
      oprot.writeFieldEnd()
13942
    if self.cex is not None:
13943
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13944
      self.cex.write(oprot)
13945
      oprot.writeFieldEnd()
13946
    oprot.writeFieldStop()
13947
    oprot.writeStructEnd()
13948
 
13949
  def validate(self):
13950
    return
13951
 
13952
 
13953
  def __repr__(self):
13954
    L = ['%s=%r' % (key, value)
13955
      for key, value in self.__dict__.iteritems()]
13956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13957
 
13958
  def __eq__(self, other):
13959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13960
 
13961
  def __ne__(self, other):
13962
    return not (self == other)
13963
 
13964
class getVoucherAmount_args:
13965
  """
13966
  Attributes:
13967
   - itemId
13968
   - voucherType
13969
  """
13970
 
13971
  thrift_spec = (
13972
    None, # 0
13973
    (1, TType.I64, 'itemId', None, None, ), # 1
13974
    (2, TType.I64, 'voucherType', None, None, ), # 2
13975
  )
13976
 
13977
  def __init__(self, itemId=None, voucherType=None,):
13978
    self.itemId = itemId
13979
    self.voucherType = voucherType
13980
 
13981
  def read(self, iprot):
13982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13984
      return
13985
    iprot.readStructBegin()
13986
    while True:
13987
      (fname, ftype, fid) = iprot.readFieldBegin()
13988
      if ftype == TType.STOP:
13989
        break
13990
      if fid == 1:
13991
        if ftype == TType.I64:
13992
          self.itemId = iprot.readI64();
13993
        else:
13994
          iprot.skip(ftype)
13995
      elif fid == 2:
13996
        if ftype == TType.I64:
13997
          self.voucherType = iprot.readI64();
13998
        else:
13999
          iprot.skip(ftype)
14000
      else:
14001
        iprot.skip(ftype)
14002
      iprot.readFieldEnd()
14003
    iprot.readStructEnd()
14004
 
14005
  def write(self, oprot):
14006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14008
      return
14009
    oprot.writeStructBegin('getVoucherAmount_args')
14010
    if self.itemId is not None:
14011
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14012
      oprot.writeI64(self.itemId)
14013
      oprot.writeFieldEnd()
14014
    if self.voucherType is not None:
14015
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14016
      oprot.writeI64(self.voucherType)
14017
      oprot.writeFieldEnd()
14018
    oprot.writeFieldStop()
14019
    oprot.writeStructEnd()
14020
 
14021
  def validate(self):
14022
    return
14023
 
14024
 
14025
  def __repr__(self):
14026
    L = ['%s=%r' % (key, value)
14027
      for key, value in self.__dict__.iteritems()]
14028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14029
 
14030
  def __eq__(self, other):
14031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14032
 
14033
  def __ne__(self, other):
14034
    return not (self == other)
14035
 
14036
class getVoucherAmount_result:
14037
  """
14038
  Attributes:
14039
   - success
14040
  """
14041
 
14042
  thrift_spec = (
14043
    (0, TType.I64, 'success', None, None, ), # 0
14044
  )
14045
 
14046
  def __init__(self, success=None,):
14047
    self.success = success
14048
 
14049
  def read(self, iprot):
14050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14052
      return
14053
    iprot.readStructBegin()
14054
    while True:
14055
      (fname, ftype, fid) = iprot.readFieldBegin()
14056
      if ftype == TType.STOP:
14057
        break
14058
      if fid == 0:
14059
        if ftype == TType.I64:
14060
          self.success = iprot.readI64();
14061
        else:
14062
          iprot.skip(ftype)
14063
      else:
14064
        iprot.skip(ftype)
14065
      iprot.readFieldEnd()
14066
    iprot.readStructEnd()
14067
 
14068
  def write(self, oprot):
14069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14071
      return
14072
    oprot.writeStructBegin('getVoucherAmount_result')
14073
    if self.success is not None:
14074
      oprot.writeFieldBegin('success', TType.I64, 0)
14075
      oprot.writeI64(self.success)
14076
      oprot.writeFieldEnd()
14077
    oprot.writeFieldStop()
14078
    oprot.writeStructEnd()
14079
 
14080
  def validate(self):
14081
    return
14082
 
14083
 
14084
  def __repr__(self):
14085
    L = ['%s=%r' % (key, value)
14086
      for key, value in self.__dict__.iteritems()]
14087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14088
 
14089
  def __eq__(self, other):
14090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14091
 
14092
  def __ne__(self, other):
14093
    return not (self == other)
14094
 
14095
class getAllItemVouchers_args:
14096
  """
14097
  Attributes:
14098
   - itemId
14099
  """
14100
 
14101
  thrift_spec = (
14102
    None, # 0
14103
    (1, TType.I64, 'itemId', None, None, ), # 1
14104
  )
14105
 
14106
  def __init__(self, itemId=None,):
14107
    self.itemId = itemId
14108
 
14109
  def read(self, iprot):
14110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14112
      return
14113
    iprot.readStructBegin()
14114
    while True:
14115
      (fname, ftype, fid) = iprot.readFieldBegin()
14116
      if ftype == TType.STOP:
14117
        break
14118
      if fid == 1:
14119
        if ftype == TType.I64:
14120
          self.itemId = iprot.readI64();
14121
        else:
14122
          iprot.skip(ftype)
14123
      else:
14124
        iprot.skip(ftype)
14125
      iprot.readFieldEnd()
14126
    iprot.readStructEnd()
14127
 
14128
  def write(self, oprot):
14129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14131
      return
14132
    oprot.writeStructBegin('getAllItemVouchers_args')
14133
    if self.itemId is not None:
14134
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14135
      oprot.writeI64(self.itemId)
14136
      oprot.writeFieldEnd()
14137
    oprot.writeFieldStop()
14138
    oprot.writeStructEnd()
14139
 
14140
  def validate(self):
14141
    return
14142
 
14143
 
14144
  def __repr__(self):
14145
    L = ['%s=%r' % (key, value)
14146
      for key, value in self.__dict__.iteritems()]
14147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14148
 
14149
  def __eq__(self, other):
14150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14151
 
14152
  def __ne__(self, other):
14153
    return not (self == other)
14154
 
14155
class getAllItemVouchers_result:
14156
  """
14157
  Attributes:
14158
   - success
14159
  """
14160
 
14161
  thrift_spec = (
14162
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14163
  )
14164
 
14165
  def __init__(self, success=None,):
14166
    self.success = success
14167
 
14168
  def read(self, iprot):
14169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14171
      return
14172
    iprot.readStructBegin()
14173
    while True:
14174
      (fname, ftype, fid) = iprot.readFieldBegin()
14175
      if ftype == TType.STOP:
14176
        break
14177
      if fid == 0:
14178
        if ftype == TType.LIST:
14179
          self.success = []
6850 kshitij.so 14180
          (_etype280, _size277) = iprot.readListBegin()
14181
          for _i281 in xrange(_size277):
14182
            _elem282 = VoucherItemMapping()
14183
            _elem282.read(iprot)
14184
            self.success.append(_elem282)
5944 mandeep.dh 14185
          iprot.readListEnd()
14186
        else:
14187
          iprot.skip(ftype)
14188
      else:
14189
        iprot.skip(ftype)
14190
      iprot.readFieldEnd()
14191
    iprot.readStructEnd()
14192
 
14193
  def write(self, oprot):
14194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14196
      return
14197
    oprot.writeStructBegin('getAllItemVouchers_result')
14198
    if self.success is not None:
14199
      oprot.writeFieldBegin('success', TType.LIST, 0)
14200
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14201
      for iter283 in self.success:
14202
        iter283.write(oprot)
5944 mandeep.dh 14203
      oprot.writeListEnd()
14204
      oprot.writeFieldEnd()
14205
    oprot.writeFieldStop()
14206
    oprot.writeStructEnd()
14207
 
14208
  def validate(self):
14209
    return
14210
 
14211
 
14212
  def __repr__(self):
14213
    L = ['%s=%r' % (key, value)
14214
      for key, value in self.__dict__.iteritems()]
14215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14216
 
14217
  def __eq__(self, other):
14218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14219
 
14220
  def __ne__(self, other):
14221
    return not (self == other)
14222
 
14223
class isValidCatalogItemId_args:
14224
  """
14225
  Attributes:
14226
   - catalog_item_id
14227
  """
14228
 
14229
  thrift_spec = (
14230
    None, # 0
14231
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14232
  )
14233
 
14234
  def __init__(self, catalog_item_id=None,):
14235
    self.catalog_item_id = catalog_item_id
14236
 
14237
  def read(self, iprot):
14238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14240
      return
14241
    iprot.readStructBegin()
14242
    while True:
14243
      (fname, ftype, fid) = iprot.readFieldBegin()
14244
      if ftype == TType.STOP:
14245
        break
14246
      if fid == 1:
14247
        if ftype == TType.I64:
14248
          self.catalog_item_id = iprot.readI64();
14249
        else:
14250
          iprot.skip(ftype)
14251
      else:
14252
        iprot.skip(ftype)
14253
      iprot.readFieldEnd()
14254
    iprot.readStructEnd()
14255
 
14256
  def write(self, oprot):
14257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14259
      return
14260
    oprot.writeStructBegin('isValidCatalogItemId_args')
14261
    if self.catalog_item_id is not None:
14262
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14263
      oprot.writeI64(self.catalog_item_id)
14264
      oprot.writeFieldEnd()
14265
    oprot.writeFieldStop()
14266
    oprot.writeStructEnd()
14267
 
14268
  def validate(self):
14269
    return
14270
 
14271
 
14272
  def __repr__(self):
14273
    L = ['%s=%r' % (key, value)
14274
      for key, value in self.__dict__.iteritems()]
14275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14276
 
14277
  def __eq__(self, other):
14278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14279
 
14280
  def __ne__(self, other):
14281
    return not (self == other)
14282
 
14283
class isValidCatalogItemId_result:
14284
  """
14285
  Attributes:
14286
   - success
14287
  """
14288
 
14289
  thrift_spec = (
14290
    (0, TType.BOOL, 'success', None, None, ), # 0
14291
  )
14292
 
14293
  def __init__(self, success=None,):
14294
    self.success = success
14295
 
14296
  def read(self, iprot):
14297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14299
      return
14300
    iprot.readStructBegin()
14301
    while True:
14302
      (fname, ftype, fid) = iprot.readFieldBegin()
14303
      if ftype == TType.STOP:
14304
        break
14305
      if fid == 0:
14306
        if ftype == TType.BOOL:
14307
          self.success = iprot.readBool();
14308
        else:
14309
          iprot.skip(ftype)
14310
      else:
14311
        iprot.skip(ftype)
14312
      iprot.readFieldEnd()
14313
    iprot.readStructEnd()
14314
 
14315
  def write(self, oprot):
14316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14318
      return
14319
    oprot.writeStructBegin('isValidCatalogItemId_result')
14320
    if self.success is not None:
14321
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14322
      oprot.writeBool(self.success)
14323
      oprot.writeFieldEnd()
14324
    oprot.writeFieldStop()
14325
    oprot.writeStructEnd()
14326
 
14327
  def validate(self):
14328
    return
14329
 
14330
 
14331
  def __repr__(self):
14332
    L = ['%s=%r' % (key, value)
14333
      for key, value in self.__dict__.iteritems()]
14334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14335
 
14336
  def __eq__(self, other):
14337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14338
 
14339
  def __ne__(self, other):
14340
    return not (self == other)
6039 amit.gupta 14341
 
14342
class getVatPercentageForItem_args:
14343
  """
14344
  Attributes:
14345
   - itemId
14346
   - price
14347
  """
14348
 
14349
  thrift_spec = (
14350
    None, # 0
14351
    (1, TType.I64, 'itemId', None, None, ), # 1
14352
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14353
  )
14354
 
14355
  def __init__(self, itemId=None, price=None,):
14356
    self.itemId = itemId
14357
    self.price = price
14358
 
14359
  def read(self, iprot):
14360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14362
      return
14363
    iprot.readStructBegin()
14364
    while True:
14365
      (fname, ftype, fid) = iprot.readFieldBegin()
14366
      if ftype == TType.STOP:
14367
        break
14368
      if fid == 1:
14369
        if ftype == TType.I64:
14370
          self.itemId = iprot.readI64();
14371
        else:
14372
          iprot.skip(ftype)
14373
      elif fid == 2:
14374
        if ftype == TType.DOUBLE:
14375
          self.price = iprot.readDouble();
14376
        else:
14377
          iprot.skip(ftype)
14378
      else:
14379
        iprot.skip(ftype)
14380
      iprot.readFieldEnd()
14381
    iprot.readStructEnd()
14382
 
14383
  def write(self, oprot):
14384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14386
      return
14387
    oprot.writeStructBegin('getVatPercentageForItem_args')
14388
    if self.itemId is not None:
14389
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14390
      oprot.writeI64(self.itemId)
14391
      oprot.writeFieldEnd()
14392
    if self.price is not None:
14393
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14394
      oprot.writeDouble(self.price)
14395
      oprot.writeFieldEnd()
14396
    oprot.writeFieldStop()
14397
    oprot.writeStructEnd()
14398
 
14399
  def validate(self):
14400
    return
14401
 
14402
 
14403
  def __repr__(self):
14404
    L = ['%s=%r' % (key, value)
14405
      for key, value in self.__dict__.iteritems()]
14406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14407
 
14408
  def __eq__(self, other):
14409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14410
 
14411
  def __ne__(self, other):
14412
    return not (self == other)
14413
 
14414
class getVatPercentageForItem_result:
14415
  """
14416
  Attributes:
14417
   - success
14418
  """
14419
 
14420
  thrift_spec = (
14421
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14422
  )
14423
 
14424
  def __init__(self, success=None,):
14425
    self.success = success
14426
 
14427
  def read(self, iprot):
14428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14430
      return
14431
    iprot.readStructBegin()
14432
    while True:
14433
      (fname, ftype, fid) = iprot.readFieldBegin()
14434
      if ftype == TType.STOP:
14435
        break
14436
      if fid == 0:
14437
        if ftype == TType.DOUBLE:
14438
          self.success = iprot.readDouble();
14439
        else:
14440
          iprot.skip(ftype)
14441
      else:
14442
        iprot.skip(ftype)
14443
      iprot.readFieldEnd()
14444
    iprot.readStructEnd()
14445
 
14446
  def write(self, oprot):
14447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14449
      return
14450
    oprot.writeStructBegin('getVatPercentageForItem_result')
14451
    if self.success is not None:
14452
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14453
      oprot.writeDouble(self.success)
14454
      oprot.writeFieldEnd()
14455
    oprot.writeFieldStop()
14456
    oprot.writeStructEnd()
14457
 
14458
  def validate(self):
14459
    return
14460
 
14461
 
14462
  def __repr__(self):
14463
    L = ['%s=%r' % (key, value)
14464
      for key, value in self.__dict__.iteritems()]
14465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14466
 
14467
  def __eq__(self, other):
14468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14469
 
14470
  def __ne__(self, other):
14471
    return not (self == other)
14472
 
14473
class getVatAmountForItem_args:
14474
  """
14475
  Attributes:
14476
   - itemId
14477
   - price
14478
  """
14479
 
14480
  thrift_spec = (
14481
    None, # 0
14482
    (1, TType.I64, 'itemId', None, None, ), # 1
14483
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14484
  )
14485
 
14486
  def __init__(self, itemId=None, price=None,):
14487
    self.itemId = itemId
14488
    self.price = price
14489
 
14490
  def read(self, iprot):
14491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14493
      return
14494
    iprot.readStructBegin()
14495
    while True:
14496
      (fname, ftype, fid) = iprot.readFieldBegin()
14497
      if ftype == TType.STOP:
14498
        break
14499
      if fid == 1:
14500
        if ftype == TType.I64:
14501
          self.itemId = iprot.readI64();
14502
        else:
14503
          iprot.skip(ftype)
14504
      elif fid == 2:
14505
        if ftype == TType.DOUBLE:
14506
          self.price = iprot.readDouble();
14507
        else:
14508
          iprot.skip(ftype)
14509
      else:
14510
        iprot.skip(ftype)
14511
      iprot.readFieldEnd()
14512
    iprot.readStructEnd()
14513
 
14514
  def write(self, oprot):
14515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14517
      return
14518
    oprot.writeStructBegin('getVatAmountForItem_args')
14519
    if self.itemId is not None:
14520
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14521
      oprot.writeI64(self.itemId)
14522
      oprot.writeFieldEnd()
14523
    if self.price is not None:
14524
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14525
      oprot.writeDouble(self.price)
14526
      oprot.writeFieldEnd()
14527
    oprot.writeFieldStop()
14528
    oprot.writeStructEnd()
14529
 
14530
  def validate(self):
14531
    return
14532
 
14533
 
14534
  def __repr__(self):
14535
    L = ['%s=%r' % (key, value)
14536
      for key, value in self.__dict__.iteritems()]
14537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14538
 
14539
  def __eq__(self, other):
14540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14541
 
14542
  def __ne__(self, other):
14543
    return not (self == other)
14544
 
14545
class getVatAmountForItem_result:
14546
  """
14547
  Attributes:
14548
   - success
14549
  """
14550
 
14551
  thrift_spec = (
14552
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14553
  )
14554
 
14555
  def __init__(self, success=None,):
14556
    self.success = success
14557
 
14558
  def read(self, iprot):
14559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14561
      return
14562
    iprot.readStructBegin()
14563
    while True:
14564
      (fname, ftype, fid) = iprot.readFieldBegin()
14565
      if ftype == TType.STOP:
14566
        break
14567
      if fid == 0:
14568
        if ftype == TType.DOUBLE:
14569
          self.success = iprot.readDouble();
14570
        else:
14571
          iprot.skip(ftype)
14572
      else:
14573
        iprot.skip(ftype)
14574
      iprot.readFieldEnd()
14575
    iprot.readStructEnd()
14576
 
14577
  def write(self, oprot):
14578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14580
      return
14581
    oprot.writeStructBegin('getVatAmountForItem_result')
14582
    if self.success is not None:
14583
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14584
      oprot.writeDouble(self.success)
14585
      oprot.writeFieldEnd()
14586
    oprot.writeFieldStop()
14587
    oprot.writeStructEnd()
14588
 
14589
  def validate(self):
14590
    return
14591
 
14592
 
14593
  def __repr__(self):
14594
    L = ['%s=%r' % (key, value)
14595
      for key, value in self.__dict__.iteritems()]
14596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14597
 
14598
  def __eq__(self, other):
14599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14600
 
14601
  def __ne__(self, other):
14602
    return not (self == other)
6531 vikram.rag 14603
 
14604
class getAllIgnoredInventoryUpdateItemsList_args:
14605
  """
14606
  Attributes:
14607
   - offset
14608
   - limit
14609
  """
14610
 
14611
  thrift_spec = (
14612
    None, # 0
14613
    (1, TType.I32, 'offset', None, None, ), # 1
14614
    (2, TType.I32, 'limit', None, None, ), # 2
14615
  )
14616
 
14617
  def __init__(self, offset=None, limit=None,):
14618
    self.offset = offset
14619
    self.limit = limit
14620
 
14621
  def read(self, iprot):
14622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14624
      return
14625
    iprot.readStructBegin()
14626
    while True:
14627
      (fname, ftype, fid) = iprot.readFieldBegin()
14628
      if ftype == TType.STOP:
14629
        break
14630
      if fid == 1:
14631
        if ftype == TType.I32:
14632
          self.offset = iprot.readI32();
14633
        else:
14634
          iprot.skip(ftype)
14635
      elif fid == 2:
14636
        if ftype == TType.I32:
14637
          self.limit = iprot.readI32();
14638
        else:
14639
          iprot.skip(ftype)
14640
      else:
14641
        iprot.skip(ftype)
14642
      iprot.readFieldEnd()
14643
    iprot.readStructEnd()
14644
 
14645
  def write(self, oprot):
14646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14648
      return
14649
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14650
    if self.offset is not None:
14651
      oprot.writeFieldBegin('offset', TType.I32, 1)
14652
      oprot.writeI32(self.offset)
14653
      oprot.writeFieldEnd()
14654
    if self.limit is not None:
14655
      oprot.writeFieldBegin('limit', TType.I32, 2)
14656
      oprot.writeI32(self.limit)
14657
      oprot.writeFieldEnd()
14658
    oprot.writeFieldStop()
14659
    oprot.writeStructEnd()
14660
 
14661
  def validate(self):
14662
    return
14663
 
14664
 
14665
  def __repr__(self):
14666
    L = ['%s=%r' % (key, value)
14667
      for key, value in self.__dict__.iteritems()]
14668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14669
 
14670
  def __eq__(self, other):
14671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14672
 
14673
  def __ne__(self, other):
14674
    return not (self == other)
14675
 
14676
class getAllIgnoredInventoryUpdateItemsList_result:
14677
  """
14678
  Attributes:
14679
   - success
14680
  """
14681
 
14682
  thrift_spec = (
14683
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14684
  )
14685
 
14686
  def __init__(self, success=None,):
14687
    self.success = success
14688
 
14689
  def read(self, iprot):
14690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14692
      return
14693
    iprot.readStructBegin()
14694
    while True:
14695
      (fname, ftype, fid) = iprot.readFieldBegin()
14696
      if ftype == TType.STOP:
14697
        break
14698
      if fid == 0:
14699
        if ftype == TType.LIST:
14700
          self.success = []
6850 kshitij.so 14701
          (_etype287, _size284) = iprot.readListBegin()
14702
          for _i288 in xrange(_size284):
14703
            _elem289 = Item()
14704
            _elem289.read(iprot)
14705
            self.success.append(_elem289)
6531 vikram.rag 14706
          iprot.readListEnd()
14707
        else:
14708
          iprot.skip(ftype)
14709
      else:
14710
        iprot.skip(ftype)
14711
      iprot.readFieldEnd()
14712
    iprot.readStructEnd()
14713
 
14714
  def write(self, oprot):
14715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14717
      return
14718
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14719
    if self.success is not None:
14720
      oprot.writeFieldBegin('success', TType.LIST, 0)
14721
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14722
      for iter290 in self.success:
14723
        iter290.write(oprot)
6531 vikram.rag 14724
      oprot.writeListEnd()
14725
      oprot.writeFieldEnd()
14726
    oprot.writeFieldStop()
14727
    oprot.writeStructEnd()
14728
 
14729
  def validate(self):
14730
    return
14731
 
14732
 
14733
  def __repr__(self):
14734
    L = ['%s=%r' % (key, value)
14735
      for key, value in self.__dict__.iteritems()]
14736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14737
 
14738
  def __eq__(self, other):
14739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14740
 
14741
  def __ne__(self, other):
14742
    return not (self == other)
6805 anupam.sin 14743
 
6821 amar.kumar 14744
class getAllAliveItems_args:
14745
 
14746
  thrift_spec = (
14747
  )
14748
 
14749
  def read(self, iprot):
14750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14752
      return
14753
    iprot.readStructBegin()
14754
    while True:
14755
      (fname, ftype, fid) = iprot.readFieldBegin()
14756
      if ftype == TType.STOP:
14757
        break
14758
      else:
14759
        iprot.skip(ftype)
14760
      iprot.readFieldEnd()
14761
    iprot.readStructEnd()
14762
 
14763
  def write(self, oprot):
14764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14766
      return
14767
    oprot.writeStructBegin('getAllAliveItems_args')
14768
    oprot.writeFieldStop()
14769
    oprot.writeStructEnd()
14770
 
14771
  def validate(self):
14772
    return
14773
 
14774
 
14775
  def __repr__(self):
14776
    L = ['%s=%r' % (key, value)
14777
      for key, value in self.__dict__.iteritems()]
14778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14779
 
14780
  def __eq__(self, other):
14781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14782
 
14783
  def __ne__(self, other):
14784
    return not (self == other)
14785
 
14786
class getAllAliveItems_result:
14787
  """
14788
  Attributes:
14789
   - success
14790
  """
14791
 
14792
  thrift_spec = (
14793
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14794
  )
14795
 
14796
  def __init__(self, success=None,):
14797
    self.success = success
14798
 
14799
  def read(self, iprot):
14800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14802
      return
14803
    iprot.readStructBegin()
14804
    while True:
14805
      (fname, ftype, fid) = iprot.readFieldBegin()
14806
      if ftype == TType.STOP:
14807
        break
14808
      if fid == 0:
14809
        if ftype == TType.LIST:
14810
          self.success = []
6850 kshitij.so 14811
          (_etype294, _size291) = iprot.readListBegin()
14812
          for _i295 in xrange(_size291):
14813
            _elem296 = Item()
14814
            _elem296.read(iprot)
14815
            self.success.append(_elem296)
6821 amar.kumar 14816
          iprot.readListEnd()
14817
        else:
14818
          iprot.skip(ftype)
14819
      else:
14820
        iprot.skip(ftype)
14821
      iprot.readFieldEnd()
14822
    iprot.readStructEnd()
14823
 
14824
  def write(self, oprot):
14825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14827
      return
14828
    oprot.writeStructBegin('getAllAliveItems_result')
14829
    if self.success is not None:
14830
      oprot.writeFieldBegin('success', TType.LIST, 0)
14831
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14832
      for iter297 in self.success:
14833
        iter297.write(oprot)
6821 amar.kumar 14834
      oprot.writeListEnd()
14835
      oprot.writeFieldEnd()
14836
    oprot.writeFieldStop()
14837
    oprot.writeStructEnd()
14838
 
14839
  def validate(self):
14840
    return
14841
 
14842
 
14843
  def __repr__(self):
14844
    L = ['%s=%r' % (key, value)
14845
      for key, value in self.__dict__.iteritems()]
14846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14847
 
14848
  def __eq__(self, other):
14849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14850
 
14851
  def __ne__(self, other):
14852
    return not (self == other)
14853
 
6805 anupam.sin 14854
class getInsuranceAmount_args:
14855
  """
14856
  Attributes:
14857
   - itemId
14858
   - insurerId
14859
   - quantity
14860
  """
14861
 
14862
  thrift_spec = (
14863
    None, # 0
14864
    (1, TType.I64, 'itemId', None, None, ), # 1
14865
    (2, TType.I64, 'insurerId', None, None, ), # 2
14866
    (3, TType.I64, 'quantity', None, None, ), # 3
14867
  )
14868
 
14869
  def __init__(self, itemId=None, insurerId=None, quantity=None,):
14870
    self.itemId = itemId
14871
    self.insurerId = insurerId
14872
    self.quantity = quantity
14873
 
14874
  def read(self, iprot):
14875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14877
      return
14878
    iprot.readStructBegin()
14879
    while True:
14880
      (fname, ftype, fid) = iprot.readFieldBegin()
14881
      if ftype == TType.STOP:
14882
        break
14883
      if fid == 1:
14884
        if ftype == TType.I64:
14885
          self.itemId = iprot.readI64();
14886
        else:
14887
          iprot.skip(ftype)
14888
      elif fid == 2:
14889
        if ftype == TType.I64:
14890
          self.insurerId = iprot.readI64();
14891
        else:
14892
          iprot.skip(ftype)
14893
      elif fid == 3:
14894
        if ftype == TType.I64:
14895
          self.quantity = iprot.readI64();
14896
        else:
14897
          iprot.skip(ftype)
14898
      else:
14899
        iprot.skip(ftype)
14900
      iprot.readFieldEnd()
14901
    iprot.readStructEnd()
14902
 
14903
  def write(self, oprot):
14904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14906
      return
14907
    oprot.writeStructBegin('getInsuranceAmount_args')
14908
    if self.itemId is not None:
14909
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14910
      oprot.writeI64(self.itemId)
14911
      oprot.writeFieldEnd()
14912
    if self.insurerId is not None:
14913
      oprot.writeFieldBegin('insurerId', TType.I64, 2)
14914
      oprot.writeI64(self.insurerId)
14915
      oprot.writeFieldEnd()
14916
    if self.quantity is not None:
14917
      oprot.writeFieldBegin('quantity', TType.I64, 3)
14918
      oprot.writeI64(self.quantity)
14919
      oprot.writeFieldEnd()
14920
    oprot.writeFieldStop()
14921
    oprot.writeStructEnd()
14922
 
14923
  def validate(self):
14924
    return
14925
 
14926
 
14927
  def __repr__(self):
14928
    L = ['%s=%r' % (key, value)
14929
      for key, value in self.__dict__.iteritems()]
14930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14931
 
14932
  def __eq__(self, other):
14933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14934
 
14935
  def __ne__(self, other):
14936
    return not (self == other)
14937
 
14938
class getInsuranceAmount_result:
14939
  """
14940
  Attributes:
14941
   - success
14942
  """
14943
 
14944
  thrift_spec = (
14945
    (0, TType.I64, 'success', None, None, ), # 0
14946
  )
14947
 
14948
  def __init__(self, success=None,):
14949
    self.success = success
14950
 
14951
  def read(self, iprot):
14952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14954
      return
14955
    iprot.readStructBegin()
14956
    while True:
14957
      (fname, ftype, fid) = iprot.readFieldBegin()
14958
      if ftype == TType.STOP:
14959
        break
14960
      if fid == 0:
14961
        if ftype == TType.I64:
14962
          self.success = iprot.readI64();
14963
        else:
14964
          iprot.skip(ftype)
14965
      else:
14966
        iprot.skip(ftype)
14967
      iprot.readFieldEnd()
14968
    iprot.readStructEnd()
14969
 
14970
  def write(self, oprot):
14971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14973
      return
14974
    oprot.writeStructBegin('getInsuranceAmount_result')
14975
    if self.success is not None:
14976
      oprot.writeFieldBegin('success', TType.I64, 0)
14977
      oprot.writeI64(self.success)
14978
      oprot.writeFieldEnd()
14979
    oprot.writeFieldStop()
14980
    oprot.writeStructEnd()
14981
 
14982
  def validate(self):
14983
    return
14984
 
14985
 
14986
  def __repr__(self):
14987
    L = ['%s=%r' % (key, value)
14988
      for key, value in self.__dict__.iteritems()]
14989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14990
 
14991
  def __eq__(self, other):
14992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14993
 
14994
  def __ne__(self, other):
14995
    return not (self == other)
14996
 
14997
class getInsurer_args:
14998
  """
14999
  Attributes:
15000
   - insurerId
15001
  """
15002
 
15003
  thrift_spec = (
15004
    None, # 0
15005
    (1, TType.I64, 'insurerId', None, None, ), # 1
15006
  )
15007
 
15008
  def __init__(self, insurerId=None,):
15009
    self.insurerId = insurerId
15010
 
15011
  def read(self, iprot):
15012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15014
      return
15015
    iprot.readStructBegin()
15016
    while True:
15017
      (fname, ftype, fid) = iprot.readFieldBegin()
15018
      if ftype == TType.STOP:
15019
        break
15020
      if fid == 1:
15021
        if ftype == TType.I64:
15022
          self.insurerId = iprot.readI64();
15023
        else:
15024
          iprot.skip(ftype)
15025
      else:
15026
        iprot.skip(ftype)
15027
      iprot.readFieldEnd()
15028
    iprot.readStructEnd()
15029
 
15030
  def write(self, oprot):
15031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15033
      return
15034
    oprot.writeStructBegin('getInsurer_args')
15035
    if self.insurerId is not None:
15036
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15037
      oprot.writeI64(self.insurerId)
15038
      oprot.writeFieldEnd()
15039
    oprot.writeFieldStop()
15040
    oprot.writeStructEnd()
15041
 
15042
  def validate(self):
15043
    return
15044
 
15045
 
15046
  def __repr__(self):
15047
    L = ['%s=%r' % (key, value)
15048
      for key, value in self.__dict__.iteritems()]
15049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15050
 
15051
  def __eq__(self, other):
15052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15053
 
15054
  def __ne__(self, other):
15055
    return not (self == other)
15056
 
15057
class getInsurer_result:
15058
  """
15059
  Attributes:
15060
   - success
15061
  """
15062
 
15063
  thrift_spec = (
15064
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15065
  )
15066
 
15067
  def __init__(self, success=None,):
15068
    self.success = success
15069
 
15070
  def read(self, iprot):
15071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15073
      return
15074
    iprot.readStructBegin()
15075
    while True:
15076
      (fname, ftype, fid) = iprot.readFieldBegin()
15077
      if ftype == TType.STOP:
15078
        break
15079
      if fid == 0:
15080
        if ftype == TType.STRUCT:
15081
          self.success = Insurer()
15082
          self.success.read(iprot)
15083
        else:
15084
          iprot.skip(ftype)
15085
      else:
15086
        iprot.skip(ftype)
15087
      iprot.readFieldEnd()
15088
    iprot.readStructEnd()
15089
 
15090
  def write(self, oprot):
15091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15093
      return
15094
    oprot.writeStructBegin('getInsurer_result')
15095
    if self.success is not None:
15096
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15097
      self.success.write(oprot)
15098
      oprot.writeFieldEnd()
15099
    oprot.writeFieldStop()
15100
    oprot.writeStructEnd()
15101
 
15102
  def validate(self):
15103
    return
15104
 
15105
 
15106
  def __repr__(self):
15107
    L = ['%s=%r' % (key, value)
15108
      for key, value in self.__dict__.iteritems()]
15109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15110
 
15111
  def __eq__(self, other):
15112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15113
 
15114
  def __ne__(self, other):
15115
    return not (self == other)
6838 vikram.rag 15116
 
15117
class getAllInsurers_args:
15118
 
15119
  thrift_spec = (
15120
  )
15121
 
15122
  def read(self, iprot):
15123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15125
      return
15126
    iprot.readStructBegin()
15127
    while True:
15128
      (fname, ftype, fid) = iprot.readFieldBegin()
15129
      if ftype == TType.STOP:
15130
        break
15131
      else:
15132
        iprot.skip(ftype)
15133
      iprot.readFieldEnd()
15134
    iprot.readStructEnd()
15135
 
15136
  def write(self, oprot):
15137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15139
      return
15140
    oprot.writeStructBegin('getAllInsurers_args')
15141
    oprot.writeFieldStop()
15142
    oprot.writeStructEnd()
15143
 
15144
  def validate(self):
15145
    return
15146
 
15147
 
15148
  def __repr__(self):
15149
    L = ['%s=%r' % (key, value)
15150
      for key, value in self.__dict__.iteritems()]
15151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15152
 
15153
  def __eq__(self, other):
15154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15155
 
15156
  def __ne__(self, other):
15157
    return not (self == other)
15158
 
15159
class getAllInsurers_result:
15160
  """
15161
  Attributes:
15162
   - success
15163
  """
15164
 
15165
  thrift_spec = (
15166
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15167
  )
15168
 
15169
  def __init__(self, success=None,):
15170
    self.success = success
15171
 
15172
  def read(self, iprot):
15173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15175
      return
15176
    iprot.readStructBegin()
15177
    while True:
15178
      (fname, ftype, fid) = iprot.readFieldBegin()
15179
      if ftype == TType.STOP:
15180
        break
15181
      if fid == 0:
15182
        if ftype == TType.LIST:
15183
          self.success = []
6850 kshitij.so 15184
          (_etype301, _size298) = iprot.readListBegin()
15185
          for _i302 in xrange(_size298):
15186
            _elem303 = Insurer()
15187
            _elem303.read(iprot)
15188
            self.success.append(_elem303)
6838 vikram.rag 15189
          iprot.readListEnd()
15190
        else:
15191
          iprot.skip(ftype)
15192
      else:
15193
        iprot.skip(ftype)
15194
      iprot.readFieldEnd()
15195
    iprot.readStructEnd()
15196
 
15197
  def write(self, oprot):
15198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15200
      return
15201
    oprot.writeStructBegin('getAllInsurers_result')
15202
    if self.success is not None:
15203
      oprot.writeFieldBegin('success', TType.LIST, 0)
15204
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 15205
      for iter304 in self.success:
15206
        iter304.write(oprot)
6838 vikram.rag 15207
      oprot.writeListEnd()
15208
      oprot.writeFieldEnd()
15209
    oprot.writeFieldStop()
15210
    oprot.writeStructEnd()
15211
 
15212
  def validate(self):
15213
    return
15214
 
15215
 
15216
  def __repr__(self):
15217
    L = ['%s=%r' % (key, value)
15218
      for key, value in self.__dict__.iteritems()]
15219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15220
 
15221
  def __eq__(self, other):
15222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15223
 
15224
  def __ne__(self, other):
15225
    return not (self == other)