Subversion Repositories SmartDukaan

Rev

Rev 6962 | Rev 7256 | 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
 
6921 anupam.sin 628
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 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
6921 anupam.sin 634
     - price
6805 anupam.sin 635
     - insurerId
636
     - quantity
637
    """
638
    pass
639
 
640
  def getInsurer(self, insurerId):
641
    """
642
    Parameters:
643
     - insurerId
644
    """
645
    pass
646
 
6838 vikram.rag 647
  def getAllInsurers(self, ):
648
    pass
6805 anupam.sin 649
 
6962 rajveer 650
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
651
    """
652
    Parameters:
653
     - insurerId
654
     - amount
655
    """
656
    pass
6838 vikram.rag 657
 
7190 amar.kumar 658
  def getFreebieForItem(self, itemId):
659
    """
660
    Parameters:
661
     - itemId
662
    """
663
    pass
6962 rajveer 664
 
7190 amar.kumar 665
  def addOrUpdateFreebieForItem(self, freebieItem):
666
    """
667
    Parameters:
668
     - freebieItem
669
    """
670
    pass
671
 
672
 
5944 mandeep.dh 673
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
674
  def __init__(self, iprot, oprot=None):
675
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
676
 
677
  def addItem(self, item):
678
    """
679
    Availability and inventory attributes
680
 
681
    Parameters:
682
     - item
683
    """
684
    self.send_addItem(item)
685
    return self.recv_addItem()
686
 
687
  def send_addItem(self, item):
688
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
689
    args = addItem_args()
690
    args.item = item
691
    args.write(self._oprot)
692
    self._oprot.writeMessageEnd()
693
    self._oprot.trans.flush()
694
 
695
  def recv_addItem(self, ):
696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
697
    if mtype == TMessageType.EXCEPTION:
698
      x = TApplicationException()
699
      x.read(self._iprot)
700
      self._iprot.readMessageEnd()
701
      raise x
702
    result = addItem_result()
703
    result.read(self._iprot)
704
    self._iprot.readMessageEnd()
705
    if result.success is not None:
706
      return result.success
707
    if result.cex is not None:
708
      raise result.cex
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
710
 
711
  def updateItem(self, item):
712
    """
713
    Parameters:
714
     - item
715
    """
716
    self.send_updateItem(item)
717
    return self.recv_updateItem()
718
 
719
  def send_updateItem(self, item):
720
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
721
    args = updateItem_args()
722
    args.item = item
723
    args.write(self._oprot)
724
    self._oprot.writeMessageEnd()
725
    self._oprot.trans.flush()
726
 
727
  def recv_updateItem(self, ):
728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
729
    if mtype == TMessageType.EXCEPTION:
730
      x = TApplicationException()
731
      x.read(self._iprot)
732
      self._iprot.readMessageEnd()
733
      raise x
734
    result = updateItem_result()
735
    result.read(self._iprot)
736
    self._iprot.readMessageEnd()
737
    if result.success is not None:
738
      return result.success
739
    if result.cex is not None:
740
      raise result.cex
741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
742
 
743
  def isActive(self, itemId):
744
    """
745
    Checks if the item given to the corresponding itemId is active. If it's active,
746
    whether it's risky and if it's risky, its inventory position.
747
 
748
    Parameters:
749
     - itemId
750
    """
751
    self.send_isActive(itemId)
752
    return self.recv_isActive()
753
 
754
  def send_isActive(self, itemId):
755
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
756
    args = isActive_args()
757
    args.itemId = itemId
758
    args.write(self._oprot)
759
    self._oprot.writeMessageEnd()
760
    self._oprot.trans.flush()
761
 
762
  def recv_isActive(self, ):
763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
764
    if mtype == TMessageType.EXCEPTION:
765
      x = TApplicationException()
766
      x.read(self._iprot)
767
      self._iprot.readMessageEnd()
768
      raise x
769
    result = isActive_result()
770
    result.read(self._iprot)
771
    self._iprot.readMessageEnd()
772
    if result.success is not None:
773
      return result.success
774
    if result.isex is not None:
775
      raise result.isex
776
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
777
 
778
  def getItemStatusDescription(self, itemId):
779
    """
780
    Parameters:
781
     - itemId
782
    """
783
    self.send_getItemStatusDescription(itemId)
784
    return self.recv_getItemStatusDescription()
785
 
786
  def send_getItemStatusDescription(self, itemId):
787
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
788
    args = getItemStatusDescription_args()
789
    args.itemId = itemId
790
    args.write(self._oprot)
791
    self._oprot.writeMessageEnd()
792
    self._oprot.trans.flush()
793
 
794
  def recv_getItemStatusDescription(self, ):
795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
796
    if mtype == TMessageType.EXCEPTION:
797
      x = TApplicationException()
798
      x.read(self._iprot)
799
      self._iprot.readMessageEnd()
800
      raise x
801
    result = getItemStatusDescription_result()
802
    result.read(self._iprot)
803
    self._iprot.readMessageEnd()
804
    if result.success is not None:
805
      return result.success
806
    if result.isex is not None:
807
      raise result.isex
808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
809
 
810
  def startItemOn(self, item_id, timestamp):
811
    """
812
    Parameters:
813
     - item_id
814
     - timestamp
815
    """
816
    self.send_startItemOn(item_id, timestamp)
817
    self.recv_startItemOn()
818
 
819
  def send_startItemOn(self, item_id, timestamp):
820
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
821
    args = startItemOn_args()
822
    args.item_id = item_id
823
    args.timestamp = timestamp
824
    args.write(self._oprot)
825
    self._oprot.writeMessageEnd()
826
    self._oprot.trans.flush()
827
 
828
  def recv_startItemOn(self, ):
829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
830
    if mtype == TMessageType.EXCEPTION:
831
      x = TApplicationException()
832
      x.read(self._iprot)
833
      self._iprot.readMessageEnd()
834
      raise x
835
    result = startItemOn_result()
836
    result.read(self._iprot)
837
    self._iprot.readMessageEnd()
838
    if result.cex is not None:
839
      raise result.cex
840
    return
841
 
842
  def retireItemOn(self, item_id, timestamp):
843
    """
844
    Parameters:
845
     - item_id
846
     - timestamp
847
    """
848
    self.send_retireItemOn(item_id, timestamp)
849
    self.recv_retireItemOn()
850
 
851
  def send_retireItemOn(self, item_id, timestamp):
852
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
853
    args = retireItemOn_args()
854
    args.item_id = item_id
855
    args.timestamp = timestamp
856
    args.write(self._oprot)
857
    self._oprot.writeMessageEnd()
858
    self._oprot.trans.flush()
859
 
860
  def recv_retireItemOn(self, ):
861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
862
    if mtype == TMessageType.EXCEPTION:
863
      x = TApplicationException()
864
      x.read(self._iprot)
865
      self._iprot.readMessageEnd()
866
      raise x
867
    result = retireItemOn_result()
868
    result.read(self._iprot)
869
    self._iprot.readMessageEnd()
870
    if result.cex is not None:
871
      raise result.cex
872
    return
873
 
874
  def changeItemStatus(self, item_id, timestamp, newstatus):
875
    """
876
    Parameters:
877
     - item_id
878
     - timestamp
879
     - newstatus
880
    """
881
    self.send_changeItemStatus(item_id, timestamp, newstatus)
882
    self.recv_changeItemStatus()
883
 
884
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
885
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
886
    args = changeItemStatus_args()
887
    args.item_id = item_id
888
    args.timestamp = timestamp
889
    args.newstatus = newstatus
890
    args.write(self._oprot)
891
    self._oprot.writeMessageEnd()
892
    self._oprot.trans.flush()
893
 
894
  def recv_changeItemStatus(self, ):
895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
896
    if mtype == TMessageType.EXCEPTION:
897
      x = TApplicationException()
898
      x.read(self._iprot)
899
      self._iprot.readMessageEnd()
900
      raise x
901
    result = changeItemStatus_result()
902
    result.read(self._iprot)
903
    self._iprot.readMessageEnd()
904
    if result.cex is not None:
905
      raise result.cex
906
    return
907
 
908
  def getItem(self, item_id):
909
    """
910
    Parameters:
911
     - item_id
912
    """
913
    self.send_getItem(item_id)
914
    return self.recv_getItem()
915
 
916
  def send_getItem(self, item_id):
917
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
918
    args = getItem_args()
919
    args.item_id = item_id
920
    args.write(self._oprot)
921
    self._oprot.writeMessageEnd()
922
    self._oprot.trans.flush()
923
 
924
  def recv_getItem(self, ):
925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
926
    if mtype == TMessageType.EXCEPTION:
927
      x = TApplicationException()
928
      x.read(self._iprot)
929
      self._iprot.readMessageEnd()
930
      raise x
931
    result = getItem_result()
932
    result.read(self._iprot)
933
    self._iprot.readMessageEnd()
934
    if result.success is not None:
935
      return result.success
936
    if result.cex is not None:
937
      raise result.cex
938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
939
 
940
  def getItemsByCatalogId(self, catalog_item_id):
941
    """
942
    Parameters:
943
     - catalog_item_id
944
    """
945
    self.send_getItemsByCatalogId(catalog_item_id)
946
    return self.recv_getItemsByCatalogId()
947
 
948
  def send_getItemsByCatalogId(self, catalog_item_id):
949
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
950
    args = getItemsByCatalogId_args()
951
    args.catalog_item_id = catalog_item_id
952
    args.write(self._oprot)
953
    self._oprot.writeMessageEnd()
954
    self._oprot.trans.flush()
955
 
956
  def recv_getItemsByCatalogId(self, ):
957
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
958
    if mtype == TMessageType.EXCEPTION:
959
      x = TApplicationException()
960
      x.read(self._iprot)
961
      self._iprot.readMessageEnd()
962
      raise x
963
    result = getItemsByCatalogId_result()
964
    result.read(self._iprot)
965
    self._iprot.readMessageEnd()
966
    if result.success is not None:
967
      return result.success
968
    if result.cex is not None:
969
      raise result.cex
970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
971
 
972
  def getValidItemsByCatalogId(self, catalog_item_id):
973
    """
974
    Parameters:
975
     - catalog_item_id
976
    """
977
    self.send_getValidItemsByCatalogId(catalog_item_id)
978
    return self.recv_getValidItemsByCatalogId()
979
 
980
  def send_getValidItemsByCatalogId(self, catalog_item_id):
981
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
982
    args = getValidItemsByCatalogId_args()
983
    args.catalog_item_id = catalog_item_id
984
    args.write(self._oprot)
985
    self._oprot.writeMessageEnd()
986
    self._oprot.trans.flush()
987
 
988
  def recv_getValidItemsByCatalogId(self, ):
989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
990
    if mtype == TMessageType.EXCEPTION:
991
      x = TApplicationException()
992
      x.read(self._iprot)
993
      self._iprot.readMessageEnd()
994
      raise x
995
    result = getValidItemsByCatalogId_result()
996
    result.read(self._iprot)
997
    self._iprot.readMessageEnd()
998
    if result.success is not None:
999
      return result.success
1000
    if result.cex is not None:
1001
      raise result.cex
1002
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1003
 
1004
  def getAllItems(self, isActive):
1005
    """
1006
    Parameters:
1007
     - isActive
1008
    """
1009
    self.send_getAllItems(isActive)
1010
    return self.recv_getAllItems()
1011
 
1012
  def send_getAllItems(self, isActive):
1013
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1014
    args = getAllItems_args()
1015
    args.isActive = isActive
1016
    args.write(self._oprot)
1017
    self._oprot.writeMessageEnd()
1018
    self._oprot.trans.flush()
1019
 
1020
  def recv_getAllItems(self, ):
1021
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1022
    if mtype == TMessageType.EXCEPTION:
1023
      x = TApplicationException()
1024
      x.read(self._iprot)
1025
      self._iprot.readMessageEnd()
1026
      raise x
1027
    result = getAllItems_result()
1028
    result.read(self._iprot)
1029
    self._iprot.readMessageEnd()
1030
    if result.success is not None:
1031
      return result.success
1032
    if result.cex is not None:
1033
      raise result.cex
1034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1035
 
1036
  def getAllItemsByStatus(self, itemStatus):
1037
    """
1038
    Parameters:
1039
     - itemStatus
1040
    """
1041
    self.send_getAllItemsByStatus(itemStatus)
1042
    return self.recv_getAllItemsByStatus()
1043
 
1044
  def send_getAllItemsByStatus(self, itemStatus):
1045
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1046
    args = getAllItemsByStatus_args()
1047
    args.itemStatus = itemStatus
1048
    args.write(self._oprot)
1049
    self._oprot.writeMessageEnd()
1050
    self._oprot.trans.flush()
1051
 
1052
  def recv_getAllItemsByStatus(self, ):
1053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1054
    if mtype == TMessageType.EXCEPTION:
1055
      x = TApplicationException()
1056
      x.read(self._iprot)
1057
      self._iprot.readMessageEnd()
1058
      raise x
1059
    result = getAllItemsByStatus_result()
1060
    result.read(self._iprot)
1061
    self._iprot.readMessageEnd()
1062
    if result.success is not None:
1063
      return result.success
1064
    if result.cex is not None:
1065
      raise result.cex
1066
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1067
 
1068
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1069
    """
1070
    Parameters:
1071
     - entityId
1072
     - category
1073
     - brand
1074
     - modelName
1075
     - modelNumber
1076
    """
1077
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1078
    return self.recv_markItemAsContentComplete()
1079
 
1080
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1081
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1082
    args = markItemAsContentComplete_args()
1083
    args.entityId = entityId
1084
    args.category = category
1085
    args.brand = brand
1086
    args.modelName = modelName
1087
    args.modelNumber = modelNumber
1088
    args.write(self._oprot)
1089
    self._oprot.writeMessageEnd()
1090
    self._oprot.trans.flush()
1091
 
1092
  def recv_markItemAsContentComplete(self, ):
1093
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1094
    if mtype == TMessageType.EXCEPTION:
1095
      x = TApplicationException()
1096
      x.read(self._iprot)
1097
      self._iprot.readMessageEnd()
1098
      raise x
1099
    result = markItemAsContentComplete_result()
1100
    result.read(self._iprot)
1101
    self._iprot.readMessageEnd()
1102
    if result.success is not None:
1103
      return result.success
1104
    if result.cex is not None:
1105
      raise result.cex
1106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1107
 
1108
  def getAllItemsInRange(self, offset, limit):
1109
    """
1110
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1111
 
1112
    Parameters:
1113
     - offset
1114
     - limit
1115
    """
1116
    self.send_getAllItemsInRange(offset, limit)
1117
    return self.recv_getAllItemsInRange()
1118
 
1119
  def send_getAllItemsInRange(self, offset, limit):
1120
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1121
    args = getAllItemsInRange_args()
1122
    args.offset = offset
1123
    args.limit = limit
1124
    args.write(self._oprot)
1125
    self._oprot.writeMessageEnd()
1126
    self._oprot.trans.flush()
1127
 
1128
  def recv_getAllItemsInRange(self, ):
1129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1130
    if mtype == TMessageType.EXCEPTION:
1131
      x = TApplicationException()
1132
      x.read(self._iprot)
1133
      self._iprot.readMessageEnd()
1134
      raise x
1135
    result = getAllItemsInRange_result()
1136
    result.read(self._iprot)
1137
    self._iprot.readMessageEnd()
1138
    if result.success is not None:
1139
      return result.success
1140
    if result.cex is not None:
1141
      raise result.cex
1142
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1143
 
1144
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1145
    """
1146
    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.
1147
 
1148
    Parameters:
1149
     - itemStatus
1150
     - offset
1151
     - limit
1152
    """
1153
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1154
    return self.recv_getAllItemsByStatusInRange()
1155
 
1156
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1157
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1158
    args = getAllItemsByStatusInRange_args()
1159
    args.itemStatus = itemStatus
1160
    args.offset = offset
1161
    args.limit = limit
1162
    args.write(self._oprot)
1163
    self._oprot.writeMessageEnd()
1164
    self._oprot.trans.flush()
1165
 
1166
  def recv_getAllItemsByStatusInRange(self, ):
1167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1168
    if mtype == TMessageType.EXCEPTION:
1169
      x = TApplicationException()
1170
      x.read(self._iprot)
1171
      self._iprot.readMessageEnd()
1172
      raise x
1173
    result = getAllItemsByStatusInRange_result()
1174
    result.read(self._iprot)
1175
    self._iprot.readMessageEnd()
1176
    if result.success is not None:
1177
      return result.success
1178
    if result.cex is not None:
1179
      raise result.cex
1180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1181
 
1182
  def getItemCountByStatus(self, useStatus, itemStatus):
1183
    """
1184
    Gets a count of all items by status
1185
 
1186
    Parameters:
1187
     - useStatus
1188
     - itemStatus
1189
    """
1190
    self.send_getItemCountByStatus(useStatus, itemStatus)
1191
    return self.recv_getItemCountByStatus()
1192
 
1193
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1194
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1195
    args = getItemCountByStatus_args()
1196
    args.useStatus = useStatus
1197
    args.itemStatus = itemStatus
1198
    args.write(self._oprot)
1199
    self._oprot.writeMessageEnd()
1200
    self._oprot.trans.flush()
1201
 
1202
  def recv_getItemCountByStatus(self, ):
1203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1204
    if mtype == TMessageType.EXCEPTION:
1205
      x = TApplicationException()
1206
      x.read(self._iprot)
1207
      self._iprot.readMessageEnd()
1208
      raise x
1209
    result = getItemCountByStatus_result()
1210
    result.read(self._iprot)
1211
    self._iprot.readMessageEnd()
1212
    if result.success is not None:
1213
      return result.success
1214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1215
 
1216
  def getBestSellers(self, ):
1217
    self.send_getBestSellers()
1218
    return self.recv_getBestSellers()
1219
 
1220
  def send_getBestSellers(self, ):
1221
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1222
    args = getBestSellers_args()
1223
    args.write(self._oprot)
1224
    self._oprot.writeMessageEnd()
1225
    self._oprot.trans.flush()
1226
 
1227
  def recv_getBestSellers(self, ):
1228
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1229
    if mtype == TMessageType.EXCEPTION:
1230
      x = TApplicationException()
1231
      x.read(self._iprot)
1232
      self._iprot.readMessageEnd()
1233
      raise x
1234
    result = getBestSellers_result()
1235
    result.read(self._iprot)
1236
    self._iprot.readMessageEnd()
1237
    if result.success is not None:
1238
      return result.success
1239
    if result.isex is not None:
1240
      raise result.isex
1241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1242
 
1243
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1244
    """
1245
    Parameters:
1246
     - beginIndex
1247
     - totalItems
1248
     - brand
1249
     - category
1250
    """
1251
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1252
    return self.recv_getBestSellersCatalogIds()
1253
 
1254
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1255
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1256
    args = getBestSellersCatalogIds_args()
1257
    args.beginIndex = beginIndex
1258
    args.totalItems = totalItems
1259
    args.brand = brand
1260
    args.category = category
1261
    args.write(self._oprot)
1262
    self._oprot.writeMessageEnd()
1263
    self._oprot.trans.flush()
1264
 
1265
  def recv_getBestSellersCatalogIds(self, ):
1266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1267
    if mtype == TMessageType.EXCEPTION:
1268
      x = TApplicationException()
1269
      x.read(self._iprot)
1270
      self._iprot.readMessageEnd()
1271
      raise x
1272
    result = getBestSellersCatalogIds_result()
1273
    result.read(self._iprot)
1274
    self._iprot.readMessageEnd()
1275
    if result.success is not None:
1276
      return result.success
1277
    if result.cex is not None:
1278
      raise result.cex
1279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1280
 
1281
  def getBestSellersCount(self, ):
1282
    self.send_getBestSellersCount()
1283
    return self.recv_getBestSellersCount()
1284
 
1285
  def send_getBestSellersCount(self, ):
1286
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1287
    args = getBestSellersCount_args()
1288
    args.write(self._oprot)
1289
    self._oprot.writeMessageEnd()
1290
    self._oprot.trans.flush()
1291
 
1292
  def recv_getBestSellersCount(self, ):
1293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1294
    if mtype == TMessageType.EXCEPTION:
1295
      x = TApplicationException()
1296
      x.read(self._iprot)
1297
      self._iprot.readMessageEnd()
1298
      raise x
1299
    result = getBestSellersCount_result()
1300
    result.read(self._iprot)
1301
    self._iprot.readMessageEnd()
1302
    if result.success is not None:
1303
      return result.success
1304
    if result.cex is not None:
1305
      raise result.cex
1306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1307
 
1308
  def getBestDeals(self, ):
1309
    self.send_getBestDeals()
1310
    return self.recv_getBestDeals()
1311
 
1312
  def send_getBestDeals(self, ):
1313
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1314
    args = getBestDeals_args()
1315
    args.write(self._oprot)
1316
    self._oprot.writeMessageEnd()
1317
    self._oprot.trans.flush()
1318
 
1319
  def recv_getBestDeals(self, ):
1320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1321
    if mtype == TMessageType.EXCEPTION:
1322
      x = TApplicationException()
1323
      x.read(self._iprot)
1324
      self._iprot.readMessageEnd()
1325
      raise x
1326
    result = getBestDeals_result()
1327
    result.read(self._iprot)
1328
    self._iprot.readMessageEnd()
1329
    if result.success is not None:
1330
      return result.success
1331
    if result.isex is not None:
1332
      raise result.isex
1333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1334
 
1335
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1336
    """
1337
    Parameters:
1338
     - beginIndex
1339
     - totalItems
1340
     - brand
1341
     - category
1342
    """
1343
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1344
    return self.recv_getBestDealsCatalogIds()
1345
 
1346
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1347
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1348
    args = getBestDealsCatalogIds_args()
1349
    args.beginIndex = beginIndex
1350
    args.totalItems = totalItems
1351
    args.brand = brand
1352
    args.category = category
1353
    args.write(self._oprot)
1354
    self._oprot.writeMessageEnd()
1355
    self._oprot.trans.flush()
1356
 
1357
  def recv_getBestDealsCatalogIds(self, ):
1358
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1359
    if mtype == TMessageType.EXCEPTION:
1360
      x = TApplicationException()
1361
      x.read(self._iprot)
1362
      self._iprot.readMessageEnd()
1363
      raise x
1364
    result = getBestDealsCatalogIds_result()
1365
    result.read(self._iprot)
1366
    self._iprot.readMessageEnd()
1367
    if result.success is not None:
1368
      return result.success
1369
    if result.cex is not None:
1370
      raise result.cex
1371
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1372
 
1373
  def getBestDealsCount(self, ):
1374
    self.send_getBestDealsCount()
1375
    return self.recv_getBestDealsCount()
1376
 
1377
  def send_getBestDealsCount(self, ):
1378
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1379
    args = getBestDealsCount_args()
1380
    args.write(self._oprot)
1381
    self._oprot.writeMessageEnd()
1382
    self._oprot.trans.flush()
1383
 
1384
  def recv_getBestDealsCount(self, ):
1385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1386
    if mtype == TMessageType.EXCEPTION:
1387
      x = TApplicationException()
1388
      x.read(self._iprot)
1389
      self._iprot.readMessageEnd()
1390
      raise x
1391
    result = getBestDealsCount_result()
1392
    result.read(self._iprot)
1393
    self._iprot.readMessageEnd()
1394
    if result.success is not None:
1395
      return result.success
1396
    if result.cex is not None:
1397
      raise result.cex
1398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1399
 
1400
  def getComingSoon(self, ):
1401
    self.send_getComingSoon()
1402
    return self.recv_getComingSoon()
1403
 
1404
  def send_getComingSoon(self, ):
1405
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1406
    args = getComingSoon_args()
1407
    args.write(self._oprot)
1408
    self._oprot.writeMessageEnd()
1409
    self._oprot.trans.flush()
1410
 
1411
  def recv_getComingSoon(self, ):
1412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1413
    if mtype == TMessageType.EXCEPTION:
1414
      x = TApplicationException()
1415
      x.read(self._iprot)
1416
      self._iprot.readMessageEnd()
1417
      raise x
1418
    result = getComingSoon_result()
1419
    result.read(self._iprot)
1420
    self._iprot.readMessageEnd()
1421
    if result.success is not None:
1422
      return result.success
1423
    if result.isex is not None:
1424
      raise result.isex
1425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1426
 
1427
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1428
    """
1429
    Parameters:
1430
     - beginIndex
1431
     - totalItems
1432
     - brand
1433
     - category
1434
    """
1435
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1436
    return self.recv_getComingSoonCatalogIds()
1437
 
1438
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1439
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1440
    args = getComingSoonCatalogIds_args()
1441
    args.beginIndex = beginIndex
1442
    args.totalItems = totalItems
1443
    args.brand = brand
1444
    args.category = category
1445
    args.write(self._oprot)
1446
    self._oprot.writeMessageEnd()
1447
    self._oprot.trans.flush()
1448
 
1449
  def recv_getComingSoonCatalogIds(self, ):
1450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1451
    if mtype == TMessageType.EXCEPTION:
1452
      x = TApplicationException()
1453
      x.read(self._iprot)
1454
      self._iprot.readMessageEnd()
1455
      raise x
1456
    result = getComingSoonCatalogIds_result()
1457
    result.read(self._iprot)
1458
    self._iprot.readMessageEnd()
1459
    if result.success is not None:
1460
      return result.success
1461
    if result.cex is not None:
1462
      raise result.cex
1463
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1464
 
1465
  def getComingSoonCount(self, ):
1466
    self.send_getComingSoonCount()
1467
    return self.recv_getComingSoonCount()
1468
 
1469
  def send_getComingSoonCount(self, ):
1470
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1471
    args = getComingSoonCount_args()
1472
    args.write(self._oprot)
1473
    self._oprot.writeMessageEnd()
1474
    self._oprot.trans.flush()
1475
 
1476
  def recv_getComingSoonCount(self, ):
1477
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1478
    if mtype == TMessageType.EXCEPTION:
1479
      x = TApplicationException()
1480
      x.read(self._iprot)
1481
      self._iprot.readMessageEnd()
1482
      raise x
1483
    result = getComingSoonCount_result()
1484
    result.read(self._iprot)
1485
    self._iprot.readMessageEnd()
1486
    if result.success is not None:
1487
      return result.success
1488
    if result.cex is not None:
1489
      raise result.cex
1490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1491
 
1492
  def getLatestArrivals(self, ):
1493
    """
1494
    Returns a list of items sorted in the descending order by start date.
1495
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1496
    """
1497
    self.send_getLatestArrivals()
1498
    return self.recv_getLatestArrivals()
1499
 
1500
  def send_getLatestArrivals(self, ):
1501
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1502
    args = getLatestArrivals_args()
1503
    args.write(self._oprot)
1504
    self._oprot.writeMessageEnd()
1505
    self._oprot.trans.flush()
1506
 
1507
  def recv_getLatestArrivals(self, ):
1508
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1509
    if mtype == TMessageType.EXCEPTION:
1510
      x = TApplicationException()
1511
      x.read(self._iprot)
1512
      self._iprot.readMessageEnd()
1513
      raise x
1514
    result = getLatestArrivals_result()
1515
    result.read(self._iprot)
1516
    self._iprot.readMessageEnd()
1517
    if result.success is not None:
1518
      return result.success
1519
    if result.isex is not None:
1520
      raise result.isex
1521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1522
 
1523
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1524
    """
1525
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1526
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1527
 
1528
    Parameters:
1529
     - beginIndex
1530
     - totalItems
1531
     - brand
1532
     - categories
1533
    """
1534
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1535
    return self.recv_getLatestArrivalsCatalogIds()
1536
 
1537
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1538
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1539
    args = getLatestArrivalsCatalogIds_args()
1540
    args.beginIndex = beginIndex
1541
    args.totalItems = totalItems
1542
    args.brand = brand
1543
    args.categories = categories
1544
    args.write(self._oprot)
1545
    self._oprot.writeMessageEnd()
1546
    self._oprot.trans.flush()
1547
 
1548
  def recv_getLatestArrivalsCatalogIds(self, ):
1549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1550
    if mtype == TMessageType.EXCEPTION:
1551
      x = TApplicationException()
1552
      x.read(self._iprot)
1553
      self._iprot.readMessageEnd()
1554
      raise x
1555
    result = getLatestArrivalsCatalogIds_result()
1556
    result.read(self._iprot)
1557
    self._iprot.readMessageEnd()
1558
    if result.success is not None:
1559
      return result.success
1560
    if result.cex is not None:
1561
      raise result.cex
1562
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1563
 
1564
  def getLatestArrivalsCount(self, ):
1565
    """
1566
    Get the total number of latest arrivals we are willing to show.
1567
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1568
    """
1569
    self.send_getLatestArrivalsCount()
1570
    return self.recv_getLatestArrivalsCount()
1571
 
1572
  def send_getLatestArrivalsCount(self, ):
1573
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1574
    args = getLatestArrivalsCount_args()
1575
    args.write(self._oprot)
1576
    self._oprot.writeMessageEnd()
1577
    self._oprot.trans.flush()
1578
 
1579
  def recv_getLatestArrivalsCount(self, ):
1580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1581
    if mtype == TMessageType.EXCEPTION:
1582
      x = TApplicationException()
1583
      x.read(self._iprot)
1584
      self._iprot.readMessageEnd()
1585
      raise x
1586
    result = getLatestArrivalsCount_result()
1587
    result.read(self._iprot)
1588
    self._iprot.readMessageEnd()
1589
    if result.success is not None:
1590
      return result.success
1591
    if result.cex is not None:
1592
      raise result.cex
1593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1594
 
1595
  def generateNewEntityID(self, ):
1596
    self.send_generateNewEntityID()
1597
    return self.recv_generateNewEntityID()
1598
 
1599
  def send_generateNewEntityID(self, ):
1600
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1601
    args = generateNewEntityID_args()
1602
    args.write(self._oprot)
1603
    self._oprot.writeMessageEnd()
1604
    self._oprot.trans.flush()
1605
 
1606
  def recv_generateNewEntityID(self, ):
1607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1608
    if mtype == TMessageType.EXCEPTION:
1609
      x = TApplicationException()
1610
      x.read(self._iprot)
1611
      self._iprot.readMessageEnd()
1612
      raise x
1613
    result = generateNewEntityID_result()
1614
    result.read(self._iprot)
1615
    self._iprot.readMessageEnd()
1616
    if result.success is not None:
1617
      return result.success
1618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1619
 
1620
  def addCategory(self, category):
1621
    """
1622
    All category related functions
1623
 
1624
    Parameters:
1625
     - category
1626
    """
1627
    self.send_addCategory(category)
1628
    return self.recv_addCategory()
1629
 
1630
  def send_addCategory(self, category):
1631
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1632
    args = addCategory_args()
1633
    args.category = category
1634
    args.write(self._oprot)
1635
    self._oprot.writeMessageEnd()
1636
    self._oprot.trans.flush()
1637
 
1638
  def recv_addCategory(self, ):
1639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1640
    if mtype == TMessageType.EXCEPTION:
1641
      x = TApplicationException()
1642
      x.read(self._iprot)
1643
      self._iprot.readMessageEnd()
1644
      raise x
1645
    result = addCategory_result()
1646
    result.read(self._iprot)
1647
    self._iprot.readMessageEnd()
1648
    if result.success is not None:
1649
      return result.success
1650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1651
 
1652
  def getCategory(self, id):
1653
    """
1654
    Parameters:
1655
     - id
1656
    """
1657
    self.send_getCategory(id)
1658
    return self.recv_getCategory()
1659
 
1660
  def send_getCategory(self, id):
1661
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1662
    args = getCategory_args()
1663
    args.id = id
1664
    args.write(self._oprot)
1665
    self._oprot.writeMessageEnd()
1666
    self._oprot.trans.flush()
1667
 
1668
  def recv_getCategory(self, ):
1669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1670
    if mtype == TMessageType.EXCEPTION:
1671
      x = TApplicationException()
1672
      x.read(self._iprot)
1673
      self._iprot.readMessageEnd()
1674
      raise x
1675
    result = getCategory_result()
1676
    result.read(self._iprot)
1677
    self._iprot.readMessageEnd()
1678
    if result.success is not None:
1679
      return result.success
1680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1681
 
1682
  def getAllCategories(self, ):
1683
    self.send_getAllCategories()
1684
    return self.recv_getAllCategories()
1685
 
1686
  def send_getAllCategories(self, ):
1687
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1688
    args = getAllCategories_args()
1689
    args.write(self._oprot)
1690
    self._oprot.writeMessageEnd()
1691
    self._oprot.trans.flush()
1692
 
1693
  def recv_getAllCategories(self, ):
1694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1695
    if mtype == TMessageType.EXCEPTION:
1696
      x = TApplicationException()
1697
      x.read(self._iprot)
1698
      self._iprot.readMessageEnd()
1699
      raise x
1700
    result = getAllCategories_result()
1701
    result.read(self._iprot)
1702
    self._iprot.readMessageEnd()
1703
    if result.success is not None:
1704
      return result.success
1705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1706
 
1707
  def getAllSimilarItems(self, itemId):
1708
    """
1709
    Returns the list of similar items.
1710
 
1711
    Parameters:
1712
     - itemId
1713
    """
1714
    self.send_getAllSimilarItems(itemId)
1715
    return self.recv_getAllSimilarItems()
1716
 
1717
  def send_getAllSimilarItems(self, itemId):
1718
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1719
    args = getAllSimilarItems_args()
1720
    args.itemId = itemId
1721
    args.write(self._oprot)
1722
    self._oprot.writeMessageEnd()
1723
    self._oprot.trans.flush()
1724
 
1725
  def recv_getAllSimilarItems(self, ):
1726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1727
    if mtype == TMessageType.EXCEPTION:
1728
      x = TApplicationException()
1729
      x.read(self._iprot)
1730
      self._iprot.readMessageEnd()
1731
      raise x
1732
    result = getAllSimilarItems_result()
1733
    result.read(self._iprot)
1734
    self._iprot.readMessageEnd()
1735
    if result.success is not None:
1736
      return result.success
1737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1738
 
1739
  def addSimilarItem(self, itemId, catalogItemId):
1740
    """
1741
    Adds similar item.
1742
 
1743
    Parameters:
1744
     - itemId
1745
     - catalogItemId
1746
    """
1747
    self.send_addSimilarItem(itemId, catalogItemId)
1748
    return self.recv_addSimilarItem()
1749
 
1750
  def send_addSimilarItem(self, itemId, catalogItemId):
1751
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1752
    args = addSimilarItem_args()
1753
    args.itemId = itemId
1754
    args.catalogItemId = catalogItemId
1755
    args.write(self._oprot)
1756
    self._oprot.writeMessageEnd()
1757
    self._oprot.trans.flush()
1758
 
1759
  def recv_addSimilarItem(self, ):
1760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1761
    if mtype == TMessageType.EXCEPTION:
1762
      x = TApplicationException()
1763
      x.read(self._iprot)
1764
      self._iprot.readMessageEnd()
1765
      raise x
1766
    result = addSimilarItem_result()
1767
    result.read(self._iprot)
1768
    self._iprot.readMessageEnd()
1769
    if result.success is not None:
1770
      return result.success
1771
    if result.cex is not None:
1772
      raise result.cex
1773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1774
 
6512 kshitij.so 1775
  def addTag(self, displayName, itemId):
1776
    """
1777
    Tag Related
1778
 
1779
    Parameters:
1780
     - displayName
1781
     - itemId
1782
    """
1783
    self.send_addTag(displayName, itemId)
1784
    return self.recv_addTag()
1785
 
1786
  def send_addTag(self, displayName, itemId):
1787
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1788
    args = addTag_args()
1789
    args.displayName = displayName
1790
    args.itemId = itemId
1791
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1794
 
1795
  def recv_addTag(self, ):
1796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797
    if mtype == TMessageType.EXCEPTION:
1798
      x = TApplicationException()
1799
      x.read(self._iprot)
1800
      self._iprot.readMessageEnd()
1801
      raise x
1802
    result = addTag_result()
1803
    result.read(self._iprot)
1804
    self._iprot.readMessageEnd()
1805
    if result.success is not None:
1806
      return result.success
1807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1808
 
1809
  def deleteEntityTag(self, displayName, itemId):
1810
    """
1811
    Parameters:
1812
     - displayName
1813
     - itemId
1814
    """
1815
    self.send_deleteEntityTag(displayName, itemId)
1816
    return self.recv_deleteEntityTag()
1817
 
1818
  def send_deleteEntityTag(self, displayName, itemId):
1819
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1820
    args = deleteEntityTag_args()
1821
    args.displayName = displayName
1822
    args.itemId = itemId
1823
    args.write(self._oprot)
1824
    self._oprot.writeMessageEnd()
1825
    self._oprot.trans.flush()
1826
 
1827
  def recv_deleteEntityTag(self, ):
1828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1829
    if mtype == TMessageType.EXCEPTION:
1830
      x = TApplicationException()
1831
      x.read(self._iprot)
1832
      self._iprot.readMessageEnd()
1833
      raise x
1834
    result = deleteEntityTag_result()
1835
    result.read(self._iprot)
1836
    self._iprot.readMessageEnd()
1837
    if result.success is not None:
1838
      return result.success
1839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1840
 
1841
  def deleteTag(self, displayName):
1842
    """
1843
    Parameters:
1844
     - displayName
1845
    """
1846
    self.send_deleteTag(displayName)
1847
    return self.recv_deleteTag()
1848
 
1849
  def send_deleteTag(self, displayName):
1850
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1851
    args = deleteTag_args()
1852
    args.displayName = displayName
1853
    args.write(self._oprot)
1854
    self._oprot.writeMessageEnd()
1855
    self._oprot.trans.flush()
1856
 
1857
  def recv_deleteTag(self, ):
1858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1859
    if mtype == TMessageType.EXCEPTION:
1860
      x = TApplicationException()
1861
      x.read(self._iprot)
1862
      self._iprot.readMessageEnd()
1863
      raise x
1864
    result = deleteTag_result()
1865
    result.read(self._iprot)
1866
    self._iprot.readMessageEnd()
1867
    if result.success is not None:
1868
      return result.success
1869
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1870
 
1871
  def getAllTags(self, ):
1872
    self.send_getAllTags()
1873
    return self.recv_getAllTags()
1874
 
1875
  def send_getAllTags(self, ):
1876
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1877
    args = getAllTags_args()
1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_getAllTags(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = getAllTags_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    if result.success is not None:
1893
      return result.success
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1895
 
1896
  def getAllEntitiesByTagName(self, displayName):
1897
    """
1898
    Parameters:
1899
     - displayName
1900
    """
1901
    self.send_getAllEntitiesByTagName(displayName)
1902
    return self.recv_getAllEntitiesByTagName()
1903
 
1904
  def send_getAllEntitiesByTagName(self, displayName):
1905
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1906
    args = getAllEntitiesByTagName_args()
1907
    args.displayName = displayName
1908
    args.write(self._oprot)
1909
    self._oprot.writeMessageEnd()
1910
    self._oprot.trans.flush()
1911
 
1912
  def recv_getAllEntitiesByTagName(self, ):
1913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1914
    if mtype == TMessageType.EXCEPTION:
1915
      x = TApplicationException()
1916
      x.read(self._iprot)
1917
      self._iprot.readMessageEnd()
1918
      raise x
1919
    result = getAllEntitiesByTagName_result()
1920
    result.read(self._iprot)
1921
    self._iprot.readMessageEnd()
1922
    if result.success is not None:
1923
      return result.success
1924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1925
 
6845 amit.gupta 1926
  def getAllEntityTags(self, ):
1927
    self.send_getAllEntityTags()
1928
    return self.recv_getAllEntityTags()
1929
 
1930
  def send_getAllEntityTags(self, ):
1931
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1932
    args = getAllEntityTags_args()
1933
    args.write(self._oprot)
1934
    self._oprot.writeMessageEnd()
1935
    self._oprot.trans.flush()
1936
 
1937
  def recv_getAllEntityTags(self, ):
1938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1939
    if mtype == TMessageType.EXCEPTION:
1940
      x = TApplicationException()
1941
      x.read(self._iprot)
1942
      self._iprot.readMessageEnd()
1943
      raise x
1944
    result = getAllEntityTags_result()
1945
    result.read(self._iprot)
1946
    self._iprot.readMessageEnd()
1947
    if result.success is not None:
1948
      return result.success
1949
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1950
 
6850 kshitij.so 1951
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1952
    """
1953
    Parameters:
1954
     - bannerName
1955
     - imageName
1956
     - link
1957
     - priority
1958
     - isActive
1959
     - hasMap
1960
    """
1961
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1962
    return self.recv_addBanner()
1963
 
1964
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1965
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1966
    args = addBanner_args()
1967
    args.bannerName = bannerName
1968
    args.imageName = imageName
1969
    args.link = link
1970
    args.priority = priority
1971
    args.isActive = isActive
1972
    args.hasMap = hasMap
1973
    args.write(self._oprot)
1974
    self._oprot.writeMessageEnd()
1975
    self._oprot.trans.flush()
1976
 
1977
  def recv_addBanner(self, ):
1978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1979
    if mtype == TMessageType.EXCEPTION:
1980
      x = TApplicationException()
1981
      x.read(self._iprot)
1982
      self._iprot.readMessageEnd()
1983
      raise x
1984
    result = addBanner_result()
1985
    result.read(self._iprot)
1986
    self._iprot.readMessageEnd()
1987
    if result.success is not None:
1988
      return result.success
1989
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1990
 
1991
  def getAllBanners(self, ):
1992
    self.send_getAllBanners()
1993
    return self.recv_getAllBanners()
1994
 
1995
  def send_getAllBanners(self, ):
1996
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
1997
    args = getAllBanners_args()
1998
    args.write(self._oprot)
1999
    self._oprot.writeMessageEnd()
2000
    self._oprot.trans.flush()
2001
 
2002
  def recv_getAllBanners(self, ):
2003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2004
    if mtype == TMessageType.EXCEPTION:
2005
      x = TApplicationException()
2006
      x.read(self._iprot)
2007
      self._iprot.readMessageEnd()
2008
      raise x
2009
    result = getAllBanners_result()
2010
    result.read(self._iprot)
2011
    self._iprot.readMessageEnd()
2012
    if result.success is not None:
2013
      return result.success
2014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2015
 
2016
  def deleteBanner(self, bannerName):
2017
    """
2018
    Parameters:
2019
     - bannerName
2020
    """
2021
    self.send_deleteBanner(bannerName)
2022
    return self.recv_deleteBanner()
2023
 
2024
  def send_deleteBanner(self, bannerName):
2025
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2026
    args = deleteBanner_args()
2027
    args.bannerName = bannerName
2028
    args.write(self._oprot)
2029
    self._oprot.writeMessageEnd()
2030
    self._oprot.trans.flush()
2031
 
2032
  def recv_deleteBanner(self, ):
2033
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2034
    if mtype == TMessageType.EXCEPTION:
2035
      x = TApplicationException()
2036
      x.read(self._iprot)
2037
      self._iprot.readMessageEnd()
2038
      raise x
2039
    result = deleteBanner_result()
2040
    result.read(self._iprot)
2041
    self._iprot.readMessageEnd()
2042
    if result.success is not None:
2043
      return result.success
2044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2045
 
2046
  def getBannerDetails(self, bannerName):
2047
    """
2048
    Parameters:
2049
     - bannerName
2050
    """
2051
    self.send_getBannerDetails(bannerName)
2052
    return self.recv_getBannerDetails()
2053
 
2054
  def send_getBannerDetails(self, bannerName):
2055
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2056
    args = getBannerDetails_args()
2057
    args.bannerName = bannerName
2058
    args.write(self._oprot)
2059
    self._oprot.writeMessageEnd()
2060
    self._oprot.trans.flush()
2061
 
2062
  def recv_getBannerDetails(self, ):
2063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2064
    if mtype == TMessageType.EXCEPTION:
2065
      x = TApplicationException()
2066
      x.read(self._iprot)
2067
      self._iprot.readMessageEnd()
2068
      raise x
2069
    result = getBannerDetails_result()
2070
    result.read(self._iprot)
2071
    self._iprot.readMessageEnd()
2072
    if result.success is not None:
2073
      return result.success
2074
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2075
 
2076
  def getActiveBanners(self, ):
2077
    self.send_getActiveBanners()
2078
    return self.recv_getActiveBanners()
2079
 
2080
  def send_getActiveBanners(self, ):
2081
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2082
    args = getActiveBanners_args()
2083
    args.write(self._oprot)
2084
    self._oprot.writeMessageEnd()
2085
    self._oprot.trans.flush()
2086
 
2087
  def recv_getActiveBanners(self, ):
2088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2089
    if mtype == TMessageType.EXCEPTION:
2090
      x = TApplicationException()
2091
      x.read(self._iprot)
2092
      self._iprot.readMessageEnd()
2093
      raise x
2094
    result = getActiveBanners_result()
2095
    result.read(self._iprot)
2096
    self._iprot.readMessageEnd()
2097
    if result.success is not None:
2098
      return result.success
2099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2100
 
6849 kshitij.so 2101
  def addBannerMap(self, bannerName, mapLink, coordinates):
2102
    """
2103
    Parameters:
2104
     - bannerName
2105
     - mapLink
2106
     - coordinates
2107
    """
2108
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2109
    return self.recv_addBannerMap()
2110
 
2111
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2112
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2113
    args = addBannerMap_args()
2114
    args.bannerName = bannerName
2115
    args.mapLink = mapLink
2116
    args.coordinates = coordinates
2117
    args.write(self._oprot)
2118
    self._oprot.writeMessageEnd()
2119
    self._oprot.trans.flush()
2120
 
2121
  def recv_addBannerMap(self, ):
2122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2123
    if mtype == TMessageType.EXCEPTION:
2124
      x = TApplicationException()
2125
      x.read(self._iprot)
2126
      self._iprot.readMessageEnd()
2127
      raise x
2128
    result = addBannerMap_result()
2129
    result.read(self._iprot)
2130
    self._iprot.readMessageEnd()
2131
    if result.success is not None:
2132
      return result.success
2133
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2134
 
2135
  def deleteBannerMap(self, bannerName):
2136
    """
2137
    Parameters:
2138
     - bannerName
2139
    """
2140
    self.send_deleteBannerMap(bannerName)
2141
    return self.recv_deleteBannerMap()
2142
 
2143
  def send_deleteBannerMap(self, bannerName):
2144
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2145
    args = deleteBannerMap_args()
2146
    args.bannerName = bannerName
2147
    args.write(self._oprot)
2148
    self._oprot.writeMessageEnd()
2149
    self._oprot.trans.flush()
2150
 
2151
  def recv_deleteBannerMap(self, ):
2152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2153
    if mtype == TMessageType.EXCEPTION:
2154
      x = TApplicationException()
2155
      x.read(self._iprot)
2156
      self._iprot.readMessageEnd()
2157
      raise x
2158
    result = deleteBannerMap_result()
2159
    result.read(self._iprot)
2160
    self._iprot.readMessageEnd()
2161
    if result.success is not None:
2162
      return result.success
2163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2164
 
2165
  def getBannerMapDetails(self, bannerName):
2166
    """
2167
    Parameters:
2168
     - bannerName
2169
    """
2170
    self.send_getBannerMapDetails(bannerName)
2171
    return self.recv_getBannerMapDetails()
2172
 
2173
  def send_getBannerMapDetails(self, bannerName):
2174
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2175
    args = getBannerMapDetails_args()
2176
    args.bannerName = bannerName
2177
    args.write(self._oprot)
2178
    self._oprot.writeMessageEnd()
2179
    self._oprot.trans.flush()
2180
 
2181
  def recv_getBannerMapDetails(self, ):
2182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2183
    if mtype == TMessageType.EXCEPTION:
2184
      x = TApplicationException()
2185
      x.read(self._iprot)
2186
      self._iprot.readMessageEnd()
2187
      raise x
2188
    result = getBannerMapDetails_result()
2189
    result.read(self._iprot)
2190
    self._iprot.readMessageEnd()
2191
    if result.success is not None:
2192
      return result.success
2193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2194
 
5944 mandeep.dh 2195
  def deleteSimilarItem(self, itemId, catalogItemId):
2196
    """
2197
    Delete similar item.
2198
 
2199
    Parameters:
2200
     - itemId
2201
     - catalogItemId
2202
    """
2203
    self.send_deleteSimilarItem(itemId, catalogItemId)
2204
    return self.recv_deleteSimilarItem()
2205
 
2206
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2207
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2208
    args = deleteSimilarItem_args()
2209
    args.itemId = itemId
2210
    args.catalogItemId = catalogItemId
2211
    args.write(self._oprot)
2212
    self._oprot.writeMessageEnd()
2213
    self._oprot.trans.flush()
2214
 
2215
  def recv_deleteSimilarItem(self, ):
2216
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2217
    if mtype == TMessageType.EXCEPTION:
2218
      x = TApplicationException()
2219
      x.read(self._iprot)
2220
      self._iprot.readMessageEnd()
2221
      raise x
2222
    result = deleteSimilarItem_result()
2223
    result.read(self._iprot)
2224
    self._iprot.readMessageEnd()
2225
    if result.success is not None:
2226
      return result.success
2227
    if result.cex is not None:
2228
      raise result.cex
2229
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2230
 
2231
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2232
    """
2233
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2234
    If yes, returns the itemId else returns 0
2235
 
2236
    Parameters:
2237
     - brand
2238
     - modelNumber
2239
     - modelName
2240
     - color
2241
    """
2242
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2243
    return self.recv_checkSimilarItem()
2244
 
2245
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2246
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2247
    args = checkSimilarItem_args()
2248
    args.brand = brand
2249
    args.modelNumber = modelNumber
2250
    args.modelName = modelName
2251
    args.color = color
2252
    args.write(self._oprot)
2253
    self._oprot.writeMessageEnd()
2254
    self._oprot.trans.flush()
2255
 
2256
  def recv_checkSimilarItem(self, ):
2257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2258
    if mtype == TMessageType.EXCEPTION:
2259
      x = TApplicationException()
2260
      x.read(self._iprot)
2261
      self._iprot.readMessageEnd()
2262
      raise x
2263
    result = checkSimilarItem_result()
2264
    result.read(self._iprot)
2265
    self._iprot.readMessageEnd()
2266
    if result.success is not None:
2267
      return result.success
2268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2269
 
2270
  def validateRiskyStatus(self, itemId):
2271
    """
2272
    Check wether item is risky and change status if inventory is not available for risky items
2273
 
2274
    Parameters:
2275
     - itemId
2276
    """
2277
    self.send_validateRiskyStatus(itemId)
2278
    self.recv_validateRiskyStatus()
2279
 
2280
  def send_validateRiskyStatus(self, itemId):
2281
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2282
    args = validateRiskyStatus_args()
2283
    args.itemId = itemId
2284
    args.write(self._oprot)
2285
    self._oprot.writeMessageEnd()
2286
    self._oprot.trans.flush()
2287
 
2288
  def recv_validateRiskyStatus(self, ):
2289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2290
    if mtype == TMessageType.EXCEPTION:
2291
      x = TApplicationException()
2292
      x.read(self._iprot)
2293
      self._iprot.readMessageEnd()
2294
      raise x
2295
    result = validateRiskyStatus_result()
2296
    result.read(self._iprot)
2297
    self._iprot.readMessageEnd()
2298
    return
2299
 
2300
  def changeItemRiskyFlag(self, itemId, risky):
2301
    """
2302
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2303
 
2304
    Parameters:
2305
     - itemId
2306
     - risky
2307
    """
2308
    self.send_changeItemRiskyFlag(itemId, risky)
2309
    self.recv_changeItemRiskyFlag()
2310
 
2311
  def send_changeItemRiskyFlag(self, itemId, risky):
2312
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2313
    args = changeItemRiskyFlag_args()
2314
    args.itemId = itemId
2315
    args.risky = risky
2316
    args.write(self._oprot)
2317
    self._oprot.writeMessageEnd()
2318
    self._oprot.trans.flush()
2319
 
2320
  def recv_changeItemRiskyFlag(self, ):
2321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2322
    if mtype == TMessageType.EXCEPTION:
2323
      x = TApplicationException()
2324
      x.read(self._iprot)
2325
      self._iprot.readMessageEnd()
2326
      raise x
2327
    result = changeItemRiskyFlag_result()
2328
    result.read(self._iprot)
2329
    self._iprot.readMessageEnd()
2330
    return
2331
 
2332
  def getItemsByRiskyFlag(self, ):
2333
    """
2334
    Returns list of items marked as risky.
2335
    """
2336
    self.send_getItemsByRiskyFlag()
2337
    return self.recv_getItemsByRiskyFlag()
2338
 
2339
  def send_getItemsByRiskyFlag(self, ):
2340
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2341
    args = getItemsByRiskyFlag_args()
2342
    args.write(self._oprot)
2343
    self._oprot.writeMessageEnd()
2344
    self._oprot.trans.flush()
2345
 
2346
  def recv_getItemsByRiskyFlag(self, ):
2347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2348
    if mtype == TMessageType.EXCEPTION:
2349
      x = TApplicationException()
2350
      x.read(self._iprot)
2351
      self._iprot.readMessageEnd()
2352
      raise x
2353
    result = getItemsByRiskyFlag_result()
2354
    result.read(self._iprot)
2355
    self._iprot.readMessageEnd()
2356
    if result.success is not None:
2357
      return result.success
2358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2359
 
2360
  def getItemsForMasterSheet(self, category, brand):
2361
    """
2362
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2363
 
2364
    Parameters:
2365
     - category
2366
     - brand
2367
    """
2368
    self.send_getItemsForMasterSheet(category, brand)
2369
    return self.recv_getItemsForMasterSheet()
2370
 
2371
  def send_getItemsForMasterSheet(self, category, brand):
2372
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2373
    args = getItemsForMasterSheet_args()
2374
    args.category = category
2375
    args.brand = brand
2376
    args.write(self._oprot)
2377
    self._oprot.writeMessageEnd()
2378
    self._oprot.trans.flush()
2379
 
2380
  def recv_getItemsForMasterSheet(self, ):
2381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2382
    if mtype == TMessageType.EXCEPTION:
2383
      x = TApplicationException()
2384
      x.read(self._iprot)
2385
      self._iprot.readMessageEnd()
2386
      raise x
2387
    result = getItemsForMasterSheet_result()
2388
    result.read(self._iprot)
2389
    self._iprot.readMessageEnd()
2390
    if result.success is not None:
2391
      return result.success
2392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2393
 
2394
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2395
    """
2396
    Returns list of catalog ids of items with same similarity index as of the given itemId
2397
 
2398
    Parameters:
2399
     - beginIndex
2400
     - totalItems
2401
     - itemId
2402
    """
2403
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2404
    return self.recv_getSimilarItemsCatalogIds()
2405
 
2406
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2407
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2408
    args = getSimilarItemsCatalogIds_args()
2409
    args.beginIndex = beginIndex
2410
    args.totalItems = totalItems
2411
    args.itemId = itemId
2412
    args.write(self._oprot)
2413
    self._oprot.writeMessageEnd()
2414
    self._oprot.trans.flush()
2415
 
2416
  def recv_getSimilarItemsCatalogIds(self, ):
2417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2418
    if mtype == TMessageType.EXCEPTION:
2419
      x = TApplicationException()
2420
      x.read(self._iprot)
2421
      self._iprot.readMessageEnd()
2422
      raise x
2423
    result = getSimilarItemsCatalogIds_result()
2424
    result.read(self._iprot)
2425
    self._iprot.readMessageEnd()
2426
    if result.success is not None:
2427
      return result.success
2428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2429
 
2430
  def addProductNotification(self, itemId, email):
2431
    """
2432
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2433
 
2434
    Parameters:
2435
     - itemId
2436
     - email
2437
    """
2438
    self.send_addProductNotification(itemId, email)
2439
    return self.recv_addProductNotification()
2440
 
2441
  def send_addProductNotification(self, itemId, email):
2442
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2443
    args = addProductNotification_args()
2444
    args.itemId = itemId
2445
    args.email = email
2446
    args.write(self._oprot)
2447
    self._oprot.writeMessageEnd()
2448
    self._oprot.trans.flush()
2449
 
2450
  def recv_addProductNotification(self, ):
2451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2452
    if mtype == TMessageType.EXCEPTION:
2453
      x = TApplicationException()
2454
      x.read(self._iprot)
2455
      self._iprot.readMessageEnd()
2456
      raise x
2457
    result = addProductNotification_result()
2458
    result.read(self._iprot)
2459
    self._iprot.readMessageEnd()
2460
    if result.success is not None:
2461
      return result.success
2462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2463
 
2464
  def sendProductNotifications(self, ):
2465
    """
2466
    Send the product notifications to the users for items which has stock.
2467
    """
2468
    self.send_sendProductNotifications()
2469
    return self.recv_sendProductNotifications()
2470
 
2471
  def send_sendProductNotifications(self, ):
2472
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2473
    args = sendProductNotifications_args()
2474
    args.write(self._oprot)
2475
    self._oprot.writeMessageEnd()
2476
    self._oprot.trans.flush()
2477
 
2478
  def recv_sendProductNotifications(self, ):
2479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2480
    if mtype == TMessageType.EXCEPTION:
2481
      x = TApplicationException()
2482
      x.read(self._iprot)
2483
      self._iprot.readMessageEnd()
2484
      raise x
2485
    result = sendProductNotifications_result()
2486
    result.read(self._iprot)
2487
    self._iprot.readMessageEnd()
2488
    if result.success is not None:
2489
      return result.success
2490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2491
 
2492
  def getAllBrandsByCategory(self, categoryId):
2493
    """
2494
    Returns list of brand names for a given category Id
2495
 
2496
    Parameters:
2497
     - categoryId
2498
    """
2499
    self.send_getAllBrandsByCategory(categoryId)
2500
    return self.recv_getAllBrandsByCategory()
2501
 
2502
  def send_getAllBrandsByCategory(self, categoryId):
2503
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2504
    args = getAllBrandsByCategory_args()
2505
    args.categoryId = categoryId
2506
    args.write(self._oprot)
2507
    self._oprot.writeMessageEnd()
2508
    self._oprot.trans.flush()
2509
 
2510
  def recv_getAllBrandsByCategory(self, ):
2511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2512
    if mtype == TMessageType.EXCEPTION:
2513
      x = TApplicationException()
2514
      x.read(self._iprot)
2515
      self._iprot.readMessageEnd()
2516
      raise x
2517
    result = getAllBrandsByCategory_result()
2518
    result.read(self._iprot)
2519
    self._iprot.readMessageEnd()
2520
    if result.success is not None:
2521
      return result.success
2522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2523
 
2524
  def getAllBrands(self, ):
2525
    """
2526
    Returns list of brand names
2527
    """
2528
    self.send_getAllBrands()
2529
    return self.recv_getAllBrands()
2530
 
2531
  def send_getAllBrands(self, ):
2532
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2533
    args = getAllBrands_args()
2534
    args.write(self._oprot)
2535
    self._oprot.writeMessageEnd()
2536
    self._oprot.trans.flush()
2537
 
2538
  def recv_getAllBrands(self, ):
2539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2540
    if mtype == TMessageType.EXCEPTION:
2541
      x = TApplicationException()
2542
      x.read(self._iprot)
2543
      self._iprot.readMessageEnd()
2544
      raise x
2545
    result = getAllBrands_result()
2546
    result.read(self._iprot)
2547
    self._iprot.readMessageEnd()
2548
    if result.success is not None:
2549
      return result.success
2550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2551
 
2552
  def getAllSources(self, ):
2553
    """
2554
    Return list of all sources
2555
    """
2556
    self.send_getAllSources()
2557
    return self.recv_getAllSources()
2558
 
2559
  def send_getAllSources(self, ):
2560
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2561
    args = getAllSources_args()
2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
2566
  def recv_getAllSources(self, ):
2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
2573
    result = getAllSources_result()
2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
2576
    if result.success is not None:
2577
      return result.success
2578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2579
 
2580
  def getItemPricingBySource(self, itemId, sourceId):
2581
    """
2582
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2583
 
2584
    Parameters:
2585
     - itemId
2586
     - sourceId
2587
    """
2588
    self.send_getItemPricingBySource(itemId, sourceId)
2589
    return self.recv_getItemPricingBySource()
2590
 
2591
  def send_getItemPricingBySource(self, itemId, sourceId):
2592
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2593
    args = getItemPricingBySource_args()
2594
    args.itemId = itemId
2595
    args.sourceId = sourceId
2596
    args.write(self._oprot)
2597
    self._oprot.writeMessageEnd()
2598
    self._oprot.trans.flush()
2599
 
2600
  def recv_getItemPricingBySource(self, ):
2601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2602
    if mtype == TMessageType.EXCEPTION:
2603
      x = TApplicationException()
2604
      x.read(self._iprot)
2605
      self._iprot.readMessageEnd()
2606
      raise x
2607
    result = getItemPricingBySource_result()
2608
    result.read(self._iprot)
2609
    self._iprot.readMessageEnd()
2610
    if result.success is not None:
2611
      return result.success
2612
    if result.cex is not None:
2613
      raise result.cex
2614
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2615
 
2616
  def addSourceItemPricing(self, sourceItemPricing):
2617
    """
2618
    Adds prices to be displayed corresponding to the item if user comes from a source.
2619
    If item is not found or source is not found, it will throw exception.
2620
 
2621
    Parameters:
2622
     - sourceItemPricing
2623
    """
2624
    self.send_addSourceItemPricing(sourceItemPricing)
2625
    self.recv_addSourceItemPricing()
2626
 
2627
  def send_addSourceItemPricing(self, sourceItemPricing):
2628
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2629
    args = addSourceItemPricing_args()
2630
    args.sourceItemPricing = sourceItemPricing
2631
    args.write(self._oprot)
2632
    self._oprot.writeMessageEnd()
2633
    self._oprot.trans.flush()
2634
 
2635
  def recv_addSourceItemPricing(self, ):
2636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2637
    if mtype == TMessageType.EXCEPTION:
2638
      x = TApplicationException()
2639
      x.read(self._iprot)
2640
      self._iprot.readMessageEnd()
2641
      raise x
2642
    result = addSourceItemPricing_result()
2643
    result.read(self._iprot)
2644
    self._iprot.readMessageEnd()
2645
    if result.cex is not None:
2646
      raise result.cex
2647
    return
2648
 
2649
  def getAllSourcePricing(self, itemId):
2650
    """
2651
    Returns the list of source pricing information of an item.
2652
    Raises an exception if item not found corresponding to itemId
2653
 
2654
    Parameters:
2655
     - itemId
2656
    """
2657
    self.send_getAllSourcePricing(itemId)
2658
    return self.recv_getAllSourcePricing()
2659
 
2660
  def send_getAllSourcePricing(self, itemId):
2661
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2662
    args = getAllSourcePricing_args()
2663
    args.itemId = itemId
2664
    args.write(self._oprot)
2665
    self._oprot.writeMessageEnd()
2666
    self._oprot.trans.flush()
2667
 
2668
  def recv_getAllSourcePricing(self, ):
2669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2670
    if mtype == TMessageType.EXCEPTION:
2671
      x = TApplicationException()
2672
      x.read(self._iprot)
2673
      self._iprot.readMessageEnd()
2674
      raise x
2675
    result = getAllSourcePricing_result()
2676
    result.read(self._iprot)
2677
    self._iprot.readMessageEnd()
2678
    if result.success is not None:
2679
      return result.success
2680
    if result.cex is not None:
2681
      raise result.cex
2682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2683
 
2684
  def getItemForSource(self, item_id, sourceId):
2685
    """
2686
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2687
 
2688
    Parameters:
2689
     - item_id
2690
     - sourceId
2691
    """
2692
    self.send_getItemForSource(item_id, sourceId)
2693
    return self.recv_getItemForSource()
2694
 
2695
  def send_getItemForSource(self, item_id, sourceId):
2696
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2697
    args = getItemForSource_args()
2698
    args.item_id = item_id
2699
    args.sourceId = sourceId
2700
    args.write(self._oprot)
2701
    self._oprot.writeMessageEnd()
2702
    self._oprot.trans.flush()
2703
 
2704
  def recv_getItemForSource(self, ):
2705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2706
    if mtype == TMessageType.EXCEPTION:
2707
      x = TApplicationException()
2708
      x.read(self._iprot)
2709
      self._iprot.readMessageEnd()
2710
      raise x
2711
    result = getItemForSource_result()
2712
    result.read(self._iprot)
2713
    self._iprot.readMessageEnd()
2714
    if result.success is not None:
2715
      return result.success
2716
    if result.cex is not None:
2717
      raise result.cex
2718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2719
 
2720
  def searchItemsInRange(self, searchTerms, offset, limit):
2721
    """
2722
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2723
 
2724
    Parameters:
2725
     - searchTerms
2726
     - offset
2727
     - limit
2728
    """
2729
    self.send_searchItemsInRange(searchTerms, offset, limit)
2730
    return self.recv_searchItemsInRange()
2731
 
2732
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2733
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2734
    args = searchItemsInRange_args()
2735
    args.searchTerms = searchTerms
2736
    args.offset = offset
2737
    args.limit = limit
2738
    args.write(self._oprot)
2739
    self._oprot.writeMessageEnd()
2740
    self._oprot.trans.flush()
2741
 
2742
  def recv_searchItemsInRange(self, ):
2743
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2744
    if mtype == TMessageType.EXCEPTION:
2745
      x = TApplicationException()
2746
      x.read(self._iprot)
2747
      self._iprot.readMessageEnd()
2748
      raise x
2749
    result = searchItemsInRange_result()
2750
    result.read(self._iprot)
2751
    self._iprot.readMessageEnd()
2752
    if result.success is not None:
2753
      return result.success
2754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2755
 
2756
  def getSearchResultCount(self, searchTerms):
2757
    """
2758
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2759
 
2760
    Parameters:
2761
     - searchTerms
2762
    """
2763
    self.send_getSearchResultCount(searchTerms)
2764
    return self.recv_getSearchResultCount()
2765
 
2766
  def send_getSearchResultCount(self, searchTerms):
2767
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2768
    args = getSearchResultCount_args()
2769
    args.searchTerms = searchTerms
2770
    args.write(self._oprot)
2771
    self._oprot.writeMessageEnd()
2772
    self._oprot.trans.flush()
2773
 
2774
  def recv_getSearchResultCount(self, ):
2775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2776
    if mtype == TMessageType.EXCEPTION:
2777
      x = TApplicationException()
2778
      x.read(self._iprot)
2779
      self._iprot.readMessageEnd()
2780
      raise x
2781
    result = getSearchResultCount_result()
2782
    result.read(self._iprot)
2783
    self._iprot.readMessageEnd()
2784
    if result.success is not None:
2785
      return result.success
2786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2787
 
2788
  def getProductNotifications(self, startDateTime):
2789
    """
2790
    Returns a list of product notifications added after a supplied datetime
2791
 
2792
    Parameters:
2793
     - startDateTime
2794
    """
2795
    self.send_getProductNotifications(startDateTime)
2796
    return self.recv_getProductNotifications()
2797
 
2798
  def send_getProductNotifications(self, startDateTime):
2799
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2800
    args = getProductNotifications_args()
2801
    args.startDateTime = startDateTime
2802
    args.write(self._oprot)
2803
    self._oprot.writeMessageEnd()
2804
    self._oprot.trans.flush()
2805
 
2806
  def recv_getProductNotifications(self, ):
2807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2808
    if mtype == TMessageType.EXCEPTION:
2809
      x = TApplicationException()
2810
      x.read(self._iprot)
2811
      self._iprot.readMessageEnd()
2812
      raise x
2813
    result = getProductNotifications_result()
2814
    result.read(self._iprot)
2815
    self._iprot.readMessageEnd()
2816
    if result.success is not None:
2817
      return result.success
2818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2819
 
2820
  def getProductNotificationRequestCount(self, startDateTime):
2821
    """
2822
    Returns a list of count of requests for product notification against each item
2823
 
2824
    Parameters:
2825
     - startDateTime
2826
    """
2827
    self.send_getProductNotificationRequestCount(startDateTime)
2828
    return self.recv_getProductNotificationRequestCount()
2829
 
2830
  def send_getProductNotificationRequestCount(self, startDateTime):
2831
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2832
    args = getProductNotificationRequestCount_args()
2833
    args.startDateTime = startDateTime
2834
    args.write(self._oprot)
2835
    self._oprot.writeMessageEnd()
2836
    self._oprot.trans.flush()
2837
 
2838
  def recv_getProductNotificationRequestCount(self, ):
2839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2840
    if mtype == TMessageType.EXCEPTION:
2841
      x = TApplicationException()
2842
      x.read(self._iprot)
2843
      self._iprot.readMessageEnd()
2844
      raise x
2845
    result = getProductNotificationRequestCount_result()
2846
    result.read(self._iprot)
2847
    self._iprot.readMessageEnd()
2848
    if result.success is not None:
2849
      return result.success
2850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2851
 
2852
  def addAuthorizationLog(self, itemId, username, reason):
2853
    """
2854
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2855
 
2856
    Parameters:
2857
     - itemId
2858
     - username
2859
     - reason
2860
    """
2861
    self.send_addAuthorizationLog(itemId, username, reason)
2862
    return self.recv_addAuthorizationLog()
2863
 
2864
  def send_addAuthorizationLog(self, itemId, username, reason):
2865
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2866
    args = addAuthorizationLog_args()
2867
    args.itemId = itemId
2868
    args.username = username
2869
    args.reason = reason
2870
    args.write(self._oprot)
2871
    self._oprot.writeMessageEnd()
2872
    self._oprot.trans.flush()
2873
 
2874
  def recv_addAuthorizationLog(self, ):
2875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2876
    if mtype == TMessageType.EXCEPTION:
2877
      x = TApplicationException()
2878
      x.read(self._iprot)
2879
      self._iprot.readMessageEnd()
2880
      raise x
2881
    result = addAuthorizationLog_result()
2882
    result.read(self._iprot)
2883
    self._iprot.readMessageEnd()
2884
    if result.success is not None:
2885
      return result.success
2886
    if result.cex is not None:
2887
      raise result.cex
2888
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2889
 
2890
  def getClearanceSaleCatalogIds(self, ):
2891
    self.send_getClearanceSaleCatalogIds()
2892
    return self.recv_getClearanceSaleCatalogIds()
2893
 
2894
  def send_getClearanceSaleCatalogIds(self, ):
2895
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2896
    args = getClearanceSaleCatalogIds_args()
2897
    args.write(self._oprot)
2898
    self._oprot.writeMessageEnd()
2899
    self._oprot.trans.flush()
2900
 
2901
  def recv_getClearanceSaleCatalogIds(self, ):
2902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2903
    if mtype == TMessageType.EXCEPTION:
2904
      x = TApplicationException()
2905
      x.read(self._iprot)
2906
      self._iprot.readMessageEnd()
2907
      raise x
2908
    result = getClearanceSaleCatalogIds_result()
2909
    result.read(self._iprot)
2910
    self._iprot.readMessageEnd()
2911
    if result.success is not None:
2912
      return result.success
2913
    if result.cex is not None:
2914
      raise result.cex
2915
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2916
 
2917
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2918
    """
2919
    Parameters:
2920
     - catalog_item_id
2921
     - voucherType
2922
     - voucherAmount
2923
    """
2924
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2925
    return self.recv_addupdateVoucherForItem()
2926
 
2927
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2928
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2929
    args = addupdateVoucherForItem_args()
2930
    args.catalog_item_id = catalog_item_id
2931
    args.voucherType = voucherType
2932
    args.voucherAmount = voucherAmount
2933
    args.write(self._oprot)
2934
    self._oprot.writeMessageEnd()
2935
    self._oprot.trans.flush()
2936
 
2937
  def recv_addupdateVoucherForItem(self, ):
2938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2939
    if mtype == TMessageType.EXCEPTION:
2940
      x = TApplicationException()
2941
      x.read(self._iprot)
2942
      self._iprot.readMessageEnd()
2943
      raise x
2944
    result = addupdateVoucherForItem_result()
2945
    result.read(self._iprot)
2946
    self._iprot.readMessageEnd()
2947
    if result.success is not None:
2948
      return result.success
2949
    if result.cex is not None:
2950
      raise result.cex
2951
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2952
 
2953
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2954
    """
2955
    Parameters:
2956
     - catalog_item_id
2957
     - voucherType
2958
    """
2959
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2960
    return self.recv_deleteVoucherForItem()
2961
 
2962
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2963
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2964
    args = deleteVoucherForItem_args()
2965
    args.catalog_item_id = catalog_item_id
2966
    args.voucherType = voucherType
2967
    args.write(self._oprot)
2968
    self._oprot.writeMessageEnd()
2969
    self._oprot.trans.flush()
2970
 
2971
  def recv_deleteVoucherForItem(self, ):
2972
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2973
    if mtype == TMessageType.EXCEPTION:
2974
      x = TApplicationException()
2975
      x.read(self._iprot)
2976
      self._iprot.readMessageEnd()
2977
      raise x
2978
    result = deleteVoucherForItem_result()
2979
    result.read(self._iprot)
2980
    self._iprot.readMessageEnd()
2981
    if result.success is not None:
2982
      return result.success
2983
    if result.cex is not None:
2984
      raise result.cex
2985
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2986
 
2987
  def getVoucherAmount(self, itemId, voucherType):
2988
    """
2989
    Parameters:
2990
     - itemId
2991
     - voucherType
2992
    """
2993
    self.send_getVoucherAmount(itemId, voucherType)
2994
    return self.recv_getVoucherAmount()
2995
 
2996
  def send_getVoucherAmount(self, itemId, voucherType):
2997
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2998
    args = getVoucherAmount_args()
2999
    args.itemId = itemId
3000
    args.voucherType = voucherType
3001
    args.write(self._oprot)
3002
    self._oprot.writeMessageEnd()
3003
    self._oprot.trans.flush()
3004
 
3005
  def recv_getVoucherAmount(self, ):
3006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3007
    if mtype == TMessageType.EXCEPTION:
3008
      x = TApplicationException()
3009
      x.read(self._iprot)
3010
      self._iprot.readMessageEnd()
3011
      raise x
3012
    result = getVoucherAmount_result()
3013
    result.read(self._iprot)
3014
    self._iprot.readMessageEnd()
3015
    if result.success is not None:
3016
      return result.success
3017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3018
 
3019
  def getAllItemVouchers(self, itemId):
3020
    """
3021
    Parameters:
3022
     - itemId
3023
    """
3024
    self.send_getAllItemVouchers(itemId)
3025
    return self.recv_getAllItemVouchers()
3026
 
3027
  def send_getAllItemVouchers(self, itemId):
3028
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3029
    args = getAllItemVouchers_args()
3030
    args.itemId = itemId
3031
    args.write(self._oprot)
3032
    self._oprot.writeMessageEnd()
3033
    self._oprot.trans.flush()
3034
 
3035
  def recv_getAllItemVouchers(self, ):
3036
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3037
    if mtype == TMessageType.EXCEPTION:
3038
      x = TApplicationException()
3039
      x.read(self._iprot)
3040
      self._iprot.readMessageEnd()
3041
      raise x
3042
    result = getAllItemVouchers_result()
3043
    result.read(self._iprot)
3044
    self._iprot.readMessageEnd()
3045
    if result.success is not None:
3046
      return result.success
3047
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3048
 
3049
  def isValidCatalogItemId(self, catalog_item_id):
3050
    """
3051
    Parameters:
3052
     - catalog_item_id
3053
    """
3054
    self.send_isValidCatalogItemId(catalog_item_id)
3055
    return self.recv_isValidCatalogItemId()
3056
 
3057
  def send_isValidCatalogItemId(self, catalog_item_id):
3058
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3059
    args = isValidCatalogItemId_args()
3060
    args.catalog_item_id = catalog_item_id
3061
    args.write(self._oprot)
3062
    self._oprot.writeMessageEnd()
3063
    self._oprot.trans.flush()
3064
 
3065
  def recv_isValidCatalogItemId(self, ):
3066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3067
    if mtype == TMessageType.EXCEPTION:
3068
      x = TApplicationException()
3069
      x.read(self._iprot)
3070
      self._iprot.readMessageEnd()
3071
      raise x
3072
    result = isValidCatalogItemId_result()
3073
    result.read(self._iprot)
3074
    self._iprot.readMessageEnd()
3075
    if result.success is not None:
3076
      return result.success
3077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3078
 
6039 amit.gupta 3079
  def getVatPercentageForItem(self, itemId, price):
3080
    """
3081
    Parameters:
3082
     - itemId
3083
     - price
3084
    """
3085
    self.send_getVatPercentageForItem(itemId, price)
3086
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3087
 
6039 amit.gupta 3088
  def send_getVatPercentageForItem(self, itemId, price):
3089
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3090
    args = getVatPercentageForItem_args()
3091
    args.itemId = itemId
3092
    args.price = price
3093
    args.write(self._oprot)
3094
    self._oprot.writeMessageEnd()
3095
    self._oprot.trans.flush()
3096
 
3097
  def recv_getVatPercentageForItem(self, ):
3098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3099
    if mtype == TMessageType.EXCEPTION:
3100
      x = TApplicationException()
3101
      x.read(self._iprot)
3102
      self._iprot.readMessageEnd()
3103
      raise x
3104
    result = getVatPercentageForItem_result()
3105
    result.read(self._iprot)
3106
    self._iprot.readMessageEnd()
3107
    if result.success is not None:
3108
      return result.success
3109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3110
 
3111
  def getVatAmountForItem(self, itemId, price):
3112
    """
3113
    Parameters:
3114
     - itemId
3115
     - price
3116
    """
3117
    self.send_getVatAmountForItem(itemId, price)
3118
    return self.recv_getVatAmountForItem()
3119
 
3120
  def send_getVatAmountForItem(self, itemId, price):
3121
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3122
    args = getVatAmountForItem_args()
3123
    args.itemId = itemId
3124
    args.price = price
3125
    args.write(self._oprot)
3126
    self._oprot.writeMessageEnd()
3127
    self._oprot.trans.flush()
3128
 
3129
  def recv_getVatAmountForItem(self, ):
3130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3131
    if mtype == TMessageType.EXCEPTION:
3132
      x = TApplicationException()
3133
      x.read(self._iprot)
3134
      self._iprot.readMessageEnd()
3135
      raise x
3136
    result = getVatAmountForItem_result()
3137
    result.read(self._iprot)
3138
    self._iprot.readMessageEnd()
3139
    if result.success is not None:
3140
      return result.success
3141
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3142
 
6531 vikram.rag 3143
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3144
    """
3145
    Parameters:
3146
     - offset
3147
     - limit
3148
    """
3149
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3150
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3151
 
6531 vikram.rag 3152
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3153
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3154
    args = getAllIgnoredInventoryUpdateItemsList_args()
3155
    args.offset = offset
3156
    args.limit = limit
3157
    args.write(self._oprot)
3158
    self._oprot.writeMessageEnd()
3159
    self._oprot.trans.flush()
3160
 
3161
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3162
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3163
    if mtype == TMessageType.EXCEPTION:
3164
      x = TApplicationException()
3165
      x.read(self._iprot)
3166
      self._iprot.readMessageEnd()
3167
      raise x
3168
    result = getAllIgnoredInventoryUpdateItemsList_result()
3169
    result.read(self._iprot)
3170
    self._iprot.readMessageEnd()
3171
    if result.success is not None:
3172
      return result.success
3173
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3174
 
6821 amar.kumar 3175
  def getAllAliveItems(self, ):
3176
    self.send_getAllAliveItems()
3177
    return self.recv_getAllAliveItems()
3178
 
3179
  def send_getAllAliveItems(self, ):
3180
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3181
    args = getAllAliveItems_args()
3182
    args.write(self._oprot)
3183
    self._oprot.writeMessageEnd()
3184
    self._oprot.trans.flush()
3185
 
3186
  def recv_getAllAliveItems(self, ):
3187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3188
    if mtype == TMessageType.EXCEPTION:
3189
      x = TApplicationException()
3190
      x.read(self._iprot)
3191
      self._iprot.readMessageEnd()
3192
      raise x
3193
    result = getAllAliveItems_result()
3194
    result.read(self._iprot)
3195
    self._iprot.readMessageEnd()
3196
    if result.success is not None:
3197
      return result.success
3198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3199
 
6921 anupam.sin 3200
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3201
    """
3202
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3203
 
6805 anupam.sin 3204
    Parameters:
3205
     - itemId
6921 anupam.sin 3206
     - price
6805 anupam.sin 3207
     - insurerId
3208
     - quantity
3209
    """
6921 anupam.sin 3210
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3211
    return self.recv_getInsuranceAmount()
3212
 
6921 anupam.sin 3213
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3214
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3215
    args = getInsuranceAmount_args()
3216
    args.itemId = itemId
6921 anupam.sin 3217
    args.price = price
6805 anupam.sin 3218
    args.insurerId = insurerId
3219
    args.quantity = quantity
3220
    args.write(self._oprot)
3221
    self._oprot.writeMessageEnd()
3222
    self._oprot.trans.flush()
3223
 
3224
  def recv_getInsuranceAmount(self, ):
3225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3226
    if mtype == TMessageType.EXCEPTION:
3227
      x = TApplicationException()
3228
      x.read(self._iprot)
3229
      self._iprot.readMessageEnd()
3230
      raise x
3231
    result = getInsuranceAmount_result()
3232
    result.read(self._iprot)
3233
    self._iprot.readMessageEnd()
3234
    if result.success is not None:
3235
      return result.success
3236
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3237
 
3238
  def getInsurer(self, insurerId):
3239
    """
3240
    Parameters:
3241
     - insurerId
3242
    """
3243
    self.send_getInsurer(insurerId)
3244
    return self.recv_getInsurer()
3245
 
3246
  def send_getInsurer(self, insurerId):
3247
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3248
    args = getInsurer_args()
3249
    args.insurerId = insurerId
3250
    args.write(self._oprot)
3251
    self._oprot.writeMessageEnd()
3252
    self._oprot.trans.flush()
3253
 
3254
  def recv_getInsurer(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 = getInsurer_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, "getInsurer failed: unknown result");
3267
 
6838 vikram.rag 3268
  def getAllInsurers(self, ):
3269
    self.send_getAllInsurers()
3270
    return self.recv_getAllInsurers()
6805 anupam.sin 3271
 
6838 vikram.rag 3272
  def send_getAllInsurers(self, ):
3273
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3274
    args = getAllInsurers_args()
3275
    args.write(self._oprot)
3276
    self._oprot.writeMessageEnd()
3277
    self._oprot.trans.flush()
3278
 
3279
  def recv_getAllInsurers(self, ):
3280
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3281
    if mtype == TMessageType.EXCEPTION:
3282
      x = TApplicationException()
3283
      x.read(self._iprot)
3284
      self._iprot.readMessageEnd()
3285
      raise x
3286
    result = getAllInsurers_result()
3287
    result.read(self._iprot)
3288
    self._iprot.readMessageEnd()
3289
    if result.success is not None:
3290
      return result.success
3291
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3292
 
6962 rajveer 3293
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3294
    """
3295
    Parameters:
3296
     - insurerId
3297
     - amount
3298
    """
3299
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3300
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3301
 
6962 rajveer 3302
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3303
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3304
    args = updateInsuranceDeclaredAmount_args()
3305
    args.insurerId = insurerId
3306
    args.amount = amount
3307
    args.write(self._oprot)
3308
    self._oprot.writeMessageEnd()
3309
    self._oprot.trans.flush()
3310
 
3311
  def recv_updateInsuranceDeclaredAmount(self, ):
3312
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3313
    if mtype == TMessageType.EXCEPTION:
3314
      x = TApplicationException()
3315
      x.read(self._iprot)
3316
      self._iprot.readMessageEnd()
3317
      raise x
3318
    result = updateInsuranceDeclaredAmount_result()
3319
    result.read(self._iprot)
3320
    self._iprot.readMessageEnd()
3321
    return
3322
 
7190 amar.kumar 3323
  def getFreebieForItem(self, itemId):
3324
    """
3325
    Parameters:
3326
     - itemId
3327
    """
3328
    self.send_getFreebieForItem(itemId)
3329
    return self.recv_getFreebieForItem()
6962 rajveer 3330
 
7190 amar.kumar 3331
  def send_getFreebieForItem(self, itemId):
3332
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
3333
    args = getFreebieForItem_args()
3334
    args.itemId = itemId
3335
    args.write(self._oprot)
3336
    self._oprot.writeMessageEnd()
3337
    self._oprot.trans.flush()
3338
 
3339
  def recv_getFreebieForItem(self, ):
3340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3341
    if mtype == TMessageType.EXCEPTION:
3342
      x = TApplicationException()
3343
      x.read(self._iprot)
3344
      self._iprot.readMessageEnd()
3345
      raise x
3346
    result = getFreebieForItem_result()
3347
    result.read(self._iprot)
3348
    self._iprot.readMessageEnd()
3349
    if result.success is not None:
3350
      return result.success
3351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
3352
 
3353
  def addOrUpdateFreebieForItem(self, freebieItem):
3354
    """
3355
    Parameters:
3356
     - freebieItem
3357
    """
3358
    self.send_addOrUpdateFreebieForItem(freebieItem)
3359
    self.recv_addOrUpdateFreebieForItem()
3360
 
3361
  def send_addOrUpdateFreebieForItem(self, freebieItem):
3362
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
3363
    args = addOrUpdateFreebieForItem_args()
3364
    args.freebieItem = freebieItem
3365
    args.write(self._oprot)
3366
    self._oprot.writeMessageEnd()
3367
    self._oprot.trans.flush()
3368
 
3369
  def recv_addOrUpdateFreebieForItem(self, ):
3370
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3371
    if mtype == TMessageType.EXCEPTION:
3372
      x = TApplicationException()
3373
      x.read(self._iprot)
3374
      self._iprot.readMessageEnd()
3375
      raise x
3376
    result = addOrUpdateFreebieForItem_result()
3377
    result.read(self._iprot)
3378
    self._iprot.readMessageEnd()
3379
    return
3380
 
3381
 
5944 mandeep.dh 3382
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3383
  def __init__(self, handler):
3384
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3385
    self._processMap["addItem"] = Processor.process_addItem
3386
    self._processMap["updateItem"] = Processor.process_updateItem
3387
    self._processMap["isActive"] = Processor.process_isActive
3388
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3389
    self._processMap["startItemOn"] = Processor.process_startItemOn
3390
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3391
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3392
    self._processMap["getItem"] = Processor.process_getItem
3393
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3394
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3395
    self._processMap["getAllItems"] = Processor.process_getAllItems
3396
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3397
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3398
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3399
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3400
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3401
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3402
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3403
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3404
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3405
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3406
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3407
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3408
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3409
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3410
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3411
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3412
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3413
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3414
    self._processMap["addCategory"] = Processor.process_addCategory
3415
    self._processMap["getCategory"] = Processor.process_getCategory
3416
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3417
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3418
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3419
    self._processMap["addTag"] = Processor.process_addTag
3420
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3421
    self._processMap["deleteTag"] = Processor.process_deleteTag
3422
    self._processMap["getAllTags"] = Processor.process_getAllTags
3423
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3424
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3425
    self._processMap["addBanner"] = Processor.process_addBanner
3426
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3427
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3428
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3429
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3430
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3431
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3432
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3433
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3434
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3435
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3436
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3437
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3438
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3439
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3440
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3441
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3442
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3443
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3444
    self._processMap["getAllSources"] = Processor.process_getAllSources
3445
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3446
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3447
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3448
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3449
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3450
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3451
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3452
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3453
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3454
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3455
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3456
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3457
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3458
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3459
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3460
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3461
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3462
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3463
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3464
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3465
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3466
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 3467
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 3468
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
3469
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
5944 mandeep.dh 3470
 
3471
  def process(self, iprot, oprot):
3472
    (name, type, seqid) = iprot.readMessageBegin()
3473
    if name not in self._processMap:
3474
      iprot.skip(TType.STRUCT)
3475
      iprot.readMessageEnd()
3476
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3477
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3478
      x.write(oprot)
3479
      oprot.writeMessageEnd()
3480
      oprot.trans.flush()
3481
      return
3482
    else:
3483
      self._processMap[name](self, seqid, iprot, oprot)
3484
    return True
3485
 
3486
  def process_addItem(self, seqid, iprot, oprot):
3487
    args = addItem_args()
3488
    args.read(iprot)
3489
    iprot.readMessageEnd()
3490
    result = addItem_result()
3491
    try:
3492
      result.success = self._handler.addItem(args.item)
3493
    except CatalogServiceException, cex:
3494
      result.cex = cex
3495
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3496
    result.write(oprot)
3497
    oprot.writeMessageEnd()
3498
    oprot.trans.flush()
3499
 
3500
  def process_updateItem(self, seqid, iprot, oprot):
3501
    args = updateItem_args()
3502
    args.read(iprot)
3503
    iprot.readMessageEnd()
3504
    result = updateItem_result()
3505
    try:
3506
      result.success = self._handler.updateItem(args.item)
3507
    except CatalogServiceException, cex:
3508
      result.cex = cex
3509
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
3513
 
3514
  def process_isActive(self, seqid, iprot, oprot):
3515
    args = isActive_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = isActive_result()
3519
    try:
3520
      result.success = self._handler.isActive(args.itemId)
3521
    except CatalogServiceException, isex:
3522
      result.isex = isex
3523
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3524
    result.write(oprot)
3525
    oprot.writeMessageEnd()
3526
    oprot.trans.flush()
3527
 
3528
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3529
    args = getItemStatusDescription_args()
3530
    args.read(iprot)
3531
    iprot.readMessageEnd()
3532
    result = getItemStatusDescription_result()
3533
    try:
3534
      result.success = self._handler.getItemStatusDescription(args.itemId)
3535
    except CatalogServiceException, isex:
3536
      result.isex = isex
3537
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3538
    result.write(oprot)
3539
    oprot.writeMessageEnd()
3540
    oprot.trans.flush()
3541
 
3542
  def process_startItemOn(self, seqid, iprot, oprot):
3543
    args = startItemOn_args()
3544
    args.read(iprot)
3545
    iprot.readMessageEnd()
3546
    result = startItemOn_result()
3547
    try:
3548
      self._handler.startItemOn(args.item_id, args.timestamp)
3549
    except CatalogServiceException, cex:
3550
      result.cex = cex
3551
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3552
    result.write(oprot)
3553
    oprot.writeMessageEnd()
3554
    oprot.trans.flush()
3555
 
3556
  def process_retireItemOn(self, seqid, iprot, oprot):
3557
    args = retireItemOn_args()
3558
    args.read(iprot)
3559
    iprot.readMessageEnd()
3560
    result = retireItemOn_result()
3561
    try:
3562
      self._handler.retireItemOn(args.item_id, args.timestamp)
3563
    except CatalogServiceException, cex:
3564
      result.cex = cex
3565
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_changeItemStatus(self, seqid, iprot, oprot):
3571
    args = changeItemStatus_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = changeItemStatus_result()
3575
    try:
3576
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3577
    except CatalogServiceException, cex:
3578
      result.cex = cex
3579
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
3583
 
3584
  def process_getItem(self, seqid, iprot, oprot):
3585
    args = getItem_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getItem_result()
3589
    try:
3590
      result.success = self._handler.getItem(args.item_id)
3591
    except CatalogServiceException, cex:
3592
      result.cex = cex
3593
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3594
    result.write(oprot)
3595
    oprot.writeMessageEnd()
3596
    oprot.trans.flush()
3597
 
3598
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3599
    args = getItemsByCatalogId_args()
3600
    args.read(iprot)
3601
    iprot.readMessageEnd()
3602
    result = getItemsByCatalogId_result()
3603
    try:
3604
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3605
    except CatalogServiceException, cex:
3606
      result.cex = cex
3607
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3608
    result.write(oprot)
3609
    oprot.writeMessageEnd()
3610
    oprot.trans.flush()
3611
 
3612
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3613
    args = getValidItemsByCatalogId_args()
3614
    args.read(iprot)
3615
    iprot.readMessageEnd()
3616
    result = getValidItemsByCatalogId_result()
3617
    try:
3618
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3619
    except CatalogServiceException, cex:
3620
      result.cex = cex
3621
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3622
    result.write(oprot)
3623
    oprot.writeMessageEnd()
3624
    oprot.trans.flush()
3625
 
3626
  def process_getAllItems(self, seqid, iprot, oprot):
3627
    args = getAllItems_args()
3628
    args.read(iprot)
3629
    iprot.readMessageEnd()
3630
    result = getAllItems_result()
3631
    try:
3632
      result.success = self._handler.getAllItems(args.isActive)
3633
    except CatalogServiceException, cex:
3634
      result.cex = cex
3635
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3636
    result.write(oprot)
3637
    oprot.writeMessageEnd()
3638
    oprot.trans.flush()
3639
 
3640
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3641
    args = getAllItemsByStatus_args()
3642
    args.read(iprot)
3643
    iprot.readMessageEnd()
3644
    result = getAllItemsByStatus_result()
3645
    try:
3646
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3647
    except CatalogServiceException, cex:
3648
      result.cex = cex
3649
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
3653
 
3654
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3655
    args = markItemAsContentComplete_args()
3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
3658
    result = markItemAsContentComplete_result()
3659
    try:
3660
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3661
    except CatalogServiceException, cex:
3662
      result.cex = cex
3663
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3664
    result.write(oprot)
3665
    oprot.writeMessageEnd()
3666
    oprot.trans.flush()
3667
 
3668
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3669
    args = getAllItemsInRange_args()
3670
    args.read(iprot)
3671
    iprot.readMessageEnd()
3672
    result = getAllItemsInRange_result()
3673
    try:
3674
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3675
    except CatalogServiceException, cex:
3676
      result.cex = cex
3677
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
3682
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3683
    args = getAllItemsByStatusInRange_args()
3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
3686
    result = getAllItemsByStatusInRange_result()
3687
    try:
3688
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3689
    except CatalogServiceException, cex:
3690
      result.cex = cex
3691
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3692
    result.write(oprot)
3693
    oprot.writeMessageEnd()
3694
    oprot.trans.flush()
3695
 
3696
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3697
    args = getItemCountByStatus_args()
3698
    args.read(iprot)
3699
    iprot.readMessageEnd()
3700
    result = getItemCountByStatus_result()
3701
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3702
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3703
    result.write(oprot)
3704
    oprot.writeMessageEnd()
3705
    oprot.trans.flush()
3706
 
3707
  def process_getBestSellers(self, seqid, iprot, oprot):
3708
    args = getBestSellers_args()
3709
    args.read(iprot)
3710
    iprot.readMessageEnd()
3711
    result = getBestSellers_result()
3712
    try:
3713
      result.success = self._handler.getBestSellers()
3714
    except CatalogServiceException, isex:
3715
      result.isex = isex
3716
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3717
    result.write(oprot)
3718
    oprot.writeMessageEnd()
3719
    oprot.trans.flush()
3720
 
3721
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3722
    args = getBestSellersCatalogIds_args()
3723
    args.read(iprot)
3724
    iprot.readMessageEnd()
3725
    result = getBestSellersCatalogIds_result()
3726
    try:
3727
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3728
    except CatalogServiceException, cex:
3729
      result.cex = cex
3730
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3731
    result.write(oprot)
3732
    oprot.writeMessageEnd()
3733
    oprot.trans.flush()
3734
 
3735
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3736
    args = getBestSellersCount_args()
3737
    args.read(iprot)
3738
    iprot.readMessageEnd()
3739
    result = getBestSellersCount_result()
3740
    try:
3741
      result.success = self._handler.getBestSellersCount()
3742
    except CatalogServiceException, cex:
3743
      result.cex = cex
3744
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
3748
 
3749
  def process_getBestDeals(self, seqid, iprot, oprot):
3750
    args = getBestDeals_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getBestDeals_result()
3754
    try:
3755
      result.success = self._handler.getBestDeals()
3756
    except CatalogServiceException, isex:
3757
      result.isex = isex
3758
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3759
    result.write(oprot)
3760
    oprot.writeMessageEnd()
3761
    oprot.trans.flush()
3762
 
3763
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3764
    args = getBestDealsCatalogIds_args()
3765
    args.read(iprot)
3766
    iprot.readMessageEnd()
3767
    result = getBestDealsCatalogIds_result()
3768
    try:
3769
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3770
    except CatalogServiceException, cex:
3771
      result.cex = cex
3772
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
3776
 
3777
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3778
    args = getBestDealsCount_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = getBestDealsCount_result()
3782
    try:
3783
      result.success = self._handler.getBestDealsCount()
3784
    except CatalogServiceException, cex:
3785
      result.cex = cex
3786
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3787
    result.write(oprot)
3788
    oprot.writeMessageEnd()
3789
    oprot.trans.flush()
3790
 
3791
  def process_getComingSoon(self, seqid, iprot, oprot):
3792
    args = getComingSoon_args()
3793
    args.read(iprot)
3794
    iprot.readMessageEnd()
3795
    result = getComingSoon_result()
3796
    try:
3797
      result.success = self._handler.getComingSoon()
3798
    except CatalogServiceException, isex:
3799
      result.isex = isex
3800
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3801
    result.write(oprot)
3802
    oprot.writeMessageEnd()
3803
    oprot.trans.flush()
3804
 
3805
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3806
    args = getComingSoonCatalogIds_args()
3807
    args.read(iprot)
3808
    iprot.readMessageEnd()
3809
    result = getComingSoonCatalogIds_result()
3810
    try:
3811
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3812
    except CatalogServiceException, cex:
3813
      result.cex = cex
3814
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3815
    result.write(oprot)
3816
    oprot.writeMessageEnd()
3817
    oprot.trans.flush()
3818
 
3819
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3820
    args = getComingSoonCount_args()
3821
    args.read(iprot)
3822
    iprot.readMessageEnd()
3823
    result = getComingSoonCount_result()
3824
    try:
3825
      result.success = self._handler.getComingSoonCount()
3826
    except CatalogServiceException, cex:
3827
      result.cex = cex
3828
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3829
    result.write(oprot)
3830
    oprot.writeMessageEnd()
3831
    oprot.trans.flush()
3832
 
3833
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3834
    args = getLatestArrivals_args()
3835
    args.read(iprot)
3836
    iprot.readMessageEnd()
3837
    result = getLatestArrivals_result()
3838
    try:
3839
      result.success = self._handler.getLatestArrivals()
3840
    except CatalogServiceException, isex:
3841
      result.isex = isex
3842
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3846
 
3847
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3848
    args = getLatestArrivalsCatalogIds_args()
3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
3851
    result = getLatestArrivalsCatalogIds_result()
3852
    try:
3853
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3854
    except CatalogServiceException, cex:
3855
      result.cex = cex
3856
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
3861
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3862
    args = getLatestArrivalsCount_args()
3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
3865
    result = getLatestArrivalsCount_result()
3866
    try:
3867
      result.success = self._handler.getLatestArrivalsCount()
3868
    except CatalogServiceException, cex:
3869
      result.cex = cex
3870
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
3874
 
3875
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3876
    args = generateNewEntityID_args()
3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
3879
    result = generateNewEntityID_result()
3880
    result.success = self._handler.generateNewEntityID()
3881
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3882
    result.write(oprot)
3883
    oprot.writeMessageEnd()
3884
    oprot.trans.flush()
3885
 
3886
  def process_addCategory(self, seqid, iprot, oprot):
3887
    args = addCategory_args()
3888
    args.read(iprot)
3889
    iprot.readMessageEnd()
3890
    result = addCategory_result()
3891
    result.success = self._handler.addCategory(args.category)
3892
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3893
    result.write(oprot)
3894
    oprot.writeMessageEnd()
3895
    oprot.trans.flush()
3896
 
3897
  def process_getCategory(self, seqid, iprot, oprot):
3898
    args = getCategory_args()
3899
    args.read(iprot)
3900
    iprot.readMessageEnd()
3901
    result = getCategory_result()
3902
    result.success = self._handler.getCategory(args.id)
3903
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3904
    result.write(oprot)
3905
    oprot.writeMessageEnd()
3906
    oprot.trans.flush()
3907
 
3908
  def process_getAllCategories(self, seqid, iprot, oprot):
3909
    args = getAllCategories_args()
3910
    args.read(iprot)
3911
    iprot.readMessageEnd()
3912
    result = getAllCategories_result()
3913
    result.success = self._handler.getAllCategories()
3914
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3915
    result.write(oprot)
3916
    oprot.writeMessageEnd()
3917
    oprot.trans.flush()
3918
 
3919
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3920
    args = getAllSimilarItems_args()
3921
    args.read(iprot)
3922
    iprot.readMessageEnd()
3923
    result = getAllSimilarItems_result()
3924
    result.success = self._handler.getAllSimilarItems(args.itemId)
3925
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3926
    result.write(oprot)
3927
    oprot.writeMessageEnd()
3928
    oprot.trans.flush()
3929
 
3930
  def process_addSimilarItem(self, seqid, iprot, oprot):
3931
    args = addSimilarItem_args()
3932
    args.read(iprot)
3933
    iprot.readMessageEnd()
3934
    result = addSimilarItem_result()
3935
    try:
3936
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3937
    except CatalogServiceException, cex:
3938
      result.cex = cex
3939
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3940
    result.write(oprot)
3941
    oprot.writeMessageEnd()
3942
    oprot.trans.flush()
3943
 
6512 kshitij.so 3944
  def process_addTag(self, seqid, iprot, oprot):
3945
    args = addTag_args()
3946
    args.read(iprot)
3947
    iprot.readMessageEnd()
3948
    result = addTag_result()
3949
    result.success = self._handler.addTag(args.displayName, args.itemId)
3950
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3951
    result.write(oprot)
3952
    oprot.writeMessageEnd()
3953
    oprot.trans.flush()
3954
 
3955
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3956
    args = deleteEntityTag_args()
3957
    args.read(iprot)
3958
    iprot.readMessageEnd()
3959
    result = deleteEntityTag_result()
3960
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3961
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3962
    result.write(oprot)
3963
    oprot.writeMessageEnd()
3964
    oprot.trans.flush()
3965
 
3966
  def process_deleteTag(self, seqid, iprot, oprot):
3967
    args = deleteTag_args()
3968
    args.read(iprot)
3969
    iprot.readMessageEnd()
3970
    result = deleteTag_result()
3971
    result.success = self._handler.deleteTag(args.displayName)
3972
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3973
    result.write(oprot)
3974
    oprot.writeMessageEnd()
3975
    oprot.trans.flush()
3976
 
3977
  def process_getAllTags(self, seqid, iprot, oprot):
3978
    args = getAllTags_args()
3979
    args.read(iprot)
3980
    iprot.readMessageEnd()
3981
    result = getAllTags_result()
3982
    result.success = self._handler.getAllTags()
3983
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3984
    result.write(oprot)
3985
    oprot.writeMessageEnd()
3986
    oprot.trans.flush()
3987
 
3988
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3989
    args = getAllEntitiesByTagName_args()
3990
    args.read(iprot)
3991
    iprot.readMessageEnd()
3992
    result = getAllEntitiesByTagName_result()
3993
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3994
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3995
    result.write(oprot)
3996
    oprot.writeMessageEnd()
3997
    oprot.trans.flush()
3998
 
6845 amit.gupta 3999
  def process_getAllEntityTags(self, seqid, iprot, oprot):
4000
    args = getAllEntityTags_args()
4001
    args.read(iprot)
4002
    iprot.readMessageEnd()
4003
    result = getAllEntityTags_result()
4004
    result.success = self._handler.getAllEntityTags()
4005
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
4006
    result.write(oprot)
4007
    oprot.writeMessageEnd()
4008
    oprot.trans.flush()
4009
 
6850 kshitij.so 4010
  def process_addBanner(self, seqid, iprot, oprot):
4011
    args = addBanner_args()
4012
    args.read(iprot)
4013
    iprot.readMessageEnd()
4014
    result = addBanner_result()
4015
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
4016
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
4017
    result.write(oprot)
4018
    oprot.writeMessageEnd()
4019
    oprot.trans.flush()
4020
 
4021
  def process_getAllBanners(self, seqid, iprot, oprot):
4022
    args = getAllBanners_args()
4023
    args.read(iprot)
4024
    iprot.readMessageEnd()
4025
    result = getAllBanners_result()
4026
    result.success = self._handler.getAllBanners()
4027
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
4028
    result.write(oprot)
4029
    oprot.writeMessageEnd()
4030
    oprot.trans.flush()
4031
 
4032
  def process_deleteBanner(self, seqid, iprot, oprot):
4033
    args = deleteBanner_args()
4034
    args.read(iprot)
4035
    iprot.readMessageEnd()
4036
    result = deleteBanner_result()
4037
    result.success = self._handler.deleteBanner(args.bannerName)
4038
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
4039
    result.write(oprot)
4040
    oprot.writeMessageEnd()
4041
    oprot.trans.flush()
4042
 
4043
  def process_getBannerDetails(self, seqid, iprot, oprot):
4044
    args = getBannerDetails_args()
4045
    args.read(iprot)
4046
    iprot.readMessageEnd()
4047
    result = getBannerDetails_result()
4048
    result.success = self._handler.getBannerDetails(args.bannerName)
4049
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
4050
    result.write(oprot)
4051
    oprot.writeMessageEnd()
4052
    oprot.trans.flush()
4053
 
4054
  def process_getActiveBanners(self, seqid, iprot, oprot):
4055
    args = getActiveBanners_args()
4056
    args.read(iprot)
4057
    iprot.readMessageEnd()
4058
    result = getActiveBanners_result()
4059
    result.success = self._handler.getActiveBanners()
4060
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
4061
    result.write(oprot)
4062
    oprot.writeMessageEnd()
4063
    oprot.trans.flush()
4064
 
6849 kshitij.so 4065
  def process_addBannerMap(self, seqid, iprot, oprot):
4066
    args = addBannerMap_args()
4067
    args.read(iprot)
4068
    iprot.readMessageEnd()
4069
    result = addBannerMap_result()
4070
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
4071
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
4072
    result.write(oprot)
4073
    oprot.writeMessageEnd()
4074
    oprot.trans.flush()
4075
 
4076
  def process_deleteBannerMap(self, seqid, iprot, oprot):
4077
    args = deleteBannerMap_args()
4078
    args.read(iprot)
4079
    iprot.readMessageEnd()
4080
    result = deleteBannerMap_result()
4081
    result.success = self._handler.deleteBannerMap(args.bannerName)
4082
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
4083
    result.write(oprot)
4084
    oprot.writeMessageEnd()
4085
    oprot.trans.flush()
4086
 
4087
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
4088
    args = getBannerMapDetails_args()
4089
    args.read(iprot)
4090
    iprot.readMessageEnd()
4091
    result = getBannerMapDetails_result()
4092
    result.success = self._handler.getBannerMapDetails(args.bannerName)
4093
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
4094
    result.write(oprot)
4095
    oprot.writeMessageEnd()
4096
    oprot.trans.flush()
4097
 
5944 mandeep.dh 4098
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
4099
    args = deleteSimilarItem_args()
4100
    args.read(iprot)
4101
    iprot.readMessageEnd()
4102
    result = deleteSimilarItem_result()
4103
    try:
4104
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
4105
    except CatalogServiceException, cex:
4106
      result.cex = cex
4107
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
4108
    result.write(oprot)
4109
    oprot.writeMessageEnd()
4110
    oprot.trans.flush()
4111
 
4112
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4113
    args = checkSimilarItem_args()
4114
    args.read(iprot)
4115
    iprot.readMessageEnd()
4116
    result = checkSimilarItem_result()
4117
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4118
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4119
    result.write(oprot)
4120
    oprot.writeMessageEnd()
4121
    oprot.trans.flush()
4122
 
4123
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4124
    args = validateRiskyStatus_args()
4125
    args.read(iprot)
4126
    iprot.readMessageEnd()
4127
    result = validateRiskyStatus_result()
4128
    self._handler.validateRiskyStatus(args.itemId)
4129
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4130
    result.write(oprot)
4131
    oprot.writeMessageEnd()
4132
    oprot.trans.flush()
4133
 
4134
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4135
    args = changeItemRiskyFlag_args()
4136
    args.read(iprot)
4137
    iprot.readMessageEnd()
4138
    result = changeItemRiskyFlag_result()
4139
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4140
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4141
    result.write(oprot)
4142
    oprot.writeMessageEnd()
4143
    oprot.trans.flush()
4144
 
4145
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4146
    args = getItemsByRiskyFlag_args()
4147
    args.read(iprot)
4148
    iprot.readMessageEnd()
4149
    result = getItemsByRiskyFlag_result()
4150
    result.success = self._handler.getItemsByRiskyFlag()
4151
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4152
    result.write(oprot)
4153
    oprot.writeMessageEnd()
4154
    oprot.trans.flush()
4155
 
4156
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4157
    args = getItemsForMasterSheet_args()
4158
    args.read(iprot)
4159
    iprot.readMessageEnd()
4160
    result = getItemsForMasterSheet_result()
4161
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4162
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4163
    result.write(oprot)
4164
    oprot.writeMessageEnd()
4165
    oprot.trans.flush()
4166
 
4167
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4168
    args = getSimilarItemsCatalogIds_args()
4169
    args.read(iprot)
4170
    iprot.readMessageEnd()
4171
    result = getSimilarItemsCatalogIds_result()
4172
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4173
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4174
    result.write(oprot)
4175
    oprot.writeMessageEnd()
4176
    oprot.trans.flush()
4177
 
4178
  def process_addProductNotification(self, seqid, iprot, oprot):
4179
    args = addProductNotification_args()
4180
    args.read(iprot)
4181
    iprot.readMessageEnd()
4182
    result = addProductNotification_result()
4183
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4184
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4185
    result.write(oprot)
4186
    oprot.writeMessageEnd()
4187
    oprot.trans.flush()
4188
 
4189
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4190
    args = sendProductNotifications_args()
4191
    args.read(iprot)
4192
    iprot.readMessageEnd()
4193
    result = sendProductNotifications_result()
4194
    result.success = self._handler.sendProductNotifications()
4195
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4196
    result.write(oprot)
4197
    oprot.writeMessageEnd()
4198
    oprot.trans.flush()
4199
 
4200
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4201
    args = getAllBrandsByCategory_args()
4202
    args.read(iprot)
4203
    iprot.readMessageEnd()
4204
    result = getAllBrandsByCategory_result()
4205
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4206
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4207
    result.write(oprot)
4208
    oprot.writeMessageEnd()
4209
    oprot.trans.flush()
4210
 
4211
  def process_getAllBrands(self, seqid, iprot, oprot):
4212
    args = getAllBrands_args()
4213
    args.read(iprot)
4214
    iprot.readMessageEnd()
4215
    result = getAllBrands_result()
4216
    result.success = self._handler.getAllBrands()
4217
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4218
    result.write(oprot)
4219
    oprot.writeMessageEnd()
4220
    oprot.trans.flush()
4221
 
4222
  def process_getAllSources(self, seqid, iprot, oprot):
4223
    args = getAllSources_args()
4224
    args.read(iprot)
4225
    iprot.readMessageEnd()
4226
    result = getAllSources_result()
4227
    result.success = self._handler.getAllSources()
4228
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4229
    result.write(oprot)
4230
    oprot.writeMessageEnd()
4231
    oprot.trans.flush()
4232
 
4233
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4234
    args = getItemPricingBySource_args()
4235
    args.read(iprot)
4236
    iprot.readMessageEnd()
4237
    result = getItemPricingBySource_result()
4238
    try:
4239
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4240
    except CatalogServiceException, cex:
4241
      result.cex = cex
4242
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4243
    result.write(oprot)
4244
    oprot.writeMessageEnd()
4245
    oprot.trans.flush()
4246
 
4247
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4248
    args = addSourceItemPricing_args()
4249
    args.read(iprot)
4250
    iprot.readMessageEnd()
4251
    result = addSourceItemPricing_result()
4252
    try:
4253
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4254
    except CatalogServiceException, cex:
4255
      result.cex = cex
4256
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4257
    result.write(oprot)
4258
    oprot.writeMessageEnd()
4259
    oprot.trans.flush()
4260
 
4261
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4262
    args = getAllSourcePricing_args()
4263
    args.read(iprot)
4264
    iprot.readMessageEnd()
4265
    result = getAllSourcePricing_result()
4266
    try:
4267
      result.success = self._handler.getAllSourcePricing(args.itemId)
4268
    except CatalogServiceException, cex:
4269
      result.cex = cex
4270
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4271
    result.write(oprot)
4272
    oprot.writeMessageEnd()
4273
    oprot.trans.flush()
4274
 
4275
  def process_getItemForSource(self, seqid, iprot, oprot):
4276
    args = getItemForSource_args()
4277
    args.read(iprot)
4278
    iprot.readMessageEnd()
4279
    result = getItemForSource_result()
4280
    try:
4281
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4282
    except CatalogServiceException, cex:
4283
      result.cex = cex
4284
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4285
    result.write(oprot)
4286
    oprot.writeMessageEnd()
4287
    oprot.trans.flush()
4288
 
4289
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4290
    args = searchItemsInRange_args()
4291
    args.read(iprot)
4292
    iprot.readMessageEnd()
4293
    result = searchItemsInRange_result()
4294
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4295
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4296
    result.write(oprot)
4297
    oprot.writeMessageEnd()
4298
    oprot.trans.flush()
4299
 
4300
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4301
    args = getSearchResultCount_args()
4302
    args.read(iprot)
4303
    iprot.readMessageEnd()
4304
    result = getSearchResultCount_result()
4305
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4306
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4307
    result.write(oprot)
4308
    oprot.writeMessageEnd()
4309
    oprot.trans.flush()
4310
 
4311
  def process_getProductNotifications(self, seqid, iprot, oprot):
4312
    args = getProductNotifications_args()
4313
    args.read(iprot)
4314
    iprot.readMessageEnd()
4315
    result = getProductNotifications_result()
4316
    result.success = self._handler.getProductNotifications(args.startDateTime)
4317
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4318
    result.write(oprot)
4319
    oprot.writeMessageEnd()
4320
    oprot.trans.flush()
4321
 
4322
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4323
    args = getProductNotificationRequestCount_args()
4324
    args.read(iprot)
4325
    iprot.readMessageEnd()
4326
    result = getProductNotificationRequestCount_result()
4327
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4328
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4329
    result.write(oprot)
4330
    oprot.writeMessageEnd()
4331
    oprot.trans.flush()
4332
 
4333
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4334
    args = addAuthorizationLog_args()
4335
    args.read(iprot)
4336
    iprot.readMessageEnd()
4337
    result = addAuthorizationLog_result()
4338
    try:
4339
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4340
    except CatalogServiceException, cex:
4341
      result.cex = cex
4342
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4343
    result.write(oprot)
4344
    oprot.writeMessageEnd()
4345
    oprot.trans.flush()
4346
 
4347
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
4348
    args = getClearanceSaleCatalogIds_args()
4349
    args.read(iprot)
4350
    iprot.readMessageEnd()
4351
    result = getClearanceSaleCatalogIds_result()
4352
    try:
4353
      result.success = self._handler.getClearanceSaleCatalogIds()
4354
    except CatalogServiceException, cex:
4355
      result.cex = cex
4356
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
4357
    result.write(oprot)
4358
    oprot.writeMessageEnd()
4359
    oprot.trans.flush()
4360
 
4361
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4362
    args = addupdateVoucherForItem_args()
4363
    args.read(iprot)
4364
    iprot.readMessageEnd()
4365
    result = addupdateVoucherForItem_result()
4366
    try:
4367
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4368
    except CatalogServiceException, cex:
4369
      result.cex = cex
4370
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4371
    result.write(oprot)
4372
    oprot.writeMessageEnd()
4373
    oprot.trans.flush()
4374
 
4375
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4376
    args = deleteVoucherForItem_args()
4377
    args.read(iprot)
4378
    iprot.readMessageEnd()
4379
    result = deleteVoucherForItem_result()
4380
    try:
4381
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4382
    except CatalogServiceException, cex:
4383
      result.cex = cex
4384
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4385
    result.write(oprot)
4386
    oprot.writeMessageEnd()
4387
    oprot.trans.flush()
4388
 
4389
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4390
    args = getVoucherAmount_args()
4391
    args.read(iprot)
4392
    iprot.readMessageEnd()
4393
    result = getVoucherAmount_result()
4394
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4395
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4396
    result.write(oprot)
4397
    oprot.writeMessageEnd()
4398
    oprot.trans.flush()
4399
 
4400
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4401
    args = getAllItemVouchers_args()
4402
    args.read(iprot)
4403
    iprot.readMessageEnd()
4404
    result = getAllItemVouchers_result()
4405
    result.success = self._handler.getAllItemVouchers(args.itemId)
4406
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4407
    result.write(oprot)
4408
    oprot.writeMessageEnd()
4409
    oprot.trans.flush()
4410
 
4411
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4412
    args = isValidCatalogItemId_args()
4413
    args.read(iprot)
4414
    iprot.readMessageEnd()
4415
    result = isValidCatalogItemId_result()
4416
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4417
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4418
    result.write(oprot)
4419
    oprot.writeMessageEnd()
4420
    oprot.trans.flush()
4421
 
6039 amit.gupta 4422
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4423
    args = getVatPercentageForItem_args()
4424
    args.read(iprot)
4425
    iprot.readMessageEnd()
4426
    result = getVatPercentageForItem_result()
4427
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4428
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4429
    result.write(oprot)
4430
    oprot.writeMessageEnd()
4431
    oprot.trans.flush()
5944 mandeep.dh 4432
 
6039 amit.gupta 4433
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4434
    args = getVatAmountForItem_args()
4435
    args.read(iprot)
4436
    iprot.readMessageEnd()
4437
    result = getVatAmountForItem_result()
4438
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4439
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4440
    result.write(oprot)
4441
    oprot.writeMessageEnd()
4442
    oprot.trans.flush()
4443
 
6531 vikram.rag 4444
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4445
    args = getAllIgnoredInventoryUpdateItemsList_args()
4446
    args.read(iprot)
4447
    iprot.readMessageEnd()
4448
    result = getAllIgnoredInventoryUpdateItemsList_result()
4449
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4450
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4451
    result.write(oprot)
4452
    oprot.writeMessageEnd()
4453
    oprot.trans.flush()
6039 amit.gupta 4454
 
6821 amar.kumar 4455
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4456
    args = getAllAliveItems_args()
4457
    args.read(iprot)
4458
    iprot.readMessageEnd()
4459
    result = getAllAliveItems_result()
4460
    result.success = self._handler.getAllAliveItems()
4461
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4462
    result.write(oprot)
4463
    oprot.writeMessageEnd()
4464
    oprot.trans.flush()
4465
 
6805 anupam.sin 4466
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4467
    args = getInsuranceAmount_args()
4468
    args.read(iprot)
4469
    iprot.readMessageEnd()
4470
    result = getInsuranceAmount_result()
6921 anupam.sin 4471
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4472
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4473
    result.write(oprot)
4474
    oprot.writeMessageEnd()
4475
    oprot.trans.flush()
6531 vikram.rag 4476
 
6805 anupam.sin 4477
  def process_getInsurer(self, seqid, iprot, oprot):
4478
    args = getInsurer_args()
4479
    args.read(iprot)
4480
    iprot.readMessageEnd()
4481
    result = getInsurer_result()
4482
    result.success = self._handler.getInsurer(args.insurerId)
4483
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4484
    result.write(oprot)
4485
    oprot.writeMessageEnd()
4486
    oprot.trans.flush()
4487
 
6838 vikram.rag 4488
  def process_getAllInsurers(self, seqid, iprot, oprot):
4489
    args = getAllInsurers_args()
4490
    args.read(iprot)
4491
    iprot.readMessageEnd()
4492
    result = getAllInsurers_result()
4493
    result.success = self._handler.getAllInsurers()
4494
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4495
    result.write(oprot)
4496
    oprot.writeMessageEnd()
4497
    oprot.trans.flush()
6805 anupam.sin 4498
 
6962 rajveer 4499
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
4500
    args = updateInsuranceDeclaredAmount_args()
4501
    args.read(iprot)
4502
    iprot.readMessageEnd()
4503
    result = updateInsuranceDeclaredAmount_result()
4504
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
4505
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
4506
    result.write(oprot)
4507
    oprot.writeMessageEnd()
4508
    oprot.trans.flush()
6838 vikram.rag 4509
 
7190 amar.kumar 4510
  def process_getFreebieForItem(self, seqid, iprot, oprot):
4511
    args = getFreebieForItem_args()
4512
    args.read(iprot)
4513
    iprot.readMessageEnd()
4514
    result = getFreebieForItem_result()
4515
    result.success = self._handler.getFreebieForItem(args.itemId)
4516
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
4517
    result.write(oprot)
4518
    oprot.writeMessageEnd()
4519
    oprot.trans.flush()
6962 rajveer 4520
 
7190 amar.kumar 4521
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
4522
    args = addOrUpdateFreebieForItem_args()
4523
    args.read(iprot)
4524
    iprot.readMessageEnd()
4525
    result = addOrUpdateFreebieForItem_result()
4526
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
4527
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
4528
    result.write(oprot)
4529
    oprot.writeMessageEnd()
4530
    oprot.trans.flush()
4531
 
4532
 
5944 mandeep.dh 4533
# HELPER FUNCTIONS AND STRUCTURES
4534
 
4535
class addItem_args:
4536
  """
4537
  Attributes:
4538
   - item
4539
  """
4540
 
4541
  thrift_spec = (
4542
    None, # 0
4543
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4544
  )
4545
 
4546
  def __init__(self, item=None,):
4547
    self.item = item
4548
 
4549
  def read(self, iprot):
4550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4552
      return
4553
    iprot.readStructBegin()
4554
    while True:
4555
      (fname, ftype, fid) = iprot.readFieldBegin()
4556
      if ftype == TType.STOP:
4557
        break
4558
      if fid == 1:
4559
        if ftype == TType.STRUCT:
4560
          self.item = Item()
4561
          self.item.read(iprot)
4562
        else:
4563
          iprot.skip(ftype)
4564
      else:
4565
        iprot.skip(ftype)
4566
      iprot.readFieldEnd()
4567
    iprot.readStructEnd()
4568
 
4569
  def write(self, oprot):
4570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4572
      return
4573
    oprot.writeStructBegin('addItem_args')
4574
    if self.item is not None:
4575
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4576
      self.item.write(oprot)
4577
      oprot.writeFieldEnd()
4578
    oprot.writeFieldStop()
4579
    oprot.writeStructEnd()
4580
 
4581
  def validate(self):
4582
    return
4583
 
4584
 
4585
  def __repr__(self):
4586
    L = ['%s=%r' % (key, value)
4587
      for key, value in self.__dict__.iteritems()]
4588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4589
 
4590
  def __eq__(self, other):
4591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4592
 
4593
  def __ne__(self, other):
4594
    return not (self == other)
4595
 
4596
class addItem_result:
4597
  """
4598
  Attributes:
4599
   - success
4600
   - cex
4601
  """
4602
 
4603
  thrift_spec = (
4604
    (0, TType.I64, 'success', None, None, ), # 0
4605
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4606
  )
4607
 
4608
  def __init__(self, success=None, cex=None,):
4609
    self.success = success
4610
    self.cex = cex
4611
 
4612
  def read(self, iprot):
4613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4615
      return
4616
    iprot.readStructBegin()
4617
    while True:
4618
      (fname, ftype, fid) = iprot.readFieldBegin()
4619
      if ftype == TType.STOP:
4620
        break
4621
      if fid == 0:
4622
        if ftype == TType.I64:
4623
          self.success = iprot.readI64();
4624
        else:
4625
          iprot.skip(ftype)
4626
      elif fid == 1:
4627
        if ftype == TType.STRUCT:
4628
          self.cex = CatalogServiceException()
4629
          self.cex.read(iprot)
4630
        else:
4631
          iprot.skip(ftype)
4632
      else:
4633
        iprot.skip(ftype)
4634
      iprot.readFieldEnd()
4635
    iprot.readStructEnd()
4636
 
4637
  def write(self, oprot):
4638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4640
      return
4641
    oprot.writeStructBegin('addItem_result')
4642
    if self.success is not None:
4643
      oprot.writeFieldBegin('success', TType.I64, 0)
4644
      oprot.writeI64(self.success)
4645
      oprot.writeFieldEnd()
4646
    if self.cex is not None:
4647
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4648
      self.cex.write(oprot)
4649
      oprot.writeFieldEnd()
4650
    oprot.writeFieldStop()
4651
    oprot.writeStructEnd()
4652
 
4653
  def validate(self):
4654
    return
4655
 
4656
 
4657
  def __repr__(self):
4658
    L = ['%s=%r' % (key, value)
4659
      for key, value in self.__dict__.iteritems()]
4660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4661
 
4662
  def __eq__(self, other):
4663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4664
 
4665
  def __ne__(self, other):
4666
    return not (self == other)
4667
 
4668
class updateItem_args:
4669
  """
4670
  Attributes:
4671
   - item
4672
  """
4673
 
4674
  thrift_spec = (
4675
    None, # 0
4676
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4677
  )
4678
 
4679
  def __init__(self, item=None,):
4680
    self.item = item
4681
 
4682
  def read(self, iprot):
4683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4685
      return
4686
    iprot.readStructBegin()
4687
    while True:
4688
      (fname, ftype, fid) = iprot.readFieldBegin()
4689
      if ftype == TType.STOP:
4690
        break
4691
      if fid == 1:
4692
        if ftype == TType.STRUCT:
4693
          self.item = Item()
4694
          self.item.read(iprot)
4695
        else:
4696
          iprot.skip(ftype)
4697
      else:
4698
        iprot.skip(ftype)
4699
      iprot.readFieldEnd()
4700
    iprot.readStructEnd()
4701
 
4702
  def write(self, oprot):
4703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4705
      return
4706
    oprot.writeStructBegin('updateItem_args')
4707
    if self.item is not None:
4708
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4709
      self.item.write(oprot)
4710
      oprot.writeFieldEnd()
4711
    oprot.writeFieldStop()
4712
    oprot.writeStructEnd()
4713
 
4714
  def validate(self):
4715
    return
4716
 
4717
 
4718
  def __repr__(self):
4719
    L = ['%s=%r' % (key, value)
4720
      for key, value in self.__dict__.iteritems()]
4721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4722
 
4723
  def __eq__(self, other):
4724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4725
 
4726
  def __ne__(self, other):
4727
    return not (self == other)
4728
 
4729
class updateItem_result:
4730
  """
4731
  Attributes:
4732
   - success
4733
   - cex
4734
  """
4735
 
4736
  thrift_spec = (
4737
    (0, TType.I64, 'success', None, None, ), # 0
4738
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4739
  )
4740
 
4741
  def __init__(self, success=None, cex=None,):
4742
    self.success = success
4743
    self.cex = cex
4744
 
4745
  def read(self, iprot):
4746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4748
      return
4749
    iprot.readStructBegin()
4750
    while True:
4751
      (fname, ftype, fid) = iprot.readFieldBegin()
4752
      if ftype == TType.STOP:
4753
        break
4754
      if fid == 0:
4755
        if ftype == TType.I64:
4756
          self.success = iprot.readI64();
4757
        else:
4758
          iprot.skip(ftype)
4759
      elif fid == 1:
4760
        if ftype == TType.STRUCT:
4761
          self.cex = CatalogServiceException()
4762
          self.cex.read(iprot)
4763
        else:
4764
          iprot.skip(ftype)
4765
      else:
4766
        iprot.skip(ftype)
4767
      iprot.readFieldEnd()
4768
    iprot.readStructEnd()
4769
 
4770
  def write(self, oprot):
4771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4773
      return
4774
    oprot.writeStructBegin('updateItem_result')
4775
    if self.success is not None:
4776
      oprot.writeFieldBegin('success', TType.I64, 0)
4777
      oprot.writeI64(self.success)
4778
      oprot.writeFieldEnd()
4779
    if self.cex is not None:
4780
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4781
      self.cex.write(oprot)
4782
      oprot.writeFieldEnd()
4783
    oprot.writeFieldStop()
4784
    oprot.writeStructEnd()
4785
 
4786
  def validate(self):
4787
    return
4788
 
4789
 
4790
  def __repr__(self):
4791
    L = ['%s=%r' % (key, value)
4792
      for key, value in self.__dict__.iteritems()]
4793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4794
 
4795
  def __eq__(self, other):
4796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4797
 
4798
  def __ne__(self, other):
4799
    return not (self == other)
4800
 
4801
class isActive_args:
4802
  """
4803
  Attributes:
4804
   - itemId
4805
  """
4806
 
4807
  thrift_spec = (
4808
    None, # 0
4809
    (1, TType.I64, 'itemId', None, None, ), # 1
4810
  )
4811
 
4812
  def __init__(self, itemId=None,):
4813
    self.itemId = itemId
4814
 
4815
  def read(self, iprot):
4816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4818
      return
4819
    iprot.readStructBegin()
4820
    while True:
4821
      (fname, ftype, fid) = iprot.readFieldBegin()
4822
      if ftype == TType.STOP:
4823
        break
4824
      if fid == 1:
4825
        if ftype == TType.I64:
4826
          self.itemId = iprot.readI64();
4827
        else:
4828
          iprot.skip(ftype)
4829
      else:
4830
        iprot.skip(ftype)
4831
      iprot.readFieldEnd()
4832
    iprot.readStructEnd()
4833
 
4834
  def write(self, oprot):
4835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4837
      return
4838
    oprot.writeStructBegin('isActive_args')
4839
    if self.itemId is not None:
4840
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4841
      oprot.writeI64(self.itemId)
4842
      oprot.writeFieldEnd()
4843
    oprot.writeFieldStop()
4844
    oprot.writeStructEnd()
4845
 
4846
  def validate(self):
4847
    return
4848
 
4849
 
4850
  def __repr__(self):
4851
    L = ['%s=%r' % (key, value)
4852
      for key, value in self.__dict__.iteritems()]
4853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4854
 
4855
  def __eq__(self, other):
4856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4857
 
4858
  def __ne__(self, other):
4859
    return not (self == other)
4860
 
4861
class isActive_result:
4862
  """
4863
  Attributes:
4864
   - success
4865
   - isex
4866
  """
4867
 
4868
  thrift_spec = (
4869
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4870
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4871
  )
4872
 
4873
  def __init__(self, success=None, isex=None,):
4874
    self.success = success
4875
    self.isex = isex
4876
 
4877
  def read(self, iprot):
4878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4880
      return
4881
    iprot.readStructBegin()
4882
    while True:
4883
      (fname, ftype, fid) = iprot.readFieldBegin()
4884
      if ftype == TType.STOP:
4885
        break
4886
      if fid == 0:
4887
        if ftype == TType.STRUCT:
4888
          self.success = ItemShippingInfo()
4889
          self.success.read(iprot)
4890
        else:
4891
          iprot.skip(ftype)
4892
      elif fid == 1:
4893
        if ftype == TType.STRUCT:
4894
          self.isex = CatalogServiceException()
4895
          self.isex.read(iprot)
4896
        else:
4897
          iprot.skip(ftype)
4898
      else:
4899
        iprot.skip(ftype)
4900
      iprot.readFieldEnd()
4901
    iprot.readStructEnd()
4902
 
4903
  def write(self, oprot):
4904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4906
      return
4907
    oprot.writeStructBegin('isActive_result')
4908
    if self.success is not None:
4909
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4910
      self.success.write(oprot)
4911
      oprot.writeFieldEnd()
4912
    if self.isex is not None:
4913
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4914
      self.isex.write(oprot)
4915
      oprot.writeFieldEnd()
4916
    oprot.writeFieldStop()
4917
    oprot.writeStructEnd()
4918
 
4919
  def validate(self):
4920
    return
4921
 
4922
 
4923
  def __repr__(self):
4924
    L = ['%s=%r' % (key, value)
4925
      for key, value in self.__dict__.iteritems()]
4926
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4927
 
4928
  def __eq__(self, other):
4929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4930
 
4931
  def __ne__(self, other):
4932
    return not (self == other)
4933
 
4934
class getItemStatusDescription_args:
4935
  """
4936
  Attributes:
4937
   - itemId
4938
  """
4939
 
4940
  thrift_spec = (
4941
    None, # 0
4942
    (1, TType.I64, 'itemId', None, None, ), # 1
4943
  )
4944
 
4945
  def __init__(self, itemId=None,):
4946
    self.itemId = itemId
4947
 
4948
  def read(self, iprot):
4949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4951
      return
4952
    iprot.readStructBegin()
4953
    while True:
4954
      (fname, ftype, fid) = iprot.readFieldBegin()
4955
      if ftype == TType.STOP:
4956
        break
4957
      if fid == 1:
4958
        if ftype == TType.I64:
4959
          self.itemId = iprot.readI64();
4960
        else:
4961
          iprot.skip(ftype)
4962
      else:
4963
        iprot.skip(ftype)
4964
      iprot.readFieldEnd()
4965
    iprot.readStructEnd()
4966
 
4967
  def write(self, oprot):
4968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4970
      return
4971
    oprot.writeStructBegin('getItemStatusDescription_args')
4972
    if self.itemId is not None:
4973
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4974
      oprot.writeI64(self.itemId)
4975
      oprot.writeFieldEnd()
4976
    oprot.writeFieldStop()
4977
    oprot.writeStructEnd()
4978
 
4979
  def validate(self):
4980
    return
4981
 
4982
 
4983
  def __repr__(self):
4984
    L = ['%s=%r' % (key, value)
4985
      for key, value in self.__dict__.iteritems()]
4986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4987
 
4988
  def __eq__(self, other):
4989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4990
 
4991
  def __ne__(self, other):
4992
    return not (self == other)
4993
 
4994
class getItemStatusDescription_result:
4995
  """
4996
  Attributes:
4997
   - success
4998
   - isex
4999
  """
5000
 
5001
  thrift_spec = (
5002
    (0, TType.STRING, 'success', None, None, ), # 0
5003
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5004
  )
5005
 
5006
  def __init__(self, success=None, isex=None,):
5007
    self.success = success
5008
    self.isex = isex
5009
 
5010
  def read(self, iprot):
5011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5013
      return
5014
    iprot.readStructBegin()
5015
    while True:
5016
      (fname, ftype, fid) = iprot.readFieldBegin()
5017
      if ftype == TType.STOP:
5018
        break
5019
      if fid == 0:
5020
        if ftype == TType.STRING:
5021
          self.success = iprot.readString();
5022
        else:
5023
          iprot.skip(ftype)
5024
      elif fid == 1:
5025
        if ftype == TType.STRUCT:
5026
          self.isex = CatalogServiceException()
5027
          self.isex.read(iprot)
5028
        else:
5029
          iprot.skip(ftype)
5030
      else:
5031
        iprot.skip(ftype)
5032
      iprot.readFieldEnd()
5033
    iprot.readStructEnd()
5034
 
5035
  def write(self, oprot):
5036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5038
      return
5039
    oprot.writeStructBegin('getItemStatusDescription_result')
5040
    if self.success is not None:
5041
      oprot.writeFieldBegin('success', TType.STRING, 0)
5042
      oprot.writeString(self.success)
5043
      oprot.writeFieldEnd()
5044
    if self.isex is not None:
5045
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5046
      self.isex.write(oprot)
5047
      oprot.writeFieldEnd()
5048
    oprot.writeFieldStop()
5049
    oprot.writeStructEnd()
5050
 
5051
  def validate(self):
5052
    return
5053
 
5054
 
5055
  def __repr__(self):
5056
    L = ['%s=%r' % (key, value)
5057
      for key, value in self.__dict__.iteritems()]
5058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5059
 
5060
  def __eq__(self, other):
5061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5062
 
5063
  def __ne__(self, other):
5064
    return not (self == other)
5065
 
5066
class startItemOn_args:
5067
  """
5068
  Attributes:
5069
   - item_id
5070
   - timestamp
5071
  """
5072
 
5073
  thrift_spec = (
5074
    None, # 0
5075
    (1, TType.I64, 'item_id', None, None, ), # 1
5076
    (2, TType.I64, 'timestamp', None, None, ), # 2
5077
  )
5078
 
5079
  def __init__(self, item_id=None, timestamp=None,):
5080
    self.item_id = item_id
5081
    self.timestamp = timestamp
5082
 
5083
  def read(self, iprot):
5084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5086
      return
5087
    iprot.readStructBegin()
5088
    while True:
5089
      (fname, ftype, fid) = iprot.readFieldBegin()
5090
      if ftype == TType.STOP:
5091
        break
5092
      if fid == 1:
5093
        if ftype == TType.I64:
5094
          self.item_id = iprot.readI64();
5095
        else:
5096
          iprot.skip(ftype)
5097
      elif fid == 2:
5098
        if ftype == TType.I64:
5099
          self.timestamp = iprot.readI64();
5100
        else:
5101
          iprot.skip(ftype)
5102
      else:
5103
        iprot.skip(ftype)
5104
      iprot.readFieldEnd()
5105
    iprot.readStructEnd()
5106
 
5107
  def write(self, oprot):
5108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5110
      return
5111
    oprot.writeStructBegin('startItemOn_args')
5112
    if self.item_id is not None:
5113
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5114
      oprot.writeI64(self.item_id)
5115
      oprot.writeFieldEnd()
5116
    if self.timestamp is not None:
5117
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5118
      oprot.writeI64(self.timestamp)
5119
      oprot.writeFieldEnd()
5120
    oprot.writeFieldStop()
5121
    oprot.writeStructEnd()
5122
 
5123
  def validate(self):
5124
    return
5125
 
5126
 
5127
  def __repr__(self):
5128
    L = ['%s=%r' % (key, value)
5129
      for key, value in self.__dict__.iteritems()]
5130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5131
 
5132
  def __eq__(self, other):
5133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5134
 
5135
  def __ne__(self, other):
5136
    return not (self == other)
5137
 
5138
class startItemOn_result:
5139
  """
5140
  Attributes:
5141
   - cex
5142
  """
5143
 
5144
  thrift_spec = (
5145
    None, # 0
5146
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5147
  )
5148
 
5149
  def __init__(self, cex=None,):
5150
    self.cex = cex
5151
 
5152
  def read(self, iprot):
5153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5155
      return
5156
    iprot.readStructBegin()
5157
    while True:
5158
      (fname, ftype, fid) = iprot.readFieldBegin()
5159
      if ftype == TType.STOP:
5160
        break
5161
      if fid == 1:
5162
        if ftype == TType.STRUCT:
5163
          self.cex = CatalogServiceException()
5164
          self.cex.read(iprot)
5165
        else:
5166
          iprot.skip(ftype)
5167
      else:
5168
        iprot.skip(ftype)
5169
      iprot.readFieldEnd()
5170
    iprot.readStructEnd()
5171
 
5172
  def write(self, oprot):
5173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5175
      return
5176
    oprot.writeStructBegin('startItemOn_result')
5177
    if self.cex is not None:
5178
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5179
      self.cex.write(oprot)
5180
      oprot.writeFieldEnd()
5181
    oprot.writeFieldStop()
5182
    oprot.writeStructEnd()
5183
 
5184
  def validate(self):
5185
    return
5186
 
5187
 
5188
  def __repr__(self):
5189
    L = ['%s=%r' % (key, value)
5190
      for key, value in self.__dict__.iteritems()]
5191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5192
 
5193
  def __eq__(self, other):
5194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5195
 
5196
  def __ne__(self, other):
5197
    return not (self == other)
5198
 
5199
class retireItemOn_args:
5200
  """
5201
  Attributes:
5202
   - item_id
5203
   - timestamp
5204
  """
5205
 
5206
  thrift_spec = (
5207
    None, # 0
5208
    (1, TType.I64, 'item_id', None, None, ), # 1
5209
    (2, TType.I64, 'timestamp', None, None, ), # 2
5210
  )
5211
 
5212
  def __init__(self, item_id=None, timestamp=None,):
5213
    self.item_id = item_id
5214
    self.timestamp = timestamp
5215
 
5216
  def read(self, iprot):
5217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5219
      return
5220
    iprot.readStructBegin()
5221
    while True:
5222
      (fname, ftype, fid) = iprot.readFieldBegin()
5223
      if ftype == TType.STOP:
5224
        break
5225
      if fid == 1:
5226
        if ftype == TType.I64:
5227
          self.item_id = iprot.readI64();
5228
        else:
5229
          iprot.skip(ftype)
5230
      elif fid == 2:
5231
        if ftype == TType.I64:
5232
          self.timestamp = iprot.readI64();
5233
        else:
5234
          iprot.skip(ftype)
5235
      else:
5236
        iprot.skip(ftype)
5237
      iprot.readFieldEnd()
5238
    iprot.readStructEnd()
5239
 
5240
  def write(self, oprot):
5241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5243
      return
5244
    oprot.writeStructBegin('retireItemOn_args')
5245
    if self.item_id is not None:
5246
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5247
      oprot.writeI64(self.item_id)
5248
      oprot.writeFieldEnd()
5249
    if self.timestamp is not None:
5250
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5251
      oprot.writeI64(self.timestamp)
5252
      oprot.writeFieldEnd()
5253
    oprot.writeFieldStop()
5254
    oprot.writeStructEnd()
5255
 
5256
  def validate(self):
5257
    return
5258
 
5259
 
5260
  def __repr__(self):
5261
    L = ['%s=%r' % (key, value)
5262
      for key, value in self.__dict__.iteritems()]
5263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5264
 
5265
  def __eq__(self, other):
5266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5267
 
5268
  def __ne__(self, other):
5269
    return not (self == other)
5270
 
5271
class retireItemOn_result:
5272
  """
5273
  Attributes:
5274
   - cex
5275
  """
5276
 
5277
  thrift_spec = (
5278
    None, # 0
5279
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5280
  )
5281
 
5282
  def __init__(self, cex=None,):
5283
    self.cex = cex
5284
 
5285
  def read(self, iprot):
5286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5288
      return
5289
    iprot.readStructBegin()
5290
    while True:
5291
      (fname, ftype, fid) = iprot.readFieldBegin()
5292
      if ftype == TType.STOP:
5293
        break
5294
      if fid == 1:
5295
        if ftype == TType.STRUCT:
5296
          self.cex = CatalogServiceException()
5297
          self.cex.read(iprot)
5298
        else:
5299
          iprot.skip(ftype)
5300
      else:
5301
        iprot.skip(ftype)
5302
      iprot.readFieldEnd()
5303
    iprot.readStructEnd()
5304
 
5305
  def write(self, oprot):
5306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5308
      return
5309
    oprot.writeStructBegin('retireItemOn_result')
5310
    if self.cex is not None:
5311
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5312
      self.cex.write(oprot)
5313
      oprot.writeFieldEnd()
5314
    oprot.writeFieldStop()
5315
    oprot.writeStructEnd()
5316
 
5317
  def validate(self):
5318
    return
5319
 
5320
 
5321
  def __repr__(self):
5322
    L = ['%s=%r' % (key, value)
5323
      for key, value in self.__dict__.iteritems()]
5324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5325
 
5326
  def __eq__(self, other):
5327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5328
 
5329
  def __ne__(self, other):
5330
    return not (self == other)
5331
 
5332
class changeItemStatus_args:
5333
  """
5334
  Attributes:
5335
   - item_id
5336
   - timestamp
5337
   - newstatus
5338
  """
5339
 
5340
  thrift_spec = (
5341
    None, # 0
5342
    (1, TType.I64, 'item_id', None, None, ), # 1
5343
    (2, TType.I64, 'timestamp', None, None, ), # 2
5344
    (3, TType.I32, 'newstatus', None, None, ), # 3
5345
  )
5346
 
5347
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5348
    self.item_id = item_id
5349
    self.timestamp = timestamp
5350
    self.newstatus = newstatus
5351
 
5352
  def read(self, iprot):
5353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5355
      return
5356
    iprot.readStructBegin()
5357
    while True:
5358
      (fname, ftype, fid) = iprot.readFieldBegin()
5359
      if ftype == TType.STOP:
5360
        break
5361
      if fid == 1:
5362
        if ftype == TType.I64:
5363
          self.item_id = iprot.readI64();
5364
        else:
5365
          iprot.skip(ftype)
5366
      elif fid == 2:
5367
        if ftype == TType.I64:
5368
          self.timestamp = iprot.readI64();
5369
        else:
5370
          iprot.skip(ftype)
5371
      elif fid == 3:
5372
        if ftype == TType.I32:
5373
          self.newstatus = iprot.readI32();
5374
        else:
5375
          iprot.skip(ftype)
5376
      else:
5377
        iprot.skip(ftype)
5378
      iprot.readFieldEnd()
5379
    iprot.readStructEnd()
5380
 
5381
  def write(self, oprot):
5382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5384
      return
5385
    oprot.writeStructBegin('changeItemStatus_args')
5386
    if self.item_id is not None:
5387
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5388
      oprot.writeI64(self.item_id)
5389
      oprot.writeFieldEnd()
5390
    if self.timestamp is not None:
5391
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5392
      oprot.writeI64(self.timestamp)
5393
      oprot.writeFieldEnd()
5394
    if self.newstatus is not None:
5395
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5396
      oprot.writeI32(self.newstatus)
5397
      oprot.writeFieldEnd()
5398
    oprot.writeFieldStop()
5399
    oprot.writeStructEnd()
5400
 
5401
  def validate(self):
5402
    return
5403
 
5404
 
5405
  def __repr__(self):
5406
    L = ['%s=%r' % (key, value)
5407
      for key, value in self.__dict__.iteritems()]
5408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5409
 
5410
  def __eq__(self, other):
5411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5412
 
5413
  def __ne__(self, other):
5414
    return not (self == other)
5415
 
5416
class changeItemStatus_result:
5417
  """
5418
  Attributes:
5419
   - cex
5420
  """
5421
 
5422
  thrift_spec = (
5423
    None, # 0
5424
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5425
  )
5426
 
5427
  def __init__(self, cex=None,):
5428
    self.cex = cex
5429
 
5430
  def read(self, iprot):
5431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5433
      return
5434
    iprot.readStructBegin()
5435
    while True:
5436
      (fname, ftype, fid) = iprot.readFieldBegin()
5437
      if ftype == TType.STOP:
5438
        break
5439
      if fid == 1:
5440
        if ftype == TType.STRUCT:
5441
          self.cex = CatalogServiceException()
5442
          self.cex.read(iprot)
5443
        else:
5444
          iprot.skip(ftype)
5445
      else:
5446
        iprot.skip(ftype)
5447
      iprot.readFieldEnd()
5448
    iprot.readStructEnd()
5449
 
5450
  def write(self, oprot):
5451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5453
      return
5454
    oprot.writeStructBegin('changeItemStatus_result')
5455
    if self.cex is not None:
5456
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5457
      self.cex.write(oprot)
5458
      oprot.writeFieldEnd()
5459
    oprot.writeFieldStop()
5460
    oprot.writeStructEnd()
5461
 
5462
  def validate(self):
5463
    return
5464
 
5465
 
5466
  def __repr__(self):
5467
    L = ['%s=%r' % (key, value)
5468
      for key, value in self.__dict__.iteritems()]
5469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5470
 
5471
  def __eq__(self, other):
5472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5473
 
5474
  def __ne__(self, other):
5475
    return not (self == other)
5476
 
5477
class getItem_args:
5478
  """
5479
  Attributes:
5480
   - item_id
5481
  """
5482
 
5483
  thrift_spec = (
5484
    None, # 0
5485
    (1, TType.I64, 'item_id', None, None, ), # 1
5486
  )
5487
 
5488
  def __init__(self, item_id=None,):
5489
    self.item_id = item_id
5490
 
5491
  def read(self, iprot):
5492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5494
      return
5495
    iprot.readStructBegin()
5496
    while True:
5497
      (fname, ftype, fid) = iprot.readFieldBegin()
5498
      if ftype == TType.STOP:
5499
        break
5500
      if fid == 1:
5501
        if ftype == TType.I64:
5502
          self.item_id = iprot.readI64();
5503
        else:
5504
          iprot.skip(ftype)
5505
      else:
5506
        iprot.skip(ftype)
5507
      iprot.readFieldEnd()
5508
    iprot.readStructEnd()
5509
 
5510
  def write(self, oprot):
5511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5513
      return
5514
    oprot.writeStructBegin('getItem_args')
5515
    if self.item_id is not None:
5516
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5517
      oprot.writeI64(self.item_id)
5518
      oprot.writeFieldEnd()
5519
    oprot.writeFieldStop()
5520
    oprot.writeStructEnd()
5521
 
5522
  def validate(self):
5523
    return
5524
 
5525
 
5526
  def __repr__(self):
5527
    L = ['%s=%r' % (key, value)
5528
      for key, value in self.__dict__.iteritems()]
5529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5530
 
5531
  def __eq__(self, other):
5532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5533
 
5534
  def __ne__(self, other):
5535
    return not (self == other)
5536
 
5537
class getItem_result:
5538
  """
5539
  Attributes:
5540
   - success
5541
   - cex
5542
  """
5543
 
5544
  thrift_spec = (
5545
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5546
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5547
  )
5548
 
5549
  def __init__(self, success=None, cex=None,):
5550
    self.success = success
5551
    self.cex = cex
5552
 
5553
  def read(self, iprot):
5554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5556
      return
5557
    iprot.readStructBegin()
5558
    while True:
5559
      (fname, ftype, fid) = iprot.readFieldBegin()
5560
      if ftype == TType.STOP:
5561
        break
5562
      if fid == 0:
5563
        if ftype == TType.STRUCT:
5564
          self.success = Item()
5565
          self.success.read(iprot)
5566
        else:
5567
          iprot.skip(ftype)
5568
      elif fid == 1:
5569
        if ftype == TType.STRUCT:
5570
          self.cex = CatalogServiceException()
5571
          self.cex.read(iprot)
5572
        else:
5573
          iprot.skip(ftype)
5574
      else:
5575
        iprot.skip(ftype)
5576
      iprot.readFieldEnd()
5577
    iprot.readStructEnd()
5578
 
5579
  def write(self, oprot):
5580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5582
      return
5583
    oprot.writeStructBegin('getItem_result')
5584
    if self.success is not None:
5585
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5586
      self.success.write(oprot)
5587
      oprot.writeFieldEnd()
5588
    if self.cex is not None:
5589
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5590
      self.cex.write(oprot)
5591
      oprot.writeFieldEnd()
5592
    oprot.writeFieldStop()
5593
    oprot.writeStructEnd()
5594
 
5595
  def validate(self):
5596
    return
5597
 
5598
 
5599
  def __repr__(self):
5600
    L = ['%s=%r' % (key, value)
5601
      for key, value in self.__dict__.iteritems()]
5602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5603
 
5604
  def __eq__(self, other):
5605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5606
 
5607
  def __ne__(self, other):
5608
    return not (self == other)
5609
 
5610
class getItemsByCatalogId_args:
5611
  """
5612
  Attributes:
5613
   - catalog_item_id
5614
  """
5615
 
5616
  thrift_spec = (
5617
    None, # 0
5618
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5619
  )
5620
 
5621
  def __init__(self, catalog_item_id=None,):
5622
    self.catalog_item_id = catalog_item_id
5623
 
5624
  def read(self, iprot):
5625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5627
      return
5628
    iprot.readStructBegin()
5629
    while True:
5630
      (fname, ftype, fid) = iprot.readFieldBegin()
5631
      if ftype == TType.STOP:
5632
        break
5633
      if fid == 1:
5634
        if ftype == TType.I64:
5635
          self.catalog_item_id = iprot.readI64();
5636
        else:
5637
          iprot.skip(ftype)
5638
      else:
5639
        iprot.skip(ftype)
5640
      iprot.readFieldEnd()
5641
    iprot.readStructEnd()
5642
 
5643
  def write(self, oprot):
5644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5646
      return
5647
    oprot.writeStructBegin('getItemsByCatalogId_args')
5648
    if self.catalog_item_id is not None:
5649
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5650
      oprot.writeI64(self.catalog_item_id)
5651
      oprot.writeFieldEnd()
5652
    oprot.writeFieldStop()
5653
    oprot.writeStructEnd()
5654
 
5655
  def validate(self):
5656
    return
5657
 
5658
 
5659
  def __repr__(self):
5660
    L = ['%s=%r' % (key, value)
5661
      for key, value in self.__dict__.iteritems()]
5662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5663
 
5664
  def __eq__(self, other):
5665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5666
 
5667
  def __ne__(self, other):
5668
    return not (self == other)
5669
 
5670
class getItemsByCatalogId_result:
5671
  """
5672
  Attributes:
5673
   - success
5674
   - cex
5675
  """
5676
 
5677
  thrift_spec = (
5678
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5679
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5680
  )
5681
 
5682
  def __init__(self, success=None, cex=None,):
5683
    self.success = success
5684
    self.cex = cex
5685
 
5686
  def read(self, iprot):
5687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5689
      return
5690
    iprot.readStructBegin()
5691
    while True:
5692
      (fname, ftype, fid) = iprot.readFieldBegin()
5693
      if ftype == TType.STOP:
5694
        break
5695
      if fid == 0:
5696
        if ftype == TType.LIST:
5697
          self.success = []
5698
          (_etype19, _size16) = iprot.readListBegin()
5699
          for _i20 in xrange(_size16):
5700
            _elem21 = Item()
5701
            _elem21.read(iprot)
5702
            self.success.append(_elem21)
5703
          iprot.readListEnd()
5704
        else:
5705
          iprot.skip(ftype)
5706
      elif fid == 1:
5707
        if ftype == TType.STRUCT:
5708
          self.cex = CatalogServiceException()
5709
          self.cex.read(iprot)
5710
        else:
5711
          iprot.skip(ftype)
5712
      else:
5713
        iprot.skip(ftype)
5714
      iprot.readFieldEnd()
5715
    iprot.readStructEnd()
5716
 
5717
  def write(self, oprot):
5718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5720
      return
5721
    oprot.writeStructBegin('getItemsByCatalogId_result')
5722
    if self.success is not None:
5723
      oprot.writeFieldBegin('success', TType.LIST, 0)
5724
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5725
      for iter22 in self.success:
5726
        iter22.write(oprot)
5727
      oprot.writeListEnd()
5728
      oprot.writeFieldEnd()
5729
    if self.cex is not None:
5730
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5731
      self.cex.write(oprot)
5732
      oprot.writeFieldEnd()
5733
    oprot.writeFieldStop()
5734
    oprot.writeStructEnd()
5735
 
5736
  def validate(self):
5737
    return
5738
 
5739
 
5740
  def __repr__(self):
5741
    L = ['%s=%r' % (key, value)
5742
      for key, value in self.__dict__.iteritems()]
5743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5744
 
5745
  def __eq__(self, other):
5746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5747
 
5748
  def __ne__(self, other):
5749
    return not (self == other)
5750
 
5751
class getValidItemsByCatalogId_args:
5752
  """
5753
  Attributes:
5754
   - catalog_item_id
5755
  """
5756
 
5757
  thrift_spec = (
5758
    None, # 0
5759
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5760
  )
5761
 
5762
  def __init__(self, catalog_item_id=None,):
5763
    self.catalog_item_id = catalog_item_id
5764
 
5765
  def read(self, iprot):
5766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5768
      return
5769
    iprot.readStructBegin()
5770
    while True:
5771
      (fname, ftype, fid) = iprot.readFieldBegin()
5772
      if ftype == TType.STOP:
5773
        break
5774
      if fid == 1:
5775
        if ftype == TType.I64:
5776
          self.catalog_item_id = iprot.readI64();
5777
        else:
5778
          iprot.skip(ftype)
5779
      else:
5780
        iprot.skip(ftype)
5781
      iprot.readFieldEnd()
5782
    iprot.readStructEnd()
5783
 
5784
  def write(self, oprot):
5785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5787
      return
5788
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5789
    if self.catalog_item_id is not None:
5790
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5791
      oprot.writeI64(self.catalog_item_id)
5792
      oprot.writeFieldEnd()
5793
    oprot.writeFieldStop()
5794
    oprot.writeStructEnd()
5795
 
5796
  def validate(self):
5797
    return
5798
 
5799
 
5800
  def __repr__(self):
5801
    L = ['%s=%r' % (key, value)
5802
      for key, value in self.__dict__.iteritems()]
5803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5804
 
5805
  def __eq__(self, other):
5806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5807
 
5808
  def __ne__(self, other):
5809
    return not (self == other)
5810
 
5811
class getValidItemsByCatalogId_result:
5812
  """
5813
  Attributes:
5814
   - success
5815
   - cex
5816
  """
5817
 
5818
  thrift_spec = (
5819
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5820
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5821
  )
5822
 
5823
  def __init__(self, success=None, cex=None,):
5824
    self.success = success
5825
    self.cex = cex
5826
 
5827
  def read(self, iprot):
5828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5830
      return
5831
    iprot.readStructBegin()
5832
    while True:
5833
      (fname, ftype, fid) = iprot.readFieldBegin()
5834
      if ftype == TType.STOP:
5835
        break
5836
      if fid == 0:
5837
        if ftype == TType.LIST:
5838
          self.success = []
5839
          (_etype26, _size23) = iprot.readListBegin()
5840
          for _i27 in xrange(_size23):
5841
            _elem28 = Item()
5842
            _elem28.read(iprot)
5843
            self.success.append(_elem28)
5844
          iprot.readListEnd()
5845
        else:
5846
          iprot.skip(ftype)
5847
      elif fid == 1:
5848
        if ftype == TType.STRUCT:
5849
          self.cex = CatalogServiceException()
5850
          self.cex.read(iprot)
5851
        else:
5852
          iprot.skip(ftype)
5853
      else:
5854
        iprot.skip(ftype)
5855
      iprot.readFieldEnd()
5856
    iprot.readStructEnd()
5857
 
5858
  def write(self, oprot):
5859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5861
      return
5862
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5863
    if self.success is not None:
5864
      oprot.writeFieldBegin('success', TType.LIST, 0)
5865
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5866
      for iter29 in self.success:
5867
        iter29.write(oprot)
5868
      oprot.writeListEnd()
5869
      oprot.writeFieldEnd()
5870
    if self.cex is not None:
5871
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5872
      self.cex.write(oprot)
5873
      oprot.writeFieldEnd()
5874
    oprot.writeFieldStop()
5875
    oprot.writeStructEnd()
5876
 
5877
  def validate(self):
5878
    return
5879
 
5880
 
5881
  def __repr__(self):
5882
    L = ['%s=%r' % (key, value)
5883
      for key, value in self.__dict__.iteritems()]
5884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5885
 
5886
  def __eq__(self, other):
5887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5888
 
5889
  def __ne__(self, other):
5890
    return not (self == other)
5891
 
5892
class getAllItems_args:
5893
  """
5894
  Attributes:
5895
   - isActive
5896
  """
5897
 
5898
  thrift_spec = (
5899
    None, # 0
5900
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5901
  )
5902
 
5903
  def __init__(self, isActive=None,):
5904
    self.isActive = isActive
5905
 
5906
  def read(self, iprot):
5907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5909
      return
5910
    iprot.readStructBegin()
5911
    while True:
5912
      (fname, ftype, fid) = iprot.readFieldBegin()
5913
      if ftype == TType.STOP:
5914
        break
5915
      if fid == 1:
5916
        if ftype == TType.BOOL:
5917
          self.isActive = iprot.readBool();
5918
        else:
5919
          iprot.skip(ftype)
5920
      else:
5921
        iprot.skip(ftype)
5922
      iprot.readFieldEnd()
5923
    iprot.readStructEnd()
5924
 
5925
  def write(self, oprot):
5926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5928
      return
5929
    oprot.writeStructBegin('getAllItems_args')
5930
    if self.isActive is not None:
5931
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5932
      oprot.writeBool(self.isActive)
5933
      oprot.writeFieldEnd()
5934
    oprot.writeFieldStop()
5935
    oprot.writeStructEnd()
5936
 
5937
  def validate(self):
5938
    return
5939
 
5940
 
5941
  def __repr__(self):
5942
    L = ['%s=%r' % (key, value)
5943
      for key, value in self.__dict__.iteritems()]
5944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5945
 
5946
  def __eq__(self, other):
5947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5948
 
5949
  def __ne__(self, other):
5950
    return not (self == other)
5951
 
5952
class getAllItems_result:
5953
  """
5954
  Attributes:
5955
   - success
5956
   - cex
5957
  """
5958
 
5959
  thrift_spec = (
5960
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5961
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5962
  )
5963
 
5964
  def __init__(self, success=None, cex=None,):
5965
    self.success = success
5966
    self.cex = cex
5967
 
5968
  def read(self, iprot):
5969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5971
      return
5972
    iprot.readStructBegin()
5973
    while True:
5974
      (fname, ftype, fid) = iprot.readFieldBegin()
5975
      if ftype == TType.STOP:
5976
        break
5977
      if fid == 0:
5978
        if ftype == TType.LIST:
5979
          self.success = []
5980
          (_etype33, _size30) = iprot.readListBegin()
5981
          for _i34 in xrange(_size30):
5982
            _elem35 = Item()
5983
            _elem35.read(iprot)
5984
            self.success.append(_elem35)
5985
          iprot.readListEnd()
5986
        else:
5987
          iprot.skip(ftype)
5988
      elif fid == 1:
5989
        if ftype == TType.STRUCT:
5990
          self.cex = CatalogServiceException()
5991
          self.cex.read(iprot)
5992
        else:
5993
          iprot.skip(ftype)
5994
      else:
5995
        iprot.skip(ftype)
5996
      iprot.readFieldEnd()
5997
    iprot.readStructEnd()
5998
 
5999
  def write(self, oprot):
6000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6002
      return
6003
    oprot.writeStructBegin('getAllItems_result')
6004
    if self.success is not None:
6005
      oprot.writeFieldBegin('success', TType.LIST, 0)
6006
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6007
      for iter36 in self.success:
6008
        iter36.write(oprot)
6009
      oprot.writeListEnd()
6010
      oprot.writeFieldEnd()
6011
    if self.cex is not None:
6012
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6013
      self.cex.write(oprot)
6014
      oprot.writeFieldEnd()
6015
    oprot.writeFieldStop()
6016
    oprot.writeStructEnd()
6017
 
6018
  def validate(self):
6019
    return
6020
 
6021
 
6022
  def __repr__(self):
6023
    L = ['%s=%r' % (key, value)
6024
      for key, value in self.__dict__.iteritems()]
6025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6026
 
6027
  def __eq__(self, other):
6028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6029
 
6030
  def __ne__(self, other):
6031
    return not (self == other)
6032
 
6033
class getAllItemsByStatus_args:
6034
  """
6035
  Attributes:
6036
   - itemStatus
6037
  """
6038
 
6039
  thrift_spec = (
6040
    None, # 0
6041
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6042
  )
6043
 
6044
  def __init__(self, itemStatus=None,):
6045
    self.itemStatus = itemStatus
6046
 
6047
  def read(self, iprot):
6048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6050
      return
6051
    iprot.readStructBegin()
6052
    while True:
6053
      (fname, ftype, fid) = iprot.readFieldBegin()
6054
      if ftype == TType.STOP:
6055
        break
6056
      if fid == 1:
6057
        if ftype == TType.I32:
6058
          self.itemStatus = iprot.readI32();
6059
        else:
6060
          iprot.skip(ftype)
6061
      else:
6062
        iprot.skip(ftype)
6063
      iprot.readFieldEnd()
6064
    iprot.readStructEnd()
6065
 
6066
  def write(self, oprot):
6067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6069
      return
6070
    oprot.writeStructBegin('getAllItemsByStatus_args')
6071
    if self.itemStatus is not None:
6072
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6073
      oprot.writeI32(self.itemStatus)
6074
      oprot.writeFieldEnd()
6075
    oprot.writeFieldStop()
6076
    oprot.writeStructEnd()
6077
 
6078
  def validate(self):
6079
    return
6080
 
6081
 
6082
  def __repr__(self):
6083
    L = ['%s=%r' % (key, value)
6084
      for key, value in self.__dict__.iteritems()]
6085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6086
 
6087
  def __eq__(self, other):
6088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6089
 
6090
  def __ne__(self, other):
6091
    return not (self == other)
6092
 
6093
class getAllItemsByStatus_result:
6094
  """
6095
  Attributes:
6096
   - success
6097
   - cex
6098
  """
6099
 
6100
  thrift_spec = (
6101
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6102
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6103
  )
6104
 
6105
  def __init__(self, success=None, cex=None,):
6106
    self.success = success
6107
    self.cex = cex
6108
 
6109
  def read(self, iprot):
6110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6112
      return
6113
    iprot.readStructBegin()
6114
    while True:
6115
      (fname, ftype, fid) = iprot.readFieldBegin()
6116
      if ftype == TType.STOP:
6117
        break
6118
      if fid == 0:
6119
        if ftype == TType.LIST:
6120
          self.success = []
6121
          (_etype40, _size37) = iprot.readListBegin()
6122
          for _i41 in xrange(_size37):
6123
            _elem42 = Item()
6124
            _elem42.read(iprot)
6125
            self.success.append(_elem42)
6126
          iprot.readListEnd()
6127
        else:
6128
          iprot.skip(ftype)
6129
      elif fid == 1:
6130
        if ftype == TType.STRUCT:
6131
          self.cex = CatalogServiceException()
6132
          self.cex.read(iprot)
6133
        else:
6134
          iprot.skip(ftype)
6135
      else:
6136
        iprot.skip(ftype)
6137
      iprot.readFieldEnd()
6138
    iprot.readStructEnd()
6139
 
6140
  def write(self, oprot):
6141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6143
      return
6144
    oprot.writeStructBegin('getAllItemsByStatus_result')
6145
    if self.success is not None:
6146
      oprot.writeFieldBegin('success', TType.LIST, 0)
6147
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6148
      for iter43 in self.success:
6149
        iter43.write(oprot)
6150
      oprot.writeListEnd()
6151
      oprot.writeFieldEnd()
6152
    if self.cex is not None:
6153
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6154
      self.cex.write(oprot)
6155
      oprot.writeFieldEnd()
6156
    oprot.writeFieldStop()
6157
    oprot.writeStructEnd()
6158
 
6159
  def validate(self):
6160
    return
6161
 
6162
 
6163
  def __repr__(self):
6164
    L = ['%s=%r' % (key, value)
6165
      for key, value in self.__dict__.iteritems()]
6166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6167
 
6168
  def __eq__(self, other):
6169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6170
 
6171
  def __ne__(self, other):
6172
    return not (self == other)
6173
 
6174
class markItemAsContentComplete_args:
6175
  """
6176
  Attributes:
6177
   - entityId
6178
   - category
6179
   - brand
6180
   - modelName
6181
   - modelNumber
6182
  """
6183
 
6184
  thrift_spec = (
6185
    None, # 0
6186
    (1, TType.I64, 'entityId', None, None, ), # 1
6187
    (2, TType.I64, 'category', None, None, ), # 2
6188
    (3, TType.STRING, 'brand', None, None, ), # 3
6189
    (4, TType.STRING, 'modelName', None, None, ), # 4
6190
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6191
  )
6192
 
6193
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6194
    self.entityId = entityId
6195
    self.category = category
6196
    self.brand = brand
6197
    self.modelName = modelName
6198
    self.modelNumber = modelNumber
6199
 
6200
  def read(self, iprot):
6201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6203
      return
6204
    iprot.readStructBegin()
6205
    while True:
6206
      (fname, ftype, fid) = iprot.readFieldBegin()
6207
      if ftype == TType.STOP:
6208
        break
6209
      if fid == 1:
6210
        if ftype == TType.I64:
6211
          self.entityId = iprot.readI64();
6212
        else:
6213
          iprot.skip(ftype)
6214
      elif fid == 2:
6215
        if ftype == TType.I64:
6216
          self.category = iprot.readI64();
6217
        else:
6218
          iprot.skip(ftype)
6219
      elif fid == 3:
6220
        if ftype == TType.STRING:
6221
          self.brand = iprot.readString();
6222
        else:
6223
          iprot.skip(ftype)
6224
      elif fid == 4:
6225
        if ftype == TType.STRING:
6226
          self.modelName = iprot.readString();
6227
        else:
6228
          iprot.skip(ftype)
6229
      elif fid == 5:
6230
        if ftype == TType.STRING:
6231
          self.modelNumber = iprot.readString();
6232
        else:
6233
          iprot.skip(ftype)
6234
      else:
6235
        iprot.skip(ftype)
6236
      iprot.readFieldEnd()
6237
    iprot.readStructEnd()
6238
 
6239
  def write(self, oprot):
6240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6242
      return
6243
    oprot.writeStructBegin('markItemAsContentComplete_args')
6244
    if self.entityId is not None:
6245
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6246
      oprot.writeI64(self.entityId)
6247
      oprot.writeFieldEnd()
6248
    if self.category is not None:
6249
      oprot.writeFieldBegin('category', TType.I64, 2)
6250
      oprot.writeI64(self.category)
6251
      oprot.writeFieldEnd()
6252
    if self.brand is not None:
6253
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6254
      oprot.writeString(self.brand)
6255
      oprot.writeFieldEnd()
6256
    if self.modelName is not None:
6257
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6258
      oprot.writeString(self.modelName)
6259
      oprot.writeFieldEnd()
6260
    if self.modelNumber is not None:
6261
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6262
      oprot.writeString(self.modelNumber)
6263
      oprot.writeFieldEnd()
6264
    oprot.writeFieldStop()
6265
    oprot.writeStructEnd()
6266
 
6267
  def validate(self):
6268
    return
6269
 
6270
 
6271
  def __repr__(self):
6272
    L = ['%s=%r' % (key, value)
6273
      for key, value in self.__dict__.iteritems()]
6274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6275
 
6276
  def __eq__(self, other):
6277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6278
 
6279
  def __ne__(self, other):
6280
    return not (self == other)
6281
 
6282
class markItemAsContentComplete_result:
6283
  """
6284
  Attributes:
6285
   - success
6286
   - cex
6287
  """
6288
 
6289
  thrift_spec = (
6290
    (0, TType.BOOL, 'success', None, None, ), # 0
6291
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6292
  )
6293
 
6294
  def __init__(self, success=None, cex=None,):
6295
    self.success = success
6296
    self.cex = cex
6297
 
6298
  def read(self, iprot):
6299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6301
      return
6302
    iprot.readStructBegin()
6303
    while True:
6304
      (fname, ftype, fid) = iprot.readFieldBegin()
6305
      if ftype == TType.STOP:
6306
        break
6307
      if fid == 0:
6308
        if ftype == TType.BOOL:
6309
          self.success = iprot.readBool();
6310
        else:
6311
          iprot.skip(ftype)
6312
      elif fid == 1:
6313
        if ftype == TType.STRUCT:
6314
          self.cex = CatalogServiceException()
6315
          self.cex.read(iprot)
6316
        else:
6317
          iprot.skip(ftype)
6318
      else:
6319
        iprot.skip(ftype)
6320
      iprot.readFieldEnd()
6321
    iprot.readStructEnd()
6322
 
6323
  def write(self, oprot):
6324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6326
      return
6327
    oprot.writeStructBegin('markItemAsContentComplete_result')
6328
    if self.success is not None:
6329
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6330
      oprot.writeBool(self.success)
6331
      oprot.writeFieldEnd()
6332
    if self.cex is not None:
6333
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6334
      self.cex.write(oprot)
6335
      oprot.writeFieldEnd()
6336
    oprot.writeFieldStop()
6337
    oprot.writeStructEnd()
6338
 
6339
  def validate(self):
6340
    return
6341
 
6342
 
6343
  def __repr__(self):
6344
    L = ['%s=%r' % (key, value)
6345
      for key, value in self.__dict__.iteritems()]
6346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6347
 
6348
  def __eq__(self, other):
6349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6350
 
6351
  def __ne__(self, other):
6352
    return not (self == other)
6353
 
6354
class getAllItemsInRange_args:
6355
  """
6356
  Attributes:
6357
   - offset
6358
   - limit
6359
  """
6360
 
6361
  thrift_spec = (
6362
    None, # 0
6363
    (1, TType.I64, 'offset', None, None, ), # 1
6364
    (2, TType.I64, 'limit', None, None, ), # 2
6365
  )
6366
 
6367
  def __init__(self, offset=None, limit=None,):
6368
    self.offset = offset
6369
    self.limit = limit
6370
 
6371
  def read(self, iprot):
6372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6374
      return
6375
    iprot.readStructBegin()
6376
    while True:
6377
      (fname, ftype, fid) = iprot.readFieldBegin()
6378
      if ftype == TType.STOP:
6379
        break
6380
      if fid == 1:
6381
        if ftype == TType.I64:
6382
          self.offset = iprot.readI64();
6383
        else:
6384
          iprot.skip(ftype)
6385
      elif fid == 2:
6386
        if ftype == TType.I64:
6387
          self.limit = iprot.readI64();
6388
        else:
6389
          iprot.skip(ftype)
6390
      else:
6391
        iprot.skip(ftype)
6392
      iprot.readFieldEnd()
6393
    iprot.readStructEnd()
6394
 
6395
  def write(self, oprot):
6396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6398
      return
6399
    oprot.writeStructBegin('getAllItemsInRange_args')
6400
    if self.offset is not None:
6401
      oprot.writeFieldBegin('offset', TType.I64, 1)
6402
      oprot.writeI64(self.offset)
6403
      oprot.writeFieldEnd()
6404
    if self.limit is not None:
6405
      oprot.writeFieldBegin('limit', TType.I64, 2)
6406
      oprot.writeI64(self.limit)
6407
      oprot.writeFieldEnd()
6408
    oprot.writeFieldStop()
6409
    oprot.writeStructEnd()
6410
 
6411
  def validate(self):
6412
    return
6413
 
6414
 
6415
  def __repr__(self):
6416
    L = ['%s=%r' % (key, value)
6417
      for key, value in self.__dict__.iteritems()]
6418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6419
 
6420
  def __eq__(self, other):
6421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6422
 
6423
  def __ne__(self, other):
6424
    return not (self == other)
6425
 
6426
class getAllItemsInRange_result:
6427
  """
6428
  Attributes:
6429
   - success
6430
   - cex
6431
  """
6432
 
6433
  thrift_spec = (
6434
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6435
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6436
  )
6437
 
6438
  def __init__(self, success=None, cex=None,):
6439
    self.success = success
6440
    self.cex = cex
6441
 
6442
  def read(self, iprot):
6443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6445
      return
6446
    iprot.readStructBegin()
6447
    while True:
6448
      (fname, ftype, fid) = iprot.readFieldBegin()
6449
      if ftype == TType.STOP:
6450
        break
6451
      if fid == 0:
6452
        if ftype == TType.LIST:
6453
          self.success = []
6454
          (_etype47, _size44) = iprot.readListBegin()
6455
          for _i48 in xrange(_size44):
6456
            _elem49 = Item()
6457
            _elem49.read(iprot)
6458
            self.success.append(_elem49)
6459
          iprot.readListEnd()
6460
        else:
6461
          iprot.skip(ftype)
6462
      elif fid == 1:
6463
        if ftype == TType.STRUCT:
6464
          self.cex = CatalogServiceException()
6465
          self.cex.read(iprot)
6466
        else:
6467
          iprot.skip(ftype)
6468
      else:
6469
        iprot.skip(ftype)
6470
      iprot.readFieldEnd()
6471
    iprot.readStructEnd()
6472
 
6473
  def write(self, oprot):
6474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6476
      return
6477
    oprot.writeStructBegin('getAllItemsInRange_result')
6478
    if self.success is not None:
6479
      oprot.writeFieldBegin('success', TType.LIST, 0)
6480
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6481
      for iter50 in self.success:
6482
        iter50.write(oprot)
6483
      oprot.writeListEnd()
6484
      oprot.writeFieldEnd()
6485
    if self.cex is not None:
6486
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6487
      self.cex.write(oprot)
6488
      oprot.writeFieldEnd()
6489
    oprot.writeFieldStop()
6490
    oprot.writeStructEnd()
6491
 
6492
  def validate(self):
6493
    return
6494
 
6495
 
6496
  def __repr__(self):
6497
    L = ['%s=%r' % (key, value)
6498
      for key, value in self.__dict__.iteritems()]
6499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6500
 
6501
  def __eq__(self, other):
6502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6503
 
6504
  def __ne__(self, other):
6505
    return not (self == other)
6506
 
6507
class getAllItemsByStatusInRange_args:
6508
  """
6509
  Attributes:
6510
   - itemStatus
6511
   - offset
6512
   - limit
6513
  """
6514
 
6515
  thrift_spec = (
6516
    None, # 0
6517
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6518
    (2, TType.I64, 'offset', None, None, ), # 2
6519
    (3, TType.I64, 'limit', None, None, ), # 3
6520
  )
6521
 
6522
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6523
    self.itemStatus = itemStatus
6524
    self.offset = offset
6525
    self.limit = limit
6526
 
6527
  def read(self, iprot):
6528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6530
      return
6531
    iprot.readStructBegin()
6532
    while True:
6533
      (fname, ftype, fid) = iprot.readFieldBegin()
6534
      if ftype == TType.STOP:
6535
        break
6536
      if fid == 1:
6537
        if ftype == TType.I32:
6538
          self.itemStatus = iprot.readI32();
6539
        else:
6540
          iprot.skip(ftype)
6541
      elif fid == 2:
6542
        if ftype == TType.I64:
6543
          self.offset = iprot.readI64();
6544
        else:
6545
          iprot.skip(ftype)
6546
      elif fid == 3:
6547
        if ftype == TType.I64:
6548
          self.limit = iprot.readI64();
6549
        else:
6550
          iprot.skip(ftype)
6551
      else:
6552
        iprot.skip(ftype)
6553
      iprot.readFieldEnd()
6554
    iprot.readStructEnd()
6555
 
6556
  def write(self, oprot):
6557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6559
      return
6560
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6561
    if self.itemStatus is not None:
6562
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6563
      oprot.writeI32(self.itemStatus)
6564
      oprot.writeFieldEnd()
6565
    if self.offset is not None:
6566
      oprot.writeFieldBegin('offset', TType.I64, 2)
6567
      oprot.writeI64(self.offset)
6568
      oprot.writeFieldEnd()
6569
    if self.limit is not None:
6570
      oprot.writeFieldBegin('limit', TType.I64, 3)
6571
      oprot.writeI64(self.limit)
6572
      oprot.writeFieldEnd()
6573
    oprot.writeFieldStop()
6574
    oprot.writeStructEnd()
6575
 
6576
  def validate(self):
6577
    return
6578
 
6579
 
6580
  def __repr__(self):
6581
    L = ['%s=%r' % (key, value)
6582
      for key, value in self.__dict__.iteritems()]
6583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6584
 
6585
  def __eq__(self, other):
6586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6587
 
6588
  def __ne__(self, other):
6589
    return not (self == other)
6590
 
6591
class getAllItemsByStatusInRange_result:
6592
  """
6593
  Attributes:
6594
   - success
6595
   - cex
6596
  """
6597
 
6598
  thrift_spec = (
6599
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6600
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6601
  )
6602
 
6603
  def __init__(self, success=None, cex=None,):
6604
    self.success = success
6605
    self.cex = cex
6606
 
6607
  def read(self, iprot):
6608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6610
      return
6611
    iprot.readStructBegin()
6612
    while True:
6613
      (fname, ftype, fid) = iprot.readFieldBegin()
6614
      if ftype == TType.STOP:
6615
        break
6616
      if fid == 0:
6617
        if ftype == TType.LIST:
6618
          self.success = []
6619
          (_etype54, _size51) = iprot.readListBegin()
6620
          for _i55 in xrange(_size51):
6621
            _elem56 = Item()
6622
            _elem56.read(iprot)
6623
            self.success.append(_elem56)
6624
          iprot.readListEnd()
6625
        else:
6626
          iprot.skip(ftype)
6627
      elif fid == 1:
6628
        if ftype == TType.STRUCT:
6629
          self.cex = CatalogServiceException()
6630
          self.cex.read(iprot)
6631
        else:
6632
          iprot.skip(ftype)
6633
      else:
6634
        iprot.skip(ftype)
6635
      iprot.readFieldEnd()
6636
    iprot.readStructEnd()
6637
 
6638
  def write(self, oprot):
6639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6641
      return
6642
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6643
    if self.success is not None:
6644
      oprot.writeFieldBegin('success', TType.LIST, 0)
6645
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6646
      for iter57 in self.success:
6647
        iter57.write(oprot)
6648
      oprot.writeListEnd()
6649
      oprot.writeFieldEnd()
6650
    if self.cex is not None:
6651
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6652
      self.cex.write(oprot)
6653
      oprot.writeFieldEnd()
6654
    oprot.writeFieldStop()
6655
    oprot.writeStructEnd()
6656
 
6657
  def validate(self):
6658
    return
6659
 
6660
 
6661
  def __repr__(self):
6662
    L = ['%s=%r' % (key, value)
6663
      for key, value in self.__dict__.iteritems()]
6664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6665
 
6666
  def __eq__(self, other):
6667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6668
 
6669
  def __ne__(self, other):
6670
    return not (self == other)
6671
 
6672
class getItemCountByStatus_args:
6673
  """
6674
  Attributes:
6675
   - useStatus
6676
   - itemStatus
6677
  """
6678
 
6679
  thrift_spec = (
6680
    None, # 0
6681
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6682
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6683
  )
6684
 
6685
  def __init__(self, useStatus=None, itemStatus=None,):
6686
    self.useStatus = useStatus
6687
    self.itemStatus = itemStatus
6688
 
6689
  def read(self, iprot):
6690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6692
      return
6693
    iprot.readStructBegin()
6694
    while True:
6695
      (fname, ftype, fid) = iprot.readFieldBegin()
6696
      if ftype == TType.STOP:
6697
        break
6698
      if fid == 1:
6699
        if ftype == TType.BOOL:
6700
          self.useStatus = iprot.readBool();
6701
        else:
6702
          iprot.skip(ftype)
6703
      elif fid == 2:
6704
        if ftype == TType.I32:
6705
          self.itemStatus = iprot.readI32();
6706
        else:
6707
          iprot.skip(ftype)
6708
      else:
6709
        iprot.skip(ftype)
6710
      iprot.readFieldEnd()
6711
    iprot.readStructEnd()
6712
 
6713
  def write(self, oprot):
6714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6716
      return
6717
    oprot.writeStructBegin('getItemCountByStatus_args')
6718
    if self.useStatus is not None:
6719
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6720
      oprot.writeBool(self.useStatus)
6721
      oprot.writeFieldEnd()
6722
    if self.itemStatus is not None:
6723
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6724
      oprot.writeI32(self.itemStatus)
6725
      oprot.writeFieldEnd()
6726
    oprot.writeFieldStop()
6727
    oprot.writeStructEnd()
6728
 
6729
  def validate(self):
6730
    return
6731
 
6732
 
6733
  def __repr__(self):
6734
    L = ['%s=%r' % (key, value)
6735
      for key, value in self.__dict__.iteritems()]
6736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6737
 
6738
  def __eq__(self, other):
6739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6740
 
6741
  def __ne__(self, other):
6742
    return not (self == other)
6743
 
6744
class getItemCountByStatus_result:
6745
  """
6746
  Attributes:
6747
   - success
6748
  """
6749
 
6750
  thrift_spec = (
6751
    (0, TType.I32, 'success', None, None, ), # 0
6752
  )
6753
 
6754
  def __init__(self, success=None,):
6755
    self.success = success
6756
 
6757
  def read(self, iprot):
6758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6760
      return
6761
    iprot.readStructBegin()
6762
    while True:
6763
      (fname, ftype, fid) = iprot.readFieldBegin()
6764
      if ftype == TType.STOP:
6765
        break
6766
      if fid == 0:
6767
        if ftype == TType.I32:
6768
          self.success = iprot.readI32();
6769
        else:
6770
          iprot.skip(ftype)
6771
      else:
6772
        iprot.skip(ftype)
6773
      iprot.readFieldEnd()
6774
    iprot.readStructEnd()
6775
 
6776
  def write(self, oprot):
6777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6779
      return
6780
    oprot.writeStructBegin('getItemCountByStatus_result')
6781
    if self.success is not None:
6782
      oprot.writeFieldBegin('success', TType.I32, 0)
6783
      oprot.writeI32(self.success)
6784
      oprot.writeFieldEnd()
6785
    oprot.writeFieldStop()
6786
    oprot.writeStructEnd()
6787
 
6788
  def validate(self):
6789
    return
6790
 
6791
 
6792
  def __repr__(self):
6793
    L = ['%s=%r' % (key, value)
6794
      for key, value in self.__dict__.iteritems()]
6795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6796
 
6797
  def __eq__(self, other):
6798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6799
 
6800
  def __ne__(self, other):
6801
    return not (self == other)
6802
 
6803
class getBestSellers_args:
6804
 
6805
  thrift_spec = (
6806
  )
6807
 
6808
  def read(self, iprot):
6809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6811
      return
6812
    iprot.readStructBegin()
6813
    while True:
6814
      (fname, ftype, fid) = iprot.readFieldBegin()
6815
      if ftype == TType.STOP:
6816
        break
6817
      else:
6818
        iprot.skip(ftype)
6819
      iprot.readFieldEnd()
6820
    iprot.readStructEnd()
6821
 
6822
  def write(self, oprot):
6823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6825
      return
6826
    oprot.writeStructBegin('getBestSellers_args')
6827
    oprot.writeFieldStop()
6828
    oprot.writeStructEnd()
6829
 
6830
  def validate(self):
6831
    return
6832
 
6833
 
6834
  def __repr__(self):
6835
    L = ['%s=%r' % (key, value)
6836
      for key, value in self.__dict__.iteritems()]
6837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6838
 
6839
  def __eq__(self, other):
6840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6841
 
6842
  def __ne__(self, other):
6843
    return not (self == other)
6844
 
6845
class getBestSellers_result:
6846
  """
6847
  Attributes:
6848
   - success
6849
   - isex
6850
  """
6851
 
6852
  thrift_spec = (
6853
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6854
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6855
  )
6856
 
6857
  def __init__(self, success=None, isex=None,):
6858
    self.success = success
6859
    self.isex = isex
6860
 
6861
  def read(self, iprot):
6862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6864
      return
6865
    iprot.readStructBegin()
6866
    while True:
6867
      (fname, ftype, fid) = iprot.readFieldBegin()
6868
      if ftype == TType.STOP:
6869
        break
6870
      if fid == 0:
6871
        if ftype == TType.LIST:
6872
          self.success = []
6873
          (_etype61, _size58) = iprot.readListBegin()
6874
          for _i62 in xrange(_size58):
6875
            _elem63 = Item()
6876
            _elem63.read(iprot)
6877
            self.success.append(_elem63)
6878
          iprot.readListEnd()
6879
        else:
6880
          iprot.skip(ftype)
6881
      elif fid == 1:
6882
        if ftype == TType.STRUCT:
6883
          self.isex = CatalogServiceException()
6884
          self.isex.read(iprot)
6885
        else:
6886
          iprot.skip(ftype)
6887
      else:
6888
        iprot.skip(ftype)
6889
      iprot.readFieldEnd()
6890
    iprot.readStructEnd()
6891
 
6892
  def write(self, oprot):
6893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6895
      return
6896
    oprot.writeStructBegin('getBestSellers_result')
6897
    if self.success is not None:
6898
      oprot.writeFieldBegin('success', TType.LIST, 0)
6899
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6900
      for iter64 in self.success:
6901
        iter64.write(oprot)
6902
      oprot.writeListEnd()
6903
      oprot.writeFieldEnd()
6904
    if self.isex is not None:
6905
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6906
      self.isex.write(oprot)
6907
      oprot.writeFieldEnd()
6908
    oprot.writeFieldStop()
6909
    oprot.writeStructEnd()
6910
 
6911
  def validate(self):
6912
    return
6913
 
6914
 
6915
  def __repr__(self):
6916
    L = ['%s=%r' % (key, value)
6917
      for key, value in self.__dict__.iteritems()]
6918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6919
 
6920
  def __eq__(self, other):
6921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6922
 
6923
  def __ne__(self, other):
6924
    return not (self == other)
6925
 
6926
class getBestSellersCatalogIds_args:
6927
  """
6928
  Attributes:
6929
   - beginIndex
6930
   - totalItems
6931
   - brand
6932
   - category
6933
  """
6934
 
6935
  thrift_spec = (
6936
    None, # 0
6937
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6938
    (2, TType.I64, 'totalItems', None, None, ), # 2
6939
    (3, TType.STRING, 'brand', None, None, ), # 3
6940
    (4, TType.I64, 'category', None, None, ), # 4
6941
  )
6942
 
6943
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6944
    self.beginIndex = beginIndex
6945
    self.totalItems = totalItems
6946
    self.brand = brand
6947
    self.category = category
6948
 
6949
  def read(self, iprot):
6950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6952
      return
6953
    iprot.readStructBegin()
6954
    while True:
6955
      (fname, ftype, fid) = iprot.readFieldBegin()
6956
      if ftype == TType.STOP:
6957
        break
6958
      if fid == 1:
6959
        if ftype == TType.I64:
6960
          self.beginIndex = iprot.readI64();
6961
        else:
6962
          iprot.skip(ftype)
6963
      elif fid == 2:
6964
        if ftype == TType.I64:
6965
          self.totalItems = iprot.readI64();
6966
        else:
6967
          iprot.skip(ftype)
6968
      elif fid == 3:
6969
        if ftype == TType.STRING:
6970
          self.brand = iprot.readString();
6971
        else:
6972
          iprot.skip(ftype)
6973
      elif fid == 4:
6974
        if ftype == TType.I64:
6975
          self.category = iprot.readI64();
6976
        else:
6977
          iprot.skip(ftype)
6978
      else:
6979
        iprot.skip(ftype)
6980
      iprot.readFieldEnd()
6981
    iprot.readStructEnd()
6982
 
6983
  def write(self, oprot):
6984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6986
      return
6987
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6988
    if self.beginIndex is not None:
6989
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6990
      oprot.writeI64(self.beginIndex)
6991
      oprot.writeFieldEnd()
6992
    if self.totalItems is not None:
6993
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6994
      oprot.writeI64(self.totalItems)
6995
      oprot.writeFieldEnd()
6996
    if self.brand is not None:
6997
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6998
      oprot.writeString(self.brand)
6999
      oprot.writeFieldEnd()
7000
    if self.category is not None:
7001
      oprot.writeFieldBegin('category', TType.I64, 4)
7002
      oprot.writeI64(self.category)
7003
      oprot.writeFieldEnd()
7004
    oprot.writeFieldStop()
7005
    oprot.writeStructEnd()
7006
 
7007
  def validate(self):
7008
    return
7009
 
7010
 
7011
  def __repr__(self):
7012
    L = ['%s=%r' % (key, value)
7013
      for key, value in self.__dict__.iteritems()]
7014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7015
 
7016
  def __eq__(self, other):
7017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7018
 
7019
  def __ne__(self, other):
7020
    return not (self == other)
7021
 
7022
class getBestSellersCatalogIds_result:
7023
  """
7024
  Attributes:
7025
   - success
7026
   - cex
7027
  """
7028
 
7029
  thrift_spec = (
7030
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7031
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7032
  )
7033
 
7034
  def __init__(self, success=None, cex=None,):
7035
    self.success = success
7036
    self.cex = cex
7037
 
7038
  def read(self, iprot):
7039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7041
      return
7042
    iprot.readStructBegin()
7043
    while True:
7044
      (fname, ftype, fid) = iprot.readFieldBegin()
7045
      if ftype == TType.STOP:
7046
        break
7047
      if fid == 0:
7048
        if ftype == TType.LIST:
7049
          self.success = []
7050
          (_etype68, _size65) = iprot.readListBegin()
7051
          for _i69 in xrange(_size65):
7052
            _elem70 = iprot.readI64();
7053
            self.success.append(_elem70)
7054
          iprot.readListEnd()
7055
        else:
7056
          iprot.skip(ftype)
7057
      elif fid == 1:
7058
        if ftype == TType.STRUCT:
7059
          self.cex = CatalogServiceException()
7060
          self.cex.read(iprot)
7061
        else:
7062
          iprot.skip(ftype)
7063
      else:
7064
        iprot.skip(ftype)
7065
      iprot.readFieldEnd()
7066
    iprot.readStructEnd()
7067
 
7068
  def write(self, oprot):
7069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7071
      return
7072
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
7073
    if self.success is not None:
7074
      oprot.writeFieldBegin('success', TType.LIST, 0)
7075
      oprot.writeListBegin(TType.I64, len(self.success))
7076
      for iter71 in self.success:
7077
        oprot.writeI64(iter71)
7078
      oprot.writeListEnd()
7079
      oprot.writeFieldEnd()
7080
    if self.cex is not None:
7081
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7082
      self.cex.write(oprot)
7083
      oprot.writeFieldEnd()
7084
    oprot.writeFieldStop()
7085
    oprot.writeStructEnd()
7086
 
7087
  def validate(self):
7088
    return
7089
 
7090
 
7091
  def __repr__(self):
7092
    L = ['%s=%r' % (key, value)
7093
      for key, value in self.__dict__.iteritems()]
7094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7095
 
7096
  def __eq__(self, other):
7097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7098
 
7099
  def __ne__(self, other):
7100
    return not (self == other)
7101
 
7102
class getBestSellersCount_args:
7103
 
7104
  thrift_spec = (
7105
  )
7106
 
7107
  def read(self, iprot):
7108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7110
      return
7111
    iprot.readStructBegin()
7112
    while True:
7113
      (fname, ftype, fid) = iprot.readFieldBegin()
7114
      if ftype == TType.STOP:
7115
        break
7116
      else:
7117
        iprot.skip(ftype)
7118
      iprot.readFieldEnd()
7119
    iprot.readStructEnd()
7120
 
7121
  def write(self, oprot):
7122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7124
      return
7125
    oprot.writeStructBegin('getBestSellersCount_args')
7126
    oprot.writeFieldStop()
7127
    oprot.writeStructEnd()
7128
 
7129
  def validate(self):
7130
    return
7131
 
7132
 
7133
  def __repr__(self):
7134
    L = ['%s=%r' % (key, value)
7135
      for key, value in self.__dict__.iteritems()]
7136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7137
 
7138
  def __eq__(self, other):
7139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7140
 
7141
  def __ne__(self, other):
7142
    return not (self == other)
7143
 
7144
class getBestSellersCount_result:
7145
  """
7146
  Attributes:
7147
   - success
7148
   - cex
7149
  """
7150
 
7151
  thrift_spec = (
7152
    (0, TType.I64, 'success', None, None, ), # 0
7153
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7154
  )
7155
 
7156
  def __init__(self, success=None, cex=None,):
7157
    self.success = success
7158
    self.cex = cex
7159
 
7160
  def read(self, iprot):
7161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7163
      return
7164
    iprot.readStructBegin()
7165
    while True:
7166
      (fname, ftype, fid) = iprot.readFieldBegin()
7167
      if ftype == TType.STOP:
7168
        break
7169
      if fid == 0:
7170
        if ftype == TType.I64:
7171
          self.success = iprot.readI64();
7172
        else:
7173
          iprot.skip(ftype)
7174
      elif fid == 1:
7175
        if ftype == TType.STRUCT:
7176
          self.cex = CatalogServiceException()
7177
          self.cex.read(iprot)
7178
        else:
7179
          iprot.skip(ftype)
7180
      else:
7181
        iprot.skip(ftype)
7182
      iprot.readFieldEnd()
7183
    iprot.readStructEnd()
7184
 
7185
  def write(self, oprot):
7186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7188
      return
7189
    oprot.writeStructBegin('getBestSellersCount_result')
7190
    if self.success is not None:
7191
      oprot.writeFieldBegin('success', TType.I64, 0)
7192
      oprot.writeI64(self.success)
7193
      oprot.writeFieldEnd()
7194
    if self.cex is not None:
7195
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7196
      self.cex.write(oprot)
7197
      oprot.writeFieldEnd()
7198
    oprot.writeFieldStop()
7199
    oprot.writeStructEnd()
7200
 
7201
  def validate(self):
7202
    return
7203
 
7204
 
7205
  def __repr__(self):
7206
    L = ['%s=%r' % (key, value)
7207
      for key, value in self.__dict__.iteritems()]
7208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7209
 
7210
  def __eq__(self, other):
7211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7212
 
7213
  def __ne__(self, other):
7214
    return not (self == other)
7215
 
7216
class getBestDeals_args:
7217
 
7218
  thrift_spec = (
7219
  )
7220
 
7221
  def read(self, iprot):
7222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7224
      return
7225
    iprot.readStructBegin()
7226
    while True:
7227
      (fname, ftype, fid) = iprot.readFieldBegin()
7228
      if ftype == TType.STOP:
7229
        break
7230
      else:
7231
        iprot.skip(ftype)
7232
      iprot.readFieldEnd()
7233
    iprot.readStructEnd()
7234
 
7235
  def write(self, oprot):
7236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7238
      return
7239
    oprot.writeStructBegin('getBestDeals_args')
7240
    oprot.writeFieldStop()
7241
    oprot.writeStructEnd()
7242
 
7243
  def validate(self):
7244
    return
7245
 
7246
 
7247
  def __repr__(self):
7248
    L = ['%s=%r' % (key, value)
7249
      for key, value in self.__dict__.iteritems()]
7250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7251
 
7252
  def __eq__(self, other):
7253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7254
 
7255
  def __ne__(self, other):
7256
    return not (self == other)
7257
 
7258
class getBestDeals_result:
7259
  """
7260
  Attributes:
7261
   - success
7262
   - isex
7263
  """
7264
 
7265
  thrift_spec = (
7266
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7267
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7268
  )
7269
 
7270
  def __init__(self, success=None, isex=None,):
7271
    self.success = success
7272
    self.isex = isex
7273
 
7274
  def read(self, iprot):
7275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7277
      return
7278
    iprot.readStructBegin()
7279
    while True:
7280
      (fname, ftype, fid) = iprot.readFieldBegin()
7281
      if ftype == TType.STOP:
7282
        break
7283
      if fid == 0:
7284
        if ftype == TType.LIST:
7285
          self.success = []
7286
          (_etype75, _size72) = iprot.readListBegin()
7287
          for _i76 in xrange(_size72):
7288
            _elem77 = Item()
7289
            _elem77.read(iprot)
7290
            self.success.append(_elem77)
7291
          iprot.readListEnd()
7292
        else:
7293
          iprot.skip(ftype)
7294
      elif fid == 1:
7295
        if ftype == TType.STRUCT:
7296
          self.isex = CatalogServiceException()
7297
          self.isex.read(iprot)
7298
        else:
7299
          iprot.skip(ftype)
7300
      else:
7301
        iprot.skip(ftype)
7302
      iprot.readFieldEnd()
7303
    iprot.readStructEnd()
7304
 
7305
  def write(self, oprot):
7306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7308
      return
7309
    oprot.writeStructBegin('getBestDeals_result')
7310
    if self.success is not None:
7311
      oprot.writeFieldBegin('success', TType.LIST, 0)
7312
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7313
      for iter78 in self.success:
7314
        iter78.write(oprot)
7315
      oprot.writeListEnd()
7316
      oprot.writeFieldEnd()
7317
    if self.isex is not None:
7318
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7319
      self.isex.write(oprot)
7320
      oprot.writeFieldEnd()
7321
    oprot.writeFieldStop()
7322
    oprot.writeStructEnd()
7323
 
7324
  def validate(self):
7325
    return
7326
 
7327
 
7328
  def __repr__(self):
7329
    L = ['%s=%r' % (key, value)
7330
      for key, value in self.__dict__.iteritems()]
7331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7332
 
7333
  def __eq__(self, other):
7334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7335
 
7336
  def __ne__(self, other):
7337
    return not (self == other)
7338
 
7339
class getBestDealsCatalogIds_args:
7340
  """
7341
  Attributes:
7342
   - beginIndex
7343
   - totalItems
7344
   - brand
7345
   - category
7346
  """
7347
 
7348
  thrift_spec = (
7349
    None, # 0
7350
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7351
    (2, TType.I64, 'totalItems', None, None, ), # 2
7352
    (3, TType.STRING, 'brand', None, None, ), # 3
7353
    (4, TType.I64, 'category', None, None, ), # 4
7354
  )
7355
 
7356
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7357
    self.beginIndex = beginIndex
7358
    self.totalItems = totalItems
7359
    self.brand = brand
7360
    self.category = category
7361
 
7362
  def read(self, iprot):
7363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7365
      return
7366
    iprot.readStructBegin()
7367
    while True:
7368
      (fname, ftype, fid) = iprot.readFieldBegin()
7369
      if ftype == TType.STOP:
7370
        break
7371
      if fid == 1:
7372
        if ftype == TType.I64:
7373
          self.beginIndex = iprot.readI64();
7374
        else:
7375
          iprot.skip(ftype)
7376
      elif fid == 2:
7377
        if ftype == TType.I64:
7378
          self.totalItems = iprot.readI64();
7379
        else:
7380
          iprot.skip(ftype)
7381
      elif fid == 3:
7382
        if ftype == TType.STRING:
7383
          self.brand = iprot.readString();
7384
        else:
7385
          iprot.skip(ftype)
7386
      elif fid == 4:
7387
        if ftype == TType.I64:
7388
          self.category = iprot.readI64();
7389
        else:
7390
          iprot.skip(ftype)
7391
      else:
7392
        iprot.skip(ftype)
7393
      iprot.readFieldEnd()
7394
    iprot.readStructEnd()
7395
 
7396
  def write(self, oprot):
7397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7399
      return
7400
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7401
    if self.beginIndex is not None:
7402
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7403
      oprot.writeI64(self.beginIndex)
7404
      oprot.writeFieldEnd()
7405
    if self.totalItems is not None:
7406
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7407
      oprot.writeI64(self.totalItems)
7408
      oprot.writeFieldEnd()
7409
    if self.brand is not None:
7410
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7411
      oprot.writeString(self.brand)
7412
      oprot.writeFieldEnd()
7413
    if self.category is not None:
7414
      oprot.writeFieldBegin('category', TType.I64, 4)
7415
      oprot.writeI64(self.category)
7416
      oprot.writeFieldEnd()
7417
    oprot.writeFieldStop()
7418
    oprot.writeStructEnd()
7419
 
7420
  def validate(self):
7421
    return
7422
 
7423
 
7424
  def __repr__(self):
7425
    L = ['%s=%r' % (key, value)
7426
      for key, value in self.__dict__.iteritems()]
7427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7428
 
7429
  def __eq__(self, other):
7430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7431
 
7432
  def __ne__(self, other):
7433
    return not (self == other)
7434
 
7435
class getBestDealsCatalogIds_result:
7436
  """
7437
  Attributes:
7438
   - success
7439
   - cex
7440
  """
7441
 
7442
  thrift_spec = (
7443
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7444
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7445
  )
7446
 
7447
  def __init__(self, success=None, cex=None,):
7448
    self.success = success
7449
    self.cex = cex
7450
 
7451
  def read(self, iprot):
7452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7454
      return
7455
    iprot.readStructBegin()
7456
    while True:
7457
      (fname, ftype, fid) = iprot.readFieldBegin()
7458
      if ftype == TType.STOP:
7459
        break
7460
      if fid == 0:
7461
        if ftype == TType.LIST:
7462
          self.success = []
7463
          (_etype82, _size79) = iprot.readListBegin()
7464
          for _i83 in xrange(_size79):
7465
            _elem84 = iprot.readI64();
7466
            self.success.append(_elem84)
7467
          iprot.readListEnd()
7468
        else:
7469
          iprot.skip(ftype)
7470
      elif fid == 1:
7471
        if ftype == TType.STRUCT:
7472
          self.cex = CatalogServiceException()
7473
          self.cex.read(iprot)
7474
        else:
7475
          iprot.skip(ftype)
7476
      else:
7477
        iprot.skip(ftype)
7478
      iprot.readFieldEnd()
7479
    iprot.readStructEnd()
7480
 
7481
  def write(self, oprot):
7482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7484
      return
7485
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7486
    if self.success is not None:
7487
      oprot.writeFieldBegin('success', TType.LIST, 0)
7488
      oprot.writeListBegin(TType.I64, len(self.success))
7489
      for iter85 in self.success:
7490
        oprot.writeI64(iter85)
7491
      oprot.writeListEnd()
7492
      oprot.writeFieldEnd()
7493
    if self.cex is not None:
7494
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7495
      self.cex.write(oprot)
7496
      oprot.writeFieldEnd()
7497
    oprot.writeFieldStop()
7498
    oprot.writeStructEnd()
7499
 
7500
  def validate(self):
7501
    return
7502
 
7503
 
7504
  def __repr__(self):
7505
    L = ['%s=%r' % (key, value)
7506
      for key, value in self.__dict__.iteritems()]
7507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7508
 
7509
  def __eq__(self, other):
7510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7511
 
7512
  def __ne__(self, other):
7513
    return not (self == other)
7514
 
7515
class getBestDealsCount_args:
7516
 
7517
  thrift_spec = (
7518
  )
7519
 
7520
  def read(self, iprot):
7521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7523
      return
7524
    iprot.readStructBegin()
7525
    while True:
7526
      (fname, ftype, fid) = iprot.readFieldBegin()
7527
      if ftype == TType.STOP:
7528
        break
7529
      else:
7530
        iprot.skip(ftype)
7531
      iprot.readFieldEnd()
7532
    iprot.readStructEnd()
7533
 
7534
  def write(self, oprot):
7535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7537
      return
7538
    oprot.writeStructBegin('getBestDealsCount_args')
7539
    oprot.writeFieldStop()
7540
    oprot.writeStructEnd()
7541
 
7542
  def validate(self):
7543
    return
7544
 
7545
 
7546
  def __repr__(self):
7547
    L = ['%s=%r' % (key, value)
7548
      for key, value in self.__dict__.iteritems()]
7549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7550
 
7551
  def __eq__(self, other):
7552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7553
 
7554
  def __ne__(self, other):
7555
    return not (self == other)
7556
 
7557
class getBestDealsCount_result:
7558
  """
7559
  Attributes:
7560
   - success
7561
   - cex
7562
  """
7563
 
7564
  thrift_spec = (
7565
    (0, TType.I64, 'success', None, None, ), # 0
7566
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7567
  )
7568
 
7569
  def __init__(self, success=None, cex=None,):
7570
    self.success = success
7571
    self.cex = cex
7572
 
7573
  def read(self, iprot):
7574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7576
      return
7577
    iprot.readStructBegin()
7578
    while True:
7579
      (fname, ftype, fid) = iprot.readFieldBegin()
7580
      if ftype == TType.STOP:
7581
        break
7582
      if fid == 0:
7583
        if ftype == TType.I64:
7584
          self.success = iprot.readI64();
7585
        else:
7586
          iprot.skip(ftype)
7587
      elif fid == 1:
7588
        if ftype == TType.STRUCT:
7589
          self.cex = CatalogServiceException()
7590
          self.cex.read(iprot)
7591
        else:
7592
          iprot.skip(ftype)
7593
      else:
7594
        iprot.skip(ftype)
7595
      iprot.readFieldEnd()
7596
    iprot.readStructEnd()
7597
 
7598
  def write(self, oprot):
7599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7601
      return
7602
    oprot.writeStructBegin('getBestDealsCount_result')
7603
    if self.success is not None:
7604
      oprot.writeFieldBegin('success', TType.I64, 0)
7605
      oprot.writeI64(self.success)
7606
      oprot.writeFieldEnd()
7607
    if self.cex is not None:
7608
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7609
      self.cex.write(oprot)
7610
      oprot.writeFieldEnd()
7611
    oprot.writeFieldStop()
7612
    oprot.writeStructEnd()
7613
 
7614
  def validate(self):
7615
    return
7616
 
7617
 
7618
  def __repr__(self):
7619
    L = ['%s=%r' % (key, value)
7620
      for key, value in self.__dict__.iteritems()]
7621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7622
 
7623
  def __eq__(self, other):
7624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7625
 
7626
  def __ne__(self, other):
7627
    return not (self == other)
7628
 
7629
class getComingSoon_args:
7630
 
7631
  thrift_spec = (
7632
  )
7633
 
7634
  def read(self, iprot):
7635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7637
      return
7638
    iprot.readStructBegin()
7639
    while True:
7640
      (fname, ftype, fid) = iprot.readFieldBegin()
7641
      if ftype == TType.STOP:
7642
        break
7643
      else:
7644
        iprot.skip(ftype)
7645
      iprot.readFieldEnd()
7646
    iprot.readStructEnd()
7647
 
7648
  def write(self, oprot):
7649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7651
      return
7652
    oprot.writeStructBegin('getComingSoon_args')
7653
    oprot.writeFieldStop()
7654
    oprot.writeStructEnd()
7655
 
7656
  def validate(self):
7657
    return
7658
 
7659
 
7660
  def __repr__(self):
7661
    L = ['%s=%r' % (key, value)
7662
      for key, value in self.__dict__.iteritems()]
7663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7664
 
7665
  def __eq__(self, other):
7666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7667
 
7668
  def __ne__(self, other):
7669
    return not (self == other)
7670
 
7671
class getComingSoon_result:
7672
  """
7673
  Attributes:
7674
   - success
7675
   - isex
7676
  """
7677
 
7678
  thrift_spec = (
7679
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7680
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7681
  )
7682
 
7683
  def __init__(self, success=None, isex=None,):
7684
    self.success = success
7685
    self.isex = isex
7686
 
7687
  def read(self, iprot):
7688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7690
      return
7691
    iprot.readStructBegin()
7692
    while True:
7693
      (fname, ftype, fid) = iprot.readFieldBegin()
7694
      if ftype == TType.STOP:
7695
        break
7696
      if fid == 0:
7697
        if ftype == TType.LIST:
7698
          self.success = []
7699
          (_etype89, _size86) = iprot.readListBegin()
7700
          for _i90 in xrange(_size86):
7701
            _elem91 = Item()
7702
            _elem91.read(iprot)
7703
            self.success.append(_elem91)
7704
          iprot.readListEnd()
7705
        else:
7706
          iprot.skip(ftype)
7707
      elif fid == 1:
7708
        if ftype == TType.STRUCT:
7709
          self.isex = CatalogServiceException()
7710
          self.isex.read(iprot)
7711
        else:
7712
          iprot.skip(ftype)
7713
      else:
7714
        iprot.skip(ftype)
7715
      iprot.readFieldEnd()
7716
    iprot.readStructEnd()
7717
 
7718
  def write(self, oprot):
7719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7721
      return
7722
    oprot.writeStructBegin('getComingSoon_result')
7723
    if self.success is not None:
7724
      oprot.writeFieldBegin('success', TType.LIST, 0)
7725
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7726
      for iter92 in self.success:
7727
        iter92.write(oprot)
7728
      oprot.writeListEnd()
7729
      oprot.writeFieldEnd()
7730
    if self.isex is not None:
7731
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7732
      self.isex.write(oprot)
7733
      oprot.writeFieldEnd()
7734
    oprot.writeFieldStop()
7735
    oprot.writeStructEnd()
7736
 
7737
  def validate(self):
7738
    return
7739
 
7740
 
7741
  def __repr__(self):
7742
    L = ['%s=%r' % (key, value)
7743
      for key, value in self.__dict__.iteritems()]
7744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7745
 
7746
  def __eq__(self, other):
7747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7748
 
7749
  def __ne__(self, other):
7750
    return not (self == other)
7751
 
7752
class getComingSoonCatalogIds_args:
7753
  """
7754
  Attributes:
7755
   - beginIndex
7756
   - totalItems
7757
   - brand
7758
   - category
7759
  """
7760
 
7761
  thrift_spec = (
7762
    None, # 0
7763
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7764
    (2, TType.I64, 'totalItems', None, None, ), # 2
7765
    (3, TType.STRING, 'brand', None, None, ), # 3
7766
    (4, TType.I64, 'category', None, None, ), # 4
7767
  )
7768
 
7769
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7770
    self.beginIndex = beginIndex
7771
    self.totalItems = totalItems
7772
    self.brand = brand
7773
    self.category = category
7774
 
7775
  def read(self, iprot):
7776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7778
      return
7779
    iprot.readStructBegin()
7780
    while True:
7781
      (fname, ftype, fid) = iprot.readFieldBegin()
7782
      if ftype == TType.STOP:
7783
        break
7784
      if fid == 1:
7785
        if ftype == TType.I64:
7786
          self.beginIndex = iprot.readI64();
7787
        else:
7788
          iprot.skip(ftype)
7789
      elif fid == 2:
7790
        if ftype == TType.I64:
7791
          self.totalItems = iprot.readI64();
7792
        else:
7793
          iprot.skip(ftype)
7794
      elif fid == 3:
7795
        if ftype == TType.STRING:
7796
          self.brand = iprot.readString();
7797
        else:
7798
          iprot.skip(ftype)
7799
      elif fid == 4:
7800
        if ftype == TType.I64:
7801
          self.category = iprot.readI64();
7802
        else:
7803
          iprot.skip(ftype)
7804
      else:
7805
        iprot.skip(ftype)
7806
      iprot.readFieldEnd()
7807
    iprot.readStructEnd()
7808
 
7809
  def write(self, oprot):
7810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7812
      return
7813
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7814
    if self.beginIndex is not None:
7815
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7816
      oprot.writeI64(self.beginIndex)
7817
      oprot.writeFieldEnd()
7818
    if self.totalItems is not None:
7819
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7820
      oprot.writeI64(self.totalItems)
7821
      oprot.writeFieldEnd()
7822
    if self.brand is not None:
7823
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7824
      oprot.writeString(self.brand)
7825
      oprot.writeFieldEnd()
7826
    if self.category is not None:
7827
      oprot.writeFieldBegin('category', TType.I64, 4)
7828
      oprot.writeI64(self.category)
7829
      oprot.writeFieldEnd()
7830
    oprot.writeFieldStop()
7831
    oprot.writeStructEnd()
7832
 
7833
  def validate(self):
7834
    return
7835
 
7836
 
7837
  def __repr__(self):
7838
    L = ['%s=%r' % (key, value)
7839
      for key, value in self.__dict__.iteritems()]
7840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7841
 
7842
  def __eq__(self, other):
7843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7844
 
7845
  def __ne__(self, other):
7846
    return not (self == other)
7847
 
7848
class getComingSoonCatalogIds_result:
7849
  """
7850
  Attributes:
7851
   - success
7852
   - cex
7853
  """
7854
 
7855
  thrift_spec = (
7856
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7857
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7858
  )
7859
 
7860
  def __init__(self, success=None, cex=None,):
7861
    self.success = success
7862
    self.cex = cex
7863
 
7864
  def read(self, iprot):
7865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7867
      return
7868
    iprot.readStructBegin()
7869
    while True:
7870
      (fname, ftype, fid) = iprot.readFieldBegin()
7871
      if ftype == TType.STOP:
7872
        break
7873
      if fid == 0:
7874
        if ftype == TType.LIST:
7875
          self.success = []
7876
          (_etype96, _size93) = iprot.readListBegin()
7877
          for _i97 in xrange(_size93):
7878
            _elem98 = iprot.readI64();
7879
            self.success.append(_elem98)
7880
          iprot.readListEnd()
7881
        else:
7882
          iprot.skip(ftype)
7883
      elif fid == 1:
7884
        if ftype == TType.STRUCT:
7885
          self.cex = CatalogServiceException()
7886
          self.cex.read(iprot)
7887
        else:
7888
          iprot.skip(ftype)
7889
      else:
7890
        iprot.skip(ftype)
7891
      iprot.readFieldEnd()
7892
    iprot.readStructEnd()
7893
 
7894
  def write(self, oprot):
7895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7897
      return
7898
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7899
    if self.success is not None:
7900
      oprot.writeFieldBegin('success', TType.LIST, 0)
7901
      oprot.writeListBegin(TType.I64, len(self.success))
7902
      for iter99 in self.success:
7903
        oprot.writeI64(iter99)
7904
      oprot.writeListEnd()
7905
      oprot.writeFieldEnd()
7906
    if self.cex is not None:
7907
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7908
      self.cex.write(oprot)
7909
      oprot.writeFieldEnd()
7910
    oprot.writeFieldStop()
7911
    oprot.writeStructEnd()
7912
 
7913
  def validate(self):
7914
    return
7915
 
7916
 
7917
  def __repr__(self):
7918
    L = ['%s=%r' % (key, value)
7919
      for key, value in self.__dict__.iteritems()]
7920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7921
 
7922
  def __eq__(self, other):
7923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7924
 
7925
  def __ne__(self, other):
7926
    return not (self == other)
7927
 
7928
class getComingSoonCount_args:
7929
 
7930
  thrift_spec = (
7931
  )
7932
 
7933
  def read(self, iprot):
7934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7936
      return
7937
    iprot.readStructBegin()
7938
    while True:
7939
      (fname, ftype, fid) = iprot.readFieldBegin()
7940
      if ftype == TType.STOP:
7941
        break
7942
      else:
7943
        iprot.skip(ftype)
7944
      iprot.readFieldEnd()
7945
    iprot.readStructEnd()
7946
 
7947
  def write(self, oprot):
7948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7950
      return
7951
    oprot.writeStructBegin('getComingSoonCount_args')
7952
    oprot.writeFieldStop()
7953
    oprot.writeStructEnd()
7954
 
7955
  def validate(self):
7956
    return
7957
 
7958
 
7959
  def __repr__(self):
7960
    L = ['%s=%r' % (key, value)
7961
      for key, value in self.__dict__.iteritems()]
7962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7963
 
7964
  def __eq__(self, other):
7965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7966
 
7967
  def __ne__(self, other):
7968
    return not (self == other)
7969
 
7970
class getComingSoonCount_result:
7971
  """
7972
  Attributes:
7973
   - success
7974
   - cex
7975
  """
7976
 
7977
  thrift_spec = (
7978
    (0, TType.I64, 'success', None, None, ), # 0
7979
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7980
  )
7981
 
7982
  def __init__(self, success=None, cex=None,):
7983
    self.success = success
7984
    self.cex = cex
7985
 
7986
  def read(self, iprot):
7987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7989
      return
7990
    iprot.readStructBegin()
7991
    while True:
7992
      (fname, ftype, fid) = iprot.readFieldBegin()
7993
      if ftype == TType.STOP:
7994
        break
7995
      if fid == 0:
7996
        if ftype == TType.I64:
7997
          self.success = iprot.readI64();
7998
        else:
7999
          iprot.skip(ftype)
8000
      elif fid == 1:
8001
        if ftype == TType.STRUCT:
8002
          self.cex = CatalogServiceException()
8003
          self.cex.read(iprot)
8004
        else:
8005
          iprot.skip(ftype)
8006
      else:
8007
        iprot.skip(ftype)
8008
      iprot.readFieldEnd()
8009
    iprot.readStructEnd()
8010
 
8011
  def write(self, oprot):
8012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8014
      return
8015
    oprot.writeStructBegin('getComingSoonCount_result')
8016
    if self.success is not None:
8017
      oprot.writeFieldBegin('success', TType.I64, 0)
8018
      oprot.writeI64(self.success)
8019
      oprot.writeFieldEnd()
8020
    if self.cex is not None:
8021
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8022
      self.cex.write(oprot)
8023
      oprot.writeFieldEnd()
8024
    oprot.writeFieldStop()
8025
    oprot.writeStructEnd()
8026
 
8027
  def validate(self):
8028
    return
8029
 
8030
 
8031
  def __repr__(self):
8032
    L = ['%s=%r' % (key, value)
8033
      for key, value in self.__dict__.iteritems()]
8034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8035
 
8036
  def __eq__(self, other):
8037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8038
 
8039
  def __ne__(self, other):
8040
    return not (self == other)
8041
 
8042
class getLatestArrivals_args:
8043
 
8044
  thrift_spec = (
8045
  )
8046
 
8047
  def read(self, iprot):
8048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8050
      return
8051
    iprot.readStructBegin()
8052
    while True:
8053
      (fname, ftype, fid) = iprot.readFieldBegin()
8054
      if ftype == TType.STOP:
8055
        break
8056
      else:
8057
        iprot.skip(ftype)
8058
      iprot.readFieldEnd()
8059
    iprot.readStructEnd()
8060
 
8061
  def write(self, oprot):
8062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8064
      return
8065
    oprot.writeStructBegin('getLatestArrivals_args')
8066
    oprot.writeFieldStop()
8067
    oprot.writeStructEnd()
8068
 
8069
  def validate(self):
8070
    return
8071
 
8072
 
8073
  def __repr__(self):
8074
    L = ['%s=%r' % (key, value)
8075
      for key, value in self.__dict__.iteritems()]
8076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8077
 
8078
  def __eq__(self, other):
8079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8080
 
8081
  def __ne__(self, other):
8082
    return not (self == other)
8083
 
8084
class getLatestArrivals_result:
8085
  """
8086
  Attributes:
8087
   - success
8088
   - isex
8089
  """
8090
 
8091
  thrift_spec = (
8092
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8093
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8094
  )
8095
 
8096
  def __init__(self, success=None, isex=None,):
8097
    self.success = success
8098
    self.isex = isex
8099
 
8100
  def read(self, iprot):
8101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8103
      return
8104
    iprot.readStructBegin()
8105
    while True:
8106
      (fname, ftype, fid) = iprot.readFieldBegin()
8107
      if ftype == TType.STOP:
8108
        break
8109
      if fid == 0:
8110
        if ftype == TType.LIST:
8111
          self.success = []
8112
          (_etype103, _size100) = iprot.readListBegin()
8113
          for _i104 in xrange(_size100):
8114
            _elem105 = Item()
8115
            _elem105.read(iprot)
8116
            self.success.append(_elem105)
8117
          iprot.readListEnd()
8118
        else:
8119
          iprot.skip(ftype)
8120
      elif fid == 1:
8121
        if ftype == TType.STRUCT:
8122
          self.isex = CatalogServiceException()
8123
          self.isex.read(iprot)
8124
        else:
8125
          iprot.skip(ftype)
8126
      else:
8127
        iprot.skip(ftype)
8128
      iprot.readFieldEnd()
8129
    iprot.readStructEnd()
8130
 
8131
  def write(self, oprot):
8132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8134
      return
8135
    oprot.writeStructBegin('getLatestArrivals_result')
8136
    if self.success is not None:
8137
      oprot.writeFieldBegin('success', TType.LIST, 0)
8138
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8139
      for iter106 in self.success:
8140
        iter106.write(oprot)
8141
      oprot.writeListEnd()
8142
      oprot.writeFieldEnd()
8143
    if self.isex is not None:
8144
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8145
      self.isex.write(oprot)
8146
      oprot.writeFieldEnd()
8147
    oprot.writeFieldStop()
8148
    oprot.writeStructEnd()
8149
 
8150
  def validate(self):
8151
    return
8152
 
8153
 
8154
  def __repr__(self):
8155
    L = ['%s=%r' % (key, value)
8156
      for key, value in self.__dict__.iteritems()]
8157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8158
 
8159
  def __eq__(self, other):
8160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8161
 
8162
  def __ne__(self, other):
8163
    return not (self == other)
8164
 
8165
class getLatestArrivalsCatalogIds_args:
8166
  """
8167
  Attributes:
8168
   - beginIndex
8169
   - totalItems
8170
   - brand
8171
   - categories
8172
  """
8173
 
8174
  thrift_spec = (
8175
    None, # 0
8176
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8177
    (2, TType.I64, 'totalItems', None, None, ), # 2
8178
    (3, TType.STRING, 'brand', None, None, ), # 3
8179
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8180
  )
8181
 
8182
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8183
    self.beginIndex = beginIndex
8184
    self.totalItems = totalItems
8185
    self.brand = brand
8186
    self.categories = categories
8187
 
8188
  def read(self, iprot):
8189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8191
      return
8192
    iprot.readStructBegin()
8193
    while True:
8194
      (fname, ftype, fid) = iprot.readFieldBegin()
8195
      if ftype == TType.STOP:
8196
        break
8197
      if fid == 1:
8198
        if ftype == TType.I64:
8199
          self.beginIndex = iprot.readI64();
8200
        else:
8201
          iprot.skip(ftype)
8202
      elif fid == 2:
8203
        if ftype == TType.I64:
8204
          self.totalItems = iprot.readI64();
8205
        else:
8206
          iprot.skip(ftype)
8207
      elif fid == 3:
8208
        if ftype == TType.STRING:
8209
          self.brand = iprot.readString();
8210
        else:
8211
          iprot.skip(ftype)
8212
      elif fid == 4:
8213
        if ftype == TType.LIST:
8214
          self.categories = []
8215
          (_etype110, _size107) = iprot.readListBegin()
8216
          for _i111 in xrange(_size107):
8217
            _elem112 = iprot.readI64();
8218
            self.categories.append(_elem112)
8219
          iprot.readListEnd()
8220
        else:
8221
          iprot.skip(ftype)
8222
      else:
8223
        iprot.skip(ftype)
8224
      iprot.readFieldEnd()
8225
    iprot.readStructEnd()
8226
 
8227
  def write(self, oprot):
8228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8230
      return
8231
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
8232
    if self.beginIndex is not None:
8233
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8234
      oprot.writeI64(self.beginIndex)
8235
      oprot.writeFieldEnd()
8236
    if self.totalItems is not None:
8237
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8238
      oprot.writeI64(self.totalItems)
8239
      oprot.writeFieldEnd()
8240
    if self.brand is not None:
8241
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8242
      oprot.writeString(self.brand)
8243
      oprot.writeFieldEnd()
8244
    if self.categories is not None:
8245
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8246
      oprot.writeListBegin(TType.I64, len(self.categories))
8247
      for iter113 in self.categories:
8248
        oprot.writeI64(iter113)
8249
      oprot.writeListEnd()
8250
      oprot.writeFieldEnd()
8251
    oprot.writeFieldStop()
8252
    oprot.writeStructEnd()
8253
 
8254
  def validate(self):
8255
    return
8256
 
8257
 
8258
  def __repr__(self):
8259
    L = ['%s=%r' % (key, value)
8260
      for key, value in self.__dict__.iteritems()]
8261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8262
 
8263
  def __eq__(self, other):
8264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8265
 
8266
  def __ne__(self, other):
8267
    return not (self == other)
8268
 
8269
class getLatestArrivalsCatalogIds_result:
8270
  """
8271
  Attributes:
8272
   - success
8273
   - cex
8274
  """
8275
 
8276
  thrift_spec = (
8277
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8278
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8279
  )
8280
 
8281
  def __init__(self, success=None, cex=None,):
8282
    self.success = success
8283
    self.cex = cex
8284
 
8285
  def read(self, iprot):
8286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8288
      return
8289
    iprot.readStructBegin()
8290
    while True:
8291
      (fname, ftype, fid) = iprot.readFieldBegin()
8292
      if ftype == TType.STOP:
8293
        break
8294
      if fid == 0:
8295
        if ftype == TType.LIST:
8296
          self.success = []
8297
          (_etype117, _size114) = iprot.readListBegin()
8298
          for _i118 in xrange(_size114):
8299
            _elem119 = iprot.readI64();
8300
            self.success.append(_elem119)
8301
          iprot.readListEnd()
8302
        else:
8303
          iprot.skip(ftype)
8304
      elif fid == 1:
8305
        if ftype == TType.STRUCT:
8306
          self.cex = CatalogServiceException()
8307
          self.cex.read(iprot)
8308
        else:
8309
          iprot.skip(ftype)
8310
      else:
8311
        iprot.skip(ftype)
8312
      iprot.readFieldEnd()
8313
    iprot.readStructEnd()
8314
 
8315
  def write(self, oprot):
8316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8318
      return
8319
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8320
    if self.success is not None:
8321
      oprot.writeFieldBegin('success', TType.LIST, 0)
8322
      oprot.writeListBegin(TType.I64, len(self.success))
8323
      for iter120 in self.success:
8324
        oprot.writeI64(iter120)
8325
      oprot.writeListEnd()
8326
      oprot.writeFieldEnd()
8327
    if self.cex is not None:
8328
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8329
      self.cex.write(oprot)
8330
      oprot.writeFieldEnd()
8331
    oprot.writeFieldStop()
8332
    oprot.writeStructEnd()
8333
 
8334
  def validate(self):
8335
    return
8336
 
8337
 
8338
  def __repr__(self):
8339
    L = ['%s=%r' % (key, value)
8340
      for key, value in self.__dict__.iteritems()]
8341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8342
 
8343
  def __eq__(self, other):
8344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8345
 
8346
  def __ne__(self, other):
8347
    return not (self == other)
8348
 
8349
class getLatestArrivalsCount_args:
8350
 
8351
  thrift_spec = (
8352
  )
8353
 
8354
  def read(self, iprot):
8355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8357
      return
8358
    iprot.readStructBegin()
8359
    while True:
8360
      (fname, ftype, fid) = iprot.readFieldBegin()
8361
      if ftype == TType.STOP:
8362
        break
8363
      else:
8364
        iprot.skip(ftype)
8365
      iprot.readFieldEnd()
8366
    iprot.readStructEnd()
8367
 
8368
  def write(self, oprot):
8369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8371
      return
8372
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8373
    oprot.writeFieldStop()
8374
    oprot.writeStructEnd()
8375
 
8376
  def validate(self):
8377
    return
8378
 
8379
 
8380
  def __repr__(self):
8381
    L = ['%s=%r' % (key, value)
8382
      for key, value in self.__dict__.iteritems()]
8383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8384
 
8385
  def __eq__(self, other):
8386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8387
 
8388
  def __ne__(self, other):
8389
    return not (self == other)
8390
 
8391
class getLatestArrivalsCount_result:
8392
  """
8393
  Attributes:
8394
   - success
8395
   - cex
8396
  """
8397
 
8398
  thrift_spec = (
8399
    (0, TType.I64, 'success', None, None, ), # 0
8400
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8401
  )
8402
 
8403
  def __init__(self, success=None, cex=None,):
8404
    self.success = success
8405
    self.cex = cex
8406
 
8407
  def read(self, iprot):
8408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8410
      return
8411
    iprot.readStructBegin()
8412
    while True:
8413
      (fname, ftype, fid) = iprot.readFieldBegin()
8414
      if ftype == TType.STOP:
8415
        break
8416
      if fid == 0:
8417
        if ftype == TType.I64:
8418
          self.success = iprot.readI64();
8419
        else:
8420
          iprot.skip(ftype)
8421
      elif fid == 1:
8422
        if ftype == TType.STRUCT:
8423
          self.cex = CatalogServiceException()
8424
          self.cex.read(iprot)
8425
        else:
8426
          iprot.skip(ftype)
8427
      else:
8428
        iprot.skip(ftype)
8429
      iprot.readFieldEnd()
8430
    iprot.readStructEnd()
8431
 
8432
  def write(self, oprot):
8433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8435
      return
8436
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8437
    if self.success is not None:
8438
      oprot.writeFieldBegin('success', TType.I64, 0)
8439
      oprot.writeI64(self.success)
8440
      oprot.writeFieldEnd()
8441
    if self.cex is not None:
8442
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8443
      self.cex.write(oprot)
8444
      oprot.writeFieldEnd()
8445
    oprot.writeFieldStop()
8446
    oprot.writeStructEnd()
8447
 
8448
  def validate(self):
8449
    return
8450
 
8451
 
8452
  def __repr__(self):
8453
    L = ['%s=%r' % (key, value)
8454
      for key, value in self.__dict__.iteritems()]
8455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8456
 
8457
  def __eq__(self, other):
8458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8459
 
8460
  def __ne__(self, other):
8461
    return not (self == other)
8462
 
8463
class generateNewEntityID_args:
8464
 
8465
  thrift_spec = (
8466
  )
8467
 
8468
  def read(self, iprot):
8469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8471
      return
8472
    iprot.readStructBegin()
8473
    while True:
8474
      (fname, ftype, fid) = iprot.readFieldBegin()
8475
      if ftype == TType.STOP:
8476
        break
8477
      else:
8478
        iprot.skip(ftype)
8479
      iprot.readFieldEnd()
8480
    iprot.readStructEnd()
8481
 
8482
  def write(self, oprot):
8483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8485
      return
8486
    oprot.writeStructBegin('generateNewEntityID_args')
8487
    oprot.writeFieldStop()
8488
    oprot.writeStructEnd()
8489
 
8490
  def validate(self):
8491
    return
8492
 
8493
 
8494
  def __repr__(self):
8495
    L = ['%s=%r' % (key, value)
8496
      for key, value in self.__dict__.iteritems()]
8497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8498
 
8499
  def __eq__(self, other):
8500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8501
 
8502
  def __ne__(self, other):
8503
    return not (self == other)
8504
 
8505
class generateNewEntityID_result:
8506
  """
8507
  Attributes:
8508
   - success
8509
  """
8510
 
8511
  thrift_spec = (
8512
    (0, TType.I64, 'success', None, None, ), # 0
8513
  )
8514
 
8515
  def __init__(self, success=None,):
8516
    self.success = success
8517
 
8518
  def read(self, iprot):
8519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8521
      return
8522
    iprot.readStructBegin()
8523
    while True:
8524
      (fname, ftype, fid) = iprot.readFieldBegin()
8525
      if ftype == TType.STOP:
8526
        break
8527
      if fid == 0:
8528
        if ftype == TType.I64:
8529
          self.success = iprot.readI64();
8530
        else:
8531
          iprot.skip(ftype)
8532
      else:
8533
        iprot.skip(ftype)
8534
      iprot.readFieldEnd()
8535
    iprot.readStructEnd()
8536
 
8537
  def write(self, oprot):
8538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8540
      return
8541
    oprot.writeStructBegin('generateNewEntityID_result')
8542
    if self.success is not None:
8543
      oprot.writeFieldBegin('success', TType.I64, 0)
8544
      oprot.writeI64(self.success)
8545
      oprot.writeFieldEnd()
8546
    oprot.writeFieldStop()
8547
    oprot.writeStructEnd()
8548
 
8549
  def validate(self):
8550
    return
8551
 
8552
 
8553
  def __repr__(self):
8554
    L = ['%s=%r' % (key, value)
8555
      for key, value in self.__dict__.iteritems()]
8556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8557
 
8558
  def __eq__(self, other):
8559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8560
 
8561
  def __ne__(self, other):
8562
    return not (self == other)
8563
 
8564
class addCategory_args:
8565
  """
8566
  Attributes:
8567
   - category
8568
  """
8569
 
8570
  thrift_spec = (
8571
    None, # 0
8572
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8573
  )
8574
 
8575
  def __init__(self, category=None,):
8576
    self.category = category
8577
 
8578
  def read(self, iprot):
8579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8581
      return
8582
    iprot.readStructBegin()
8583
    while True:
8584
      (fname, ftype, fid) = iprot.readFieldBegin()
8585
      if ftype == TType.STOP:
8586
        break
8587
      if fid == 1:
8588
        if ftype == TType.STRUCT:
8589
          self.category = Category()
8590
          self.category.read(iprot)
8591
        else:
8592
          iprot.skip(ftype)
8593
      else:
8594
        iprot.skip(ftype)
8595
      iprot.readFieldEnd()
8596
    iprot.readStructEnd()
8597
 
8598
  def write(self, oprot):
8599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8601
      return
8602
    oprot.writeStructBegin('addCategory_args')
8603
    if self.category is not None:
8604
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8605
      self.category.write(oprot)
8606
      oprot.writeFieldEnd()
8607
    oprot.writeFieldStop()
8608
    oprot.writeStructEnd()
8609
 
8610
  def validate(self):
8611
    return
8612
 
8613
 
8614
  def __repr__(self):
8615
    L = ['%s=%r' % (key, value)
8616
      for key, value in self.__dict__.iteritems()]
8617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8618
 
8619
  def __eq__(self, other):
8620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8621
 
8622
  def __ne__(self, other):
8623
    return not (self == other)
8624
 
8625
class addCategory_result:
8626
  """
8627
  Attributes:
8628
   - success
8629
  """
8630
 
8631
  thrift_spec = (
8632
    (0, TType.BOOL, 'success', None, None, ), # 0
8633
  )
8634
 
8635
  def __init__(self, success=None,):
8636
    self.success = success
8637
 
8638
  def read(self, iprot):
8639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8641
      return
8642
    iprot.readStructBegin()
8643
    while True:
8644
      (fname, ftype, fid) = iprot.readFieldBegin()
8645
      if ftype == TType.STOP:
8646
        break
8647
      if fid == 0:
8648
        if ftype == TType.BOOL:
8649
          self.success = iprot.readBool();
8650
        else:
8651
          iprot.skip(ftype)
8652
      else:
8653
        iprot.skip(ftype)
8654
      iprot.readFieldEnd()
8655
    iprot.readStructEnd()
8656
 
8657
  def write(self, oprot):
8658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8660
      return
8661
    oprot.writeStructBegin('addCategory_result')
8662
    if self.success is not None:
8663
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8664
      oprot.writeBool(self.success)
8665
      oprot.writeFieldEnd()
8666
    oprot.writeFieldStop()
8667
    oprot.writeStructEnd()
8668
 
8669
  def validate(self):
8670
    return
8671
 
8672
 
8673
  def __repr__(self):
8674
    L = ['%s=%r' % (key, value)
8675
      for key, value in self.__dict__.iteritems()]
8676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8677
 
8678
  def __eq__(self, other):
8679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8680
 
8681
  def __ne__(self, other):
8682
    return not (self == other)
8683
 
8684
class getCategory_args:
8685
  """
8686
  Attributes:
8687
   - id
8688
  """
8689
 
8690
  thrift_spec = (
8691
    None, # 0
8692
    (1, TType.I64, 'id', None, None, ), # 1
8693
  )
8694
 
8695
  def __init__(self, id=None,):
8696
    self.id = id
8697
 
8698
  def read(self, iprot):
8699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8701
      return
8702
    iprot.readStructBegin()
8703
    while True:
8704
      (fname, ftype, fid) = iprot.readFieldBegin()
8705
      if ftype == TType.STOP:
8706
        break
8707
      if fid == 1:
8708
        if ftype == TType.I64:
8709
          self.id = iprot.readI64();
8710
        else:
8711
          iprot.skip(ftype)
8712
      else:
8713
        iprot.skip(ftype)
8714
      iprot.readFieldEnd()
8715
    iprot.readStructEnd()
8716
 
8717
  def write(self, oprot):
8718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8720
      return
8721
    oprot.writeStructBegin('getCategory_args')
8722
    if self.id is not None:
8723
      oprot.writeFieldBegin('id', TType.I64, 1)
8724
      oprot.writeI64(self.id)
8725
      oprot.writeFieldEnd()
8726
    oprot.writeFieldStop()
8727
    oprot.writeStructEnd()
8728
 
8729
  def validate(self):
8730
    return
8731
 
8732
 
8733
  def __repr__(self):
8734
    L = ['%s=%r' % (key, value)
8735
      for key, value in self.__dict__.iteritems()]
8736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8737
 
8738
  def __eq__(self, other):
8739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8740
 
8741
  def __ne__(self, other):
8742
    return not (self == other)
8743
 
8744
class getCategory_result:
8745
  """
8746
  Attributes:
8747
   - success
8748
  """
8749
 
8750
  thrift_spec = (
8751
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8752
  )
8753
 
8754
  def __init__(self, success=None,):
8755
    self.success = success
8756
 
8757
  def read(self, iprot):
8758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8760
      return
8761
    iprot.readStructBegin()
8762
    while True:
8763
      (fname, ftype, fid) = iprot.readFieldBegin()
8764
      if ftype == TType.STOP:
8765
        break
8766
      if fid == 0:
8767
        if ftype == TType.STRUCT:
8768
          self.success = Category()
8769
          self.success.read(iprot)
8770
        else:
8771
          iprot.skip(ftype)
8772
      else:
8773
        iprot.skip(ftype)
8774
      iprot.readFieldEnd()
8775
    iprot.readStructEnd()
8776
 
8777
  def write(self, oprot):
8778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8780
      return
8781
    oprot.writeStructBegin('getCategory_result')
8782
    if self.success is not None:
8783
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8784
      self.success.write(oprot)
8785
      oprot.writeFieldEnd()
8786
    oprot.writeFieldStop()
8787
    oprot.writeStructEnd()
8788
 
8789
  def validate(self):
8790
    return
8791
 
8792
 
8793
  def __repr__(self):
8794
    L = ['%s=%r' % (key, value)
8795
      for key, value in self.__dict__.iteritems()]
8796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8797
 
8798
  def __eq__(self, other):
8799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8800
 
8801
  def __ne__(self, other):
8802
    return not (self == other)
8803
 
8804
class getAllCategories_args:
8805
 
8806
  thrift_spec = (
8807
  )
8808
 
8809
  def read(self, iprot):
8810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8812
      return
8813
    iprot.readStructBegin()
8814
    while True:
8815
      (fname, ftype, fid) = iprot.readFieldBegin()
8816
      if ftype == TType.STOP:
8817
        break
8818
      else:
8819
        iprot.skip(ftype)
8820
      iprot.readFieldEnd()
8821
    iprot.readStructEnd()
8822
 
8823
  def write(self, oprot):
8824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8826
      return
8827
    oprot.writeStructBegin('getAllCategories_args')
8828
    oprot.writeFieldStop()
8829
    oprot.writeStructEnd()
8830
 
8831
  def validate(self):
8832
    return
8833
 
8834
 
8835
  def __repr__(self):
8836
    L = ['%s=%r' % (key, value)
8837
      for key, value in self.__dict__.iteritems()]
8838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8839
 
8840
  def __eq__(self, other):
8841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8842
 
8843
  def __ne__(self, other):
8844
    return not (self == other)
8845
 
8846
class getAllCategories_result:
8847
  """
8848
  Attributes:
8849
   - success
8850
  """
8851
 
8852
  thrift_spec = (
8853
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8854
  )
8855
 
8856
  def __init__(self, success=None,):
8857
    self.success = success
8858
 
8859
  def read(self, iprot):
8860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8862
      return
8863
    iprot.readStructBegin()
8864
    while True:
8865
      (fname, ftype, fid) = iprot.readFieldBegin()
8866
      if ftype == TType.STOP:
8867
        break
8868
      if fid == 0:
8869
        if ftype == TType.LIST:
8870
          self.success = []
8871
          (_etype124, _size121) = iprot.readListBegin()
8872
          for _i125 in xrange(_size121):
8873
            _elem126 = Category()
8874
            _elem126.read(iprot)
8875
            self.success.append(_elem126)
8876
          iprot.readListEnd()
8877
        else:
8878
          iprot.skip(ftype)
8879
      else:
8880
        iprot.skip(ftype)
8881
      iprot.readFieldEnd()
8882
    iprot.readStructEnd()
8883
 
8884
  def write(self, oprot):
8885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8887
      return
8888
    oprot.writeStructBegin('getAllCategories_result')
8889
    if self.success is not None:
8890
      oprot.writeFieldBegin('success', TType.LIST, 0)
8891
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8892
      for iter127 in self.success:
8893
        iter127.write(oprot)
8894
      oprot.writeListEnd()
8895
      oprot.writeFieldEnd()
8896
    oprot.writeFieldStop()
8897
    oprot.writeStructEnd()
8898
 
8899
  def validate(self):
8900
    return
8901
 
8902
 
8903
  def __repr__(self):
8904
    L = ['%s=%r' % (key, value)
8905
      for key, value in self.__dict__.iteritems()]
8906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8907
 
8908
  def __eq__(self, other):
8909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8910
 
8911
  def __ne__(self, other):
8912
    return not (self == other)
8913
 
8914
class getAllSimilarItems_args:
8915
  """
8916
  Attributes:
8917
   - itemId
8918
  """
8919
 
8920
  thrift_spec = (
8921
    None, # 0
8922
    (1, TType.I64, 'itemId', None, None, ), # 1
8923
  )
8924
 
8925
  def __init__(self, itemId=None,):
8926
    self.itemId = itemId
8927
 
8928
  def read(self, iprot):
8929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8931
      return
8932
    iprot.readStructBegin()
8933
    while True:
8934
      (fname, ftype, fid) = iprot.readFieldBegin()
8935
      if ftype == TType.STOP:
8936
        break
8937
      if fid == 1:
8938
        if ftype == TType.I64:
8939
          self.itemId = iprot.readI64();
8940
        else:
8941
          iprot.skip(ftype)
8942
      else:
8943
        iprot.skip(ftype)
8944
      iprot.readFieldEnd()
8945
    iprot.readStructEnd()
8946
 
8947
  def write(self, oprot):
8948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8950
      return
8951
    oprot.writeStructBegin('getAllSimilarItems_args')
8952
    if self.itemId is not None:
8953
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8954
      oprot.writeI64(self.itemId)
8955
      oprot.writeFieldEnd()
8956
    oprot.writeFieldStop()
8957
    oprot.writeStructEnd()
8958
 
8959
  def validate(self):
8960
    return
8961
 
8962
 
8963
  def __repr__(self):
8964
    L = ['%s=%r' % (key, value)
8965
      for key, value in self.__dict__.iteritems()]
8966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8967
 
8968
  def __eq__(self, other):
8969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8970
 
8971
  def __ne__(self, other):
8972
    return not (self == other)
8973
 
8974
class getAllSimilarItems_result:
8975
  """
8976
  Attributes:
8977
   - success
8978
  """
8979
 
8980
  thrift_spec = (
8981
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8982
  )
8983
 
8984
  def __init__(self, success=None,):
8985
    self.success = success
8986
 
8987
  def read(self, iprot):
8988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8990
      return
8991
    iprot.readStructBegin()
8992
    while True:
8993
      (fname, ftype, fid) = iprot.readFieldBegin()
8994
      if ftype == TType.STOP:
8995
        break
8996
      if fid == 0:
8997
        if ftype == TType.LIST:
8998
          self.success = []
8999
          (_etype131, _size128) = iprot.readListBegin()
9000
          for _i132 in xrange(_size128):
9001
            _elem133 = Item()
9002
            _elem133.read(iprot)
9003
            self.success.append(_elem133)
9004
          iprot.readListEnd()
9005
        else:
9006
          iprot.skip(ftype)
9007
      else:
9008
        iprot.skip(ftype)
9009
      iprot.readFieldEnd()
9010
    iprot.readStructEnd()
9011
 
9012
  def write(self, oprot):
9013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9015
      return
9016
    oprot.writeStructBegin('getAllSimilarItems_result')
9017
    if self.success is not None:
9018
      oprot.writeFieldBegin('success', TType.LIST, 0)
9019
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9020
      for iter134 in self.success:
9021
        iter134.write(oprot)
9022
      oprot.writeListEnd()
9023
      oprot.writeFieldEnd()
9024
    oprot.writeFieldStop()
9025
    oprot.writeStructEnd()
9026
 
9027
  def validate(self):
9028
    return
9029
 
9030
 
9031
  def __repr__(self):
9032
    L = ['%s=%r' % (key, value)
9033
      for key, value in self.__dict__.iteritems()]
9034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9035
 
9036
  def __eq__(self, other):
9037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9038
 
9039
  def __ne__(self, other):
9040
    return not (self == other)
9041
 
9042
class addSimilarItem_args:
9043
  """
9044
  Attributes:
9045
   - itemId
9046
   - catalogItemId
9047
  """
9048
 
9049
  thrift_spec = (
9050
    None, # 0
9051
    (1, TType.I64, 'itemId', None, None, ), # 1
9052
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
9053
  )
9054
 
9055
  def __init__(self, itemId=None, catalogItemId=None,):
9056
    self.itemId = itemId
9057
    self.catalogItemId = catalogItemId
9058
 
9059
  def read(self, iprot):
9060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9062
      return
9063
    iprot.readStructBegin()
9064
    while True:
9065
      (fname, ftype, fid) = iprot.readFieldBegin()
9066
      if ftype == TType.STOP:
9067
        break
9068
      if fid == 1:
9069
        if ftype == TType.I64:
9070
          self.itemId = iprot.readI64();
9071
        else:
9072
          iprot.skip(ftype)
9073
      elif fid == 2:
9074
        if ftype == TType.I64:
9075
          self.catalogItemId = iprot.readI64();
9076
        else:
9077
          iprot.skip(ftype)
9078
      else:
9079
        iprot.skip(ftype)
9080
      iprot.readFieldEnd()
9081
    iprot.readStructEnd()
9082
 
9083
  def write(self, oprot):
9084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9086
      return
9087
    oprot.writeStructBegin('addSimilarItem_args')
9088
    if self.itemId is not None:
9089
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9090
      oprot.writeI64(self.itemId)
9091
      oprot.writeFieldEnd()
9092
    if self.catalogItemId is not None:
9093
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9094
      oprot.writeI64(self.catalogItemId)
9095
      oprot.writeFieldEnd()
9096
    oprot.writeFieldStop()
9097
    oprot.writeStructEnd()
9098
 
9099
  def validate(self):
9100
    return
9101
 
9102
 
9103
  def __repr__(self):
9104
    L = ['%s=%r' % (key, value)
9105
      for key, value in self.__dict__.iteritems()]
9106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9107
 
9108
  def __eq__(self, other):
9109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9110
 
9111
  def __ne__(self, other):
9112
    return not (self == other)
9113
 
9114
class addSimilarItem_result:
9115
  """
9116
  Attributes:
9117
   - success
9118
   - cex
9119
  """
9120
 
9121
  thrift_spec = (
9122
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9123
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9124
  )
9125
 
9126
  def __init__(self, success=None, cex=None,):
9127
    self.success = success
9128
    self.cex = cex
9129
 
9130
  def read(self, iprot):
9131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9133
      return
9134
    iprot.readStructBegin()
9135
    while True:
9136
      (fname, ftype, fid) = iprot.readFieldBegin()
9137
      if ftype == TType.STOP:
9138
        break
9139
      if fid == 0:
9140
        if ftype == TType.STRUCT:
9141
          self.success = Item()
9142
          self.success.read(iprot)
9143
        else:
9144
          iprot.skip(ftype)
9145
      elif fid == 1:
9146
        if ftype == TType.STRUCT:
9147
          self.cex = CatalogServiceException()
9148
          self.cex.read(iprot)
9149
        else:
9150
          iprot.skip(ftype)
9151
      else:
9152
        iprot.skip(ftype)
9153
      iprot.readFieldEnd()
9154
    iprot.readStructEnd()
9155
 
9156
  def write(self, oprot):
9157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9159
      return
9160
    oprot.writeStructBegin('addSimilarItem_result')
9161
    if self.success is not None:
9162
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9163
      self.success.write(oprot)
9164
      oprot.writeFieldEnd()
9165
    if self.cex is not None:
9166
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9167
      self.cex.write(oprot)
9168
      oprot.writeFieldEnd()
9169
    oprot.writeFieldStop()
9170
    oprot.writeStructEnd()
9171
 
9172
  def validate(self):
9173
    return
9174
 
9175
 
9176
  def __repr__(self):
9177
    L = ['%s=%r' % (key, value)
9178
      for key, value in self.__dict__.iteritems()]
9179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9180
 
9181
  def __eq__(self, other):
9182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9183
 
9184
  def __ne__(self, other):
9185
    return not (self == other)
9186
 
6512 kshitij.so 9187
class addTag_args:
9188
  """
9189
  Attributes:
9190
   - displayName
9191
   - itemId
9192
  """
9193
 
9194
  thrift_spec = (
9195
    None, # 0
9196
    (1, TType.STRING, 'displayName', None, None, ), # 1
9197
    (2, TType.I64, 'itemId', None, None, ), # 2
9198
  )
9199
 
9200
  def __init__(self, displayName=None, itemId=None,):
9201
    self.displayName = displayName
9202
    self.itemId = itemId
9203
 
9204
  def read(self, iprot):
9205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9207
      return
9208
    iprot.readStructBegin()
9209
    while True:
9210
      (fname, ftype, fid) = iprot.readFieldBegin()
9211
      if ftype == TType.STOP:
9212
        break
9213
      if fid == 1:
9214
        if ftype == TType.STRING:
9215
          self.displayName = iprot.readString();
9216
        else:
9217
          iprot.skip(ftype)
9218
      elif fid == 2:
9219
        if ftype == TType.I64:
9220
          self.itemId = iprot.readI64();
9221
        else:
9222
          iprot.skip(ftype)
9223
      else:
9224
        iprot.skip(ftype)
9225
      iprot.readFieldEnd()
9226
    iprot.readStructEnd()
9227
 
9228
  def write(self, oprot):
9229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9231
      return
9232
    oprot.writeStructBegin('addTag_args')
9233
    if self.displayName is not None:
9234
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9235
      oprot.writeString(self.displayName)
9236
      oprot.writeFieldEnd()
9237
    if self.itemId is not None:
9238
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9239
      oprot.writeI64(self.itemId)
9240
      oprot.writeFieldEnd()
9241
    oprot.writeFieldStop()
9242
    oprot.writeStructEnd()
9243
 
9244
  def validate(self):
9245
    return
9246
 
9247
 
9248
  def __repr__(self):
9249
    L = ['%s=%r' % (key, value)
9250
      for key, value in self.__dict__.iteritems()]
9251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9252
 
9253
  def __eq__(self, other):
9254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9255
 
9256
  def __ne__(self, other):
9257
    return not (self == other)
9258
 
9259
class addTag_result:
9260
  """
9261
  Attributes:
9262
   - success
9263
  """
9264
 
9265
  thrift_spec = (
9266
    (0, TType.BOOL, 'success', None, None, ), # 0
9267
  )
9268
 
9269
  def __init__(self, success=None,):
9270
    self.success = success
9271
 
9272
  def read(self, iprot):
9273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9275
      return
9276
    iprot.readStructBegin()
9277
    while True:
9278
      (fname, ftype, fid) = iprot.readFieldBegin()
9279
      if ftype == TType.STOP:
9280
        break
9281
      if fid == 0:
9282
        if ftype == TType.BOOL:
9283
          self.success = iprot.readBool();
9284
        else:
9285
          iprot.skip(ftype)
9286
      else:
9287
        iprot.skip(ftype)
9288
      iprot.readFieldEnd()
9289
    iprot.readStructEnd()
9290
 
9291
  def write(self, oprot):
9292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9294
      return
9295
    oprot.writeStructBegin('addTag_result')
9296
    if self.success is not None:
9297
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9298
      oprot.writeBool(self.success)
9299
      oprot.writeFieldEnd()
9300
    oprot.writeFieldStop()
9301
    oprot.writeStructEnd()
9302
 
9303
  def validate(self):
9304
    return
9305
 
9306
 
9307
  def __repr__(self):
9308
    L = ['%s=%r' % (key, value)
9309
      for key, value in self.__dict__.iteritems()]
9310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9311
 
9312
  def __eq__(self, other):
9313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9314
 
9315
  def __ne__(self, other):
9316
    return not (self == other)
9317
 
9318
class deleteEntityTag_args:
9319
  """
9320
  Attributes:
9321
   - displayName
9322
   - itemId
9323
  """
9324
 
9325
  thrift_spec = (
9326
    None, # 0
9327
    (1, TType.STRING, 'displayName', None, None, ), # 1
9328
    (2, TType.I64, 'itemId', None, None, ), # 2
9329
  )
9330
 
9331
  def __init__(self, displayName=None, itemId=None,):
9332
    self.displayName = displayName
9333
    self.itemId = itemId
9334
 
9335
  def read(self, iprot):
9336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9338
      return
9339
    iprot.readStructBegin()
9340
    while True:
9341
      (fname, ftype, fid) = iprot.readFieldBegin()
9342
      if ftype == TType.STOP:
9343
        break
9344
      if fid == 1:
9345
        if ftype == TType.STRING:
9346
          self.displayName = iprot.readString();
9347
        else:
9348
          iprot.skip(ftype)
9349
      elif fid == 2:
9350
        if ftype == TType.I64:
9351
          self.itemId = iprot.readI64();
9352
        else:
9353
          iprot.skip(ftype)
9354
      else:
9355
        iprot.skip(ftype)
9356
      iprot.readFieldEnd()
9357
    iprot.readStructEnd()
9358
 
9359
  def write(self, oprot):
9360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9362
      return
9363
    oprot.writeStructBegin('deleteEntityTag_args')
9364
    if self.displayName is not None:
9365
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9366
      oprot.writeString(self.displayName)
9367
      oprot.writeFieldEnd()
9368
    if self.itemId is not None:
9369
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9370
      oprot.writeI64(self.itemId)
9371
      oprot.writeFieldEnd()
9372
    oprot.writeFieldStop()
9373
    oprot.writeStructEnd()
9374
 
9375
  def validate(self):
9376
    return
9377
 
9378
 
9379
  def __repr__(self):
9380
    L = ['%s=%r' % (key, value)
9381
      for key, value in self.__dict__.iteritems()]
9382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9383
 
9384
  def __eq__(self, other):
9385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9386
 
9387
  def __ne__(self, other):
9388
    return not (self == other)
9389
 
9390
class deleteEntityTag_result:
9391
  """
9392
  Attributes:
9393
   - success
9394
  """
9395
 
9396
  thrift_spec = (
9397
    (0, TType.BOOL, 'success', None, None, ), # 0
9398
  )
9399
 
9400
  def __init__(self, success=None,):
9401
    self.success = success
9402
 
9403
  def read(self, iprot):
9404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9406
      return
9407
    iprot.readStructBegin()
9408
    while True:
9409
      (fname, ftype, fid) = iprot.readFieldBegin()
9410
      if ftype == TType.STOP:
9411
        break
9412
      if fid == 0:
9413
        if ftype == TType.BOOL:
9414
          self.success = iprot.readBool();
9415
        else:
9416
          iprot.skip(ftype)
9417
      else:
9418
        iprot.skip(ftype)
9419
      iprot.readFieldEnd()
9420
    iprot.readStructEnd()
9421
 
9422
  def write(self, oprot):
9423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9425
      return
9426
    oprot.writeStructBegin('deleteEntityTag_result')
9427
    if self.success is not None:
9428
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9429
      oprot.writeBool(self.success)
9430
      oprot.writeFieldEnd()
9431
    oprot.writeFieldStop()
9432
    oprot.writeStructEnd()
9433
 
9434
  def validate(self):
9435
    return
9436
 
9437
 
9438
  def __repr__(self):
9439
    L = ['%s=%r' % (key, value)
9440
      for key, value in self.__dict__.iteritems()]
9441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9442
 
9443
  def __eq__(self, other):
9444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9445
 
9446
  def __ne__(self, other):
9447
    return not (self == other)
9448
 
9449
class deleteTag_args:
9450
  """
9451
  Attributes:
9452
   - displayName
9453
  """
9454
 
9455
  thrift_spec = (
9456
    None, # 0
9457
    (1, TType.STRING, 'displayName', None, None, ), # 1
9458
  )
9459
 
9460
  def __init__(self, displayName=None,):
9461
    self.displayName = displayName
9462
 
9463
  def read(self, iprot):
9464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9466
      return
9467
    iprot.readStructBegin()
9468
    while True:
9469
      (fname, ftype, fid) = iprot.readFieldBegin()
9470
      if ftype == TType.STOP:
9471
        break
9472
      if fid == 1:
9473
        if ftype == TType.STRING:
9474
          self.displayName = iprot.readString();
9475
        else:
9476
          iprot.skip(ftype)
9477
      else:
9478
        iprot.skip(ftype)
9479
      iprot.readFieldEnd()
9480
    iprot.readStructEnd()
9481
 
9482
  def write(self, oprot):
9483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9485
      return
9486
    oprot.writeStructBegin('deleteTag_args')
9487
    if self.displayName is not None:
9488
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9489
      oprot.writeString(self.displayName)
9490
      oprot.writeFieldEnd()
9491
    oprot.writeFieldStop()
9492
    oprot.writeStructEnd()
9493
 
9494
  def validate(self):
9495
    return
9496
 
9497
 
9498
  def __repr__(self):
9499
    L = ['%s=%r' % (key, value)
9500
      for key, value in self.__dict__.iteritems()]
9501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9502
 
9503
  def __eq__(self, other):
9504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9505
 
9506
  def __ne__(self, other):
9507
    return not (self == other)
9508
 
9509
class deleteTag_result:
9510
  """
9511
  Attributes:
9512
   - success
9513
  """
9514
 
9515
  thrift_spec = (
9516
    (0, TType.BOOL, 'success', None, None, ), # 0
9517
  )
9518
 
9519
  def __init__(self, success=None,):
9520
    self.success = success
9521
 
9522
  def read(self, iprot):
9523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9525
      return
9526
    iprot.readStructBegin()
9527
    while True:
9528
      (fname, ftype, fid) = iprot.readFieldBegin()
9529
      if ftype == TType.STOP:
9530
        break
9531
      if fid == 0:
9532
        if ftype == TType.BOOL:
9533
          self.success = iprot.readBool();
9534
        else:
9535
          iprot.skip(ftype)
9536
      else:
9537
        iprot.skip(ftype)
9538
      iprot.readFieldEnd()
9539
    iprot.readStructEnd()
9540
 
9541
  def write(self, oprot):
9542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9544
      return
9545
    oprot.writeStructBegin('deleteTag_result')
9546
    if self.success is not None:
9547
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9548
      oprot.writeBool(self.success)
9549
      oprot.writeFieldEnd()
9550
    oprot.writeFieldStop()
9551
    oprot.writeStructEnd()
9552
 
9553
  def validate(self):
9554
    return
9555
 
9556
 
9557
  def __repr__(self):
9558
    L = ['%s=%r' % (key, value)
9559
      for key, value in self.__dict__.iteritems()]
9560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9561
 
9562
  def __eq__(self, other):
9563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9564
 
9565
  def __ne__(self, other):
9566
    return not (self == other)
9567
 
9568
class getAllTags_args:
9569
 
9570
  thrift_spec = (
9571
  )
9572
 
9573
  def read(self, iprot):
9574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9576
      return
9577
    iprot.readStructBegin()
9578
    while True:
9579
      (fname, ftype, fid) = iprot.readFieldBegin()
9580
      if ftype == TType.STOP:
9581
        break
9582
      else:
9583
        iprot.skip(ftype)
9584
      iprot.readFieldEnd()
9585
    iprot.readStructEnd()
9586
 
9587
  def write(self, oprot):
9588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9590
      return
9591
    oprot.writeStructBegin('getAllTags_args')
9592
    oprot.writeFieldStop()
9593
    oprot.writeStructEnd()
9594
 
9595
  def validate(self):
9596
    return
9597
 
9598
 
9599
  def __repr__(self):
9600
    L = ['%s=%r' % (key, value)
9601
      for key, value in self.__dict__.iteritems()]
9602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9603
 
9604
  def __eq__(self, other):
9605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9606
 
9607
  def __ne__(self, other):
9608
    return not (self == other)
9609
 
9610
class getAllTags_result:
9611
  """
9612
  Attributes:
9613
   - success
9614
  """
9615
 
9616
  thrift_spec = (
9617
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9618
  )
9619
 
9620
  def __init__(self, success=None,):
9621
    self.success = success
9622
 
9623
  def read(self, iprot):
9624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9626
      return
9627
    iprot.readStructBegin()
9628
    while True:
9629
      (fname, ftype, fid) = iprot.readFieldBegin()
9630
      if ftype == TType.STOP:
9631
        break
9632
      if fid == 0:
9633
        if ftype == TType.LIST:
9634
          self.success = []
9635
          (_etype138, _size135) = iprot.readListBegin()
9636
          for _i139 in xrange(_size135):
9637
            _elem140 = iprot.readString();
9638
            self.success.append(_elem140)
9639
          iprot.readListEnd()
9640
        else:
9641
          iprot.skip(ftype)
9642
      else:
9643
        iprot.skip(ftype)
9644
      iprot.readFieldEnd()
9645
    iprot.readStructEnd()
9646
 
9647
  def write(self, oprot):
9648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9650
      return
9651
    oprot.writeStructBegin('getAllTags_result')
9652
    if self.success is not None:
9653
      oprot.writeFieldBegin('success', TType.LIST, 0)
9654
      oprot.writeListBegin(TType.STRING, len(self.success))
9655
      for iter141 in self.success:
9656
        oprot.writeString(iter141)
9657
      oprot.writeListEnd()
9658
      oprot.writeFieldEnd()
9659
    oprot.writeFieldStop()
9660
    oprot.writeStructEnd()
9661
 
9662
  def validate(self):
9663
    return
9664
 
9665
 
9666
  def __repr__(self):
9667
    L = ['%s=%r' % (key, value)
9668
      for key, value in self.__dict__.iteritems()]
9669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9670
 
9671
  def __eq__(self, other):
9672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9673
 
9674
  def __ne__(self, other):
9675
    return not (self == other)
9676
 
9677
class getAllEntitiesByTagName_args:
9678
  """
9679
  Attributes:
9680
   - displayName
9681
  """
9682
 
9683
  thrift_spec = (
9684
    None, # 0
9685
    (1, TType.STRING, 'displayName', None, None, ), # 1
9686
  )
9687
 
9688
  def __init__(self, displayName=None,):
9689
    self.displayName = displayName
9690
 
9691
  def read(self, iprot):
9692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9694
      return
9695
    iprot.readStructBegin()
9696
    while True:
9697
      (fname, ftype, fid) = iprot.readFieldBegin()
9698
      if ftype == TType.STOP:
9699
        break
9700
      if fid == 1:
9701
        if ftype == TType.STRING:
9702
          self.displayName = iprot.readString();
9703
        else:
9704
          iprot.skip(ftype)
9705
      else:
9706
        iprot.skip(ftype)
9707
      iprot.readFieldEnd()
9708
    iprot.readStructEnd()
9709
 
9710
  def write(self, oprot):
9711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9713
      return
9714
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9715
    if self.displayName is not None:
9716
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9717
      oprot.writeString(self.displayName)
9718
      oprot.writeFieldEnd()
9719
    oprot.writeFieldStop()
9720
    oprot.writeStructEnd()
9721
 
9722
  def validate(self):
9723
    return
9724
 
9725
 
9726
  def __repr__(self):
9727
    L = ['%s=%r' % (key, value)
9728
      for key, value in self.__dict__.iteritems()]
9729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9730
 
9731
  def __eq__(self, other):
9732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9733
 
9734
  def __ne__(self, other):
9735
    return not (self == other)
9736
 
9737
class getAllEntitiesByTagName_result:
9738
  """
9739
  Attributes:
9740
   - success
9741
  """
9742
 
9743
  thrift_spec = (
9744
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9745
  )
9746
 
9747
  def __init__(self, success=None,):
9748
    self.success = success
9749
 
9750
  def read(self, iprot):
9751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9753
      return
9754
    iprot.readStructBegin()
9755
    while True:
9756
      (fname, ftype, fid) = iprot.readFieldBegin()
9757
      if ftype == TType.STOP:
9758
        break
9759
      if fid == 0:
9760
        if ftype == TType.LIST:
9761
          self.success = []
9762
          (_etype145, _size142) = iprot.readListBegin()
9763
          for _i146 in xrange(_size142):
9764
            _elem147 = iprot.readI64();
9765
            self.success.append(_elem147)
9766
          iprot.readListEnd()
9767
        else:
9768
          iprot.skip(ftype)
9769
      else:
9770
        iprot.skip(ftype)
9771
      iprot.readFieldEnd()
9772
    iprot.readStructEnd()
9773
 
9774
  def write(self, oprot):
9775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9777
      return
9778
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9779
    if self.success is not None:
9780
      oprot.writeFieldBegin('success', TType.LIST, 0)
9781
      oprot.writeListBegin(TType.I64, len(self.success))
9782
      for iter148 in self.success:
9783
        oprot.writeI64(iter148)
9784
      oprot.writeListEnd()
9785
      oprot.writeFieldEnd()
9786
    oprot.writeFieldStop()
9787
    oprot.writeStructEnd()
9788
 
9789
  def validate(self):
9790
    return
9791
 
9792
 
9793
  def __repr__(self):
9794
    L = ['%s=%r' % (key, value)
9795
      for key, value in self.__dict__.iteritems()]
9796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9797
 
9798
  def __eq__(self, other):
9799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9800
 
9801
  def __ne__(self, other):
9802
    return not (self == other)
9803
 
6845 amit.gupta 9804
class getAllEntityTags_args:
9805
 
9806
  thrift_spec = (
9807
  )
9808
 
9809
  def read(self, iprot):
9810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9812
      return
9813
    iprot.readStructBegin()
9814
    while True:
9815
      (fname, ftype, fid) = iprot.readFieldBegin()
9816
      if ftype == TType.STOP:
9817
        break
9818
      else:
9819
        iprot.skip(ftype)
9820
      iprot.readFieldEnd()
9821
    iprot.readStructEnd()
9822
 
9823
  def write(self, oprot):
9824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9826
      return
9827
    oprot.writeStructBegin('getAllEntityTags_args')
9828
    oprot.writeFieldStop()
9829
    oprot.writeStructEnd()
9830
 
9831
  def validate(self):
9832
    return
9833
 
9834
 
9835
  def __repr__(self):
9836
    L = ['%s=%r' % (key, value)
9837
      for key, value in self.__dict__.iteritems()]
9838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9839
 
9840
  def __eq__(self, other):
9841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9842
 
9843
  def __ne__(self, other):
9844
    return not (self == other)
9845
 
9846
class getAllEntityTags_result:
9847
  """
9848
  Attributes:
9849
   - success
9850
  """
9851
 
9852
  thrift_spec = (
9853
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9854
  )
9855
 
9856
  def __init__(self, success=None,):
9857
    self.success = success
9858
 
9859
  def read(self, iprot):
9860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9862
      return
9863
    iprot.readStructBegin()
9864
    while True:
9865
      (fname, ftype, fid) = iprot.readFieldBegin()
9866
      if ftype == TType.STOP:
9867
        break
9868
      if fid == 0:
9869
        if ftype == TType.MAP:
9870
          self.success = {}
9871
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9872
          for _i153 in xrange(_size149):
9873
            _key154 = iprot.readI64();
9874
            _val155 = []
9875
            (_etype159, _size156) = iprot.readListBegin()
9876
            for _i160 in xrange(_size156):
9877
              _elem161 = iprot.readString();
9878
              _val155.append(_elem161)
9879
            iprot.readListEnd()
9880
            self.success[_key154] = _val155
9881
          iprot.readMapEnd()
9882
        else:
9883
          iprot.skip(ftype)
9884
      else:
9885
        iprot.skip(ftype)
9886
      iprot.readFieldEnd()
9887
    iprot.readStructEnd()
9888
 
9889
  def write(self, oprot):
9890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9892
      return
9893
    oprot.writeStructBegin('getAllEntityTags_result')
9894
    if self.success is not None:
9895
      oprot.writeFieldBegin('success', TType.MAP, 0)
9896
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9897
      for kiter162,viter163 in self.success.items():
9898
        oprot.writeI64(kiter162)
9899
        oprot.writeListBegin(TType.STRING, len(viter163))
9900
        for iter164 in viter163:
9901
          oprot.writeString(iter164)
9902
        oprot.writeListEnd()
9903
      oprot.writeMapEnd()
9904
      oprot.writeFieldEnd()
9905
    oprot.writeFieldStop()
9906
    oprot.writeStructEnd()
9907
 
9908
  def validate(self):
9909
    return
9910
 
9911
 
9912
  def __repr__(self):
9913
    L = ['%s=%r' % (key, value)
9914
      for key, value in self.__dict__.iteritems()]
9915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9916
 
9917
  def __eq__(self, other):
9918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9919
 
9920
  def __ne__(self, other):
9921
    return not (self == other)
9922
 
6850 kshitij.so 9923
class addBanner_args:
9924
  """
9925
  Attributes:
9926
   - bannerName
9927
   - imageName
9928
   - link
9929
   - priority
9930
   - isActive
9931
   - hasMap
9932
  """
9933
 
9934
  thrift_spec = (
9935
    None, # 0
9936
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9937
    (2, TType.STRING, 'imageName', None, None, ), # 2
9938
    (3, TType.STRING, 'link', None, None, ), # 3
9939
    (4, TType.I64, 'priority', None, None, ), # 4
9940
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9941
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9942
  )
9943
 
9944
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9945
    self.bannerName = bannerName
9946
    self.imageName = imageName
9947
    self.link = link
9948
    self.priority = priority
9949
    self.isActive = isActive
9950
    self.hasMap = hasMap
9951
 
9952
  def read(self, iprot):
9953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9955
      return
9956
    iprot.readStructBegin()
9957
    while True:
9958
      (fname, ftype, fid) = iprot.readFieldBegin()
9959
      if ftype == TType.STOP:
9960
        break
9961
      if fid == 1:
9962
        if ftype == TType.STRING:
9963
          self.bannerName = iprot.readString();
9964
        else:
9965
          iprot.skip(ftype)
9966
      elif fid == 2:
9967
        if ftype == TType.STRING:
9968
          self.imageName = iprot.readString();
9969
        else:
9970
          iprot.skip(ftype)
9971
      elif fid == 3:
9972
        if ftype == TType.STRING:
9973
          self.link = iprot.readString();
9974
        else:
9975
          iprot.skip(ftype)
9976
      elif fid == 4:
9977
        if ftype == TType.I64:
9978
          self.priority = iprot.readI64();
9979
        else:
9980
          iprot.skip(ftype)
9981
      elif fid == 5:
9982
        if ftype == TType.BOOL:
9983
          self.isActive = iprot.readBool();
9984
        else:
9985
          iprot.skip(ftype)
9986
      elif fid == 6:
9987
        if ftype == TType.BOOL:
9988
          self.hasMap = iprot.readBool();
9989
        else:
9990
          iprot.skip(ftype)
9991
      else:
9992
        iprot.skip(ftype)
9993
      iprot.readFieldEnd()
9994
    iprot.readStructEnd()
9995
 
9996
  def write(self, oprot):
9997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9999
      return
10000
    oprot.writeStructBegin('addBanner_args')
10001
    if self.bannerName is not None:
10002
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10003
      oprot.writeString(self.bannerName)
10004
      oprot.writeFieldEnd()
10005
    if self.imageName is not None:
10006
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
10007
      oprot.writeString(self.imageName)
10008
      oprot.writeFieldEnd()
10009
    if self.link is not None:
10010
      oprot.writeFieldBegin('link', TType.STRING, 3)
10011
      oprot.writeString(self.link)
10012
      oprot.writeFieldEnd()
10013
    if self.priority is not None:
10014
      oprot.writeFieldBegin('priority', TType.I64, 4)
10015
      oprot.writeI64(self.priority)
10016
      oprot.writeFieldEnd()
10017
    if self.isActive is not None:
10018
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
10019
      oprot.writeBool(self.isActive)
10020
      oprot.writeFieldEnd()
10021
    if self.hasMap is not None:
10022
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
10023
      oprot.writeBool(self.hasMap)
10024
      oprot.writeFieldEnd()
10025
    oprot.writeFieldStop()
10026
    oprot.writeStructEnd()
10027
 
10028
  def validate(self):
10029
    return
10030
 
10031
 
10032
  def __repr__(self):
10033
    L = ['%s=%r' % (key, value)
10034
      for key, value in self.__dict__.iteritems()]
10035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10036
 
10037
  def __eq__(self, other):
10038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10039
 
10040
  def __ne__(self, other):
10041
    return not (self == other)
10042
 
10043
class addBanner_result:
10044
  """
10045
  Attributes:
10046
   - success
10047
  """
10048
 
10049
  thrift_spec = (
10050
    (0, TType.BOOL, 'success', None, None, ), # 0
10051
  )
10052
 
10053
  def __init__(self, success=None,):
10054
    self.success = success
10055
 
10056
  def read(self, iprot):
10057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10059
      return
10060
    iprot.readStructBegin()
10061
    while True:
10062
      (fname, ftype, fid) = iprot.readFieldBegin()
10063
      if ftype == TType.STOP:
10064
        break
10065
      if fid == 0:
10066
        if ftype == TType.BOOL:
10067
          self.success = iprot.readBool();
10068
        else:
10069
          iprot.skip(ftype)
10070
      else:
10071
        iprot.skip(ftype)
10072
      iprot.readFieldEnd()
10073
    iprot.readStructEnd()
10074
 
10075
  def write(self, oprot):
10076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10078
      return
10079
    oprot.writeStructBegin('addBanner_result')
10080
    if self.success is not None:
10081
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10082
      oprot.writeBool(self.success)
10083
      oprot.writeFieldEnd()
10084
    oprot.writeFieldStop()
10085
    oprot.writeStructEnd()
10086
 
10087
  def validate(self):
10088
    return
10089
 
10090
 
10091
  def __repr__(self):
10092
    L = ['%s=%r' % (key, value)
10093
      for key, value in self.__dict__.iteritems()]
10094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10095
 
10096
  def __eq__(self, other):
10097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10098
 
10099
  def __ne__(self, other):
10100
    return not (self == other)
10101
 
10102
class getAllBanners_args:
10103
 
10104
  thrift_spec = (
10105
  )
10106
 
10107
  def read(self, iprot):
10108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10110
      return
10111
    iprot.readStructBegin()
10112
    while True:
10113
      (fname, ftype, fid) = iprot.readFieldBegin()
10114
      if ftype == TType.STOP:
10115
        break
10116
      else:
10117
        iprot.skip(ftype)
10118
      iprot.readFieldEnd()
10119
    iprot.readStructEnd()
10120
 
10121
  def write(self, oprot):
10122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10124
      return
10125
    oprot.writeStructBegin('getAllBanners_args')
10126
    oprot.writeFieldStop()
10127
    oprot.writeStructEnd()
10128
 
10129
  def validate(self):
10130
    return
10131
 
10132
 
10133
  def __repr__(self):
10134
    L = ['%s=%r' % (key, value)
10135
      for key, value in self.__dict__.iteritems()]
10136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10137
 
10138
  def __eq__(self, other):
10139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10140
 
10141
  def __ne__(self, other):
10142
    return not (self == other)
10143
 
10144
class getAllBanners_result:
10145
  """
10146
  Attributes:
10147
   - success
10148
  """
10149
 
10150
  thrift_spec = (
10151
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10152
  )
10153
 
10154
  def __init__(self, success=None,):
10155
    self.success = success
10156
 
10157
  def read(self, iprot):
10158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10160
      return
10161
    iprot.readStructBegin()
10162
    while True:
10163
      (fname, ftype, fid) = iprot.readFieldBegin()
10164
      if ftype == TType.STOP:
10165
        break
10166
      if fid == 0:
10167
        if ftype == TType.LIST:
10168
          self.success = []
10169
          (_etype168, _size165) = iprot.readListBegin()
10170
          for _i169 in xrange(_size165):
10171
            _elem170 = iprot.readString();
10172
            self.success.append(_elem170)
10173
          iprot.readListEnd()
10174
        else:
10175
          iprot.skip(ftype)
10176
      else:
10177
        iprot.skip(ftype)
10178
      iprot.readFieldEnd()
10179
    iprot.readStructEnd()
10180
 
10181
  def write(self, oprot):
10182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10184
      return
10185
    oprot.writeStructBegin('getAllBanners_result')
10186
    if self.success is not None:
10187
      oprot.writeFieldBegin('success', TType.LIST, 0)
10188
      oprot.writeListBegin(TType.STRING, len(self.success))
10189
      for iter171 in self.success:
10190
        oprot.writeString(iter171)
10191
      oprot.writeListEnd()
10192
      oprot.writeFieldEnd()
10193
    oprot.writeFieldStop()
10194
    oprot.writeStructEnd()
10195
 
10196
  def validate(self):
10197
    return
10198
 
10199
 
10200
  def __repr__(self):
10201
    L = ['%s=%r' % (key, value)
10202
      for key, value in self.__dict__.iteritems()]
10203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10204
 
10205
  def __eq__(self, other):
10206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10207
 
10208
  def __ne__(self, other):
10209
    return not (self == other)
10210
 
10211
class deleteBanner_args:
10212
  """
10213
  Attributes:
10214
   - bannerName
10215
  """
10216
 
10217
  thrift_spec = (
10218
    None, # 0
10219
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10220
  )
10221
 
10222
  def __init__(self, bannerName=None,):
10223
    self.bannerName = bannerName
10224
 
10225
  def read(self, iprot):
10226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10228
      return
10229
    iprot.readStructBegin()
10230
    while True:
10231
      (fname, ftype, fid) = iprot.readFieldBegin()
10232
      if ftype == TType.STOP:
10233
        break
10234
      if fid == 1:
10235
        if ftype == TType.STRING:
10236
          self.bannerName = iprot.readString();
10237
        else:
10238
          iprot.skip(ftype)
10239
      else:
10240
        iprot.skip(ftype)
10241
      iprot.readFieldEnd()
10242
    iprot.readStructEnd()
10243
 
10244
  def write(self, oprot):
10245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10247
      return
10248
    oprot.writeStructBegin('deleteBanner_args')
10249
    if self.bannerName is not None:
10250
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10251
      oprot.writeString(self.bannerName)
10252
      oprot.writeFieldEnd()
10253
    oprot.writeFieldStop()
10254
    oprot.writeStructEnd()
10255
 
10256
  def validate(self):
10257
    return
10258
 
10259
 
10260
  def __repr__(self):
10261
    L = ['%s=%r' % (key, value)
10262
      for key, value in self.__dict__.iteritems()]
10263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10264
 
10265
  def __eq__(self, other):
10266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10267
 
10268
  def __ne__(self, other):
10269
    return not (self == other)
10270
 
10271
class deleteBanner_result:
10272
  """
10273
  Attributes:
10274
   - success
10275
  """
10276
 
10277
  thrift_spec = (
10278
    (0, TType.BOOL, 'success', None, None, ), # 0
10279
  )
10280
 
10281
  def __init__(self, success=None,):
10282
    self.success = success
10283
 
10284
  def read(self, iprot):
10285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10287
      return
10288
    iprot.readStructBegin()
10289
    while True:
10290
      (fname, ftype, fid) = iprot.readFieldBegin()
10291
      if ftype == TType.STOP:
10292
        break
10293
      if fid == 0:
10294
        if ftype == TType.BOOL:
10295
          self.success = iprot.readBool();
10296
        else:
10297
          iprot.skip(ftype)
10298
      else:
10299
        iprot.skip(ftype)
10300
      iprot.readFieldEnd()
10301
    iprot.readStructEnd()
10302
 
10303
  def write(self, oprot):
10304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10306
      return
10307
    oprot.writeStructBegin('deleteBanner_result')
10308
    if self.success is not None:
10309
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10310
      oprot.writeBool(self.success)
10311
      oprot.writeFieldEnd()
10312
    oprot.writeFieldStop()
10313
    oprot.writeStructEnd()
10314
 
10315
  def validate(self):
10316
    return
10317
 
10318
 
10319
  def __repr__(self):
10320
    L = ['%s=%r' % (key, value)
10321
      for key, value in self.__dict__.iteritems()]
10322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10323
 
10324
  def __eq__(self, other):
10325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10326
 
10327
  def __ne__(self, other):
10328
    return not (self == other)
10329
 
10330
class getBannerDetails_args:
10331
  """
10332
  Attributes:
10333
   - bannerName
10334
  """
10335
 
10336
  thrift_spec = (
10337
    None, # 0
10338
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10339
  )
10340
 
10341
  def __init__(self, bannerName=None,):
10342
    self.bannerName = bannerName
10343
 
10344
  def read(self, iprot):
10345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10347
      return
10348
    iprot.readStructBegin()
10349
    while True:
10350
      (fname, ftype, fid) = iprot.readFieldBegin()
10351
      if ftype == TType.STOP:
10352
        break
10353
      if fid == 1:
10354
        if ftype == TType.STRING:
10355
          self.bannerName = iprot.readString();
10356
        else:
10357
          iprot.skip(ftype)
10358
      else:
10359
        iprot.skip(ftype)
10360
      iprot.readFieldEnd()
10361
    iprot.readStructEnd()
10362
 
10363
  def write(self, oprot):
10364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10366
      return
10367
    oprot.writeStructBegin('getBannerDetails_args')
10368
    if self.bannerName is not None:
10369
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10370
      oprot.writeString(self.bannerName)
10371
      oprot.writeFieldEnd()
10372
    oprot.writeFieldStop()
10373
    oprot.writeStructEnd()
10374
 
10375
  def validate(self):
10376
    return
10377
 
10378
 
10379
  def __repr__(self):
10380
    L = ['%s=%r' % (key, value)
10381
      for key, value in self.__dict__.iteritems()]
10382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10383
 
10384
  def __eq__(self, other):
10385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10386
 
10387
  def __ne__(self, other):
10388
    return not (self == other)
10389
 
10390
class getBannerDetails_result:
10391
  """
10392
  Attributes:
10393
   - success
10394
  """
10395
 
10396
  thrift_spec = (
10397
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10398
  )
10399
 
10400
  def __init__(self, success=None,):
10401
    self.success = success
10402
 
10403
  def read(self, iprot):
10404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10406
      return
10407
    iprot.readStructBegin()
10408
    while True:
10409
      (fname, ftype, fid) = iprot.readFieldBegin()
10410
      if ftype == TType.STOP:
10411
        break
10412
      if fid == 0:
10413
        if ftype == TType.STRUCT:
10414
          self.success = Banner()
10415
          self.success.read(iprot)
10416
        else:
10417
          iprot.skip(ftype)
10418
      else:
10419
        iprot.skip(ftype)
10420
      iprot.readFieldEnd()
10421
    iprot.readStructEnd()
10422
 
10423
  def write(self, oprot):
10424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10426
      return
10427
    oprot.writeStructBegin('getBannerDetails_result')
10428
    if self.success is not None:
10429
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10430
      self.success.write(oprot)
10431
      oprot.writeFieldEnd()
10432
    oprot.writeFieldStop()
10433
    oprot.writeStructEnd()
10434
 
10435
  def validate(self):
10436
    return
10437
 
10438
 
10439
  def __repr__(self):
10440
    L = ['%s=%r' % (key, value)
10441
      for key, value in self.__dict__.iteritems()]
10442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10443
 
10444
  def __eq__(self, other):
10445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10446
 
10447
  def __ne__(self, other):
10448
    return not (self == other)
10449
 
10450
class getActiveBanners_args:
10451
 
10452
  thrift_spec = (
10453
  )
10454
 
10455
  def read(self, iprot):
10456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10458
      return
10459
    iprot.readStructBegin()
10460
    while True:
10461
      (fname, ftype, fid) = iprot.readFieldBegin()
10462
      if ftype == TType.STOP:
10463
        break
10464
      else:
10465
        iprot.skip(ftype)
10466
      iprot.readFieldEnd()
10467
    iprot.readStructEnd()
10468
 
10469
  def write(self, oprot):
10470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10472
      return
10473
    oprot.writeStructBegin('getActiveBanners_args')
10474
    oprot.writeFieldStop()
10475
    oprot.writeStructEnd()
10476
 
10477
  def validate(self):
10478
    return
10479
 
10480
 
10481
  def __repr__(self):
10482
    L = ['%s=%r' % (key, value)
10483
      for key, value in self.__dict__.iteritems()]
10484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10485
 
10486
  def __eq__(self, other):
10487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10488
 
10489
  def __ne__(self, other):
10490
    return not (self == other)
10491
 
10492
class getActiveBanners_result:
10493
  """
10494
  Attributes:
10495
   - success
10496
  """
10497
 
10498
  thrift_spec = (
10499
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10500
  )
10501
 
10502
  def __init__(self, success=None,):
10503
    self.success = success
10504
 
10505
  def read(self, iprot):
10506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10508
      return
10509
    iprot.readStructBegin()
10510
    while True:
10511
      (fname, ftype, fid) = iprot.readFieldBegin()
10512
      if ftype == TType.STOP:
10513
        break
10514
      if fid == 0:
10515
        if ftype == TType.LIST:
10516
          self.success = []
10517
          (_etype175, _size172) = iprot.readListBegin()
10518
          for _i176 in xrange(_size172):
10519
            _elem177 = Banner()
10520
            _elem177.read(iprot)
10521
            self.success.append(_elem177)
10522
          iprot.readListEnd()
10523
        else:
10524
          iprot.skip(ftype)
10525
      else:
10526
        iprot.skip(ftype)
10527
      iprot.readFieldEnd()
10528
    iprot.readStructEnd()
10529
 
10530
  def write(self, oprot):
10531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10533
      return
10534
    oprot.writeStructBegin('getActiveBanners_result')
10535
    if self.success is not None:
10536
      oprot.writeFieldBegin('success', TType.LIST, 0)
10537
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10538
      for iter178 in self.success:
10539
        iter178.write(oprot)
10540
      oprot.writeListEnd()
10541
      oprot.writeFieldEnd()
10542
    oprot.writeFieldStop()
10543
    oprot.writeStructEnd()
10544
 
10545
  def validate(self):
10546
    return
10547
 
10548
 
10549
  def __repr__(self):
10550
    L = ['%s=%r' % (key, value)
10551
      for key, value in self.__dict__.iteritems()]
10552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10553
 
10554
  def __eq__(self, other):
10555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10556
 
10557
  def __ne__(self, other):
10558
    return not (self == other)
10559
 
6849 kshitij.so 10560
class addBannerMap_args:
10561
  """
10562
  Attributes:
10563
   - bannerName
10564
   - mapLink
10565
   - coordinates
10566
  """
10567
 
10568
  thrift_spec = (
10569
    None, # 0
10570
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10571
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10572
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10573
  )
10574
 
10575
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10576
    self.bannerName = bannerName
10577
    self.mapLink = mapLink
10578
    self.coordinates = coordinates
10579
 
10580
  def read(self, iprot):
10581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10583
      return
10584
    iprot.readStructBegin()
10585
    while True:
10586
      (fname, ftype, fid) = iprot.readFieldBegin()
10587
      if ftype == TType.STOP:
10588
        break
10589
      if fid == 1:
10590
        if ftype == TType.STRING:
10591
          self.bannerName = iprot.readString();
10592
        else:
10593
          iprot.skip(ftype)
10594
      elif fid == 2:
10595
        if ftype == TType.STRING:
10596
          self.mapLink = iprot.readString();
10597
        else:
10598
          iprot.skip(ftype)
10599
      elif fid == 3:
10600
        if ftype == TType.STRING:
10601
          self.coordinates = iprot.readString();
10602
        else:
10603
          iprot.skip(ftype)
10604
      else:
10605
        iprot.skip(ftype)
10606
      iprot.readFieldEnd()
10607
    iprot.readStructEnd()
10608
 
10609
  def write(self, oprot):
10610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10612
      return
10613
    oprot.writeStructBegin('addBannerMap_args')
10614
    if self.bannerName is not None:
10615
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10616
      oprot.writeString(self.bannerName)
10617
      oprot.writeFieldEnd()
10618
    if self.mapLink is not None:
10619
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10620
      oprot.writeString(self.mapLink)
10621
      oprot.writeFieldEnd()
10622
    if self.coordinates is not None:
10623
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10624
      oprot.writeString(self.coordinates)
10625
      oprot.writeFieldEnd()
10626
    oprot.writeFieldStop()
10627
    oprot.writeStructEnd()
10628
 
10629
  def validate(self):
10630
    return
10631
 
10632
 
10633
  def __repr__(self):
10634
    L = ['%s=%r' % (key, value)
10635
      for key, value in self.__dict__.iteritems()]
10636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10637
 
10638
  def __eq__(self, other):
10639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10640
 
10641
  def __ne__(self, other):
10642
    return not (self == other)
10643
 
10644
class addBannerMap_result:
10645
  """
10646
  Attributes:
10647
   - success
10648
  """
10649
 
10650
  thrift_spec = (
10651
    (0, TType.BOOL, 'success', None, None, ), # 0
10652
  )
10653
 
10654
  def __init__(self, success=None,):
10655
    self.success = success
10656
 
10657
  def read(self, iprot):
10658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10660
      return
10661
    iprot.readStructBegin()
10662
    while True:
10663
      (fname, ftype, fid) = iprot.readFieldBegin()
10664
      if ftype == TType.STOP:
10665
        break
10666
      if fid == 0:
10667
        if ftype == TType.BOOL:
10668
          self.success = iprot.readBool();
10669
        else:
10670
          iprot.skip(ftype)
10671
      else:
10672
        iprot.skip(ftype)
10673
      iprot.readFieldEnd()
10674
    iprot.readStructEnd()
10675
 
10676
  def write(self, oprot):
10677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10679
      return
10680
    oprot.writeStructBegin('addBannerMap_result')
10681
    if self.success is not None:
10682
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10683
      oprot.writeBool(self.success)
10684
      oprot.writeFieldEnd()
10685
    oprot.writeFieldStop()
10686
    oprot.writeStructEnd()
10687
 
10688
  def validate(self):
10689
    return
10690
 
10691
 
10692
  def __repr__(self):
10693
    L = ['%s=%r' % (key, value)
10694
      for key, value in self.__dict__.iteritems()]
10695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10696
 
10697
  def __eq__(self, other):
10698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10699
 
10700
  def __ne__(self, other):
10701
    return not (self == other)
10702
 
10703
class deleteBannerMap_args:
10704
  """
10705
  Attributes:
10706
   - bannerName
10707
  """
10708
 
10709
  thrift_spec = (
10710
    None, # 0
10711
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10712
  )
10713
 
10714
  def __init__(self, bannerName=None,):
10715
    self.bannerName = bannerName
10716
 
10717
  def read(self, iprot):
10718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10720
      return
10721
    iprot.readStructBegin()
10722
    while True:
10723
      (fname, ftype, fid) = iprot.readFieldBegin()
10724
      if ftype == TType.STOP:
10725
        break
10726
      if fid == 1:
10727
        if ftype == TType.STRING:
10728
          self.bannerName = iprot.readString();
10729
        else:
10730
          iprot.skip(ftype)
10731
      else:
10732
        iprot.skip(ftype)
10733
      iprot.readFieldEnd()
10734
    iprot.readStructEnd()
10735
 
10736
  def write(self, oprot):
10737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10739
      return
10740
    oprot.writeStructBegin('deleteBannerMap_args')
10741
    if self.bannerName is not None:
10742
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10743
      oprot.writeString(self.bannerName)
10744
      oprot.writeFieldEnd()
10745
    oprot.writeFieldStop()
10746
    oprot.writeStructEnd()
10747
 
10748
  def validate(self):
10749
    return
10750
 
10751
 
10752
  def __repr__(self):
10753
    L = ['%s=%r' % (key, value)
10754
      for key, value in self.__dict__.iteritems()]
10755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10756
 
10757
  def __eq__(self, other):
10758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10759
 
10760
  def __ne__(self, other):
10761
    return not (self == other)
10762
 
10763
class deleteBannerMap_result:
10764
  """
10765
  Attributes:
10766
   - success
10767
  """
10768
 
10769
  thrift_spec = (
10770
    (0, TType.BOOL, 'success', None, None, ), # 0
10771
  )
10772
 
10773
  def __init__(self, success=None,):
10774
    self.success = success
10775
 
10776
  def read(self, iprot):
10777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10779
      return
10780
    iprot.readStructBegin()
10781
    while True:
10782
      (fname, ftype, fid) = iprot.readFieldBegin()
10783
      if ftype == TType.STOP:
10784
        break
10785
      if fid == 0:
10786
        if ftype == TType.BOOL:
10787
          self.success = iprot.readBool();
10788
        else:
10789
          iprot.skip(ftype)
10790
      else:
10791
        iprot.skip(ftype)
10792
      iprot.readFieldEnd()
10793
    iprot.readStructEnd()
10794
 
10795
  def write(self, oprot):
10796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10798
      return
10799
    oprot.writeStructBegin('deleteBannerMap_result')
10800
    if self.success is not None:
10801
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10802
      oprot.writeBool(self.success)
10803
      oprot.writeFieldEnd()
10804
    oprot.writeFieldStop()
10805
    oprot.writeStructEnd()
10806
 
10807
  def validate(self):
10808
    return
10809
 
10810
 
10811
  def __repr__(self):
10812
    L = ['%s=%r' % (key, value)
10813
      for key, value in self.__dict__.iteritems()]
10814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10815
 
10816
  def __eq__(self, other):
10817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10818
 
10819
  def __ne__(self, other):
10820
    return not (self == other)
10821
 
10822
class getBannerMapDetails_args:
10823
  """
10824
  Attributes:
10825
   - bannerName
10826
  """
10827
 
10828
  thrift_spec = (
10829
    None, # 0
10830
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10831
  )
10832
 
10833
  def __init__(self, bannerName=None,):
10834
    self.bannerName = bannerName
10835
 
10836
  def read(self, iprot):
10837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10839
      return
10840
    iprot.readStructBegin()
10841
    while True:
10842
      (fname, ftype, fid) = iprot.readFieldBegin()
10843
      if ftype == TType.STOP:
10844
        break
10845
      if fid == 1:
10846
        if ftype == TType.STRING:
10847
          self.bannerName = iprot.readString();
10848
        else:
10849
          iprot.skip(ftype)
10850
      else:
10851
        iprot.skip(ftype)
10852
      iprot.readFieldEnd()
10853
    iprot.readStructEnd()
10854
 
10855
  def write(self, oprot):
10856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10858
      return
10859
    oprot.writeStructBegin('getBannerMapDetails_args')
10860
    if self.bannerName is not None:
10861
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10862
      oprot.writeString(self.bannerName)
10863
      oprot.writeFieldEnd()
10864
    oprot.writeFieldStop()
10865
    oprot.writeStructEnd()
10866
 
10867
  def validate(self):
10868
    return
10869
 
10870
 
10871
  def __repr__(self):
10872
    L = ['%s=%r' % (key, value)
10873
      for key, value in self.__dict__.iteritems()]
10874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10875
 
10876
  def __eq__(self, other):
10877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10878
 
10879
  def __ne__(self, other):
10880
    return not (self == other)
10881
 
10882
class getBannerMapDetails_result:
10883
  """
10884
  Attributes:
10885
   - success
10886
  """
10887
 
10888
  thrift_spec = (
10889
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10890
  )
10891
 
10892
  def __init__(self, success=None,):
10893
    self.success = success
10894
 
10895
  def read(self, iprot):
10896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10898
      return
10899
    iprot.readStructBegin()
10900
    while True:
10901
      (fname, ftype, fid) = iprot.readFieldBegin()
10902
      if ftype == TType.STOP:
10903
        break
10904
      if fid == 0:
10905
        if ftype == TType.LIST:
10906
          self.success = []
6850 kshitij.so 10907
          (_etype182, _size179) = iprot.readListBegin()
10908
          for _i183 in xrange(_size179):
10909
            _elem184 = BannerMap()
10910
            _elem184.read(iprot)
10911
            self.success.append(_elem184)
6849 kshitij.so 10912
          iprot.readListEnd()
10913
        else:
10914
          iprot.skip(ftype)
10915
      else:
10916
        iprot.skip(ftype)
10917
      iprot.readFieldEnd()
10918
    iprot.readStructEnd()
10919
 
10920
  def write(self, oprot):
10921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10923
      return
10924
    oprot.writeStructBegin('getBannerMapDetails_result')
10925
    if self.success is not None:
10926
      oprot.writeFieldBegin('success', TType.LIST, 0)
10927
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10928
      for iter185 in self.success:
10929
        iter185.write(oprot)
6849 kshitij.so 10930
      oprot.writeListEnd()
10931
      oprot.writeFieldEnd()
10932
    oprot.writeFieldStop()
10933
    oprot.writeStructEnd()
10934
 
10935
  def validate(self):
10936
    return
10937
 
10938
 
10939
  def __repr__(self):
10940
    L = ['%s=%r' % (key, value)
10941
      for key, value in self.__dict__.iteritems()]
10942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10943
 
10944
  def __eq__(self, other):
10945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10946
 
10947
  def __ne__(self, other):
10948
    return not (self == other)
10949
 
5944 mandeep.dh 10950
class deleteSimilarItem_args:
10951
  """
10952
  Attributes:
10953
   - itemId
10954
   - catalogItemId
10955
  """
10956
 
10957
  thrift_spec = (
10958
    None, # 0
10959
    (1, TType.I64, 'itemId', None, None, ), # 1
10960
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
10961
  )
10962
 
10963
  def __init__(self, itemId=None, catalogItemId=None,):
10964
    self.itemId = itemId
10965
    self.catalogItemId = catalogItemId
10966
 
10967
  def read(self, iprot):
10968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10970
      return
10971
    iprot.readStructBegin()
10972
    while True:
10973
      (fname, ftype, fid) = iprot.readFieldBegin()
10974
      if ftype == TType.STOP:
10975
        break
10976
      if fid == 1:
10977
        if ftype == TType.I64:
10978
          self.itemId = iprot.readI64();
10979
        else:
10980
          iprot.skip(ftype)
10981
      elif fid == 2:
10982
        if ftype == TType.I64:
10983
          self.catalogItemId = iprot.readI64();
10984
        else:
10985
          iprot.skip(ftype)
10986
      else:
10987
        iprot.skip(ftype)
10988
      iprot.readFieldEnd()
10989
    iprot.readStructEnd()
10990
 
10991
  def write(self, oprot):
10992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10994
      return
10995
    oprot.writeStructBegin('deleteSimilarItem_args')
10996
    if self.itemId is not None:
10997
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10998
      oprot.writeI64(self.itemId)
10999
      oprot.writeFieldEnd()
11000
    if self.catalogItemId is not None:
11001
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
11002
      oprot.writeI64(self.catalogItemId)
11003
      oprot.writeFieldEnd()
11004
    oprot.writeFieldStop()
11005
    oprot.writeStructEnd()
11006
 
11007
  def validate(self):
11008
    return
11009
 
11010
 
11011
  def __repr__(self):
11012
    L = ['%s=%r' % (key, value)
11013
      for key, value in self.__dict__.iteritems()]
11014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11015
 
11016
  def __eq__(self, other):
11017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11018
 
11019
  def __ne__(self, other):
11020
    return not (self == other)
11021
 
11022
class deleteSimilarItem_result:
11023
  """
11024
  Attributes:
11025
   - success
11026
   - cex
11027
  """
11028
 
11029
  thrift_spec = (
11030
    (0, TType.BOOL, 'success', None, None, ), # 0
11031
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11032
  )
11033
 
11034
  def __init__(self, success=None, cex=None,):
11035
    self.success = success
11036
    self.cex = cex
11037
 
11038
  def read(self, iprot):
11039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11041
      return
11042
    iprot.readStructBegin()
11043
    while True:
11044
      (fname, ftype, fid) = iprot.readFieldBegin()
11045
      if ftype == TType.STOP:
11046
        break
11047
      if fid == 0:
11048
        if ftype == TType.BOOL:
11049
          self.success = iprot.readBool();
11050
        else:
11051
          iprot.skip(ftype)
11052
      elif fid == 1:
11053
        if ftype == TType.STRUCT:
11054
          self.cex = CatalogServiceException()
11055
          self.cex.read(iprot)
11056
        else:
11057
          iprot.skip(ftype)
11058
      else:
11059
        iprot.skip(ftype)
11060
      iprot.readFieldEnd()
11061
    iprot.readStructEnd()
11062
 
11063
  def write(self, oprot):
11064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11066
      return
11067
    oprot.writeStructBegin('deleteSimilarItem_result')
11068
    if self.success is not None:
11069
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11070
      oprot.writeBool(self.success)
11071
      oprot.writeFieldEnd()
11072
    if self.cex is not None:
11073
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11074
      self.cex.write(oprot)
11075
      oprot.writeFieldEnd()
11076
    oprot.writeFieldStop()
11077
    oprot.writeStructEnd()
11078
 
11079
  def validate(self):
11080
    return
11081
 
11082
 
11083
  def __repr__(self):
11084
    L = ['%s=%r' % (key, value)
11085
      for key, value in self.__dict__.iteritems()]
11086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11087
 
11088
  def __eq__(self, other):
11089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11090
 
11091
  def __ne__(self, other):
11092
    return not (self == other)
11093
 
11094
class checkSimilarItem_args:
11095
  """
11096
  Attributes:
11097
   - brand
11098
   - modelNumber
11099
   - modelName
11100
   - color
11101
  """
11102
 
11103
  thrift_spec = (
11104
    None, # 0
11105
    (1, TType.STRING, 'brand', None, None, ), # 1
11106
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
11107
    (3, TType.STRING, 'modelName', None, None, ), # 3
11108
    (4, TType.STRING, 'color', None, None, ), # 4
11109
  )
11110
 
11111
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
11112
    self.brand = brand
11113
    self.modelNumber = modelNumber
11114
    self.modelName = modelName
11115
    self.color = color
11116
 
11117
  def read(self, iprot):
11118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11120
      return
11121
    iprot.readStructBegin()
11122
    while True:
11123
      (fname, ftype, fid) = iprot.readFieldBegin()
11124
      if ftype == TType.STOP:
11125
        break
11126
      if fid == 1:
11127
        if ftype == TType.STRING:
11128
          self.brand = iprot.readString();
11129
        else:
11130
          iprot.skip(ftype)
11131
      elif fid == 2:
11132
        if ftype == TType.STRING:
11133
          self.modelNumber = iprot.readString();
11134
        else:
11135
          iprot.skip(ftype)
11136
      elif fid == 3:
11137
        if ftype == TType.STRING:
11138
          self.modelName = iprot.readString();
11139
        else:
11140
          iprot.skip(ftype)
11141
      elif fid == 4:
11142
        if ftype == TType.STRING:
11143
          self.color = iprot.readString();
11144
        else:
11145
          iprot.skip(ftype)
11146
      else:
11147
        iprot.skip(ftype)
11148
      iprot.readFieldEnd()
11149
    iprot.readStructEnd()
11150
 
11151
  def write(self, oprot):
11152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11154
      return
11155
    oprot.writeStructBegin('checkSimilarItem_args')
11156
    if self.brand is not None:
11157
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11158
      oprot.writeString(self.brand)
11159
      oprot.writeFieldEnd()
11160
    if self.modelNumber is not None:
11161
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11162
      oprot.writeString(self.modelNumber)
11163
      oprot.writeFieldEnd()
11164
    if self.modelName is not None:
11165
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11166
      oprot.writeString(self.modelName)
11167
      oprot.writeFieldEnd()
11168
    if self.color is not None:
11169
      oprot.writeFieldBegin('color', TType.STRING, 4)
11170
      oprot.writeString(self.color)
11171
      oprot.writeFieldEnd()
11172
    oprot.writeFieldStop()
11173
    oprot.writeStructEnd()
11174
 
11175
  def validate(self):
11176
    return
11177
 
11178
 
11179
  def __repr__(self):
11180
    L = ['%s=%r' % (key, value)
11181
      for key, value in self.__dict__.iteritems()]
11182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11183
 
11184
  def __eq__(self, other):
11185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11186
 
11187
  def __ne__(self, other):
11188
    return not (self == other)
11189
 
11190
class checkSimilarItem_result:
11191
  """
11192
  Attributes:
11193
   - success
11194
  """
11195
 
11196
  thrift_spec = (
11197
    (0, TType.I64, 'success', None, None, ), # 0
11198
  )
11199
 
11200
  def __init__(self, success=None,):
11201
    self.success = success
11202
 
11203
  def read(self, iprot):
11204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11206
      return
11207
    iprot.readStructBegin()
11208
    while True:
11209
      (fname, ftype, fid) = iprot.readFieldBegin()
11210
      if ftype == TType.STOP:
11211
        break
11212
      if fid == 0:
11213
        if ftype == TType.I64:
11214
          self.success = iprot.readI64();
11215
        else:
11216
          iprot.skip(ftype)
11217
      else:
11218
        iprot.skip(ftype)
11219
      iprot.readFieldEnd()
11220
    iprot.readStructEnd()
11221
 
11222
  def write(self, oprot):
11223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11225
      return
11226
    oprot.writeStructBegin('checkSimilarItem_result')
11227
    if self.success is not None:
11228
      oprot.writeFieldBegin('success', TType.I64, 0)
11229
      oprot.writeI64(self.success)
11230
      oprot.writeFieldEnd()
11231
    oprot.writeFieldStop()
11232
    oprot.writeStructEnd()
11233
 
11234
  def validate(self):
11235
    return
11236
 
11237
 
11238
  def __repr__(self):
11239
    L = ['%s=%r' % (key, value)
11240
      for key, value in self.__dict__.iteritems()]
11241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11242
 
11243
  def __eq__(self, other):
11244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11245
 
11246
  def __ne__(self, other):
11247
    return not (self == other)
11248
 
11249
class validateRiskyStatus_args:
11250
  """
11251
  Attributes:
11252
   - itemId
11253
  """
11254
 
11255
  thrift_spec = (
11256
    None, # 0
11257
    (1, TType.I64, 'itemId', None, None, ), # 1
11258
  )
11259
 
11260
  def __init__(self, itemId=None,):
11261
    self.itemId = itemId
11262
 
11263
  def read(self, iprot):
11264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11266
      return
11267
    iprot.readStructBegin()
11268
    while True:
11269
      (fname, ftype, fid) = iprot.readFieldBegin()
11270
      if ftype == TType.STOP:
11271
        break
11272
      if fid == 1:
11273
        if ftype == TType.I64:
11274
          self.itemId = iprot.readI64();
11275
        else:
11276
          iprot.skip(ftype)
11277
      else:
11278
        iprot.skip(ftype)
11279
      iprot.readFieldEnd()
11280
    iprot.readStructEnd()
11281
 
11282
  def write(self, oprot):
11283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11285
      return
11286
    oprot.writeStructBegin('validateRiskyStatus_args')
11287
    if self.itemId is not None:
11288
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11289
      oprot.writeI64(self.itemId)
11290
      oprot.writeFieldEnd()
11291
    oprot.writeFieldStop()
11292
    oprot.writeStructEnd()
11293
 
11294
  def validate(self):
11295
    return
11296
 
11297
 
11298
  def __repr__(self):
11299
    L = ['%s=%r' % (key, value)
11300
      for key, value in self.__dict__.iteritems()]
11301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11302
 
11303
  def __eq__(self, other):
11304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11305
 
11306
  def __ne__(self, other):
11307
    return not (self == other)
11308
 
11309
class validateRiskyStatus_result:
11310
 
11311
  thrift_spec = (
11312
  )
11313
 
11314
  def read(self, iprot):
11315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11317
      return
11318
    iprot.readStructBegin()
11319
    while True:
11320
      (fname, ftype, fid) = iprot.readFieldBegin()
11321
      if ftype == TType.STOP:
11322
        break
11323
      else:
11324
        iprot.skip(ftype)
11325
      iprot.readFieldEnd()
11326
    iprot.readStructEnd()
11327
 
11328
  def write(self, oprot):
11329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11331
      return
11332
    oprot.writeStructBegin('validateRiskyStatus_result')
11333
    oprot.writeFieldStop()
11334
    oprot.writeStructEnd()
11335
 
11336
  def validate(self):
11337
    return
11338
 
11339
 
11340
  def __repr__(self):
11341
    L = ['%s=%r' % (key, value)
11342
      for key, value in self.__dict__.iteritems()]
11343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11344
 
11345
  def __eq__(self, other):
11346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11347
 
11348
  def __ne__(self, other):
11349
    return not (self == other)
11350
 
11351
class changeItemRiskyFlag_args:
11352
  """
11353
  Attributes:
11354
   - itemId
11355
   - risky
11356
  """
11357
 
11358
  thrift_spec = (
11359
    None, # 0
11360
    (1, TType.I64, 'itemId', None, None, ), # 1
11361
    (2, TType.BOOL, 'risky', None, None, ), # 2
11362
  )
11363
 
11364
  def __init__(self, itemId=None, risky=None,):
11365
    self.itemId = itemId
11366
    self.risky = risky
11367
 
11368
  def read(self, iprot):
11369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11371
      return
11372
    iprot.readStructBegin()
11373
    while True:
11374
      (fname, ftype, fid) = iprot.readFieldBegin()
11375
      if ftype == TType.STOP:
11376
        break
11377
      if fid == 1:
11378
        if ftype == TType.I64:
11379
          self.itemId = iprot.readI64();
11380
        else:
11381
          iprot.skip(ftype)
11382
      elif fid == 2:
11383
        if ftype == TType.BOOL:
11384
          self.risky = iprot.readBool();
11385
        else:
11386
          iprot.skip(ftype)
11387
      else:
11388
        iprot.skip(ftype)
11389
      iprot.readFieldEnd()
11390
    iprot.readStructEnd()
11391
 
11392
  def write(self, oprot):
11393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11395
      return
11396
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11397
    if self.itemId is not None:
11398
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11399
      oprot.writeI64(self.itemId)
11400
      oprot.writeFieldEnd()
11401
    if self.risky is not None:
11402
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11403
      oprot.writeBool(self.risky)
11404
      oprot.writeFieldEnd()
11405
    oprot.writeFieldStop()
11406
    oprot.writeStructEnd()
11407
 
11408
  def validate(self):
11409
    return
11410
 
11411
 
11412
  def __repr__(self):
11413
    L = ['%s=%r' % (key, value)
11414
      for key, value in self.__dict__.iteritems()]
11415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11416
 
11417
  def __eq__(self, other):
11418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11419
 
11420
  def __ne__(self, other):
11421
    return not (self == other)
11422
 
11423
class changeItemRiskyFlag_result:
11424
 
11425
  thrift_spec = (
11426
  )
11427
 
11428
  def read(self, iprot):
11429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11431
      return
11432
    iprot.readStructBegin()
11433
    while True:
11434
      (fname, ftype, fid) = iprot.readFieldBegin()
11435
      if ftype == TType.STOP:
11436
        break
11437
      else:
11438
        iprot.skip(ftype)
11439
      iprot.readFieldEnd()
11440
    iprot.readStructEnd()
11441
 
11442
  def write(self, oprot):
11443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11445
      return
11446
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11447
    oprot.writeFieldStop()
11448
    oprot.writeStructEnd()
11449
 
11450
  def validate(self):
11451
    return
11452
 
11453
 
11454
  def __repr__(self):
11455
    L = ['%s=%r' % (key, value)
11456
      for key, value in self.__dict__.iteritems()]
11457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11458
 
11459
  def __eq__(self, other):
11460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11461
 
11462
  def __ne__(self, other):
11463
    return not (self == other)
11464
 
11465
class getItemsByRiskyFlag_args:
11466
 
11467
  thrift_spec = (
11468
  )
11469
 
11470
  def read(self, iprot):
11471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11473
      return
11474
    iprot.readStructBegin()
11475
    while True:
11476
      (fname, ftype, fid) = iprot.readFieldBegin()
11477
      if ftype == TType.STOP:
11478
        break
11479
      else:
11480
        iprot.skip(ftype)
11481
      iprot.readFieldEnd()
11482
    iprot.readStructEnd()
11483
 
11484
  def write(self, oprot):
11485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11487
      return
11488
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11489
    oprot.writeFieldStop()
11490
    oprot.writeStructEnd()
11491
 
11492
  def validate(self):
11493
    return
11494
 
11495
 
11496
  def __repr__(self):
11497
    L = ['%s=%r' % (key, value)
11498
      for key, value in self.__dict__.iteritems()]
11499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11500
 
11501
  def __eq__(self, other):
11502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11503
 
11504
  def __ne__(self, other):
11505
    return not (self == other)
11506
 
11507
class getItemsByRiskyFlag_result:
11508
  """
11509
  Attributes:
11510
   - success
11511
  """
11512
 
11513
  thrift_spec = (
11514
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11515
  )
11516
 
11517
  def __init__(self, success=None,):
11518
    self.success = success
11519
 
11520
  def read(self, iprot):
11521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11523
      return
11524
    iprot.readStructBegin()
11525
    while True:
11526
      (fname, ftype, fid) = iprot.readFieldBegin()
11527
      if ftype == TType.STOP:
11528
        break
11529
      if fid == 0:
11530
        if ftype == TType.LIST:
11531
          self.success = []
6850 kshitij.so 11532
          (_etype189, _size186) = iprot.readListBegin()
11533
          for _i190 in xrange(_size186):
11534
            _elem191 = Item()
11535
            _elem191.read(iprot)
11536
            self.success.append(_elem191)
5944 mandeep.dh 11537
          iprot.readListEnd()
11538
        else:
11539
          iprot.skip(ftype)
11540
      else:
11541
        iprot.skip(ftype)
11542
      iprot.readFieldEnd()
11543
    iprot.readStructEnd()
11544
 
11545
  def write(self, oprot):
11546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11548
      return
11549
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11550
    if self.success is not None:
11551
      oprot.writeFieldBegin('success', TType.LIST, 0)
11552
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11553
      for iter192 in self.success:
11554
        iter192.write(oprot)
5944 mandeep.dh 11555
      oprot.writeListEnd()
11556
      oprot.writeFieldEnd()
11557
    oprot.writeFieldStop()
11558
    oprot.writeStructEnd()
11559
 
11560
  def validate(self):
11561
    return
11562
 
11563
 
11564
  def __repr__(self):
11565
    L = ['%s=%r' % (key, value)
11566
      for key, value in self.__dict__.iteritems()]
11567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11568
 
11569
  def __eq__(self, other):
11570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11571
 
11572
  def __ne__(self, other):
11573
    return not (self == other)
11574
 
11575
class getItemsForMasterSheet_args:
11576
  """
11577
  Attributes:
11578
   - category
11579
   - brand
11580
  """
11581
 
11582
  thrift_spec = (
11583
    None, # 0
11584
    (1, TType.STRING, 'category', None, None, ), # 1
11585
    (2, TType.STRING, 'brand', None, None, ), # 2
11586
  )
11587
 
11588
  def __init__(self, category=None, brand=None,):
11589
    self.category = category
11590
    self.brand = brand
11591
 
11592
  def read(self, iprot):
11593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11595
      return
11596
    iprot.readStructBegin()
11597
    while True:
11598
      (fname, ftype, fid) = iprot.readFieldBegin()
11599
      if ftype == TType.STOP:
11600
        break
11601
      if fid == 1:
11602
        if ftype == TType.STRING:
11603
          self.category = iprot.readString();
11604
        else:
11605
          iprot.skip(ftype)
11606
      elif fid == 2:
11607
        if ftype == TType.STRING:
11608
          self.brand = iprot.readString();
11609
        else:
11610
          iprot.skip(ftype)
11611
      else:
11612
        iprot.skip(ftype)
11613
      iprot.readFieldEnd()
11614
    iprot.readStructEnd()
11615
 
11616
  def write(self, oprot):
11617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11619
      return
11620
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11621
    if self.category is not None:
11622
      oprot.writeFieldBegin('category', TType.STRING, 1)
11623
      oprot.writeString(self.category)
11624
      oprot.writeFieldEnd()
11625
    if self.brand is not None:
11626
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11627
      oprot.writeString(self.brand)
11628
      oprot.writeFieldEnd()
11629
    oprot.writeFieldStop()
11630
    oprot.writeStructEnd()
11631
 
11632
  def validate(self):
11633
    return
11634
 
11635
 
11636
  def __repr__(self):
11637
    L = ['%s=%r' % (key, value)
11638
      for key, value in self.__dict__.iteritems()]
11639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11640
 
11641
  def __eq__(self, other):
11642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11643
 
11644
  def __ne__(self, other):
11645
    return not (self == other)
11646
 
11647
class getItemsForMasterSheet_result:
11648
  """
11649
  Attributes:
11650
   - success
11651
  """
11652
 
11653
  thrift_spec = (
11654
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11655
  )
11656
 
11657
  def __init__(self, success=None,):
11658
    self.success = success
11659
 
11660
  def read(self, iprot):
11661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11663
      return
11664
    iprot.readStructBegin()
11665
    while True:
11666
      (fname, ftype, fid) = iprot.readFieldBegin()
11667
      if ftype == TType.STOP:
11668
        break
11669
      if fid == 0:
11670
        if ftype == TType.LIST:
11671
          self.success = []
6850 kshitij.so 11672
          (_etype196, _size193) = iprot.readListBegin()
11673
          for _i197 in xrange(_size193):
11674
            _elem198 = Item()
11675
            _elem198.read(iprot)
11676
            self.success.append(_elem198)
5944 mandeep.dh 11677
          iprot.readListEnd()
11678
        else:
11679
          iprot.skip(ftype)
11680
      else:
11681
        iprot.skip(ftype)
11682
      iprot.readFieldEnd()
11683
    iprot.readStructEnd()
11684
 
11685
  def write(self, oprot):
11686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11688
      return
11689
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11690
    if self.success is not None:
11691
      oprot.writeFieldBegin('success', TType.LIST, 0)
11692
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11693
      for iter199 in self.success:
11694
        iter199.write(oprot)
5944 mandeep.dh 11695
      oprot.writeListEnd()
11696
      oprot.writeFieldEnd()
11697
    oprot.writeFieldStop()
11698
    oprot.writeStructEnd()
11699
 
11700
  def validate(self):
11701
    return
11702
 
11703
 
11704
  def __repr__(self):
11705
    L = ['%s=%r' % (key, value)
11706
      for key, value in self.__dict__.iteritems()]
11707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11708
 
11709
  def __eq__(self, other):
11710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11711
 
11712
  def __ne__(self, other):
11713
    return not (self == other)
11714
 
11715
class getSimilarItemsCatalogIds_args:
11716
  """
11717
  Attributes:
11718
   - beginIndex
11719
   - totalItems
11720
   - itemId
11721
  """
11722
 
11723
  thrift_spec = (
11724
    None, # 0
11725
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11726
    (2, TType.I64, 'totalItems', None, None, ), # 2
11727
    (3, TType.I64, 'itemId', None, None, ), # 3
11728
  )
11729
 
11730
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11731
    self.beginIndex = beginIndex
11732
    self.totalItems = totalItems
11733
    self.itemId = itemId
11734
 
11735
  def read(self, iprot):
11736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11738
      return
11739
    iprot.readStructBegin()
11740
    while True:
11741
      (fname, ftype, fid) = iprot.readFieldBegin()
11742
      if ftype == TType.STOP:
11743
        break
11744
      if fid == 1:
11745
        if ftype == TType.I64:
11746
          self.beginIndex = iprot.readI64();
11747
        else:
11748
          iprot.skip(ftype)
11749
      elif fid == 2:
11750
        if ftype == TType.I64:
11751
          self.totalItems = iprot.readI64();
11752
        else:
11753
          iprot.skip(ftype)
11754
      elif fid == 3:
11755
        if ftype == TType.I64:
11756
          self.itemId = iprot.readI64();
11757
        else:
11758
          iprot.skip(ftype)
11759
      else:
11760
        iprot.skip(ftype)
11761
      iprot.readFieldEnd()
11762
    iprot.readStructEnd()
11763
 
11764
  def write(self, oprot):
11765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11767
      return
11768
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11769
    if self.beginIndex is not None:
11770
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11771
      oprot.writeI64(self.beginIndex)
11772
      oprot.writeFieldEnd()
11773
    if self.totalItems is not None:
11774
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11775
      oprot.writeI64(self.totalItems)
11776
      oprot.writeFieldEnd()
11777
    if self.itemId is not None:
11778
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11779
      oprot.writeI64(self.itemId)
11780
      oprot.writeFieldEnd()
11781
    oprot.writeFieldStop()
11782
    oprot.writeStructEnd()
11783
 
11784
  def validate(self):
11785
    return
11786
 
11787
 
11788
  def __repr__(self):
11789
    L = ['%s=%r' % (key, value)
11790
      for key, value in self.__dict__.iteritems()]
11791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11792
 
11793
  def __eq__(self, other):
11794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11795
 
11796
  def __ne__(self, other):
11797
    return not (self == other)
11798
 
11799
class getSimilarItemsCatalogIds_result:
11800
  """
11801
  Attributes:
11802
   - success
11803
  """
11804
 
11805
  thrift_spec = (
11806
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11807
  )
11808
 
11809
  def __init__(self, success=None,):
11810
    self.success = success
11811
 
11812
  def read(self, iprot):
11813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11815
      return
11816
    iprot.readStructBegin()
11817
    while True:
11818
      (fname, ftype, fid) = iprot.readFieldBegin()
11819
      if ftype == TType.STOP:
11820
        break
11821
      if fid == 0:
11822
        if ftype == TType.LIST:
11823
          self.success = []
6850 kshitij.so 11824
          (_etype203, _size200) = iprot.readListBegin()
11825
          for _i204 in xrange(_size200):
11826
            _elem205 = iprot.readI64();
11827
            self.success.append(_elem205)
5944 mandeep.dh 11828
          iprot.readListEnd()
11829
        else:
11830
          iprot.skip(ftype)
11831
      else:
11832
        iprot.skip(ftype)
11833
      iprot.readFieldEnd()
11834
    iprot.readStructEnd()
11835
 
11836
  def write(self, oprot):
11837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11839
      return
11840
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11841
    if self.success is not None:
11842
      oprot.writeFieldBegin('success', TType.LIST, 0)
11843
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11844
      for iter206 in self.success:
11845
        oprot.writeI64(iter206)
5944 mandeep.dh 11846
      oprot.writeListEnd()
11847
      oprot.writeFieldEnd()
11848
    oprot.writeFieldStop()
11849
    oprot.writeStructEnd()
11850
 
11851
  def validate(self):
11852
    return
11853
 
11854
 
11855
  def __repr__(self):
11856
    L = ['%s=%r' % (key, value)
11857
      for key, value in self.__dict__.iteritems()]
11858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11859
 
11860
  def __eq__(self, other):
11861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11862
 
11863
  def __ne__(self, other):
11864
    return not (self == other)
11865
 
11866
class addProductNotification_args:
11867
  """
11868
  Attributes:
11869
   - itemId
11870
   - email
11871
  """
11872
 
11873
  thrift_spec = None
11874
  def __init__(self, itemId=None, email=None,):
11875
    self.itemId = itemId
11876
    self.email = email
11877
 
11878
  def read(self, iprot):
11879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11881
      return
11882
    iprot.readStructBegin()
11883
    while True:
11884
      (fname, ftype, fid) = iprot.readFieldBegin()
11885
      if ftype == TType.STOP:
11886
        break
11887
      if fid == -1:
11888
        if ftype == TType.I64:
11889
          self.itemId = iprot.readI64();
11890
        else:
11891
          iprot.skip(ftype)
11892
      elif fid == -2:
11893
        if ftype == TType.STRING:
11894
          self.email = iprot.readString();
11895
        else:
11896
          iprot.skip(ftype)
11897
      else:
11898
        iprot.skip(ftype)
11899
      iprot.readFieldEnd()
11900
    iprot.readStructEnd()
11901
 
11902
  def write(self, oprot):
11903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11905
      return
11906
    oprot.writeStructBegin('addProductNotification_args')
11907
    if self.email is not None:
11908
      oprot.writeFieldBegin('email', TType.STRING, -2)
11909
      oprot.writeString(self.email)
11910
      oprot.writeFieldEnd()
11911
    if self.itemId is not None:
11912
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11913
      oprot.writeI64(self.itemId)
11914
      oprot.writeFieldEnd()
11915
    oprot.writeFieldStop()
11916
    oprot.writeStructEnd()
11917
 
11918
  def validate(self):
11919
    return
11920
 
11921
 
11922
  def __repr__(self):
11923
    L = ['%s=%r' % (key, value)
11924
      for key, value in self.__dict__.iteritems()]
11925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11926
 
11927
  def __eq__(self, other):
11928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11929
 
11930
  def __ne__(self, other):
11931
    return not (self == other)
11932
 
11933
class addProductNotification_result:
11934
  """
11935
  Attributes:
11936
   - success
11937
  """
11938
 
11939
  thrift_spec = (
11940
    (0, TType.BOOL, 'success', None, None, ), # 0
11941
  )
11942
 
11943
  def __init__(self, success=None,):
11944
    self.success = success
11945
 
11946
  def read(self, iprot):
11947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11949
      return
11950
    iprot.readStructBegin()
11951
    while True:
11952
      (fname, ftype, fid) = iprot.readFieldBegin()
11953
      if ftype == TType.STOP:
11954
        break
11955
      if fid == 0:
11956
        if ftype == TType.BOOL:
11957
          self.success = iprot.readBool();
11958
        else:
11959
          iprot.skip(ftype)
11960
      else:
11961
        iprot.skip(ftype)
11962
      iprot.readFieldEnd()
11963
    iprot.readStructEnd()
11964
 
11965
  def write(self, oprot):
11966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11968
      return
11969
    oprot.writeStructBegin('addProductNotification_result')
11970
    if self.success is not None:
11971
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11972
      oprot.writeBool(self.success)
11973
      oprot.writeFieldEnd()
11974
    oprot.writeFieldStop()
11975
    oprot.writeStructEnd()
11976
 
11977
  def validate(self):
11978
    return
11979
 
11980
 
11981
  def __repr__(self):
11982
    L = ['%s=%r' % (key, value)
11983
      for key, value in self.__dict__.iteritems()]
11984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11985
 
11986
  def __eq__(self, other):
11987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11988
 
11989
  def __ne__(self, other):
11990
    return not (self == other)
11991
 
11992
class sendProductNotifications_args:
11993
 
11994
  thrift_spec = (
11995
  )
11996
 
11997
  def read(self, iprot):
11998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12000
      return
12001
    iprot.readStructBegin()
12002
    while True:
12003
      (fname, ftype, fid) = iprot.readFieldBegin()
12004
      if ftype == TType.STOP:
12005
        break
12006
      else:
12007
        iprot.skip(ftype)
12008
      iprot.readFieldEnd()
12009
    iprot.readStructEnd()
12010
 
12011
  def write(self, oprot):
12012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12014
      return
12015
    oprot.writeStructBegin('sendProductNotifications_args')
12016
    oprot.writeFieldStop()
12017
    oprot.writeStructEnd()
12018
 
12019
  def validate(self):
12020
    return
12021
 
12022
 
12023
  def __repr__(self):
12024
    L = ['%s=%r' % (key, value)
12025
      for key, value in self.__dict__.iteritems()]
12026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12027
 
12028
  def __eq__(self, other):
12029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12030
 
12031
  def __ne__(self, other):
12032
    return not (self == other)
12033
 
12034
class sendProductNotifications_result:
12035
  """
12036
  Attributes:
12037
   - success
12038
  """
12039
 
12040
  thrift_spec = (
12041
    (0, TType.BOOL, 'success', None, None, ), # 0
12042
  )
12043
 
12044
  def __init__(self, success=None,):
12045
    self.success = success
12046
 
12047
  def read(self, iprot):
12048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12050
      return
12051
    iprot.readStructBegin()
12052
    while True:
12053
      (fname, ftype, fid) = iprot.readFieldBegin()
12054
      if ftype == TType.STOP:
12055
        break
12056
      if fid == 0:
12057
        if ftype == TType.BOOL:
12058
          self.success = iprot.readBool();
12059
        else:
12060
          iprot.skip(ftype)
12061
      else:
12062
        iprot.skip(ftype)
12063
      iprot.readFieldEnd()
12064
    iprot.readStructEnd()
12065
 
12066
  def write(self, oprot):
12067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12069
      return
12070
    oprot.writeStructBegin('sendProductNotifications_result')
12071
    if self.success is not None:
12072
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12073
      oprot.writeBool(self.success)
12074
      oprot.writeFieldEnd()
12075
    oprot.writeFieldStop()
12076
    oprot.writeStructEnd()
12077
 
12078
  def validate(self):
12079
    return
12080
 
12081
 
12082
  def __repr__(self):
12083
    L = ['%s=%r' % (key, value)
12084
      for key, value in self.__dict__.iteritems()]
12085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12086
 
12087
  def __eq__(self, other):
12088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12089
 
12090
  def __ne__(self, other):
12091
    return not (self == other)
12092
 
12093
class getAllBrandsByCategory_args:
12094
  """
12095
  Attributes:
12096
   - categoryId
12097
  """
12098
 
12099
  thrift_spec = (
12100
    None, # 0
12101
    (1, TType.I64, 'categoryId', None, None, ), # 1
12102
  )
12103
 
12104
  def __init__(self, categoryId=None,):
12105
    self.categoryId = categoryId
12106
 
12107
  def read(self, iprot):
12108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12110
      return
12111
    iprot.readStructBegin()
12112
    while True:
12113
      (fname, ftype, fid) = iprot.readFieldBegin()
12114
      if ftype == TType.STOP:
12115
        break
12116
      if fid == 1:
12117
        if ftype == TType.I64:
12118
          self.categoryId = iprot.readI64();
12119
        else:
12120
          iprot.skip(ftype)
12121
      else:
12122
        iprot.skip(ftype)
12123
      iprot.readFieldEnd()
12124
    iprot.readStructEnd()
12125
 
12126
  def write(self, oprot):
12127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12129
      return
12130
    oprot.writeStructBegin('getAllBrandsByCategory_args')
12131
    if self.categoryId is not None:
12132
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
12133
      oprot.writeI64(self.categoryId)
12134
      oprot.writeFieldEnd()
12135
    oprot.writeFieldStop()
12136
    oprot.writeStructEnd()
12137
 
12138
  def validate(self):
12139
    return
12140
 
12141
 
12142
  def __repr__(self):
12143
    L = ['%s=%r' % (key, value)
12144
      for key, value in self.__dict__.iteritems()]
12145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12146
 
12147
  def __eq__(self, other):
12148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12149
 
12150
  def __ne__(self, other):
12151
    return not (self == other)
12152
 
12153
class getAllBrandsByCategory_result:
12154
  """
12155
  Attributes:
12156
   - success
12157
  """
12158
 
12159
  thrift_spec = (
12160
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12161
  )
12162
 
12163
  def __init__(self, success=None,):
12164
    self.success = success
12165
 
12166
  def read(self, iprot):
12167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12169
      return
12170
    iprot.readStructBegin()
12171
    while True:
12172
      (fname, ftype, fid) = iprot.readFieldBegin()
12173
      if ftype == TType.STOP:
12174
        break
12175
      if fid == 0:
12176
        if ftype == TType.LIST:
12177
          self.success = []
6850 kshitij.so 12178
          (_etype210, _size207) = iprot.readListBegin()
12179
          for _i211 in xrange(_size207):
12180
            _elem212 = iprot.readString();
12181
            self.success.append(_elem212)
5944 mandeep.dh 12182
          iprot.readListEnd()
12183
        else:
12184
          iprot.skip(ftype)
12185
      else:
12186
        iprot.skip(ftype)
12187
      iprot.readFieldEnd()
12188
    iprot.readStructEnd()
12189
 
12190
  def write(self, oprot):
12191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12193
      return
12194
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12195
    if self.success is not None:
12196
      oprot.writeFieldBegin('success', TType.LIST, 0)
12197
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12198
      for iter213 in self.success:
12199
        oprot.writeString(iter213)
5944 mandeep.dh 12200
      oprot.writeListEnd()
12201
      oprot.writeFieldEnd()
12202
    oprot.writeFieldStop()
12203
    oprot.writeStructEnd()
12204
 
12205
  def validate(self):
12206
    return
12207
 
12208
 
12209
  def __repr__(self):
12210
    L = ['%s=%r' % (key, value)
12211
      for key, value in self.__dict__.iteritems()]
12212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12213
 
12214
  def __eq__(self, other):
12215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12216
 
12217
  def __ne__(self, other):
12218
    return not (self == other)
12219
 
12220
class getAllBrands_args:
12221
 
12222
  thrift_spec = (
12223
  )
12224
 
12225
  def read(self, iprot):
12226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12228
      return
12229
    iprot.readStructBegin()
12230
    while True:
12231
      (fname, ftype, fid) = iprot.readFieldBegin()
12232
      if ftype == TType.STOP:
12233
        break
12234
      else:
12235
        iprot.skip(ftype)
12236
      iprot.readFieldEnd()
12237
    iprot.readStructEnd()
12238
 
12239
  def write(self, oprot):
12240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12242
      return
12243
    oprot.writeStructBegin('getAllBrands_args')
12244
    oprot.writeFieldStop()
12245
    oprot.writeStructEnd()
12246
 
12247
  def validate(self):
12248
    return
12249
 
12250
 
12251
  def __repr__(self):
12252
    L = ['%s=%r' % (key, value)
12253
      for key, value in self.__dict__.iteritems()]
12254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12255
 
12256
  def __eq__(self, other):
12257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12258
 
12259
  def __ne__(self, other):
12260
    return not (self == other)
12261
 
12262
class getAllBrands_result:
12263
  """
12264
  Attributes:
12265
   - success
12266
  """
12267
 
12268
  thrift_spec = (
12269
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12270
  )
12271
 
12272
  def __init__(self, success=None,):
12273
    self.success = success
12274
 
12275
  def read(self, iprot):
12276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12278
      return
12279
    iprot.readStructBegin()
12280
    while True:
12281
      (fname, ftype, fid) = iprot.readFieldBegin()
12282
      if ftype == TType.STOP:
12283
        break
12284
      if fid == 0:
12285
        if ftype == TType.LIST:
12286
          self.success = []
6850 kshitij.so 12287
          (_etype217, _size214) = iprot.readListBegin()
12288
          for _i218 in xrange(_size214):
12289
            _elem219 = iprot.readString();
12290
            self.success.append(_elem219)
5944 mandeep.dh 12291
          iprot.readListEnd()
12292
        else:
12293
          iprot.skip(ftype)
12294
      else:
12295
        iprot.skip(ftype)
12296
      iprot.readFieldEnd()
12297
    iprot.readStructEnd()
12298
 
12299
  def write(self, oprot):
12300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12302
      return
12303
    oprot.writeStructBegin('getAllBrands_result')
12304
    if self.success is not None:
12305
      oprot.writeFieldBegin('success', TType.LIST, 0)
12306
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12307
      for iter220 in self.success:
12308
        oprot.writeString(iter220)
5944 mandeep.dh 12309
      oprot.writeListEnd()
12310
      oprot.writeFieldEnd()
12311
    oprot.writeFieldStop()
12312
    oprot.writeStructEnd()
12313
 
12314
  def validate(self):
12315
    return
12316
 
12317
 
12318
  def __repr__(self):
12319
    L = ['%s=%r' % (key, value)
12320
      for key, value in self.__dict__.iteritems()]
12321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12322
 
12323
  def __eq__(self, other):
12324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12325
 
12326
  def __ne__(self, other):
12327
    return not (self == other)
12328
 
12329
class getAllSources_args:
12330
 
12331
  thrift_spec = (
12332
  )
12333
 
12334
  def read(self, iprot):
12335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12337
      return
12338
    iprot.readStructBegin()
12339
    while True:
12340
      (fname, ftype, fid) = iprot.readFieldBegin()
12341
      if ftype == TType.STOP:
12342
        break
12343
      else:
12344
        iprot.skip(ftype)
12345
      iprot.readFieldEnd()
12346
    iprot.readStructEnd()
12347
 
12348
  def write(self, oprot):
12349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12351
      return
12352
    oprot.writeStructBegin('getAllSources_args')
12353
    oprot.writeFieldStop()
12354
    oprot.writeStructEnd()
12355
 
12356
  def validate(self):
12357
    return
12358
 
12359
 
12360
  def __repr__(self):
12361
    L = ['%s=%r' % (key, value)
12362
      for key, value in self.__dict__.iteritems()]
12363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12364
 
12365
  def __eq__(self, other):
12366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12367
 
12368
  def __ne__(self, other):
12369
    return not (self == other)
12370
 
12371
class getAllSources_result:
12372
  """
12373
  Attributes:
12374
   - success
12375
  """
12376
 
12377
  thrift_spec = (
12378
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12379
  )
12380
 
12381
  def __init__(self, success=None,):
12382
    self.success = success
12383
 
12384
  def read(self, iprot):
12385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12387
      return
12388
    iprot.readStructBegin()
12389
    while True:
12390
      (fname, ftype, fid) = iprot.readFieldBegin()
12391
      if ftype == TType.STOP:
12392
        break
12393
      if fid == 0:
12394
        if ftype == TType.LIST:
12395
          self.success = []
6850 kshitij.so 12396
          (_etype224, _size221) = iprot.readListBegin()
12397
          for _i225 in xrange(_size221):
12398
            _elem226 = Source()
12399
            _elem226.read(iprot)
12400
            self.success.append(_elem226)
5944 mandeep.dh 12401
          iprot.readListEnd()
12402
        else:
12403
          iprot.skip(ftype)
12404
      else:
12405
        iprot.skip(ftype)
12406
      iprot.readFieldEnd()
12407
    iprot.readStructEnd()
12408
 
12409
  def write(self, oprot):
12410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12412
      return
12413
    oprot.writeStructBegin('getAllSources_result')
12414
    if self.success is not None:
12415
      oprot.writeFieldBegin('success', TType.LIST, 0)
12416
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12417
      for iter227 in self.success:
12418
        iter227.write(oprot)
5944 mandeep.dh 12419
      oprot.writeListEnd()
12420
      oprot.writeFieldEnd()
12421
    oprot.writeFieldStop()
12422
    oprot.writeStructEnd()
12423
 
12424
  def validate(self):
12425
    return
12426
 
12427
 
12428
  def __repr__(self):
12429
    L = ['%s=%r' % (key, value)
12430
      for key, value in self.__dict__.iteritems()]
12431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12432
 
12433
  def __eq__(self, other):
12434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12435
 
12436
  def __ne__(self, other):
12437
    return not (self == other)
12438
 
12439
class getItemPricingBySource_args:
12440
  """
12441
  Attributes:
12442
   - itemId
12443
   - sourceId
12444
  """
12445
 
12446
  thrift_spec = (
12447
    None, # 0
12448
    (1, TType.I64, 'itemId', None, None, ), # 1
12449
    (2, TType.I64, 'sourceId', None, None, ), # 2
12450
  )
12451
 
12452
  def __init__(self, itemId=None, sourceId=None,):
12453
    self.itemId = itemId
12454
    self.sourceId = sourceId
12455
 
12456
  def read(self, iprot):
12457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12459
      return
12460
    iprot.readStructBegin()
12461
    while True:
12462
      (fname, ftype, fid) = iprot.readFieldBegin()
12463
      if ftype == TType.STOP:
12464
        break
12465
      if fid == 1:
12466
        if ftype == TType.I64:
12467
          self.itemId = iprot.readI64();
12468
        else:
12469
          iprot.skip(ftype)
12470
      elif fid == 2:
12471
        if ftype == TType.I64:
12472
          self.sourceId = iprot.readI64();
12473
        else:
12474
          iprot.skip(ftype)
12475
      else:
12476
        iprot.skip(ftype)
12477
      iprot.readFieldEnd()
12478
    iprot.readStructEnd()
12479
 
12480
  def write(self, oprot):
12481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12483
      return
12484
    oprot.writeStructBegin('getItemPricingBySource_args')
12485
    if self.itemId is not None:
12486
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12487
      oprot.writeI64(self.itemId)
12488
      oprot.writeFieldEnd()
12489
    if self.sourceId is not None:
12490
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12491
      oprot.writeI64(self.sourceId)
12492
      oprot.writeFieldEnd()
12493
    oprot.writeFieldStop()
12494
    oprot.writeStructEnd()
12495
 
12496
  def validate(self):
12497
    return
12498
 
12499
 
12500
  def __repr__(self):
12501
    L = ['%s=%r' % (key, value)
12502
      for key, value in self.__dict__.iteritems()]
12503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12504
 
12505
  def __eq__(self, other):
12506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12507
 
12508
  def __ne__(self, other):
12509
    return not (self == other)
12510
 
12511
class getItemPricingBySource_result:
12512
  """
12513
  Attributes:
12514
   - success
12515
   - cex
12516
  """
12517
 
12518
  thrift_spec = (
12519
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12520
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12521
  )
12522
 
12523
  def __init__(self, success=None, cex=None,):
12524
    self.success = success
12525
    self.cex = cex
12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      if fid == 0:
12537
        if ftype == TType.STRUCT:
12538
          self.success = SourceItemPricing()
12539
          self.success.read(iprot)
12540
        else:
12541
          iprot.skip(ftype)
12542
      elif fid == 1:
12543
        if ftype == TType.STRUCT:
12544
          self.cex = CatalogServiceException()
12545
          self.cex.read(iprot)
12546
        else:
12547
          iprot.skip(ftype)
12548
      else:
12549
        iprot.skip(ftype)
12550
      iprot.readFieldEnd()
12551
    iprot.readStructEnd()
12552
 
12553
  def write(self, oprot):
12554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12556
      return
12557
    oprot.writeStructBegin('getItemPricingBySource_result')
12558
    if self.success is not None:
12559
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12560
      self.success.write(oprot)
12561
      oprot.writeFieldEnd()
12562
    if self.cex is not None:
12563
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12564
      self.cex.write(oprot)
12565
      oprot.writeFieldEnd()
12566
    oprot.writeFieldStop()
12567
    oprot.writeStructEnd()
12568
 
12569
  def validate(self):
12570
    return
12571
 
12572
 
12573
  def __repr__(self):
12574
    L = ['%s=%r' % (key, value)
12575
      for key, value in self.__dict__.iteritems()]
12576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12577
 
12578
  def __eq__(self, other):
12579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12580
 
12581
  def __ne__(self, other):
12582
    return not (self == other)
12583
 
12584
class addSourceItemPricing_args:
12585
  """
12586
  Attributes:
12587
   - sourceItemPricing
12588
  """
12589
 
12590
  thrift_spec = (
12591
    None, # 0
12592
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12593
  )
12594
 
12595
  def __init__(self, sourceItemPricing=None,):
12596
    self.sourceItemPricing = sourceItemPricing
12597
 
12598
  def read(self, iprot):
12599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12601
      return
12602
    iprot.readStructBegin()
12603
    while True:
12604
      (fname, ftype, fid) = iprot.readFieldBegin()
12605
      if ftype == TType.STOP:
12606
        break
12607
      if fid == 1:
12608
        if ftype == TType.STRUCT:
12609
          self.sourceItemPricing = SourceItemPricing()
12610
          self.sourceItemPricing.read(iprot)
12611
        else:
12612
          iprot.skip(ftype)
12613
      else:
12614
        iprot.skip(ftype)
12615
      iprot.readFieldEnd()
12616
    iprot.readStructEnd()
12617
 
12618
  def write(self, oprot):
12619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12621
      return
12622
    oprot.writeStructBegin('addSourceItemPricing_args')
12623
    if self.sourceItemPricing is not None:
12624
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12625
      self.sourceItemPricing.write(oprot)
12626
      oprot.writeFieldEnd()
12627
    oprot.writeFieldStop()
12628
    oprot.writeStructEnd()
12629
 
12630
  def validate(self):
12631
    return
12632
 
12633
 
12634
  def __repr__(self):
12635
    L = ['%s=%r' % (key, value)
12636
      for key, value in self.__dict__.iteritems()]
12637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12638
 
12639
  def __eq__(self, other):
12640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12641
 
12642
  def __ne__(self, other):
12643
    return not (self == other)
12644
 
12645
class addSourceItemPricing_result:
12646
  """
12647
  Attributes:
12648
   - cex
12649
  """
12650
 
12651
  thrift_spec = (
12652
    None, # 0
12653
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12654
  )
12655
 
12656
  def __init__(self, cex=None,):
12657
    self.cex = cex
12658
 
12659
  def read(self, iprot):
12660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12662
      return
12663
    iprot.readStructBegin()
12664
    while True:
12665
      (fname, ftype, fid) = iprot.readFieldBegin()
12666
      if ftype == TType.STOP:
12667
        break
12668
      if fid == 1:
12669
        if ftype == TType.STRUCT:
12670
          self.cex = CatalogServiceException()
12671
          self.cex.read(iprot)
12672
        else:
12673
          iprot.skip(ftype)
12674
      else:
12675
        iprot.skip(ftype)
12676
      iprot.readFieldEnd()
12677
    iprot.readStructEnd()
12678
 
12679
  def write(self, oprot):
12680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12682
      return
12683
    oprot.writeStructBegin('addSourceItemPricing_result')
12684
    if self.cex is not None:
12685
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12686
      self.cex.write(oprot)
12687
      oprot.writeFieldEnd()
12688
    oprot.writeFieldStop()
12689
    oprot.writeStructEnd()
12690
 
12691
  def validate(self):
12692
    return
12693
 
12694
 
12695
  def __repr__(self):
12696
    L = ['%s=%r' % (key, value)
12697
      for key, value in self.__dict__.iteritems()]
12698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12699
 
12700
  def __eq__(self, other):
12701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12702
 
12703
  def __ne__(self, other):
12704
    return not (self == other)
12705
 
12706
class getAllSourcePricing_args:
12707
  """
12708
  Attributes:
12709
   - itemId
12710
  """
12711
 
12712
  thrift_spec = (
12713
    None, # 0
12714
    (1, TType.I64, 'itemId', None, None, ), # 1
12715
  )
12716
 
12717
  def __init__(self, itemId=None,):
12718
    self.itemId = itemId
12719
 
12720
  def read(self, iprot):
12721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12723
      return
12724
    iprot.readStructBegin()
12725
    while True:
12726
      (fname, ftype, fid) = iprot.readFieldBegin()
12727
      if ftype == TType.STOP:
12728
        break
12729
      if fid == 1:
12730
        if ftype == TType.I64:
12731
          self.itemId = 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('getAllSourcePricing_args')
12744
    if self.itemId is not None:
12745
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12746
      oprot.writeI64(self.itemId)
12747
      oprot.writeFieldEnd()
12748
    oprot.writeFieldStop()
12749
    oprot.writeStructEnd()
12750
 
12751
  def validate(self):
12752
    return
12753
 
12754
 
12755
  def __repr__(self):
12756
    L = ['%s=%r' % (key, value)
12757
      for key, value in self.__dict__.iteritems()]
12758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12759
 
12760
  def __eq__(self, other):
12761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12762
 
12763
  def __ne__(self, other):
12764
    return not (self == other)
12765
 
12766
class getAllSourcePricing_result:
12767
  """
12768
  Attributes:
12769
   - success
12770
   - cex
12771
  """
12772
 
12773
  thrift_spec = (
12774
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12775
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12776
  )
12777
 
12778
  def __init__(self, success=None, cex=None,):
12779
    self.success = success
12780
    self.cex = cex
12781
 
12782
  def read(self, iprot):
12783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12785
      return
12786
    iprot.readStructBegin()
12787
    while True:
12788
      (fname, ftype, fid) = iprot.readFieldBegin()
12789
      if ftype == TType.STOP:
12790
        break
12791
      if fid == 0:
12792
        if ftype == TType.LIST:
12793
          self.success = []
6850 kshitij.so 12794
          (_etype231, _size228) = iprot.readListBegin()
12795
          for _i232 in xrange(_size228):
12796
            _elem233 = SourceItemPricing()
12797
            _elem233.read(iprot)
12798
            self.success.append(_elem233)
5944 mandeep.dh 12799
          iprot.readListEnd()
12800
        else:
12801
          iprot.skip(ftype)
12802
      elif fid == 1:
12803
        if ftype == TType.STRUCT:
12804
          self.cex = CatalogServiceException()
12805
          self.cex.read(iprot)
12806
        else:
12807
          iprot.skip(ftype)
12808
      else:
12809
        iprot.skip(ftype)
12810
      iprot.readFieldEnd()
12811
    iprot.readStructEnd()
12812
 
12813
  def write(self, oprot):
12814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12816
      return
12817
    oprot.writeStructBegin('getAllSourcePricing_result')
12818
    if self.success is not None:
12819
      oprot.writeFieldBegin('success', TType.LIST, 0)
12820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12821
      for iter234 in self.success:
12822
        iter234.write(oprot)
5944 mandeep.dh 12823
      oprot.writeListEnd()
12824
      oprot.writeFieldEnd()
12825
    if self.cex is not None:
12826
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12827
      self.cex.write(oprot)
12828
      oprot.writeFieldEnd()
12829
    oprot.writeFieldStop()
12830
    oprot.writeStructEnd()
12831
 
12832
  def validate(self):
12833
    return
12834
 
12835
 
12836
  def __repr__(self):
12837
    L = ['%s=%r' % (key, value)
12838
      for key, value in self.__dict__.iteritems()]
12839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12840
 
12841
  def __eq__(self, other):
12842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12843
 
12844
  def __ne__(self, other):
12845
    return not (self == other)
12846
 
12847
class getItemForSource_args:
12848
  """
12849
  Attributes:
12850
   - item_id
12851
   - sourceId
12852
  """
12853
 
12854
  thrift_spec = (
12855
    None, # 0
12856
    (1, TType.I64, 'item_id', None, None, ), # 1
12857
    (2, TType.I64, 'sourceId', None, None, ), # 2
12858
  )
12859
 
12860
  def __init__(self, item_id=None, sourceId=None,):
12861
    self.item_id = item_id
12862
    self.sourceId = sourceId
12863
 
12864
  def read(self, iprot):
12865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12867
      return
12868
    iprot.readStructBegin()
12869
    while True:
12870
      (fname, ftype, fid) = iprot.readFieldBegin()
12871
      if ftype == TType.STOP:
12872
        break
12873
      if fid == 1:
12874
        if ftype == TType.I64:
12875
          self.item_id = iprot.readI64();
12876
        else:
12877
          iprot.skip(ftype)
12878
      elif fid == 2:
12879
        if ftype == TType.I64:
12880
          self.sourceId = iprot.readI64();
12881
        else:
12882
          iprot.skip(ftype)
12883
      else:
12884
        iprot.skip(ftype)
12885
      iprot.readFieldEnd()
12886
    iprot.readStructEnd()
12887
 
12888
  def write(self, oprot):
12889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12891
      return
12892
    oprot.writeStructBegin('getItemForSource_args')
12893
    if self.item_id is not None:
12894
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12895
      oprot.writeI64(self.item_id)
12896
      oprot.writeFieldEnd()
12897
    if self.sourceId is not None:
12898
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12899
      oprot.writeI64(self.sourceId)
12900
      oprot.writeFieldEnd()
12901
    oprot.writeFieldStop()
12902
    oprot.writeStructEnd()
12903
 
12904
  def validate(self):
12905
    return
12906
 
12907
 
12908
  def __repr__(self):
12909
    L = ['%s=%r' % (key, value)
12910
      for key, value in self.__dict__.iteritems()]
12911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12912
 
12913
  def __eq__(self, other):
12914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12915
 
12916
  def __ne__(self, other):
12917
    return not (self == other)
12918
 
12919
class getItemForSource_result:
12920
  """
12921
  Attributes:
12922
   - success
12923
   - cex
12924
  """
12925
 
12926
  thrift_spec = (
12927
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12928
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12929
  )
12930
 
12931
  def __init__(self, success=None, cex=None,):
12932
    self.success = success
12933
    self.cex = cex
12934
 
12935
  def read(self, iprot):
12936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12938
      return
12939
    iprot.readStructBegin()
12940
    while True:
12941
      (fname, ftype, fid) = iprot.readFieldBegin()
12942
      if ftype == TType.STOP:
12943
        break
12944
      if fid == 0:
12945
        if ftype == TType.STRUCT:
12946
          self.success = Item()
12947
          self.success.read(iprot)
12948
        else:
12949
          iprot.skip(ftype)
12950
      elif fid == 1:
12951
        if ftype == TType.STRUCT:
12952
          self.cex = CatalogServiceException()
12953
          self.cex.read(iprot)
12954
        else:
12955
          iprot.skip(ftype)
12956
      else:
12957
        iprot.skip(ftype)
12958
      iprot.readFieldEnd()
12959
    iprot.readStructEnd()
12960
 
12961
  def write(self, oprot):
12962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12964
      return
12965
    oprot.writeStructBegin('getItemForSource_result')
12966
    if self.success is not None:
12967
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12968
      self.success.write(oprot)
12969
      oprot.writeFieldEnd()
12970
    if self.cex is not None:
12971
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12972
      self.cex.write(oprot)
12973
      oprot.writeFieldEnd()
12974
    oprot.writeFieldStop()
12975
    oprot.writeStructEnd()
12976
 
12977
  def validate(self):
12978
    return
12979
 
12980
 
12981
  def __repr__(self):
12982
    L = ['%s=%r' % (key, value)
12983
      for key, value in self.__dict__.iteritems()]
12984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12985
 
12986
  def __eq__(self, other):
12987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12988
 
12989
  def __ne__(self, other):
12990
    return not (self == other)
12991
 
12992
class searchItemsInRange_args:
12993
  """
12994
  Attributes:
12995
   - searchTerms
12996
   - offset
12997
   - limit
12998
  """
12999
 
13000
  thrift_spec = (
13001
    None, # 0
13002
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13003
    (2, TType.I64, 'offset', None, None, ), # 2
13004
    (3, TType.I64, 'limit', None, None, ), # 3
13005
  )
13006
 
13007
  def __init__(self, searchTerms=None, offset=None, limit=None,):
13008
    self.searchTerms = searchTerms
13009
    self.offset = offset
13010
    self.limit = limit
13011
 
13012
  def read(self, iprot):
13013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13015
      return
13016
    iprot.readStructBegin()
13017
    while True:
13018
      (fname, ftype, fid) = iprot.readFieldBegin()
13019
      if ftype == TType.STOP:
13020
        break
13021
      if fid == 1:
13022
        if ftype == TType.LIST:
13023
          self.searchTerms = []
6850 kshitij.so 13024
          (_etype238, _size235) = iprot.readListBegin()
13025
          for _i239 in xrange(_size235):
13026
            _elem240 = iprot.readString();
13027
            self.searchTerms.append(_elem240)
5944 mandeep.dh 13028
          iprot.readListEnd()
13029
        else:
13030
          iprot.skip(ftype)
13031
      elif fid == 2:
13032
        if ftype == TType.I64:
13033
          self.offset = iprot.readI64();
13034
        else:
13035
          iprot.skip(ftype)
13036
      elif fid == 3:
13037
        if ftype == TType.I64:
13038
          self.limit = iprot.readI64();
13039
        else:
13040
          iprot.skip(ftype)
13041
      else:
13042
        iprot.skip(ftype)
13043
      iprot.readFieldEnd()
13044
    iprot.readStructEnd()
13045
 
13046
  def write(self, oprot):
13047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13049
      return
13050
    oprot.writeStructBegin('searchItemsInRange_args')
13051
    if self.searchTerms is not None:
13052
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13053
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13054
      for iter241 in self.searchTerms:
13055
        oprot.writeString(iter241)
5944 mandeep.dh 13056
      oprot.writeListEnd()
13057
      oprot.writeFieldEnd()
13058
    if self.offset is not None:
13059
      oprot.writeFieldBegin('offset', TType.I64, 2)
13060
      oprot.writeI64(self.offset)
13061
      oprot.writeFieldEnd()
13062
    if self.limit is not None:
13063
      oprot.writeFieldBegin('limit', TType.I64, 3)
13064
      oprot.writeI64(self.limit)
13065
      oprot.writeFieldEnd()
13066
    oprot.writeFieldStop()
13067
    oprot.writeStructEnd()
13068
 
13069
  def validate(self):
13070
    return
13071
 
13072
 
13073
  def __repr__(self):
13074
    L = ['%s=%r' % (key, value)
13075
      for key, value in self.__dict__.iteritems()]
13076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13077
 
13078
  def __eq__(self, other):
13079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13080
 
13081
  def __ne__(self, other):
13082
    return not (self == other)
13083
 
13084
class searchItemsInRange_result:
13085
  """
13086
  Attributes:
13087
   - success
13088
  """
13089
 
13090
  thrift_spec = (
13091
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13092
  )
13093
 
13094
  def __init__(self, success=None,):
13095
    self.success = success
13096
 
13097
  def read(self, iprot):
13098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13100
      return
13101
    iprot.readStructBegin()
13102
    while True:
13103
      (fname, ftype, fid) = iprot.readFieldBegin()
13104
      if ftype == TType.STOP:
13105
        break
13106
      if fid == 0:
13107
        if ftype == TType.LIST:
13108
          self.success = []
6850 kshitij.so 13109
          (_etype245, _size242) = iprot.readListBegin()
13110
          for _i246 in xrange(_size242):
13111
            _elem247 = Item()
13112
            _elem247.read(iprot)
13113
            self.success.append(_elem247)
5944 mandeep.dh 13114
          iprot.readListEnd()
13115
        else:
13116
          iprot.skip(ftype)
13117
      else:
13118
        iprot.skip(ftype)
13119
      iprot.readFieldEnd()
13120
    iprot.readStructEnd()
13121
 
13122
  def write(self, oprot):
13123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13125
      return
13126
    oprot.writeStructBegin('searchItemsInRange_result')
13127
    if self.success is not None:
13128
      oprot.writeFieldBegin('success', TType.LIST, 0)
13129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13130
      for iter248 in self.success:
13131
        iter248.write(oprot)
5944 mandeep.dh 13132
      oprot.writeListEnd()
13133
      oprot.writeFieldEnd()
13134
    oprot.writeFieldStop()
13135
    oprot.writeStructEnd()
13136
 
13137
  def validate(self):
13138
    return
13139
 
13140
 
13141
  def __repr__(self):
13142
    L = ['%s=%r' % (key, value)
13143
      for key, value in self.__dict__.iteritems()]
13144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13145
 
13146
  def __eq__(self, other):
13147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13148
 
13149
  def __ne__(self, other):
13150
    return not (self == other)
13151
 
13152
class getSearchResultCount_args:
13153
  """
13154
  Attributes:
13155
   - searchTerms
13156
  """
13157
 
13158
  thrift_spec = (
13159
    None, # 0
13160
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13161
  )
13162
 
13163
  def __init__(self, searchTerms=None,):
13164
    self.searchTerms = searchTerms
13165
 
13166
  def read(self, iprot):
13167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13169
      return
13170
    iprot.readStructBegin()
13171
    while True:
13172
      (fname, ftype, fid) = iprot.readFieldBegin()
13173
      if ftype == TType.STOP:
13174
        break
13175
      if fid == 1:
13176
        if ftype == TType.LIST:
13177
          self.searchTerms = []
6850 kshitij.so 13178
          (_etype252, _size249) = iprot.readListBegin()
13179
          for _i253 in xrange(_size249):
13180
            _elem254 = iprot.readString();
13181
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13182
          iprot.readListEnd()
13183
        else:
13184
          iprot.skip(ftype)
13185
      else:
13186
        iprot.skip(ftype)
13187
      iprot.readFieldEnd()
13188
    iprot.readStructEnd()
13189
 
13190
  def write(self, oprot):
13191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13193
      return
13194
    oprot.writeStructBegin('getSearchResultCount_args')
13195
    if self.searchTerms is not None:
13196
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13197
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13198
      for iter255 in self.searchTerms:
13199
        oprot.writeString(iter255)
5944 mandeep.dh 13200
      oprot.writeListEnd()
13201
      oprot.writeFieldEnd()
13202
    oprot.writeFieldStop()
13203
    oprot.writeStructEnd()
13204
 
13205
  def validate(self):
13206
    return
13207
 
13208
 
13209
  def __repr__(self):
13210
    L = ['%s=%r' % (key, value)
13211
      for key, value in self.__dict__.iteritems()]
13212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13213
 
13214
  def __eq__(self, other):
13215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13216
 
13217
  def __ne__(self, other):
13218
    return not (self == other)
13219
 
13220
class getSearchResultCount_result:
13221
  """
13222
  Attributes:
13223
   - success
13224
  """
13225
 
13226
  thrift_spec = (
13227
    (0, TType.I32, 'success', None, None, ), # 0
13228
  )
13229
 
13230
  def __init__(self, success=None,):
13231
    self.success = success
13232
 
13233
  def read(self, iprot):
13234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13236
      return
13237
    iprot.readStructBegin()
13238
    while True:
13239
      (fname, ftype, fid) = iprot.readFieldBegin()
13240
      if ftype == TType.STOP:
13241
        break
13242
      if fid == 0:
13243
        if ftype == TType.I32:
13244
          self.success = iprot.readI32();
13245
        else:
13246
          iprot.skip(ftype)
13247
      else:
13248
        iprot.skip(ftype)
13249
      iprot.readFieldEnd()
13250
    iprot.readStructEnd()
13251
 
13252
  def write(self, oprot):
13253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13255
      return
13256
    oprot.writeStructBegin('getSearchResultCount_result')
13257
    if self.success is not None:
13258
      oprot.writeFieldBegin('success', TType.I32, 0)
13259
      oprot.writeI32(self.success)
13260
      oprot.writeFieldEnd()
13261
    oprot.writeFieldStop()
13262
    oprot.writeStructEnd()
13263
 
13264
  def validate(self):
13265
    return
13266
 
13267
 
13268
  def __repr__(self):
13269
    L = ['%s=%r' % (key, value)
13270
      for key, value in self.__dict__.iteritems()]
13271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13272
 
13273
  def __eq__(self, other):
13274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13275
 
13276
  def __ne__(self, other):
13277
    return not (self == other)
13278
 
13279
class getProductNotifications_args:
13280
  """
13281
  Attributes:
13282
   - startDateTime
13283
  """
13284
 
13285
  thrift_spec = (
13286
    None, # 0
13287
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13288
  )
13289
 
13290
  def __init__(self, startDateTime=None,):
13291
    self.startDateTime = startDateTime
13292
 
13293
  def read(self, iprot):
13294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13296
      return
13297
    iprot.readStructBegin()
13298
    while True:
13299
      (fname, ftype, fid) = iprot.readFieldBegin()
13300
      if ftype == TType.STOP:
13301
        break
13302
      if fid == 1:
13303
        if ftype == TType.I64:
13304
          self.startDateTime = iprot.readI64();
13305
        else:
13306
          iprot.skip(ftype)
13307
      else:
13308
        iprot.skip(ftype)
13309
      iprot.readFieldEnd()
13310
    iprot.readStructEnd()
13311
 
13312
  def write(self, oprot):
13313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13315
      return
13316
    oprot.writeStructBegin('getProductNotifications_args')
13317
    if self.startDateTime is not None:
13318
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13319
      oprot.writeI64(self.startDateTime)
13320
      oprot.writeFieldEnd()
13321
    oprot.writeFieldStop()
13322
    oprot.writeStructEnd()
13323
 
13324
  def validate(self):
13325
    return
13326
 
13327
 
13328
  def __repr__(self):
13329
    L = ['%s=%r' % (key, value)
13330
      for key, value in self.__dict__.iteritems()]
13331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13332
 
13333
  def __eq__(self, other):
13334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13335
 
13336
  def __ne__(self, other):
13337
    return not (self == other)
13338
 
13339
class getProductNotifications_result:
13340
  """
13341
  Attributes:
13342
   - success
13343
  """
13344
 
13345
  thrift_spec = (
13346
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13347
  )
13348
 
13349
  def __init__(self, success=None,):
13350
    self.success = success
13351
 
13352
  def read(self, iprot):
13353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13355
      return
13356
    iprot.readStructBegin()
13357
    while True:
13358
      (fname, ftype, fid) = iprot.readFieldBegin()
13359
      if ftype == TType.STOP:
13360
        break
13361
      if fid == 0:
13362
        if ftype == TType.LIST:
13363
          self.success = []
6850 kshitij.so 13364
          (_etype259, _size256) = iprot.readListBegin()
13365
          for _i260 in xrange(_size256):
13366
            _elem261 = ProductNotificationRequest()
13367
            _elem261.read(iprot)
13368
            self.success.append(_elem261)
5944 mandeep.dh 13369
          iprot.readListEnd()
13370
        else:
13371
          iprot.skip(ftype)
13372
      else:
13373
        iprot.skip(ftype)
13374
      iprot.readFieldEnd()
13375
    iprot.readStructEnd()
13376
 
13377
  def write(self, oprot):
13378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13380
      return
13381
    oprot.writeStructBegin('getProductNotifications_result')
13382
    if self.success is not None:
13383
      oprot.writeFieldBegin('success', TType.LIST, 0)
13384
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13385
      for iter262 in self.success:
13386
        iter262.write(oprot)
5944 mandeep.dh 13387
      oprot.writeListEnd()
13388
      oprot.writeFieldEnd()
13389
    oprot.writeFieldStop()
13390
    oprot.writeStructEnd()
13391
 
13392
  def validate(self):
13393
    return
13394
 
13395
 
13396
  def __repr__(self):
13397
    L = ['%s=%r' % (key, value)
13398
      for key, value in self.__dict__.iteritems()]
13399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13400
 
13401
  def __eq__(self, other):
13402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13403
 
13404
  def __ne__(self, other):
13405
    return not (self == other)
13406
 
13407
class getProductNotificationRequestCount_args:
13408
  """
13409
  Attributes:
13410
   - startDateTime
13411
  """
13412
 
13413
  thrift_spec = (
13414
    None, # 0
13415
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13416
  )
13417
 
13418
  def __init__(self, startDateTime=None,):
13419
    self.startDateTime = startDateTime
13420
 
13421
  def read(self, iprot):
13422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13424
      return
13425
    iprot.readStructBegin()
13426
    while True:
13427
      (fname, ftype, fid) = iprot.readFieldBegin()
13428
      if ftype == TType.STOP:
13429
        break
13430
      if fid == 1:
13431
        if ftype == TType.I64:
13432
          self.startDateTime = iprot.readI64();
13433
        else:
13434
          iprot.skip(ftype)
13435
      else:
13436
        iprot.skip(ftype)
13437
      iprot.readFieldEnd()
13438
    iprot.readStructEnd()
13439
 
13440
  def write(self, oprot):
13441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13443
      return
13444
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13445
    if self.startDateTime is not None:
13446
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13447
      oprot.writeI64(self.startDateTime)
13448
      oprot.writeFieldEnd()
13449
    oprot.writeFieldStop()
13450
    oprot.writeStructEnd()
13451
 
13452
  def validate(self):
13453
    return
13454
 
13455
 
13456
  def __repr__(self):
13457
    L = ['%s=%r' % (key, value)
13458
      for key, value in self.__dict__.iteritems()]
13459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13460
 
13461
  def __eq__(self, other):
13462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13463
 
13464
  def __ne__(self, other):
13465
    return not (self == other)
13466
 
13467
class getProductNotificationRequestCount_result:
13468
  """
13469
  Attributes:
13470
   - success
13471
  """
13472
 
13473
  thrift_spec = (
13474
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13475
  )
13476
 
13477
  def __init__(self, success=None,):
13478
    self.success = success
13479
 
13480
  def read(self, iprot):
13481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13483
      return
13484
    iprot.readStructBegin()
13485
    while True:
13486
      (fname, ftype, fid) = iprot.readFieldBegin()
13487
      if ftype == TType.STOP:
13488
        break
13489
      if fid == 0:
13490
        if ftype == TType.LIST:
13491
          self.success = []
6850 kshitij.so 13492
          (_etype266, _size263) = iprot.readListBegin()
13493
          for _i267 in xrange(_size263):
13494
            _elem268 = ProductNotificationRequestCount()
13495
            _elem268.read(iprot)
13496
            self.success.append(_elem268)
5944 mandeep.dh 13497
          iprot.readListEnd()
13498
        else:
13499
          iprot.skip(ftype)
13500
      else:
13501
        iprot.skip(ftype)
13502
      iprot.readFieldEnd()
13503
    iprot.readStructEnd()
13504
 
13505
  def write(self, oprot):
13506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13508
      return
13509
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13510
    if self.success is not None:
13511
      oprot.writeFieldBegin('success', TType.LIST, 0)
13512
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13513
      for iter269 in self.success:
13514
        iter269.write(oprot)
5944 mandeep.dh 13515
      oprot.writeListEnd()
13516
      oprot.writeFieldEnd()
13517
    oprot.writeFieldStop()
13518
    oprot.writeStructEnd()
13519
 
13520
  def validate(self):
13521
    return
13522
 
13523
 
13524
  def __repr__(self):
13525
    L = ['%s=%r' % (key, value)
13526
      for key, value in self.__dict__.iteritems()]
13527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13528
 
13529
  def __eq__(self, other):
13530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13531
 
13532
  def __ne__(self, other):
13533
    return not (self == other)
13534
 
13535
class addAuthorizationLog_args:
13536
  """
13537
  Attributes:
13538
   - itemId
13539
   - username
13540
   - reason
13541
  """
13542
 
13543
  thrift_spec = (
13544
    None, # 0
13545
    (1, TType.I64, 'itemId', None, None, ), # 1
13546
    (2, TType.STRING, 'username', None, None, ), # 2
13547
    (3, TType.STRING, 'reason', None, None, ), # 3
13548
  )
13549
 
13550
  def __init__(self, itemId=None, username=None, reason=None,):
13551
    self.itemId = itemId
13552
    self.username = username
13553
    self.reason = reason
13554
 
13555
  def read(self, iprot):
13556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13558
      return
13559
    iprot.readStructBegin()
13560
    while True:
13561
      (fname, ftype, fid) = iprot.readFieldBegin()
13562
      if ftype == TType.STOP:
13563
        break
13564
      if fid == 1:
13565
        if ftype == TType.I64:
13566
          self.itemId = iprot.readI64();
13567
        else:
13568
          iprot.skip(ftype)
13569
      elif fid == 2:
13570
        if ftype == TType.STRING:
13571
          self.username = iprot.readString();
13572
        else:
13573
          iprot.skip(ftype)
13574
      elif fid == 3:
13575
        if ftype == TType.STRING:
13576
          self.reason = iprot.readString();
13577
        else:
13578
          iprot.skip(ftype)
13579
      else:
13580
        iprot.skip(ftype)
13581
      iprot.readFieldEnd()
13582
    iprot.readStructEnd()
13583
 
13584
  def write(self, oprot):
13585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13587
      return
13588
    oprot.writeStructBegin('addAuthorizationLog_args')
13589
    if self.itemId is not None:
13590
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13591
      oprot.writeI64(self.itemId)
13592
      oprot.writeFieldEnd()
13593
    if self.username is not None:
13594
      oprot.writeFieldBegin('username', TType.STRING, 2)
13595
      oprot.writeString(self.username)
13596
      oprot.writeFieldEnd()
13597
    if self.reason is not None:
13598
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13599
      oprot.writeString(self.reason)
13600
      oprot.writeFieldEnd()
13601
    oprot.writeFieldStop()
13602
    oprot.writeStructEnd()
13603
 
13604
  def validate(self):
13605
    return
13606
 
13607
 
13608
  def __repr__(self):
13609
    L = ['%s=%r' % (key, value)
13610
      for key, value in self.__dict__.iteritems()]
13611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13612
 
13613
  def __eq__(self, other):
13614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13615
 
13616
  def __ne__(self, other):
13617
    return not (self == other)
13618
 
13619
class addAuthorizationLog_result:
13620
  """
13621
  Attributes:
13622
   - success
13623
   - cex
13624
  """
13625
 
13626
  thrift_spec = (
13627
    (0, TType.BOOL, 'success', None, None, ), # 0
13628
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13629
  )
13630
 
13631
  def __init__(self, success=None, cex=None,):
13632
    self.success = success
13633
    self.cex = cex
13634
 
13635
  def read(self, iprot):
13636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13638
      return
13639
    iprot.readStructBegin()
13640
    while True:
13641
      (fname, ftype, fid) = iprot.readFieldBegin()
13642
      if ftype == TType.STOP:
13643
        break
13644
      if fid == 0:
13645
        if ftype == TType.BOOL:
13646
          self.success = iprot.readBool();
13647
        else:
13648
          iprot.skip(ftype)
13649
      elif fid == 1:
13650
        if ftype == TType.STRUCT:
13651
          self.cex = CatalogServiceException()
13652
          self.cex.read(iprot)
13653
        else:
13654
          iprot.skip(ftype)
13655
      else:
13656
        iprot.skip(ftype)
13657
      iprot.readFieldEnd()
13658
    iprot.readStructEnd()
13659
 
13660
  def write(self, oprot):
13661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13663
      return
13664
    oprot.writeStructBegin('addAuthorizationLog_result')
13665
    if self.success is not None:
13666
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13667
      oprot.writeBool(self.success)
13668
      oprot.writeFieldEnd()
13669
    if self.cex is not None:
13670
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13671
      self.cex.write(oprot)
13672
      oprot.writeFieldEnd()
13673
    oprot.writeFieldStop()
13674
    oprot.writeStructEnd()
13675
 
13676
  def validate(self):
13677
    return
13678
 
13679
 
13680
  def __repr__(self):
13681
    L = ['%s=%r' % (key, value)
13682
      for key, value in self.__dict__.iteritems()]
13683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13684
 
13685
  def __eq__(self, other):
13686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13687
 
13688
  def __ne__(self, other):
13689
    return not (self == other)
13690
 
13691
class getClearanceSaleCatalogIds_args:
13692
 
13693
  thrift_spec = (
13694
  )
13695
 
13696
  def read(self, iprot):
13697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13699
      return
13700
    iprot.readStructBegin()
13701
    while True:
13702
      (fname, ftype, fid) = iprot.readFieldBegin()
13703
      if ftype == TType.STOP:
13704
        break
13705
      else:
13706
        iprot.skip(ftype)
13707
      iprot.readFieldEnd()
13708
    iprot.readStructEnd()
13709
 
13710
  def write(self, oprot):
13711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13713
      return
13714
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
13715
    oprot.writeFieldStop()
13716
    oprot.writeStructEnd()
13717
 
13718
  def validate(self):
13719
    return
13720
 
13721
 
13722
  def __repr__(self):
13723
    L = ['%s=%r' % (key, value)
13724
      for key, value in self.__dict__.iteritems()]
13725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13726
 
13727
  def __eq__(self, other):
13728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13729
 
13730
  def __ne__(self, other):
13731
    return not (self == other)
13732
 
13733
class getClearanceSaleCatalogIds_result:
13734
  """
13735
  Attributes:
13736
   - success
13737
   - cex
13738
  """
13739
 
13740
  thrift_spec = (
13741
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13742
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13743
  )
13744
 
13745
  def __init__(self, success=None, cex=None,):
13746
    self.success = success
13747
    self.cex = cex
13748
 
13749
  def read(self, iprot):
13750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13752
      return
13753
    iprot.readStructBegin()
13754
    while True:
13755
      (fname, ftype, fid) = iprot.readFieldBegin()
13756
      if ftype == TType.STOP:
13757
        break
13758
      if fid == 0:
13759
        if ftype == TType.LIST:
13760
          self.success = []
6850 kshitij.so 13761
          (_etype273, _size270) = iprot.readListBegin()
13762
          for _i274 in xrange(_size270):
13763
            _elem275 = iprot.readI64();
13764
            self.success.append(_elem275)
5944 mandeep.dh 13765
          iprot.readListEnd()
13766
        else:
13767
          iprot.skip(ftype)
13768
      elif fid == 1:
13769
        if ftype == TType.STRUCT:
13770
          self.cex = CatalogServiceException()
13771
          self.cex.read(iprot)
13772
        else:
13773
          iprot.skip(ftype)
13774
      else:
13775
        iprot.skip(ftype)
13776
      iprot.readFieldEnd()
13777
    iprot.readStructEnd()
13778
 
13779
  def write(self, oprot):
13780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13782
      return
13783
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
13784
    if self.success is not None:
13785
      oprot.writeFieldBegin('success', TType.LIST, 0)
13786
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 13787
      for iter276 in self.success:
13788
        oprot.writeI64(iter276)
5944 mandeep.dh 13789
      oprot.writeListEnd()
13790
      oprot.writeFieldEnd()
13791
    if self.cex is not None:
13792
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13793
      self.cex.write(oprot)
13794
      oprot.writeFieldEnd()
13795
    oprot.writeFieldStop()
13796
    oprot.writeStructEnd()
13797
 
13798
  def validate(self):
13799
    return
13800
 
13801
 
13802
  def __repr__(self):
13803
    L = ['%s=%r' % (key, value)
13804
      for key, value in self.__dict__.iteritems()]
13805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13806
 
13807
  def __eq__(self, other):
13808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13809
 
13810
  def __ne__(self, other):
13811
    return not (self == other)
13812
 
13813
class addupdateVoucherForItem_args:
13814
  """
13815
  Attributes:
13816
   - catalog_item_id
13817
   - voucherType
13818
   - voucherAmount
13819
  """
13820
 
13821
  thrift_spec = (
13822
    None, # 0
13823
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13824
    (2, TType.I64, 'voucherType', None, None, ), # 2
13825
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13826
  )
13827
 
13828
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13829
    self.catalog_item_id = catalog_item_id
13830
    self.voucherType = voucherType
13831
    self.voucherAmount = voucherAmount
13832
 
13833
  def read(self, iprot):
13834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13836
      return
13837
    iprot.readStructBegin()
13838
    while True:
13839
      (fname, ftype, fid) = iprot.readFieldBegin()
13840
      if ftype == TType.STOP:
13841
        break
13842
      if fid == 1:
13843
        if ftype == TType.I64:
13844
          self.catalog_item_id = iprot.readI64();
13845
        else:
13846
          iprot.skip(ftype)
13847
      elif fid == 2:
13848
        if ftype == TType.I64:
13849
          self.voucherType = iprot.readI64();
13850
        else:
13851
          iprot.skip(ftype)
13852
      elif fid == 3:
13853
        if ftype == TType.I64:
13854
          self.voucherAmount = iprot.readI64();
13855
        else:
13856
          iprot.skip(ftype)
13857
      else:
13858
        iprot.skip(ftype)
13859
      iprot.readFieldEnd()
13860
    iprot.readStructEnd()
13861
 
13862
  def write(self, oprot):
13863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13865
      return
13866
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13867
    if self.catalog_item_id is not None:
13868
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13869
      oprot.writeI64(self.catalog_item_id)
13870
      oprot.writeFieldEnd()
13871
    if self.voucherType is not None:
13872
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13873
      oprot.writeI64(self.voucherType)
13874
      oprot.writeFieldEnd()
13875
    if self.voucherAmount is not None:
13876
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13877
      oprot.writeI64(self.voucherAmount)
13878
      oprot.writeFieldEnd()
13879
    oprot.writeFieldStop()
13880
    oprot.writeStructEnd()
13881
 
13882
  def validate(self):
13883
    return
13884
 
13885
 
13886
  def __repr__(self):
13887
    L = ['%s=%r' % (key, value)
13888
      for key, value in self.__dict__.iteritems()]
13889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13890
 
13891
  def __eq__(self, other):
13892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13893
 
13894
  def __ne__(self, other):
13895
    return not (self == other)
13896
 
13897
class addupdateVoucherForItem_result:
13898
  """
13899
  Attributes:
13900
   - success
13901
   - cex
13902
  """
13903
 
13904
  thrift_spec = (
13905
    (0, TType.BOOL, 'success', None, None, ), # 0
13906
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13907
  )
13908
 
13909
  def __init__(self, success=None, cex=None,):
13910
    self.success = success
13911
    self.cex = cex
13912
 
13913
  def read(self, iprot):
13914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13916
      return
13917
    iprot.readStructBegin()
13918
    while True:
13919
      (fname, ftype, fid) = iprot.readFieldBegin()
13920
      if ftype == TType.STOP:
13921
        break
13922
      if fid == 0:
13923
        if ftype == TType.BOOL:
13924
          self.success = iprot.readBool();
13925
        else:
13926
          iprot.skip(ftype)
13927
      elif fid == 1:
13928
        if ftype == TType.STRUCT:
13929
          self.cex = CatalogServiceException()
13930
          self.cex.read(iprot)
13931
        else:
13932
          iprot.skip(ftype)
13933
      else:
13934
        iprot.skip(ftype)
13935
      iprot.readFieldEnd()
13936
    iprot.readStructEnd()
13937
 
13938
  def write(self, oprot):
13939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13941
      return
13942
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13943
    if self.success is not None:
13944
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13945
      oprot.writeBool(self.success)
13946
      oprot.writeFieldEnd()
13947
    if self.cex is not None:
13948
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13949
      self.cex.write(oprot)
13950
      oprot.writeFieldEnd()
13951
    oprot.writeFieldStop()
13952
    oprot.writeStructEnd()
13953
 
13954
  def validate(self):
13955
    return
13956
 
13957
 
13958
  def __repr__(self):
13959
    L = ['%s=%r' % (key, value)
13960
      for key, value in self.__dict__.iteritems()]
13961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13962
 
13963
  def __eq__(self, other):
13964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13965
 
13966
  def __ne__(self, other):
13967
    return not (self == other)
13968
 
13969
class deleteVoucherForItem_args:
13970
  """
13971
  Attributes:
13972
   - catalog_item_id
13973
   - voucherType
13974
  """
13975
 
13976
  thrift_spec = (
13977
    None, # 0
13978
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13979
    (2, TType.I64, 'voucherType', None, None, ), # 2
13980
  )
13981
 
13982
  def __init__(self, catalog_item_id=None, voucherType=None,):
13983
    self.catalog_item_id = catalog_item_id
13984
    self.voucherType = voucherType
13985
 
13986
  def read(self, iprot):
13987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13989
      return
13990
    iprot.readStructBegin()
13991
    while True:
13992
      (fname, ftype, fid) = iprot.readFieldBegin()
13993
      if ftype == TType.STOP:
13994
        break
13995
      if fid == 1:
13996
        if ftype == TType.I64:
13997
          self.catalog_item_id = iprot.readI64();
13998
        else:
13999
          iprot.skip(ftype)
14000
      elif fid == 2:
14001
        if ftype == TType.I64:
14002
          self.voucherType = iprot.readI64();
14003
        else:
14004
          iprot.skip(ftype)
14005
      else:
14006
        iprot.skip(ftype)
14007
      iprot.readFieldEnd()
14008
    iprot.readStructEnd()
14009
 
14010
  def write(self, oprot):
14011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14013
      return
14014
    oprot.writeStructBegin('deleteVoucherForItem_args')
14015
    if self.catalog_item_id is not None:
14016
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14017
      oprot.writeI64(self.catalog_item_id)
14018
      oprot.writeFieldEnd()
14019
    if self.voucherType is not None:
14020
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14021
      oprot.writeI64(self.voucherType)
14022
      oprot.writeFieldEnd()
14023
    oprot.writeFieldStop()
14024
    oprot.writeStructEnd()
14025
 
14026
  def validate(self):
14027
    return
14028
 
14029
 
14030
  def __repr__(self):
14031
    L = ['%s=%r' % (key, value)
14032
      for key, value in self.__dict__.iteritems()]
14033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14034
 
14035
  def __eq__(self, other):
14036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14037
 
14038
  def __ne__(self, other):
14039
    return not (self == other)
14040
 
14041
class deleteVoucherForItem_result:
14042
  """
14043
  Attributes:
14044
   - success
14045
   - cex
14046
  """
14047
 
14048
  thrift_spec = (
14049
    (0, TType.BOOL, 'success', None, None, ), # 0
14050
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14051
  )
14052
 
14053
  def __init__(self, success=None, cex=None,):
14054
    self.success = success
14055
    self.cex = cex
14056
 
14057
  def read(self, iprot):
14058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14060
      return
14061
    iprot.readStructBegin()
14062
    while True:
14063
      (fname, ftype, fid) = iprot.readFieldBegin()
14064
      if ftype == TType.STOP:
14065
        break
14066
      if fid == 0:
14067
        if ftype == TType.BOOL:
14068
          self.success = iprot.readBool();
14069
        else:
14070
          iprot.skip(ftype)
14071
      elif fid == 1:
14072
        if ftype == TType.STRUCT:
14073
          self.cex = CatalogServiceException()
14074
          self.cex.read(iprot)
14075
        else:
14076
          iprot.skip(ftype)
14077
      else:
14078
        iprot.skip(ftype)
14079
      iprot.readFieldEnd()
14080
    iprot.readStructEnd()
14081
 
14082
  def write(self, oprot):
14083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14085
      return
14086
    oprot.writeStructBegin('deleteVoucherForItem_result')
14087
    if self.success is not None:
14088
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14089
      oprot.writeBool(self.success)
14090
      oprot.writeFieldEnd()
14091
    if self.cex is not None:
14092
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14093
      self.cex.write(oprot)
14094
      oprot.writeFieldEnd()
14095
    oprot.writeFieldStop()
14096
    oprot.writeStructEnd()
14097
 
14098
  def validate(self):
14099
    return
14100
 
14101
 
14102
  def __repr__(self):
14103
    L = ['%s=%r' % (key, value)
14104
      for key, value in self.__dict__.iteritems()]
14105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14106
 
14107
  def __eq__(self, other):
14108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14109
 
14110
  def __ne__(self, other):
14111
    return not (self == other)
14112
 
14113
class getVoucherAmount_args:
14114
  """
14115
  Attributes:
14116
   - itemId
14117
   - voucherType
14118
  """
14119
 
14120
  thrift_spec = (
14121
    None, # 0
14122
    (1, TType.I64, 'itemId', None, None, ), # 1
14123
    (2, TType.I64, 'voucherType', None, None, ), # 2
14124
  )
14125
 
14126
  def __init__(self, itemId=None, voucherType=None,):
14127
    self.itemId = itemId
14128
    self.voucherType = voucherType
14129
 
14130
  def read(self, iprot):
14131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14133
      return
14134
    iprot.readStructBegin()
14135
    while True:
14136
      (fname, ftype, fid) = iprot.readFieldBegin()
14137
      if ftype == TType.STOP:
14138
        break
14139
      if fid == 1:
14140
        if ftype == TType.I64:
14141
          self.itemId = iprot.readI64();
14142
        else:
14143
          iprot.skip(ftype)
14144
      elif fid == 2:
14145
        if ftype == TType.I64:
14146
          self.voucherType = iprot.readI64();
14147
        else:
14148
          iprot.skip(ftype)
14149
      else:
14150
        iprot.skip(ftype)
14151
      iprot.readFieldEnd()
14152
    iprot.readStructEnd()
14153
 
14154
  def write(self, oprot):
14155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14157
      return
14158
    oprot.writeStructBegin('getVoucherAmount_args')
14159
    if self.itemId is not None:
14160
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14161
      oprot.writeI64(self.itemId)
14162
      oprot.writeFieldEnd()
14163
    if self.voucherType is not None:
14164
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14165
      oprot.writeI64(self.voucherType)
14166
      oprot.writeFieldEnd()
14167
    oprot.writeFieldStop()
14168
    oprot.writeStructEnd()
14169
 
14170
  def validate(self):
14171
    return
14172
 
14173
 
14174
  def __repr__(self):
14175
    L = ['%s=%r' % (key, value)
14176
      for key, value in self.__dict__.iteritems()]
14177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14178
 
14179
  def __eq__(self, other):
14180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14181
 
14182
  def __ne__(self, other):
14183
    return not (self == other)
14184
 
14185
class getVoucherAmount_result:
14186
  """
14187
  Attributes:
14188
   - success
14189
  """
14190
 
14191
  thrift_spec = (
14192
    (0, TType.I64, 'success', None, None, ), # 0
14193
  )
14194
 
14195
  def __init__(self, success=None,):
14196
    self.success = success
14197
 
14198
  def read(self, iprot):
14199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14201
      return
14202
    iprot.readStructBegin()
14203
    while True:
14204
      (fname, ftype, fid) = iprot.readFieldBegin()
14205
      if ftype == TType.STOP:
14206
        break
14207
      if fid == 0:
14208
        if ftype == TType.I64:
14209
          self.success = iprot.readI64();
14210
        else:
14211
          iprot.skip(ftype)
14212
      else:
14213
        iprot.skip(ftype)
14214
      iprot.readFieldEnd()
14215
    iprot.readStructEnd()
14216
 
14217
  def write(self, oprot):
14218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14220
      return
14221
    oprot.writeStructBegin('getVoucherAmount_result')
14222
    if self.success is not None:
14223
      oprot.writeFieldBegin('success', TType.I64, 0)
14224
      oprot.writeI64(self.success)
14225
      oprot.writeFieldEnd()
14226
    oprot.writeFieldStop()
14227
    oprot.writeStructEnd()
14228
 
14229
  def validate(self):
14230
    return
14231
 
14232
 
14233
  def __repr__(self):
14234
    L = ['%s=%r' % (key, value)
14235
      for key, value in self.__dict__.iteritems()]
14236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14237
 
14238
  def __eq__(self, other):
14239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14240
 
14241
  def __ne__(self, other):
14242
    return not (self == other)
14243
 
14244
class getAllItemVouchers_args:
14245
  """
14246
  Attributes:
14247
   - itemId
14248
  """
14249
 
14250
  thrift_spec = (
14251
    None, # 0
14252
    (1, TType.I64, 'itemId', None, None, ), # 1
14253
  )
14254
 
14255
  def __init__(self, itemId=None,):
14256
    self.itemId = itemId
14257
 
14258
  def read(self, iprot):
14259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14261
      return
14262
    iprot.readStructBegin()
14263
    while True:
14264
      (fname, ftype, fid) = iprot.readFieldBegin()
14265
      if ftype == TType.STOP:
14266
        break
14267
      if fid == 1:
14268
        if ftype == TType.I64:
14269
          self.itemId = iprot.readI64();
14270
        else:
14271
          iprot.skip(ftype)
14272
      else:
14273
        iprot.skip(ftype)
14274
      iprot.readFieldEnd()
14275
    iprot.readStructEnd()
14276
 
14277
  def write(self, oprot):
14278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14280
      return
14281
    oprot.writeStructBegin('getAllItemVouchers_args')
14282
    if self.itemId is not None:
14283
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14284
      oprot.writeI64(self.itemId)
14285
      oprot.writeFieldEnd()
14286
    oprot.writeFieldStop()
14287
    oprot.writeStructEnd()
14288
 
14289
  def validate(self):
14290
    return
14291
 
14292
 
14293
  def __repr__(self):
14294
    L = ['%s=%r' % (key, value)
14295
      for key, value in self.__dict__.iteritems()]
14296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14297
 
14298
  def __eq__(self, other):
14299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14300
 
14301
  def __ne__(self, other):
14302
    return not (self == other)
14303
 
14304
class getAllItemVouchers_result:
14305
  """
14306
  Attributes:
14307
   - success
14308
  """
14309
 
14310
  thrift_spec = (
14311
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14312
  )
14313
 
14314
  def __init__(self, success=None,):
14315
    self.success = success
14316
 
14317
  def read(self, iprot):
14318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14320
      return
14321
    iprot.readStructBegin()
14322
    while True:
14323
      (fname, ftype, fid) = iprot.readFieldBegin()
14324
      if ftype == TType.STOP:
14325
        break
14326
      if fid == 0:
14327
        if ftype == TType.LIST:
14328
          self.success = []
6850 kshitij.so 14329
          (_etype280, _size277) = iprot.readListBegin()
14330
          for _i281 in xrange(_size277):
14331
            _elem282 = VoucherItemMapping()
14332
            _elem282.read(iprot)
14333
            self.success.append(_elem282)
5944 mandeep.dh 14334
          iprot.readListEnd()
14335
        else:
14336
          iprot.skip(ftype)
14337
      else:
14338
        iprot.skip(ftype)
14339
      iprot.readFieldEnd()
14340
    iprot.readStructEnd()
14341
 
14342
  def write(self, oprot):
14343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14345
      return
14346
    oprot.writeStructBegin('getAllItemVouchers_result')
14347
    if self.success is not None:
14348
      oprot.writeFieldBegin('success', TType.LIST, 0)
14349
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14350
      for iter283 in self.success:
14351
        iter283.write(oprot)
5944 mandeep.dh 14352
      oprot.writeListEnd()
14353
      oprot.writeFieldEnd()
14354
    oprot.writeFieldStop()
14355
    oprot.writeStructEnd()
14356
 
14357
  def validate(self):
14358
    return
14359
 
14360
 
14361
  def __repr__(self):
14362
    L = ['%s=%r' % (key, value)
14363
      for key, value in self.__dict__.iteritems()]
14364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14365
 
14366
  def __eq__(self, other):
14367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14368
 
14369
  def __ne__(self, other):
14370
    return not (self == other)
14371
 
14372
class isValidCatalogItemId_args:
14373
  """
14374
  Attributes:
14375
   - catalog_item_id
14376
  """
14377
 
14378
  thrift_spec = (
14379
    None, # 0
14380
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14381
  )
14382
 
14383
  def __init__(self, catalog_item_id=None,):
14384
    self.catalog_item_id = catalog_item_id
14385
 
14386
  def read(self, iprot):
14387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14389
      return
14390
    iprot.readStructBegin()
14391
    while True:
14392
      (fname, ftype, fid) = iprot.readFieldBegin()
14393
      if ftype == TType.STOP:
14394
        break
14395
      if fid == 1:
14396
        if ftype == TType.I64:
14397
          self.catalog_item_id = iprot.readI64();
14398
        else:
14399
          iprot.skip(ftype)
14400
      else:
14401
        iprot.skip(ftype)
14402
      iprot.readFieldEnd()
14403
    iprot.readStructEnd()
14404
 
14405
  def write(self, oprot):
14406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14408
      return
14409
    oprot.writeStructBegin('isValidCatalogItemId_args')
14410
    if self.catalog_item_id is not None:
14411
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14412
      oprot.writeI64(self.catalog_item_id)
14413
      oprot.writeFieldEnd()
14414
    oprot.writeFieldStop()
14415
    oprot.writeStructEnd()
14416
 
14417
  def validate(self):
14418
    return
14419
 
14420
 
14421
  def __repr__(self):
14422
    L = ['%s=%r' % (key, value)
14423
      for key, value in self.__dict__.iteritems()]
14424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14425
 
14426
  def __eq__(self, other):
14427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14428
 
14429
  def __ne__(self, other):
14430
    return not (self == other)
14431
 
14432
class isValidCatalogItemId_result:
14433
  """
14434
  Attributes:
14435
   - success
14436
  """
14437
 
14438
  thrift_spec = (
14439
    (0, TType.BOOL, 'success', None, None, ), # 0
14440
  )
14441
 
14442
  def __init__(self, success=None,):
14443
    self.success = success
14444
 
14445
  def read(self, iprot):
14446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14448
      return
14449
    iprot.readStructBegin()
14450
    while True:
14451
      (fname, ftype, fid) = iprot.readFieldBegin()
14452
      if ftype == TType.STOP:
14453
        break
14454
      if fid == 0:
14455
        if ftype == TType.BOOL:
14456
          self.success = iprot.readBool();
14457
        else:
14458
          iprot.skip(ftype)
14459
      else:
14460
        iprot.skip(ftype)
14461
      iprot.readFieldEnd()
14462
    iprot.readStructEnd()
14463
 
14464
  def write(self, oprot):
14465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14467
      return
14468
    oprot.writeStructBegin('isValidCatalogItemId_result')
14469
    if self.success is not None:
14470
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14471
      oprot.writeBool(self.success)
14472
      oprot.writeFieldEnd()
14473
    oprot.writeFieldStop()
14474
    oprot.writeStructEnd()
14475
 
14476
  def validate(self):
14477
    return
14478
 
14479
 
14480
  def __repr__(self):
14481
    L = ['%s=%r' % (key, value)
14482
      for key, value in self.__dict__.iteritems()]
14483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14484
 
14485
  def __eq__(self, other):
14486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14487
 
14488
  def __ne__(self, other):
14489
    return not (self == other)
6039 amit.gupta 14490
 
14491
class getVatPercentageForItem_args:
14492
  """
14493
  Attributes:
14494
   - itemId
14495
   - price
14496
  """
14497
 
14498
  thrift_spec = (
14499
    None, # 0
14500
    (1, TType.I64, 'itemId', None, None, ), # 1
14501
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14502
  )
14503
 
14504
  def __init__(self, itemId=None, price=None,):
14505
    self.itemId = itemId
14506
    self.price = price
14507
 
14508
  def read(self, iprot):
14509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14511
      return
14512
    iprot.readStructBegin()
14513
    while True:
14514
      (fname, ftype, fid) = iprot.readFieldBegin()
14515
      if ftype == TType.STOP:
14516
        break
14517
      if fid == 1:
14518
        if ftype == TType.I64:
14519
          self.itemId = iprot.readI64();
14520
        else:
14521
          iprot.skip(ftype)
14522
      elif fid == 2:
14523
        if ftype == TType.DOUBLE:
14524
          self.price = iprot.readDouble();
14525
        else:
14526
          iprot.skip(ftype)
14527
      else:
14528
        iprot.skip(ftype)
14529
      iprot.readFieldEnd()
14530
    iprot.readStructEnd()
14531
 
14532
  def write(self, oprot):
14533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14535
      return
14536
    oprot.writeStructBegin('getVatPercentageForItem_args')
14537
    if self.itemId is not None:
14538
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14539
      oprot.writeI64(self.itemId)
14540
      oprot.writeFieldEnd()
14541
    if self.price is not None:
14542
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14543
      oprot.writeDouble(self.price)
14544
      oprot.writeFieldEnd()
14545
    oprot.writeFieldStop()
14546
    oprot.writeStructEnd()
14547
 
14548
  def validate(self):
14549
    return
14550
 
14551
 
14552
  def __repr__(self):
14553
    L = ['%s=%r' % (key, value)
14554
      for key, value in self.__dict__.iteritems()]
14555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14556
 
14557
  def __eq__(self, other):
14558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14559
 
14560
  def __ne__(self, other):
14561
    return not (self == other)
14562
 
14563
class getVatPercentageForItem_result:
14564
  """
14565
  Attributes:
14566
   - success
14567
  """
14568
 
14569
  thrift_spec = (
14570
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14571
  )
14572
 
14573
  def __init__(self, success=None,):
14574
    self.success = success
14575
 
14576
  def read(self, iprot):
14577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14579
      return
14580
    iprot.readStructBegin()
14581
    while True:
14582
      (fname, ftype, fid) = iprot.readFieldBegin()
14583
      if ftype == TType.STOP:
14584
        break
14585
      if fid == 0:
14586
        if ftype == TType.DOUBLE:
14587
          self.success = iprot.readDouble();
14588
        else:
14589
          iprot.skip(ftype)
14590
      else:
14591
        iprot.skip(ftype)
14592
      iprot.readFieldEnd()
14593
    iprot.readStructEnd()
14594
 
14595
  def write(self, oprot):
14596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14598
      return
14599
    oprot.writeStructBegin('getVatPercentageForItem_result')
14600
    if self.success is not None:
14601
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14602
      oprot.writeDouble(self.success)
14603
      oprot.writeFieldEnd()
14604
    oprot.writeFieldStop()
14605
    oprot.writeStructEnd()
14606
 
14607
  def validate(self):
14608
    return
14609
 
14610
 
14611
  def __repr__(self):
14612
    L = ['%s=%r' % (key, value)
14613
      for key, value in self.__dict__.iteritems()]
14614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14615
 
14616
  def __eq__(self, other):
14617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14618
 
14619
  def __ne__(self, other):
14620
    return not (self == other)
14621
 
14622
class getVatAmountForItem_args:
14623
  """
14624
  Attributes:
14625
   - itemId
14626
   - price
14627
  """
14628
 
14629
  thrift_spec = (
14630
    None, # 0
14631
    (1, TType.I64, 'itemId', None, None, ), # 1
14632
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14633
  )
14634
 
14635
  def __init__(self, itemId=None, price=None,):
14636
    self.itemId = itemId
14637
    self.price = price
14638
 
14639
  def read(self, iprot):
14640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14642
      return
14643
    iprot.readStructBegin()
14644
    while True:
14645
      (fname, ftype, fid) = iprot.readFieldBegin()
14646
      if ftype == TType.STOP:
14647
        break
14648
      if fid == 1:
14649
        if ftype == TType.I64:
14650
          self.itemId = iprot.readI64();
14651
        else:
14652
          iprot.skip(ftype)
14653
      elif fid == 2:
14654
        if ftype == TType.DOUBLE:
14655
          self.price = iprot.readDouble();
14656
        else:
14657
          iprot.skip(ftype)
14658
      else:
14659
        iprot.skip(ftype)
14660
      iprot.readFieldEnd()
14661
    iprot.readStructEnd()
14662
 
14663
  def write(self, oprot):
14664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14666
      return
14667
    oprot.writeStructBegin('getVatAmountForItem_args')
14668
    if self.itemId is not None:
14669
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14670
      oprot.writeI64(self.itemId)
14671
      oprot.writeFieldEnd()
14672
    if self.price is not None:
14673
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14674
      oprot.writeDouble(self.price)
14675
      oprot.writeFieldEnd()
14676
    oprot.writeFieldStop()
14677
    oprot.writeStructEnd()
14678
 
14679
  def validate(self):
14680
    return
14681
 
14682
 
14683
  def __repr__(self):
14684
    L = ['%s=%r' % (key, value)
14685
      for key, value in self.__dict__.iteritems()]
14686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14687
 
14688
  def __eq__(self, other):
14689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14690
 
14691
  def __ne__(self, other):
14692
    return not (self == other)
14693
 
14694
class getVatAmountForItem_result:
14695
  """
14696
  Attributes:
14697
   - success
14698
  """
14699
 
14700
  thrift_spec = (
14701
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14702
  )
14703
 
14704
  def __init__(self, success=None,):
14705
    self.success = success
14706
 
14707
  def read(self, iprot):
14708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14710
      return
14711
    iprot.readStructBegin()
14712
    while True:
14713
      (fname, ftype, fid) = iprot.readFieldBegin()
14714
      if ftype == TType.STOP:
14715
        break
14716
      if fid == 0:
14717
        if ftype == TType.DOUBLE:
14718
          self.success = iprot.readDouble();
14719
        else:
14720
          iprot.skip(ftype)
14721
      else:
14722
        iprot.skip(ftype)
14723
      iprot.readFieldEnd()
14724
    iprot.readStructEnd()
14725
 
14726
  def write(self, oprot):
14727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14729
      return
14730
    oprot.writeStructBegin('getVatAmountForItem_result')
14731
    if self.success is not None:
14732
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14733
      oprot.writeDouble(self.success)
14734
      oprot.writeFieldEnd()
14735
    oprot.writeFieldStop()
14736
    oprot.writeStructEnd()
14737
 
14738
  def validate(self):
14739
    return
14740
 
14741
 
14742
  def __repr__(self):
14743
    L = ['%s=%r' % (key, value)
14744
      for key, value in self.__dict__.iteritems()]
14745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14746
 
14747
  def __eq__(self, other):
14748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14749
 
14750
  def __ne__(self, other):
14751
    return not (self == other)
6531 vikram.rag 14752
 
14753
class getAllIgnoredInventoryUpdateItemsList_args:
14754
  """
14755
  Attributes:
14756
   - offset
14757
   - limit
14758
  """
14759
 
14760
  thrift_spec = (
14761
    None, # 0
14762
    (1, TType.I32, 'offset', None, None, ), # 1
14763
    (2, TType.I32, 'limit', None, None, ), # 2
14764
  )
14765
 
14766
  def __init__(self, offset=None, limit=None,):
14767
    self.offset = offset
14768
    self.limit = limit
14769
 
14770
  def read(self, iprot):
14771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14773
      return
14774
    iprot.readStructBegin()
14775
    while True:
14776
      (fname, ftype, fid) = iprot.readFieldBegin()
14777
      if ftype == TType.STOP:
14778
        break
14779
      if fid == 1:
14780
        if ftype == TType.I32:
14781
          self.offset = iprot.readI32();
14782
        else:
14783
          iprot.skip(ftype)
14784
      elif fid == 2:
14785
        if ftype == TType.I32:
14786
          self.limit = iprot.readI32();
14787
        else:
14788
          iprot.skip(ftype)
14789
      else:
14790
        iprot.skip(ftype)
14791
      iprot.readFieldEnd()
14792
    iprot.readStructEnd()
14793
 
14794
  def write(self, oprot):
14795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14797
      return
14798
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14799
    if self.offset is not None:
14800
      oprot.writeFieldBegin('offset', TType.I32, 1)
14801
      oprot.writeI32(self.offset)
14802
      oprot.writeFieldEnd()
14803
    if self.limit is not None:
14804
      oprot.writeFieldBegin('limit', TType.I32, 2)
14805
      oprot.writeI32(self.limit)
14806
      oprot.writeFieldEnd()
14807
    oprot.writeFieldStop()
14808
    oprot.writeStructEnd()
14809
 
14810
  def validate(self):
14811
    return
14812
 
14813
 
14814
  def __repr__(self):
14815
    L = ['%s=%r' % (key, value)
14816
      for key, value in self.__dict__.iteritems()]
14817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14818
 
14819
  def __eq__(self, other):
14820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14821
 
14822
  def __ne__(self, other):
14823
    return not (self == other)
14824
 
14825
class getAllIgnoredInventoryUpdateItemsList_result:
14826
  """
14827
  Attributes:
14828
   - success
14829
  """
14830
 
14831
  thrift_spec = (
14832
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14833
  )
14834
 
14835
  def __init__(self, success=None,):
14836
    self.success = success
14837
 
14838
  def read(self, iprot):
14839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14841
      return
14842
    iprot.readStructBegin()
14843
    while True:
14844
      (fname, ftype, fid) = iprot.readFieldBegin()
14845
      if ftype == TType.STOP:
14846
        break
14847
      if fid == 0:
14848
        if ftype == TType.LIST:
14849
          self.success = []
6850 kshitij.so 14850
          (_etype287, _size284) = iprot.readListBegin()
14851
          for _i288 in xrange(_size284):
14852
            _elem289 = Item()
14853
            _elem289.read(iprot)
14854
            self.success.append(_elem289)
6531 vikram.rag 14855
          iprot.readListEnd()
14856
        else:
14857
          iprot.skip(ftype)
14858
      else:
14859
        iprot.skip(ftype)
14860
      iprot.readFieldEnd()
14861
    iprot.readStructEnd()
14862
 
14863
  def write(self, oprot):
14864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14866
      return
14867
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14868
    if self.success is not None:
14869
      oprot.writeFieldBegin('success', TType.LIST, 0)
14870
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14871
      for iter290 in self.success:
14872
        iter290.write(oprot)
6531 vikram.rag 14873
      oprot.writeListEnd()
14874
      oprot.writeFieldEnd()
14875
    oprot.writeFieldStop()
14876
    oprot.writeStructEnd()
14877
 
14878
  def validate(self):
14879
    return
14880
 
14881
 
14882
  def __repr__(self):
14883
    L = ['%s=%r' % (key, value)
14884
      for key, value in self.__dict__.iteritems()]
14885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14886
 
14887
  def __eq__(self, other):
14888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14889
 
14890
  def __ne__(self, other):
14891
    return not (self == other)
6805 anupam.sin 14892
 
6821 amar.kumar 14893
class getAllAliveItems_args:
14894
 
14895
  thrift_spec = (
14896
  )
14897
 
14898
  def read(self, iprot):
14899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14901
      return
14902
    iprot.readStructBegin()
14903
    while True:
14904
      (fname, ftype, fid) = iprot.readFieldBegin()
14905
      if ftype == TType.STOP:
14906
        break
14907
      else:
14908
        iprot.skip(ftype)
14909
      iprot.readFieldEnd()
14910
    iprot.readStructEnd()
14911
 
14912
  def write(self, oprot):
14913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14915
      return
14916
    oprot.writeStructBegin('getAllAliveItems_args')
14917
    oprot.writeFieldStop()
14918
    oprot.writeStructEnd()
14919
 
14920
  def validate(self):
14921
    return
14922
 
14923
 
14924
  def __repr__(self):
14925
    L = ['%s=%r' % (key, value)
14926
      for key, value in self.__dict__.iteritems()]
14927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14928
 
14929
  def __eq__(self, other):
14930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14931
 
14932
  def __ne__(self, other):
14933
    return not (self == other)
14934
 
14935
class getAllAliveItems_result:
14936
  """
14937
  Attributes:
14938
   - success
14939
  """
14940
 
14941
  thrift_spec = (
14942
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14943
  )
14944
 
14945
  def __init__(self, success=None,):
14946
    self.success = success
14947
 
14948
  def read(self, iprot):
14949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14951
      return
14952
    iprot.readStructBegin()
14953
    while True:
14954
      (fname, ftype, fid) = iprot.readFieldBegin()
14955
      if ftype == TType.STOP:
14956
        break
14957
      if fid == 0:
14958
        if ftype == TType.LIST:
14959
          self.success = []
6850 kshitij.so 14960
          (_etype294, _size291) = iprot.readListBegin()
14961
          for _i295 in xrange(_size291):
14962
            _elem296 = Item()
14963
            _elem296.read(iprot)
14964
            self.success.append(_elem296)
6821 amar.kumar 14965
          iprot.readListEnd()
14966
        else:
14967
          iprot.skip(ftype)
14968
      else:
14969
        iprot.skip(ftype)
14970
      iprot.readFieldEnd()
14971
    iprot.readStructEnd()
14972
 
14973
  def write(self, oprot):
14974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14976
      return
14977
    oprot.writeStructBegin('getAllAliveItems_result')
14978
    if self.success is not None:
14979
      oprot.writeFieldBegin('success', TType.LIST, 0)
14980
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14981
      for iter297 in self.success:
14982
        iter297.write(oprot)
6821 amar.kumar 14983
      oprot.writeListEnd()
14984
      oprot.writeFieldEnd()
14985
    oprot.writeFieldStop()
14986
    oprot.writeStructEnd()
14987
 
14988
  def validate(self):
14989
    return
14990
 
14991
 
14992
  def __repr__(self):
14993
    L = ['%s=%r' % (key, value)
14994
      for key, value in self.__dict__.iteritems()]
14995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14996
 
14997
  def __eq__(self, other):
14998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14999
 
15000
  def __ne__(self, other):
15001
    return not (self == other)
15002
 
6805 anupam.sin 15003
class getInsuranceAmount_args:
15004
  """
15005
  Attributes:
15006
   - itemId
6921 anupam.sin 15007
   - price
6805 anupam.sin 15008
   - insurerId
15009
   - quantity
15010
  """
15011
 
15012
  thrift_spec = (
15013
    None, # 0
15014
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 15015
    (2, TType.DOUBLE, 'price', None, None, ), # 2
15016
    (3, TType.I64, 'insurerId', None, None, ), # 3
15017
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 15018
  )
15019
 
6921 anupam.sin 15020
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 15021
    self.itemId = itemId
6921 anupam.sin 15022
    self.price = price
6805 anupam.sin 15023
    self.insurerId = insurerId
15024
    self.quantity = quantity
15025
 
15026
  def read(self, iprot):
15027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15029
      return
15030
    iprot.readStructBegin()
15031
    while True:
15032
      (fname, ftype, fid) = iprot.readFieldBegin()
15033
      if ftype == TType.STOP:
15034
        break
15035
      if fid == 1:
15036
        if ftype == TType.I64:
15037
          self.itemId = iprot.readI64();
15038
        else:
15039
          iprot.skip(ftype)
15040
      elif fid == 2:
6921 anupam.sin 15041
        if ftype == TType.DOUBLE:
15042
          self.price = iprot.readDouble();
15043
        else:
15044
          iprot.skip(ftype)
15045
      elif fid == 3:
6805 anupam.sin 15046
        if ftype == TType.I64:
15047
          self.insurerId = iprot.readI64();
15048
        else:
15049
          iprot.skip(ftype)
6921 anupam.sin 15050
      elif fid == 4:
6805 anupam.sin 15051
        if ftype == TType.I64:
15052
          self.quantity = iprot.readI64();
15053
        else:
15054
          iprot.skip(ftype)
15055
      else:
15056
        iprot.skip(ftype)
15057
      iprot.readFieldEnd()
15058
    iprot.readStructEnd()
15059
 
15060
  def write(self, oprot):
15061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15063
      return
15064
    oprot.writeStructBegin('getInsuranceAmount_args')
15065
    if self.itemId is not None:
15066
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15067
      oprot.writeI64(self.itemId)
15068
      oprot.writeFieldEnd()
6921 anupam.sin 15069
    if self.price is not None:
15070
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
15071
      oprot.writeDouble(self.price)
15072
      oprot.writeFieldEnd()
6805 anupam.sin 15073
    if self.insurerId is not None:
6921 anupam.sin 15074
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 15075
      oprot.writeI64(self.insurerId)
15076
      oprot.writeFieldEnd()
15077
    if self.quantity is not None:
6921 anupam.sin 15078
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 15079
      oprot.writeI64(self.quantity)
15080
      oprot.writeFieldEnd()
15081
    oprot.writeFieldStop()
15082
    oprot.writeStructEnd()
15083
 
15084
  def validate(self):
15085
    return
15086
 
15087
 
15088
  def __repr__(self):
15089
    L = ['%s=%r' % (key, value)
15090
      for key, value in self.__dict__.iteritems()]
15091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15092
 
15093
  def __eq__(self, other):
15094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15095
 
15096
  def __ne__(self, other):
15097
    return not (self == other)
15098
 
15099
class getInsuranceAmount_result:
15100
  """
15101
  Attributes:
15102
   - success
15103
  """
15104
 
15105
  thrift_spec = (
15106
    (0, TType.I64, 'success', None, None, ), # 0
15107
  )
15108
 
15109
  def __init__(self, success=None,):
15110
    self.success = success
15111
 
15112
  def read(self, iprot):
15113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15115
      return
15116
    iprot.readStructBegin()
15117
    while True:
15118
      (fname, ftype, fid) = iprot.readFieldBegin()
15119
      if ftype == TType.STOP:
15120
        break
15121
      if fid == 0:
15122
        if ftype == TType.I64:
15123
          self.success = iprot.readI64();
15124
        else:
15125
          iprot.skip(ftype)
15126
      else:
15127
        iprot.skip(ftype)
15128
      iprot.readFieldEnd()
15129
    iprot.readStructEnd()
15130
 
15131
  def write(self, oprot):
15132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15134
      return
15135
    oprot.writeStructBegin('getInsuranceAmount_result')
15136
    if self.success is not None:
15137
      oprot.writeFieldBegin('success', TType.I64, 0)
15138
      oprot.writeI64(self.success)
15139
      oprot.writeFieldEnd()
15140
    oprot.writeFieldStop()
15141
    oprot.writeStructEnd()
15142
 
15143
  def validate(self):
15144
    return
15145
 
15146
 
15147
  def __repr__(self):
15148
    L = ['%s=%r' % (key, value)
15149
      for key, value in self.__dict__.iteritems()]
15150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15151
 
15152
  def __eq__(self, other):
15153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15154
 
15155
  def __ne__(self, other):
15156
    return not (self == other)
15157
 
15158
class getInsurer_args:
15159
  """
15160
  Attributes:
15161
   - insurerId
15162
  """
15163
 
15164
  thrift_spec = (
15165
    None, # 0
15166
    (1, TType.I64, 'insurerId', None, None, ), # 1
15167
  )
15168
 
15169
  def __init__(self, insurerId=None,):
15170
    self.insurerId = insurerId
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 == 1:
15182
        if ftype == TType.I64:
15183
          self.insurerId = iprot.readI64();
15184
        else:
15185
          iprot.skip(ftype)
15186
      else:
15187
        iprot.skip(ftype)
15188
      iprot.readFieldEnd()
15189
    iprot.readStructEnd()
15190
 
15191
  def write(self, oprot):
15192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15194
      return
15195
    oprot.writeStructBegin('getInsurer_args')
15196
    if self.insurerId is not None:
15197
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15198
      oprot.writeI64(self.insurerId)
15199
      oprot.writeFieldEnd()
15200
    oprot.writeFieldStop()
15201
    oprot.writeStructEnd()
15202
 
15203
  def validate(self):
15204
    return
15205
 
15206
 
15207
  def __repr__(self):
15208
    L = ['%s=%r' % (key, value)
15209
      for key, value in self.__dict__.iteritems()]
15210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15211
 
15212
  def __eq__(self, other):
15213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15214
 
15215
  def __ne__(self, other):
15216
    return not (self == other)
15217
 
15218
class getInsurer_result:
15219
  """
15220
  Attributes:
15221
   - success
15222
  """
15223
 
15224
  thrift_spec = (
15225
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15226
  )
15227
 
15228
  def __init__(self, success=None,):
15229
    self.success = success
15230
 
15231
  def read(self, iprot):
15232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15234
      return
15235
    iprot.readStructBegin()
15236
    while True:
15237
      (fname, ftype, fid) = iprot.readFieldBegin()
15238
      if ftype == TType.STOP:
15239
        break
15240
      if fid == 0:
15241
        if ftype == TType.STRUCT:
15242
          self.success = Insurer()
15243
          self.success.read(iprot)
15244
        else:
15245
          iprot.skip(ftype)
15246
      else:
15247
        iprot.skip(ftype)
15248
      iprot.readFieldEnd()
15249
    iprot.readStructEnd()
15250
 
15251
  def write(self, oprot):
15252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15254
      return
15255
    oprot.writeStructBegin('getInsurer_result')
15256
    if self.success is not None:
15257
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15258
      self.success.write(oprot)
15259
      oprot.writeFieldEnd()
15260
    oprot.writeFieldStop()
15261
    oprot.writeStructEnd()
15262
 
15263
  def validate(self):
15264
    return
15265
 
15266
 
15267
  def __repr__(self):
15268
    L = ['%s=%r' % (key, value)
15269
      for key, value in self.__dict__.iteritems()]
15270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15271
 
15272
  def __eq__(self, other):
15273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15274
 
15275
  def __ne__(self, other):
15276
    return not (self == other)
6838 vikram.rag 15277
 
15278
class getAllInsurers_args:
15279
 
15280
  thrift_spec = (
15281
  )
15282
 
15283
  def read(self, iprot):
15284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15286
      return
15287
    iprot.readStructBegin()
15288
    while True:
15289
      (fname, ftype, fid) = iprot.readFieldBegin()
15290
      if ftype == TType.STOP:
15291
        break
15292
      else:
15293
        iprot.skip(ftype)
15294
      iprot.readFieldEnd()
15295
    iprot.readStructEnd()
15296
 
15297
  def write(self, oprot):
15298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15300
      return
15301
    oprot.writeStructBegin('getAllInsurers_args')
15302
    oprot.writeFieldStop()
15303
    oprot.writeStructEnd()
15304
 
15305
  def validate(self):
15306
    return
15307
 
15308
 
15309
  def __repr__(self):
15310
    L = ['%s=%r' % (key, value)
15311
      for key, value in self.__dict__.iteritems()]
15312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15313
 
15314
  def __eq__(self, other):
15315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15316
 
15317
  def __ne__(self, other):
15318
    return not (self == other)
15319
 
15320
class getAllInsurers_result:
15321
  """
15322
  Attributes:
15323
   - success
15324
  """
15325
 
15326
  thrift_spec = (
15327
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15328
  )
15329
 
15330
  def __init__(self, success=None,):
15331
    self.success = success
15332
 
15333
  def read(self, iprot):
15334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15336
      return
15337
    iprot.readStructBegin()
15338
    while True:
15339
      (fname, ftype, fid) = iprot.readFieldBegin()
15340
      if ftype == TType.STOP:
15341
        break
15342
      if fid == 0:
15343
        if ftype == TType.LIST:
15344
          self.success = []
6850 kshitij.so 15345
          (_etype301, _size298) = iprot.readListBegin()
15346
          for _i302 in xrange(_size298):
15347
            _elem303 = Insurer()
15348
            _elem303.read(iprot)
15349
            self.success.append(_elem303)
6838 vikram.rag 15350
          iprot.readListEnd()
15351
        else:
15352
          iprot.skip(ftype)
15353
      else:
15354
        iprot.skip(ftype)
15355
      iprot.readFieldEnd()
15356
    iprot.readStructEnd()
15357
 
15358
  def write(self, oprot):
15359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15361
      return
15362
    oprot.writeStructBegin('getAllInsurers_result')
15363
    if self.success is not None:
15364
      oprot.writeFieldBegin('success', TType.LIST, 0)
15365
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 15366
      for iter304 in self.success:
15367
        iter304.write(oprot)
6838 vikram.rag 15368
      oprot.writeListEnd()
15369
      oprot.writeFieldEnd()
15370
    oprot.writeFieldStop()
15371
    oprot.writeStructEnd()
15372
 
15373
  def validate(self):
15374
    return
15375
 
15376
 
15377
  def __repr__(self):
15378
    L = ['%s=%r' % (key, value)
15379
      for key, value in self.__dict__.iteritems()]
15380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15381
 
15382
  def __eq__(self, other):
15383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15384
 
15385
  def __ne__(self, other):
15386
    return not (self == other)
6962 rajveer 15387
 
15388
class updateInsuranceDeclaredAmount_args:
15389
  """
15390
  Attributes:
15391
   - insurerId
15392
   - amount
15393
  """
15394
 
15395
  thrift_spec = (
15396
    None, # 0
15397
    (1, TType.I64, 'insurerId', None, None, ), # 1
15398
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
15399
  )
15400
 
15401
  def __init__(self, insurerId=None, amount=None,):
15402
    self.insurerId = insurerId
15403
    self.amount = amount
15404
 
15405
  def read(self, iprot):
15406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15408
      return
15409
    iprot.readStructBegin()
15410
    while True:
15411
      (fname, ftype, fid) = iprot.readFieldBegin()
15412
      if ftype == TType.STOP:
15413
        break
15414
      if fid == 1:
15415
        if ftype == TType.I64:
15416
          self.insurerId = iprot.readI64();
15417
        else:
15418
          iprot.skip(ftype)
15419
      elif fid == 2:
15420
        if ftype == TType.DOUBLE:
15421
          self.amount = iprot.readDouble();
15422
        else:
15423
          iprot.skip(ftype)
15424
      else:
15425
        iprot.skip(ftype)
15426
      iprot.readFieldEnd()
15427
    iprot.readStructEnd()
15428
 
15429
  def write(self, oprot):
15430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15432
      return
15433
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
15434
    if self.insurerId is not None:
15435
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15436
      oprot.writeI64(self.insurerId)
15437
      oprot.writeFieldEnd()
15438
    if self.amount is not None:
15439
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
15440
      oprot.writeDouble(self.amount)
15441
      oprot.writeFieldEnd()
15442
    oprot.writeFieldStop()
15443
    oprot.writeStructEnd()
15444
 
15445
  def validate(self):
15446
    return
15447
 
15448
 
15449
  def __repr__(self):
15450
    L = ['%s=%r' % (key, value)
15451
      for key, value in self.__dict__.iteritems()]
15452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15453
 
15454
  def __eq__(self, other):
15455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15456
 
15457
  def __ne__(self, other):
15458
    return not (self == other)
15459
 
15460
class updateInsuranceDeclaredAmount_result:
15461
 
15462
  thrift_spec = (
15463
  )
15464
 
15465
  def read(self, iprot):
15466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15468
      return
15469
    iprot.readStructBegin()
15470
    while True:
15471
      (fname, ftype, fid) = iprot.readFieldBegin()
15472
      if ftype == TType.STOP:
15473
        break
15474
      else:
15475
        iprot.skip(ftype)
15476
      iprot.readFieldEnd()
15477
    iprot.readStructEnd()
15478
 
15479
  def write(self, oprot):
15480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15482
      return
15483
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
15484
    oprot.writeFieldStop()
15485
    oprot.writeStructEnd()
15486
 
15487
  def validate(self):
15488
    return
15489
 
15490
 
15491
  def __repr__(self):
15492
    L = ['%s=%r' % (key, value)
15493
      for key, value in self.__dict__.iteritems()]
15494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15495
 
15496
  def __eq__(self, other):
15497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15498
 
15499
  def __ne__(self, other):
15500
    return not (self == other)
7190 amar.kumar 15501
 
15502
class getFreebieForItem_args:
15503
  """
15504
  Attributes:
15505
   - itemId
15506
  """
15507
 
15508
  thrift_spec = (
15509
    None, # 0
15510
    (1, TType.I64, 'itemId', None, None, ), # 1
15511
  )
15512
 
15513
  def __init__(self, itemId=None,):
15514
    self.itemId = itemId
15515
 
15516
  def read(self, iprot):
15517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15519
      return
15520
    iprot.readStructBegin()
15521
    while True:
15522
      (fname, ftype, fid) = iprot.readFieldBegin()
15523
      if ftype == TType.STOP:
15524
        break
15525
      if fid == 1:
15526
        if ftype == TType.I64:
15527
          self.itemId = iprot.readI64();
15528
        else:
15529
          iprot.skip(ftype)
15530
      else:
15531
        iprot.skip(ftype)
15532
      iprot.readFieldEnd()
15533
    iprot.readStructEnd()
15534
 
15535
  def write(self, oprot):
15536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15538
      return
15539
    oprot.writeStructBegin('getFreebieForItem_args')
15540
    if self.itemId is not None:
15541
      oprot.writeFieldBegin('itemId', TType.I64, 1)
15542
      oprot.writeI64(self.itemId)
15543
      oprot.writeFieldEnd()
15544
    oprot.writeFieldStop()
15545
    oprot.writeStructEnd()
15546
 
15547
  def validate(self):
15548
    return
15549
 
15550
 
15551
  def __repr__(self):
15552
    L = ['%s=%r' % (key, value)
15553
      for key, value in self.__dict__.iteritems()]
15554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15555
 
15556
  def __eq__(self, other):
15557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15558
 
15559
  def __ne__(self, other):
15560
    return not (self == other)
15561
 
15562
class getFreebieForItem_result:
15563
  """
15564
  Attributes:
15565
   - success
15566
  """
15567
 
15568
  thrift_spec = (
15569
    (0, TType.I64, 'success', None, None, ), # 0
15570
  )
15571
 
15572
  def __init__(self, success=None,):
15573
    self.success = success
15574
 
15575
  def read(self, iprot):
15576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15578
      return
15579
    iprot.readStructBegin()
15580
    while True:
15581
      (fname, ftype, fid) = iprot.readFieldBegin()
15582
      if ftype == TType.STOP:
15583
        break
15584
      if fid == 0:
15585
        if ftype == TType.I64:
15586
          self.success = iprot.readI64();
15587
        else:
15588
          iprot.skip(ftype)
15589
      else:
15590
        iprot.skip(ftype)
15591
      iprot.readFieldEnd()
15592
    iprot.readStructEnd()
15593
 
15594
  def write(self, oprot):
15595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15597
      return
15598
    oprot.writeStructBegin('getFreebieForItem_result')
15599
    if self.success is not None:
15600
      oprot.writeFieldBegin('success', TType.I64, 0)
15601
      oprot.writeI64(self.success)
15602
      oprot.writeFieldEnd()
15603
    oprot.writeFieldStop()
15604
    oprot.writeStructEnd()
15605
 
15606
  def validate(self):
15607
    return
15608
 
15609
 
15610
  def __repr__(self):
15611
    L = ['%s=%r' % (key, value)
15612
      for key, value in self.__dict__.iteritems()]
15613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15614
 
15615
  def __eq__(self, other):
15616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15617
 
15618
  def __ne__(self, other):
15619
    return not (self == other)
15620
 
15621
class addOrUpdateFreebieForItem_args:
15622
  """
15623
  Attributes:
15624
   - freebieItem
15625
  """
15626
 
15627
  thrift_spec = (
15628
    None, # 0
15629
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
15630
  )
15631
 
15632
  def __init__(self, freebieItem=None,):
15633
    self.freebieItem = freebieItem
15634
 
15635
  def read(self, iprot):
15636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15638
      return
15639
    iprot.readStructBegin()
15640
    while True:
15641
      (fname, ftype, fid) = iprot.readFieldBegin()
15642
      if ftype == TType.STOP:
15643
        break
15644
      if fid == 1:
15645
        if ftype == TType.STRUCT:
15646
          self.freebieItem = FreebieItem()
15647
          self.freebieItem.read(iprot)
15648
        else:
15649
          iprot.skip(ftype)
15650
      else:
15651
        iprot.skip(ftype)
15652
      iprot.readFieldEnd()
15653
    iprot.readStructEnd()
15654
 
15655
  def write(self, oprot):
15656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15658
      return
15659
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
15660
    if self.freebieItem is not None:
15661
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
15662
      self.freebieItem.write(oprot)
15663
      oprot.writeFieldEnd()
15664
    oprot.writeFieldStop()
15665
    oprot.writeStructEnd()
15666
 
15667
  def validate(self):
15668
    return
15669
 
15670
 
15671
  def __repr__(self):
15672
    L = ['%s=%r' % (key, value)
15673
      for key, value in self.__dict__.iteritems()]
15674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15675
 
15676
  def __eq__(self, other):
15677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15678
 
15679
  def __ne__(self, other):
15680
    return not (self == other)
15681
 
15682
class addOrUpdateFreebieForItem_result:
15683
 
15684
  thrift_spec = (
15685
  )
15686
 
15687
  def read(self, iprot):
15688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15690
      return
15691
    iprot.readStructBegin()
15692
    while True:
15693
      (fname, ftype, fid) = iprot.readFieldBegin()
15694
      if ftype == TType.STOP:
15695
        break
15696
      else:
15697
        iprot.skip(ftype)
15698
      iprot.readFieldEnd()
15699
    iprot.readStructEnd()
15700
 
15701
  def write(self, oprot):
15702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15704
      return
15705
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
15706
    oprot.writeFieldStop()
15707
    oprot.writeStructEnd()
15708
 
15709
  def validate(self):
15710
    return
15711
 
15712
 
15713
  def __repr__(self):
15714
    L = ['%s=%r' % (key, value)
15715
      for key, value in self.__dict__.iteritems()]
15716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15717
 
15718
  def __eq__(self, other):
15719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15720
 
15721
  def __ne__(self, other):
15722
    return not (self == other)