Subversion Repositories SmartDukaan

Rev

Rev 6921 | Rev 7190 | 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
 
6962 rajveer 658
 
5944 mandeep.dh 659
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
660
  def __init__(self, iprot, oprot=None):
661
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
662
 
663
  def addItem(self, item):
664
    """
665
    Availability and inventory attributes
666
 
667
    Parameters:
668
     - item
669
    """
670
    self.send_addItem(item)
671
    return self.recv_addItem()
672
 
673
  def send_addItem(self, item):
674
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
675
    args = addItem_args()
676
    args.item = item
677
    args.write(self._oprot)
678
    self._oprot.writeMessageEnd()
679
    self._oprot.trans.flush()
680
 
681
  def recv_addItem(self, ):
682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
683
    if mtype == TMessageType.EXCEPTION:
684
      x = TApplicationException()
685
      x.read(self._iprot)
686
      self._iprot.readMessageEnd()
687
      raise x
688
    result = addItem_result()
689
    result.read(self._iprot)
690
    self._iprot.readMessageEnd()
691
    if result.success is not None:
692
      return result.success
693
    if result.cex is not None:
694
      raise result.cex
695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
696
 
697
  def updateItem(self, item):
698
    """
699
    Parameters:
700
     - item
701
    """
702
    self.send_updateItem(item)
703
    return self.recv_updateItem()
704
 
705
  def send_updateItem(self, item):
706
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
707
    args = updateItem_args()
708
    args.item = item
709
    args.write(self._oprot)
710
    self._oprot.writeMessageEnd()
711
    self._oprot.trans.flush()
712
 
713
  def recv_updateItem(self, ):
714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
715
    if mtype == TMessageType.EXCEPTION:
716
      x = TApplicationException()
717
      x.read(self._iprot)
718
      self._iprot.readMessageEnd()
719
      raise x
720
    result = updateItem_result()
721
    result.read(self._iprot)
722
    self._iprot.readMessageEnd()
723
    if result.success is not None:
724
      return result.success
725
    if result.cex is not None:
726
      raise result.cex
727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
728
 
729
  def isActive(self, itemId):
730
    """
731
    Checks if the item given to the corresponding itemId is active. If it's active,
732
    whether it's risky and if it's risky, its inventory position.
733
 
734
    Parameters:
735
     - itemId
736
    """
737
    self.send_isActive(itemId)
738
    return self.recv_isActive()
739
 
740
  def send_isActive(self, itemId):
741
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
742
    args = isActive_args()
743
    args.itemId = itemId
744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
748
  def recv_isActive(self, ):
749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
755
    result = isActive_result()
756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
758
    if result.success is not None:
759
      return result.success
760
    if result.isex is not None:
761
      raise result.isex
762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
763
 
764
  def getItemStatusDescription(self, itemId):
765
    """
766
    Parameters:
767
     - itemId
768
    """
769
    self.send_getItemStatusDescription(itemId)
770
    return self.recv_getItemStatusDescription()
771
 
772
  def send_getItemStatusDescription(self, itemId):
773
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
774
    args = getItemStatusDescription_args()
775
    args.itemId = itemId
776
    args.write(self._oprot)
777
    self._oprot.writeMessageEnd()
778
    self._oprot.trans.flush()
779
 
780
  def recv_getItemStatusDescription(self, ):
781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
782
    if mtype == TMessageType.EXCEPTION:
783
      x = TApplicationException()
784
      x.read(self._iprot)
785
      self._iprot.readMessageEnd()
786
      raise x
787
    result = getItemStatusDescription_result()
788
    result.read(self._iprot)
789
    self._iprot.readMessageEnd()
790
    if result.success is not None:
791
      return result.success
792
    if result.isex is not None:
793
      raise result.isex
794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
795
 
796
  def startItemOn(self, item_id, timestamp):
797
    """
798
    Parameters:
799
     - item_id
800
     - timestamp
801
    """
802
    self.send_startItemOn(item_id, timestamp)
803
    self.recv_startItemOn()
804
 
805
  def send_startItemOn(self, item_id, timestamp):
806
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
807
    args = startItemOn_args()
808
    args.item_id = item_id
809
    args.timestamp = timestamp
810
    args.write(self._oprot)
811
    self._oprot.writeMessageEnd()
812
    self._oprot.trans.flush()
813
 
814
  def recv_startItemOn(self, ):
815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
816
    if mtype == TMessageType.EXCEPTION:
817
      x = TApplicationException()
818
      x.read(self._iprot)
819
      self._iprot.readMessageEnd()
820
      raise x
821
    result = startItemOn_result()
822
    result.read(self._iprot)
823
    self._iprot.readMessageEnd()
824
    if result.cex is not None:
825
      raise result.cex
826
    return
827
 
828
  def retireItemOn(self, item_id, timestamp):
829
    """
830
    Parameters:
831
     - item_id
832
     - timestamp
833
    """
834
    self.send_retireItemOn(item_id, timestamp)
835
    self.recv_retireItemOn()
836
 
837
  def send_retireItemOn(self, item_id, timestamp):
838
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
839
    args = retireItemOn_args()
840
    args.item_id = item_id
841
    args.timestamp = timestamp
842
    args.write(self._oprot)
843
    self._oprot.writeMessageEnd()
844
    self._oprot.trans.flush()
845
 
846
  def recv_retireItemOn(self, ):
847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
848
    if mtype == TMessageType.EXCEPTION:
849
      x = TApplicationException()
850
      x.read(self._iprot)
851
      self._iprot.readMessageEnd()
852
      raise x
853
    result = retireItemOn_result()
854
    result.read(self._iprot)
855
    self._iprot.readMessageEnd()
856
    if result.cex is not None:
857
      raise result.cex
858
    return
859
 
860
  def changeItemStatus(self, item_id, timestamp, newstatus):
861
    """
862
    Parameters:
863
     - item_id
864
     - timestamp
865
     - newstatus
866
    """
867
    self.send_changeItemStatus(item_id, timestamp, newstatus)
868
    self.recv_changeItemStatus()
869
 
870
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
871
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
872
    args = changeItemStatus_args()
873
    args.item_id = item_id
874
    args.timestamp = timestamp
875
    args.newstatus = newstatus
876
    args.write(self._oprot)
877
    self._oprot.writeMessageEnd()
878
    self._oprot.trans.flush()
879
 
880
  def recv_changeItemStatus(self, ):
881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
882
    if mtype == TMessageType.EXCEPTION:
883
      x = TApplicationException()
884
      x.read(self._iprot)
885
      self._iprot.readMessageEnd()
886
      raise x
887
    result = changeItemStatus_result()
888
    result.read(self._iprot)
889
    self._iprot.readMessageEnd()
890
    if result.cex is not None:
891
      raise result.cex
892
    return
893
 
894
  def getItem(self, item_id):
895
    """
896
    Parameters:
897
     - item_id
898
    """
899
    self.send_getItem(item_id)
900
    return self.recv_getItem()
901
 
902
  def send_getItem(self, item_id):
903
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
904
    args = getItem_args()
905
    args.item_id = item_id
906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_getItem(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = getItem_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
920
    if result.success is not None:
921
      return result.success
922
    if result.cex is not None:
923
      raise result.cex
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
925
 
926
  def getItemsByCatalogId(self, catalog_item_id):
927
    """
928
    Parameters:
929
     - catalog_item_id
930
    """
931
    self.send_getItemsByCatalogId(catalog_item_id)
932
    return self.recv_getItemsByCatalogId()
933
 
934
  def send_getItemsByCatalogId(self, catalog_item_id):
935
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
936
    args = getItemsByCatalogId_args()
937
    args.catalog_item_id = catalog_item_id
938
    args.write(self._oprot)
939
    self._oprot.writeMessageEnd()
940
    self._oprot.trans.flush()
941
 
942
  def recv_getItemsByCatalogId(self, ):
943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
944
    if mtype == TMessageType.EXCEPTION:
945
      x = TApplicationException()
946
      x.read(self._iprot)
947
      self._iprot.readMessageEnd()
948
      raise x
949
    result = getItemsByCatalogId_result()
950
    result.read(self._iprot)
951
    self._iprot.readMessageEnd()
952
    if result.success is not None:
953
      return result.success
954
    if result.cex is not None:
955
      raise result.cex
956
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
957
 
958
  def getValidItemsByCatalogId(self, catalog_item_id):
959
    """
960
    Parameters:
961
     - catalog_item_id
962
    """
963
    self.send_getValidItemsByCatalogId(catalog_item_id)
964
    return self.recv_getValidItemsByCatalogId()
965
 
966
  def send_getValidItemsByCatalogId(self, catalog_item_id):
967
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
968
    args = getValidItemsByCatalogId_args()
969
    args.catalog_item_id = catalog_item_id
970
    args.write(self._oprot)
971
    self._oprot.writeMessageEnd()
972
    self._oprot.trans.flush()
973
 
974
  def recv_getValidItemsByCatalogId(self, ):
975
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
976
    if mtype == TMessageType.EXCEPTION:
977
      x = TApplicationException()
978
      x.read(self._iprot)
979
      self._iprot.readMessageEnd()
980
      raise x
981
    result = getValidItemsByCatalogId_result()
982
    result.read(self._iprot)
983
    self._iprot.readMessageEnd()
984
    if result.success is not None:
985
      return result.success
986
    if result.cex is not None:
987
      raise result.cex
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
989
 
990
  def getAllItems(self, isActive):
991
    """
992
    Parameters:
993
     - isActive
994
    """
995
    self.send_getAllItems(isActive)
996
    return self.recv_getAllItems()
997
 
998
  def send_getAllItems(self, isActive):
999
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1000
    args = getAllItems_args()
1001
    args.isActive = isActive
1002
    args.write(self._oprot)
1003
    self._oprot.writeMessageEnd()
1004
    self._oprot.trans.flush()
1005
 
1006
  def recv_getAllItems(self, ):
1007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1008
    if mtype == TMessageType.EXCEPTION:
1009
      x = TApplicationException()
1010
      x.read(self._iprot)
1011
      self._iprot.readMessageEnd()
1012
      raise x
1013
    result = getAllItems_result()
1014
    result.read(self._iprot)
1015
    self._iprot.readMessageEnd()
1016
    if result.success is not None:
1017
      return result.success
1018
    if result.cex is not None:
1019
      raise result.cex
1020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1021
 
1022
  def getAllItemsByStatus(self, itemStatus):
1023
    """
1024
    Parameters:
1025
     - itemStatus
1026
    """
1027
    self.send_getAllItemsByStatus(itemStatus)
1028
    return self.recv_getAllItemsByStatus()
1029
 
1030
  def send_getAllItemsByStatus(self, itemStatus):
1031
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1032
    args = getAllItemsByStatus_args()
1033
    args.itemStatus = itemStatus
1034
    args.write(self._oprot)
1035
    self._oprot.writeMessageEnd()
1036
    self._oprot.trans.flush()
1037
 
1038
  def recv_getAllItemsByStatus(self, ):
1039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1040
    if mtype == TMessageType.EXCEPTION:
1041
      x = TApplicationException()
1042
      x.read(self._iprot)
1043
      self._iprot.readMessageEnd()
1044
      raise x
1045
    result = getAllItemsByStatus_result()
1046
    result.read(self._iprot)
1047
    self._iprot.readMessageEnd()
1048
    if result.success is not None:
1049
      return result.success
1050
    if result.cex is not None:
1051
      raise result.cex
1052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1053
 
1054
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1055
    """
1056
    Parameters:
1057
     - entityId
1058
     - category
1059
     - brand
1060
     - modelName
1061
     - modelNumber
1062
    """
1063
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
1064
    return self.recv_markItemAsContentComplete()
1065
 
1066
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
1067
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1068
    args = markItemAsContentComplete_args()
1069
    args.entityId = entityId
1070
    args.category = category
1071
    args.brand = brand
1072
    args.modelName = modelName
1073
    args.modelNumber = modelNumber
1074
    args.write(self._oprot)
1075
    self._oprot.writeMessageEnd()
1076
    self._oprot.trans.flush()
1077
 
1078
  def recv_markItemAsContentComplete(self, ):
1079
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1080
    if mtype == TMessageType.EXCEPTION:
1081
      x = TApplicationException()
1082
      x.read(self._iprot)
1083
      self._iprot.readMessageEnd()
1084
      raise x
1085
    result = markItemAsContentComplete_result()
1086
    result.read(self._iprot)
1087
    self._iprot.readMessageEnd()
1088
    if result.success is not None:
1089
      return result.success
1090
    if result.cex is not None:
1091
      raise result.cex
1092
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1093
 
1094
  def getAllItemsInRange(self, offset, limit):
1095
    """
1096
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1097
 
1098
    Parameters:
1099
     - offset
1100
     - limit
1101
    """
1102
    self.send_getAllItemsInRange(offset, limit)
1103
    return self.recv_getAllItemsInRange()
1104
 
1105
  def send_getAllItemsInRange(self, offset, limit):
1106
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1107
    args = getAllItemsInRange_args()
1108
    args.offset = offset
1109
    args.limit = limit
1110
    args.write(self._oprot)
1111
    self._oprot.writeMessageEnd()
1112
    self._oprot.trans.flush()
1113
 
1114
  def recv_getAllItemsInRange(self, ):
1115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1116
    if mtype == TMessageType.EXCEPTION:
1117
      x = TApplicationException()
1118
      x.read(self._iprot)
1119
      self._iprot.readMessageEnd()
1120
      raise x
1121
    result = getAllItemsInRange_result()
1122
    result.read(self._iprot)
1123
    self._iprot.readMessageEnd()
1124
    if result.success is not None:
1125
      return result.success
1126
    if result.cex is not None:
1127
      raise result.cex
1128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1129
 
1130
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1131
    """
1132
    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.
1133
 
1134
    Parameters:
1135
     - itemStatus
1136
     - offset
1137
     - limit
1138
    """
1139
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1140
    return self.recv_getAllItemsByStatusInRange()
1141
 
1142
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1143
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1144
    args = getAllItemsByStatusInRange_args()
1145
    args.itemStatus = itemStatus
1146
    args.offset = offset
1147
    args.limit = limit
1148
    args.write(self._oprot)
1149
    self._oprot.writeMessageEnd()
1150
    self._oprot.trans.flush()
1151
 
1152
  def recv_getAllItemsByStatusInRange(self, ):
1153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1154
    if mtype == TMessageType.EXCEPTION:
1155
      x = TApplicationException()
1156
      x.read(self._iprot)
1157
      self._iprot.readMessageEnd()
1158
      raise x
1159
    result = getAllItemsByStatusInRange_result()
1160
    result.read(self._iprot)
1161
    self._iprot.readMessageEnd()
1162
    if result.success is not None:
1163
      return result.success
1164
    if result.cex is not None:
1165
      raise result.cex
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1167
 
1168
  def getItemCountByStatus(self, useStatus, itemStatus):
1169
    """
1170
    Gets a count of all items by status
1171
 
1172
    Parameters:
1173
     - useStatus
1174
     - itemStatus
1175
    """
1176
    self.send_getItemCountByStatus(useStatus, itemStatus)
1177
    return self.recv_getItemCountByStatus()
1178
 
1179
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1180
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1181
    args = getItemCountByStatus_args()
1182
    args.useStatus = useStatus
1183
    args.itemStatus = itemStatus
1184
    args.write(self._oprot)
1185
    self._oprot.writeMessageEnd()
1186
    self._oprot.trans.flush()
1187
 
1188
  def recv_getItemCountByStatus(self, ):
1189
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1190
    if mtype == TMessageType.EXCEPTION:
1191
      x = TApplicationException()
1192
      x.read(self._iprot)
1193
      self._iprot.readMessageEnd()
1194
      raise x
1195
    result = getItemCountByStatus_result()
1196
    result.read(self._iprot)
1197
    self._iprot.readMessageEnd()
1198
    if result.success is not None:
1199
      return result.success
1200
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1201
 
1202
  def getBestSellers(self, ):
1203
    self.send_getBestSellers()
1204
    return self.recv_getBestSellers()
1205
 
1206
  def send_getBestSellers(self, ):
1207
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1208
    args = getBestSellers_args()
1209
    args.write(self._oprot)
1210
    self._oprot.writeMessageEnd()
1211
    self._oprot.trans.flush()
1212
 
1213
  def recv_getBestSellers(self, ):
1214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1215
    if mtype == TMessageType.EXCEPTION:
1216
      x = TApplicationException()
1217
      x.read(self._iprot)
1218
      self._iprot.readMessageEnd()
1219
      raise x
1220
    result = getBestSellers_result()
1221
    result.read(self._iprot)
1222
    self._iprot.readMessageEnd()
1223
    if result.success is not None:
1224
      return result.success
1225
    if result.isex is not None:
1226
      raise result.isex
1227
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1228
 
1229
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1230
    """
1231
    Parameters:
1232
     - beginIndex
1233
     - totalItems
1234
     - brand
1235
     - category
1236
    """
1237
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1238
    return self.recv_getBestSellersCatalogIds()
1239
 
1240
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1241
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1242
    args = getBestSellersCatalogIds_args()
1243
    args.beginIndex = beginIndex
1244
    args.totalItems = totalItems
1245
    args.brand = brand
1246
    args.category = category
1247
    args.write(self._oprot)
1248
    self._oprot.writeMessageEnd()
1249
    self._oprot.trans.flush()
1250
 
1251
  def recv_getBestSellersCatalogIds(self, ):
1252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1253
    if mtype == TMessageType.EXCEPTION:
1254
      x = TApplicationException()
1255
      x.read(self._iprot)
1256
      self._iprot.readMessageEnd()
1257
      raise x
1258
    result = getBestSellersCatalogIds_result()
1259
    result.read(self._iprot)
1260
    self._iprot.readMessageEnd()
1261
    if result.success is not None:
1262
      return result.success
1263
    if result.cex is not None:
1264
      raise result.cex
1265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1266
 
1267
  def getBestSellersCount(self, ):
1268
    self.send_getBestSellersCount()
1269
    return self.recv_getBestSellersCount()
1270
 
1271
  def send_getBestSellersCount(self, ):
1272
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1273
    args = getBestSellersCount_args()
1274
    args.write(self._oprot)
1275
    self._oprot.writeMessageEnd()
1276
    self._oprot.trans.flush()
1277
 
1278
  def recv_getBestSellersCount(self, ):
1279
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1280
    if mtype == TMessageType.EXCEPTION:
1281
      x = TApplicationException()
1282
      x.read(self._iprot)
1283
      self._iprot.readMessageEnd()
1284
      raise x
1285
    result = getBestSellersCount_result()
1286
    result.read(self._iprot)
1287
    self._iprot.readMessageEnd()
1288
    if result.success is not None:
1289
      return result.success
1290
    if result.cex is not None:
1291
      raise result.cex
1292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1293
 
1294
  def getBestDeals(self, ):
1295
    self.send_getBestDeals()
1296
    return self.recv_getBestDeals()
1297
 
1298
  def send_getBestDeals(self, ):
1299
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1300
    args = getBestDeals_args()
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_getBestDeals(self, ):
1306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1307
    if mtype == TMessageType.EXCEPTION:
1308
      x = TApplicationException()
1309
      x.read(self._iprot)
1310
      self._iprot.readMessageEnd()
1311
      raise x
1312
    result = getBestDeals_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
1315
    if result.success is not None:
1316
      return result.success
1317
    if result.isex is not None:
1318
      raise result.isex
1319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1320
 
1321
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1322
    """
1323
    Parameters:
1324
     - beginIndex
1325
     - totalItems
1326
     - brand
1327
     - category
1328
    """
1329
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1330
    return self.recv_getBestDealsCatalogIds()
1331
 
1332
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1333
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1334
    args = getBestDealsCatalogIds_args()
1335
    args.beginIndex = beginIndex
1336
    args.totalItems = totalItems
1337
    args.brand = brand
1338
    args.category = category
1339
    args.write(self._oprot)
1340
    self._oprot.writeMessageEnd()
1341
    self._oprot.trans.flush()
1342
 
1343
  def recv_getBestDealsCatalogIds(self, ):
1344
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1345
    if mtype == TMessageType.EXCEPTION:
1346
      x = TApplicationException()
1347
      x.read(self._iprot)
1348
      self._iprot.readMessageEnd()
1349
      raise x
1350
    result = getBestDealsCatalogIds_result()
1351
    result.read(self._iprot)
1352
    self._iprot.readMessageEnd()
1353
    if result.success is not None:
1354
      return result.success
1355
    if result.cex is not None:
1356
      raise result.cex
1357
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1358
 
1359
  def getBestDealsCount(self, ):
1360
    self.send_getBestDealsCount()
1361
    return self.recv_getBestDealsCount()
1362
 
1363
  def send_getBestDealsCount(self, ):
1364
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1365
    args = getBestDealsCount_args()
1366
    args.write(self._oprot)
1367
    self._oprot.writeMessageEnd()
1368
    self._oprot.trans.flush()
1369
 
1370
  def recv_getBestDealsCount(self, ):
1371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1372
    if mtype == TMessageType.EXCEPTION:
1373
      x = TApplicationException()
1374
      x.read(self._iprot)
1375
      self._iprot.readMessageEnd()
1376
      raise x
1377
    result = getBestDealsCount_result()
1378
    result.read(self._iprot)
1379
    self._iprot.readMessageEnd()
1380
    if result.success is not None:
1381
      return result.success
1382
    if result.cex is not None:
1383
      raise result.cex
1384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1385
 
1386
  def getComingSoon(self, ):
1387
    self.send_getComingSoon()
1388
    return self.recv_getComingSoon()
1389
 
1390
  def send_getComingSoon(self, ):
1391
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1392
    args = getComingSoon_args()
1393
    args.write(self._oprot)
1394
    self._oprot.writeMessageEnd()
1395
    self._oprot.trans.flush()
1396
 
1397
  def recv_getComingSoon(self, ):
1398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1399
    if mtype == TMessageType.EXCEPTION:
1400
      x = TApplicationException()
1401
      x.read(self._iprot)
1402
      self._iprot.readMessageEnd()
1403
      raise x
1404
    result = getComingSoon_result()
1405
    result.read(self._iprot)
1406
    self._iprot.readMessageEnd()
1407
    if result.success is not None:
1408
      return result.success
1409
    if result.isex is not None:
1410
      raise result.isex
1411
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1412
 
1413
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1414
    """
1415
    Parameters:
1416
     - beginIndex
1417
     - totalItems
1418
     - brand
1419
     - category
1420
    """
1421
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1422
    return self.recv_getComingSoonCatalogIds()
1423
 
1424
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1425
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1426
    args = getComingSoonCatalogIds_args()
1427
    args.beginIndex = beginIndex
1428
    args.totalItems = totalItems
1429
    args.brand = brand
1430
    args.category = category
1431
    args.write(self._oprot)
1432
    self._oprot.writeMessageEnd()
1433
    self._oprot.trans.flush()
1434
 
1435
  def recv_getComingSoonCatalogIds(self, ):
1436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1437
    if mtype == TMessageType.EXCEPTION:
1438
      x = TApplicationException()
1439
      x.read(self._iprot)
1440
      self._iprot.readMessageEnd()
1441
      raise x
1442
    result = getComingSoonCatalogIds_result()
1443
    result.read(self._iprot)
1444
    self._iprot.readMessageEnd()
1445
    if result.success is not None:
1446
      return result.success
1447
    if result.cex is not None:
1448
      raise result.cex
1449
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1450
 
1451
  def getComingSoonCount(self, ):
1452
    self.send_getComingSoonCount()
1453
    return self.recv_getComingSoonCount()
1454
 
1455
  def send_getComingSoonCount(self, ):
1456
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1457
    args = getComingSoonCount_args()
1458
    args.write(self._oprot)
1459
    self._oprot.writeMessageEnd()
1460
    self._oprot.trans.flush()
1461
 
1462
  def recv_getComingSoonCount(self, ):
1463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1464
    if mtype == TMessageType.EXCEPTION:
1465
      x = TApplicationException()
1466
      x.read(self._iprot)
1467
      self._iprot.readMessageEnd()
1468
      raise x
1469
    result = getComingSoonCount_result()
1470
    result.read(self._iprot)
1471
    self._iprot.readMessageEnd()
1472
    if result.success is not None:
1473
      return result.success
1474
    if result.cex is not None:
1475
      raise result.cex
1476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1477
 
1478
  def getLatestArrivals(self, ):
1479
    """
1480
    Returns a list of items sorted in the descending order by start date.
1481
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1482
    """
1483
    self.send_getLatestArrivals()
1484
    return self.recv_getLatestArrivals()
1485
 
1486
  def send_getLatestArrivals(self, ):
1487
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1488
    args = getLatestArrivals_args()
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_getLatestArrivals(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = getLatestArrivals_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.success is not None:
1504
      return result.success
1505
    if result.isex is not None:
1506
      raise result.isex
1507
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1508
 
1509
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1510
    """
1511
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1512
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1513
 
1514
    Parameters:
1515
     - beginIndex
1516
     - totalItems
1517
     - brand
1518
     - categories
1519
    """
1520
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1521
    return self.recv_getLatestArrivalsCatalogIds()
1522
 
1523
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1524
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1525
    args = getLatestArrivalsCatalogIds_args()
1526
    args.beginIndex = beginIndex
1527
    args.totalItems = totalItems
1528
    args.brand = brand
1529
    args.categories = categories
1530
    args.write(self._oprot)
1531
    self._oprot.writeMessageEnd()
1532
    self._oprot.trans.flush()
1533
 
1534
  def recv_getLatestArrivalsCatalogIds(self, ):
1535
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1536
    if mtype == TMessageType.EXCEPTION:
1537
      x = TApplicationException()
1538
      x.read(self._iprot)
1539
      self._iprot.readMessageEnd()
1540
      raise x
1541
    result = getLatestArrivalsCatalogIds_result()
1542
    result.read(self._iprot)
1543
    self._iprot.readMessageEnd()
1544
    if result.success is not None:
1545
      return result.success
1546
    if result.cex is not None:
1547
      raise result.cex
1548
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1549
 
1550
  def getLatestArrivalsCount(self, ):
1551
    """
1552
    Get the total number of latest arrivals we are willing to show.
1553
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1554
    """
1555
    self.send_getLatestArrivalsCount()
1556
    return self.recv_getLatestArrivalsCount()
1557
 
1558
  def send_getLatestArrivalsCount(self, ):
1559
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1560
    args = getLatestArrivalsCount_args()
1561
    args.write(self._oprot)
1562
    self._oprot.writeMessageEnd()
1563
    self._oprot.trans.flush()
1564
 
1565
  def recv_getLatestArrivalsCount(self, ):
1566
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1567
    if mtype == TMessageType.EXCEPTION:
1568
      x = TApplicationException()
1569
      x.read(self._iprot)
1570
      self._iprot.readMessageEnd()
1571
      raise x
1572
    result = getLatestArrivalsCount_result()
1573
    result.read(self._iprot)
1574
    self._iprot.readMessageEnd()
1575
    if result.success is not None:
1576
      return result.success
1577
    if result.cex is not None:
1578
      raise result.cex
1579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1580
 
1581
  def generateNewEntityID(self, ):
1582
    self.send_generateNewEntityID()
1583
    return self.recv_generateNewEntityID()
1584
 
1585
  def send_generateNewEntityID(self, ):
1586
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1587
    args = generateNewEntityID_args()
1588
    args.write(self._oprot)
1589
    self._oprot.writeMessageEnd()
1590
    self._oprot.trans.flush()
1591
 
1592
  def recv_generateNewEntityID(self, ):
1593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1594
    if mtype == TMessageType.EXCEPTION:
1595
      x = TApplicationException()
1596
      x.read(self._iprot)
1597
      self._iprot.readMessageEnd()
1598
      raise x
1599
    result = generateNewEntityID_result()
1600
    result.read(self._iprot)
1601
    self._iprot.readMessageEnd()
1602
    if result.success is not None:
1603
      return result.success
1604
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1605
 
1606
  def addCategory(self, category):
1607
    """
1608
    All category related functions
1609
 
1610
    Parameters:
1611
     - category
1612
    """
1613
    self.send_addCategory(category)
1614
    return self.recv_addCategory()
1615
 
1616
  def send_addCategory(self, category):
1617
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1618
    args = addCategory_args()
1619
    args.category = category
1620
    args.write(self._oprot)
1621
    self._oprot.writeMessageEnd()
1622
    self._oprot.trans.flush()
1623
 
1624
  def recv_addCategory(self, ):
1625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1626
    if mtype == TMessageType.EXCEPTION:
1627
      x = TApplicationException()
1628
      x.read(self._iprot)
1629
      self._iprot.readMessageEnd()
1630
      raise x
1631
    result = addCategory_result()
1632
    result.read(self._iprot)
1633
    self._iprot.readMessageEnd()
1634
    if result.success is not None:
1635
      return result.success
1636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1637
 
1638
  def getCategory(self, id):
1639
    """
1640
    Parameters:
1641
     - id
1642
    """
1643
    self.send_getCategory(id)
1644
    return self.recv_getCategory()
1645
 
1646
  def send_getCategory(self, id):
1647
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1648
    args = getCategory_args()
1649
    args.id = id
1650
    args.write(self._oprot)
1651
    self._oprot.writeMessageEnd()
1652
    self._oprot.trans.flush()
1653
 
1654
  def recv_getCategory(self, ):
1655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1656
    if mtype == TMessageType.EXCEPTION:
1657
      x = TApplicationException()
1658
      x.read(self._iprot)
1659
      self._iprot.readMessageEnd()
1660
      raise x
1661
    result = getCategory_result()
1662
    result.read(self._iprot)
1663
    self._iprot.readMessageEnd()
1664
    if result.success is not None:
1665
      return result.success
1666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1667
 
1668
  def getAllCategories(self, ):
1669
    self.send_getAllCategories()
1670
    return self.recv_getAllCategories()
1671
 
1672
  def send_getAllCategories(self, ):
1673
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1674
    args = getAllCategories_args()
1675
    args.write(self._oprot)
1676
    self._oprot.writeMessageEnd()
1677
    self._oprot.trans.flush()
1678
 
1679
  def recv_getAllCategories(self, ):
1680
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1681
    if mtype == TMessageType.EXCEPTION:
1682
      x = TApplicationException()
1683
      x.read(self._iprot)
1684
      self._iprot.readMessageEnd()
1685
      raise x
1686
    result = getAllCategories_result()
1687
    result.read(self._iprot)
1688
    self._iprot.readMessageEnd()
1689
    if result.success is not None:
1690
      return result.success
1691
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1692
 
1693
  def getAllSimilarItems(self, itemId):
1694
    """
1695
    Returns the list of similar items.
1696
 
1697
    Parameters:
1698
     - itemId
1699
    """
1700
    self.send_getAllSimilarItems(itemId)
1701
    return self.recv_getAllSimilarItems()
1702
 
1703
  def send_getAllSimilarItems(self, itemId):
1704
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1705
    args = getAllSimilarItems_args()
1706
    args.itemId = itemId
1707
    args.write(self._oprot)
1708
    self._oprot.writeMessageEnd()
1709
    self._oprot.trans.flush()
1710
 
1711
  def recv_getAllSimilarItems(self, ):
1712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1713
    if mtype == TMessageType.EXCEPTION:
1714
      x = TApplicationException()
1715
      x.read(self._iprot)
1716
      self._iprot.readMessageEnd()
1717
      raise x
1718
    result = getAllSimilarItems_result()
1719
    result.read(self._iprot)
1720
    self._iprot.readMessageEnd()
1721
    if result.success is not None:
1722
      return result.success
1723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1724
 
1725
  def addSimilarItem(self, itemId, catalogItemId):
1726
    """
1727
    Adds similar item.
1728
 
1729
    Parameters:
1730
     - itemId
1731
     - catalogItemId
1732
    """
1733
    self.send_addSimilarItem(itemId, catalogItemId)
1734
    return self.recv_addSimilarItem()
1735
 
1736
  def send_addSimilarItem(self, itemId, catalogItemId):
1737
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1738
    args = addSimilarItem_args()
1739
    args.itemId = itemId
1740
    args.catalogItemId = catalogItemId
1741
    args.write(self._oprot)
1742
    self._oprot.writeMessageEnd()
1743
    self._oprot.trans.flush()
1744
 
1745
  def recv_addSimilarItem(self, ):
1746
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1747
    if mtype == TMessageType.EXCEPTION:
1748
      x = TApplicationException()
1749
      x.read(self._iprot)
1750
      self._iprot.readMessageEnd()
1751
      raise x
1752
    result = addSimilarItem_result()
1753
    result.read(self._iprot)
1754
    self._iprot.readMessageEnd()
1755
    if result.success is not None:
1756
      return result.success
1757
    if result.cex is not None:
1758
      raise result.cex
1759
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1760
 
6512 kshitij.so 1761
  def addTag(self, displayName, itemId):
1762
    """
1763
    Tag Related
1764
 
1765
    Parameters:
1766
     - displayName
1767
     - itemId
1768
    """
1769
    self.send_addTag(displayName, itemId)
1770
    return self.recv_addTag()
1771
 
1772
  def send_addTag(self, displayName, itemId):
1773
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1774
    args = addTag_args()
1775
    args.displayName = displayName
1776
    args.itemId = itemId
1777
    args.write(self._oprot)
1778
    self._oprot.writeMessageEnd()
1779
    self._oprot.trans.flush()
1780
 
1781
  def recv_addTag(self, ):
1782
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1783
    if mtype == TMessageType.EXCEPTION:
1784
      x = TApplicationException()
1785
      x.read(self._iprot)
1786
      self._iprot.readMessageEnd()
1787
      raise x
1788
    result = addTag_result()
1789
    result.read(self._iprot)
1790
    self._iprot.readMessageEnd()
1791
    if result.success is not None:
1792
      return result.success
1793
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1794
 
1795
  def deleteEntityTag(self, displayName, itemId):
1796
    """
1797
    Parameters:
1798
     - displayName
1799
     - itemId
1800
    """
1801
    self.send_deleteEntityTag(displayName, itemId)
1802
    return self.recv_deleteEntityTag()
1803
 
1804
  def send_deleteEntityTag(self, displayName, itemId):
1805
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1806
    args = deleteEntityTag_args()
1807
    args.displayName = displayName
1808
    args.itemId = itemId
1809
    args.write(self._oprot)
1810
    self._oprot.writeMessageEnd()
1811
    self._oprot.trans.flush()
1812
 
1813
  def recv_deleteEntityTag(self, ):
1814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1815
    if mtype == TMessageType.EXCEPTION:
1816
      x = TApplicationException()
1817
      x.read(self._iprot)
1818
      self._iprot.readMessageEnd()
1819
      raise x
1820
    result = deleteEntityTag_result()
1821
    result.read(self._iprot)
1822
    self._iprot.readMessageEnd()
1823
    if result.success is not None:
1824
      return result.success
1825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1826
 
1827
  def deleteTag(self, displayName):
1828
    """
1829
    Parameters:
1830
     - displayName
1831
    """
1832
    self.send_deleteTag(displayName)
1833
    return self.recv_deleteTag()
1834
 
1835
  def send_deleteTag(self, displayName):
1836
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1837
    args = deleteTag_args()
1838
    args.displayName = displayName
1839
    args.write(self._oprot)
1840
    self._oprot.writeMessageEnd()
1841
    self._oprot.trans.flush()
1842
 
1843
  def recv_deleteTag(self, ):
1844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1845
    if mtype == TMessageType.EXCEPTION:
1846
      x = TApplicationException()
1847
      x.read(self._iprot)
1848
      self._iprot.readMessageEnd()
1849
      raise x
1850
    result = deleteTag_result()
1851
    result.read(self._iprot)
1852
    self._iprot.readMessageEnd()
1853
    if result.success is not None:
1854
      return result.success
1855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1856
 
1857
  def getAllTags(self, ):
1858
    self.send_getAllTags()
1859
    return self.recv_getAllTags()
1860
 
1861
  def send_getAllTags(self, ):
1862
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1863
    args = getAllTags_args()
1864
    args.write(self._oprot)
1865
    self._oprot.writeMessageEnd()
1866
    self._oprot.trans.flush()
1867
 
1868
  def recv_getAllTags(self, ):
1869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1870
    if mtype == TMessageType.EXCEPTION:
1871
      x = TApplicationException()
1872
      x.read(self._iprot)
1873
      self._iprot.readMessageEnd()
1874
      raise x
1875
    result = getAllTags_result()
1876
    result.read(self._iprot)
1877
    self._iprot.readMessageEnd()
1878
    if result.success is not None:
1879
      return result.success
1880
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1881
 
1882
  def getAllEntitiesByTagName(self, displayName):
1883
    """
1884
    Parameters:
1885
     - displayName
1886
    """
1887
    self.send_getAllEntitiesByTagName(displayName)
1888
    return self.recv_getAllEntitiesByTagName()
1889
 
1890
  def send_getAllEntitiesByTagName(self, displayName):
1891
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1892
    args = getAllEntitiesByTagName_args()
1893
    args.displayName = displayName
1894
    args.write(self._oprot)
1895
    self._oprot.writeMessageEnd()
1896
    self._oprot.trans.flush()
1897
 
1898
  def recv_getAllEntitiesByTagName(self, ):
1899
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1900
    if mtype == TMessageType.EXCEPTION:
1901
      x = TApplicationException()
1902
      x.read(self._iprot)
1903
      self._iprot.readMessageEnd()
1904
      raise x
1905
    result = getAllEntitiesByTagName_result()
1906
    result.read(self._iprot)
1907
    self._iprot.readMessageEnd()
1908
    if result.success is not None:
1909
      return result.success
1910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1911
 
6845 amit.gupta 1912
  def getAllEntityTags(self, ):
1913
    self.send_getAllEntityTags()
1914
    return self.recv_getAllEntityTags()
1915
 
1916
  def send_getAllEntityTags(self, ):
1917
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
1918
    args = getAllEntityTags_args()
1919
    args.write(self._oprot)
1920
    self._oprot.writeMessageEnd()
1921
    self._oprot.trans.flush()
1922
 
1923
  def recv_getAllEntityTags(self, ):
1924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1925
    if mtype == TMessageType.EXCEPTION:
1926
      x = TApplicationException()
1927
      x.read(self._iprot)
1928
      self._iprot.readMessageEnd()
1929
      raise x
1930
    result = getAllEntityTags_result()
1931
    result.read(self._iprot)
1932
    self._iprot.readMessageEnd()
1933
    if result.success is not None:
1934
      return result.success
1935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1936
 
6850 kshitij.so 1937
  def addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1938
    """
1939
    Parameters:
1940
     - bannerName
1941
     - imageName
1942
     - link
1943
     - priority
1944
     - isActive
1945
     - hasMap
1946
    """
1947
    self.send_addBanner(bannerName, imageName, link, priority, isActive, hasMap)
1948
    return self.recv_addBanner()
1949
 
1950
  def send_addBanner(self, bannerName, imageName, link, priority, isActive, hasMap):
1951
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
1952
    args = addBanner_args()
1953
    args.bannerName = bannerName
1954
    args.imageName = imageName
1955
    args.link = link
1956
    args.priority = priority
1957
    args.isActive = isActive
1958
    args.hasMap = hasMap
1959
    args.write(self._oprot)
1960
    self._oprot.writeMessageEnd()
1961
    self._oprot.trans.flush()
1962
 
1963
  def recv_addBanner(self, ):
1964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1965
    if mtype == TMessageType.EXCEPTION:
1966
      x = TApplicationException()
1967
      x.read(self._iprot)
1968
      self._iprot.readMessageEnd()
1969
      raise x
1970
    result = addBanner_result()
1971
    result.read(self._iprot)
1972
    self._iprot.readMessageEnd()
1973
    if result.success is not None:
1974
      return result.success
1975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1976
 
1977
  def getAllBanners(self, ):
1978
    self.send_getAllBanners()
1979
    return self.recv_getAllBanners()
1980
 
1981
  def send_getAllBanners(self, ):
1982
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
1983
    args = getAllBanners_args()
1984
    args.write(self._oprot)
1985
    self._oprot.writeMessageEnd()
1986
    self._oprot.trans.flush()
1987
 
1988
  def recv_getAllBanners(self, ):
1989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1990
    if mtype == TMessageType.EXCEPTION:
1991
      x = TApplicationException()
1992
      x.read(self._iprot)
1993
      self._iprot.readMessageEnd()
1994
      raise x
1995
    result = getAllBanners_result()
1996
    result.read(self._iprot)
1997
    self._iprot.readMessageEnd()
1998
    if result.success is not None:
1999
      return result.success
2000
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2001
 
2002
  def deleteBanner(self, bannerName):
2003
    """
2004
    Parameters:
2005
     - bannerName
2006
    """
2007
    self.send_deleteBanner(bannerName)
2008
    return self.recv_deleteBanner()
2009
 
2010
  def send_deleteBanner(self, bannerName):
2011
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2012
    args = deleteBanner_args()
2013
    args.bannerName = bannerName
2014
    args.write(self._oprot)
2015
    self._oprot.writeMessageEnd()
2016
    self._oprot.trans.flush()
2017
 
2018
  def recv_deleteBanner(self, ):
2019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2020
    if mtype == TMessageType.EXCEPTION:
2021
      x = TApplicationException()
2022
      x.read(self._iprot)
2023
      self._iprot.readMessageEnd()
2024
      raise x
2025
    result = deleteBanner_result()
2026
    result.read(self._iprot)
2027
    self._iprot.readMessageEnd()
2028
    if result.success is not None:
2029
      return result.success
2030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2031
 
2032
  def getBannerDetails(self, bannerName):
2033
    """
2034
    Parameters:
2035
     - bannerName
2036
    """
2037
    self.send_getBannerDetails(bannerName)
2038
    return self.recv_getBannerDetails()
2039
 
2040
  def send_getBannerDetails(self, bannerName):
2041
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2042
    args = getBannerDetails_args()
2043
    args.bannerName = bannerName
2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
2048
  def recv_getBannerDetails(self, ):
2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
2055
    result = getBannerDetails_result()
2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
2058
    if result.success is not None:
2059
      return result.success
2060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2061
 
2062
  def getActiveBanners(self, ):
2063
    self.send_getActiveBanners()
2064
    return self.recv_getActiveBanners()
2065
 
2066
  def send_getActiveBanners(self, ):
2067
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2068
    args = getActiveBanners_args()
2069
    args.write(self._oprot)
2070
    self._oprot.writeMessageEnd()
2071
    self._oprot.trans.flush()
2072
 
2073
  def recv_getActiveBanners(self, ):
2074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2075
    if mtype == TMessageType.EXCEPTION:
2076
      x = TApplicationException()
2077
      x.read(self._iprot)
2078
      self._iprot.readMessageEnd()
2079
      raise x
2080
    result = getActiveBanners_result()
2081
    result.read(self._iprot)
2082
    self._iprot.readMessageEnd()
2083
    if result.success is not None:
2084
      return result.success
2085
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2086
 
6849 kshitij.so 2087
  def addBannerMap(self, bannerName, mapLink, coordinates):
2088
    """
2089
    Parameters:
2090
     - bannerName
2091
     - mapLink
2092
     - coordinates
2093
    """
2094
    self.send_addBannerMap(bannerName, mapLink, coordinates)
2095
    return self.recv_addBannerMap()
2096
 
2097
  def send_addBannerMap(self, bannerName, mapLink, coordinates):
2098
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2099
    args = addBannerMap_args()
2100
    args.bannerName = bannerName
2101
    args.mapLink = mapLink
2102
    args.coordinates = coordinates
2103
    args.write(self._oprot)
2104
    self._oprot.writeMessageEnd()
2105
    self._oprot.trans.flush()
2106
 
2107
  def recv_addBannerMap(self, ):
2108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2109
    if mtype == TMessageType.EXCEPTION:
2110
      x = TApplicationException()
2111
      x.read(self._iprot)
2112
      self._iprot.readMessageEnd()
2113
      raise x
2114
    result = addBannerMap_result()
2115
    result.read(self._iprot)
2116
    self._iprot.readMessageEnd()
2117
    if result.success is not None:
2118
      return result.success
2119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2120
 
2121
  def deleteBannerMap(self, bannerName):
2122
    """
2123
    Parameters:
2124
     - bannerName
2125
    """
2126
    self.send_deleteBannerMap(bannerName)
2127
    return self.recv_deleteBannerMap()
2128
 
2129
  def send_deleteBannerMap(self, bannerName):
2130
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2131
    args = deleteBannerMap_args()
2132
    args.bannerName = bannerName
2133
    args.write(self._oprot)
2134
    self._oprot.writeMessageEnd()
2135
    self._oprot.trans.flush()
2136
 
2137
  def recv_deleteBannerMap(self, ):
2138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2139
    if mtype == TMessageType.EXCEPTION:
2140
      x = TApplicationException()
2141
      x.read(self._iprot)
2142
      self._iprot.readMessageEnd()
2143
      raise x
2144
    result = deleteBannerMap_result()
2145
    result.read(self._iprot)
2146
    self._iprot.readMessageEnd()
2147
    if result.success is not None:
2148
      return result.success
2149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2150
 
2151
  def getBannerMapDetails(self, bannerName):
2152
    """
2153
    Parameters:
2154
     - bannerName
2155
    """
2156
    self.send_getBannerMapDetails(bannerName)
2157
    return self.recv_getBannerMapDetails()
2158
 
2159
  def send_getBannerMapDetails(self, bannerName):
2160
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2161
    args = getBannerMapDetails_args()
2162
    args.bannerName = bannerName
2163
    args.write(self._oprot)
2164
    self._oprot.writeMessageEnd()
2165
    self._oprot.trans.flush()
2166
 
2167
  def recv_getBannerMapDetails(self, ):
2168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2169
    if mtype == TMessageType.EXCEPTION:
2170
      x = TApplicationException()
2171
      x.read(self._iprot)
2172
      self._iprot.readMessageEnd()
2173
      raise x
2174
    result = getBannerMapDetails_result()
2175
    result.read(self._iprot)
2176
    self._iprot.readMessageEnd()
2177
    if result.success is not None:
2178
      return result.success
2179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2180
 
5944 mandeep.dh 2181
  def deleteSimilarItem(self, itemId, catalogItemId):
2182
    """
2183
    Delete similar item.
2184
 
2185
    Parameters:
2186
     - itemId
2187
     - catalogItemId
2188
    """
2189
    self.send_deleteSimilarItem(itemId, catalogItemId)
2190
    return self.recv_deleteSimilarItem()
2191
 
2192
  def send_deleteSimilarItem(self, itemId, catalogItemId):
2193
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
2194
    args = deleteSimilarItem_args()
2195
    args.itemId = itemId
2196
    args.catalogItemId = catalogItemId
2197
    args.write(self._oprot)
2198
    self._oprot.writeMessageEnd()
2199
    self._oprot.trans.flush()
2200
 
2201
  def recv_deleteSimilarItem(self, ):
2202
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2203
    if mtype == TMessageType.EXCEPTION:
2204
      x = TApplicationException()
2205
      x.read(self._iprot)
2206
      self._iprot.readMessageEnd()
2207
      raise x
2208
    result = deleteSimilarItem_result()
2209
    result.read(self._iprot)
2210
    self._iprot.readMessageEnd()
2211
    if result.success is not None:
2212
      return result.success
2213
    if result.cex is not None:
2214
      raise result.cex
2215
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
2216
 
2217
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
2218
    """
2219
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2220
    If yes, returns the itemId else returns 0
2221
 
2222
    Parameters:
2223
     - brand
2224
     - modelNumber
2225
     - modelName
2226
     - color
2227
    """
2228
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
2229
    return self.recv_checkSimilarItem()
2230
 
2231
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
2232
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
2233
    args = checkSimilarItem_args()
2234
    args.brand = brand
2235
    args.modelNumber = modelNumber
2236
    args.modelName = modelName
2237
    args.color = color
2238
    args.write(self._oprot)
2239
    self._oprot.writeMessageEnd()
2240
    self._oprot.trans.flush()
2241
 
2242
  def recv_checkSimilarItem(self, ):
2243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2244
    if mtype == TMessageType.EXCEPTION:
2245
      x = TApplicationException()
2246
      x.read(self._iprot)
2247
      self._iprot.readMessageEnd()
2248
      raise x
2249
    result = checkSimilarItem_result()
2250
    result.read(self._iprot)
2251
    self._iprot.readMessageEnd()
2252
    if result.success is not None:
2253
      return result.success
2254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
2255
 
2256
  def validateRiskyStatus(self, itemId):
2257
    """
2258
    Check wether item is risky and change status if inventory is not available for risky items
2259
 
2260
    Parameters:
2261
     - itemId
2262
    """
2263
    self.send_validateRiskyStatus(itemId)
2264
    self.recv_validateRiskyStatus()
2265
 
2266
  def send_validateRiskyStatus(self, itemId):
2267
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
2268
    args = validateRiskyStatus_args()
2269
    args.itemId = itemId
2270
    args.write(self._oprot)
2271
    self._oprot.writeMessageEnd()
2272
    self._oprot.trans.flush()
2273
 
2274
  def recv_validateRiskyStatus(self, ):
2275
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2276
    if mtype == TMessageType.EXCEPTION:
2277
      x = TApplicationException()
2278
      x.read(self._iprot)
2279
      self._iprot.readMessageEnd()
2280
      raise x
2281
    result = validateRiskyStatus_result()
2282
    result.read(self._iprot)
2283
    self._iprot.readMessageEnd()
2284
    return
2285
 
2286
  def changeItemRiskyFlag(self, itemId, risky):
2287
    """
2288
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
2289
 
2290
    Parameters:
2291
     - itemId
2292
     - risky
2293
    """
2294
    self.send_changeItemRiskyFlag(itemId, risky)
2295
    self.recv_changeItemRiskyFlag()
2296
 
2297
  def send_changeItemRiskyFlag(self, itemId, risky):
2298
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
2299
    args = changeItemRiskyFlag_args()
2300
    args.itemId = itemId
2301
    args.risky = risky
2302
    args.write(self._oprot)
2303
    self._oprot.writeMessageEnd()
2304
    self._oprot.trans.flush()
2305
 
2306
  def recv_changeItemRiskyFlag(self, ):
2307
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2308
    if mtype == TMessageType.EXCEPTION:
2309
      x = TApplicationException()
2310
      x.read(self._iprot)
2311
      self._iprot.readMessageEnd()
2312
      raise x
2313
    result = changeItemRiskyFlag_result()
2314
    result.read(self._iprot)
2315
    self._iprot.readMessageEnd()
2316
    return
2317
 
2318
  def getItemsByRiskyFlag(self, ):
2319
    """
2320
    Returns list of items marked as risky.
2321
    """
2322
    self.send_getItemsByRiskyFlag()
2323
    return self.recv_getItemsByRiskyFlag()
2324
 
2325
  def send_getItemsByRiskyFlag(self, ):
2326
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
2327
    args = getItemsByRiskyFlag_args()
2328
    args.write(self._oprot)
2329
    self._oprot.writeMessageEnd()
2330
    self._oprot.trans.flush()
2331
 
2332
  def recv_getItemsByRiskyFlag(self, ):
2333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2334
    if mtype == TMessageType.EXCEPTION:
2335
      x = TApplicationException()
2336
      x.read(self._iprot)
2337
      self._iprot.readMessageEnd()
2338
      raise x
2339
    result = getItemsByRiskyFlag_result()
2340
    result.read(self._iprot)
2341
    self._iprot.readMessageEnd()
2342
    if result.success is not None:
2343
      return result.success
2344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
2345
 
2346
  def getItemsForMasterSheet(self, category, brand):
2347
    """
2348
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2349
 
2350
    Parameters:
2351
     - category
2352
     - brand
2353
    """
2354
    self.send_getItemsForMasterSheet(category, brand)
2355
    return self.recv_getItemsForMasterSheet()
2356
 
2357
  def send_getItemsForMasterSheet(self, category, brand):
2358
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
2359
    args = getItemsForMasterSheet_args()
2360
    args.category = category
2361
    args.brand = brand
2362
    args.write(self._oprot)
2363
    self._oprot.writeMessageEnd()
2364
    self._oprot.trans.flush()
2365
 
2366
  def recv_getItemsForMasterSheet(self, ):
2367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2368
    if mtype == TMessageType.EXCEPTION:
2369
      x = TApplicationException()
2370
      x.read(self._iprot)
2371
      self._iprot.readMessageEnd()
2372
      raise x
2373
    result = getItemsForMasterSheet_result()
2374
    result.read(self._iprot)
2375
    self._iprot.readMessageEnd()
2376
    if result.success is not None:
2377
      return result.success
2378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2379
 
2380
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2381
    """
2382
    Returns list of catalog ids of items with same similarity index as of the given itemId
2383
 
2384
    Parameters:
2385
     - beginIndex
2386
     - totalItems
2387
     - itemId
2388
    """
2389
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2390
    return self.recv_getSimilarItemsCatalogIds()
2391
 
2392
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2393
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2394
    args = getSimilarItemsCatalogIds_args()
2395
    args.beginIndex = beginIndex
2396
    args.totalItems = totalItems
2397
    args.itemId = itemId
2398
    args.write(self._oprot)
2399
    self._oprot.writeMessageEnd()
2400
    self._oprot.trans.flush()
2401
 
2402
  def recv_getSimilarItemsCatalogIds(self, ):
2403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2404
    if mtype == TMessageType.EXCEPTION:
2405
      x = TApplicationException()
2406
      x.read(self._iprot)
2407
      self._iprot.readMessageEnd()
2408
      raise x
2409
    result = getSimilarItemsCatalogIds_result()
2410
    result.read(self._iprot)
2411
    self._iprot.readMessageEnd()
2412
    if result.success is not None:
2413
      return result.success
2414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2415
 
2416
  def addProductNotification(self, itemId, email):
2417
    """
2418
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2419
 
2420
    Parameters:
2421
     - itemId
2422
     - email
2423
    """
2424
    self.send_addProductNotification(itemId, email)
2425
    return self.recv_addProductNotification()
2426
 
2427
  def send_addProductNotification(self, itemId, email):
2428
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2429
    args = addProductNotification_args()
2430
    args.itemId = itemId
2431
    args.email = email
2432
    args.write(self._oprot)
2433
    self._oprot.writeMessageEnd()
2434
    self._oprot.trans.flush()
2435
 
2436
  def recv_addProductNotification(self, ):
2437
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2438
    if mtype == TMessageType.EXCEPTION:
2439
      x = TApplicationException()
2440
      x.read(self._iprot)
2441
      self._iprot.readMessageEnd()
2442
      raise x
2443
    result = addProductNotification_result()
2444
    result.read(self._iprot)
2445
    self._iprot.readMessageEnd()
2446
    if result.success is not None:
2447
      return result.success
2448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2449
 
2450
  def sendProductNotifications(self, ):
2451
    """
2452
    Send the product notifications to the users for items which has stock.
2453
    """
2454
    self.send_sendProductNotifications()
2455
    return self.recv_sendProductNotifications()
2456
 
2457
  def send_sendProductNotifications(self, ):
2458
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2459
    args = sendProductNotifications_args()
2460
    args.write(self._oprot)
2461
    self._oprot.writeMessageEnd()
2462
    self._oprot.trans.flush()
2463
 
2464
  def recv_sendProductNotifications(self, ):
2465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2466
    if mtype == TMessageType.EXCEPTION:
2467
      x = TApplicationException()
2468
      x.read(self._iprot)
2469
      self._iprot.readMessageEnd()
2470
      raise x
2471
    result = sendProductNotifications_result()
2472
    result.read(self._iprot)
2473
    self._iprot.readMessageEnd()
2474
    if result.success is not None:
2475
      return result.success
2476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2477
 
2478
  def getAllBrandsByCategory(self, categoryId):
2479
    """
2480
    Returns list of brand names for a given category Id
2481
 
2482
    Parameters:
2483
     - categoryId
2484
    """
2485
    self.send_getAllBrandsByCategory(categoryId)
2486
    return self.recv_getAllBrandsByCategory()
2487
 
2488
  def send_getAllBrandsByCategory(self, categoryId):
2489
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2490
    args = getAllBrandsByCategory_args()
2491
    args.categoryId = categoryId
2492
    args.write(self._oprot)
2493
    self._oprot.writeMessageEnd()
2494
    self._oprot.trans.flush()
2495
 
2496
  def recv_getAllBrandsByCategory(self, ):
2497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2498
    if mtype == TMessageType.EXCEPTION:
2499
      x = TApplicationException()
2500
      x.read(self._iprot)
2501
      self._iprot.readMessageEnd()
2502
      raise x
2503
    result = getAllBrandsByCategory_result()
2504
    result.read(self._iprot)
2505
    self._iprot.readMessageEnd()
2506
    if result.success is not None:
2507
      return result.success
2508
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2509
 
2510
  def getAllBrands(self, ):
2511
    """
2512
    Returns list of brand names
2513
    """
2514
    self.send_getAllBrands()
2515
    return self.recv_getAllBrands()
2516
 
2517
  def send_getAllBrands(self, ):
2518
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2519
    args = getAllBrands_args()
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_getAllBrands(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = getAllBrands_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    if result.success is not None:
2535
      return result.success
2536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2537
 
2538
  def getAllSources(self, ):
2539
    """
2540
    Return list of all sources
2541
    """
2542
    self.send_getAllSources()
2543
    return self.recv_getAllSources()
2544
 
2545
  def send_getAllSources(self, ):
2546
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2547
    args = getAllSources_args()
2548
    args.write(self._oprot)
2549
    self._oprot.writeMessageEnd()
2550
    self._oprot.trans.flush()
2551
 
2552
  def recv_getAllSources(self, ):
2553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2554
    if mtype == TMessageType.EXCEPTION:
2555
      x = TApplicationException()
2556
      x.read(self._iprot)
2557
      self._iprot.readMessageEnd()
2558
      raise x
2559
    result = getAllSources_result()
2560
    result.read(self._iprot)
2561
    self._iprot.readMessageEnd()
2562
    if result.success is not None:
2563
      return result.success
2564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2565
 
2566
  def getItemPricingBySource(self, itemId, sourceId):
2567
    """
2568
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2569
 
2570
    Parameters:
2571
     - itemId
2572
     - sourceId
2573
    """
2574
    self.send_getItemPricingBySource(itemId, sourceId)
2575
    return self.recv_getItemPricingBySource()
2576
 
2577
  def send_getItemPricingBySource(self, itemId, sourceId):
2578
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2579
    args = getItemPricingBySource_args()
2580
    args.itemId = itemId
2581
    args.sourceId = sourceId
2582
    args.write(self._oprot)
2583
    self._oprot.writeMessageEnd()
2584
    self._oprot.trans.flush()
2585
 
2586
  def recv_getItemPricingBySource(self, ):
2587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2588
    if mtype == TMessageType.EXCEPTION:
2589
      x = TApplicationException()
2590
      x.read(self._iprot)
2591
      self._iprot.readMessageEnd()
2592
      raise x
2593
    result = getItemPricingBySource_result()
2594
    result.read(self._iprot)
2595
    self._iprot.readMessageEnd()
2596
    if result.success is not None:
2597
      return result.success
2598
    if result.cex is not None:
2599
      raise result.cex
2600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2601
 
2602
  def addSourceItemPricing(self, sourceItemPricing):
2603
    """
2604
    Adds prices to be displayed corresponding to the item if user comes from a source.
2605
    If item is not found or source is not found, it will throw exception.
2606
 
2607
    Parameters:
2608
     - sourceItemPricing
2609
    """
2610
    self.send_addSourceItemPricing(sourceItemPricing)
2611
    self.recv_addSourceItemPricing()
2612
 
2613
  def send_addSourceItemPricing(self, sourceItemPricing):
2614
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2615
    args = addSourceItemPricing_args()
2616
    args.sourceItemPricing = sourceItemPricing
2617
    args.write(self._oprot)
2618
    self._oprot.writeMessageEnd()
2619
    self._oprot.trans.flush()
2620
 
2621
  def recv_addSourceItemPricing(self, ):
2622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2623
    if mtype == TMessageType.EXCEPTION:
2624
      x = TApplicationException()
2625
      x.read(self._iprot)
2626
      self._iprot.readMessageEnd()
2627
      raise x
2628
    result = addSourceItemPricing_result()
2629
    result.read(self._iprot)
2630
    self._iprot.readMessageEnd()
2631
    if result.cex is not None:
2632
      raise result.cex
2633
    return
2634
 
2635
  def getAllSourcePricing(self, itemId):
2636
    """
2637
    Returns the list of source pricing information of an item.
2638
    Raises an exception if item not found corresponding to itemId
2639
 
2640
    Parameters:
2641
     - itemId
2642
    """
2643
    self.send_getAllSourcePricing(itemId)
2644
    return self.recv_getAllSourcePricing()
2645
 
2646
  def send_getAllSourcePricing(self, itemId):
2647
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2648
    args = getAllSourcePricing_args()
2649
    args.itemId = itemId
2650
    args.write(self._oprot)
2651
    self._oprot.writeMessageEnd()
2652
    self._oprot.trans.flush()
2653
 
2654
  def recv_getAllSourcePricing(self, ):
2655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2656
    if mtype == TMessageType.EXCEPTION:
2657
      x = TApplicationException()
2658
      x.read(self._iprot)
2659
      self._iprot.readMessageEnd()
2660
      raise x
2661
    result = getAllSourcePricing_result()
2662
    result.read(self._iprot)
2663
    self._iprot.readMessageEnd()
2664
    if result.success is not None:
2665
      return result.success
2666
    if result.cex is not None:
2667
      raise result.cex
2668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2669
 
2670
  def getItemForSource(self, item_id, sourceId):
2671
    """
2672
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2673
 
2674
    Parameters:
2675
     - item_id
2676
     - sourceId
2677
    """
2678
    self.send_getItemForSource(item_id, sourceId)
2679
    return self.recv_getItemForSource()
2680
 
2681
  def send_getItemForSource(self, item_id, sourceId):
2682
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2683
    args = getItemForSource_args()
2684
    args.item_id = item_id
2685
    args.sourceId = sourceId
2686
    args.write(self._oprot)
2687
    self._oprot.writeMessageEnd()
2688
    self._oprot.trans.flush()
2689
 
2690
  def recv_getItemForSource(self, ):
2691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2692
    if mtype == TMessageType.EXCEPTION:
2693
      x = TApplicationException()
2694
      x.read(self._iprot)
2695
      self._iprot.readMessageEnd()
2696
      raise x
2697
    result = getItemForSource_result()
2698
    result.read(self._iprot)
2699
    self._iprot.readMessageEnd()
2700
    if result.success is not None:
2701
      return result.success
2702
    if result.cex is not None:
2703
      raise result.cex
2704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2705
 
2706
  def searchItemsInRange(self, searchTerms, offset, limit):
2707
    """
2708
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2709
 
2710
    Parameters:
2711
     - searchTerms
2712
     - offset
2713
     - limit
2714
    """
2715
    self.send_searchItemsInRange(searchTerms, offset, limit)
2716
    return self.recv_searchItemsInRange()
2717
 
2718
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2719
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2720
    args = searchItemsInRange_args()
2721
    args.searchTerms = searchTerms
2722
    args.offset = offset
2723
    args.limit = limit
2724
    args.write(self._oprot)
2725
    self._oprot.writeMessageEnd()
2726
    self._oprot.trans.flush()
2727
 
2728
  def recv_searchItemsInRange(self, ):
2729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2730
    if mtype == TMessageType.EXCEPTION:
2731
      x = TApplicationException()
2732
      x.read(self._iprot)
2733
      self._iprot.readMessageEnd()
2734
      raise x
2735
    result = searchItemsInRange_result()
2736
    result.read(self._iprot)
2737
    self._iprot.readMessageEnd()
2738
    if result.success is not None:
2739
      return result.success
2740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2741
 
2742
  def getSearchResultCount(self, searchTerms):
2743
    """
2744
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2745
 
2746
    Parameters:
2747
     - searchTerms
2748
    """
2749
    self.send_getSearchResultCount(searchTerms)
2750
    return self.recv_getSearchResultCount()
2751
 
2752
  def send_getSearchResultCount(self, searchTerms):
2753
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2754
    args = getSearchResultCount_args()
2755
    args.searchTerms = searchTerms
2756
    args.write(self._oprot)
2757
    self._oprot.writeMessageEnd()
2758
    self._oprot.trans.flush()
2759
 
2760
  def recv_getSearchResultCount(self, ):
2761
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2762
    if mtype == TMessageType.EXCEPTION:
2763
      x = TApplicationException()
2764
      x.read(self._iprot)
2765
      self._iprot.readMessageEnd()
2766
      raise x
2767
    result = getSearchResultCount_result()
2768
    result.read(self._iprot)
2769
    self._iprot.readMessageEnd()
2770
    if result.success is not None:
2771
      return result.success
2772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2773
 
2774
  def getProductNotifications(self, startDateTime):
2775
    """
2776
    Returns a list of product notifications added after a supplied datetime
2777
 
2778
    Parameters:
2779
     - startDateTime
2780
    """
2781
    self.send_getProductNotifications(startDateTime)
2782
    return self.recv_getProductNotifications()
2783
 
2784
  def send_getProductNotifications(self, startDateTime):
2785
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2786
    args = getProductNotifications_args()
2787
    args.startDateTime = startDateTime
2788
    args.write(self._oprot)
2789
    self._oprot.writeMessageEnd()
2790
    self._oprot.trans.flush()
2791
 
2792
  def recv_getProductNotifications(self, ):
2793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2794
    if mtype == TMessageType.EXCEPTION:
2795
      x = TApplicationException()
2796
      x.read(self._iprot)
2797
      self._iprot.readMessageEnd()
2798
      raise x
2799
    result = getProductNotifications_result()
2800
    result.read(self._iprot)
2801
    self._iprot.readMessageEnd()
2802
    if result.success is not None:
2803
      return result.success
2804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2805
 
2806
  def getProductNotificationRequestCount(self, startDateTime):
2807
    """
2808
    Returns a list of count of requests for product notification against each item
2809
 
2810
    Parameters:
2811
     - startDateTime
2812
    """
2813
    self.send_getProductNotificationRequestCount(startDateTime)
2814
    return self.recv_getProductNotificationRequestCount()
2815
 
2816
  def send_getProductNotificationRequestCount(self, startDateTime):
2817
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2818
    args = getProductNotificationRequestCount_args()
2819
    args.startDateTime = startDateTime
2820
    args.write(self._oprot)
2821
    self._oprot.writeMessageEnd()
2822
    self._oprot.trans.flush()
2823
 
2824
  def recv_getProductNotificationRequestCount(self, ):
2825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2826
    if mtype == TMessageType.EXCEPTION:
2827
      x = TApplicationException()
2828
      x.read(self._iprot)
2829
      self._iprot.readMessageEnd()
2830
      raise x
2831
    result = getProductNotificationRequestCount_result()
2832
    result.read(self._iprot)
2833
    self._iprot.readMessageEnd()
2834
    if result.success is not None:
2835
      return result.success
2836
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2837
 
2838
  def addAuthorizationLog(self, itemId, username, reason):
2839
    """
2840
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2841
 
2842
    Parameters:
2843
     - itemId
2844
     - username
2845
     - reason
2846
    """
2847
    self.send_addAuthorizationLog(itemId, username, reason)
2848
    return self.recv_addAuthorizationLog()
2849
 
2850
  def send_addAuthorizationLog(self, itemId, username, reason):
2851
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2852
    args = addAuthorizationLog_args()
2853
    args.itemId = itemId
2854
    args.username = username
2855
    args.reason = reason
2856
    args.write(self._oprot)
2857
    self._oprot.writeMessageEnd()
2858
    self._oprot.trans.flush()
2859
 
2860
  def recv_addAuthorizationLog(self, ):
2861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2862
    if mtype == TMessageType.EXCEPTION:
2863
      x = TApplicationException()
2864
      x.read(self._iprot)
2865
      self._iprot.readMessageEnd()
2866
      raise x
2867
    result = addAuthorizationLog_result()
2868
    result.read(self._iprot)
2869
    self._iprot.readMessageEnd()
2870
    if result.success is not None:
2871
      return result.success
2872
    if result.cex is not None:
2873
      raise result.cex
2874
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2875
 
2876
  def getClearanceSaleCatalogIds(self, ):
2877
    self.send_getClearanceSaleCatalogIds()
2878
    return self.recv_getClearanceSaleCatalogIds()
2879
 
2880
  def send_getClearanceSaleCatalogIds(self, ):
2881
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2882
    args = getClearanceSaleCatalogIds_args()
2883
    args.write(self._oprot)
2884
    self._oprot.writeMessageEnd()
2885
    self._oprot.trans.flush()
2886
 
2887
  def recv_getClearanceSaleCatalogIds(self, ):
2888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2889
    if mtype == TMessageType.EXCEPTION:
2890
      x = TApplicationException()
2891
      x.read(self._iprot)
2892
      self._iprot.readMessageEnd()
2893
      raise x
2894
    result = getClearanceSaleCatalogIds_result()
2895
    result.read(self._iprot)
2896
    self._iprot.readMessageEnd()
2897
    if result.success is not None:
2898
      return result.success
2899
    if result.cex is not None:
2900
      raise result.cex
2901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2902
 
2903
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2904
    """
2905
    Parameters:
2906
     - catalog_item_id
2907
     - voucherType
2908
     - voucherAmount
2909
    """
2910
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2911
    return self.recv_addupdateVoucherForItem()
2912
 
2913
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2914
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2915
    args = addupdateVoucherForItem_args()
2916
    args.catalog_item_id = catalog_item_id
2917
    args.voucherType = voucherType
2918
    args.voucherAmount = voucherAmount
2919
    args.write(self._oprot)
2920
    self._oprot.writeMessageEnd()
2921
    self._oprot.trans.flush()
2922
 
2923
  def recv_addupdateVoucherForItem(self, ):
2924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2925
    if mtype == TMessageType.EXCEPTION:
2926
      x = TApplicationException()
2927
      x.read(self._iprot)
2928
      self._iprot.readMessageEnd()
2929
      raise x
2930
    result = addupdateVoucherForItem_result()
2931
    result.read(self._iprot)
2932
    self._iprot.readMessageEnd()
2933
    if result.success is not None:
2934
      return result.success
2935
    if result.cex is not None:
2936
      raise result.cex
2937
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2938
 
2939
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2940
    """
2941
    Parameters:
2942
     - catalog_item_id
2943
     - voucherType
2944
    """
2945
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2946
    return self.recv_deleteVoucherForItem()
2947
 
2948
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2949
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2950
    args = deleteVoucherForItem_args()
2951
    args.catalog_item_id = catalog_item_id
2952
    args.voucherType = voucherType
2953
    args.write(self._oprot)
2954
    self._oprot.writeMessageEnd()
2955
    self._oprot.trans.flush()
2956
 
2957
  def recv_deleteVoucherForItem(self, ):
2958
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2959
    if mtype == TMessageType.EXCEPTION:
2960
      x = TApplicationException()
2961
      x.read(self._iprot)
2962
      self._iprot.readMessageEnd()
2963
      raise x
2964
    result = deleteVoucherForItem_result()
2965
    result.read(self._iprot)
2966
    self._iprot.readMessageEnd()
2967
    if result.success is not None:
2968
      return result.success
2969
    if result.cex is not None:
2970
      raise result.cex
2971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2972
 
2973
  def getVoucherAmount(self, itemId, voucherType):
2974
    """
2975
    Parameters:
2976
     - itemId
2977
     - voucherType
2978
    """
2979
    self.send_getVoucherAmount(itemId, voucherType)
2980
    return self.recv_getVoucherAmount()
2981
 
2982
  def send_getVoucherAmount(self, itemId, voucherType):
2983
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2984
    args = getVoucherAmount_args()
2985
    args.itemId = itemId
2986
    args.voucherType = voucherType
2987
    args.write(self._oprot)
2988
    self._oprot.writeMessageEnd()
2989
    self._oprot.trans.flush()
2990
 
2991
  def recv_getVoucherAmount(self, ):
2992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2993
    if mtype == TMessageType.EXCEPTION:
2994
      x = TApplicationException()
2995
      x.read(self._iprot)
2996
      self._iprot.readMessageEnd()
2997
      raise x
2998
    result = getVoucherAmount_result()
2999
    result.read(self._iprot)
3000
    self._iprot.readMessageEnd()
3001
    if result.success is not None:
3002
      return result.success
3003
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3004
 
3005
  def getAllItemVouchers(self, itemId):
3006
    """
3007
    Parameters:
3008
     - itemId
3009
    """
3010
    self.send_getAllItemVouchers(itemId)
3011
    return self.recv_getAllItemVouchers()
3012
 
3013
  def send_getAllItemVouchers(self, itemId):
3014
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3015
    args = getAllItemVouchers_args()
3016
    args.itemId = itemId
3017
    args.write(self._oprot)
3018
    self._oprot.writeMessageEnd()
3019
    self._oprot.trans.flush()
3020
 
3021
  def recv_getAllItemVouchers(self, ):
3022
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3023
    if mtype == TMessageType.EXCEPTION:
3024
      x = TApplicationException()
3025
      x.read(self._iprot)
3026
      self._iprot.readMessageEnd()
3027
      raise x
3028
    result = getAllItemVouchers_result()
3029
    result.read(self._iprot)
3030
    self._iprot.readMessageEnd()
3031
    if result.success is not None:
3032
      return result.success
3033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3034
 
3035
  def isValidCatalogItemId(self, catalog_item_id):
3036
    """
3037
    Parameters:
3038
     - catalog_item_id
3039
    """
3040
    self.send_isValidCatalogItemId(catalog_item_id)
3041
    return self.recv_isValidCatalogItemId()
3042
 
3043
  def send_isValidCatalogItemId(self, catalog_item_id):
3044
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3045
    args = isValidCatalogItemId_args()
3046
    args.catalog_item_id = catalog_item_id
3047
    args.write(self._oprot)
3048
    self._oprot.writeMessageEnd()
3049
    self._oprot.trans.flush()
3050
 
3051
  def recv_isValidCatalogItemId(self, ):
3052
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3053
    if mtype == TMessageType.EXCEPTION:
3054
      x = TApplicationException()
3055
      x.read(self._iprot)
3056
      self._iprot.readMessageEnd()
3057
      raise x
3058
    result = isValidCatalogItemId_result()
3059
    result.read(self._iprot)
3060
    self._iprot.readMessageEnd()
3061
    if result.success is not None:
3062
      return result.success
3063
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3064
 
6039 amit.gupta 3065
  def getVatPercentageForItem(self, itemId, price):
3066
    """
3067
    Parameters:
3068
     - itemId
3069
     - price
3070
    """
3071
    self.send_getVatPercentageForItem(itemId, price)
3072
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3073
 
6039 amit.gupta 3074
  def send_getVatPercentageForItem(self, itemId, price):
3075
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3076
    args = getVatPercentageForItem_args()
3077
    args.itemId = itemId
3078
    args.price = price
3079
    args.write(self._oprot)
3080
    self._oprot.writeMessageEnd()
3081
    self._oprot.trans.flush()
3082
 
3083
  def recv_getVatPercentageForItem(self, ):
3084
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3085
    if mtype == TMessageType.EXCEPTION:
3086
      x = TApplicationException()
3087
      x.read(self._iprot)
3088
      self._iprot.readMessageEnd()
3089
      raise x
3090
    result = getVatPercentageForItem_result()
3091
    result.read(self._iprot)
3092
    self._iprot.readMessageEnd()
3093
    if result.success is not None:
3094
      return result.success
3095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
3096
 
3097
  def getVatAmountForItem(self, itemId, price):
3098
    """
3099
    Parameters:
3100
     - itemId
3101
     - price
3102
    """
3103
    self.send_getVatAmountForItem(itemId, price)
3104
    return self.recv_getVatAmountForItem()
3105
 
3106
  def send_getVatAmountForItem(self, itemId, price):
3107
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
3108
    args = getVatAmountForItem_args()
3109
    args.itemId = itemId
3110
    args.price = price
3111
    args.write(self._oprot)
3112
    self._oprot.writeMessageEnd()
3113
    self._oprot.trans.flush()
3114
 
3115
  def recv_getVatAmountForItem(self, ):
3116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3117
    if mtype == TMessageType.EXCEPTION:
3118
      x = TApplicationException()
3119
      x.read(self._iprot)
3120
      self._iprot.readMessageEnd()
3121
      raise x
3122
    result = getVatAmountForItem_result()
3123
    result.read(self._iprot)
3124
    self._iprot.readMessageEnd()
3125
    if result.success is not None:
3126
      return result.success
3127
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
3128
 
6531 vikram.rag 3129
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3130
    """
3131
    Parameters:
3132
     - offset
3133
     - limit
3134
    """
3135
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
3136
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 3137
 
6531 vikram.rag 3138
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
3139
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
3140
    args = getAllIgnoredInventoryUpdateItemsList_args()
3141
    args.offset = offset
3142
    args.limit = limit
3143
    args.write(self._oprot)
3144
    self._oprot.writeMessageEnd()
3145
    self._oprot.trans.flush()
3146
 
3147
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
3148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3149
    if mtype == TMessageType.EXCEPTION:
3150
      x = TApplicationException()
3151
      x.read(self._iprot)
3152
      self._iprot.readMessageEnd()
3153
      raise x
3154
    result = getAllIgnoredInventoryUpdateItemsList_result()
3155
    result.read(self._iprot)
3156
    self._iprot.readMessageEnd()
3157
    if result.success is not None:
3158
      return result.success
3159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
3160
 
6821 amar.kumar 3161
  def getAllAliveItems(self, ):
3162
    self.send_getAllAliveItems()
3163
    return self.recv_getAllAliveItems()
3164
 
3165
  def send_getAllAliveItems(self, ):
3166
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
3167
    args = getAllAliveItems_args()
3168
    args.write(self._oprot)
3169
    self._oprot.writeMessageEnd()
3170
    self._oprot.trans.flush()
3171
 
3172
  def recv_getAllAliveItems(self, ):
3173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3174
    if mtype == TMessageType.EXCEPTION:
3175
      x = TApplicationException()
3176
      x.read(self._iprot)
3177
      self._iprot.readMessageEnd()
3178
      raise x
3179
    result = getAllAliveItems_result()
3180
    result.read(self._iprot)
3181
    self._iprot.readMessageEnd()
3182
    if result.success is not None:
3183
      return result.success
3184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
3185
 
6921 anupam.sin 3186
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3187
    """
3188
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 3189
 
6805 anupam.sin 3190
    Parameters:
3191
     - itemId
6921 anupam.sin 3192
     - price
6805 anupam.sin 3193
     - insurerId
3194
     - quantity
3195
    """
6921 anupam.sin 3196
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 3197
    return self.recv_getInsuranceAmount()
3198
 
6921 anupam.sin 3199
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 3200
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
3201
    args = getInsuranceAmount_args()
3202
    args.itemId = itemId
6921 anupam.sin 3203
    args.price = price
6805 anupam.sin 3204
    args.insurerId = insurerId
3205
    args.quantity = quantity
3206
    args.write(self._oprot)
3207
    self._oprot.writeMessageEnd()
3208
    self._oprot.trans.flush()
3209
 
3210
  def recv_getInsuranceAmount(self, ):
3211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3212
    if mtype == TMessageType.EXCEPTION:
3213
      x = TApplicationException()
3214
      x.read(self._iprot)
3215
      self._iprot.readMessageEnd()
3216
      raise x
3217
    result = getInsuranceAmount_result()
3218
    result.read(self._iprot)
3219
    self._iprot.readMessageEnd()
3220
    if result.success is not None:
3221
      return result.success
3222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
3223
 
3224
  def getInsurer(self, insurerId):
3225
    """
3226
    Parameters:
3227
     - insurerId
3228
    """
3229
    self.send_getInsurer(insurerId)
3230
    return self.recv_getInsurer()
3231
 
3232
  def send_getInsurer(self, insurerId):
3233
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
3234
    args = getInsurer_args()
3235
    args.insurerId = insurerId
3236
    args.write(self._oprot)
3237
    self._oprot.writeMessageEnd()
3238
    self._oprot.trans.flush()
3239
 
3240
  def recv_getInsurer(self, ):
3241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3242
    if mtype == TMessageType.EXCEPTION:
3243
      x = TApplicationException()
3244
      x.read(self._iprot)
3245
      self._iprot.readMessageEnd()
3246
      raise x
3247
    result = getInsurer_result()
3248
    result.read(self._iprot)
3249
    self._iprot.readMessageEnd()
3250
    if result.success is not None:
3251
      return result.success
3252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
3253
 
6838 vikram.rag 3254
  def getAllInsurers(self, ):
3255
    self.send_getAllInsurers()
3256
    return self.recv_getAllInsurers()
6805 anupam.sin 3257
 
6838 vikram.rag 3258
  def send_getAllInsurers(self, ):
3259
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
3260
    args = getAllInsurers_args()
3261
    args.write(self._oprot)
3262
    self._oprot.writeMessageEnd()
3263
    self._oprot.trans.flush()
3264
 
3265
  def recv_getAllInsurers(self, ):
3266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3267
    if mtype == TMessageType.EXCEPTION:
3268
      x = TApplicationException()
3269
      x.read(self._iprot)
3270
      self._iprot.readMessageEnd()
3271
      raise x
3272
    result = getAllInsurers_result()
3273
    result.read(self._iprot)
3274
    self._iprot.readMessageEnd()
3275
    if result.success is not None:
3276
      return result.success
3277
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
3278
 
6962 rajveer 3279
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
3280
    """
3281
    Parameters:
3282
     - insurerId
3283
     - amount
3284
    """
3285
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
3286
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 3287
 
6962 rajveer 3288
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
3289
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
3290
    args = updateInsuranceDeclaredAmount_args()
3291
    args.insurerId = insurerId
3292
    args.amount = amount
3293
    args.write(self._oprot)
3294
    self._oprot.writeMessageEnd()
3295
    self._oprot.trans.flush()
3296
 
3297
  def recv_updateInsuranceDeclaredAmount(self, ):
3298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3299
    if mtype == TMessageType.EXCEPTION:
3300
      x = TApplicationException()
3301
      x.read(self._iprot)
3302
      self._iprot.readMessageEnd()
3303
      raise x
3304
    result = updateInsuranceDeclaredAmount_result()
3305
    result.read(self._iprot)
3306
    self._iprot.readMessageEnd()
3307
    return
3308
 
3309
 
5944 mandeep.dh 3310
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3311
  def __init__(self, handler):
3312
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3313
    self._processMap["addItem"] = Processor.process_addItem
3314
    self._processMap["updateItem"] = Processor.process_updateItem
3315
    self._processMap["isActive"] = Processor.process_isActive
3316
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
3317
    self._processMap["startItemOn"] = Processor.process_startItemOn
3318
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
3319
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3320
    self._processMap["getItem"] = Processor.process_getItem
3321
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
3322
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
3323
    self._processMap["getAllItems"] = Processor.process_getAllItems
3324
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
3325
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
3326
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
3327
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
3328
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
3329
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
3330
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
3331
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
3332
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
3333
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
3334
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
3335
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
3336
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
3337
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
3338
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
3339
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
3340
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
3341
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
3342
    self._processMap["addCategory"] = Processor.process_addCategory
3343
    self._processMap["getCategory"] = Processor.process_getCategory
3344
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
3345
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
3346
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 3347
    self._processMap["addTag"] = Processor.process_addTag
3348
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
3349
    self._processMap["deleteTag"] = Processor.process_deleteTag
3350
    self._processMap["getAllTags"] = Processor.process_getAllTags
3351
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 3352
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 3353
    self._processMap["addBanner"] = Processor.process_addBanner
3354
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
3355
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
3356
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
3357
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 3358
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
3359
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
3360
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
5944 mandeep.dh 3361
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
3362
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
3363
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
3364
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
3365
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
3366
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
3367
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
3368
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
3369
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
3370
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
3371
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
3372
    self._processMap["getAllSources"] = Processor.process_getAllSources
3373
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
3374
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
3375
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
3376
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
3377
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
3378
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
3379
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
3380
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
3381
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
3382
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
3383
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
3384
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
3385
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
3386
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
3387
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 3388
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
3389
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 3390
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 3391
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 3392
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
3393
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 3394
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 3395
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
5944 mandeep.dh 3396
 
3397
  def process(self, iprot, oprot):
3398
    (name, type, seqid) = iprot.readMessageBegin()
3399
    if name not in self._processMap:
3400
      iprot.skip(TType.STRUCT)
3401
      iprot.readMessageEnd()
3402
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3403
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3404
      x.write(oprot)
3405
      oprot.writeMessageEnd()
3406
      oprot.trans.flush()
3407
      return
3408
    else:
3409
      self._processMap[name](self, seqid, iprot, oprot)
3410
    return True
3411
 
3412
  def process_addItem(self, seqid, iprot, oprot):
3413
    args = addItem_args()
3414
    args.read(iprot)
3415
    iprot.readMessageEnd()
3416
    result = addItem_result()
3417
    try:
3418
      result.success = self._handler.addItem(args.item)
3419
    except CatalogServiceException, cex:
3420
      result.cex = cex
3421
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
3422
    result.write(oprot)
3423
    oprot.writeMessageEnd()
3424
    oprot.trans.flush()
3425
 
3426
  def process_updateItem(self, seqid, iprot, oprot):
3427
    args = updateItem_args()
3428
    args.read(iprot)
3429
    iprot.readMessageEnd()
3430
    result = updateItem_result()
3431
    try:
3432
      result.success = self._handler.updateItem(args.item)
3433
    except CatalogServiceException, cex:
3434
      result.cex = cex
3435
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
3436
    result.write(oprot)
3437
    oprot.writeMessageEnd()
3438
    oprot.trans.flush()
3439
 
3440
  def process_isActive(self, seqid, iprot, oprot):
3441
    args = isActive_args()
3442
    args.read(iprot)
3443
    iprot.readMessageEnd()
3444
    result = isActive_result()
3445
    try:
3446
      result.success = self._handler.isActive(args.itemId)
3447
    except CatalogServiceException, isex:
3448
      result.isex = isex
3449
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
3450
    result.write(oprot)
3451
    oprot.writeMessageEnd()
3452
    oprot.trans.flush()
3453
 
3454
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
3455
    args = getItemStatusDescription_args()
3456
    args.read(iprot)
3457
    iprot.readMessageEnd()
3458
    result = getItemStatusDescription_result()
3459
    try:
3460
      result.success = self._handler.getItemStatusDescription(args.itemId)
3461
    except CatalogServiceException, isex:
3462
      result.isex = isex
3463
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
3464
    result.write(oprot)
3465
    oprot.writeMessageEnd()
3466
    oprot.trans.flush()
3467
 
3468
  def process_startItemOn(self, seqid, iprot, oprot):
3469
    args = startItemOn_args()
3470
    args.read(iprot)
3471
    iprot.readMessageEnd()
3472
    result = startItemOn_result()
3473
    try:
3474
      self._handler.startItemOn(args.item_id, args.timestamp)
3475
    except CatalogServiceException, cex:
3476
      result.cex = cex
3477
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
3478
    result.write(oprot)
3479
    oprot.writeMessageEnd()
3480
    oprot.trans.flush()
3481
 
3482
  def process_retireItemOn(self, seqid, iprot, oprot):
3483
    args = retireItemOn_args()
3484
    args.read(iprot)
3485
    iprot.readMessageEnd()
3486
    result = retireItemOn_result()
3487
    try:
3488
      self._handler.retireItemOn(args.item_id, args.timestamp)
3489
    except CatalogServiceException, cex:
3490
      result.cex = cex
3491
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
3496
  def process_changeItemStatus(self, seqid, iprot, oprot):
3497
    args = changeItemStatus_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = changeItemStatus_result()
3501
    try:
3502
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
3503
    except CatalogServiceException, cex:
3504
      result.cex = cex
3505
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3506
    result.write(oprot)
3507
    oprot.writeMessageEnd()
3508
    oprot.trans.flush()
3509
 
3510
  def process_getItem(self, seqid, iprot, oprot):
3511
    args = getItem_args()
3512
    args.read(iprot)
3513
    iprot.readMessageEnd()
3514
    result = getItem_result()
3515
    try:
3516
      result.success = self._handler.getItem(args.item_id)
3517
    except CatalogServiceException, cex:
3518
      result.cex = cex
3519
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
3520
    result.write(oprot)
3521
    oprot.writeMessageEnd()
3522
    oprot.trans.flush()
3523
 
3524
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
3525
    args = getItemsByCatalogId_args()
3526
    args.read(iprot)
3527
    iprot.readMessageEnd()
3528
    result = getItemsByCatalogId_result()
3529
    try:
3530
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
3531
    except CatalogServiceException, cex:
3532
      result.cex = cex
3533
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
3534
    result.write(oprot)
3535
    oprot.writeMessageEnd()
3536
    oprot.trans.flush()
3537
 
3538
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
3539
    args = getValidItemsByCatalogId_args()
3540
    args.read(iprot)
3541
    iprot.readMessageEnd()
3542
    result = getValidItemsByCatalogId_result()
3543
    try:
3544
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
3545
    except CatalogServiceException, cex:
3546
      result.cex = cex
3547
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
3548
    result.write(oprot)
3549
    oprot.writeMessageEnd()
3550
    oprot.trans.flush()
3551
 
3552
  def process_getAllItems(self, seqid, iprot, oprot):
3553
    args = getAllItems_args()
3554
    args.read(iprot)
3555
    iprot.readMessageEnd()
3556
    result = getAllItems_result()
3557
    try:
3558
      result.success = self._handler.getAllItems(args.isActive)
3559
    except CatalogServiceException, cex:
3560
      result.cex = cex
3561
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
3565
 
3566
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3567
    args = getAllItemsByStatus_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = getAllItemsByStatus_result()
3571
    try:
3572
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3573
    except CatalogServiceException, cex:
3574
      result.cex = cex
3575
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3576
    result.write(oprot)
3577
    oprot.writeMessageEnd()
3578
    oprot.trans.flush()
3579
 
3580
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3581
    args = markItemAsContentComplete_args()
3582
    args.read(iprot)
3583
    iprot.readMessageEnd()
3584
    result = markItemAsContentComplete_result()
3585
    try:
3586
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3587
    except CatalogServiceException, cex:
3588
      result.cex = cex
3589
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3595
    args = getAllItemsInRange_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getAllItemsInRange_result()
3599
    try:
3600
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3601
    except CatalogServiceException, cex:
3602
      result.cex = cex
3603
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3604
    result.write(oprot)
3605
    oprot.writeMessageEnd()
3606
    oprot.trans.flush()
3607
 
3608
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3609
    args = getAllItemsByStatusInRange_args()
3610
    args.read(iprot)
3611
    iprot.readMessageEnd()
3612
    result = getAllItemsByStatusInRange_result()
3613
    try:
3614
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3615
    except CatalogServiceException, cex:
3616
      result.cex = cex
3617
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3618
    result.write(oprot)
3619
    oprot.writeMessageEnd()
3620
    oprot.trans.flush()
3621
 
3622
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3623
    args = getItemCountByStatus_args()
3624
    args.read(iprot)
3625
    iprot.readMessageEnd()
3626
    result = getItemCountByStatus_result()
3627
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3628
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3629
    result.write(oprot)
3630
    oprot.writeMessageEnd()
3631
    oprot.trans.flush()
3632
 
3633
  def process_getBestSellers(self, seqid, iprot, oprot):
3634
    args = getBestSellers_args()
3635
    args.read(iprot)
3636
    iprot.readMessageEnd()
3637
    result = getBestSellers_result()
3638
    try:
3639
      result.success = self._handler.getBestSellers()
3640
    except CatalogServiceException, isex:
3641
      result.isex = isex
3642
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3643
    result.write(oprot)
3644
    oprot.writeMessageEnd()
3645
    oprot.trans.flush()
3646
 
3647
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3648
    args = getBestSellersCatalogIds_args()
3649
    args.read(iprot)
3650
    iprot.readMessageEnd()
3651
    result = getBestSellersCatalogIds_result()
3652
    try:
3653
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3654
    except CatalogServiceException, cex:
3655
      result.cex = cex
3656
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
3660
 
3661
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3662
    args = getBestSellersCount_args()
3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
3665
    result = getBestSellersCount_result()
3666
    try:
3667
      result.success = self._handler.getBestSellersCount()
3668
    except CatalogServiceException, cex:
3669
      result.cex = cex
3670
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_getBestDeals(self, seqid, iprot, oprot):
3676
    args = getBestDeals_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = getBestDeals_result()
3680
    try:
3681
      result.success = self._handler.getBestDeals()
3682
    except CatalogServiceException, isex:
3683
      result.isex = isex
3684
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3690
    args = getBestDealsCatalogIds_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getBestDealsCatalogIds_result()
3694
    try:
3695
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3696
    except CatalogServiceException, cex:
3697
      result.cex = cex
3698
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
3703
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3704
    args = getBestDealsCount_args()
3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
3707
    result = getBestDealsCount_result()
3708
    try:
3709
      result.success = self._handler.getBestDealsCount()
3710
    except CatalogServiceException, cex:
3711
      result.cex = cex
3712
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3713
    result.write(oprot)
3714
    oprot.writeMessageEnd()
3715
    oprot.trans.flush()
3716
 
3717
  def process_getComingSoon(self, seqid, iprot, oprot):
3718
    args = getComingSoon_args()
3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
3721
    result = getComingSoon_result()
3722
    try:
3723
      result.success = self._handler.getComingSoon()
3724
    except CatalogServiceException, isex:
3725
      result.isex = isex
3726
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
3731
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3732
    args = getComingSoonCatalogIds_args()
3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
3735
    result = getComingSoonCatalogIds_result()
3736
    try:
3737
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3738
    except CatalogServiceException, cex:
3739
      result.cex = cex
3740
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3741
    result.write(oprot)
3742
    oprot.writeMessageEnd()
3743
    oprot.trans.flush()
3744
 
3745
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3746
    args = getComingSoonCount_args()
3747
    args.read(iprot)
3748
    iprot.readMessageEnd()
3749
    result = getComingSoonCount_result()
3750
    try:
3751
      result.success = self._handler.getComingSoonCount()
3752
    except CatalogServiceException, cex:
3753
      result.cex = cex
3754
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
3759
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3760
    args = getLatestArrivals_args()
3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
3763
    result = getLatestArrivals_result()
3764
    try:
3765
      result.success = self._handler.getLatestArrivals()
3766
    except CatalogServiceException, isex:
3767
      result.isex = isex
3768
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3769
    result.write(oprot)
3770
    oprot.writeMessageEnd()
3771
    oprot.trans.flush()
3772
 
3773
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3774
    args = getLatestArrivalsCatalogIds_args()
3775
    args.read(iprot)
3776
    iprot.readMessageEnd()
3777
    result = getLatestArrivalsCatalogIds_result()
3778
    try:
3779
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3780
    except CatalogServiceException, cex:
3781
      result.cex = cex
3782
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3783
    result.write(oprot)
3784
    oprot.writeMessageEnd()
3785
    oprot.trans.flush()
3786
 
3787
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3788
    args = getLatestArrivalsCount_args()
3789
    args.read(iprot)
3790
    iprot.readMessageEnd()
3791
    result = getLatestArrivalsCount_result()
3792
    try:
3793
      result.success = self._handler.getLatestArrivalsCount()
3794
    except CatalogServiceException, cex:
3795
      result.cex = cex
3796
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3797
    result.write(oprot)
3798
    oprot.writeMessageEnd()
3799
    oprot.trans.flush()
3800
 
3801
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3802
    args = generateNewEntityID_args()
3803
    args.read(iprot)
3804
    iprot.readMessageEnd()
3805
    result = generateNewEntityID_result()
3806
    result.success = self._handler.generateNewEntityID()
3807
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3808
    result.write(oprot)
3809
    oprot.writeMessageEnd()
3810
    oprot.trans.flush()
3811
 
3812
  def process_addCategory(self, seqid, iprot, oprot):
3813
    args = addCategory_args()
3814
    args.read(iprot)
3815
    iprot.readMessageEnd()
3816
    result = addCategory_result()
3817
    result.success = self._handler.addCategory(args.category)
3818
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3819
    result.write(oprot)
3820
    oprot.writeMessageEnd()
3821
    oprot.trans.flush()
3822
 
3823
  def process_getCategory(self, seqid, iprot, oprot):
3824
    args = getCategory_args()
3825
    args.read(iprot)
3826
    iprot.readMessageEnd()
3827
    result = getCategory_result()
3828
    result.success = self._handler.getCategory(args.id)
3829
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3830
    result.write(oprot)
3831
    oprot.writeMessageEnd()
3832
    oprot.trans.flush()
3833
 
3834
  def process_getAllCategories(self, seqid, iprot, oprot):
3835
    args = getAllCategories_args()
3836
    args.read(iprot)
3837
    iprot.readMessageEnd()
3838
    result = getAllCategories_result()
3839
    result.success = self._handler.getAllCategories()
3840
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3841
    result.write(oprot)
3842
    oprot.writeMessageEnd()
3843
    oprot.trans.flush()
3844
 
3845
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3846
    args = getAllSimilarItems_args()
3847
    args.read(iprot)
3848
    iprot.readMessageEnd()
3849
    result = getAllSimilarItems_result()
3850
    result.success = self._handler.getAllSimilarItems(args.itemId)
3851
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3852
    result.write(oprot)
3853
    oprot.writeMessageEnd()
3854
    oprot.trans.flush()
3855
 
3856
  def process_addSimilarItem(self, seqid, iprot, oprot):
3857
    args = addSimilarItem_args()
3858
    args.read(iprot)
3859
    iprot.readMessageEnd()
3860
    result = addSimilarItem_result()
3861
    try:
3862
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3863
    except CatalogServiceException, cex:
3864
      result.cex = cex
3865
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3866
    result.write(oprot)
3867
    oprot.writeMessageEnd()
3868
    oprot.trans.flush()
3869
 
6512 kshitij.so 3870
  def process_addTag(self, seqid, iprot, oprot):
3871
    args = addTag_args()
3872
    args.read(iprot)
3873
    iprot.readMessageEnd()
3874
    result = addTag_result()
3875
    result.success = self._handler.addTag(args.displayName, args.itemId)
3876
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3877
    result.write(oprot)
3878
    oprot.writeMessageEnd()
3879
    oprot.trans.flush()
3880
 
3881
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3882
    args = deleteEntityTag_args()
3883
    args.read(iprot)
3884
    iprot.readMessageEnd()
3885
    result = deleteEntityTag_result()
3886
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3887
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3888
    result.write(oprot)
3889
    oprot.writeMessageEnd()
3890
    oprot.trans.flush()
3891
 
3892
  def process_deleteTag(self, seqid, iprot, oprot):
3893
    args = deleteTag_args()
3894
    args.read(iprot)
3895
    iprot.readMessageEnd()
3896
    result = deleteTag_result()
3897
    result.success = self._handler.deleteTag(args.displayName)
3898
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
3902
 
3903
  def process_getAllTags(self, seqid, iprot, oprot):
3904
    args = getAllTags_args()
3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
3907
    result = getAllTags_result()
3908
    result.success = self._handler.getAllTags()
3909
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3910
    result.write(oprot)
3911
    oprot.writeMessageEnd()
3912
    oprot.trans.flush()
3913
 
3914
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3915
    args = getAllEntitiesByTagName_args()
3916
    args.read(iprot)
3917
    iprot.readMessageEnd()
3918
    result = getAllEntitiesByTagName_result()
3919
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3920
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3921
    result.write(oprot)
3922
    oprot.writeMessageEnd()
3923
    oprot.trans.flush()
3924
 
6845 amit.gupta 3925
  def process_getAllEntityTags(self, seqid, iprot, oprot):
3926
    args = getAllEntityTags_args()
3927
    args.read(iprot)
3928
    iprot.readMessageEnd()
3929
    result = getAllEntityTags_result()
3930
    result.success = self._handler.getAllEntityTags()
3931
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
3932
    result.write(oprot)
3933
    oprot.writeMessageEnd()
3934
    oprot.trans.flush()
3935
 
6850 kshitij.so 3936
  def process_addBanner(self, seqid, iprot, oprot):
3937
    args = addBanner_args()
3938
    args.read(iprot)
3939
    iprot.readMessageEnd()
3940
    result = addBanner_result()
3941
    result.success = self._handler.addBanner(args.bannerName, args.imageName, args.link, args.priority, args.isActive, args.hasMap)
3942
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
3943
    result.write(oprot)
3944
    oprot.writeMessageEnd()
3945
    oprot.trans.flush()
3946
 
3947
  def process_getAllBanners(self, seqid, iprot, oprot):
3948
    args = getAllBanners_args()
3949
    args.read(iprot)
3950
    iprot.readMessageEnd()
3951
    result = getAllBanners_result()
3952
    result.success = self._handler.getAllBanners()
3953
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
3954
    result.write(oprot)
3955
    oprot.writeMessageEnd()
3956
    oprot.trans.flush()
3957
 
3958
  def process_deleteBanner(self, seqid, iprot, oprot):
3959
    args = deleteBanner_args()
3960
    args.read(iprot)
3961
    iprot.readMessageEnd()
3962
    result = deleteBanner_result()
3963
    result.success = self._handler.deleteBanner(args.bannerName)
3964
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
3965
    result.write(oprot)
3966
    oprot.writeMessageEnd()
3967
    oprot.trans.flush()
3968
 
3969
  def process_getBannerDetails(self, seqid, iprot, oprot):
3970
    args = getBannerDetails_args()
3971
    args.read(iprot)
3972
    iprot.readMessageEnd()
3973
    result = getBannerDetails_result()
3974
    result.success = self._handler.getBannerDetails(args.bannerName)
3975
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
3976
    result.write(oprot)
3977
    oprot.writeMessageEnd()
3978
    oprot.trans.flush()
3979
 
3980
  def process_getActiveBanners(self, seqid, iprot, oprot):
3981
    args = getActiveBanners_args()
3982
    args.read(iprot)
3983
    iprot.readMessageEnd()
3984
    result = getActiveBanners_result()
3985
    result.success = self._handler.getActiveBanners()
3986
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
3987
    result.write(oprot)
3988
    oprot.writeMessageEnd()
3989
    oprot.trans.flush()
3990
 
6849 kshitij.so 3991
  def process_addBannerMap(self, seqid, iprot, oprot):
3992
    args = addBannerMap_args()
3993
    args.read(iprot)
3994
    iprot.readMessageEnd()
3995
    result = addBannerMap_result()
3996
    result.success = self._handler.addBannerMap(args.bannerName, args.mapLink, args.coordinates)
3997
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
3998
    result.write(oprot)
3999
    oprot.writeMessageEnd()
4000
    oprot.trans.flush()
4001
 
4002
  def process_deleteBannerMap(self, seqid, iprot, oprot):
4003
    args = deleteBannerMap_args()
4004
    args.read(iprot)
4005
    iprot.readMessageEnd()
4006
    result = deleteBannerMap_result()
4007
    result.success = self._handler.deleteBannerMap(args.bannerName)
4008
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
4009
    result.write(oprot)
4010
    oprot.writeMessageEnd()
4011
    oprot.trans.flush()
4012
 
4013
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
4014
    args = getBannerMapDetails_args()
4015
    args.read(iprot)
4016
    iprot.readMessageEnd()
4017
    result = getBannerMapDetails_result()
4018
    result.success = self._handler.getBannerMapDetails(args.bannerName)
4019
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
4020
    result.write(oprot)
4021
    oprot.writeMessageEnd()
4022
    oprot.trans.flush()
4023
 
5944 mandeep.dh 4024
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
4025
    args = deleteSimilarItem_args()
4026
    args.read(iprot)
4027
    iprot.readMessageEnd()
4028
    result = deleteSimilarItem_result()
4029
    try:
4030
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
4031
    except CatalogServiceException, cex:
4032
      result.cex = cex
4033
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
4034
    result.write(oprot)
4035
    oprot.writeMessageEnd()
4036
    oprot.trans.flush()
4037
 
4038
  def process_checkSimilarItem(self, seqid, iprot, oprot):
4039
    args = checkSimilarItem_args()
4040
    args.read(iprot)
4041
    iprot.readMessageEnd()
4042
    result = checkSimilarItem_result()
4043
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
4044
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
4045
    result.write(oprot)
4046
    oprot.writeMessageEnd()
4047
    oprot.trans.flush()
4048
 
4049
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
4050
    args = validateRiskyStatus_args()
4051
    args.read(iprot)
4052
    iprot.readMessageEnd()
4053
    result = validateRiskyStatus_result()
4054
    self._handler.validateRiskyStatus(args.itemId)
4055
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
4056
    result.write(oprot)
4057
    oprot.writeMessageEnd()
4058
    oprot.trans.flush()
4059
 
4060
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
4061
    args = changeItemRiskyFlag_args()
4062
    args.read(iprot)
4063
    iprot.readMessageEnd()
4064
    result = changeItemRiskyFlag_result()
4065
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
4066
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
4067
    result.write(oprot)
4068
    oprot.writeMessageEnd()
4069
    oprot.trans.flush()
4070
 
4071
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
4072
    args = getItemsByRiskyFlag_args()
4073
    args.read(iprot)
4074
    iprot.readMessageEnd()
4075
    result = getItemsByRiskyFlag_result()
4076
    result.success = self._handler.getItemsByRiskyFlag()
4077
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
4078
    result.write(oprot)
4079
    oprot.writeMessageEnd()
4080
    oprot.trans.flush()
4081
 
4082
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
4083
    args = getItemsForMasterSheet_args()
4084
    args.read(iprot)
4085
    iprot.readMessageEnd()
4086
    result = getItemsForMasterSheet_result()
4087
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
4088
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
4089
    result.write(oprot)
4090
    oprot.writeMessageEnd()
4091
    oprot.trans.flush()
4092
 
4093
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
4094
    args = getSimilarItemsCatalogIds_args()
4095
    args.read(iprot)
4096
    iprot.readMessageEnd()
4097
    result = getSimilarItemsCatalogIds_result()
4098
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
4099
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
4100
    result.write(oprot)
4101
    oprot.writeMessageEnd()
4102
    oprot.trans.flush()
4103
 
4104
  def process_addProductNotification(self, seqid, iprot, oprot):
4105
    args = addProductNotification_args()
4106
    args.read(iprot)
4107
    iprot.readMessageEnd()
4108
    result = addProductNotification_result()
4109
    result.success = self._handler.addProductNotification(args.itemId, args.email)
4110
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
4111
    result.write(oprot)
4112
    oprot.writeMessageEnd()
4113
    oprot.trans.flush()
4114
 
4115
  def process_sendProductNotifications(self, seqid, iprot, oprot):
4116
    args = sendProductNotifications_args()
4117
    args.read(iprot)
4118
    iprot.readMessageEnd()
4119
    result = sendProductNotifications_result()
4120
    result.success = self._handler.sendProductNotifications()
4121
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
4122
    result.write(oprot)
4123
    oprot.writeMessageEnd()
4124
    oprot.trans.flush()
4125
 
4126
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
4127
    args = getAllBrandsByCategory_args()
4128
    args.read(iprot)
4129
    iprot.readMessageEnd()
4130
    result = getAllBrandsByCategory_result()
4131
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
4132
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
4133
    result.write(oprot)
4134
    oprot.writeMessageEnd()
4135
    oprot.trans.flush()
4136
 
4137
  def process_getAllBrands(self, seqid, iprot, oprot):
4138
    args = getAllBrands_args()
4139
    args.read(iprot)
4140
    iprot.readMessageEnd()
4141
    result = getAllBrands_result()
4142
    result.success = self._handler.getAllBrands()
4143
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
4144
    result.write(oprot)
4145
    oprot.writeMessageEnd()
4146
    oprot.trans.flush()
4147
 
4148
  def process_getAllSources(self, seqid, iprot, oprot):
4149
    args = getAllSources_args()
4150
    args.read(iprot)
4151
    iprot.readMessageEnd()
4152
    result = getAllSources_result()
4153
    result.success = self._handler.getAllSources()
4154
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
4155
    result.write(oprot)
4156
    oprot.writeMessageEnd()
4157
    oprot.trans.flush()
4158
 
4159
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
4160
    args = getItemPricingBySource_args()
4161
    args.read(iprot)
4162
    iprot.readMessageEnd()
4163
    result = getItemPricingBySource_result()
4164
    try:
4165
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
4166
    except CatalogServiceException, cex:
4167
      result.cex = cex
4168
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
4169
    result.write(oprot)
4170
    oprot.writeMessageEnd()
4171
    oprot.trans.flush()
4172
 
4173
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
4174
    args = addSourceItemPricing_args()
4175
    args.read(iprot)
4176
    iprot.readMessageEnd()
4177
    result = addSourceItemPricing_result()
4178
    try:
4179
      self._handler.addSourceItemPricing(args.sourceItemPricing)
4180
    except CatalogServiceException, cex:
4181
      result.cex = cex
4182
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
4183
    result.write(oprot)
4184
    oprot.writeMessageEnd()
4185
    oprot.trans.flush()
4186
 
4187
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
4188
    args = getAllSourcePricing_args()
4189
    args.read(iprot)
4190
    iprot.readMessageEnd()
4191
    result = getAllSourcePricing_result()
4192
    try:
4193
      result.success = self._handler.getAllSourcePricing(args.itemId)
4194
    except CatalogServiceException, cex:
4195
      result.cex = cex
4196
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
4197
    result.write(oprot)
4198
    oprot.writeMessageEnd()
4199
    oprot.trans.flush()
4200
 
4201
  def process_getItemForSource(self, seqid, iprot, oprot):
4202
    args = getItemForSource_args()
4203
    args.read(iprot)
4204
    iprot.readMessageEnd()
4205
    result = getItemForSource_result()
4206
    try:
4207
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
4208
    except CatalogServiceException, cex:
4209
      result.cex = cex
4210
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
4211
    result.write(oprot)
4212
    oprot.writeMessageEnd()
4213
    oprot.trans.flush()
4214
 
4215
  def process_searchItemsInRange(self, seqid, iprot, oprot):
4216
    args = searchItemsInRange_args()
4217
    args.read(iprot)
4218
    iprot.readMessageEnd()
4219
    result = searchItemsInRange_result()
4220
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
4221
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
4222
    result.write(oprot)
4223
    oprot.writeMessageEnd()
4224
    oprot.trans.flush()
4225
 
4226
  def process_getSearchResultCount(self, seqid, iprot, oprot):
4227
    args = getSearchResultCount_args()
4228
    args.read(iprot)
4229
    iprot.readMessageEnd()
4230
    result = getSearchResultCount_result()
4231
    result.success = self._handler.getSearchResultCount(args.searchTerms)
4232
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
4233
    result.write(oprot)
4234
    oprot.writeMessageEnd()
4235
    oprot.trans.flush()
4236
 
4237
  def process_getProductNotifications(self, seqid, iprot, oprot):
4238
    args = getProductNotifications_args()
4239
    args.read(iprot)
4240
    iprot.readMessageEnd()
4241
    result = getProductNotifications_result()
4242
    result.success = self._handler.getProductNotifications(args.startDateTime)
4243
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
4244
    result.write(oprot)
4245
    oprot.writeMessageEnd()
4246
    oprot.trans.flush()
4247
 
4248
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
4249
    args = getProductNotificationRequestCount_args()
4250
    args.read(iprot)
4251
    iprot.readMessageEnd()
4252
    result = getProductNotificationRequestCount_result()
4253
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
4254
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
4255
    result.write(oprot)
4256
    oprot.writeMessageEnd()
4257
    oprot.trans.flush()
4258
 
4259
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
4260
    args = addAuthorizationLog_args()
4261
    args.read(iprot)
4262
    iprot.readMessageEnd()
4263
    result = addAuthorizationLog_result()
4264
    try:
4265
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
4266
    except CatalogServiceException, cex:
4267
      result.cex = cex
4268
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
4269
    result.write(oprot)
4270
    oprot.writeMessageEnd()
4271
    oprot.trans.flush()
4272
 
4273
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
4274
    args = getClearanceSaleCatalogIds_args()
4275
    args.read(iprot)
4276
    iprot.readMessageEnd()
4277
    result = getClearanceSaleCatalogIds_result()
4278
    try:
4279
      result.success = self._handler.getClearanceSaleCatalogIds()
4280
    except CatalogServiceException, cex:
4281
      result.cex = cex
4282
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
4283
    result.write(oprot)
4284
    oprot.writeMessageEnd()
4285
    oprot.trans.flush()
4286
 
4287
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
4288
    args = addupdateVoucherForItem_args()
4289
    args.read(iprot)
4290
    iprot.readMessageEnd()
4291
    result = addupdateVoucherForItem_result()
4292
    try:
4293
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
4294
    except CatalogServiceException, cex:
4295
      result.cex = cex
4296
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
4297
    result.write(oprot)
4298
    oprot.writeMessageEnd()
4299
    oprot.trans.flush()
4300
 
4301
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
4302
    args = deleteVoucherForItem_args()
4303
    args.read(iprot)
4304
    iprot.readMessageEnd()
4305
    result = deleteVoucherForItem_result()
4306
    try:
4307
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
4308
    except CatalogServiceException, cex:
4309
      result.cex = cex
4310
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
4311
    result.write(oprot)
4312
    oprot.writeMessageEnd()
4313
    oprot.trans.flush()
4314
 
4315
  def process_getVoucherAmount(self, seqid, iprot, oprot):
4316
    args = getVoucherAmount_args()
4317
    args.read(iprot)
4318
    iprot.readMessageEnd()
4319
    result = getVoucherAmount_result()
4320
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
4321
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
4322
    result.write(oprot)
4323
    oprot.writeMessageEnd()
4324
    oprot.trans.flush()
4325
 
4326
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
4327
    args = getAllItemVouchers_args()
4328
    args.read(iprot)
4329
    iprot.readMessageEnd()
4330
    result = getAllItemVouchers_result()
4331
    result.success = self._handler.getAllItemVouchers(args.itemId)
4332
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
4333
    result.write(oprot)
4334
    oprot.writeMessageEnd()
4335
    oprot.trans.flush()
4336
 
4337
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
4338
    args = isValidCatalogItemId_args()
4339
    args.read(iprot)
4340
    iprot.readMessageEnd()
4341
    result = isValidCatalogItemId_result()
4342
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
4343
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
4344
    result.write(oprot)
4345
    oprot.writeMessageEnd()
4346
    oprot.trans.flush()
4347
 
6039 amit.gupta 4348
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
4349
    args = getVatPercentageForItem_args()
4350
    args.read(iprot)
4351
    iprot.readMessageEnd()
4352
    result = getVatPercentageForItem_result()
4353
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
4354
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
4355
    result.write(oprot)
4356
    oprot.writeMessageEnd()
4357
    oprot.trans.flush()
5944 mandeep.dh 4358
 
6039 amit.gupta 4359
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
4360
    args = getVatAmountForItem_args()
4361
    args.read(iprot)
4362
    iprot.readMessageEnd()
4363
    result = getVatAmountForItem_result()
4364
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
4365
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
4366
    result.write(oprot)
4367
    oprot.writeMessageEnd()
4368
    oprot.trans.flush()
4369
 
6531 vikram.rag 4370
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
4371
    args = getAllIgnoredInventoryUpdateItemsList_args()
4372
    args.read(iprot)
4373
    iprot.readMessageEnd()
4374
    result = getAllIgnoredInventoryUpdateItemsList_result()
4375
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
4376
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
4377
    result.write(oprot)
4378
    oprot.writeMessageEnd()
4379
    oprot.trans.flush()
6039 amit.gupta 4380
 
6821 amar.kumar 4381
  def process_getAllAliveItems(self, seqid, iprot, oprot):
4382
    args = getAllAliveItems_args()
4383
    args.read(iprot)
4384
    iprot.readMessageEnd()
4385
    result = getAllAliveItems_result()
4386
    result.success = self._handler.getAllAliveItems()
4387
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
4388
    result.write(oprot)
4389
    oprot.writeMessageEnd()
4390
    oprot.trans.flush()
4391
 
6805 anupam.sin 4392
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
4393
    args = getInsuranceAmount_args()
4394
    args.read(iprot)
4395
    iprot.readMessageEnd()
4396
    result = getInsuranceAmount_result()
6921 anupam.sin 4397
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 4398
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
4399
    result.write(oprot)
4400
    oprot.writeMessageEnd()
4401
    oprot.trans.flush()
6531 vikram.rag 4402
 
6805 anupam.sin 4403
  def process_getInsurer(self, seqid, iprot, oprot):
4404
    args = getInsurer_args()
4405
    args.read(iprot)
4406
    iprot.readMessageEnd()
4407
    result = getInsurer_result()
4408
    result.success = self._handler.getInsurer(args.insurerId)
4409
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
4410
    result.write(oprot)
4411
    oprot.writeMessageEnd()
4412
    oprot.trans.flush()
4413
 
6838 vikram.rag 4414
  def process_getAllInsurers(self, seqid, iprot, oprot):
4415
    args = getAllInsurers_args()
4416
    args.read(iprot)
4417
    iprot.readMessageEnd()
4418
    result = getAllInsurers_result()
4419
    result.success = self._handler.getAllInsurers()
4420
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
4421
    result.write(oprot)
4422
    oprot.writeMessageEnd()
4423
    oprot.trans.flush()
6805 anupam.sin 4424
 
6962 rajveer 4425
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
4426
    args = updateInsuranceDeclaredAmount_args()
4427
    args.read(iprot)
4428
    iprot.readMessageEnd()
4429
    result = updateInsuranceDeclaredAmount_result()
4430
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
4431
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
4432
    result.write(oprot)
4433
    oprot.writeMessageEnd()
4434
    oprot.trans.flush()
6838 vikram.rag 4435
 
6962 rajveer 4436
 
5944 mandeep.dh 4437
# HELPER FUNCTIONS AND STRUCTURES
4438
 
4439
class addItem_args:
4440
  """
4441
  Attributes:
4442
   - item
4443
  """
4444
 
4445
  thrift_spec = (
4446
    None, # 0
4447
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4448
  )
4449
 
4450
  def __init__(self, item=None,):
4451
    self.item = item
4452
 
4453
  def read(self, iprot):
4454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4456
      return
4457
    iprot.readStructBegin()
4458
    while True:
4459
      (fname, ftype, fid) = iprot.readFieldBegin()
4460
      if ftype == TType.STOP:
4461
        break
4462
      if fid == 1:
4463
        if ftype == TType.STRUCT:
4464
          self.item = Item()
4465
          self.item.read(iprot)
4466
        else:
4467
          iprot.skip(ftype)
4468
      else:
4469
        iprot.skip(ftype)
4470
      iprot.readFieldEnd()
4471
    iprot.readStructEnd()
4472
 
4473
  def write(self, oprot):
4474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4476
      return
4477
    oprot.writeStructBegin('addItem_args')
4478
    if self.item is not None:
4479
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4480
      self.item.write(oprot)
4481
      oprot.writeFieldEnd()
4482
    oprot.writeFieldStop()
4483
    oprot.writeStructEnd()
4484
 
4485
  def validate(self):
4486
    return
4487
 
4488
 
4489
  def __repr__(self):
4490
    L = ['%s=%r' % (key, value)
4491
      for key, value in self.__dict__.iteritems()]
4492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4493
 
4494
  def __eq__(self, other):
4495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4496
 
4497
  def __ne__(self, other):
4498
    return not (self == other)
4499
 
4500
class addItem_result:
4501
  """
4502
  Attributes:
4503
   - success
4504
   - cex
4505
  """
4506
 
4507
  thrift_spec = (
4508
    (0, TType.I64, 'success', None, None, ), # 0
4509
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4510
  )
4511
 
4512
  def __init__(self, success=None, cex=None,):
4513
    self.success = success
4514
    self.cex = cex
4515
 
4516
  def read(self, iprot):
4517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4519
      return
4520
    iprot.readStructBegin()
4521
    while True:
4522
      (fname, ftype, fid) = iprot.readFieldBegin()
4523
      if ftype == TType.STOP:
4524
        break
4525
      if fid == 0:
4526
        if ftype == TType.I64:
4527
          self.success = iprot.readI64();
4528
        else:
4529
          iprot.skip(ftype)
4530
      elif fid == 1:
4531
        if ftype == TType.STRUCT:
4532
          self.cex = CatalogServiceException()
4533
          self.cex.read(iprot)
4534
        else:
4535
          iprot.skip(ftype)
4536
      else:
4537
        iprot.skip(ftype)
4538
      iprot.readFieldEnd()
4539
    iprot.readStructEnd()
4540
 
4541
  def write(self, oprot):
4542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4544
      return
4545
    oprot.writeStructBegin('addItem_result')
4546
    if self.success is not None:
4547
      oprot.writeFieldBegin('success', TType.I64, 0)
4548
      oprot.writeI64(self.success)
4549
      oprot.writeFieldEnd()
4550
    if self.cex is not None:
4551
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4552
      self.cex.write(oprot)
4553
      oprot.writeFieldEnd()
4554
    oprot.writeFieldStop()
4555
    oprot.writeStructEnd()
4556
 
4557
  def validate(self):
4558
    return
4559
 
4560
 
4561
  def __repr__(self):
4562
    L = ['%s=%r' % (key, value)
4563
      for key, value in self.__dict__.iteritems()]
4564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4565
 
4566
  def __eq__(self, other):
4567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4568
 
4569
  def __ne__(self, other):
4570
    return not (self == other)
4571
 
4572
class updateItem_args:
4573
  """
4574
  Attributes:
4575
   - item
4576
  """
4577
 
4578
  thrift_spec = (
4579
    None, # 0
4580
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
4581
  )
4582
 
4583
  def __init__(self, item=None,):
4584
    self.item = item
4585
 
4586
  def read(self, iprot):
4587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4589
      return
4590
    iprot.readStructBegin()
4591
    while True:
4592
      (fname, ftype, fid) = iprot.readFieldBegin()
4593
      if ftype == TType.STOP:
4594
        break
4595
      if fid == 1:
4596
        if ftype == TType.STRUCT:
4597
          self.item = Item()
4598
          self.item.read(iprot)
4599
        else:
4600
          iprot.skip(ftype)
4601
      else:
4602
        iprot.skip(ftype)
4603
      iprot.readFieldEnd()
4604
    iprot.readStructEnd()
4605
 
4606
  def write(self, oprot):
4607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4609
      return
4610
    oprot.writeStructBegin('updateItem_args')
4611
    if self.item is not None:
4612
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
4613
      self.item.write(oprot)
4614
      oprot.writeFieldEnd()
4615
    oprot.writeFieldStop()
4616
    oprot.writeStructEnd()
4617
 
4618
  def validate(self):
4619
    return
4620
 
4621
 
4622
  def __repr__(self):
4623
    L = ['%s=%r' % (key, value)
4624
      for key, value in self.__dict__.iteritems()]
4625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4626
 
4627
  def __eq__(self, other):
4628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4629
 
4630
  def __ne__(self, other):
4631
    return not (self == other)
4632
 
4633
class updateItem_result:
4634
  """
4635
  Attributes:
4636
   - success
4637
   - cex
4638
  """
4639
 
4640
  thrift_spec = (
4641
    (0, TType.I64, 'success', None, None, ), # 0
4642
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4643
  )
4644
 
4645
  def __init__(self, success=None, cex=None,):
4646
    self.success = success
4647
    self.cex = cex
4648
 
4649
  def read(self, iprot):
4650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4652
      return
4653
    iprot.readStructBegin()
4654
    while True:
4655
      (fname, ftype, fid) = iprot.readFieldBegin()
4656
      if ftype == TType.STOP:
4657
        break
4658
      if fid == 0:
4659
        if ftype == TType.I64:
4660
          self.success = iprot.readI64();
4661
        else:
4662
          iprot.skip(ftype)
4663
      elif fid == 1:
4664
        if ftype == TType.STRUCT:
4665
          self.cex = CatalogServiceException()
4666
          self.cex.read(iprot)
4667
        else:
4668
          iprot.skip(ftype)
4669
      else:
4670
        iprot.skip(ftype)
4671
      iprot.readFieldEnd()
4672
    iprot.readStructEnd()
4673
 
4674
  def write(self, oprot):
4675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4677
      return
4678
    oprot.writeStructBegin('updateItem_result')
4679
    if self.success is not None:
4680
      oprot.writeFieldBegin('success', TType.I64, 0)
4681
      oprot.writeI64(self.success)
4682
      oprot.writeFieldEnd()
4683
    if self.cex is not None:
4684
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4685
      self.cex.write(oprot)
4686
      oprot.writeFieldEnd()
4687
    oprot.writeFieldStop()
4688
    oprot.writeStructEnd()
4689
 
4690
  def validate(self):
4691
    return
4692
 
4693
 
4694
  def __repr__(self):
4695
    L = ['%s=%r' % (key, value)
4696
      for key, value in self.__dict__.iteritems()]
4697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4698
 
4699
  def __eq__(self, other):
4700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4701
 
4702
  def __ne__(self, other):
4703
    return not (self == other)
4704
 
4705
class isActive_args:
4706
  """
4707
  Attributes:
4708
   - itemId
4709
  """
4710
 
4711
  thrift_spec = (
4712
    None, # 0
4713
    (1, TType.I64, 'itemId', None, None, ), # 1
4714
  )
4715
 
4716
  def __init__(self, itemId=None,):
4717
    self.itemId = itemId
4718
 
4719
  def read(self, iprot):
4720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4722
      return
4723
    iprot.readStructBegin()
4724
    while True:
4725
      (fname, ftype, fid) = iprot.readFieldBegin()
4726
      if ftype == TType.STOP:
4727
        break
4728
      if fid == 1:
4729
        if ftype == TType.I64:
4730
          self.itemId = iprot.readI64();
4731
        else:
4732
          iprot.skip(ftype)
4733
      else:
4734
        iprot.skip(ftype)
4735
      iprot.readFieldEnd()
4736
    iprot.readStructEnd()
4737
 
4738
  def write(self, oprot):
4739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4741
      return
4742
    oprot.writeStructBegin('isActive_args')
4743
    if self.itemId is not None:
4744
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4745
      oprot.writeI64(self.itemId)
4746
      oprot.writeFieldEnd()
4747
    oprot.writeFieldStop()
4748
    oprot.writeStructEnd()
4749
 
4750
  def validate(self):
4751
    return
4752
 
4753
 
4754
  def __repr__(self):
4755
    L = ['%s=%r' % (key, value)
4756
      for key, value in self.__dict__.iteritems()]
4757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4758
 
4759
  def __eq__(self, other):
4760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4761
 
4762
  def __ne__(self, other):
4763
    return not (self == other)
4764
 
4765
class isActive_result:
4766
  """
4767
  Attributes:
4768
   - success
4769
   - isex
4770
  """
4771
 
4772
  thrift_spec = (
4773
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4774
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4775
  )
4776
 
4777
  def __init__(self, success=None, isex=None,):
4778
    self.success = success
4779
    self.isex = isex
4780
 
4781
  def read(self, iprot):
4782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4784
      return
4785
    iprot.readStructBegin()
4786
    while True:
4787
      (fname, ftype, fid) = iprot.readFieldBegin()
4788
      if ftype == TType.STOP:
4789
        break
4790
      if fid == 0:
4791
        if ftype == TType.STRUCT:
4792
          self.success = ItemShippingInfo()
4793
          self.success.read(iprot)
4794
        else:
4795
          iprot.skip(ftype)
4796
      elif fid == 1:
4797
        if ftype == TType.STRUCT:
4798
          self.isex = CatalogServiceException()
4799
          self.isex.read(iprot)
4800
        else:
4801
          iprot.skip(ftype)
4802
      else:
4803
        iprot.skip(ftype)
4804
      iprot.readFieldEnd()
4805
    iprot.readStructEnd()
4806
 
4807
  def write(self, oprot):
4808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4810
      return
4811
    oprot.writeStructBegin('isActive_result')
4812
    if self.success is not None:
4813
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4814
      self.success.write(oprot)
4815
      oprot.writeFieldEnd()
4816
    if self.isex is not None:
4817
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4818
      self.isex.write(oprot)
4819
      oprot.writeFieldEnd()
4820
    oprot.writeFieldStop()
4821
    oprot.writeStructEnd()
4822
 
4823
  def validate(self):
4824
    return
4825
 
4826
 
4827
  def __repr__(self):
4828
    L = ['%s=%r' % (key, value)
4829
      for key, value in self.__dict__.iteritems()]
4830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4831
 
4832
  def __eq__(self, other):
4833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4834
 
4835
  def __ne__(self, other):
4836
    return not (self == other)
4837
 
4838
class getItemStatusDescription_args:
4839
  """
4840
  Attributes:
4841
   - itemId
4842
  """
4843
 
4844
  thrift_spec = (
4845
    None, # 0
4846
    (1, TType.I64, 'itemId', None, None, ), # 1
4847
  )
4848
 
4849
  def __init__(self, itemId=None,):
4850
    self.itemId = itemId
4851
 
4852
  def read(self, iprot):
4853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4855
      return
4856
    iprot.readStructBegin()
4857
    while True:
4858
      (fname, ftype, fid) = iprot.readFieldBegin()
4859
      if ftype == TType.STOP:
4860
        break
4861
      if fid == 1:
4862
        if ftype == TType.I64:
4863
          self.itemId = iprot.readI64();
4864
        else:
4865
          iprot.skip(ftype)
4866
      else:
4867
        iprot.skip(ftype)
4868
      iprot.readFieldEnd()
4869
    iprot.readStructEnd()
4870
 
4871
  def write(self, oprot):
4872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4874
      return
4875
    oprot.writeStructBegin('getItemStatusDescription_args')
4876
    if self.itemId is not None:
4877
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4878
      oprot.writeI64(self.itemId)
4879
      oprot.writeFieldEnd()
4880
    oprot.writeFieldStop()
4881
    oprot.writeStructEnd()
4882
 
4883
  def validate(self):
4884
    return
4885
 
4886
 
4887
  def __repr__(self):
4888
    L = ['%s=%r' % (key, value)
4889
      for key, value in self.__dict__.iteritems()]
4890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4891
 
4892
  def __eq__(self, other):
4893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4894
 
4895
  def __ne__(self, other):
4896
    return not (self == other)
4897
 
4898
class getItemStatusDescription_result:
4899
  """
4900
  Attributes:
4901
   - success
4902
   - isex
4903
  """
4904
 
4905
  thrift_spec = (
4906
    (0, TType.STRING, 'success', None, None, ), # 0
4907
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4908
  )
4909
 
4910
  def __init__(self, success=None, isex=None,):
4911
    self.success = success
4912
    self.isex = isex
4913
 
4914
  def read(self, iprot):
4915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4917
      return
4918
    iprot.readStructBegin()
4919
    while True:
4920
      (fname, ftype, fid) = iprot.readFieldBegin()
4921
      if ftype == TType.STOP:
4922
        break
4923
      if fid == 0:
4924
        if ftype == TType.STRING:
4925
          self.success = iprot.readString();
4926
        else:
4927
          iprot.skip(ftype)
4928
      elif fid == 1:
4929
        if ftype == TType.STRUCT:
4930
          self.isex = CatalogServiceException()
4931
          self.isex.read(iprot)
4932
        else:
4933
          iprot.skip(ftype)
4934
      else:
4935
        iprot.skip(ftype)
4936
      iprot.readFieldEnd()
4937
    iprot.readStructEnd()
4938
 
4939
  def write(self, oprot):
4940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4942
      return
4943
    oprot.writeStructBegin('getItemStatusDescription_result')
4944
    if self.success is not None:
4945
      oprot.writeFieldBegin('success', TType.STRING, 0)
4946
      oprot.writeString(self.success)
4947
      oprot.writeFieldEnd()
4948
    if self.isex is not None:
4949
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4950
      self.isex.write(oprot)
4951
      oprot.writeFieldEnd()
4952
    oprot.writeFieldStop()
4953
    oprot.writeStructEnd()
4954
 
4955
  def validate(self):
4956
    return
4957
 
4958
 
4959
  def __repr__(self):
4960
    L = ['%s=%r' % (key, value)
4961
      for key, value in self.__dict__.iteritems()]
4962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4963
 
4964
  def __eq__(self, other):
4965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4966
 
4967
  def __ne__(self, other):
4968
    return not (self == other)
4969
 
4970
class startItemOn_args:
4971
  """
4972
  Attributes:
4973
   - item_id
4974
   - timestamp
4975
  """
4976
 
4977
  thrift_spec = (
4978
    None, # 0
4979
    (1, TType.I64, 'item_id', None, None, ), # 1
4980
    (2, TType.I64, 'timestamp', None, None, ), # 2
4981
  )
4982
 
4983
  def __init__(self, item_id=None, timestamp=None,):
4984
    self.item_id = item_id
4985
    self.timestamp = timestamp
4986
 
4987
  def read(self, iprot):
4988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4990
      return
4991
    iprot.readStructBegin()
4992
    while True:
4993
      (fname, ftype, fid) = iprot.readFieldBegin()
4994
      if ftype == TType.STOP:
4995
        break
4996
      if fid == 1:
4997
        if ftype == TType.I64:
4998
          self.item_id = iprot.readI64();
4999
        else:
5000
          iprot.skip(ftype)
5001
      elif fid == 2:
5002
        if ftype == TType.I64:
5003
          self.timestamp = iprot.readI64();
5004
        else:
5005
          iprot.skip(ftype)
5006
      else:
5007
        iprot.skip(ftype)
5008
      iprot.readFieldEnd()
5009
    iprot.readStructEnd()
5010
 
5011
  def write(self, oprot):
5012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5014
      return
5015
    oprot.writeStructBegin('startItemOn_args')
5016
    if self.item_id is not None:
5017
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5018
      oprot.writeI64(self.item_id)
5019
      oprot.writeFieldEnd()
5020
    if self.timestamp is not None:
5021
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5022
      oprot.writeI64(self.timestamp)
5023
      oprot.writeFieldEnd()
5024
    oprot.writeFieldStop()
5025
    oprot.writeStructEnd()
5026
 
5027
  def validate(self):
5028
    return
5029
 
5030
 
5031
  def __repr__(self):
5032
    L = ['%s=%r' % (key, value)
5033
      for key, value in self.__dict__.iteritems()]
5034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5035
 
5036
  def __eq__(self, other):
5037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5038
 
5039
  def __ne__(self, other):
5040
    return not (self == other)
5041
 
5042
class startItemOn_result:
5043
  """
5044
  Attributes:
5045
   - cex
5046
  """
5047
 
5048
  thrift_spec = (
5049
    None, # 0
5050
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5051
  )
5052
 
5053
  def __init__(self, cex=None,):
5054
    self.cex = cex
5055
 
5056
  def read(self, iprot):
5057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5059
      return
5060
    iprot.readStructBegin()
5061
    while True:
5062
      (fname, ftype, fid) = iprot.readFieldBegin()
5063
      if ftype == TType.STOP:
5064
        break
5065
      if fid == 1:
5066
        if ftype == TType.STRUCT:
5067
          self.cex = CatalogServiceException()
5068
          self.cex.read(iprot)
5069
        else:
5070
          iprot.skip(ftype)
5071
      else:
5072
        iprot.skip(ftype)
5073
      iprot.readFieldEnd()
5074
    iprot.readStructEnd()
5075
 
5076
  def write(self, oprot):
5077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5079
      return
5080
    oprot.writeStructBegin('startItemOn_result')
5081
    if self.cex is not None:
5082
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5083
      self.cex.write(oprot)
5084
      oprot.writeFieldEnd()
5085
    oprot.writeFieldStop()
5086
    oprot.writeStructEnd()
5087
 
5088
  def validate(self):
5089
    return
5090
 
5091
 
5092
  def __repr__(self):
5093
    L = ['%s=%r' % (key, value)
5094
      for key, value in self.__dict__.iteritems()]
5095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5096
 
5097
  def __eq__(self, other):
5098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5099
 
5100
  def __ne__(self, other):
5101
    return not (self == other)
5102
 
5103
class retireItemOn_args:
5104
  """
5105
  Attributes:
5106
   - item_id
5107
   - timestamp
5108
  """
5109
 
5110
  thrift_spec = (
5111
    None, # 0
5112
    (1, TType.I64, 'item_id', None, None, ), # 1
5113
    (2, TType.I64, 'timestamp', None, None, ), # 2
5114
  )
5115
 
5116
  def __init__(self, item_id=None, timestamp=None,):
5117
    self.item_id = item_id
5118
    self.timestamp = timestamp
5119
 
5120
  def read(self, iprot):
5121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5123
      return
5124
    iprot.readStructBegin()
5125
    while True:
5126
      (fname, ftype, fid) = iprot.readFieldBegin()
5127
      if ftype == TType.STOP:
5128
        break
5129
      if fid == 1:
5130
        if ftype == TType.I64:
5131
          self.item_id = iprot.readI64();
5132
        else:
5133
          iprot.skip(ftype)
5134
      elif fid == 2:
5135
        if ftype == TType.I64:
5136
          self.timestamp = iprot.readI64();
5137
        else:
5138
          iprot.skip(ftype)
5139
      else:
5140
        iprot.skip(ftype)
5141
      iprot.readFieldEnd()
5142
    iprot.readStructEnd()
5143
 
5144
  def write(self, oprot):
5145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5147
      return
5148
    oprot.writeStructBegin('retireItemOn_args')
5149
    if self.item_id is not None:
5150
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5151
      oprot.writeI64(self.item_id)
5152
      oprot.writeFieldEnd()
5153
    if self.timestamp is not None:
5154
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5155
      oprot.writeI64(self.timestamp)
5156
      oprot.writeFieldEnd()
5157
    oprot.writeFieldStop()
5158
    oprot.writeStructEnd()
5159
 
5160
  def validate(self):
5161
    return
5162
 
5163
 
5164
  def __repr__(self):
5165
    L = ['%s=%r' % (key, value)
5166
      for key, value in self.__dict__.iteritems()]
5167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5168
 
5169
  def __eq__(self, other):
5170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5171
 
5172
  def __ne__(self, other):
5173
    return not (self == other)
5174
 
5175
class retireItemOn_result:
5176
  """
5177
  Attributes:
5178
   - cex
5179
  """
5180
 
5181
  thrift_spec = (
5182
    None, # 0
5183
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5184
  )
5185
 
5186
  def __init__(self, cex=None,):
5187
    self.cex = cex
5188
 
5189
  def read(self, iprot):
5190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5192
      return
5193
    iprot.readStructBegin()
5194
    while True:
5195
      (fname, ftype, fid) = iprot.readFieldBegin()
5196
      if ftype == TType.STOP:
5197
        break
5198
      if fid == 1:
5199
        if ftype == TType.STRUCT:
5200
          self.cex = CatalogServiceException()
5201
          self.cex.read(iprot)
5202
        else:
5203
          iprot.skip(ftype)
5204
      else:
5205
        iprot.skip(ftype)
5206
      iprot.readFieldEnd()
5207
    iprot.readStructEnd()
5208
 
5209
  def write(self, oprot):
5210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5212
      return
5213
    oprot.writeStructBegin('retireItemOn_result')
5214
    if self.cex is not None:
5215
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5216
      self.cex.write(oprot)
5217
      oprot.writeFieldEnd()
5218
    oprot.writeFieldStop()
5219
    oprot.writeStructEnd()
5220
 
5221
  def validate(self):
5222
    return
5223
 
5224
 
5225
  def __repr__(self):
5226
    L = ['%s=%r' % (key, value)
5227
      for key, value in self.__dict__.iteritems()]
5228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5229
 
5230
  def __eq__(self, other):
5231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5232
 
5233
  def __ne__(self, other):
5234
    return not (self == other)
5235
 
5236
class changeItemStatus_args:
5237
  """
5238
  Attributes:
5239
   - item_id
5240
   - timestamp
5241
   - newstatus
5242
  """
5243
 
5244
  thrift_spec = (
5245
    None, # 0
5246
    (1, TType.I64, 'item_id', None, None, ), # 1
5247
    (2, TType.I64, 'timestamp', None, None, ), # 2
5248
    (3, TType.I32, 'newstatus', None, None, ), # 3
5249
  )
5250
 
5251
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
5252
    self.item_id = item_id
5253
    self.timestamp = timestamp
5254
    self.newstatus = newstatus
5255
 
5256
  def read(self, iprot):
5257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5259
      return
5260
    iprot.readStructBegin()
5261
    while True:
5262
      (fname, ftype, fid) = iprot.readFieldBegin()
5263
      if ftype == TType.STOP:
5264
        break
5265
      if fid == 1:
5266
        if ftype == TType.I64:
5267
          self.item_id = iprot.readI64();
5268
        else:
5269
          iprot.skip(ftype)
5270
      elif fid == 2:
5271
        if ftype == TType.I64:
5272
          self.timestamp = iprot.readI64();
5273
        else:
5274
          iprot.skip(ftype)
5275
      elif fid == 3:
5276
        if ftype == TType.I32:
5277
          self.newstatus = iprot.readI32();
5278
        else:
5279
          iprot.skip(ftype)
5280
      else:
5281
        iprot.skip(ftype)
5282
      iprot.readFieldEnd()
5283
    iprot.readStructEnd()
5284
 
5285
  def write(self, oprot):
5286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5288
      return
5289
    oprot.writeStructBegin('changeItemStatus_args')
5290
    if self.item_id is not None:
5291
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5292
      oprot.writeI64(self.item_id)
5293
      oprot.writeFieldEnd()
5294
    if self.timestamp is not None:
5295
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5296
      oprot.writeI64(self.timestamp)
5297
      oprot.writeFieldEnd()
5298
    if self.newstatus is not None:
5299
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
5300
      oprot.writeI32(self.newstatus)
5301
      oprot.writeFieldEnd()
5302
    oprot.writeFieldStop()
5303
    oprot.writeStructEnd()
5304
 
5305
  def validate(self):
5306
    return
5307
 
5308
 
5309
  def __repr__(self):
5310
    L = ['%s=%r' % (key, value)
5311
      for key, value in self.__dict__.iteritems()]
5312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5313
 
5314
  def __eq__(self, other):
5315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5316
 
5317
  def __ne__(self, other):
5318
    return not (self == other)
5319
 
5320
class changeItemStatus_result:
5321
  """
5322
  Attributes:
5323
   - cex
5324
  """
5325
 
5326
  thrift_spec = (
5327
    None, # 0
5328
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5329
  )
5330
 
5331
  def __init__(self, cex=None,):
5332
    self.cex = cex
5333
 
5334
  def read(self, iprot):
5335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5337
      return
5338
    iprot.readStructBegin()
5339
    while True:
5340
      (fname, ftype, fid) = iprot.readFieldBegin()
5341
      if ftype == TType.STOP:
5342
        break
5343
      if fid == 1:
5344
        if ftype == TType.STRUCT:
5345
          self.cex = CatalogServiceException()
5346
          self.cex.read(iprot)
5347
        else:
5348
          iprot.skip(ftype)
5349
      else:
5350
        iprot.skip(ftype)
5351
      iprot.readFieldEnd()
5352
    iprot.readStructEnd()
5353
 
5354
  def write(self, oprot):
5355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5357
      return
5358
    oprot.writeStructBegin('changeItemStatus_result')
5359
    if self.cex is not None:
5360
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5361
      self.cex.write(oprot)
5362
      oprot.writeFieldEnd()
5363
    oprot.writeFieldStop()
5364
    oprot.writeStructEnd()
5365
 
5366
  def validate(self):
5367
    return
5368
 
5369
 
5370
  def __repr__(self):
5371
    L = ['%s=%r' % (key, value)
5372
      for key, value in self.__dict__.iteritems()]
5373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5374
 
5375
  def __eq__(self, other):
5376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5377
 
5378
  def __ne__(self, other):
5379
    return not (self == other)
5380
 
5381
class getItem_args:
5382
  """
5383
  Attributes:
5384
   - item_id
5385
  """
5386
 
5387
  thrift_spec = (
5388
    None, # 0
5389
    (1, TType.I64, 'item_id', None, None, ), # 1
5390
  )
5391
 
5392
  def __init__(self, item_id=None,):
5393
    self.item_id = item_id
5394
 
5395
  def read(self, iprot):
5396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5398
      return
5399
    iprot.readStructBegin()
5400
    while True:
5401
      (fname, ftype, fid) = iprot.readFieldBegin()
5402
      if ftype == TType.STOP:
5403
        break
5404
      if fid == 1:
5405
        if ftype == TType.I64:
5406
          self.item_id = iprot.readI64();
5407
        else:
5408
          iprot.skip(ftype)
5409
      else:
5410
        iprot.skip(ftype)
5411
      iprot.readFieldEnd()
5412
    iprot.readStructEnd()
5413
 
5414
  def write(self, oprot):
5415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5417
      return
5418
    oprot.writeStructBegin('getItem_args')
5419
    if self.item_id is not None:
5420
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5421
      oprot.writeI64(self.item_id)
5422
      oprot.writeFieldEnd()
5423
    oprot.writeFieldStop()
5424
    oprot.writeStructEnd()
5425
 
5426
  def validate(self):
5427
    return
5428
 
5429
 
5430
  def __repr__(self):
5431
    L = ['%s=%r' % (key, value)
5432
      for key, value in self.__dict__.iteritems()]
5433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5434
 
5435
  def __eq__(self, other):
5436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5437
 
5438
  def __ne__(self, other):
5439
    return not (self == other)
5440
 
5441
class getItem_result:
5442
  """
5443
  Attributes:
5444
   - success
5445
   - cex
5446
  """
5447
 
5448
  thrift_spec = (
5449
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
5450
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5451
  )
5452
 
5453
  def __init__(self, success=None, cex=None,):
5454
    self.success = success
5455
    self.cex = cex
5456
 
5457
  def read(self, iprot):
5458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5460
      return
5461
    iprot.readStructBegin()
5462
    while True:
5463
      (fname, ftype, fid) = iprot.readFieldBegin()
5464
      if ftype == TType.STOP:
5465
        break
5466
      if fid == 0:
5467
        if ftype == TType.STRUCT:
5468
          self.success = Item()
5469
          self.success.read(iprot)
5470
        else:
5471
          iprot.skip(ftype)
5472
      elif fid == 1:
5473
        if ftype == TType.STRUCT:
5474
          self.cex = CatalogServiceException()
5475
          self.cex.read(iprot)
5476
        else:
5477
          iprot.skip(ftype)
5478
      else:
5479
        iprot.skip(ftype)
5480
      iprot.readFieldEnd()
5481
    iprot.readStructEnd()
5482
 
5483
  def write(self, oprot):
5484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5486
      return
5487
    oprot.writeStructBegin('getItem_result')
5488
    if self.success is not None:
5489
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5490
      self.success.write(oprot)
5491
      oprot.writeFieldEnd()
5492
    if self.cex is not None:
5493
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5494
      self.cex.write(oprot)
5495
      oprot.writeFieldEnd()
5496
    oprot.writeFieldStop()
5497
    oprot.writeStructEnd()
5498
 
5499
  def validate(self):
5500
    return
5501
 
5502
 
5503
  def __repr__(self):
5504
    L = ['%s=%r' % (key, value)
5505
      for key, value in self.__dict__.iteritems()]
5506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5507
 
5508
  def __eq__(self, other):
5509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5510
 
5511
  def __ne__(self, other):
5512
    return not (self == other)
5513
 
5514
class getItemsByCatalogId_args:
5515
  """
5516
  Attributes:
5517
   - catalog_item_id
5518
  """
5519
 
5520
  thrift_spec = (
5521
    None, # 0
5522
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5523
  )
5524
 
5525
  def __init__(self, catalog_item_id=None,):
5526
    self.catalog_item_id = catalog_item_id
5527
 
5528
  def read(self, iprot):
5529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5531
      return
5532
    iprot.readStructBegin()
5533
    while True:
5534
      (fname, ftype, fid) = iprot.readFieldBegin()
5535
      if ftype == TType.STOP:
5536
        break
5537
      if fid == 1:
5538
        if ftype == TType.I64:
5539
          self.catalog_item_id = iprot.readI64();
5540
        else:
5541
          iprot.skip(ftype)
5542
      else:
5543
        iprot.skip(ftype)
5544
      iprot.readFieldEnd()
5545
    iprot.readStructEnd()
5546
 
5547
  def write(self, oprot):
5548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5550
      return
5551
    oprot.writeStructBegin('getItemsByCatalogId_args')
5552
    if self.catalog_item_id is not None:
5553
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5554
      oprot.writeI64(self.catalog_item_id)
5555
      oprot.writeFieldEnd()
5556
    oprot.writeFieldStop()
5557
    oprot.writeStructEnd()
5558
 
5559
  def validate(self):
5560
    return
5561
 
5562
 
5563
  def __repr__(self):
5564
    L = ['%s=%r' % (key, value)
5565
      for key, value in self.__dict__.iteritems()]
5566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5567
 
5568
  def __eq__(self, other):
5569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5570
 
5571
  def __ne__(self, other):
5572
    return not (self == other)
5573
 
5574
class getItemsByCatalogId_result:
5575
  """
5576
  Attributes:
5577
   - success
5578
   - cex
5579
  """
5580
 
5581
  thrift_spec = (
5582
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5583
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5584
  )
5585
 
5586
  def __init__(self, success=None, cex=None,):
5587
    self.success = success
5588
    self.cex = cex
5589
 
5590
  def read(self, iprot):
5591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5593
      return
5594
    iprot.readStructBegin()
5595
    while True:
5596
      (fname, ftype, fid) = iprot.readFieldBegin()
5597
      if ftype == TType.STOP:
5598
        break
5599
      if fid == 0:
5600
        if ftype == TType.LIST:
5601
          self.success = []
5602
          (_etype19, _size16) = iprot.readListBegin()
5603
          for _i20 in xrange(_size16):
5604
            _elem21 = Item()
5605
            _elem21.read(iprot)
5606
            self.success.append(_elem21)
5607
          iprot.readListEnd()
5608
        else:
5609
          iprot.skip(ftype)
5610
      elif fid == 1:
5611
        if ftype == TType.STRUCT:
5612
          self.cex = CatalogServiceException()
5613
          self.cex.read(iprot)
5614
        else:
5615
          iprot.skip(ftype)
5616
      else:
5617
        iprot.skip(ftype)
5618
      iprot.readFieldEnd()
5619
    iprot.readStructEnd()
5620
 
5621
  def write(self, oprot):
5622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5624
      return
5625
    oprot.writeStructBegin('getItemsByCatalogId_result')
5626
    if self.success is not None:
5627
      oprot.writeFieldBegin('success', TType.LIST, 0)
5628
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5629
      for iter22 in self.success:
5630
        iter22.write(oprot)
5631
      oprot.writeListEnd()
5632
      oprot.writeFieldEnd()
5633
    if self.cex is not None:
5634
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5635
      self.cex.write(oprot)
5636
      oprot.writeFieldEnd()
5637
    oprot.writeFieldStop()
5638
    oprot.writeStructEnd()
5639
 
5640
  def validate(self):
5641
    return
5642
 
5643
 
5644
  def __repr__(self):
5645
    L = ['%s=%r' % (key, value)
5646
      for key, value in self.__dict__.iteritems()]
5647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5648
 
5649
  def __eq__(self, other):
5650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5651
 
5652
  def __ne__(self, other):
5653
    return not (self == other)
5654
 
5655
class getValidItemsByCatalogId_args:
5656
  """
5657
  Attributes:
5658
   - catalog_item_id
5659
  """
5660
 
5661
  thrift_spec = (
5662
    None, # 0
5663
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
5664
  )
5665
 
5666
  def __init__(self, catalog_item_id=None,):
5667
    self.catalog_item_id = catalog_item_id
5668
 
5669
  def read(self, iprot):
5670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5672
      return
5673
    iprot.readStructBegin()
5674
    while True:
5675
      (fname, ftype, fid) = iprot.readFieldBegin()
5676
      if ftype == TType.STOP:
5677
        break
5678
      if fid == 1:
5679
        if ftype == TType.I64:
5680
          self.catalog_item_id = iprot.readI64();
5681
        else:
5682
          iprot.skip(ftype)
5683
      else:
5684
        iprot.skip(ftype)
5685
      iprot.readFieldEnd()
5686
    iprot.readStructEnd()
5687
 
5688
  def write(self, oprot):
5689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5691
      return
5692
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
5693
    if self.catalog_item_id is not None:
5694
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
5695
      oprot.writeI64(self.catalog_item_id)
5696
      oprot.writeFieldEnd()
5697
    oprot.writeFieldStop()
5698
    oprot.writeStructEnd()
5699
 
5700
  def validate(self):
5701
    return
5702
 
5703
 
5704
  def __repr__(self):
5705
    L = ['%s=%r' % (key, value)
5706
      for key, value in self.__dict__.iteritems()]
5707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5708
 
5709
  def __eq__(self, other):
5710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5711
 
5712
  def __ne__(self, other):
5713
    return not (self == other)
5714
 
5715
class getValidItemsByCatalogId_result:
5716
  """
5717
  Attributes:
5718
   - success
5719
   - cex
5720
  """
5721
 
5722
  thrift_spec = (
5723
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5724
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5725
  )
5726
 
5727
  def __init__(self, success=None, cex=None,):
5728
    self.success = success
5729
    self.cex = cex
5730
 
5731
  def read(self, iprot):
5732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5734
      return
5735
    iprot.readStructBegin()
5736
    while True:
5737
      (fname, ftype, fid) = iprot.readFieldBegin()
5738
      if ftype == TType.STOP:
5739
        break
5740
      if fid == 0:
5741
        if ftype == TType.LIST:
5742
          self.success = []
5743
          (_etype26, _size23) = iprot.readListBegin()
5744
          for _i27 in xrange(_size23):
5745
            _elem28 = Item()
5746
            _elem28.read(iprot)
5747
            self.success.append(_elem28)
5748
          iprot.readListEnd()
5749
        else:
5750
          iprot.skip(ftype)
5751
      elif fid == 1:
5752
        if ftype == TType.STRUCT:
5753
          self.cex = CatalogServiceException()
5754
          self.cex.read(iprot)
5755
        else:
5756
          iprot.skip(ftype)
5757
      else:
5758
        iprot.skip(ftype)
5759
      iprot.readFieldEnd()
5760
    iprot.readStructEnd()
5761
 
5762
  def write(self, oprot):
5763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5765
      return
5766
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5767
    if self.success is not None:
5768
      oprot.writeFieldBegin('success', TType.LIST, 0)
5769
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5770
      for iter29 in self.success:
5771
        iter29.write(oprot)
5772
      oprot.writeListEnd()
5773
      oprot.writeFieldEnd()
5774
    if self.cex is not None:
5775
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5776
      self.cex.write(oprot)
5777
      oprot.writeFieldEnd()
5778
    oprot.writeFieldStop()
5779
    oprot.writeStructEnd()
5780
 
5781
  def validate(self):
5782
    return
5783
 
5784
 
5785
  def __repr__(self):
5786
    L = ['%s=%r' % (key, value)
5787
      for key, value in self.__dict__.iteritems()]
5788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5789
 
5790
  def __eq__(self, other):
5791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5792
 
5793
  def __ne__(self, other):
5794
    return not (self == other)
5795
 
5796
class getAllItems_args:
5797
  """
5798
  Attributes:
5799
   - isActive
5800
  """
5801
 
5802
  thrift_spec = (
5803
    None, # 0
5804
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5805
  )
5806
 
5807
  def __init__(self, isActive=None,):
5808
    self.isActive = isActive
5809
 
5810
  def read(self, iprot):
5811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5813
      return
5814
    iprot.readStructBegin()
5815
    while True:
5816
      (fname, ftype, fid) = iprot.readFieldBegin()
5817
      if ftype == TType.STOP:
5818
        break
5819
      if fid == 1:
5820
        if ftype == TType.BOOL:
5821
          self.isActive = iprot.readBool();
5822
        else:
5823
          iprot.skip(ftype)
5824
      else:
5825
        iprot.skip(ftype)
5826
      iprot.readFieldEnd()
5827
    iprot.readStructEnd()
5828
 
5829
  def write(self, oprot):
5830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5832
      return
5833
    oprot.writeStructBegin('getAllItems_args')
5834
    if self.isActive is not None:
5835
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5836
      oprot.writeBool(self.isActive)
5837
      oprot.writeFieldEnd()
5838
    oprot.writeFieldStop()
5839
    oprot.writeStructEnd()
5840
 
5841
  def validate(self):
5842
    return
5843
 
5844
 
5845
  def __repr__(self):
5846
    L = ['%s=%r' % (key, value)
5847
      for key, value in self.__dict__.iteritems()]
5848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5849
 
5850
  def __eq__(self, other):
5851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5852
 
5853
  def __ne__(self, other):
5854
    return not (self == other)
5855
 
5856
class getAllItems_result:
5857
  """
5858
  Attributes:
5859
   - success
5860
   - cex
5861
  """
5862
 
5863
  thrift_spec = (
5864
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5865
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5866
  )
5867
 
5868
  def __init__(self, success=None, cex=None,):
5869
    self.success = success
5870
    self.cex = cex
5871
 
5872
  def read(self, iprot):
5873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5875
      return
5876
    iprot.readStructBegin()
5877
    while True:
5878
      (fname, ftype, fid) = iprot.readFieldBegin()
5879
      if ftype == TType.STOP:
5880
        break
5881
      if fid == 0:
5882
        if ftype == TType.LIST:
5883
          self.success = []
5884
          (_etype33, _size30) = iprot.readListBegin()
5885
          for _i34 in xrange(_size30):
5886
            _elem35 = Item()
5887
            _elem35.read(iprot)
5888
            self.success.append(_elem35)
5889
          iprot.readListEnd()
5890
        else:
5891
          iprot.skip(ftype)
5892
      elif fid == 1:
5893
        if ftype == TType.STRUCT:
5894
          self.cex = CatalogServiceException()
5895
          self.cex.read(iprot)
5896
        else:
5897
          iprot.skip(ftype)
5898
      else:
5899
        iprot.skip(ftype)
5900
      iprot.readFieldEnd()
5901
    iprot.readStructEnd()
5902
 
5903
  def write(self, oprot):
5904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5906
      return
5907
    oprot.writeStructBegin('getAllItems_result')
5908
    if self.success is not None:
5909
      oprot.writeFieldBegin('success', TType.LIST, 0)
5910
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5911
      for iter36 in self.success:
5912
        iter36.write(oprot)
5913
      oprot.writeListEnd()
5914
      oprot.writeFieldEnd()
5915
    if self.cex is not None:
5916
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5917
      self.cex.write(oprot)
5918
      oprot.writeFieldEnd()
5919
    oprot.writeFieldStop()
5920
    oprot.writeStructEnd()
5921
 
5922
  def validate(self):
5923
    return
5924
 
5925
 
5926
  def __repr__(self):
5927
    L = ['%s=%r' % (key, value)
5928
      for key, value in self.__dict__.iteritems()]
5929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5930
 
5931
  def __eq__(self, other):
5932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5933
 
5934
  def __ne__(self, other):
5935
    return not (self == other)
5936
 
5937
class getAllItemsByStatus_args:
5938
  """
5939
  Attributes:
5940
   - itemStatus
5941
  """
5942
 
5943
  thrift_spec = (
5944
    None, # 0
5945
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5946
  )
5947
 
5948
  def __init__(self, itemStatus=None,):
5949
    self.itemStatus = itemStatus
5950
 
5951
  def read(self, iprot):
5952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5954
      return
5955
    iprot.readStructBegin()
5956
    while True:
5957
      (fname, ftype, fid) = iprot.readFieldBegin()
5958
      if ftype == TType.STOP:
5959
        break
5960
      if fid == 1:
5961
        if ftype == TType.I32:
5962
          self.itemStatus = iprot.readI32();
5963
        else:
5964
          iprot.skip(ftype)
5965
      else:
5966
        iprot.skip(ftype)
5967
      iprot.readFieldEnd()
5968
    iprot.readStructEnd()
5969
 
5970
  def write(self, oprot):
5971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5973
      return
5974
    oprot.writeStructBegin('getAllItemsByStatus_args')
5975
    if self.itemStatus is not None:
5976
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5977
      oprot.writeI32(self.itemStatus)
5978
      oprot.writeFieldEnd()
5979
    oprot.writeFieldStop()
5980
    oprot.writeStructEnd()
5981
 
5982
  def validate(self):
5983
    return
5984
 
5985
 
5986
  def __repr__(self):
5987
    L = ['%s=%r' % (key, value)
5988
      for key, value in self.__dict__.iteritems()]
5989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5990
 
5991
  def __eq__(self, other):
5992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5993
 
5994
  def __ne__(self, other):
5995
    return not (self == other)
5996
 
5997
class getAllItemsByStatus_result:
5998
  """
5999
  Attributes:
6000
   - success
6001
   - cex
6002
  """
6003
 
6004
  thrift_spec = (
6005
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6006
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6007
  )
6008
 
6009
  def __init__(self, success=None, cex=None,):
6010
    self.success = success
6011
    self.cex = cex
6012
 
6013
  def read(self, iprot):
6014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6016
      return
6017
    iprot.readStructBegin()
6018
    while True:
6019
      (fname, ftype, fid) = iprot.readFieldBegin()
6020
      if ftype == TType.STOP:
6021
        break
6022
      if fid == 0:
6023
        if ftype == TType.LIST:
6024
          self.success = []
6025
          (_etype40, _size37) = iprot.readListBegin()
6026
          for _i41 in xrange(_size37):
6027
            _elem42 = Item()
6028
            _elem42.read(iprot)
6029
            self.success.append(_elem42)
6030
          iprot.readListEnd()
6031
        else:
6032
          iprot.skip(ftype)
6033
      elif fid == 1:
6034
        if ftype == TType.STRUCT:
6035
          self.cex = CatalogServiceException()
6036
          self.cex.read(iprot)
6037
        else:
6038
          iprot.skip(ftype)
6039
      else:
6040
        iprot.skip(ftype)
6041
      iprot.readFieldEnd()
6042
    iprot.readStructEnd()
6043
 
6044
  def write(self, oprot):
6045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6047
      return
6048
    oprot.writeStructBegin('getAllItemsByStatus_result')
6049
    if self.success is not None:
6050
      oprot.writeFieldBegin('success', TType.LIST, 0)
6051
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6052
      for iter43 in self.success:
6053
        iter43.write(oprot)
6054
      oprot.writeListEnd()
6055
      oprot.writeFieldEnd()
6056
    if self.cex is not None:
6057
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6058
      self.cex.write(oprot)
6059
      oprot.writeFieldEnd()
6060
    oprot.writeFieldStop()
6061
    oprot.writeStructEnd()
6062
 
6063
  def validate(self):
6064
    return
6065
 
6066
 
6067
  def __repr__(self):
6068
    L = ['%s=%r' % (key, value)
6069
      for key, value in self.__dict__.iteritems()]
6070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6071
 
6072
  def __eq__(self, other):
6073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6074
 
6075
  def __ne__(self, other):
6076
    return not (self == other)
6077
 
6078
class markItemAsContentComplete_args:
6079
  """
6080
  Attributes:
6081
   - entityId
6082
   - category
6083
   - brand
6084
   - modelName
6085
   - modelNumber
6086
  """
6087
 
6088
  thrift_spec = (
6089
    None, # 0
6090
    (1, TType.I64, 'entityId', None, None, ), # 1
6091
    (2, TType.I64, 'category', None, None, ), # 2
6092
    (3, TType.STRING, 'brand', None, None, ), # 3
6093
    (4, TType.STRING, 'modelName', None, None, ), # 4
6094
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
6095
  )
6096
 
6097
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
6098
    self.entityId = entityId
6099
    self.category = category
6100
    self.brand = brand
6101
    self.modelName = modelName
6102
    self.modelNumber = modelNumber
6103
 
6104
  def read(self, iprot):
6105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6107
      return
6108
    iprot.readStructBegin()
6109
    while True:
6110
      (fname, ftype, fid) = iprot.readFieldBegin()
6111
      if ftype == TType.STOP:
6112
        break
6113
      if fid == 1:
6114
        if ftype == TType.I64:
6115
          self.entityId = iprot.readI64();
6116
        else:
6117
          iprot.skip(ftype)
6118
      elif fid == 2:
6119
        if ftype == TType.I64:
6120
          self.category = iprot.readI64();
6121
        else:
6122
          iprot.skip(ftype)
6123
      elif fid == 3:
6124
        if ftype == TType.STRING:
6125
          self.brand = iprot.readString();
6126
        else:
6127
          iprot.skip(ftype)
6128
      elif fid == 4:
6129
        if ftype == TType.STRING:
6130
          self.modelName = iprot.readString();
6131
        else:
6132
          iprot.skip(ftype)
6133
      elif fid == 5:
6134
        if ftype == TType.STRING:
6135
          self.modelNumber = iprot.readString();
6136
        else:
6137
          iprot.skip(ftype)
6138
      else:
6139
        iprot.skip(ftype)
6140
      iprot.readFieldEnd()
6141
    iprot.readStructEnd()
6142
 
6143
  def write(self, oprot):
6144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6146
      return
6147
    oprot.writeStructBegin('markItemAsContentComplete_args')
6148
    if self.entityId is not None:
6149
      oprot.writeFieldBegin('entityId', TType.I64, 1)
6150
      oprot.writeI64(self.entityId)
6151
      oprot.writeFieldEnd()
6152
    if self.category is not None:
6153
      oprot.writeFieldBegin('category', TType.I64, 2)
6154
      oprot.writeI64(self.category)
6155
      oprot.writeFieldEnd()
6156
    if self.brand is not None:
6157
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6158
      oprot.writeString(self.brand)
6159
      oprot.writeFieldEnd()
6160
    if self.modelName is not None:
6161
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
6162
      oprot.writeString(self.modelName)
6163
      oprot.writeFieldEnd()
6164
    if self.modelNumber is not None:
6165
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
6166
      oprot.writeString(self.modelNumber)
6167
      oprot.writeFieldEnd()
6168
    oprot.writeFieldStop()
6169
    oprot.writeStructEnd()
6170
 
6171
  def validate(self):
6172
    return
6173
 
6174
 
6175
  def __repr__(self):
6176
    L = ['%s=%r' % (key, value)
6177
      for key, value in self.__dict__.iteritems()]
6178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6179
 
6180
  def __eq__(self, other):
6181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6182
 
6183
  def __ne__(self, other):
6184
    return not (self == other)
6185
 
6186
class markItemAsContentComplete_result:
6187
  """
6188
  Attributes:
6189
   - success
6190
   - cex
6191
  """
6192
 
6193
  thrift_spec = (
6194
    (0, TType.BOOL, 'success', None, None, ), # 0
6195
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6196
  )
6197
 
6198
  def __init__(self, success=None, cex=None,):
6199
    self.success = success
6200
    self.cex = cex
6201
 
6202
  def read(self, iprot):
6203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6205
      return
6206
    iprot.readStructBegin()
6207
    while True:
6208
      (fname, ftype, fid) = iprot.readFieldBegin()
6209
      if ftype == TType.STOP:
6210
        break
6211
      if fid == 0:
6212
        if ftype == TType.BOOL:
6213
          self.success = iprot.readBool();
6214
        else:
6215
          iprot.skip(ftype)
6216
      elif fid == 1:
6217
        if ftype == TType.STRUCT:
6218
          self.cex = CatalogServiceException()
6219
          self.cex.read(iprot)
6220
        else:
6221
          iprot.skip(ftype)
6222
      else:
6223
        iprot.skip(ftype)
6224
      iprot.readFieldEnd()
6225
    iprot.readStructEnd()
6226
 
6227
  def write(self, oprot):
6228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6230
      return
6231
    oprot.writeStructBegin('markItemAsContentComplete_result')
6232
    if self.success is not None:
6233
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6234
      oprot.writeBool(self.success)
6235
      oprot.writeFieldEnd()
6236
    if self.cex is not None:
6237
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6238
      self.cex.write(oprot)
6239
      oprot.writeFieldEnd()
6240
    oprot.writeFieldStop()
6241
    oprot.writeStructEnd()
6242
 
6243
  def validate(self):
6244
    return
6245
 
6246
 
6247
  def __repr__(self):
6248
    L = ['%s=%r' % (key, value)
6249
      for key, value in self.__dict__.iteritems()]
6250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6251
 
6252
  def __eq__(self, other):
6253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6254
 
6255
  def __ne__(self, other):
6256
    return not (self == other)
6257
 
6258
class getAllItemsInRange_args:
6259
  """
6260
  Attributes:
6261
   - offset
6262
   - limit
6263
  """
6264
 
6265
  thrift_spec = (
6266
    None, # 0
6267
    (1, TType.I64, 'offset', None, None, ), # 1
6268
    (2, TType.I64, 'limit', None, None, ), # 2
6269
  )
6270
 
6271
  def __init__(self, offset=None, limit=None,):
6272
    self.offset = offset
6273
    self.limit = limit
6274
 
6275
  def read(self, iprot):
6276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6278
      return
6279
    iprot.readStructBegin()
6280
    while True:
6281
      (fname, ftype, fid) = iprot.readFieldBegin()
6282
      if ftype == TType.STOP:
6283
        break
6284
      if fid == 1:
6285
        if ftype == TType.I64:
6286
          self.offset = iprot.readI64();
6287
        else:
6288
          iprot.skip(ftype)
6289
      elif fid == 2:
6290
        if ftype == TType.I64:
6291
          self.limit = iprot.readI64();
6292
        else:
6293
          iprot.skip(ftype)
6294
      else:
6295
        iprot.skip(ftype)
6296
      iprot.readFieldEnd()
6297
    iprot.readStructEnd()
6298
 
6299
  def write(self, oprot):
6300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6302
      return
6303
    oprot.writeStructBegin('getAllItemsInRange_args')
6304
    if self.offset is not None:
6305
      oprot.writeFieldBegin('offset', TType.I64, 1)
6306
      oprot.writeI64(self.offset)
6307
      oprot.writeFieldEnd()
6308
    if self.limit is not None:
6309
      oprot.writeFieldBegin('limit', TType.I64, 2)
6310
      oprot.writeI64(self.limit)
6311
      oprot.writeFieldEnd()
6312
    oprot.writeFieldStop()
6313
    oprot.writeStructEnd()
6314
 
6315
  def validate(self):
6316
    return
6317
 
6318
 
6319
  def __repr__(self):
6320
    L = ['%s=%r' % (key, value)
6321
      for key, value in self.__dict__.iteritems()]
6322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6323
 
6324
  def __eq__(self, other):
6325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6326
 
6327
  def __ne__(self, other):
6328
    return not (self == other)
6329
 
6330
class getAllItemsInRange_result:
6331
  """
6332
  Attributes:
6333
   - success
6334
   - cex
6335
  """
6336
 
6337
  thrift_spec = (
6338
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6339
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6340
  )
6341
 
6342
  def __init__(self, success=None, cex=None,):
6343
    self.success = success
6344
    self.cex = cex
6345
 
6346
  def read(self, iprot):
6347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6349
      return
6350
    iprot.readStructBegin()
6351
    while True:
6352
      (fname, ftype, fid) = iprot.readFieldBegin()
6353
      if ftype == TType.STOP:
6354
        break
6355
      if fid == 0:
6356
        if ftype == TType.LIST:
6357
          self.success = []
6358
          (_etype47, _size44) = iprot.readListBegin()
6359
          for _i48 in xrange(_size44):
6360
            _elem49 = Item()
6361
            _elem49.read(iprot)
6362
            self.success.append(_elem49)
6363
          iprot.readListEnd()
6364
        else:
6365
          iprot.skip(ftype)
6366
      elif fid == 1:
6367
        if ftype == TType.STRUCT:
6368
          self.cex = CatalogServiceException()
6369
          self.cex.read(iprot)
6370
        else:
6371
          iprot.skip(ftype)
6372
      else:
6373
        iprot.skip(ftype)
6374
      iprot.readFieldEnd()
6375
    iprot.readStructEnd()
6376
 
6377
  def write(self, oprot):
6378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6380
      return
6381
    oprot.writeStructBegin('getAllItemsInRange_result')
6382
    if self.success is not None:
6383
      oprot.writeFieldBegin('success', TType.LIST, 0)
6384
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6385
      for iter50 in self.success:
6386
        iter50.write(oprot)
6387
      oprot.writeListEnd()
6388
      oprot.writeFieldEnd()
6389
    if self.cex is not None:
6390
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6391
      self.cex.write(oprot)
6392
      oprot.writeFieldEnd()
6393
    oprot.writeFieldStop()
6394
    oprot.writeStructEnd()
6395
 
6396
  def validate(self):
6397
    return
6398
 
6399
 
6400
  def __repr__(self):
6401
    L = ['%s=%r' % (key, value)
6402
      for key, value in self.__dict__.iteritems()]
6403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6404
 
6405
  def __eq__(self, other):
6406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6407
 
6408
  def __ne__(self, other):
6409
    return not (self == other)
6410
 
6411
class getAllItemsByStatusInRange_args:
6412
  """
6413
  Attributes:
6414
   - itemStatus
6415
   - offset
6416
   - limit
6417
  """
6418
 
6419
  thrift_spec = (
6420
    None, # 0
6421
    (1, TType.I32, 'itemStatus', None, None, ), # 1
6422
    (2, TType.I64, 'offset', None, None, ), # 2
6423
    (3, TType.I64, 'limit', None, None, ), # 3
6424
  )
6425
 
6426
  def __init__(self, itemStatus=None, offset=None, limit=None,):
6427
    self.itemStatus = itemStatus
6428
    self.offset = offset
6429
    self.limit = limit
6430
 
6431
  def read(self, iprot):
6432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6434
      return
6435
    iprot.readStructBegin()
6436
    while True:
6437
      (fname, ftype, fid) = iprot.readFieldBegin()
6438
      if ftype == TType.STOP:
6439
        break
6440
      if fid == 1:
6441
        if ftype == TType.I32:
6442
          self.itemStatus = iprot.readI32();
6443
        else:
6444
          iprot.skip(ftype)
6445
      elif fid == 2:
6446
        if ftype == TType.I64:
6447
          self.offset = iprot.readI64();
6448
        else:
6449
          iprot.skip(ftype)
6450
      elif fid == 3:
6451
        if ftype == TType.I64:
6452
          self.limit = iprot.readI64();
6453
        else:
6454
          iprot.skip(ftype)
6455
      else:
6456
        iprot.skip(ftype)
6457
      iprot.readFieldEnd()
6458
    iprot.readStructEnd()
6459
 
6460
  def write(self, oprot):
6461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6463
      return
6464
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
6465
    if self.itemStatus is not None:
6466
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
6467
      oprot.writeI32(self.itemStatus)
6468
      oprot.writeFieldEnd()
6469
    if self.offset is not None:
6470
      oprot.writeFieldBegin('offset', TType.I64, 2)
6471
      oprot.writeI64(self.offset)
6472
      oprot.writeFieldEnd()
6473
    if self.limit is not None:
6474
      oprot.writeFieldBegin('limit', TType.I64, 3)
6475
      oprot.writeI64(self.limit)
6476
      oprot.writeFieldEnd()
6477
    oprot.writeFieldStop()
6478
    oprot.writeStructEnd()
6479
 
6480
  def validate(self):
6481
    return
6482
 
6483
 
6484
  def __repr__(self):
6485
    L = ['%s=%r' % (key, value)
6486
      for key, value in self.__dict__.iteritems()]
6487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6488
 
6489
  def __eq__(self, other):
6490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6491
 
6492
  def __ne__(self, other):
6493
    return not (self == other)
6494
 
6495
class getAllItemsByStatusInRange_result:
6496
  """
6497
  Attributes:
6498
   - success
6499
   - cex
6500
  """
6501
 
6502
  thrift_spec = (
6503
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6504
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6505
  )
6506
 
6507
  def __init__(self, success=None, cex=None,):
6508
    self.success = success
6509
    self.cex = cex
6510
 
6511
  def read(self, iprot):
6512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6514
      return
6515
    iprot.readStructBegin()
6516
    while True:
6517
      (fname, ftype, fid) = iprot.readFieldBegin()
6518
      if ftype == TType.STOP:
6519
        break
6520
      if fid == 0:
6521
        if ftype == TType.LIST:
6522
          self.success = []
6523
          (_etype54, _size51) = iprot.readListBegin()
6524
          for _i55 in xrange(_size51):
6525
            _elem56 = Item()
6526
            _elem56.read(iprot)
6527
            self.success.append(_elem56)
6528
          iprot.readListEnd()
6529
        else:
6530
          iprot.skip(ftype)
6531
      elif fid == 1:
6532
        if ftype == TType.STRUCT:
6533
          self.cex = CatalogServiceException()
6534
          self.cex.read(iprot)
6535
        else:
6536
          iprot.skip(ftype)
6537
      else:
6538
        iprot.skip(ftype)
6539
      iprot.readFieldEnd()
6540
    iprot.readStructEnd()
6541
 
6542
  def write(self, oprot):
6543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6545
      return
6546
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
6547
    if self.success is not None:
6548
      oprot.writeFieldBegin('success', TType.LIST, 0)
6549
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6550
      for iter57 in self.success:
6551
        iter57.write(oprot)
6552
      oprot.writeListEnd()
6553
      oprot.writeFieldEnd()
6554
    if self.cex is not None:
6555
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6556
      self.cex.write(oprot)
6557
      oprot.writeFieldEnd()
6558
    oprot.writeFieldStop()
6559
    oprot.writeStructEnd()
6560
 
6561
  def validate(self):
6562
    return
6563
 
6564
 
6565
  def __repr__(self):
6566
    L = ['%s=%r' % (key, value)
6567
      for key, value in self.__dict__.iteritems()]
6568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6569
 
6570
  def __eq__(self, other):
6571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6572
 
6573
  def __ne__(self, other):
6574
    return not (self == other)
6575
 
6576
class getItemCountByStatus_args:
6577
  """
6578
  Attributes:
6579
   - useStatus
6580
   - itemStatus
6581
  """
6582
 
6583
  thrift_spec = (
6584
    None, # 0
6585
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
6586
    (2, TType.I32, 'itemStatus', None, None, ), # 2
6587
  )
6588
 
6589
  def __init__(self, useStatus=None, itemStatus=None,):
6590
    self.useStatus = useStatus
6591
    self.itemStatus = itemStatus
6592
 
6593
  def read(self, iprot):
6594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6596
      return
6597
    iprot.readStructBegin()
6598
    while True:
6599
      (fname, ftype, fid) = iprot.readFieldBegin()
6600
      if ftype == TType.STOP:
6601
        break
6602
      if fid == 1:
6603
        if ftype == TType.BOOL:
6604
          self.useStatus = iprot.readBool();
6605
        else:
6606
          iprot.skip(ftype)
6607
      elif fid == 2:
6608
        if ftype == TType.I32:
6609
          self.itemStatus = iprot.readI32();
6610
        else:
6611
          iprot.skip(ftype)
6612
      else:
6613
        iprot.skip(ftype)
6614
      iprot.readFieldEnd()
6615
    iprot.readStructEnd()
6616
 
6617
  def write(self, oprot):
6618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6620
      return
6621
    oprot.writeStructBegin('getItemCountByStatus_args')
6622
    if self.useStatus is not None:
6623
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
6624
      oprot.writeBool(self.useStatus)
6625
      oprot.writeFieldEnd()
6626
    if self.itemStatus is not None:
6627
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
6628
      oprot.writeI32(self.itemStatus)
6629
      oprot.writeFieldEnd()
6630
    oprot.writeFieldStop()
6631
    oprot.writeStructEnd()
6632
 
6633
  def validate(self):
6634
    return
6635
 
6636
 
6637
  def __repr__(self):
6638
    L = ['%s=%r' % (key, value)
6639
      for key, value in self.__dict__.iteritems()]
6640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6641
 
6642
  def __eq__(self, other):
6643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6644
 
6645
  def __ne__(self, other):
6646
    return not (self == other)
6647
 
6648
class getItemCountByStatus_result:
6649
  """
6650
  Attributes:
6651
   - success
6652
  """
6653
 
6654
  thrift_spec = (
6655
    (0, TType.I32, 'success', None, None, ), # 0
6656
  )
6657
 
6658
  def __init__(self, success=None,):
6659
    self.success = success
6660
 
6661
  def read(self, iprot):
6662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6664
      return
6665
    iprot.readStructBegin()
6666
    while True:
6667
      (fname, ftype, fid) = iprot.readFieldBegin()
6668
      if ftype == TType.STOP:
6669
        break
6670
      if fid == 0:
6671
        if ftype == TType.I32:
6672
          self.success = iprot.readI32();
6673
        else:
6674
          iprot.skip(ftype)
6675
      else:
6676
        iprot.skip(ftype)
6677
      iprot.readFieldEnd()
6678
    iprot.readStructEnd()
6679
 
6680
  def write(self, oprot):
6681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6683
      return
6684
    oprot.writeStructBegin('getItemCountByStatus_result')
6685
    if self.success is not None:
6686
      oprot.writeFieldBegin('success', TType.I32, 0)
6687
      oprot.writeI32(self.success)
6688
      oprot.writeFieldEnd()
6689
    oprot.writeFieldStop()
6690
    oprot.writeStructEnd()
6691
 
6692
  def validate(self):
6693
    return
6694
 
6695
 
6696
  def __repr__(self):
6697
    L = ['%s=%r' % (key, value)
6698
      for key, value in self.__dict__.iteritems()]
6699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6700
 
6701
  def __eq__(self, other):
6702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6703
 
6704
  def __ne__(self, other):
6705
    return not (self == other)
6706
 
6707
class getBestSellers_args:
6708
 
6709
  thrift_spec = (
6710
  )
6711
 
6712
  def read(self, iprot):
6713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6715
      return
6716
    iprot.readStructBegin()
6717
    while True:
6718
      (fname, ftype, fid) = iprot.readFieldBegin()
6719
      if ftype == TType.STOP:
6720
        break
6721
      else:
6722
        iprot.skip(ftype)
6723
      iprot.readFieldEnd()
6724
    iprot.readStructEnd()
6725
 
6726
  def write(self, oprot):
6727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6729
      return
6730
    oprot.writeStructBegin('getBestSellers_args')
6731
    oprot.writeFieldStop()
6732
    oprot.writeStructEnd()
6733
 
6734
  def validate(self):
6735
    return
6736
 
6737
 
6738
  def __repr__(self):
6739
    L = ['%s=%r' % (key, value)
6740
      for key, value in self.__dict__.iteritems()]
6741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6742
 
6743
  def __eq__(self, other):
6744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6745
 
6746
  def __ne__(self, other):
6747
    return not (self == other)
6748
 
6749
class getBestSellers_result:
6750
  """
6751
  Attributes:
6752
   - success
6753
   - isex
6754
  """
6755
 
6756
  thrift_spec = (
6757
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6758
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6759
  )
6760
 
6761
  def __init__(self, success=None, isex=None,):
6762
    self.success = success
6763
    self.isex = isex
6764
 
6765
  def read(self, iprot):
6766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6768
      return
6769
    iprot.readStructBegin()
6770
    while True:
6771
      (fname, ftype, fid) = iprot.readFieldBegin()
6772
      if ftype == TType.STOP:
6773
        break
6774
      if fid == 0:
6775
        if ftype == TType.LIST:
6776
          self.success = []
6777
          (_etype61, _size58) = iprot.readListBegin()
6778
          for _i62 in xrange(_size58):
6779
            _elem63 = Item()
6780
            _elem63.read(iprot)
6781
            self.success.append(_elem63)
6782
          iprot.readListEnd()
6783
        else:
6784
          iprot.skip(ftype)
6785
      elif fid == 1:
6786
        if ftype == TType.STRUCT:
6787
          self.isex = CatalogServiceException()
6788
          self.isex.read(iprot)
6789
        else:
6790
          iprot.skip(ftype)
6791
      else:
6792
        iprot.skip(ftype)
6793
      iprot.readFieldEnd()
6794
    iprot.readStructEnd()
6795
 
6796
  def write(self, oprot):
6797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6799
      return
6800
    oprot.writeStructBegin('getBestSellers_result')
6801
    if self.success is not None:
6802
      oprot.writeFieldBegin('success', TType.LIST, 0)
6803
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6804
      for iter64 in self.success:
6805
        iter64.write(oprot)
6806
      oprot.writeListEnd()
6807
      oprot.writeFieldEnd()
6808
    if self.isex is not None:
6809
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6810
      self.isex.write(oprot)
6811
      oprot.writeFieldEnd()
6812
    oprot.writeFieldStop()
6813
    oprot.writeStructEnd()
6814
 
6815
  def validate(self):
6816
    return
6817
 
6818
 
6819
  def __repr__(self):
6820
    L = ['%s=%r' % (key, value)
6821
      for key, value in self.__dict__.iteritems()]
6822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6823
 
6824
  def __eq__(self, other):
6825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6826
 
6827
  def __ne__(self, other):
6828
    return not (self == other)
6829
 
6830
class getBestSellersCatalogIds_args:
6831
  """
6832
  Attributes:
6833
   - beginIndex
6834
   - totalItems
6835
   - brand
6836
   - category
6837
  """
6838
 
6839
  thrift_spec = (
6840
    None, # 0
6841
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6842
    (2, TType.I64, 'totalItems', None, None, ), # 2
6843
    (3, TType.STRING, 'brand', None, None, ), # 3
6844
    (4, TType.I64, 'category', None, None, ), # 4
6845
  )
6846
 
6847
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6848
    self.beginIndex = beginIndex
6849
    self.totalItems = totalItems
6850
    self.brand = brand
6851
    self.category = category
6852
 
6853
  def read(self, iprot):
6854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6856
      return
6857
    iprot.readStructBegin()
6858
    while True:
6859
      (fname, ftype, fid) = iprot.readFieldBegin()
6860
      if ftype == TType.STOP:
6861
        break
6862
      if fid == 1:
6863
        if ftype == TType.I64:
6864
          self.beginIndex = iprot.readI64();
6865
        else:
6866
          iprot.skip(ftype)
6867
      elif fid == 2:
6868
        if ftype == TType.I64:
6869
          self.totalItems = iprot.readI64();
6870
        else:
6871
          iprot.skip(ftype)
6872
      elif fid == 3:
6873
        if ftype == TType.STRING:
6874
          self.brand = iprot.readString();
6875
        else:
6876
          iprot.skip(ftype)
6877
      elif fid == 4:
6878
        if ftype == TType.I64:
6879
          self.category = iprot.readI64();
6880
        else:
6881
          iprot.skip(ftype)
6882
      else:
6883
        iprot.skip(ftype)
6884
      iprot.readFieldEnd()
6885
    iprot.readStructEnd()
6886
 
6887
  def write(self, oprot):
6888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6890
      return
6891
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6892
    if self.beginIndex is not None:
6893
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6894
      oprot.writeI64(self.beginIndex)
6895
      oprot.writeFieldEnd()
6896
    if self.totalItems is not None:
6897
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6898
      oprot.writeI64(self.totalItems)
6899
      oprot.writeFieldEnd()
6900
    if self.brand is not None:
6901
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6902
      oprot.writeString(self.brand)
6903
      oprot.writeFieldEnd()
6904
    if self.category is not None:
6905
      oprot.writeFieldBegin('category', TType.I64, 4)
6906
      oprot.writeI64(self.category)
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_result:
6927
  """
6928
  Attributes:
6929
   - success
6930
   - cex
6931
  """
6932
 
6933
  thrift_spec = (
6934
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6935
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6936
  )
6937
 
6938
  def __init__(self, success=None, cex=None,):
6939
    self.success = success
6940
    self.cex = cex
6941
 
6942
  def read(self, iprot):
6943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6945
      return
6946
    iprot.readStructBegin()
6947
    while True:
6948
      (fname, ftype, fid) = iprot.readFieldBegin()
6949
      if ftype == TType.STOP:
6950
        break
6951
      if fid == 0:
6952
        if ftype == TType.LIST:
6953
          self.success = []
6954
          (_etype68, _size65) = iprot.readListBegin()
6955
          for _i69 in xrange(_size65):
6956
            _elem70 = iprot.readI64();
6957
            self.success.append(_elem70)
6958
          iprot.readListEnd()
6959
        else:
6960
          iprot.skip(ftype)
6961
      elif fid == 1:
6962
        if ftype == TType.STRUCT:
6963
          self.cex = CatalogServiceException()
6964
          self.cex.read(iprot)
6965
        else:
6966
          iprot.skip(ftype)
6967
      else:
6968
        iprot.skip(ftype)
6969
      iprot.readFieldEnd()
6970
    iprot.readStructEnd()
6971
 
6972
  def write(self, oprot):
6973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6975
      return
6976
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6977
    if self.success is not None:
6978
      oprot.writeFieldBegin('success', TType.LIST, 0)
6979
      oprot.writeListBegin(TType.I64, len(self.success))
6980
      for iter71 in self.success:
6981
        oprot.writeI64(iter71)
6982
      oprot.writeListEnd()
6983
      oprot.writeFieldEnd()
6984
    if self.cex is not None:
6985
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6986
      self.cex.write(oprot)
6987
      oprot.writeFieldEnd()
6988
    oprot.writeFieldStop()
6989
    oprot.writeStructEnd()
6990
 
6991
  def validate(self):
6992
    return
6993
 
6994
 
6995
  def __repr__(self):
6996
    L = ['%s=%r' % (key, value)
6997
      for key, value in self.__dict__.iteritems()]
6998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6999
 
7000
  def __eq__(self, other):
7001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7002
 
7003
  def __ne__(self, other):
7004
    return not (self == other)
7005
 
7006
class getBestSellersCount_args:
7007
 
7008
  thrift_spec = (
7009
  )
7010
 
7011
  def read(self, iprot):
7012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7014
      return
7015
    iprot.readStructBegin()
7016
    while True:
7017
      (fname, ftype, fid) = iprot.readFieldBegin()
7018
      if ftype == TType.STOP:
7019
        break
7020
      else:
7021
        iprot.skip(ftype)
7022
      iprot.readFieldEnd()
7023
    iprot.readStructEnd()
7024
 
7025
  def write(self, oprot):
7026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7028
      return
7029
    oprot.writeStructBegin('getBestSellersCount_args')
7030
    oprot.writeFieldStop()
7031
    oprot.writeStructEnd()
7032
 
7033
  def validate(self):
7034
    return
7035
 
7036
 
7037
  def __repr__(self):
7038
    L = ['%s=%r' % (key, value)
7039
      for key, value in self.__dict__.iteritems()]
7040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7041
 
7042
  def __eq__(self, other):
7043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7044
 
7045
  def __ne__(self, other):
7046
    return not (self == other)
7047
 
7048
class getBestSellersCount_result:
7049
  """
7050
  Attributes:
7051
   - success
7052
   - cex
7053
  """
7054
 
7055
  thrift_spec = (
7056
    (0, TType.I64, 'success', None, None, ), # 0
7057
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7058
  )
7059
 
7060
  def __init__(self, success=None, cex=None,):
7061
    self.success = success
7062
    self.cex = cex
7063
 
7064
  def read(self, iprot):
7065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7067
      return
7068
    iprot.readStructBegin()
7069
    while True:
7070
      (fname, ftype, fid) = iprot.readFieldBegin()
7071
      if ftype == TType.STOP:
7072
        break
7073
      if fid == 0:
7074
        if ftype == TType.I64:
7075
          self.success = iprot.readI64();
7076
        else:
7077
          iprot.skip(ftype)
7078
      elif fid == 1:
7079
        if ftype == TType.STRUCT:
7080
          self.cex = CatalogServiceException()
7081
          self.cex.read(iprot)
7082
        else:
7083
          iprot.skip(ftype)
7084
      else:
7085
        iprot.skip(ftype)
7086
      iprot.readFieldEnd()
7087
    iprot.readStructEnd()
7088
 
7089
  def write(self, oprot):
7090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7092
      return
7093
    oprot.writeStructBegin('getBestSellersCount_result')
7094
    if self.success is not None:
7095
      oprot.writeFieldBegin('success', TType.I64, 0)
7096
      oprot.writeI64(self.success)
7097
      oprot.writeFieldEnd()
7098
    if self.cex is not None:
7099
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7100
      self.cex.write(oprot)
7101
      oprot.writeFieldEnd()
7102
    oprot.writeFieldStop()
7103
    oprot.writeStructEnd()
7104
 
7105
  def validate(self):
7106
    return
7107
 
7108
 
7109
  def __repr__(self):
7110
    L = ['%s=%r' % (key, value)
7111
      for key, value in self.__dict__.iteritems()]
7112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7113
 
7114
  def __eq__(self, other):
7115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7116
 
7117
  def __ne__(self, other):
7118
    return not (self == other)
7119
 
7120
class getBestDeals_args:
7121
 
7122
  thrift_spec = (
7123
  )
7124
 
7125
  def read(self, iprot):
7126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7128
      return
7129
    iprot.readStructBegin()
7130
    while True:
7131
      (fname, ftype, fid) = iprot.readFieldBegin()
7132
      if ftype == TType.STOP:
7133
        break
7134
      else:
7135
        iprot.skip(ftype)
7136
      iprot.readFieldEnd()
7137
    iprot.readStructEnd()
7138
 
7139
  def write(self, oprot):
7140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7142
      return
7143
    oprot.writeStructBegin('getBestDeals_args')
7144
    oprot.writeFieldStop()
7145
    oprot.writeStructEnd()
7146
 
7147
  def validate(self):
7148
    return
7149
 
7150
 
7151
  def __repr__(self):
7152
    L = ['%s=%r' % (key, value)
7153
      for key, value in self.__dict__.iteritems()]
7154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7155
 
7156
  def __eq__(self, other):
7157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7158
 
7159
  def __ne__(self, other):
7160
    return not (self == other)
7161
 
7162
class getBestDeals_result:
7163
  """
7164
  Attributes:
7165
   - success
7166
   - isex
7167
  """
7168
 
7169
  thrift_spec = (
7170
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7171
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7172
  )
7173
 
7174
  def __init__(self, success=None, isex=None,):
7175
    self.success = success
7176
    self.isex = isex
7177
 
7178
  def read(self, iprot):
7179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7181
      return
7182
    iprot.readStructBegin()
7183
    while True:
7184
      (fname, ftype, fid) = iprot.readFieldBegin()
7185
      if ftype == TType.STOP:
7186
        break
7187
      if fid == 0:
7188
        if ftype == TType.LIST:
7189
          self.success = []
7190
          (_etype75, _size72) = iprot.readListBegin()
7191
          for _i76 in xrange(_size72):
7192
            _elem77 = Item()
7193
            _elem77.read(iprot)
7194
            self.success.append(_elem77)
7195
          iprot.readListEnd()
7196
        else:
7197
          iprot.skip(ftype)
7198
      elif fid == 1:
7199
        if ftype == TType.STRUCT:
7200
          self.isex = CatalogServiceException()
7201
          self.isex.read(iprot)
7202
        else:
7203
          iprot.skip(ftype)
7204
      else:
7205
        iprot.skip(ftype)
7206
      iprot.readFieldEnd()
7207
    iprot.readStructEnd()
7208
 
7209
  def write(self, oprot):
7210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7212
      return
7213
    oprot.writeStructBegin('getBestDeals_result')
7214
    if self.success is not None:
7215
      oprot.writeFieldBegin('success', TType.LIST, 0)
7216
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7217
      for iter78 in self.success:
7218
        iter78.write(oprot)
7219
      oprot.writeListEnd()
7220
      oprot.writeFieldEnd()
7221
    if self.isex is not None:
7222
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7223
      self.isex.write(oprot)
7224
      oprot.writeFieldEnd()
7225
    oprot.writeFieldStop()
7226
    oprot.writeStructEnd()
7227
 
7228
  def validate(self):
7229
    return
7230
 
7231
 
7232
  def __repr__(self):
7233
    L = ['%s=%r' % (key, value)
7234
      for key, value in self.__dict__.iteritems()]
7235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7236
 
7237
  def __eq__(self, other):
7238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7239
 
7240
  def __ne__(self, other):
7241
    return not (self == other)
7242
 
7243
class getBestDealsCatalogIds_args:
7244
  """
7245
  Attributes:
7246
   - beginIndex
7247
   - totalItems
7248
   - brand
7249
   - category
7250
  """
7251
 
7252
  thrift_spec = (
7253
    None, # 0
7254
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7255
    (2, TType.I64, 'totalItems', None, None, ), # 2
7256
    (3, TType.STRING, 'brand', None, None, ), # 3
7257
    (4, TType.I64, 'category', None, None, ), # 4
7258
  )
7259
 
7260
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7261
    self.beginIndex = beginIndex
7262
    self.totalItems = totalItems
7263
    self.brand = brand
7264
    self.category = category
7265
 
7266
  def read(self, iprot):
7267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7269
      return
7270
    iprot.readStructBegin()
7271
    while True:
7272
      (fname, ftype, fid) = iprot.readFieldBegin()
7273
      if ftype == TType.STOP:
7274
        break
7275
      if fid == 1:
7276
        if ftype == TType.I64:
7277
          self.beginIndex = iprot.readI64();
7278
        else:
7279
          iprot.skip(ftype)
7280
      elif fid == 2:
7281
        if ftype == TType.I64:
7282
          self.totalItems = iprot.readI64();
7283
        else:
7284
          iprot.skip(ftype)
7285
      elif fid == 3:
7286
        if ftype == TType.STRING:
7287
          self.brand = iprot.readString();
7288
        else:
7289
          iprot.skip(ftype)
7290
      elif fid == 4:
7291
        if ftype == TType.I64:
7292
          self.category = iprot.readI64();
7293
        else:
7294
          iprot.skip(ftype)
7295
      else:
7296
        iprot.skip(ftype)
7297
      iprot.readFieldEnd()
7298
    iprot.readStructEnd()
7299
 
7300
  def write(self, oprot):
7301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7303
      return
7304
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
7305
    if self.beginIndex is not None:
7306
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7307
      oprot.writeI64(self.beginIndex)
7308
      oprot.writeFieldEnd()
7309
    if self.totalItems is not None:
7310
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7311
      oprot.writeI64(self.totalItems)
7312
      oprot.writeFieldEnd()
7313
    if self.brand is not None:
7314
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7315
      oprot.writeString(self.brand)
7316
      oprot.writeFieldEnd()
7317
    if self.category is not None:
7318
      oprot.writeFieldBegin('category', TType.I64, 4)
7319
      oprot.writeI64(self.category)
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_result:
7340
  """
7341
  Attributes:
7342
   - success
7343
   - cex
7344
  """
7345
 
7346
  thrift_spec = (
7347
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7348
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7349
  )
7350
 
7351
  def __init__(self, success=None, cex=None,):
7352
    self.success = success
7353
    self.cex = cex
7354
 
7355
  def read(self, iprot):
7356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7358
      return
7359
    iprot.readStructBegin()
7360
    while True:
7361
      (fname, ftype, fid) = iprot.readFieldBegin()
7362
      if ftype == TType.STOP:
7363
        break
7364
      if fid == 0:
7365
        if ftype == TType.LIST:
7366
          self.success = []
7367
          (_etype82, _size79) = iprot.readListBegin()
7368
          for _i83 in xrange(_size79):
7369
            _elem84 = iprot.readI64();
7370
            self.success.append(_elem84)
7371
          iprot.readListEnd()
7372
        else:
7373
          iprot.skip(ftype)
7374
      elif fid == 1:
7375
        if ftype == TType.STRUCT:
7376
          self.cex = CatalogServiceException()
7377
          self.cex.read(iprot)
7378
        else:
7379
          iprot.skip(ftype)
7380
      else:
7381
        iprot.skip(ftype)
7382
      iprot.readFieldEnd()
7383
    iprot.readStructEnd()
7384
 
7385
  def write(self, oprot):
7386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7388
      return
7389
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
7390
    if self.success is not None:
7391
      oprot.writeFieldBegin('success', TType.LIST, 0)
7392
      oprot.writeListBegin(TType.I64, len(self.success))
7393
      for iter85 in self.success:
7394
        oprot.writeI64(iter85)
7395
      oprot.writeListEnd()
7396
      oprot.writeFieldEnd()
7397
    if self.cex is not None:
7398
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7399
      self.cex.write(oprot)
7400
      oprot.writeFieldEnd()
7401
    oprot.writeFieldStop()
7402
    oprot.writeStructEnd()
7403
 
7404
  def validate(self):
7405
    return
7406
 
7407
 
7408
  def __repr__(self):
7409
    L = ['%s=%r' % (key, value)
7410
      for key, value in self.__dict__.iteritems()]
7411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7412
 
7413
  def __eq__(self, other):
7414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7415
 
7416
  def __ne__(self, other):
7417
    return not (self == other)
7418
 
7419
class getBestDealsCount_args:
7420
 
7421
  thrift_spec = (
7422
  )
7423
 
7424
  def read(self, iprot):
7425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7427
      return
7428
    iprot.readStructBegin()
7429
    while True:
7430
      (fname, ftype, fid) = iprot.readFieldBegin()
7431
      if ftype == TType.STOP:
7432
        break
7433
      else:
7434
        iprot.skip(ftype)
7435
      iprot.readFieldEnd()
7436
    iprot.readStructEnd()
7437
 
7438
  def write(self, oprot):
7439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7441
      return
7442
    oprot.writeStructBegin('getBestDealsCount_args')
7443
    oprot.writeFieldStop()
7444
    oprot.writeStructEnd()
7445
 
7446
  def validate(self):
7447
    return
7448
 
7449
 
7450
  def __repr__(self):
7451
    L = ['%s=%r' % (key, value)
7452
      for key, value in self.__dict__.iteritems()]
7453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7454
 
7455
  def __eq__(self, other):
7456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7457
 
7458
  def __ne__(self, other):
7459
    return not (self == other)
7460
 
7461
class getBestDealsCount_result:
7462
  """
7463
  Attributes:
7464
   - success
7465
   - cex
7466
  """
7467
 
7468
  thrift_spec = (
7469
    (0, TType.I64, 'success', None, None, ), # 0
7470
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7471
  )
7472
 
7473
  def __init__(self, success=None, cex=None,):
7474
    self.success = success
7475
    self.cex = cex
7476
 
7477
  def read(self, iprot):
7478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7480
      return
7481
    iprot.readStructBegin()
7482
    while True:
7483
      (fname, ftype, fid) = iprot.readFieldBegin()
7484
      if ftype == TType.STOP:
7485
        break
7486
      if fid == 0:
7487
        if ftype == TType.I64:
7488
          self.success = iprot.readI64();
7489
        else:
7490
          iprot.skip(ftype)
7491
      elif fid == 1:
7492
        if ftype == TType.STRUCT:
7493
          self.cex = CatalogServiceException()
7494
          self.cex.read(iprot)
7495
        else:
7496
          iprot.skip(ftype)
7497
      else:
7498
        iprot.skip(ftype)
7499
      iprot.readFieldEnd()
7500
    iprot.readStructEnd()
7501
 
7502
  def write(self, oprot):
7503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7505
      return
7506
    oprot.writeStructBegin('getBestDealsCount_result')
7507
    if self.success is not None:
7508
      oprot.writeFieldBegin('success', TType.I64, 0)
7509
      oprot.writeI64(self.success)
7510
      oprot.writeFieldEnd()
7511
    if self.cex is not None:
7512
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7513
      self.cex.write(oprot)
7514
      oprot.writeFieldEnd()
7515
    oprot.writeFieldStop()
7516
    oprot.writeStructEnd()
7517
 
7518
  def validate(self):
7519
    return
7520
 
7521
 
7522
  def __repr__(self):
7523
    L = ['%s=%r' % (key, value)
7524
      for key, value in self.__dict__.iteritems()]
7525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7526
 
7527
  def __eq__(self, other):
7528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7529
 
7530
  def __ne__(self, other):
7531
    return not (self == other)
7532
 
7533
class getComingSoon_args:
7534
 
7535
  thrift_spec = (
7536
  )
7537
 
7538
  def read(self, iprot):
7539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7541
      return
7542
    iprot.readStructBegin()
7543
    while True:
7544
      (fname, ftype, fid) = iprot.readFieldBegin()
7545
      if ftype == TType.STOP:
7546
        break
7547
      else:
7548
        iprot.skip(ftype)
7549
      iprot.readFieldEnd()
7550
    iprot.readStructEnd()
7551
 
7552
  def write(self, oprot):
7553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7555
      return
7556
    oprot.writeStructBegin('getComingSoon_args')
7557
    oprot.writeFieldStop()
7558
    oprot.writeStructEnd()
7559
 
7560
  def validate(self):
7561
    return
7562
 
7563
 
7564
  def __repr__(self):
7565
    L = ['%s=%r' % (key, value)
7566
      for key, value in self.__dict__.iteritems()]
7567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7568
 
7569
  def __eq__(self, other):
7570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7571
 
7572
  def __ne__(self, other):
7573
    return not (self == other)
7574
 
7575
class getComingSoon_result:
7576
  """
7577
  Attributes:
7578
   - success
7579
   - isex
7580
  """
7581
 
7582
  thrift_spec = (
7583
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7584
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7585
  )
7586
 
7587
  def __init__(self, success=None, isex=None,):
7588
    self.success = success
7589
    self.isex = isex
7590
 
7591
  def read(self, iprot):
7592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7594
      return
7595
    iprot.readStructBegin()
7596
    while True:
7597
      (fname, ftype, fid) = iprot.readFieldBegin()
7598
      if ftype == TType.STOP:
7599
        break
7600
      if fid == 0:
7601
        if ftype == TType.LIST:
7602
          self.success = []
7603
          (_etype89, _size86) = iprot.readListBegin()
7604
          for _i90 in xrange(_size86):
7605
            _elem91 = Item()
7606
            _elem91.read(iprot)
7607
            self.success.append(_elem91)
7608
          iprot.readListEnd()
7609
        else:
7610
          iprot.skip(ftype)
7611
      elif fid == 1:
7612
        if ftype == TType.STRUCT:
7613
          self.isex = CatalogServiceException()
7614
          self.isex.read(iprot)
7615
        else:
7616
          iprot.skip(ftype)
7617
      else:
7618
        iprot.skip(ftype)
7619
      iprot.readFieldEnd()
7620
    iprot.readStructEnd()
7621
 
7622
  def write(self, oprot):
7623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7625
      return
7626
    oprot.writeStructBegin('getComingSoon_result')
7627
    if self.success is not None:
7628
      oprot.writeFieldBegin('success', TType.LIST, 0)
7629
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7630
      for iter92 in self.success:
7631
        iter92.write(oprot)
7632
      oprot.writeListEnd()
7633
      oprot.writeFieldEnd()
7634
    if self.isex is not None:
7635
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7636
      self.isex.write(oprot)
7637
      oprot.writeFieldEnd()
7638
    oprot.writeFieldStop()
7639
    oprot.writeStructEnd()
7640
 
7641
  def validate(self):
7642
    return
7643
 
7644
 
7645
  def __repr__(self):
7646
    L = ['%s=%r' % (key, value)
7647
      for key, value in self.__dict__.iteritems()]
7648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7649
 
7650
  def __eq__(self, other):
7651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7652
 
7653
  def __ne__(self, other):
7654
    return not (self == other)
7655
 
7656
class getComingSoonCatalogIds_args:
7657
  """
7658
  Attributes:
7659
   - beginIndex
7660
   - totalItems
7661
   - brand
7662
   - category
7663
  """
7664
 
7665
  thrift_spec = (
7666
    None, # 0
7667
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7668
    (2, TType.I64, 'totalItems', None, None, ), # 2
7669
    (3, TType.STRING, 'brand', None, None, ), # 3
7670
    (4, TType.I64, 'category', None, None, ), # 4
7671
  )
7672
 
7673
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
7674
    self.beginIndex = beginIndex
7675
    self.totalItems = totalItems
7676
    self.brand = brand
7677
    self.category = category
7678
 
7679
  def read(self, iprot):
7680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7682
      return
7683
    iprot.readStructBegin()
7684
    while True:
7685
      (fname, ftype, fid) = iprot.readFieldBegin()
7686
      if ftype == TType.STOP:
7687
        break
7688
      if fid == 1:
7689
        if ftype == TType.I64:
7690
          self.beginIndex = iprot.readI64();
7691
        else:
7692
          iprot.skip(ftype)
7693
      elif fid == 2:
7694
        if ftype == TType.I64:
7695
          self.totalItems = iprot.readI64();
7696
        else:
7697
          iprot.skip(ftype)
7698
      elif fid == 3:
7699
        if ftype == TType.STRING:
7700
          self.brand = iprot.readString();
7701
        else:
7702
          iprot.skip(ftype)
7703
      elif fid == 4:
7704
        if ftype == TType.I64:
7705
          self.category = iprot.readI64();
7706
        else:
7707
          iprot.skip(ftype)
7708
      else:
7709
        iprot.skip(ftype)
7710
      iprot.readFieldEnd()
7711
    iprot.readStructEnd()
7712
 
7713
  def write(self, oprot):
7714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7716
      return
7717
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
7718
    if self.beginIndex is not None:
7719
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7720
      oprot.writeI64(self.beginIndex)
7721
      oprot.writeFieldEnd()
7722
    if self.totalItems is not None:
7723
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7724
      oprot.writeI64(self.totalItems)
7725
      oprot.writeFieldEnd()
7726
    if self.brand is not None:
7727
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7728
      oprot.writeString(self.brand)
7729
      oprot.writeFieldEnd()
7730
    if self.category is not None:
7731
      oprot.writeFieldBegin('category', TType.I64, 4)
7732
      oprot.writeI64(self.category)
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_result:
7753
  """
7754
  Attributes:
7755
   - success
7756
   - cex
7757
  """
7758
 
7759
  thrift_spec = (
7760
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7761
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7762
  )
7763
 
7764
  def __init__(self, success=None, cex=None,):
7765
    self.success = success
7766
    self.cex = cex
7767
 
7768
  def read(self, iprot):
7769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7771
      return
7772
    iprot.readStructBegin()
7773
    while True:
7774
      (fname, ftype, fid) = iprot.readFieldBegin()
7775
      if ftype == TType.STOP:
7776
        break
7777
      if fid == 0:
7778
        if ftype == TType.LIST:
7779
          self.success = []
7780
          (_etype96, _size93) = iprot.readListBegin()
7781
          for _i97 in xrange(_size93):
7782
            _elem98 = iprot.readI64();
7783
            self.success.append(_elem98)
7784
          iprot.readListEnd()
7785
        else:
7786
          iprot.skip(ftype)
7787
      elif fid == 1:
7788
        if ftype == TType.STRUCT:
7789
          self.cex = CatalogServiceException()
7790
          self.cex.read(iprot)
7791
        else:
7792
          iprot.skip(ftype)
7793
      else:
7794
        iprot.skip(ftype)
7795
      iprot.readFieldEnd()
7796
    iprot.readStructEnd()
7797
 
7798
  def write(self, oprot):
7799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7801
      return
7802
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7803
    if self.success is not None:
7804
      oprot.writeFieldBegin('success', TType.LIST, 0)
7805
      oprot.writeListBegin(TType.I64, len(self.success))
7806
      for iter99 in self.success:
7807
        oprot.writeI64(iter99)
7808
      oprot.writeListEnd()
7809
      oprot.writeFieldEnd()
7810
    if self.cex is not None:
7811
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7812
      self.cex.write(oprot)
7813
      oprot.writeFieldEnd()
7814
    oprot.writeFieldStop()
7815
    oprot.writeStructEnd()
7816
 
7817
  def validate(self):
7818
    return
7819
 
7820
 
7821
  def __repr__(self):
7822
    L = ['%s=%r' % (key, value)
7823
      for key, value in self.__dict__.iteritems()]
7824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7825
 
7826
  def __eq__(self, other):
7827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7828
 
7829
  def __ne__(self, other):
7830
    return not (self == other)
7831
 
7832
class getComingSoonCount_args:
7833
 
7834
  thrift_spec = (
7835
  )
7836
 
7837
  def read(self, iprot):
7838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7840
      return
7841
    iprot.readStructBegin()
7842
    while True:
7843
      (fname, ftype, fid) = iprot.readFieldBegin()
7844
      if ftype == TType.STOP:
7845
        break
7846
      else:
7847
        iprot.skip(ftype)
7848
      iprot.readFieldEnd()
7849
    iprot.readStructEnd()
7850
 
7851
  def write(self, oprot):
7852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7854
      return
7855
    oprot.writeStructBegin('getComingSoonCount_args')
7856
    oprot.writeFieldStop()
7857
    oprot.writeStructEnd()
7858
 
7859
  def validate(self):
7860
    return
7861
 
7862
 
7863
  def __repr__(self):
7864
    L = ['%s=%r' % (key, value)
7865
      for key, value in self.__dict__.iteritems()]
7866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7867
 
7868
  def __eq__(self, other):
7869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7870
 
7871
  def __ne__(self, other):
7872
    return not (self == other)
7873
 
7874
class getComingSoonCount_result:
7875
  """
7876
  Attributes:
7877
   - success
7878
   - cex
7879
  """
7880
 
7881
  thrift_spec = (
7882
    (0, TType.I64, 'success', None, None, ), # 0
7883
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7884
  )
7885
 
7886
  def __init__(self, success=None, cex=None,):
7887
    self.success = success
7888
    self.cex = cex
7889
 
7890
  def read(self, iprot):
7891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7893
      return
7894
    iprot.readStructBegin()
7895
    while True:
7896
      (fname, ftype, fid) = iprot.readFieldBegin()
7897
      if ftype == TType.STOP:
7898
        break
7899
      if fid == 0:
7900
        if ftype == TType.I64:
7901
          self.success = iprot.readI64();
7902
        else:
7903
          iprot.skip(ftype)
7904
      elif fid == 1:
7905
        if ftype == TType.STRUCT:
7906
          self.cex = CatalogServiceException()
7907
          self.cex.read(iprot)
7908
        else:
7909
          iprot.skip(ftype)
7910
      else:
7911
        iprot.skip(ftype)
7912
      iprot.readFieldEnd()
7913
    iprot.readStructEnd()
7914
 
7915
  def write(self, oprot):
7916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7918
      return
7919
    oprot.writeStructBegin('getComingSoonCount_result')
7920
    if self.success is not None:
7921
      oprot.writeFieldBegin('success', TType.I64, 0)
7922
      oprot.writeI64(self.success)
7923
      oprot.writeFieldEnd()
7924
    if self.cex is not None:
7925
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7926
      self.cex.write(oprot)
7927
      oprot.writeFieldEnd()
7928
    oprot.writeFieldStop()
7929
    oprot.writeStructEnd()
7930
 
7931
  def validate(self):
7932
    return
7933
 
7934
 
7935
  def __repr__(self):
7936
    L = ['%s=%r' % (key, value)
7937
      for key, value in self.__dict__.iteritems()]
7938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7939
 
7940
  def __eq__(self, other):
7941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7942
 
7943
  def __ne__(self, other):
7944
    return not (self == other)
7945
 
7946
class getLatestArrivals_args:
7947
 
7948
  thrift_spec = (
7949
  )
7950
 
7951
  def read(self, iprot):
7952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7954
      return
7955
    iprot.readStructBegin()
7956
    while True:
7957
      (fname, ftype, fid) = iprot.readFieldBegin()
7958
      if ftype == TType.STOP:
7959
        break
7960
      else:
7961
        iprot.skip(ftype)
7962
      iprot.readFieldEnd()
7963
    iprot.readStructEnd()
7964
 
7965
  def write(self, oprot):
7966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7968
      return
7969
    oprot.writeStructBegin('getLatestArrivals_args')
7970
    oprot.writeFieldStop()
7971
    oprot.writeStructEnd()
7972
 
7973
  def validate(self):
7974
    return
7975
 
7976
 
7977
  def __repr__(self):
7978
    L = ['%s=%r' % (key, value)
7979
      for key, value in self.__dict__.iteritems()]
7980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7981
 
7982
  def __eq__(self, other):
7983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7984
 
7985
  def __ne__(self, other):
7986
    return not (self == other)
7987
 
7988
class getLatestArrivals_result:
7989
  """
7990
  Attributes:
7991
   - success
7992
   - isex
7993
  """
7994
 
7995
  thrift_spec = (
7996
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7997
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7998
  )
7999
 
8000
  def __init__(self, success=None, isex=None,):
8001
    self.success = success
8002
    self.isex = isex
8003
 
8004
  def read(self, iprot):
8005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8007
      return
8008
    iprot.readStructBegin()
8009
    while True:
8010
      (fname, ftype, fid) = iprot.readFieldBegin()
8011
      if ftype == TType.STOP:
8012
        break
8013
      if fid == 0:
8014
        if ftype == TType.LIST:
8015
          self.success = []
8016
          (_etype103, _size100) = iprot.readListBegin()
8017
          for _i104 in xrange(_size100):
8018
            _elem105 = Item()
8019
            _elem105.read(iprot)
8020
            self.success.append(_elem105)
8021
          iprot.readListEnd()
8022
        else:
8023
          iprot.skip(ftype)
8024
      elif fid == 1:
8025
        if ftype == TType.STRUCT:
8026
          self.isex = CatalogServiceException()
8027
          self.isex.read(iprot)
8028
        else:
8029
          iprot.skip(ftype)
8030
      else:
8031
        iprot.skip(ftype)
8032
      iprot.readFieldEnd()
8033
    iprot.readStructEnd()
8034
 
8035
  def write(self, oprot):
8036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8038
      return
8039
    oprot.writeStructBegin('getLatestArrivals_result')
8040
    if self.success is not None:
8041
      oprot.writeFieldBegin('success', TType.LIST, 0)
8042
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8043
      for iter106 in self.success:
8044
        iter106.write(oprot)
8045
      oprot.writeListEnd()
8046
      oprot.writeFieldEnd()
8047
    if self.isex is not None:
8048
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
8049
      self.isex.write(oprot)
8050
      oprot.writeFieldEnd()
8051
    oprot.writeFieldStop()
8052
    oprot.writeStructEnd()
8053
 
8054
  def validate(self):
8055
    return
8056
 
8057
 
8058
  def __repr__(self):
8059
    L = ['%s=%r' % (key, value)
8060
      for key, value in self.__dict__.iteritems()]
8061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8062
 
8063
  def __eq__(self, other):
8064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8065
 
8066
  def __ne__(self, other):
8067
    return not (self == other)
8068
 
8069
class getLatestArrivalsCatalogIds_args:
8070
  """
8071
  Attributes:
8072
   - beginIndex
8073
   - totalItems
8074
   - brand
8075
   - categories
8076
  """
8077
 
8078
  thrift_spec = (
8079
    None, # 0
8080
    (1, TType.I64, 'beginIndex', None, None, ), # 1
8081
    (2, TType.I64, 'totalItems', None, None, ), # 2
8082
    (3, TType.STRING, 'brand', None, None, ), # 3
8083
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
8084
  )
8085
 
8086
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
8087
    self.beginIndex = beginIndex
8088
    self.totalItems = totalItems
8089
    self.brand = brand
8090
    self.categories = categories
8091
 
8092
  def read(self, iprot):
8093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8095
      return
8096
    iprot.readStructBegin()
8097
    while True:
8098
      (fname, ftype, fid) = iprot.readFieldBegin()
8099
      if ftype == TType.STOP:
8100
        break
8101
      if fid == 1:
8102
        if ftype == TType.I64:
8103
          self.beginIndex = iprot.readI64();
8104
        else:
8105
          iprot.skip(ftype)
8106
      elif fid == 2:
8107
        if ftype == TType.I64:
8108
          self.totalItems = iprot.readI64();
8109
        else:
8110
          iprot.skip(ftype)
8111
      elif fid == 3:
8112
        if ftype == TType.STRING:
8113
          self.brand = iprot.readString();
8114
        else:
8115
          iprot.skip(ftype)
8116
      elif fid == 4:
8117
        if ftype == TType.LIST:
8118
          self.categories = []
8119
          (_etype110, _size107) = iprot.readListBegin()
8120
          for _i111 in xrange(_size107):
8121
            _elem112 = iprot.readI64();
8122
            self.categories.append(_elem112)
8123
          iprot.readListEnd()
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('getLatestArrivalsCatalogIds_args')
8136
    if self.beginIndex is not None:
8137
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
8138
      oprot.writeI64(self.beginIndex)
8139
      oprot.writeFieldEnd()
8140
    if self.totalItems is not None:
8141
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
8142
      oprot.writeI64(self.totalItems)
8143
      oprot.writeFieldEnd()
8144
    if self.brand is not None:
8145
      oprot.writeFieldBegin('brand', TType.STRING, 3)
8146
      oprot.writeString(self.brand)
8147
      oprot.writeFieldEnd()
8148
    if self.categories is not None:
8149
      oprot.writeFieldBegin('categories', TType.LIST, 4)
8150
      oprot.writeListBegin(TType.I64, len(self.categories))
8151
      for iter113 in self.categories:
8152
        oprot.writeI64(iter113)
8153
      oprot.writeListEnd()
8154
      oprot.writeFieldEnd()
8155
    oprot.writeFieldStop()
8156
    oprot.writeStructEnd()
8157
 
8158
  def validate(self):
8159
    return
8160
 
8161
 
8162
  def __repr__(self):
8163
    L = ['%s=%r' % (key, value)
8164
      for key, value in self.__dict__.iteritems()]
8165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8166
 
8167
  def __eq__(self, other):
8168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8169
 
8170
  def __ne__(self, other):
8171
    return not (self == other)
8172
 
8173
class getLatestArrivalsCatalogIds_result:
8174
  """
8175
  Attributes:
8176
   - success
8177
   - cex
8178
  """
8179
 
8180
  thrift_spec = (
8181
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8182
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8183
  )
8184
 
8185
  def __init__(self, success=None, cex=None,):
8186
    self.success = success
8187
    self.cex = cex
8188
 
8189
  def read(self, iprot):
8190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8192
      return
8193
    iprot.readStructBegin()
8194
    while True:
8195
      (fname, ftype, fid) = iprot.readFieldBegin()
8196
      if ftype == TType.STOP:
8197
        break
8198
      if fid == 0:
8199
        if ftype == TType.LIST:
8200
          self.success = []
8201
          (_etype117, _size114) = iprot.readListBegin()
8202
          for _i118 in xrange(_size114):
8203
            _elem119 = iprot.readI64();
8204
            self.success.append(_elem119)
8205
          iprot.readListEnd()
8206
        else:
8207
          iprot.skip(ftype)
8208
      elif fid == 1:
8209
        if ftype == TType.STRUCT:
8210
          self.cex = CatalogServiceException()
8211
          self.cex.read(iprot)
8212
        else:
8213
          iprot.skip(ftype)
8214
      else:
8215
        iprot.skip(ftype)
8216
      iprot.readFieldEnd()
8217
    iprot.readStructEnd()
8218
 
8219
  def write(self, oprot):
8220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8222
      return
8223
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
8224
    if self.success is not None:
8225
      oprot.writeFieldBegin('success', TType.LIST, 0)
8226
      oprot.writeListBegin(TType.I64, len(self.success))
8227
      for iter120 in self.success:
8228
        oprot.writeI64(iter120)
8229
      oprot.writeListEnd()
8230
      oprot.writeFieldEnd()
8231
    if self.cex is not None:
8232
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8233
      self.cex.write(oprot)
8234
      oprot.writeFieldEnd()
8235
    oprot.writeFieldStop()
8236
    oprot.writeStructEnd()
8237
 
8238
  def validate(self):
8239
    return
8240
 
8241
 
8242
  def __repr__(self):
8243
    L = ['%s=%r' % (key, value)
8244
      for key, value in self.__dict__.iteritems()]
8245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8246
 
8247
  def __eq__(self, other):
8248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8249
 
8250
  def __ne__(self, other):
8251
    return not (self == other)
8252
 
8253
class getLatestArrivalsCount_args:
8254
 
8255
  thrift_spec = (
8256
  )
8257
 
8258
  def read(self, iprot):
8259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8261
      return
8262
    iprot.readStructBegin()
8263
    while True:
8264
      (fname, ftype, fid) = iprot.readFieldBegin()
8265
      if ftype == TType.STOP:
8266
        break
8267
      else:
8268
        iprot.skip(ftype)
8269
      iprot.readFieldEnd()
8270
    iprot.readStructEnd()
8271
 
8272
  def write(self, oprot):
8273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8275
      return
8276
    oprot.writeStructBegin('getLatestArrivalsCount_args')
8277
    oprot.writeFieldStop()
8278
    oprot.writeStructEnd()
8279
 
8280
  def validate(self):
8281
    return
8282
 
8283
 
8284
  def __repr__(self):
8285
    L = ['%s=%r' % (key, value)
8286
      for key, value in self.__dict__.iteritems()]
8287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8288
 
8289
  def __eq__(self, other):
8290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8291
 
8292
  def __ne__(self, other):
8293
    return not (self == other)
8294
 
8295
class getLatestArrivalsCount_result:
8296
  """
8297
  Attributes:
8298
   - success
8299
   - cex
8300
  """
8301
 
8302
  thrift_spec = (
8303
    (0, TType.I64, 'success', None, None, ), # 0
8304
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8305
  )
8306
 
8307
  def __init__(self, success=None, cex=None,):
8308
    self.success = success
8309
    self.cex = cex
8310
 
8311
  def read(self, iprot):
8312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8314
      return
8315
    iprot.readStructBegin()
8316
    while True:
8317
      (fname, ftype, fid) = iprot.readFieldBegin()
8318
      if ftype == TType.STOP:
8319
        break
8320
      if fid == 0:
8321
        if ftype == TType.I64:
8322
          self.success = iprot.readI64();
8323
        else:
8324
          iprot.skip(ftype)
8325
      elif fid == 1:
8326
        if ftype == TType.STRUCT:
8327
          self.cex = CatalogServiceException()
8328
          self.cex.read(iprot)
8329
        else:
8330
          iprot.skip(ftype)
8331
      else:
8332
        iprot.skip(ftype)
8333
      iprot.readFieldEnd()
8334
    iprot.readStructEnd()
8335
 
8336
  def write(self, oprot):
8337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8339
      return
8340
    oprot.writeStructBegin('getLatestArrivalsCount_result')
8341
    if self.success is not None:
8342
      oprot.writeFieldBegin('success', TType.I64, 0)
8343
      oprot.writeI64(self.success)
8344
      oprot.writeFieldEnd()
8345
    if self.cex is not None:
8346
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8347
      self.cex.write(oprot)
8348
      oprot.writeFieldEnd()
8349
    oprot.writeFieldStop()
8350
    oprot.writeStructEnd()
8351
 
8352
  def validate(self):
8353
    return
8354
 
8355
 
8356
  def __repr__(self):
8357
    L = ['%s=%r' % (key, value)
8358
      for key, value in self.__dict__.iteritems()]
8359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8360
 
8361
  def __eq__(self, other):
8362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8363
 
8364
  def __ne__(self, other):
8365
    return not (self == other)
8366
 
8367
class generateNewEntityID_args:
8368
 
8369
  thrift_spec = (
8370
  )
8371
 
8372
  def read(self, iprot):
8373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8375
      return
8376
    iprot.readStructBegin()
8377
    while True:
8378
      (fname, ftype, fid) = iprot.readFieldBegin()
8379
      if ftype == TType.STOP:
8380
        break
8381
      else:
8382
        iprot.skip(ftype)
8383
      iprot.readFieldEnd()
8384
    iprot.readStructEnd()
8385
 
8386
  def write(self, oprot):
8387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8389
      return
8390
    oprot.writeStructBegin('generateNewEntityID_args')
8391
    oprot.writeFieldStop()
8392
    oprot.writeStructEnd()
8393
 
8394
  def validate(self):
8395
    return
8396
 
8397
 
8398
  def __repr__(self):
8399
    L = ['%s=%r' % (key, value)
8400
      for key, value in self.__dict__.iteritems()]
8401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8402
 
8403
  def __eq__(self, other):
8404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8405
 
8406
  def __ne__(self, other):
8407
    return not (self == other)
8408
 
8409
class generateNewEntityID_result:
8410
  """
8411
  Attributes:
8412
   - success
8413
  """
8414
 
8415
  thrift_spec = (
8416
    (0, TType.I64, 'success', None, None, ), # 0
8417
  )
8418
 
8419
  def __init__(self, success=None,):
8420
    self.success = success
8421
 
8422
  def read(self, iprot):
8423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8425
      return
8426
    iprot.readStructBegin()
8427
    while True:
8428
      (fname, ftype, fid) = iprot.readFieldBegin()
8429
      if ftype == TType.STOP:
8430
        break
8431
      if fid == 0:
8432
        if ftype == TType.I64:
8433
          self.success = iprot.readI64();
8434
        else:
8435
          iprot.skip(ftype)
8436
      else:
8437
        iprot.skip(ftype)
8438
      iprot.readFieldEnd()
8439
    iprot.readStructEnd()
8440
 
8441
  def write(self, oprot):
8442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8444
      return
8445
    oprot.writeStructBegin('generateNewEntityID_result')
8446
    if self.success is not None:
8447
      oprot.writeFieldBegin('success', TType.I64, 0)
8448
      oprot.writeI64(self.success)
8449
      oprot.writeFieldEnd()
8450
    oprot.writeFieldStop()
8451
    oprot.writeStructEnd()
8452
 
8453
  def validate(self):
8454
    return
8455
 
8456
 
8457
  def __repr__(self):
8458
    L = ['%s=%r' % (key, value)
8459
      for key, value in self.__dict__.iteritems()]
8460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8461
 
8462
  def __eq__(self, other):
8463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8464
 
8465
  def __ne__(self, other):
8466
    return not (self == other)
8467
 
8468
class addCategory_args:
8469
  """
8470
  Attributes:
8471
   - category
8472
  """
8473
 
8474
  thrift_spec = (
8475
    None, # 0
8476
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
8477
  )
8478
 
8479
  def __init__(self, category=None,):
8480
    self.category = category
8481
 
8482
  def read(self, iprot):
8483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8485
      return
8486
    iprot.readStructBegin()
8487
    while True:
8488
      (fname, ftype, fid) = iprot.readFieldBegin()
8489
      if ftype == TType.STOP:
8490
        break
8491
      if fid == 1:
8492
        if ftype == TType.STRUCT:
8493
          self.category = Category()
8494
          self.category.read(iprot)
8495
        else:
8496
          iprot.skip(ftype)
8497
      else:
8498
        iprot.skip(ftype)
8499
      iprot.readFieldEnd()
8500
    iprot.readStructEnd()
8501
 
8502
  def write(self, oprot):
8503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8505
      return
8506
    oprot.writeStructBegin('addCategory_args')
8507
    if self.category is not None:
8508
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
8509
      self.category.write(oprot)
8510
      oprot.writeFieldEnd()
8511
    oprot.writeFieldStop()
8512
    oprot.writeStructEnd()
8513
 
8514
  def validate(self):
8515
    return
8516
 
8517
 
8518
  def __repr__(self):
8519
    L = ['%s=%r' % (key, value)
8520
      for key, value in self.__dict__.iteritems()]
8521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8522
 
8523
  def __eq__(self, other):
8524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8525
 
8526
  def __ne__(self, other):
8527
    return not (self == other)
8528
 
8529
class addCategory_result:
8530
  """
8531
  Attributes:
8532
   - success
8533
  """
8534
 
8535
  thrift_spec = (
8536
    (0, TType.BOOL, 'success', None, None, ), # 0
8537
  )
8538
 
8539
  def __init__(self, success=None,):
8540
    self.success = success
8541
 
8542
  def read(self, iprot):
8543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8545
      return
8546
    iprot.readStructBegin()
8547
    while True:
8548
      (fname, ftype, fid) = iprot.readFieldBegin()
8549
      if ftype == TType.STOP:
8550
        break
8551
      if fid == 0:
8552
        if ftype == TType.BOOL:
8553
          self.success = iprot.readBool();
8554
        else:
8555
          iprot.skip(ftype)
8556
      else:
8557
        iprot.skip(ftype)
8558
      iprot.readFieldEnd()
8559
    iprot.readStructEnd()
8560
 
8561
  def write(self, oprot):
8562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8564
      return
8565
    oprot.writeStructBegin('addCategory_result')
8566
    if self.success is not None:
8567
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8568
      oprot.writeBool(self.success)
8569
      oprot.writeFieldEnd()
8570
    oprot.writeFieldStop()
8571
    oprot.writeStructEnd()
8572
 
8573
  def validate(self):
8574
    return
8575
 
8576
 
8577
  def __repr__(self):
8578
    L = ['%s=%r' % (key, value)
8579
      for key, value in self.__dict__.iteritems()]
8580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8581
 
8582
  def __eq__(self, other):
8583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8584
 
8585
  def __ne__(self, other):
8586
    return not (self == other)
8587
 
8588
class getCategory_args:
8589
  """
8590
  Attributes:
8591
   - id
8592
  """
8593
 
8594
  thrift_spec = (
8595
    None, # 0
8596
    (1, TType.I64, 'id', None, None, ), # 1
8597
  )
8598
 
8599
  def __init__(self, id=None,):
8600
    self.id = id
8601
 
8602
  def read(self, iprot):
8603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8605
      return
8606
    iprot.readStructBegin()
8607
    while True:
8608
      (fname, ftype, fid) = iprot.readFieldBegin()
8609
      if ftype == TType.STOP:
8610
        break
8611
      if fid == 1:
8612
        if ftype == TType.I64:
8613
          self.id = iprot.readI64();
8614
        else:
8615
          iprot.skip(ftype)
8616
      else:
8617
        iprot.skip(ftype)
8618
      iprot.readFieldEnd()
8619
    iprot.readStructEnd()
8620
 
8621
  def write(self, oprot):
8622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8624
      return
8625
    oprot.writeStructBegin('getCategory_args')
8626
    if self.id is not None:
8627
      oprot.writeFieldBegin('id', TType.I64, 1)
8628
      oprot.writeI64(self.id)
8629
      oprot.writeFieldEnd()
8630
    oprot.writeFieldStop()
8631
    oprot.writeStructEnd()
8632
 
8633
  def validate(self):
8634
    return
8635
 
8636
 
8637
  def __repr__(self):
8638
    L = ['%s=%r' % (key, value)
8639
      for key, value in self.__dict__.iteritems()]
8640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8641
 
8642
  def __eq__(self, other):
8643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8644
 
8645
  def __ne__(self, other):
8646
    return not (self == other)
8647
 
8648
class getCategory_result:
8649
  """
8650
  Attributes:
8651
   - success
8652
  """
8653
 
8654
  thrift_spec = (
8655
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
8656
  )
8657
 
8658
  def __init__(self, success=None,):
8659
    self.success = success
8660
 
8661
  def read(self, iprot):
8662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8664
      return
8665
    iprot.readStructBegin()
8666
    while True:
8667
      (fname, ftype, fid) = iprot.readFieldBegin()
8668
      if ftype == TType.STOP:
8669
        break
8670
      if fid == 0:
8671
        if ftype == TType.STRUCT:
8672
          self.success = Category()
8673
          self.success.read(iprot)
8674
        else:
8675
          iprot.skip(ftype)
8676
      else:
8677
        iprot.skip(ftype)
8678
      iprot.readFieldEnd()
8679
    iprot.readStructEnd()
8680
 
8681
  def write(self, oprot):
8682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8684
      return
8685
    oprot.writeStructBegin('getCategory_result')
8686
    if self.success is not None:
8687
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8688
      self.success.write(oprot)
8689
      oprot.writeFieldEnd()
8690
    oprot.writeFieldStop()
8691
    oprot.writeStructEnd()
8692
 
8693
  def validate(self):
8694
    return
8695
 
8696
 
8697
  def __repr__(self):
8698
    L = ['%s=%r' % (key, value)
8699
      for key, value in self.__dict__.iteritems()]
8700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8701
 
8702
  def __eq__(self, other):
8703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8704
 
8705
  def __ne__(self, other):
8706
    return not (self == other)
8707
 
8708
class getAllCategories_args:
8709
 
8710
  thrift_spec = (
8711
  )
8712
 
8713
  def read(self, iprot):
8714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8716
      return
8717
    iprot.readStructBegin()
8718
    while True:
8719
      (fname, ftype, fid) = iprot.readFieldBegin()
8720
      if ftype == TType.STOP:
8721
        break
8722
      else:
8723
        iprot.skip(ftype)
8724
      iprot.readFieldEnd()
8725
    iprot.readStructEnd()
8726
 
8727
  def write(self, oprot):
8728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8730
      return
8731
    oprot.writeStructBegin('getAllCategories_args')
8732
    oprot.writeFieldStop()
8733
    oprot.writeStructEnd()
8734
 
8735
  def validate(self):
8736
    return
8737
 
8738
 
8739
  def __repr__(self):
8740
    L = ['%s=%r' % (key, value)
8741
      for key, value in self.__dict__.iteritems()]
8742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8743
 
8744
  def __eq__(self, other):
8745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8746
 
8747
  def __ne__(self, other):
8748
    return not (self == other)
8749
 
8750
class getAllCategories_result:
8751
  """
8752
  Attributes:
8753
   - success
8754
  """
8755
 
8756
  thrift_spec = (
8757
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8758
  )
8759
 
8760
  def __init__(self, success=None,):
8761
    self.success = success
8762
 
8763
  def read(self, iprot):
8764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8766
      return
8767
    iprot.readStructBegin()
8768
    while True:
8769
      (fname, ftype, fid) = iprot.readFieldBegin()
8770
      if ftype == TType.STOP:
8771
        break
8772
      if fid == 0:
8773
        if ftype == TType.LIST:
8774
          self.success = []
8775
          (_etype124, _size121) = iprot.readListBegin()
8776
          for _i125 in xrange(_size121):
8777
            _elem126 = Category()
8778
            _elem126.read(iprot)
8779
            self.success.append(_elem126)
8780
          iprot.readListEnd()
8781
        else:
8782
          iprot.skip(ftype)
8783
      else:
8784
        iprot.skip(ftype)
8785
      iprot.readFieldEnd()
8786
    iprot.readStructEnd()
8787
 
8788
  def write(self, oprot):
8789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8791
      return
8792
    oprot.writeStructBegin('getAllCategories_result')
8793
    if self.success is not None:
8794
      oprot.writeFieldBegin('success', TType.LIST, 0)
8795
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8796
      for iter127 in self.success:
8797
        iter127.write(oprot)
8798
      oprot.writeListEnd()
8799
      oprot.writeFieldEnd()
8800
    oprot.writeFieldStop()
8801
    oprot.writeStructEnd()
8802
 
8803
  def validate(self):
8804
    return
8805
 
8806
 
8807
  def __repr__(self):
8808
    L = ['%s=%r' % (key, value)
8809
      for key, value in self.__dict__.iteritems()]
8810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8811
 
8812
  def __eq__(self, other):
8813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8814
 
8815
  def __ne__(self, other):
8816
    return not (self == other)
8817
 
8818
class getAllSimilarItems_args:
8819
  """
8820
  Attributes:
8821
   - itemId
8822
  """
8823
 
8824
  thrift_spec = (
8825
    None, # 0
8826
    (1, TType.I64, 'itemId', None, None, ), # 1
8827
  )
8828
 
8829
  def __init__(self, itemId=None,):
8830
    self.itemId = itemId
8831
 
8832
  def read(self, iprot):
8833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8835
      return
8836
    iprot.readStructBegin()
8837
    while True:
8838
      (fname, ftype, fid) = iprot.readFieldBegin()
8839
      if ftype == TType.STOP:
8840
        break
8841
      if fid == 1:
8842
        if ftype == TType.I64:
8843
          self.itemId = iprot.readI64();
8844
        else:
8845
          iprot.skip(ftype)
8846
      else:
8847
        iprot.skip(ftype)
8848
      iprot.readFieldEnd()
8849
    iprot.readStructEnd()
8850
 
8851
  def write(self, oprot):
8852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8854
      return
8855
    oprot.writeStructBegin('getAllSimilarItems_args')
8856
    if self.itemId is not None:
8857
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8858
      oprot.writeI64(self.itemId)
8859
      oprot.writeFieldEnd()
8860
    oprot.writeFieldStop()
8861
    oprot.writeStructEnd()
8862
 
8863
  def validate(self):
8864
    return
8865
 
8866
 
8867
  def __repr__(self):
8868
    L = ['%s=%r' % (key, value)
8869
      for key, value in self.__dict__.iteritems()]
8870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8871
 
8872
  def __eq__(self, other):
8873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8874
 
8875
  def __ne__(self, other):
8876
    return not (self == other)
8877
 
8878
class getAllSimilarItems_result:
8879
  """
8880
  Attributes:
8881
   - success
8882
  """
8883
 
8884
  thrift_spec = (
8885
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8886
  )
8887
 
8888
  def __init__(self, success=None,):
8889
    self.success = success
8890
 
8891
  def read(self, iprot):
8892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8894
      return
8895
    iprot.readStructBegin()
8896
    while True:
8897
      (fname, ftype, fid) = iprot.readFieldBegin()
8898
      if ftype == TType.STOP:
8899
        break
8900
      if fid == 0:
8901
        if ftype == TType.LIST:
8902
          self.success = []
8903
          (_etype131, _size128) = iprot.readListBegin()
8904
          for _i132 in xrange(_size128):
8905
            _elem133 = Item()
8906
            _elem133.read(iprot)
8907
            self.success.append(_elem133)
8908
          iprot.readListEnd()
8909
        else:
8910
          iprot.skip(ftype)
8911
      else:
8912
        iprot.skip(ftype)
8913
      iprot.readFieldEnd()
8914
    iprot.readStructEnd()
8915
 
8916
  def write(self, oprot):
8917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8919
      return
8920
    oprot.writeStructBegin('getAllSimilarItems_result')
8921
    if self.success is not None:
8922
      oprot.writeFieldBegin('success', TType.LIST, 0)
8923
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8924
      for iter134 in self.success:
8925
        iter134.write(oprot)
8926
      oprot.writeListEnd()
8927
      oprot.writeFieldEnd()
8928
    oprot.writeFieldStop()
8929
    oprot.writeStructEnd()
8930
 
8931
  def validate(self):
8932
    return
8933
 
8934
 
8935
  def __repr__(self):
8936
    L = ['%s=%r' % (key, value)
8937
      for key, value in self.__dict__.iteritems()]
8938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8939
 
8940
  def __eq__(self, other):
8941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8942
 
8943
  def __ne__(self, other):
8944
    return not (self == other)
8945
 
8946
class addSimilarItem_args:
8947
  """
8948
  Attributes:
8949
   - itemId
8950
   - catalogItemId
8951
  """
8952
 
8953
  thrift_spec = (
8954
    None, # 0
8955
    (1, TType.I64, 'itemId', None, None, ), # 1
8956
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8957
  )
8958
 
8959
  def __init__(self, itemId=None, catalogItemId=None,):
8960
    self.itemId = itemId
8961
    self.catalogItemId = catalogItemId
8962
 
8963
  def read(self, iprot):
8964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8966
      return
8967
    iprot.readStructBegin()
8968
    while True:
8969
      (fname, ftype, fid) = iprot.readFieldBegin()
8970
      if ftype == TType.STOP:
8971
        break
8972
      if fid == 1:
8973
        if ftype == TType.I64:
8974
          self.itemId = iprot.readI64();
8975
        else:
8976
          iprot.skip(ftype)
8977
      elif fid == 2:
8978
        if ftype == TType.I64:
8979
          self.catalogItemId = iprot.readI64();
8980
        else:
8981
          iprot.skip(ftype)
8982
      else:
8983
        iprot.skip(ftype)
8984
      iprot.readFieldEnd()
8985
    iprot.readStructEnd()
8986
 
8987
  def write(self, oprot):
8988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8990
      return
8991
    oprot.writeStructBegin('addSimilarItem_args')
8992
    if self.itemId is not None:
8993
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8994
      oprot.writeI64(self.itemId)
8995
      oprot.writeFieldEnd()
8996
    if self.catalogItemId is not None:
8997
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8998
      oprot.writeI64(self.catalogItemId)
8999
      oprot.writeFieldEnd()
9000
    oprot.writeFieldStop()
9001
    oprot.writeStructEnd()
9002
 
9003
  def validate(self):
9004
    return
9005
 
9006
 
9007
  def __repr__(self):
9008
    L = ['%s=%r' % (key, value)
9009
      for key, value in self.__dict__.iteritems()]
9010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9011
 
9012
  def __eq__(self, other):
9013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9014
 
9015
  def __ne__(self, other):
9016
    return not (self == other)
9017
 
9018
class addSimilarItem_result:
9019
  """
9020
  Attributes:
9021
   - success
9022
   - cex
9023
  """
9024
 
9025
  thrift_spec = (
9026
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
9027
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9028
  )
9029
 
9030
  def __init__(self, success=None, cex=None,):
9031
    self.success = success
9032
    self.cex = cex
9033
 
9034
  def read(self, iprot):
9035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9037
      return
9038
    iprot.readStructBegin()
9039
    while True:
9040
      (fname, ftype, fid) = iprot.readFieldBegin()
9041
      if ftype == TType.STOP:
9042
        break
9043
      if fid == 0:
9044
        if ftype == TType.STRUCT:
9045
          self.success = Item()
9046
          self.success.read(iprot)
9047
        else:
9048
          iprot.skip(ftype)
9049
      elif fid == 1:
9050
        if ftype == TType.STRUCT:
9051
          self.cex = CatalogServiceException()
9052
          self.cex.read(iprot)
9053
        else:
9054
          iprot.skip(ftype)
9055
      else:
9056
        iprot.skip(ftype)
9057
      iprot.readFieldEnd()
9058
    iprot.readStructEnd()
9059
 
9060
  def write(self, oprot):
9061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9063
      return
9064
    oprot.writeStructBegin('addSimilarItem_result')
9065
    if self.success is not None:
9066
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9067
      self.success.write(oprot)
9068
      oprot.writeFieldEnd()
9069
    if self.cex is not None:
9070
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9071
      self.cex.write(oprot)
9072
      oprot.writeFieldEnd()
9073
    oprot.writeFieldStop()
9074
    oprot.writeStructEnd()
9075
 
9076
  def validate(self):
9077
    return
9078
 
9079
 
9080
  def __repr__(self):
9081
    L = ['%s=%r' % (key, value)
9082
      for key, value in self.__dict__.iteritems()]
9083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9084
 
9085
  def __eq__(self, other):
9086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9087
 
9088
  def __ne__(self, other):
9089
    return not (self == other)
9090
 
6512 kshitij.so 9091
class addTag_args:
9092
  """
9093
  Attributes:
9094
   - displayName
9095
   - itemId
9096
  """
9097
 
9098
  thrift_spec = (
9099
    None, # 0
9100
    (1, TType.STRING, 'displayName', None, None, ), # 1
9101
    (2, TType.I64, 'itemId', None, None, ), # 2
9102
  )
9103
 
9104
  def __init__(self, displayName=None, itemId=None,):
9105
    self.displayName = displayName
9106
    self.itemId = itemId
9107
 
9108
  def read(self, iprot):
9109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9111
      return
9112
    iprot.readStructBegin()
9113
    while True:
9114
      (fname, ftype, fid) = iprot.readFieldBegin()
9115
      if ftype == TType.STOP:
9116
        break
9117
      if fid == 1:
9118
        if ftype == TType.STRING:
9119
          self.displayName = iprot.readString();
9120
        else:
9121
          iprot.skip(ftype)
9122
      elif fid == 2:
9123
        if ftype == TType.I64:
9124
          self.itemId = iprot.readI64();
9125
        else:
9126
          iprot.skip(ftype)
9127
      else:
9128
        iprot.skip(ftype)
9129
      iprot.readFieldEnd()
9130
    iprot.readStructEnd()
9131
 
9132
  def write(self, oprot):
9133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9135
      return
9136
    oprot.writeStructBegin('addTag_args')
9137
    if self.displayName is not None:
9138
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9139
      oprot.writeString(self.displayName)
9140
      oprot.writeFieldEnd()
9141
    if self.itemId is not None:
9142
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9143
      oprot.writeI64(self.itemId)
9144
      oprot.writeFieldEnd()
9145
    oprot.writeFieldStop()
9146
    oprot.writeStructEnd()
9147
 
9148
  def validate(self):
9149
    return
9150
 
9151
 
9152
  def __repr__(self):
9153
    L = ['%s=%r' % (key, value)
9154
      for key, value in self.__dict__.iteritems()]
9155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9156
 
9157
  def __eq__(self, other):
9158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9159
 
9160
  def __ne__(self, other):
9161
    return not (self == other)
9162
 
9163
class addTag_result:
9164
  """
9165
  Attributes:
9166
   - success
9167
  """
9168
 
9169
  thrift_spec = (
9170
    (0, TType.BOOL, 'success', None, None, ), # 0
9171
  )
9172
 
9173
  def __init__(self, success=None,):
9174
    self.success = success
9175
 
9176
  def read(self, iprot):
9177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9179
      return
9180
    iprot.readStructBegin()
9181
    while True:
9182
      (fname, ftype, fid) = iprot.readFieldBegin()
9183
      if ftype == TType.STOP:
9184
        break
9185
      if fid == 0:
9186
        if ftype == TType.BOOL:
9187
          self.success = iprot.readBool();
9188
        else:
9189
          iprot.skip(ftype)
9190
      else:
9191
        iprot.skip(ftype)
9192
      iprot.readFieldEnd()
9193
    iprot.readStructEnd()
9194
 
9195
  def write(self, oprot):
9196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9198
      return
9199
    oprot.writeStructBegin('addTag_result')
9200
    if self.success is not None:
9201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9202
      oprot.writeBool(self.success)
9203
      oprot.writeFieldEnd()
9204
    oprot.writeFieldStop()
9205
    oprot.writeStructEnd()
9206
 
9207
  def validate(self):
9208
    return
9209
 
9210
 
9211
  def __repr__(self):
9212
    L = ['%s=%r' % (key, value)
9213
      for key, value in self.__dict__.iteritems()]
9214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9215
 
9216
  def __eq__(self, other):
9217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9218
 
9219
  def __ne__(self, other):
9220
    return not (self == other)
9221
 
9222
class deleteEntityTag_args:
9223
  """
9224
  Attributes:
9225
   - displayName
9226
   - itemId
9227
  """
9228
 
9229
  thrift_spec = (
9230
    None, # 0
9231
    (1, TType.STRING, 'displayName', None, None, ), # 1
9232
    (2, TType.I64, 'itemId', None, None, ), # 2
9233
  )
9234
 
9235
  def __init__(self, displayName=None, itemId=None,):
9236
    self.displayName = displayName
9237
    self.itemId = itemId
9238
 
9239
  def read(self, iprot):
9240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9242
      return
9243
    iprot.readStructBegin()
9244
    while True:
9245
      (fname, ftype, fid) = iprot.readFieldBegin()
9246
      if ftype == TType.STOP:
9247
        break
9248
      if fid == 1:
9249
        if ftype == TType.STRING:
9250
          self.displayName = iprot.readString();
9251
        else:
9252
          iprot.skip(ftype)
9253
      elif fid == 2:
9254
        if ftype == TType.I64:
9255
          self.itemId = iprot.readI64();
9256
        else:
9257
          iprot.skip(ftype)
9258
      else:
9259
        iprot.skip(ftype)
9260
      iprot.readFieldEnd()
9261
    iprot.readStructEnd()
9262
 
9263
  def write(self, oprot):
9264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9266
      return
9267
    oprot.writeStructBegin('deleteEntityTag_args')
9268
    if self.displayName is not None:
9269
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9270
      oprot.writeString(self.displayName)
9271
      oprot.writeFieldEnd()
9272
    if self.itemId is not None:
9273
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9274
      oprot.writeI64(self.itemId)
9275
      oprot.writeFieldEnd()
9276
    oprot.writeFieldStop()
9277
    oprot.writeStructEnd()
9278
 
9279
  def validate(self):
9280
    return
9281
 
9282
 
9283
  def __repr__(self):
9284
    L = ['%s=%r' % (key, value)
9285
      for key, value in self.__dict__.iteritems()]
9286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9287
 
9288
  def __eq__(self, other):
9289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9290
 
9291
  def __ne__(self, other):
9292
    return not (self == other)
9293
 
9294
class deleteEntityTag_result:
9295
  """
9296
  Attributes:
9297
   - success
9298
  """
9299
 
9300
  thrift_spec = (
9301
    (0, TType.BOOL, 'success', None, None, ), # 0
9302
  )
9303
 
9304
  def __init__(self, success=None,):
9305
    self.success = success
9306
 
9307
  def read(self, iprot):
9308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9310
      return
9311
    iprot.readStructBegin()
9312
    while True:
9313
      (fname, ftype, fid) = iprot.readFieldBegin()
9314
      if ftype == TType.STOP:
9315
        break
9316
      if fid == 0:
9317
        if ftype == TType.BOOL:
9318
          self.success = iprot.readBool();
9319
        else:
9320
          iprot.skip(ftype)
9321
      else:
9322
        iprot.skip(ftype)
9323
      iprot.readFieldEnd()
9324
    iprot.readStructEnd()
9325
 
9326
  def write(self, oprot):
9327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9329
      return
9330
    oprot.writeStructBegin('deleteEntityTag_result')
9331
    if self.success is not None:
9332
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9333
      oprot.writeBool(self.success)
9334
      oprot.writeFieldEnd()
9335
    oprot.writeFieldStop()
9336
    oprot.writeStructEnd()
9337
 
9338
  def validate(self):
9339
    return
9340
 
9341
 
9342
  def __repr__(self):
9343
    L = ['%s=%r' % (key, value)
9344
      for key, value in self.__dict__.iteritems()]
9345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9346
 
9347
  def __eq__(self, other):
9348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9349
 
9350
  def __ne__(self, other):
9351
    return not (self == other)
9352
 
9353
class deleteTag_args:
9354
  """
9355
  Attributes:
9356
   - displayName
9357
  """
9358
 
9359
  thrift_spec = (
9360
    None, # 0
9361
    (1, TType.STRING, 'displayName', None, None, ), # 1
9362
  )
9363
 
9364
  def __init__(self, displayName=None,):
9365
    self.displayName = displayName
9366
 
9367
  def read(self, iprot):
9368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9370
      return
9371
    iprot.readStructBegin()
9372
    while True:
9373
      (fname, ftype, fid) = iprot.readFieldBegin()
9374
      if ftype == TType.STOP:
9375
        break
9376
      if fid == 1:
9377
        if ftype == TType.STRING:
9378
          self.displayName = iprot.readString();
9379
        else:
9380
          iprot.skip(ftype)
9381
      else:
9382
        iprot.skip(ftype)
9383
      iprot.readFieldEnd()
9384
    iprot.readStructEnd()
9385
 
9386
  def write(self, oprot):
9387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9389
      return
9390
    oprot.writeStructBegin('deleteTag_args')
9391
    if self.displayName is not None:
9392
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9393
      oprot.writeString(self.displayName)
9394
      oprot.writeFieldEnd()
9395
    oprot.writeFieldStop()
9396
    oprot.writeStructEnd()
9397
 
9398
  def validate(self):
9399
    return
9400
 
9401
 
9402
  def __repr__(self):
9403
    L = ['%s=%r' % (key, value)
9404
      for key, value in self.__dict__.iteritems()]
9405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9406
 
9407
  def __eq__(self, other):
9408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9409
 
9410
  def __ne__(self, other):
9411
    return not (self == other)
9412
 
9413
class deleteTag_result:
9414
  """
9415
  Attributes:
9416
   - success
9417
  """
9418
 
9419
  thrift_spec = (
9420
    (0, TType.BOOL, 'success', None, None, ), # 0
9421
  )
9422
 
9423
  def __init__(self, success=None,):
9424
    self.success = success
9425
 
9426
  def read(self, iprot):
9427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9429
      return
9430
    iprot.readStructBegin()
9431
    while True:
9432
      (fname, ftype, fid) = iprot.readFieldBegin()
9433
      if ftype == TType.STOP:
9434
        break
9435
      if fid == 0:
9436
        if ftype == TType.BOOL:
9437
          self.success = iprot.readBool();
9438
        else:
9439
          iprot.skip(ftype)
9440
      else:
9441
        iprot.skip(ftype)
9442
      iprot.readFieldEnd()
9443
    iprot.readStructEnd()
9444
 
9445
  def write(self, oprot):
9446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9448
      return
9449
    oprot.writeStructBegin('deleteTag_result')
9450
    if self.success is not None:
9451
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9452
      oprot.writeBool(self.success)
9453
      oprot.writeFieldEnd()
9454
    oprot.writeFieldStop()
9455
    oprot.writeStructEnd()
9456
 
9457
  def validate(self):
9458
    return
9459
 
9460
 
9461
  def __repr__(self):
9462
    L = ['%s=%r' % (key, value)
9463
      for key, value in self.__dict__.iteritems()]
9464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9465
 
9466
  def __eq__(self, other):
9467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9468
 
9469
  def __ne__(self, other):
9470
    return not (self == other)
9471
 
9472
class getAllTags_args:
9473
 
9474
  thrift_spec = (
9475
  )
9476
 
9477
  def read(self, iprot):
9478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9480
      return
9481
    iprot.readStructBegin()
9482
    while True:
9483
      (fname, ftype, fid) = iprot.readFieldBegin()
9484
      if ftype == TType.STOP:
9485
        break
9486
      else:
9487
        iprot.skip(ftype)
9488
      iprot.readFieldEnd()
9489
    iprot.readStructEnd()
9490
 
9491
  def write(self, oprot):
9492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9494
      return
9495
    oprot.writeStructBegin('getAllTags_args')
9496
    oprot.writeFieldStop()
9497
    oprot.writeStructEnd()
9498
 
9499
  def validate(self):
9500
    return
9501
 
9502
 
9503
  def __repr__(self):
9504
    L = ['%s=%r' % (key, value)
9505
      for key, value in self.__dict__.iteritems()]
9506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9507
 
9508
  def __eq__(self, other):
9509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9510
 
9511
  def __ne__(self, other):
9512
    return not (self == other)
9513
 
9514
class getAllTags_result:
9515
  """
9516
  Attributes:
9517
   - success
9518
  """
9519
 
9520
  thrift_spec = (
9521
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
9522
  )
9523
 
9524
  def __init__(self, success=None,):
9525
    self.success = success
9526
 
9527
  def read(self, iprot):
9528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9530
      return
9531
    iprot.readStructBegin()
9532
    while True:
9533
      (fname, ftype, fid) = iprot.readFieldBegin()
9534
      if ftype == TType.STOP:
9535
        break
9536
      if fid == 0:
9537
        if ftype == TType.LIST:
9538
          self.success = []
9539
          (_etype138, _size135) = iprot.readListBegin()
9540
          for _i139 in xrange(_size135):
9541
            _elem140 = iprot.readString();
9542
            self.success.append(_elem140)
9543
          iprot.readListEnd()
9544
        else:
9545
          iprot.skip(ftype)
9546
      else:
9547
        iprot.skip(ftype)
9548
      iprot.readFieldEnd()
9549
    iprot.readStructEnd()
9550
 
9551
  def write(self, oprot):
9552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9554
      return
9555
    oprot.writeStructBegin('getAllTags_result')
9556
    if self.success is not None:
9557
      oprot.writeFieldBegin('success', TType.LIST, 0)
9558
      oprot.writeListBegin(TType.STRING, len(self.success))
9559
      for iter141 in self.success:
9560
        oprot.writeString(iter141)
9561
      oprot.writeListEnd()
9562
      oprot.writeFieldEnd()
9563
    oprot.writeFieldStop()
9564
    oprot.writeStructEnd()
9565
 
9566
  def validate(self):
9567
    return
9568
 
9569
 
9570
  def __repr__(self):
9571
    L = ['%s=%r' % (key, value)
9572
      for key, value in self.__dict__.iteritems()]
9573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9574
 
9575
  def __eq__(self, other):
9576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9577
 
9578
  def __ne__(self, other):
9579
    return not (self == other)
9580
 
9581
class getAllEntitiesByTagName_args:
9582
  """
9583
  Attributes:
9584
   - displayName
9585
  """
9586
 
9587
  thrift_spec = (
9588
    None, # 0
9589
    (1, TType.STRING, 'displayName', None, None, ), # 1
9590
  )
9591
 
9592
  def __init__(self, displayName=None,):
9593
    self.displayName = displayName
9594
 
9595
  def read(self, iprot):
9596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9598
      return
9599
    iprot.readStructBegin()
9600
    while True:
9601
      (fname, ftype, fid) = iprot.readFieldBegin()
9602
      if ftype == TType.STOP:
9603
        break
9604
      if fid == 1:
9605
        if ftype == TType.STRING:
9606
          self.displayName = iprot.readString();
9607
        else:
9608
          iprot.skip(ftype)
9609
      else:
9610
        iprot.skip(ftype)
9611
      iprot.readFieldEnd()
9612
    iprot.readStructEnd()
9613
 
9614
  def write(self, oprot):
9615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9617
      return
9618
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
9619
    if self.displayName is not None:
9620
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
9621
      oprot.writeString(self.displayName)
9622
      oprot.writeFieldEnd()
9623
    oprot.writeFieldStop()
9624
    oprot.writeStructEnd()
9625
 
9626
  def validate(self):
9627
    return
9628
 
9629
 
9630
  def __repr__(self):
9631
    L = ['%s=%r' % (key, value)
9632
      for key, value in self.__dict__.iteritems()]
9633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9634
 
9635
  def __eq__(self, other):
9636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9637
 
9638
  def __ne__(self, other):
9639
    return not (self == other)
9640
 
9641
class getAllEntitiesByTagName_result:
9642
  """
9643
  Attributes:
9644
   - success
9645
  """
9646
 
9647
  thrift_spec = (
9648
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9649
  )
9650
 
9651
  def __init__(self, success=None,):
9652
    self.success = success
9653
 
9654
  def read(self, iprot):
9655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9657
      return
9658
    iprot.readStructBegin()
9659
    while True:
9660
      (fname, ftype, fid) = iprot.readFieldBegin()
9661
      if ftype == TType.STOP:
9662
        break
9663
      if fid == 0:
9664
        if ftype == TType.LIST:
9665
          self.success = []
9666
          (_etype145, _size142) = iprot.readListBegin()
9667
          for _i146 in xrange(_size142):
9668
            _elem147 = iprot.readI64();
9669
            self.success.append(_elem147)
9670
          iprot.readListEnd()
9671
        else:
9672
          iprot.skip(ftype)
9673
      else:
9674
        iprot.skip(ftype)
9675
      iprot.readFieldEnd()
9676
    iprot.readStructEnd()
9677
 
9678
  def write(self, oprot):
9679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9681
      return
9682
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
9683
    if self.success is not None:
9684
      oprot.writeFieldBegin('success', TType.LIST, 0)
9685
      oprot.writeListBegin(TType.I64, len(self.success))
9686
      for iter148 in self.success:
9687
        oprot.writeI64(iter148)
9688
      oprot.writeListEnd()
9689
      oprot.writeFieldEnd()
9690
    oprot.writeFieldStop()
9691
    oprot.writeStructEnd()
9692
 
9693
  def validate(self):
9694
    return
9695
 
9696
 
9697
  def __repr__(self):
9698
    L = ['%s=%r' % (key, value)
9699
      for key, value in self.__dict__.iteritems()]
9700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9701
 
9702
  def __eq__(self, other):
9703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9704
 
9705
  def __ne__(self, other):
9706
    return not (self == other)
9707
 
6845 amit.gupta 9708
class getAllEntityTags_args:
9709
 
9710
  thrift_spec = (
9711
  )
9712
 
9713
  def read(self, iprot):
9714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9716
      return
9717
    iprot.readStructBegin()
9718
    while True:
9719
      (fname, ftype, fid) = iprot.readFieldBegin()
9720
      if ftype == TType.STOP:
9721
        break
9722
      else:
9723
        iprot.skip(ftype)
9724
      iprot.readFieldEnd()
9725
    iprot.readStructEnd()
9726
 
9727
  def write(self, oprot):
9728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9730
      return
9731
    oprot.writeStructBegin('getAllEntityTags_args')
9732
    oprot.writeFieldStop()
9733
    oprot.writeStructEnd()
9734
 
9735
  def validate(self):
9736
    return
9737
 
9738
 
9739
  def __repr__(self):
9740
    L = ['%s=%r' % (key, value)
9741
      for key, value in self.__dict__.iteritems()]
9742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9743
 
9744
  def __eq__(self, other):
9745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9746
 
9747
  def __ne__(self, other):
9748
    return not (self == other)
9749
 
9750
class getAllEntityTags_result:
9751
  """
9752
  Attributes:
9753
   - success
9754
  """
9755
 
9756
  thrift_spec = (
9757
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
9758
  )
9759
 
9760
  def __init__(self, success=None,):
9761
    self.success = success
9762
 
9763
  def read(self, iprot):
9764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9766
      return
9767
    iprot.readStructBegin()
9768
    while True:
9769
      (fname, ftype, fid) = iprot.readFieldBegin()
9770
      if ftype == TType.STOP:
9771
        break
9772
      if fid == 0:
9773
        if ftype == TType.MAP:
9774
          self.success = {}
9775
          (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() 
9776
          for _i153 in xrange(_size149):
9777
            _key154 = iprot.readI64();
9778
            _val155 = []
9779
            (_etype159, _size156) = iprot.readListBegin()
9780
            for _i160 in xrange(_size156):
9781
              _elem161 = iprot.readString();
9782
              _val155.append(_elem161)
9783
            iprot.readListEnd()
9784
            self.success[_key154] = _val155
9785
          iprot.readMapEnd()
9786
        else:
9787
          iprot.skip(ftype)
9788
      else:
9789
        iprot.skip(ftype)
9790
      iprot.readFieldEnd()
9791
    iprot.readStructEnd()
9792
 
9793
  def write(self, oprot):
9794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9796
      return
9797
    oprot.writeStructBegin('getAllEntityTags_result')
9798
    if self.success is not None:
9799
      oprot.writeFieldBegin('success', TType.MAP, 0)
9800
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
9801
      for kiter162,viter163 in self.success.items():
9802
        oprot.writeI64(kiter162)
9803
        oprot.writeListBegin(TType.STRING, len(viter163))
9804
        for iter164 in viter163:
9805
          oprot.writeString(iter164)
9806
        oprot.writeListEnd()
9807
      oprot.writeMapEnd()
9808
      oprot.writeFieldEnd()
9809
    oprot.writeFieldStop()
9810
    oprot.writeStructEnd()
9811
 
9812
  def validate(self):
9813
    return
9814
 
9815
 
9816
  def __repr__(self):
9817
    L = ['%s=%r' % (key, value)
9818
      for key, value in self.__dict__.iteritems()]
9819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9820
 
9821
  def __eq__(self, other):
9822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9823
 
9824
  def __ne__(self, other):
9825
    return not (self == other)
9826
 
6850 kshitij.so 9827
class addBanner_args:
9828
  """
9829
  Attributes:
9830
   - bannerName
9831
   - imageName
9832
   - link
9833
   - priority
9834
   - isActive
9835
   - hasMap
9836
  """
9837
 
9838
  thrift_spec = (
9839
    None, # 0
9840
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9841
    (2, TType.STRING, 'imageName', None, None, ), # 2
9842
    (3, TType.STRING, 'link', None, None, ), # 3
9843
    (4, TType.I64, 'priority', None, None, ), # 4
9844
    (5, TType.BOOL, 'isActive', None, None, ), # 5
9845
    (6, TType.BOOL, 'hasMap', None, None, ), # 6
9846
  )
9847
 
9848
  def __init__(self, bannerName=None, imageName=None, link=None, priority=None, isActive=None, hasMap=None,):
9849
    self.bannerName = bannerName
9850
    self.imageName = imageName
9851
    self.link = link
9852
    self.priority = priority
9853
    self.isActive = isActive
9854
    self.hasMap = hasMap
9855
 
9856
  def read(self, iprot):
9857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9859
      return
9860
    iprot.readStructBegin()
9861
    while True:
9862
      (fname, ftype, fid) = iprot.readFieldBegin()
9863
      if ftype == TType.STOP:
9864
        break
9865
      if fid == 1:
9866
        if ftype == TType.STRING:
9867
          self.bannerName = iprot.readString();
9868
        else:
9869
          iprot.skip(ftype)
9870
      elif fid == 2:
9871
        if ftype == TType.STRING:
9872
          self.imageName = iprot.readString();
9873
        else:
9874
          iprot.skip(ftype)
9875
      elif fid == 3:
9876
        if ftype == TType.STRING:
9877
          self.link = iprot.readString();
9878
        else:
9879
          iprot.skip(ftype)
9880
      elif fid == 4:
9881
        if ftype == TType.I64:
9882
          self.priority = iprot.readI64();
9883
        else:
9884
          iprot.skip(ftype)
9885
      elif fid == 5:
9886
        if ftype == TType.BOOL:
9887
          self.isActive = iprot.readBool();
9888
        else:
9889
          iprot.skip(ftype)
9890
      elif fid == 6:
9891
        if ftype == TType.BOOL:
9892
          self.hasMap = iprot.readBool();
9893
        else:
9894
          iprot.skip(ftype)
9895
      else:
9896
        iprot.skip(ftype)
9897
      iprot.readFieldEnd()
9898
    iprot.readStructEnd()
9899
 
9900
  def write(self, oprot):
9901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9903
      return
9904
    oprot.writeStructBegin('addBanner_args')
9905
    if self.bannerName is not None:
9906
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
9907
      oprot.writeString(self.bannerName)
9908
      oprot.writeFieldEnd()
9909
    if self.imageName is not None:
9910
      oprot.writeFieldBegin('imageName', TType.STRING, 2)
9911
      oprot.writeString(self.imageName)
9912
      oprot.writeFieldEnd()
9913
    if self.link is not None:
9914
      oprot.writeFieldBegin('link', TType.STRING, 3)
9915
      oprot.writeString(self.link)
9916
      oprot.writeFieldEnd()
9917
    if self.priority is not None:
9918
      oprot.writeFieldBegin('priority', TType.I64, 4)
9919
      oprot.writeI64(self.priority)
9920
      oprot.writeFieldEnd()
9921
    if self.isActive is not None:
9922
      oprot.writeFieldBegin('isActive', TType.BOOL, 5)
9923
      oprot.writeBool(self.isActive)
9924
      oprot.writeFieldEnd()
9925
    if self.hasMap is not None:
9926
      oprot.writeFieldBegin('hasMap', TType.BOOL, 6)
9927
      oprot.writeBool(self.hasMap)
9928
      oprot.writeFieldEnd()
9929
    oprot.writeFieldStop()
9930
    oprot.writeStructEnd()
9931
 
9932
  def validate(self):
9933
    return
9934
 
9935
 
9936
  def __repr__(self):
9937
    L = ['%s=%r' % (key, value)
9938
      for key, value in self.__dict__.iteritems()]
9939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9940
 
9941
  def __eq__(self, other):
9942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9943
 
9944
  def __ne__(self, other):
9945
    return not (self == other)
9946
 
9947
class addBanner_result:
9948
  """
9949
  Attributes:
9950
   - success
9951
  """
9952
 
9953
  thrift_spec = (
9954
    (0, TType.BOOL, 'success', None, None, ), # 0
9955
  )
9956
 
9957
  def __init__(self, success=None,):
9958
    self.success = success
9959
 
9960
  def read(self, iprot):
9961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9963
      return
9964
    iprot.readStructBegin()
9965
    while True:
9966
      (fname, ftype, fid) = iprot.readFieldBegin()
9967
      if ftype == TType.STOP:
9968
        break
9969
      if fid == 0:
9970
        if ftype == TType.BOOL:
9971
          self.success = iprot.readBool();
9972
        else:
9973
          iprot.skip(ftype)
9974
      else:
9975
        iprot.skip(ftype)
9976
      iprot.readFieldEnd()
9977
    iprot.readStructEnd()
9978
 
9979
  def write(self, oprot):
9980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9982
      return
9983
    oprot.writeStructBegin('addBanner_result')
9984
    if self.success is not None:
9985
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9986
      oprot.writeBool(self.success)
9987
      oprot.writeFieldEnd()
9988
    oprot.writeFieldStop()
9989
    oprot.writeStructEnd()
9990
 
9991
  def validate(self):
9992
    return
9993
 
9994
 
9995
  def __repr__(self):
9996
    L = ['%s=%r' % (key, value)
9997
      for key, value in self.__dict__.iteritems()]
9998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9999
 
10000
  def __eq__(self, other):
10001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10002
 
10003
  def __ne__(self, other):
10004
    return not (self == other)
10005
 
10006
class getAllBanners_args:
10007
 
10008
  thrift_spec = (
10009
  )
10010
 
10011
  def read(self, iprot):
10012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10014
      return
10015
    iprot.readStructBegin()
10016
    while True:
10017
      (fname, ftype, fid) = iprot.readFieldBegin()
10018
      if ftype == TType.STOP:
10019
        break
10020
      else:
10021
        iprot.skip(ftype)
10022
      iprot.readFieldEnd()
10023
    iprot.readStructEnd()
10024
 
10025
  def write(self, oprot):
10026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10028
      return
10029
    oprot.writeStructBegin('getAllBanners_args')
10030
    oprot.writeFieldStop()
10031
    oprot.writeStructEnd()
10032
 
10033
  def validate(self):
10034
    return
10035
 
10036
 
10037
  def __repr__(self):
10038
    L = ['%s=%r' % (key, value)
10039
      for key, value in self.__dict__.iteritems()]
10040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10041
 
10042
  def __eq__(self, other):
10043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10044
 
10045
  def __ne__(self, other):
10046
    return not (self == other)
10047
 
10048
class getAllBanners_result:
10049
  """
10050
  Attributes:
10051
   - success
10052
  """
10053
 
10054
  thrift_spec = (
10055
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10056
  )
10057
 
10058
  def __init__(self, success=None,):
10059
    self.success = success
10060
 
10061
  def read(self, iprot):
10062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10064
      return
10065
    iprot.readStructBegin()
10066
    while True:
10067
      (fname, ftype, fid) = iprot.readFieldBegin()
10068
      if ftype == TType.STOP:
10069
        break
10070
      if fid == 0:
10071
        if ftype == TType.LIST:
10072
          self.success = []
10073
          (_etype168, _size165) = iprot.readListBegin()
10074
          for _i169 in xrange(_size165):
10075
            _elem170 = iprot.readString();
10076
            self.success.append(_elem170)
10077
          iprot.readListEnd()
10078
        else:
10079
          iprot.skip(ftype)
10080
      else:
10081
        iprot.skip(ftype)
10082
      iprot.readFieldEnd()
10083
    iprot.readStructEnd()
10084
 
10085
  def write(self, oprot):
10086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10088
      return
10089
    oprot.writeStructBegin('getAllBanners_result')
10090
    if self.success is not None:
10091
      oprot.writeFieldBegin('success', TType.LIST, 0)
10092
      oprot.writeListBegin(TType.STRING, len(self.success))
10093
      for iter171 in self.success:
10094
        oprot.writeString(iter171)
10095
      oprot.writeListEnd()
10096
      oprot.writeFieldEnd()
10097
    oprot.writeFieldStop()
10098
    oprot.writeStructEnd()
10099
 
10100
  def validate(self):
10101
    return
10102
 
10103
 
10104
  def __repr__(self):
10105
    L = ['%s=%r' % (key, value)
10106
      for key, value in self.__dict__.iteritems()]
10107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10108
 
10109
  def __eq__(self, other):
10110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10111
 
10112
  def __ne__(self, other):
10113
    return not (self == other)
10114
 
10115
class deleteBanner_args:
10116
  """
10117
  Attributes:
10118
   - bannerName
10119
  """
10120
 
10121
  thrift_spec = (
10122
    None, # 0
10123
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10124
  )
10125
 
10126
  def __init__(self, bannerName=None,):
10127
    self.bannerName = bannerName
10128
 
10129
  def read(self, iprot):
10130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10132
      return
10133
    iprot.readStructBegin()
10134
    while True:
10135
      (fname, ftype, fid) = iprot.readFieldBegin()
10136
      if ftype == TType.STOP:
10137
        break
10138
      if fid == 1:
10139
        if ftype == TType.STRING:
10140
          self.bannerName = iprot.readString();
10141
        else:
10142
          iprot.skip(ftype)
10143
      else:
10144
        iprot.skip(ftype)
10145
      iprot.readFieldEnd()
10146
    iprot.readStructEnd()
10147
 
10148
  def write(self, oprot):
10149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10151
      return
10152
    oprot.writeStructBegin('deleteBanner_args')
10153
    if self.bannerName is not None:
10154
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10155
      oprot.writeString(self.bannerName)
10156
      oprot.writeFieldEnd()
10157
    oprot.writeFieldStop()
10158
    oprot.writeStructEnd()
10159
 
10160
  def validate(self):
10161
    return
10162
 
10163
 
10164
  def __repr__(self):
10165
    L = ['%s=%r' % (key, value)
10166
      for key, value in self.__dict__.iteritems()]
10167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10168
 
10169
  def __eq__(self, other):
10170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10171
 
10172
  def __ne__(self, other):
10173
    return not (self == other)
10174
 
10175
class deleteBanner_result:
10176
  """
10177
  Attributes:
10178
   - success
10179
  """
10180
 
10181
  thrift_spec = (
10182
    (0, TType.BOOL, 'success', None, None, ), # 0
10183
  )
10184
 
10185
  def __init__(self, success=None,):
10186
    self.success = success
10187
 
10188
  def read(self, iprot):
10189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10191
      return
10192
    iprot.readStructBegin()
10193
    while True:
10194
      (fname, ftype, fid) = iprot.readFieldBegin()
10195
      if ftype == TType.STOP:
10196
        break
10197
      if fid == 0:
10198
        if ftype == TType.BOOL:
10199
          self.success = iprot.readBool();
10200
        else:
10201
          iprot.skip(ftype)
10202
      else:
10203
        iprot.skip(ftype)
10204
      iprot.readFieldEnd()
10205
    iprot.readStructEnd()
10206
 
10207
  def write(self, oprot):
10208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10210
      return
10211
    oprot.writeStructBegin('deleteBanner_result')
10212
    if self.success is not None:
10213
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10214
      oprot.writeBool(self.success)
10215
      oprot.writeFieldEnd()
10216
    oprot.writeFieldStop()
10217
    oprot.writeStructEnd()
10218
 
10219
  def validate(self):
10220
    return
10221
 
10222
 
10223
  def __repr__(self):
10224
    L = ['%s=%r' % (key, value)
10225
      for key, value in self.__dict__.iteritems()]
10226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10227
 
10228
  def __eq__(self, other):
10229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10230
 
10231
  def __ne__(self, other):
10232
    return not (self == other)
10233
 
10234
class getBannerDetails_args:
10235
  """
10236
  Attributes:
10237
   - bannerName
10238
  """
10239
 
10240
  thrift_spec = (
10241
    None, # 0
10242
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10243
  )
10244
 
10245
  def __init__(self, bannerName=None,):
10246
    self.bannerName = bannerName
10247
 
10248
  def read(self, iprot):
10249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10251
      return
10252
    iprot.readStructBegin()
10253
    while True:
10254
      (fname, ftype, fid) = iprot.readFieldBegin()
10255
      if ftype == TType.STOP:
10256
        break
10257
      if fid == 1:
10258
        if ftype == TType.STRING:
10259
          self.bannerName = iprot.readString();
10260
        else:
10261
          iprot.skip(ftype)
10262
      else:
10263
        iprot.skip(ftype)
10264
      iprot.readFieldEnd()
10265
    iprot.readStructEnd()
10266
 
10267
  def write(self, oprot):
10268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10270
      return
10271
    oprot.writeStructBegin('getBannerDetails_args')
10272
    if self.bannerName is not None:
10273
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10274
      oprot.writeString(self.bannerName)
10275
      oprot.writeFieldEnd()
10276
    oprot.writeFieldStop()
10277
    oprot.writeStructEnd()
10278
 
10279
  def validate(self):
10280
    return
10281
 
10282
 
10283
  def __repr__(self):
10284
    L = ['%s=%r' % (key, value)
10285
      for key, value in self.__dict__.iteritems()]
10286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10287
 
10288
  def __eq__(self, other):
10289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10290
 
10291
  def __ne__(self, other):
10292
    return not (self == other)
10293
 
10294
class getBannerDetails_result:
10295
  """
10296
  Attributes:
10297
   - success
10298
  """
10299
 
10300
  thrift_spec = (
10301
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
10302
  )
10303
 
10304
  def __init__(self, success=None,):
10305
    self.success = success
10306
 
10307
  def read(self, iprot):
10308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10310
      return
10311
    iprot.readStructBegin()
10312
    while True:
10313
      (fname, ftype, fid) = iprot.readFieldBegin()
10314
      if ftype == TType.STOP:
10315
        break
10316
      if fid == 0:
10317
        if ftype == TType.STRUCT:
10318
          self.success = Banner()
10319
          self.success.read(iprot)
10320
        else:
10321
          iprot.skip(ftype)
10322
      else:
10323
        iprot.skip(ftype)
10324
      iprot.readFieldEnd()
10325
    iprot.readStructEnd()
10326
 
10327
  def write(self, oprot):
10328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10330
      return
10331
    oprot.writeStructBegin('getBannerDetails_result')
10332
    if self.success is not None:
10333
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10334
      self.success.write(oprot)
10335
      oprot.writeFieldEnd()
10336
    oprot.writeFieldStop()
10337
    oprot.writeStructEnd()
10338
 
10339
  def validate(self):
10340
    return
10341
 
10342
 
10343
  def __repr__(self):
10344
    L = ['%s=%r' % (key, value)
10345
      for key, value in self.__dict__.iteritems()]
10346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10347
 
10348
  def __eq__(self, other):
10349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10350
 
10351
  def __ne__(self, other):
10352
    return not (self == other)
10353
 
10354
class getActiveBanners_args:
10355
 
10356
  thrift_spec = (
10357
  )
10358
 
10359
  def read(self, iprot):
10360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10362
      return
10363
    iprot.readStructBegin()
10364
    while True:
10365
      (fname, ftype, fid) = iprot.readFieldBegin()
10366
      if ftype == TType.STOP:
10367
        break
10368
      else:
10369
        iprot.skip(ftype)
10370
      iprot.readFieldEnd()
10371
    iprot.readStructEnd()
10372
 
10373
  def write(self, oprot):
10374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10376
      return
10377
    oprot.writeStructBegin('getActiveBanners_args')
10378
    oprot.writeFieldStop()
10379
    oprot.writeStructEnd()
10380
 
10381
  def validate(self):
10382
    return
10383
 
10384
 
10385
  def __repr__(self):
10386
    L = ['%s=%r' % (key, value)
10387
      for key, value in self.__dict__.iteritems()]
10388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10389
 
10390
  def __eq__(self, other):
10391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10392
 
10393
  def __ne__(self, other):
10394
    return not (self == other)
10395
 
10396
class getActiveBanners_result:
10397
  """
10398
  Attributes:
10399
   - success
10400
  """
10401
 
10402
  thrift_spec = (
10403
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
10404
  )
10405
 
10406
  def __init__(self, success=None,):
10407
    self.success = success
10408
 
10409
  def read(self, iprot):
10410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10412
      return
10413
    iprot.readStructBegin()
10414
    while True:
10415
      (fname, ftype, fid) = iprot.readFieldBegin()
10416
      if ftype == TType.STOP:
10417
        break
10418
      if fid == 0:
10419
        if ftype == TType.LIST:
10420
          self.success = []
10421
          (_etype175, _size172) = iprot.readListBegin()
10422
          for _i176 in xrange(_size172):
10423
            _elem177 = Banner()
10424
            _elem177.read(iprot)
10425
            self.success.append(_elem177)
10426
          iprot.readListEnd()
10427
        else:
10428
          iprot.skip(ftype)
10429
      else:
10430
        iprot.skip(ftype)
10431
      iprot.readFieldEnd()
10432
    iprot.readStructEnd()
10433
 
10434
  def write(self, oprot):
10435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10437
      return
10438
    oprot.writeStructBegin('getActiveBanners_result')
10439
    if self.success is not None:
10440
      oprot.writeFieldBegin('success', TType.LIST, 0)
10441
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10442
      for iter178 in self.success:
10443
        iter178.write(oprot)
10444
      oprot.writeListEnd()
10445
      oprot.writeFieldEnd()
10446
    oprot.writeFieldStop()
10447
    oprot.writeStructEnd()
10448
 
10449
  def validate(self):
10450
    return
10451
 
10452
 
10453
  def __repr__(self):
10454
    L = ['%s=%r' % (key, value)
10455
      for key, value in self.__dict__.iteritems()]
10456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10457
 
10458
  def __eq__(self, other):
10459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10460
 
10461
  def __ne__(self, other):
10462
    return not (self == other)
10463
 
6849 kshitij.so 10464
class addBannerMap_args:
10465
  """
10466
  Attributes:
10467
   - bannerName
10468
   - mapLink
10469
   - coordinates
10470
  """
10471
 
10472
  thrift_spec = (
10473
    None, # 0
10474
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10475
    (2, TType.STRING, 'mapLink', None, None, ), # 2
10476
    (3, TType.STRING, 'coordinates', None, None, ), # 3
10477
  )
10478
 
10479
  def __init__(self, bannerName=None, mapLink=None, coordinates=None,):
10480
    self.bannerName = bannerName
10481
    self.mapLink = mapLink
10482
    self.coordinates = coordinates
10483
 
10484
  def read(self, iprot):
10485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10487
      return
10488
    iprot.readStructBegin()
10489
    while True:
10490
      (fname, ftype, fid) = iprot.readFieldBegin()
10491
      if ftype == TType.STOP:
10492
        break
10493
      if fid == 1:
10494
        if ftype == TType.STRING:
10495
          self.bannerName = iprot.readString();
10496
        else:
10497
          iprot.skip(ftype)
10498
      elif fid == 2:
10499
        if ftype == TType.STRING:
10500
          self.mapLink = iprot.readString();
10501
        else:
10502
          iprot.skip(ftype)
10503
      elif fid == 3:
10504
        if ftype == TType.STRING:
10505
          self.coordinates = iprot.readString();
10506
        else:
10507
          iprot.skip(ftype)
10508
      else:
10509
        iprot.skip(ftype)
10510
      iprot.readFieldEnd()
10511
    iprot.readStructEnd()
10512
 
10513
  def write(self, oprot):
10514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10516
      return
10517
    oprot.writeStructBegin('addBannerMap_args')
10518
    if self.bannerName is not None:
10519
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10520
      oprot.writeString(self.bannerName)
10521
      oprot.writeFieldEnd()
10522
    if self.mapLink is not None:
10523
      oprot.writeFieldBegin('mapLink', TType.STRING, 2)
10524
      oprot.writeString(self.mapLink)
10525
      oprot.writeFieldEnd()
10526
    if self.coordinates is not None:
10527
      oprot.writeFieldBegin('coordinates', TType.STRING, 3)
10528
      oprot.writeString(self.coordinates)
10529
      oprot.writeFieldEnd()
10530
    oprot.writeFieldStop()
10531
    oprot.writeStructEnd()
10532
 
10533
  def validate(self):
10534
    return
10535
 
10536
 
10537
  def __repr__(self):
10538
    L = ['%s=%r' % (key, value)
10539
      for key, value in self.__dict__.iteritems()]
10540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10541
 
10542
  def __eq__(self, other):
10543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10544
 
10545
  def __ne__(self, other):
10546
    return not (self == other)
10547
 
10548
class addBannerMap_result:
10549
  """
10550
  Attributes:
10551
   - success
10552
  """
10553
 
10554
  thrift_spec = (
10555
    (0, TType.BOOL, 'success', None, None, ), # 0
10556
  )
10557
 
10558
  def __init__(self, success=None,):
10559
    self.success = success
10560
 
10561
  def read(self, iprot):
10562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10564
      return
10565
    iprot.readStructBegin()
10566
    while True:
10567
      (fname, ftype, fid) = iprot.readFieldBegin()
10568
      if ftype == TType.STOP:
10569
        break
10570
      if fid == 0:
10571
        if ftype == TType.BOOL:
10572
          self.success = iprot.readBool();
10573
        else:
10574
          iprot.skip(ftype)
10575
      else:
10576
        iprot.skip(ftype)
10577
      iprot.readFieldEnd()
10578
    iprot.readStructEnd()
10579
 
10580
  def write(self, oprot):
10581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10583
      return
10584
    oprot.writeStructBegin('addBannerMap_result')
10585
    if self.success is not None:
10586
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10587
      oprot.writeBool(self.success)
10588
      oprot.writeFieldEnd()
10589
    oprot.writeFieldStop()
10590
    oprot.writeStructEnd()
10591
 
10592
  def validate(self):
10593
    return
10594
 
10595
 
10596
  def __repr__(self):
10597
    L = ['%s=%r' % (key, value)
10598
      for key, value in self.__dict__.iteritems()]
10599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10600
 
10601
  def __eq__(self, other):
10602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10603
 
10604
  def __ne__(self, other):
10605
    return not (self == other)
10606
 
10607
class deleteBannerMap_args:
10608
  """
10609
  Attributes:
10610
   - bannerName
10611
  """
10612
 
10613
  thrift_spec = (
10614
    None, # 0
10615
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10616
  )
10617
 
10618
  def __init__(self, bannerName=None,):
10619
    self.bannerName = bannerName
10620
 
10621
  def read(self, iprot):
10622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10624
      return
10625
    iprot.readStructBegin()
10626
    while True:
10627
      (fname, ftype, fid) = iprot.readFieldBegin()
10628
      if ftype == TType.STOP:
10629
        break
10630
      if fid == 1:
10631
        if ftype == TType.STRING:
10632
          self.bannerName = iprot.readString();
10633
        else:
10634
          iprot.skip(ftype)
10635
      else:
10636
        iprot.skip(ftype)
10637
      iprot.readFieldEnd()
10638
    iprot.readStructEnd()
10639
 
10640
  def write(self, oprot):
10641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10643
      return
10644
    oprot.writeStructBegin('deleteBannerMap_args')
10645
    if self.bannerName is not None:
10646
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10647
      oprot.writeString(self.bannerName)
10648
      oprot.writeFieldEnd()
10649
    oprot.writeFieldStop()
10650
    oprot.writeStructEnd()
10651
 
10652
  def validate(self):
10653
    return
10654
 
10655
 
10656
  def __repr__(self):
10657
    L = ['%s=%r' % (key, value)
10658
      for key, value in self.__dict__.iteritems()]
10659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10660
 
10661
  def __eq__(self, other):
10662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10663
 
10664
  def __ne__(self, other):
10665
    return not (self == other)
10666
 
10667
class deleteBannerMap_result:
10668
  """
10669
  Attributes:
10670
   - success
10671
  """
10672
 
10673
  thrift_spec = (
10674
    (0, TType.BOOL, 'success', None, None, ), # 0
10675
  )
10676
 
10677
  def __init__(self, success=None,):
10678
    self.success = success
10679
 
10680
  def read(self, iprot):
10681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10683
      return
10684
    iprot.readStructBegin()
10685
    while True:
10686
      (fname, ftype, fid) = iprot.readFieldBegin()
10687
      if ftype == TType.STOP:
10688
        break
10689
      if fid == 0:
10690
        if ftype == TType.BOOL:
10691
          self.success = iprot.readBool();
10692
        else:
10693
          iprot.skip(ftype)
10694
      else:
10695
        iprot.skip(ftype)
10696
      iprot.readFieldEnd()
10697
    iprot.readStructEnd()
10698
 
10699
  def write(self, oprot):
10700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10702
      return
10703
    oprot.writeStructBegin('deleteBannerMap_result')
10704
    if self.success is not None:
10705
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10706
      oprot.writeBool(self.success)
10707
      oprot.writeFieldEnd()
10708
    oprot.writeFieldStop()
10709
    oprot.writeStructEnd()
10710
 
10711
  def validate(self):
10712
    return
10713
 
10714
 
10715
  def __repr__(self):
10716
    L = ['%s=%r' % (key, value)
10717
      for key, value in self.__dict__.iteritems()]
10718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10719
 
10720
  def __eq__(self, other):
10721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10722
 
10723
  def __ne__(self, other):
10724
    return not (self == other)
10725
 
10726
class getBannerMapDetails_args:
10727
  """
10728
  Attributes:
10729
   - bannerName
10730
  """
10731
 
10732
  thrift_spec = (
10733
    None, # 0
10734
    (1, TType.STRING, 'bannerName', None, None, ), # 1
10735
  )
10736
 
10737
  def __init__(self, bannerName=None,):
10738
    self.bannerName = bannerName
10739
 
10740
  def read(self, iprot):
10741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10743
      return
10744
    iprot.readStructBegin()
10745
    while True:
10746
      (fname, ftype, fid) = iprot.readFieldBegin()
10747
      if ftype == TType.STOP:
10748
        break
10749
      if fid == 1:
10750
        if ftype == TType.STRING:
10751
          self.bannerName = iprot.readString();
10752
        else:
10753
          iprot.skip(ftype)
10754
      else:
10755
        iprot.skip(ftype)
10756
      iprot.readFieldEnd()
10757
    iprot.readStructEnd()
10758
 
10759
  def write(self, oprot):
10760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10762
      return
10763
    oprot.writeStructBegin('getBannerMapDetails_args')
10764
    if self.bannerName is not None:
10765
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
10766
      oprot.writeString(self.bannerName)
10767
      oprot.writeFieldEnd()
10768
    oprot.writeFieldStop()
10769
    oprot.writeStructEnd()
10770
 
10771
  def validate(self):
10772
    return
10773
 
10774
 
10775
  def __repr__(self):
10776
    L = ['%s=%r' % (key, value)
10777
      for key, value in self.__dict__.iteritems()]
10778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10779
 
10780
  def __eq__(self, other):
10781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10782
 
10783
  def __ne__(self, other):
10784
    return not (self == other)
10785
 
10786
class getBannerMapDetails_result:
10787
  """
10788
  Attributes:
10789
   - success
10790
  """
10791
 
10792
  thrift_spec = (
10793
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
10794
  )
10795
 
10796
  def __init__(self, success=None,):
10797
    self.success = success
10798
 
10799
  def read(self, iprot):
10800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10802
      return
10803
    iprot.readStructBegin()
10804
    while True:
10805
      (fname, ftype, fid) = iprot.readFieldBegin()
10806
      if ftype == TType.STOP:
10807
        break
10808
      if fid == 0:
10809
        if ftype == TType.LIST:
10810
          self.success = []
6850 kshitij.so 10811
          (_etype182, _size179) = iprot.readListBegin()
10812
          for _i183 in xrange(_size179):
10813
            _elem184 = BannerMap()
10814
            _elem184.read(iprot)
10815
            self.success.append(_elem184)
6849 kshitij.so 10816
          iprot.readListEnd()
10817
        else:
10818
          iprot.skip(ftype)
10819
      else:
10820
        iprot.skip(ftype)
10821
      iprot.readFieldEnd()
10822
    iprot.readStructEnd()
10823
 
10824
  def write(self, oprot):
10825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10827
      return
10828
    oprot.writeStructBegin('getBannerMapDetails_result')
10829
    if self.success is not None:
10830
      oprot.writeFieldBegin('success', TType.LIST, 0)
10831
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 10832
      for iter185 in self.success:
10833
        iter185.write(oprot)
6849 kshitij.so 10834
      oprot.writeListEnd()
10835
      oprot.writeFieldEnd()
10836
    oprot.writeFieldStop()
10837
    oprot.writeStructEnd()
10838
 
10839
  def validate(self):
10840
    return
10841
 
10842
 
10843
  def __repr__(self):
10844
    L = ['%s=%r' % (key, value)
10845
      for key, value in self.__dict__.iteritems()]
10846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10847
 
10848
  def __eq__(self, other):
10849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10850
 
10851
  def __ne__(self, other):
10852
    return not (self == other)
10853
 
5944 mandeep.dh 10854
class deleteSimilarItem_args:
10855
  """
10856
  Attributes:
10857
   - itemId
10858
   - catalogItemId
10859
  """
10860
 
10861
  thrift_spec = (
10862
    None, # 0
10863
    (1, TType.I64, 'itemId', None, None, ), # 1
10864
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
10865
  )
10866
 
10867
  def __init__(self, itemId=None, catalogItemId=None,):
10868
    self.itemId = itemId
10869
    self.catalogItemId = catalogItemId
10870
 
10871
  def read(self, iprot):
10872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10874
      return
10875
    iprot.readStructBegin()
10876
    while True:
10877
      (fname, ftype, fid) = iprot.readFieldBegin()
10878
      if ftype == TType.STOP:
10879
        break
10880
      if fid == 1:
10881
        if ftype == TType.I64:
10882
          self.itemId = iprot.readI64();
10883
        else:
10884
          iprot.skip(ftype)
10885
      elif fid == 2:
10886
        if ftype == TType.I64:
10887
          self.catalogItemId = iprot.readI64();
10888
        else:
10889
          iprot.skip(ftype)
10890
      else:
10891
        iprot.skip(ftype)
10892
      iprot.readFieldEnd()
10893
    iprot.readStructEnd()
10894
 
10895
  def write(self, oprot):
10896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10898
      return
10899
    oprot.writeStructBegin('deleteSimilarItem_args')
10900
    if self.itemId is not None:
10901
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10902
      oprot.writeI64(self.itemId)
10903
      oprot.writeFieldEnd()
10904
    if self.catalogItemId is not None:
10905
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
10906
      oprot.writeI64(self.catalogItemId)
10907
      oprot.writeFieldEnd()
10908
    oprot.writeFieldStop()
10909
    oprot.writeStructEnd()
10910
 
10911
  def validate(self):
10912
    return
10913
 
10914
 
10915
  def __repr__(self):
10916
    L = ['%s=%r' % (key, value)
10917
      for key, value in self.__dict__.iteritems()]
10918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10919
 
10920
  def __eq__(self, other):
10921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10922
 
10923
  def __ne__(self, other):
10924
    return not (self == other)
10925
 
10926
class deleteSimilarItem_result:
10927
  """
10928
  Attributes:
10929
   - success
10930
   - cex
10931
  """
10932
 
10933
  thrift_spec = (
10934
    (0, TType.BOOL, 'success', None, None, ), # 0
10935
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10936
  )
10937
 
10938
  def __init__(self, success=None, cex=None,):
10939
    self.success = success
10940
    self.cex = cex
10941
 
10942
  def read(self, iprot):
10943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10945
      return
10946
    iprot.readStructBegin()
10947
    while True:
10948
      (fname, ftype, fid) = iprot.readFieldBegin()
10949
      if ftype == TType.STOP:
10950
        break
10951
      if fid == 0:
10952
        if ftype == TType.BOOL:
10953
          self.success = iprot.readBool();
10954
        else:
10955
          iprot.skip(ftype)
10956
      elif fid == 1:
10957
        if ftype == TType.STRUCT:
10958
          self.cex = CatalogServiceException()
10959
          self.cex.read(iprot)
10960
        else:
10961
          iprot.skip(ftype)
10962
      else:
10963
        iprot.skip(ftype)
10964
      iprot.readFieldEnd()
10965
    iprot.readStructEnd()
10966
 
10967
  def write(self, oprot):
10968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10970
      return
10971
    oprot.writeStructBegin('deleteSimilarItem_result')
10972
    if self.success is not None:
10973
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10974
      oprot.writeBool(self.success)
10975
      oprot.writeFieldEnd()
10976
    if self.cex is not None:
10977
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10978
      self.cex.write(oprot)
10979
      oprot.writeFieldEnd()
10980
    oprot.writeFieldStop()
10981
    oprot.writeStructEnd()
10982
 
10983
  def validate(self):
10984
    return
10985
 
10986
 
10987
  def __repr__(self):
10988
    L = ['%s=%r' % (key, value)
10989
      for key, value in self.__dict__.iteritems()]
10990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10991
 
10992
  def __eq__(self, other):
10993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10994
 
10995
  def __ne__(self, other):
10996
    return not (self == other)
10997
 
10998
class checkSimilarItem_args:
10999
  """
11000
  Attributes:
11001
   - brand
11002
   - modelNumber
11003
   - modelName
11004
   - color
11005
  """
11006
 
11007
  thrift_spec = (
11008
    None, # 0
11009
    (1, TType.STRING, 'brand', None, None, ), # 1
11010
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
11011
    (3, TType.STRING, 'modelName', None, None, ), # 3
11012
    (4, TType.STRING, 'color', None, None, ), # 4
11013
  )
11014
 
11015
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
11016
    self.brand = brand
11017
    self.modelNumber = modelNumber
11018
    self.modelName = modelName
11019
    self.color = color
11020
 
11021
  def read(self, iprot):
11022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11024
      return
11025
    iprot.readStructBegin()
11026
    while True:
11027
      (fname, ftype, fid) = iprot.readFieldBegin()
11028
      if ftype == TType.STOP:
11029
        break
11030
      if fid == 1:
11031
        if ftype == TType.STRING:
11032
          self.brand = iprot.readString();
11033
        else:
11034
          iprot.skip(ftype)
11035
      elif fid == 2:
11036
        if ftype == TType.STRING:
11037
          self.modelNumber = iprot.readString();
11038
        else:
11039
          iprot.skip(ftype)
11040
      elif fid == 3:
11041
        if ftype == TType.STRING:
11042
          self.modelName = iprot.readString();
11043
        else:
11044
          iprot.skip(ftype)
11045
      elif fid == 4:
11046
        if ftype == TType.STRING:
11047
          self.color = iprot.readString();
11048
        else:
11049
          iprot.skip(ftype)
11050
      else:
11051
        iprot.skip(ftype)
11052
      iprot.readFieldEnd()
11053
    iprot.readStructEnd()
11054
 
11055
  def write(self, oprot):
11056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11058
      return
11059
    oprot.writeStructBegin('checkSimilarItem_args')
11060
    if self.brand is not None:
11061
      oprot.writeFieldBegin('brand', TType.STRING, 1)
11062
      oprot.writeString(self.brand)
11063
      oprot.writeFieldEnd()
11064
    if self.modelNumber is not None:
11065
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
11066
      oprot.writeString(self.modelNumber)
11067
      oprot.writeFieldEnd()
11068
    if self.modelName is not None:
11069
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
11070
      oprot.writeString(self.modelName)
11071
      oprot.writeFieldEnd()
11072
    if self.color is not None:
11073
      oprot.writeFieldBegin('color', TType.STRING, 4)
11074
      oprot.writeString(self.color)
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_result:
11095
  """
11096
  Attributes:
11097
   - success
11098
  """
11099
 
11100
  thrift_spec = (
11101
    (0, TType.I64, 'success', None, None, ), # 0
11102
  )
11103
 
11104
  def __init__(self, success=None,):
11105
    self.success = success
11106
 
11107
  def read(self, iprot):
11108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11110
      return
11111
    iprot.readStructBegin()
11112
    while True:
11113
      (fname, ftype, fid) = iprot.readFieldBegin()
11114
      if ftype == TType.STOP:
11115
        break
11116
      if fid == 0:
11117
        if ftype == TType.I64:
11118
          self.success = iprot.readI64();
11119
        else:
11120
          iprot.skip(ftype)
11121
      else:
11122
        iprot.skip(ftype)
11123
      iprot.readFieldEnd()
11124
    iprot.readStructEnd()
11125
 
11126
  def write(self, oprot):
11127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11129
      return
11130
    oprot.writeStructBegin('checkSimilarItem_result')
11131
    if self.success is not None:
11132
      oprot.writeFieldBegin('success', TType.I64, 0)
11133
      oprot.writeI64(self.success)
11134
      oprot.writeFieldEnd()
11135
    oprot.writeFieldStop()
11136
    oprot.writeStructEnd()
11137
 
11138
  def validate(self):
11139
    return
11140
 
11141
 
11142
  def __repr__(self):
11143
    L = ['%s=%r' % (key, value)
11144
      for key, value in self.__dict__.iteritems()]
11145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11146
 
11147
  def __eq__(self, other):
11148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11149
 
11150
  def __ne__(self, other):
11151
    return not (self == other)
11152
 
11153
class validateRiskyStatus_args:
11154
  """
11155
  Attributes:
11156
   - itemId
11157
  """
11158
 
11159
  thrift_spec = (
11160
    None, # 0
11161
    (1, TType.I64, 'itemId', None, None, ), # 1
11162
  )
11163
 
11164
  def __init__(self, itemId=None,):
11165
    self.itemId = itemId
11166
 
11167
  def read(self, iprot):
11168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11170
      return
11171
    iprot.readStructBegin()
11172
    while True:
11173
      (fname, ftype, fid) = iprot.readFieldBegin()
11174
      if ftype == TType.STOP:
11175
        break
11176
      if fid == 1:
11177
        if ftype == TType.I64:
11178
          self.itemId = iprot.readI64();
11179
        else:
11180
          iprot.skip(ftype)
11181
      else:
11182
        iprot.skip(ftype)
11183
      iprot.readFieldEnd()
11184
    iprot.readStructEnd()
11185
 
11186
  def write(self, oprot):
11187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11189
      return
11190
    oprot.writeStructBegin('validateRiskyStatus_args')
11191
    if self.itemId is not None:
11192
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11193
      oprot.writeI64(self.itemId)
11194
      oprot.writeFieldEnd()
11195
    oprot.writeFieldStop()
11196
    oprot.writeStructEnd()
11197
 
11198
  def validate(self):
11199
    return
11200
 
11201
 
11202
  def __repr__(self):
11203
    L = ['%s=%r' % (key, value)
11204
      for key, value in self.__dict__.iteritems()]
11205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11206
 
11207
  def __eq__(self, other):
11208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11209
 
11210
  def __ne__(self, other):
11211
    return not (self == other)
11212
 
11213
class validateRiskyStatus_result:
11214
 
11215
  thrift_spec = (
11216
  )
11217
 
11218
  def read(self, iprot):
11219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11221
      return
11222
    iprot.readStructBegin()
11223
    while True:
11224
      (fname, ftype, fid) = iprot.readFieldBegin()
11225
      if ftype == TType.STOP:
11226
        break
11227
      else:
11228
        iprot.skip(ftype)
11229
      iprot.readFieldEnd()
11230
    iprot.readStructEnd()
11231
 
11232
  def write(self, oprot):
11233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11235
      return
11236
    oprot.writeStructBegin('validateRiskyStatus_result')
11237
    oprot.writeFieldStop()
11238
    oprot.writeStructEnd()
11239
 
11240
  def validate(self):
11241
    return
11242
 
11243
 
11244
  def __repr__(self):
11245
    L = ['%s=%r' % (key, value)
11246
      for key, value in self.__dict__.iteritems()]
11247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11248
 
11249
  def __eq__(self, other):
11250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11251
 
11252
  def __ne__(self, other):
11253
    return not (self == other)
11254
 
11255
class changeItemRiskyFlag_args:
11256
  """
11257
  Attributes:
11258
   - itemId
11259
   - risky
11260
  """
11261
 
11262
  thrift_spec = (
11263
    None, # 0
11264
    (1, TType.I64, 'itemId', None, None, ), # 1
11265
    (2, TType.BOOL, 'risky', None, None, ), # 2
11266
  )
11267
 
11268
  def __init__(self, itemId=None, risky=None,):
11269
    self.itemId = itemId
11270
    self.risky = risky
11271
 
11272
  def read(self, iprot):
11273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11275
      return
11276
    iprot.readStructBegin()
11277
    while True:
11278
      (fname, ftype, fid) = iprot.readFieldBegin()
11279
      if ftype == TType.STOP:
11280
        break
11281
      if fid == 1:
11282
        if ftype == TType.I64:
11283
          self.itemId = iprot.readI64();
11284
        else:
11285
          iprot.skip(ftype)
11286
      elif fid == 2:
11287
        if ftype == TType.BOOL:
11288
          self.risky = iprot.readBool();
11289
        else:
11290
          iprot.skip(ftype)
11291
      else:
11292
        iprot.skip(ftype)
11293
      iprot.readFieldEnd()
11294
    iprot.readStructEnd()
11295
 
11296
  def write(self, oprot):
11297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11299
      return
11300
    oprot.writeStructBegin('changeItemRiskyFlag_args')
11301
    if self.itemId is not None:
11302
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11303
      oprot.writeI64(self.itemId)
11304
      oprot.writeFieldEnd()
11305
    if self.risky is not None:
11306
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
11307
      oprot.writeBool(self.risky)
11308
      oprot.writeFieldEnd()
11309
    oprot.writeFieldStop()
11310
    oprot.writeStructEnd()
11311
 
11312
  def validate(self):
11313
    return
11314
 
11315
 
11316
  def __repr__(self):
11317
    L = ['%s=%r' % (key, value)
11318
      for key, value in self.__dict__.iteritems()]
11319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11320
 
11321
  def __eq__(self, other):
11322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11323
 
11324
  def __ne__(self, other):
11325
    return not (self == other)
11326
 
11327
class changeItemRiskyFlag_result:
11328
 
11329
  thrift_spec = (
11330
  )
11331
 
11332
  def read(self, iprot):
11333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11335
      return
11336
    iprot.readStructBegin()
11337
    while True:
11338
      (fname, ftype, fid) = iprot.readFieldBegin()
11339
      if ftype == TType.STOP:
11340
        break
11341
      else:
11342
        iprot.skip(ftype)
11343
      iprot.readFieldEnd()
11344
    iprot.readStructEnd()
11345
 
11346
  def write(self, oprot):
11347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11349
      return
11350
    oprot.writeStructBegin('changeItemRiskyFlag_result')
11351
    oprot.writeFieldStop()
11352
    oprot.writeStructEnd()
11353
 
11354
  def validate(self):
11355
    return
11356
 
11357
 
11358
  def __repr__(self):
11359
    L = ['%s=%r' % (key, value)
11360
      for key, value in self.__dict__.iteritems()]
11361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11362
 
11363
  def __eq__(self, other):
11364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11365
 
11366
  def __ne__(self, other):
11367
    return not (self == other)
11368
 
11369
class getItemsByRiskyFlag_args:
11370
 
11371
  thrift_spec = (
11372
  )
11373
 
11374
  def read(self, iprot):
11375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11377
      return
11378
    iprot.readStructBegin()
11379
    while True:
11380
      (fname, ftype, fid) = iprot.readFieldBegin()
11381
      if ftype == TType.STOP:
11382
        break
11383
      else:
11384
        iprot.skip(ftype)
11385
      iprot.readFieldEnd()
11386
    iprot.readStructEnd()
11387
 
11388
  def write(self, oprot):
11389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11391
      return
11392
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
11393
    oprot.writeFieldStop()
11394
    oprot.writeStructEnd()
11395
 
11396
  def validate(self):
11397
    return
11398
 
11399
 
11400
  def __repr__(self):
11401
    L = ['%s=%r' % (key, value)
11402
      for key, value in self.__dict__.iteritems()]
11403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11404
 
11405
  def __eq__(self, other):
11406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11407
 
11408
  def __ne__(self, other):
11409
    return not (self == other)
11410
 
11411
class getItemsByRiskyFlag_result:
11412
  """
11413
  Attributes:
11414
   - success
11415
  """
11416
 
11417
  thrift_spec = (
11418
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11419
  )
11420
 
11421
  def __init__(self, success=None,):
11422
    self.success = success
11423
 
11424
  def read(self, iprot):
11425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11427
      return
11428
    iprot.readStructBegin()
11429
    while True:
11430
      (fname, ftype, fid) = iprot.readFieldBegin()
11431
      if ftype == TType.STOP:
11432
        break
11433
      if fid == 0:
11434
        if ftype == TType.LIST:
11435
          self.success = []
6850 kshitij.so 11436
          (_etype189, _size186) = iprot.readListBegin()
11437
          for _i190 in xrange(_size186):
11438
            _elem191 = Item()
11439
            _elem191.read(iprot)
11440
            self.success.append(_elem191)
5944 mandeep.dh 11441
          iprot.readListEnd()
11442
        else:
11443
          iprot.skip(ftype)
11444
      else:
11445
        iprot.skip(ftype)
11446
      iprot.readFieldEnd()
11447
    iprot.readStructEnd()
11448
 
11449
  def write(self, oprot):
11450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11452
      return
11453
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
11454
    if self.success is not None:
11455
      oprot.writeFieldBegin('success', TType.LIST, 0)
11456
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11457
      for iter192 in self.success:
11458
        iter192.write(oprot)
5944 mandeep.dh 11459
      oprot.writeListEnd()
11460
      oprot.writeFieldEnd()
11461
    oprot.writeFieldStop()
11462
    oprot.writeStructEnd()
11463
 
11464
  def validate(self):
11465
    return
11466
 
11467
 
11468
  def __repr__(self):
11469
    L = ['%s=%r' % (key, value)
11470
      for key, value in self.__dict__.iteritems()]
11471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11472
 
11473
  def __eq__(self, other):
11474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11475
 
11476
  def __ne__(self, other):
11477
    return not (self == other)
11478
 
11479
class getItemsForMasterSheet_args:
11480
  """
11481
  Attributes:
11482
   - category
11483
   - brand
11484
  """
11485
 
11486
  thrift_spec = (
11487
    None, # 0
11488
    (1, TType.STRING, 'category', None, None, ), # 1
11489
    (2, TType.STRING, 'brand', None, None, ), # 2
11490
  )
11491
 
11492
  def __init__(self, category=None, brand=None,):
11493
    self.category = category
11494
    self.brand = brand
11495
 
11496
  def read(self, iprot):
11497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11499
      return
11500
    iprot.readStructBegin()
11501
    while True:
11502
      (fname, ftype, fid) = iprot.readFieldBegin()
11503
      if ftype == TType.STOP:
11504
        break
11505
      if fid == 1:
11506
        if ftype == TType.STRING:
11507
          self.category = iprot.readString();
11508
        else:
11509
          iprot.skip(ftype)
11510
      elif fid == 2:
11511
        if ftype == TType.STRING:
11512
          self.brand = iprot.readString();
11513
        else:
11514
          iprot.skip(ftype)
11515
      else:
11516
        iprot.skip(ftype)
11517
      iprot.readFieldEnd()
11518
    iprot.readStructEnd()
11519
 
11520
  def write(self, oprot):
11521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11523
      return
11524
    oprot.writeStructBegin('getItemsForMasterSheet_args')
11525
    if self.category is not None:
11526
      oprot.writeFieldBegin('category', TType.STRING, 1)
11527
      oprot.writeString(self.category)
11528
      oprot.writeFieldEnd()
11529
    if self.brand is not None:
11530
      oprot.writeFieldBegin('brand', TType.STRING, 2)
11531
      oprot.writeString(self.brand)
11532
      oprot.writeFieldEnd()
11533
    oprot.writeFieldStop()
11534
    oprot.writeStructEnd()
11535
 
11536
  def validate(self):
11537
    return
11538
 
11539
 
11540
  def __repr__(self):
11541
    L = ['%s=%r' % (key, value)
11542
      for key, value in self.__dict__.iteritems()]
11543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11544
 
11545
  def __eq__(self, other):
11546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11547
 
11548
  def __ne__(self, other):
11549
    return not (self == other)
11550
 
11551
class getItemsForMasterSheet_result:
11552
  """
11553
  Attributes:
11554
   - success
11555
  """
11556
 
11557
  thrift_spec = (
11558
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11559
  )
11560
 
11561
  def __init__(self, success=None,):
11562
    self.success = success
11563
 
11564
  def read(self, iprot):
11565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11567
      return
11568
    iprot.readStructBegin()
11569
    while True:
11570
      (fname, ftype, fid) = iprot.readFieldBegin()
11571
      if ftype == TType.STOP:
11572
        break
11573
      if fid == 0:
11574
        if ftype == TType.LIST:
11575
          self.success = []
6850 kshitij.so 11576
          (_etype196, _size193) = iprot.readListBegin()
11577
          for _i197 in xrange(_size193):
11578
            _elem198 = Item()
11579
            _elem198.read(iprot)
11580
            self.success.append(_elem198)
5944 mandeep.dh 11581
          iprot.readListEnd()
11582
        else:
11583
          iprot.skip(ftype)
11584
      else:
11585
        iprot.skip(ftype)
11586
      iprot.readFieldEnd()
11587
    iprot.readStructEnd()
11588
 
11589
  def write(self, oprot):
11590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11592
      return
11593
    oprot.writeStructBegin('getItemsForMasterSheet_result')
11594
    if self.success is not None:
11595
      oprot.writeFieldBegin('success', TType.LIST, 0)
11596
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 11597
      for iter199 in self.success:
11598
        iter199.write(oprot)
5944 mandeep.dh 11599
      oprot.writeListEnd()
11600
      oprot.writeFieldEnd()
11601
    oprot.writeFieldStop()
11602
    oprot.writeStructEnd()
11603
 
11604
  def validate(self):
11605
    return
11606
 
11607
 
11608
  def __repr__(self):
11609
    L = ['%s=%r' % (key, value)
11610
      for key, value in self.__dict__.iteritems()]
11611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11612
 
11613
  def __eq__(self, other):
11614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11615
 
11616
  def __ne__(self, other):
11617
    return not (self == other)
11618
 
11619
class getSimilarItemsCatalogIds_args:
11620
  """
11621
  Attributes:
11622
   - beginIndex
11623
   - totalItems
11624
   - itemId
11625
  """
11626
 
11627
  thrift_spec = (
11628
    None, # 0
11629
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11630
    (2, TType.I64, 'totalItems', None, None, ), # 2
11631
    (3, TType.I64, 'itemId', None, None, ), # 3
11632
  )
11633
 
11634
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
11635
    self.beginIndex = beginIndex
11636
    self.totalItems = totalItems
11637
    self.itemId = itemId
11638
 
11639
  def read(self, iprot):
11640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11642
      return
11643
    iprot.readStructBegin()
11644
    while True:
11645
      (fname, ftype, fid) = iprot.readFieldBegin()
11646
      if ftype == TType.STOP:
11647
        break
11648
      if fid == 1:
11649
        if ftype == TType.I64:
11650
          self.beginIndex = iprot.readI64();
11651
        else:
11652
          iprot.skip(ftype)
11653
      elif fid == 2:
11654
        if ftype == TType.I64:
11655
          self.totalItems = iprot.readI64();
11656
        else:
11657
          iprot.skip(ftype)
11658
      elif fid == 3:
11659
        if ftype == TType.I64:
11660
          self.itemId = iprot.readI64();
11661
        else:
11662
          iprot.skip(ftype)
11663
      else:
11664
        iprot.skip(ftype)
11665
      iprot.readFieldEnd()
11666
    iprot.readStructEnd()
11667
 
11668
  def write(self, oprot):
11669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11671
      return
11672
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
11673
    if self.beginIndex is not None:
11674
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11675
      oprot.writeI64(self.beginIndex)
11676
      oprot.writeFieldEnd()
11677
    if self.totalItems is not None:
11678
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11679
      oprot.writeI64(self.totalItems)
11680
      oprot.writeFieldEnd()
11681
    if self.itemId is not None:
11682
      oprot.writeFieldBegin('itemId', TType.I64, 3)
11683
      oprot.writeI64(self.itemId)
11684
      oprot.writeFieldEnd()
11685
    oprot.writeFieldStop()
11686
    oprot.writeStructEnd()
11687
 
11688
  def validate(self):
11689
    return
11690
 
11691
 
11692
  def __repr__(self):
11693
    L = ['%s=%r' % (key, value)
11694
      for key, value in self.__dict__.iteritems()]
11695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11696
 
11697
  def __eq__(self, other):
11698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11699
 
11700
  def __ne__(self, other):
11701
    return not (self == other)
11702
 
11703
class getSimilarItemsCatalogIds_result:
11704
  """
11705
  Attributes:
11706
   - success
11707
  """
11708
 
11709
  thrift_spec = (
11710
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11711
  )
11712
 
11713
  def __init__(self, success=None,):
11714
    self.success = success
11715
 
11716
  def read(self, iprot):
11717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11719
      return
11720
    iprot.readStructBegin()
11721
    while True:
11722
      (fname, ftype, fid) = iprot.readFieldBegin()
11723
      if ftype == TType.STOP:
11724
        break
11725
      if fid == 0:
11726
        if ftype == TType.LIST:
11727
          self.success = []
6850 kshitij.so 11728
          (_etype203, _size200) = iprot.readListBegin()
11729
          for _i204 in xrange(_size200):
11730
            _elem205 = iprot.readI64();
11731
            self.success.append(_elem205)
5944 mandeep.dh 11732
          iprot.readListEnd()
11733
        else:
11734
          iprot.skip(ftype)
11735
      else:
11736
        iprot.skip(ftype)
11737
      iprot.readFieldEnd()
11738
    iprot.readStructEnd()
11739
 
11740
  def write(self, oprot):
11741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11743
      return
11744
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
11745
    if self.success is not None:
11746
      oprot.writeFieldBegin('success', TType.LIST, 0)
11747
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 11748
      for iter206 in self.success:
11749
        oprot.writeI64(iter206)
5944 mandeep.dh 11750
      oprot.writeListEnd()
11751
      oprot.writeFieldEnd()
11752
    oprot.writeFieldStop()
11753
    oprot.writeStructEnd()
11754
 
11755
  def validate(self):
11756
    return
11757
 
11758
 
11759
  def __repr__(self):
11760
    L = ['%s=%r' % (key, value)
11761
      for key, value in self.__dict__.iteritems()]
11762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11763
 
11764
  def __eq__(self, other):
11765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11766
 
11767
  def __ne__(self, other):
11768
    return not (self == other)
11769
 
11770
class addProductNotification_args:
11771
  """
11772
  Attributes:
11773
   - itemId
11774
   - email
11775
  """
11776
 
11777
  thrift_spec = None
11778
  def __init__(self, itemId=None, email=None,):
11779
    self.itemId = itemId
11780
    self.email = email
11781
 
11782
  def read(self, iprot):
11783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11785
      return
11786
    iprot.readStructBegin()
11787
    while True:
11788
      (fname, ftype, fid) = iprot.readFieldBegin()
11789
      if ftype == TType.STOP:
11790
        break
11791
      if fid == -1:
11792
        if ftype == TType.I64:
11793
          self.itemId = iprot.readI64();
11794
        else:
11795
          iprot.skip(ftype)
11796
      elif fid == -2:
11797
        if ftype == TType.STRING:
11798
          self.email = iprot.readString();
11799
        else:
11800
          iprot.skip(ftype)
11801
      else:
11802
        iprot.skip(ftype)
11803
      iprot.readFieldEnd()
11804
    iprot.readStructEnd()
11805
 
11806
  def write(self, oprot):
11807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11809
      return
11810
    oprot.writeStructBegin('addProductNotification_args')
11811
    if self.email is not None:
11812
      oprot.writeFieldBegin('email', TType.STRING, -2)
11813
      oprot.writeString(self.email)
11814
      oprot.writeFieldEnd()
11815
    if self.itemId is not None:
11816
      oprot.writeFieldBegin('itemId', TType.I64, -1)
11817
      oprot.writeI64(self.itemId)
11818
      oprot.writeFieldEnd()
11819
    oprot.writeFieldStop()
11820
    oprot.writeStructEnd()
11821
 
11822
  def validate(self):
11823
    return
11824
 
11825
 
11826
  def __repr__(self):
11827
    L = ['%s=%r' % (key, value)
11828
      for key, value in self.__dict__.iteritems()]
11829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11830
 
11831
  def __eq__(self, other):
11832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11833
 
11834
  def __ne__(self, other):
11835
    return not (self == other)
11836
 
11837
class addProductNotification_result:
11838
  """
11839
  Attributes:
11840
   - success
11841
  """
11842
 
11843
  thrift_spec = (
11844
    (0, TType.BOOL, 'success', None, None, ), # 0
11845
  )
11846
 
11847
  def __init__(self, success=None,):
11848
    self.success = success
11849
 
11850
  def read(self, iprot):
11851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11853
      return
11854
    iprot.readStructBegin()
11855
    while True:
11856
      (fname, ftype, fid) = iprot.readFieldBegin()
11857
      if ftype == TType.STOP:
11858
        break
11859
      if fid == 0:
11860
        if ftype == TType.BOOL:
11861
          self.success = iprot.readBool();
11862
        else:
11863
          iprot.skip(ftype)
11864
      else:
11865
        iprot.skip(ftype)
11866
      iprot.readFieldEnd()
11867
    iprot.readStructEnd()
11868
 
11869
  def write(self, oprot):
11870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11872
      return
11873
    oprot.writeStructBegin('addProductNotification_result')
11874
    if self.success is not None:
11875
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11876
      oprot.writeBool(self.success)
11877
      oprot.writeFieldEnd()
11878
    oprot.writeFieldStop()
11879
    oprot.writeStructEnd()
11880
 
11881
  def validate(self):
11882
    return
11883
 
11884
 
11885
  def __repr__(self):
11886
    L = ['%s=%r' % (key, value)
11887
      for key, value in self.__dict__.iteritems()]
11888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11889
 
11890
  def __eq__(self, other):
11891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11892
 
11893
  def __ne__(self, other):
11894
    return not (self == other)
11895
 
11896
class sendProductNotifications_args:
11897
 
11898
  thrift_spec = (
11899
  )
11900
 
11901
  def read(self, iprot):
11902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11904
      return
11905
    iprot.readStructBegin()
11906
    while True:
11907
      (fname, ftype, fid) = iprot.readFieldBegin()
11908
      if ftype == TType.STOP:
11909
        break
11910
      else:
11911
        iprot.skip(ftype)
11912
      iprot.readFieldEnd()
11913
    iprot.readStructEnd()
11914
 
11915
  def write(self, oprot):
11916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11918
      return
11919
    oprot.writeStructBegin('sendProductNotifications_args')
11920
    oprot.writeFieldStop()
11921
    oprot.writeStructEnd()
11922
 
11923
  def validate(self):
11924
    return
11925
 
11926
 
11927
  def __repr__(self):
11928
    L = ['%s=%r' % (key, value)
11929
      for key, value in self.__dict__.iteritems()]
11930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11931
 
11932
  def __eq__(self, other):
11933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11934
 
11935
  def __ne__(self, other):
11936
    return not (self == other)
11937
 
11938
class sendProductNotifications_result:
11939
  """
11940
  Attributes:
11941
   - success
11942
  """
11943
 
11944
  thrift_spec = (
11945
    (0, TType.BOOL, 'success', None, None, ), # 0
11946
  )
11947
 
11948
  def __init__(self, success=None,):
11949
    self.success = success
11950
 
11951
  def read(self, iprot):
11952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11954
      return
11955
    iprot.readStructBegin()
11956
    while True:
11957
      (fname, ftype, fid) = iprot.readFieldBegin()
11958
      if ftype == TType.STOP:
11959
        break
11960
      if fid == 0:
11961
        if ftype == TType.BOOL:
11962
          self.success = iprot.readBool();
11963
        else:
11964
          iprot.skip(ftype)
11965
      else:
11966
        iprot.skip(ftype)
11967
      iprot.readFieldEnd()
11968
    iprot.readStructEnd()
11969
 
11970
  def write(self, oprot):
11971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11973
      return
11974
    oprot.writeStructBegin('sendProductNotifications_result')
11975
    if self.success is not None:
11976
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11977
      oprot.writeBool(self.success)
11978
      oprot.writeFieldEnd()
11979
    oprot.writeFieldStop()
11980
    oprot.writeStructEnd()
11981
 
11982
  def validate(self):
11983
    return
11984
 
11985
 
11986
  def __repr__(self):
11987
    L = ['%s=%r' % (key, value)
11988
      for key, value in self.__dict__.iteritems()]
11989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11990
 
11991
  def __eq__(self, other):
11992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11993
 
11994
  def __ne__(self, other):
11995
    return not (self == other)
11996
 
11997
class getAllBrandsByCategory_args:
11998
  """
11999
  Attributes:
12000
   - categoryId
12001
  """
12002
 
12003
  thrift_spec = (
12004
    None, # 0
12005
    (1, TType.I64, 'categoryId', None, None, ), # 1
12006
  )
12007
 
12008
  def __init__(self, categoryId=None,):
12009
    self.categoryId = categoryId
12010
 
12011
  def read(self, iprot):
12012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12014
      return
12015
    iprot.readStructBegin()
12016
    while True:
12017
      (fname, ftype, fid) = iprot.readFieldBegin()
12018
      if ftype == TType.STOP:
12019
        break
12020
      if fid == 1:
12021
        if ftype == TType.I64:
12022
          self.categoryId = iprot.readI64();
12023
        else:
12024
          iprot.skip(ftype)
12025
      else:
12026
        iprot.skip(ftype)
12027
      iprot.readFieldEnd()
12028
    iprot.readStructEnd()
12029
 
12030
  def write(self, oprot):
12031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12033
      return
12034
    oprot.writeStructBegin('getAllBrandsByCategory_args')
12035
    if self.categoryId is not None:
12036
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
12037
      oprot.writeI64(self.categoryId)
12038
      oprot.writeFieldEnd()
12039
    oprot.writeFieldStop()
12040
    oprot.writeStructEnd()
12041
 
12042
  def validate(self):
12043
    return
12044
 
12045
 
12046
  def __repr__(self):
12047
    L = ['%s=%r' % (key, value)
12048
      for key, value in self.__dict__.iteritems()]
12049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12050
 
12051
  def __eq__(self, other):
12052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12053
 
12054
  def __ne__(self, other):
12055
    return not (self == other)
12056
 
12057
class getAllBrandsByCategory_result:
12058
  """
12059
  Attributes:
12060
   - success
12061
  """
12062
 
12063
  thrift_spec = (
12064
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12065
  )
12066
 
12067
  def __init__(self, success=None,):
12068
    self.success = success
12069
 
12070
  def read(self, iprot):
12071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12073
      return
12074
    iprot.readStructBegin()
12075
    while True:
12076
      (fname, ftype, fid) = iprot.readFieldBegin()
12077
      if ftype == TType.STOP:
12078
        break
12079
      if fid == 0:
12080
        if ftype == TType.LIST:
12081
          self.success = []
6850 kshitij.so 12082
          (_etype210, _size207) = iprot.readListBegin()
12083
          for _i211 in xrange(_size207):
12084
            _elem212 = iprot.readString();
12085
            self.success.append(_elem212)
5944 mandeep.dh 12086
          iprot.readListEnd()
12087
        else:
12088
          iprot.skip(ftype)
12089
      else:
12090
        iprot.skip(ftype)
12091
      iprot.readFieldEnd()
12092
    iprot.readStructEnd()
12093
 
12094
  def write(self, oprot):
12095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12097
      return
12098
    oprot.writeStructBegin('getAllBrandsByCategory_result')
12099
    if self.success is not None:
12100
      oprot.writeFieldBegin('success', TType.LIST, 0)
12101
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12102
      for iter213 in self.success:
12103
        oprot.writeString(iter213)
5944 mandeep.dh 12104
      oprot.writeListEnd()
12105
      oprot.writeFieldEnd()
12106
    oprot.writeFieldStop()
12107
    oprot.writeStructEnd()
12108
 
12109
  def validate(self):
12110
    return
12111
 
12112
 
12113
  def __repr__(self):
12114
    L = ['%s=%r' % (key, value)
12115
      for key, value in self.__dict__.iteritems()]
12116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12117
 
12118
  def __eq__(self, other):
12119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12120
 
12121
  def __ne__(self, other):
12122
    return not (self == other)
12123
 
12124
class getAllBrands_args:
12125
 
12126
  thrift_spec = (
12127
  )
12128
 
12129
  def read(self, iprot):
12130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12132
      return
12133
    iprot.readStructBegin()
12134
    while True:
12135
      (fname, ftype, fid) = iprot.readFieldBegin()
12136
      if ftype == TType.STOP:
12137
        break
12138
      else:
12139
        iprot.skip(ftype)
12140
      iprot.readFieldEnd()
12141
    iprot.readStructEnd()
12142
 
12143
  def write(self, oprot):
12144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12146
      return
12147
    oprot.writeStructBegin('getAllBrands_args')
12148
    oprot.writeFieldStop()
12149
    oprot.writeStructEnd()
12150
 
12151
  def validate(self):
12152
    return
12153
 
12154
 
12155
  def __repr__(self):
12156
    L = ['%s=%r' % (key, value)
12157
      for key, value in self.__dict__.iteritems()]
12158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12159
 
12160
  def __eq__(self, other):
12161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12162
 
12163
  def __ne__(self, other):
12164
    return not (self == other)
12165
 
12166
class getAllBrands_result:
12167
  """
12168
  Attributes:
12169
   - success
12170
  """
12171
 
12172
  thrift_spec = (
12173
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
12174
  )
12175
 
12176
  def __init__(self, success=None,):
12177
    self.success = success
12178
 
12179
  def read(self, iprot):
12180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12182
      return
12183
    iprot.readStructBegin()
12184
    while True:
12185
      (fname, ftype, fid) = iprot.readFieldBegin()
12186
      if ftype == TType.STOP:
12187
        break
12188
      if fid == 0:
12189
        if ftype == TType.LIST:
12190
          self.success = []
6850 kshitij.so 12191
          (_etype217, _size214) = iprot.readListBegin()
12192
          for _i218 in xrange(_size214):
12193
            _elem219 = iprot.readString();
12194
            self.success.append(_elem219)
5944 mandeep.dh 12195
          iprot.readListEnd()
12196
        else:
12197
          iprot.skip(ftype)
12198
      else:
12199
        iprot.skip(ftype)
12200
      iprot.readFieldEnd()
12201
    iprot.readStructEnd()
12202
 
12203
  def write(self, oprot):
12204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12206
      return
12207
    oprot.writeStructBegin('getAllBrands_result')
12208
    if self.success is not None:
12209
      oprot.writeFieldBegin('success', TType.LIST, 0)
12210
      oprot.writeListBegin(TType.STRING, len(self.success))
6850 kshitij.so 12211
      for iter220 in self.success:
12212
        oprot.writeString(iter220)
5944 mandeep.dh 12213
      oprot.writeListEnd()
12214
      oprot.writeFieldEnd()
12215
    oprot.writeFieldStop()
12216
    oprot.writeStructEnd()
12217
 
12218
  def validate(self):
12219
    return
12220
 
12221
 
12222
  def __repr__(self):
12223
    L = ['%s=%r' % (key, value)
12224
      for key, value in self.__dict__.iteritems()]
12225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12226
 
12227
  def __eq__(self, other):
12228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12229
 
12230
  def __ne__(self, other):
12231
    return not (self == other)
12232
 
12233
class getAllSources_args:
12234
 
12235
  thrift_spec = (
12236
  )
12237
 
12238
  def read(self, iprot):
12239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12241
      return
12242
    iprot.readStructBegin()
12243
    while True:
12244
      (fname, ftype, fid) = iprot.readFieldBegin()
12245
      if ftype == TType.STOP:
12246
        break
12247
      else:
12248
        iprot.skip(ftype)
12249
      iprot.readFieldEnd()
12250
    iprot.readStructEnd()
12251
 
12252
  def write(self, oprot):
12253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12255
      return
12256
    oprot.writeStructBegin('getAllSources_args')
12257
    oprot.writeFieldStop()
12258
    oprot.writeStructEnd()
12259
 
12260
  def validate(self):
12261
    return
12262
 
12263
 
12264
  def __repr__(self):
12265
    L = ['%s=%r' % (key, value)
12266
      for key, value in self.__dict__.iteritems()]
12267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12268
 
12269
  def __eq__(self, other):
12270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12271
 
12272
  def __ne__(self, other):
12273
    return not (self == other)
12274
 
12275
class getAllSources_result:
12276
  """
12277
  Attributes:
12278
   - success
12279
  """
12280
 
12281
  thrift_spec = (
12282
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
12283
  )
12284
 
12285
  def __init__(self, success=None,):
12286
    self.success = success
12287
 
12288
  def read(self, iprot):
12289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12291
      return
12292
    iprot.readStructBegin()
12293
    while True:
12294
      (fname, ftype, fid) = iprot.readFieldBegin()
12295
      if ftype == TType.STOP:
12296
        break
12297
      if fid == 0:
12298
        if ftype == TType.LIST:
12299
          self.success = []
6850 kshitij.so 12300
          (_etype224, _size221) = iprot.readListBegin()
12301
          for _i225 in xrange(_size221):
12302
            _elem226 = Source()
12303
            _elem226.read(iprot)
12304
            self.success.append(_elem226)
5944 mandeep.dh 12305
          iprot.readListEnd()
12306
        else:
12307
          iprot.skip(ftype)
12308
      else:
12309
        iprot.skip(ftype)
12310
      iprot.readFieldEnd()
12311
    iprot.readStructEnd()
12312
 
12313
  def write(self, oprot):
12314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12316
      return
12317
    oprot.writeStructBegin('getAllSources_result')
12318
    if self.success is not None:
12319
      oprot.writeFieldBegin('success', TType.LIST, 0)
12320
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12321
      for iter227 in self.success:
12322
        iter227.write(oprot)
5944 mandeep.dh 12323
      oprot.writeListEnd()
12324
      oprot.writeFieldEnd()
12325
    oprot.writeFieldStop()
12326
    oprot.writeStructEnd()
12327
 
12328
  def validate(self):
12329
    return
12330
 
12331
 
12332
  def __repr__(self):
12333
    L = ['%s=%r' % (key, value)
12334
      for key, value in self.__dict__.iteritems()]
12335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12336
 
12337
  def __eq__(self, other):
12338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12339
 
12340
  def __ne__(self, other):
12341
    return not (self == other)
12342
 
12343
class getItemPricingBySource_args:
12344
  """
12345
  Attributes:
12346
   - itemId
12347
   - sourceId
12348
  """
12349
 
12350
  thrift_spec = (
12351
    None, # 0
12352
    (1, TType.I64, 'itemId', None, None, ), # 1
12353
    (2, TType.I64, 'sourceId', None, None, ), # 2
12354
  )
12355
 
12356
  def __init__(self, itemId=None, sourceId=None,):
12357
    self.itemId = itemId
12358
    self.sourceId = sourceId
12359
 
12360
  def read(self, iprot):
12361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12363
      return
12364
    iprot.readStructBegin()
12365
    while True:
12366
      (fname, ftype, fid) = iprot.readFieldBegin()
12367
      if ftype == TType.STOP:
12368
        break
12369
      if fid == 1:
12370
        if ftype == TType.I64:
12371
          self.itemId = iprot.readI64();
12372
        else:
12373
          iprot.skip(ftype)
12374
      elif fid == 2:
12375
        if ftype == TType.I64:
12376
          self.sourceId = iprot.readI64();
12377
        else:
12378
          iprot.skip(ftype)
12379
      else:
12380
        iprot.skip(ftype)
12381
      iprot.readFieldEnd()
12382
    iprot.readStructEnd()
12383
 
12384
  def write(self, oprot):
12385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12387
      return
12388
    oprot.writeStructBegin('getItemPricingBySource_args')
12389
    if self.itemId is not None:
12390
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12391
      oprot.writeI64(self.itemId)
12392
      oprot.writeFieldEnd()
12393
    if self.sourceId is not None:
12394
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12395
      oprot.writeI64(self.sourceId)
12396
      oprot.writeFieldEnd()
12397
    oprot.writeFieldStop()
12398
    oprot.writeStructEnd()
12399
 
12400
  def validate(self):
12401
    return
12402
 
12403
 
12404
  def __repr__(self):
12405
    L = ['%s=%r' % (key, value)
12406
      for key, value in self.__dict__.iteritems()]
12407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12408
 
12409
  def __eq__(self, other):
12410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12411
 
12412
  def __ne__(self, other):
12413
    return not (self == other)
12414
 
12415
class getItemPricingBySource_result:
12416
  """
12417
  Attributes:
12418
   - success
12419
   - cex
12420
  """
12421
 
12422
  thrift_spec = (
12423
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
12424
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12425
  )
12426
 
12427
  def __init__(self, success=None, cex=None,):
12428
    self.success = success
12429
    self.cex = cex
12430
 
12431
  def read(self, iprot):
12432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12434
      return
12435
    iprot.readStructBegin()
12436
    while True:
12437
      (fname, ftype, fid) = iprot.readFieldBegin()
12438
      if ftype == TType.STOP:
12439
        break
12440
      if fid == 0:
12441
        if ftype == TType.STRUCT:
12442
          self.success = SourceItemPricing()
12443
          self.success.read(iprot)
12444
        else:
12445
          iprot.skip(ftype)
12446
      elif fid == 1:
12447
        if ftype == TType.STRUCT:
12448
          self.cex = CatalogServiceException()
12449
          self.cex.read(iprot)
12450
        else:
12451
          iprot.skip(ftype)
12452
      else:
12453
        iprot.skip(ftype)
12454
      iprot.readFieldEnd()
12455
    iprot.readStructEnd()
12456
 
12457
  def write(self, oprot):
12458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12460
      return
12461
    oprot.writeStructBegin('getItemPricingBySource_result')
12462
    if self.success is not None:
12463
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12464
      self.success.write(oprot)
12465
      oprot.writeFieldEnd()
12466
    if self.cex is not None:
12467
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12468
      self.cex.write(oprot)
12469
      oprot.writeFieldEnd()
12470
    oprot.writeFieldStop()
12471
    oprot.writeStructEnd()
12472
 
12473
  def validate(self):
12474
    return
12475
 
12476
 
12477
  def __repr__(self):
12478
    L = ['%s=%r' % (key, value)
12479
      for key, value in self.__dict__.iteritems()]
12480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12481
 
12482
  def __eq__(self, other):
12483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12484
 
12485
  def __ne__(self, other):
12486
    return not (self == other)
12487
 
12488
class addSourceItemPricing_args:
12489
  """
12490
  Attributes:
12491
   - sourceItemPricing
12492
  """
12493
 
12494
  thrift_spec = (
12495
    None, # 0
12496
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
12497
  )
12498
 
12499
  def __init__(self, sourceItemPricing=None,):
12500
    self.sourceItemPricing = sourceItemPricing
12501
 
12502
  def read(self, iprot):
12503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12505
      return
12506
    iprot.readStructBegin()
12507
    while True:
12508
      (fname, ftype, fid) = iprot.readFieldBegin()
12509
      if ftype == TType.STOP:
12510
        break
12511
      if fid == 1:
12512
        if ftype == TType.STRUCT:
12513
          self.sourceItemPricing = SourceItemPricing()
12514
          self.sourceItemPricing.read(iprot)
12515
        else:
12516
          iprot.skip(ftype)
12517
      else:
12518
        iprot.skip(ftype)
12519
      iprot.readFieldEnd()
12520
    iprot.readStructEnd()
12521
 
12522
  def write(self, oprot):
12523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12525
      return
12526
    oprot.writeStructBegin('addSourceItemPricing_args')
12527
    if self.sourceItemPricing is not None:
12528
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
12529
      self.sourceItemPricing.write(oprot)
12530
      oprot.writeFieldEnd()
12531
    oprot.writeFieldStop()
12532
    oprot.writeStructEnd()
12533
 
12534
  def validate(self):
12535
    return
12536
 
12537
 
12538
  def __repr__(self):
12539
    L = ['%s=%r' % (key, value)
12540
      for key, value in self.__dict__.iteritems()]
12541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12542
 
12543
  def __eq__(self, other):
12544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12545
 
12546
  def __ne__(self, other):
12547
    return not (self == other)
12548
 
12549
class addSourceItemPricing_result:
12550
  """
12551
  Attributes:
12552
   - cex
12553
  """
12554
 
12555
  thrift_spec = (
12556
    None, # 0
12557
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12558
  )
12559
 
12560
  def __init__(self, cex=None,):
12561
    self.cex = cex
12562
 
12563
  def read(self, iprot):
12564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12566
      return
12567
    iprot.readStructBegin()
12568
    while True:
12569
      (fname, ftype, fid) = iprot.readFieldBegin()
12570
      if ftype == TType.STOP:
12571
        break
12572
      if fid == 1:
12573
        if ftype == TType.STRUCT:
12574
          self.cex = CatalogServiceException()
12575
          self.cex.read(iprot)
12576
        else:
12577
          iprot.skip(ftype)
12578
      else:
12579
        iprot.skip(ftype)
12580
      iprot.readFieldEnd()
12581
    iprot.readStructEnd()
12582
 
12583
  def write(self, oprot):
12584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12586
      return
12587
    oprot.writeStructBegin('addSourceItemPricing_result')
12588
    if self.cex is not None:
12589
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12590
      self.cex.write(oprot)
12591
      oprot.writeFieldEnd()
12592
    oprot.writeFieldStop()
12593
    oprot.writeStructEnd()
12594
 
12595
  def validate(self):
12596
    return
12597
 
12598
 
12599
  def __repr__(self):
12600
    L = ['%s=%r' % (key, value)
12601
      for key, value in self.__dict__.iteritems()]
12602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12603
 
12604
  def __eq__(self, other):
12605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12606
 
12607
  def __ne__(self, other):
12608
    return not (self == other)
12609
 
12610
class getAllSourcePricing_args:
12611
  """
12612
  Attributes:
12613
   - itemId
12614
  """
12615
 
12616
  thrift_spec = (
12617
    None, # 0
12618
    (1, TType.I64, 'itemId', None, None, ), # 1
12619
  )
12620
 
12621
  def __init__(self, itemId=None,):
12622
    self.itemId = itemId
12623
 
12624
  def read(self, iprot):
12625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12627
      return
12628
    iprot.readStructBegin()
12629
    while True:
12630
      (fname, ftype, fid) = iprot.readFieldBegin()
12631
      if ftype == TType.STOP:
12632
        break
12633
      if fid == 1:
12634
        if ftype == TType.I64:
12635
          self.itemId = iprot.readI64();
12636
        else:
12637
          iprot.skip(ftype)
12638
      else:
12639
        iprot.skip(ftype)
12640
      iprot.readFieldEnd()
12641
    iprot.readStructEnd()
12642
 
12643
  def write(self, oprot):
12644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12646
      return
12647
    oprot.writeStructBegin('getAllSourcePricing_args')
12648
    if self.itemId is not None:
12649
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12650
      oprot.writeI64(self.itemId)
12651
      oprot.writeFieldEnd()
12652
    oprot.writeFieldStop()
12653
    oprot.writeStructEnd()
12654
 
12655
  def validate(self):
12656
    return
12657
 
12658
 
12659
  def __repr__(self):
12660
    L = ['%s=%r' % (key, value)
12661
      for key, value in self.__dict__.iteritems()]
12662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12663
 
12664
  def __eq__(self, other):
12665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12666
 
12667
  def __ne__(self, other):
12668
    return not (self == other)
12669
 
12670
class getAllSourcePricing_result:
12671
  """
12672
  Attributes:
12673
   - success
12674
   - cex
12675
  """
12676
 
12677
  thrift_spec = (
12678
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
12679
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12680
  )
12681
 
12682
  def __init__(self, success=None, cex=None,):
12683
    self.success = success
12684
    self.cex = cex
12685
 
12686
  def read(self, iprot):
12687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12689
      return
12690
    iprot.readStructBegin()
12691
    while True:
12692
      (fname, ftype, fid) = iprot.readFieldBegin()
12693
      if ftype == TType.STOP:
12694
        break
12695
      if fid == 0:
12696
        if ftype == TType.LIST:
12697
          self.success = []
6850 kshitij.so 12698
          (_etype231, _size228) = iprot.readListBegin()
12699
          for _i232 in xrange(_size228):
12700
            _elem233 = SourceItemPricing()
12701
            _elem233.read(iprot)
12702
            self.success.append(_elem233)
5944 mandeep.dh 12703
          iprot.readListEnd()
12704
        else:
12705
          iprot.skip(ftype)
12706
      elif fid == 1:
12707
        if ftype == TType.STRUCT:
12708
          self.cex = CatalogServiceException()
12709
          self.cex.read(iprot)
12710
        else:
12711
          iprot.skip(ftype)
12712
      else:
12713
        iprot.skip(ftype)
12714
      iprot.readFieldEnd()
12715
    iprot.readStructEnd()
12716
 
12717
  def write(self, oprot):
12718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12720
      return
12721
    oprot.writeStructBegin('getAllSourcePricing_result')
12722
    if self.success is not None:
12723
      oprot.writeFieldBegin('success', TType.LIST, 0)
12724
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 12725
      for iter234 in self.success:
12726
        iter234.write(oprot)
5944 mandeep.dh 12727
      oprot.writeListEnd()
12728
      oprot.writeFieldEnd()
12729
    if self.cex is not None:
12730
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12731
      self.cex.write(oprot)
12732
      oprot.writeFieldEnd()
12733
    oprot.writeFieldStop()
12734
    oprot.writeStructEnd()
12735
 
12736
  def validate(self):
12737
    return
12738
 
12739
 
12740
  def __repr__(self):
12741
    L = ['%s=%r' % (key, value)
12742
      for key, value in self.__dict__.iteritems()]
12743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12744
 
12745
  def __eq__(self, other):
12746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12747
 
12748
  def __ne__(self, other):
12749
    return not (self == other)
12750
 
12751
class getItemForSource_args:
12752
  """
12753
  Attributes:
12754
   - item_id
12755
   - sourceId
12756
  """
12757
 
12758
  thrift_spec = (
12759
    None, # 0
12760
    (1, TType.I64, 'item_id', None, None, ), # 1
12761
    (2, TType.I64, 'sourceId', None, None, ), # 2
12762
  )
12763
 
12764
  def __init__(self, item_id=None, sourceId=None,):
12765
    self.item_id = item_id
12766
    self.sourceId = sourceId
12767
 
12768
  def read(self, iprot):
12769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12771
      return
12772
    iprot.readStructBegin()
12773
    while True:
12774
      (fname, ftype, fid) = iprot.readFieldBegin()
12775
      if ftype == TType.STOP:
12776
        break
12777
      if fid == 1:
12778
        if ftype == TType.I64:
12779
          self.item_id = iprot.readI64();
12780
        else:
12781
          iprot.skip(ftype)
12782
      elif fid == 2:
12783
        if ftype == TType.I64:
12784
          self.sourceId = iprot.readI64();
12785
        else:
12786
          iprot.skip(ftype)
12787
      else:
12788
        iprot.skip(ftype)
12789
      iprot.readFieldEnd()
12790
    iprot.readStructEnd()
12791
 
12792
  def write(self, oprot):
12793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12795
      return
12796
    oprot.writeStructBegin('getItemForSource_args')
12797
    if self.item_id is not None:
12798
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12799
      oprot.writeI64(self.item_id)
12800
      oprot.writeFieldEnd()
12801
    if self.sourceId is not None:
12802
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12803
      oprot.writeI64(self.sourceId)
12804
      oprot.writeFieldEnd()
12805
    oprot.writeFieldStop()
12806
    oprot.writeStructEnd()
12807
 
12808
  def validate(self):
12809
    return
12810
 
12811
 
12812
  def __repr__(self):
12813
    L = ['%s=%r' % (key, value)
12814
      for key, value in self.__dict__.iteritems()]
12815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12816
 
12817
  def __eq__(self, other):
12818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12819
 
12820
  def __ne__(self, other):
12821
    return not (self == other)
12822
 
12823
class getItemForSource_result:
12824
  """
12825
  Attributes:
12826
   - success
12827
   - cex
12828
  """
12829
 
12830
  thrift_spec = (
12831
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
12832
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12833
  )
12834
 
12835
  def __init__(self, success=None, cex=None,):
12836
    self.success = success
12837
    self.cex = cex
12838
 
12839
  def read(self, iprot):
12840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12842
      return
12843
    iprot.readStructBegin()
12844
    while True:
12845
      (fname, ftype, fid) = iprot.readFieldBegin()
12846
      if ftype == TType.STOP:
12847
        break
12848
      if fid == 0:
12849
        if ftype == TType.STRUCT:
12850
          self.success = Item()
12851
          self.success.read(iprot)
12852
        else:
12853
          iprot.skip(ftype)
12854
      elif fid == 1:
12855
        if ftype == TType.STRUCT:
12856
          self.cex = CatalogServiceException()
12857
          self.cex.read(iprot)
12858
        else:
12859
          iprot.skip(ftype)
12860
      else:
12861
        iprot.skip(ftype)
12862
      iprot.readFieldEnd()
12863
    iprot.readStructEnd()
12864
 
12865
  def write(self, oprot):
12866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12868
      return
12869
    oprot.writeStructBegin('getItemForSource_result')
12870
    if self.success is not None:
12871
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12872
      self.success.write(oprot)
12873
      oprot.writeFieldEnd()
12874
    if self.cex is not None:
12875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12876
      self.cex.write(oprot)
12877
      oprot.writeFieldEnd()
12878
    oprot.writeFieldStop()
12879
    oprot.writeStructEnd()
12880
 
12881
  def validate(self):
12882
    return
12883
 
12884
 
12885
  def __repr__(self):
12886
    L = ['%s=%r' % (key, value)
12887
      for key, value in self.__dict__.iteritems()]
12888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12889
 
12890
  def __eq__(self, other):
12891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12892
 
12893
  def __ne__(self, other):
12894
    return not (self == other)
12895
 
12896
class searchItemsInRange_args:
12897
  """
12898
  Attributes:
12899
   - searchTerms
12900
   - offset
12901
   - limit
12902
  """
12903
 
12904
  thrift_spec = (
12905
    None, # 0
12906
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
12907
    (2, TType.I64, 'offset', None, None, ), # 2
12908
    (3, TType.I64, 'limit', None, None, ), # 3
12909
  )
12910
 
12911
  def __init__(self, searchTerms=None, offset=None, limit=None,):
12912
    self.searchTerms = searchTerms
12913
    self.offset = offset
12914
    self.limit = limit
12915
 
12916
  def read(self, iprot):
12917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12919
      return
12920
    iprot.readStructBegin()
12921
    while True:
12922
      (fname, ftype, fid) = iprot.readFieldBegin()
12923
      if ftype == TType.STOP:
12924
        break
12925
      if fid == 1:
12926
        if ftype == TType.LIST:
12927
          self.searchTerms = []
6850 kshitij.so 12928
          (_etype238, _size235) = iprot.readListBegin()
12929
          for _i239 in xrange(_size235):
12930
            _elem240 = iprot.readString();
12931
            self.searchTerms.append(_elem240)
5944 mandeep.dh 12932
          iprot.readListEnd()
12933
        else:
12934
          iprot.skip(ftype)
12935
      elif fid == 2:
12936
        if ftype == TType.I64:
12937
          self.offset = iprot.readI64();
12938
        else:
12939
          iprot.skip(ftype)
12940
      elif fid == 3:
12941
        if ftype == TType.I64:
12942
          self.limit = iprot.readI64();
12943
        else:
12944
          iprot.skip(ftype)
12945
      else:
12946
        iprot.skip(ftype)
12947
      iprot.readFieldEnd()
12948
    iprot.readStructEnd()
12949
 
12950
  def write(self, oprot):
12951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12953
      return
12954
    oprot.writeStructBegin('searchItemsInRange_args')
12955
    if self.searchTerms is not None:
12956
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
12957
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 12958
      for iter241 in self.searchTerms:
12959
        oprot.writeString(iter241)
5944 mandeep.dh 12960
      oprot.writeListEnd()
12961
      oprot.writeFieldEnd()
12962
    if self.offset is not None:
12963
      oprot.writeFieldBegin('offset', TType.I64, 2)
12964
      oprot.writeI64(self.offset)
12965
      oprot.writeFieldEnd()
12966
    if self.limit is not None:
12967
      oprot.writeFieldBegin('limit', TType.I64, 3)
12968
      oprot.writeI64(self.limit)
12969
      oprot.writeFieldEnd()
12970
    oprot.writeFieldStop()
12971
    oprot.writeStructEnd()
12972
 
12973
  def validate(self):
12974
    return
12975
 
12976
 
12977
  def __repr__(self):
12978
    L = ['%s=%r' % (key, value)
12979
      for key, value in self.__dict__.iteritems()]
12980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12981
 
12982
  def __eq__(self, other):
12983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12984
 
12985
  def __ne__(self, other):
12986
    return not (self == other)
12987
 
12988
class searchItemsInRange_result:
12989
  """
12990
  Attributes:
12991
   - success
12992
  """
12993
 
12994
  thrift_spec = (
12995
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12996
  )
12997
 
12998
  def __init__(self, success=None,):
12999
    self.success = success
13000
 
13001
  def read(self, iprot):
13002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13004
      return
13005
    iprot.readStructBegin()
13006
    while True:
13007
      (fname, ftype, fid) = iprot.readFieldBegin()
13008
      if ftype == TType.STOP:
13009
        break
13010
      if fid == 0:
13011
        if ftype == TType.LIST:
13012
          self.success = []
6850 kshitij.so 13013
          (_etype245, _size242) = iprot.readListBegin()
13014
          for _i246 in xrange(_size242):
13015
            _elem247 = Item()
13016
            _elem247.read(iprot)
13017
            self.success.append(_elem247)
5944 mandeep.dh 13018
          iprot.readListEnd()
13019
        else:
13020
          iprot.skip(ftype)
13021
      else:
13022
        iprot.skip(ftype)
13023
      iprot.readFieldEnd()
13024
    iprot.readStructEnd()
13025
 
13026
  def write(self, oprot):
13027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13029
      return
13030
    oprot.writeStructBegin('searchItemsInRange_result')
13031
    if self.success is not None:
13032
      oprot.writeFieldBegin('success', TType.LIST, 0)
13033
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13034
      for iter248 in self.success:
13035
        iter248.write(oprot)
5944 mandeep.dh 13036
      oprot.writeListEnd()
13037
      oprot.writeFieldEnd()
13038
    oprot.writeFieldStop()
13039
    oprot.writeStructEnd()
13040
 
13041
  def validate(self):
13042
    return
13043
 
13044
 
13045
  def __repr__(self):
13046
    L = ['%s=%r' % (key, value)
13047
      for key, value in self.__dict__.iteritems()]
13048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13049
 
13050
  def __eq__(self, other):
13051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13052
 
13053
  def __ne__(self, other):
13054
    return not (self == other)
13055
 
13056
class getSearchResultCount_args:
13057
  """
13058
  Attributes:
13059
   - searchTerms
13060
  """
13061
 
13062
  thrift_spec = (
13063
    None, # 0
13064
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
13065
  )
13066
 
13067
  def __init__(self, searchTerms=None,):
13068
    self.searchTerms = searchTerms
13069
 
13070
  def read(self, iprot):
13071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13073
      return
13074
    iprot.readStructBegin()
13075
    while True:
13076
      (fname, ftype, fid) = iprot.readFieldBegin()
13077
      if ftype == TType.STOP:
13078
        break
13079
      if fid == 1:
13080
        if ftype == TType.LIST:
13081
          self.searchTerms = []
6850 kshitij.so 13082
          (_etype252, _size249) = iprot.readListBegin()
13083
          for _i253 in xrange(_size249):
13084
            _elem254 = iprot.readString();
13085
            self.searchTerms.append(_elem254)
5944 mandeep.dh 13086
          iprot.readListEnd()
13087
        else:
13088
          iprot.skip(ftype)
13089
      else:
13090
        iprot.skip(ftype)
13091
      iprot.readFieldEnd()
13092
    iprot.readStructEnd()
13093
 
13094
  def write(self, oprot):
13095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13097
      return
13098
    oprot.writeStructBegin('getSearchResultCount_args')
13099
    if self.searchTerms is not None:
13100
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
13101
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6850 kshitij.so 13102
      for iter255 in self.searchTerms:
13103
        oprot.writeString(iter255)
5944 mandeep.dh 13104
      oprot.writeListEnd()
13105
      oprot.writeFieldEnd()
13106
    oprot.writeFieldStop()
13107
    oprot.writeStructEnd()
13108
 
13109
  def validate(self):
13110
    return
13111
 
13112
 
13113
  def __repr__(self):
13114
    L = ['%s=%r' % (key, value)
13115
      for key, value in self.__dict__.iteritems()]
13116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13117
 
13118
  def __eq__(self, other):
13119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13120
 
13121
  def __ne__(self, other):
13122
    return not (self == other)
13123
 
13124
class getSearchResultCount_result:
13125
  """
13126
  Attributes:
13127
   - success
13128
  """
13129
 
13130
  thrift_spec = (
13131
    (0, TType.I32, 'success', None, None, ), # 0
13132
  )
13133
 
13134
  def __init__(self, success=None,):
13135
    self.success = success
13136
 
13137
  def read(self, iprot):
13138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13140
      return
13141
    iprot.readStructBegin()
13142
    while True:
13143
      (fname, ftype, fid) = iprot.readFieldBegin()
13144
      if ftype == TType.STOP:
13145
        break
13146
      if fid == 0:
13147
        if ftype == TType.I32:
13148
          self.success = iprot.readI32();
13149
        else:
13150
          iprot.skip(ftype)
13151
      else:
13152
        iprot.skip(ftype)
13153
      iprot.readFieldEnd()
13154
    iprot.readStructEnd()
13155
 
13156
  def write(self, oprot):
13157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13159
      return
13160
    oprot.writeStructBegin('getSearchResultCount_result')
13161
    if self.success is not None:
13162
      oprot.writeFieldBegin('success', TType.I32, 0)
13163
      oprot.writeI32(self.success)
13164
      oprot.writeFieldEnd()
13165
    oprot.writeFieldStop()
13166
    oprot.writeStructEnd()
13167
 
13168
  def validate(self):
13169
    return
13170
 
13171
 
13172
  def __repr__(self):
13173
    L = ['%s=%r' % (key, value)
13174
      for key, value in self.__dict__.iteritems()]
13175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13176
 
13177
  def __eq__(self, other):
13178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13179
 
13180
  def __ne__(self, other):
13181
    return not (self == other)
13182
 
13183
class getProductNotifications_args:
13184
  """
13185
  Attributes:
13186
   - startDateTime
13187
  """
13188
 
13189
  thrift_spec = (
13190
    None, # 0
13191
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13192
  )
13193
 
13194
  def __init__(self, startDateTime=None,):
13195
    self.startDateTime = startDateTime
13196
 
13197
  def read(self, iprot):
13198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13200
      return
13201
    iprot.readStructBegin()
13202
    while True:
13203
      (fname, ftype, fid) = iprot.readFieldBegin()
13204
      if ftype == TType.STOP:
13205
        break
13206
      if fid == 1:
13207
        if ftype == TType.I64:
13208
          self.startDateTime = iprot.readI64();
13209
        else:
13210
          iprot.skip(ftype)
13211
      else:
13212
        iprot.skip(ftype)
13213
      iprot.readFieldEnd()
13214
    iprot.readStructEnd()
13215
 
13216
  def write(self, oprot):
13217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13219
      return
13220
    oprot.writeStructBegin('getProductNotifications_args')
13221
    if self.startDateTime is not None:
13222
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13223
      oprot.writeI64(self.startDateTime)
13224
      oprot.writeFieldEnd()
13225
    oprot.writeFieldStop()
13226
    oprot.writeStructEnd()
13227
 
13228
  def validate(self):
13229
    return
13230
 
13231
 
13232
  def __repr__(self):
13233
    L = ['%s=%r' % (key, value)
13234
      for key, value in self.__dict__.iteritems()]
13235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13236
 
13237
  def __eq__(self, other):
13238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13239
 
13240
  def __ne__(self, other):
13241
    return not (self == other)
13242
 
13243
class getProductNotifications_result:
13244
  """
13245
  Attributes:
13246
   - success
13247
  """
13248
 
13249
  thrift_spec = (
13250
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
13251
  )
13252
 
13253
  def __init__(self, success=None,):
13254
    self.success = success
13255
 
13256
  def read(self, iprot):
13257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13259
      return
13260
    iprot.readStructBegin()
13261
    while True:
13262
      (fname, ftype, fid) = iprot.readFieldBegin()
13263
      if ftype == TType.STOP:
13264
        break
13265
      if fid == 0:
13266
        if ftype == TType.LIST:
13267
          self.success = []
6850 kshitij.so 13268
          (_etype259, _size256) = iprot.readListBegin()
13269
          for _i260 in xrange(_size256):
13270
            _elem261 = ProductNotificationRequest()
13271
            _elem261.read(iprot)
13272
            self.success.append(_elem261)
5944 mandeep.dh 13273
          iprot.readListEnd()
13274
        else:
13275
          iprot.skip(ftype)
13276
      else:
13277
        iprot.skip(ftype)
13278
      iprot.readFieldEnd()
13279
    iprot.readStructEnd()
13280
 
13281
  def write(self, oprot):
13282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13284
      return
13285
    oprot.writeStructBegin('getProductNotifications_result')
13286
    if self.success is not None:
13287
      oprot.writeFieldBegin('success', TType.LIST, 0)
13288
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13289
      for iter262 in self.success:
13290
        iter262.write(oprot)
5944 mandeep.dh 13291
      oprot.writeListEnd()
13292
      oprot.writeFieldEnd()
13293
    oprot.writeFieldStop()
13294
    oprot.writeStructEnd()
13295
 
13296
  def validate(self):
13297
    return
13298
 
13299
 
13300
  def __repr__(self):
13301
    L = ['%s=%r' % (key, value)
13302
      for key, value in self.__dict__.iteritems()]
13303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13304
 
13305
  def __eq__(self, other):
13306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13307
 
13308
  def __ne__(self, other):
13309
    return not (self == other)
13310
 
13311
class getProductNotificationRequestCount_args:
13312
  """
13313
  Attributes:
13314
   - startDateTime
13315
  """
13316
 
13317
  thrift_spec = (
13318
    None, # 0
13319
    (1, TType.I64, 'startDateTime', None, None, ), # 1
13320
  )
13321
 
13322
  def __init__(self, startDateTime=None,):
13323
    self.startDateTime = startDateTime
13324
 
13325
  def read(self, iprot):
13326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13328
      return
13329
    iprot.readStructBegin()
13330
    while True:
13331
      (fname, ftype, fid) = iprot.readFieldBegin()
13332
      if ftype == TType.STOP:
13333
        break
13334
      if fid == 1:
13335
        if ftype == TType.I64:
13336
          self.startDateTime = iprot.readI64();
13337
        else:
13338
          iprot.skip(ftype)
13339
      else:
13340
        iprot.skip(ftype)
13341
      iprot.readFieldEnd()
13342
    iprot.readStructEnd()
13343
 
13344
  def write(self, oprot):
13345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13347
      return
13348
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
13349
    if self.startDateTime is not None:
13350
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
13351
      oprot.writeI64(self.startDateTime)
13352
      oprot.writeFieldEnd()
13353
    oprot.writeFieldStop()
13354
    oprot.writeStructEnd()
13355
 
13356
  def validate(self):
13357
    return
13358
 
13359
 
13360
  def __repr__(self):
13361
    L = ['%s=%r' % (key, value)
13362
      for key, value in self.__dict__.iteritems()]
13363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13364
 
13365
  def __eq__(self, other):
13366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13367
 
13368
  def __ne__(self, other):
13369
    return not (self == other)
13370
 
13371
class getProductNotificationRequestCount_result:
13372
  """
13373
  Attributes:
13374
   - success
13375
  """
13376
 
13377
  thrift_spec = (
13378
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
13379
  )
13380
 
13381
  def __init__(self, success=None,):
13382
    self.success = success
13383
 
13384
  def read(self, iprot):
13385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13387
      return
13388
    iprot.readStructBegin()
13389
    while True:
13390
      (fname, ftype, fid) = iprot.readFieldBegin()
13391
      if ftype == TType.STOP:
13392
        break
13393
      if fid == 0:
13394
        if ftype == TType.LIST:
13395
          self.success = []
6850 kshitij.so 13396
          (_etype266, _size263) = iprot.readListBegin()
13397
          for _i267 in xrange(_size263):
13398
            _elem268 = ProductNotificationRequestCount()
13399
            _elem268.read(iprot)
13400
            self.success.append(_elem268)
5944 mandeep.dh 13401
          iprot.readListEnd()
13402
        else:
13403
          iprot.skip(ftype)
13404
      else:
13405
        iprot.skip(ftype)
13406
      iprot.readFieldEnd()
13407
    iprot.readStructEnd()
13408
 
13409
  def write(self, oprot):
13410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13412
      return
13413
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
13414
    if self.success is not None:
13415
      oprot.writeFieldBegin('success', TType.LIST, 0)
13416
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 13417
      for iter269 in self.success:
13418
        iter269.write(oprot)
5944 mandeep.dh 13419
      oprot.writeListEnd()
13420
      oprot.writeFieldEnd()
13421
    oprot.writeFieldStop()
13422
    oprot.writeStructEnd()
13423
 
13424
  def validate(self):
13425
    return
13426
 
13427
 
13428
  def __repr__(self):
13429
    L = ['%s=%r' % (key, value)
13430
      for key, value in self.__dict__.iteritems()]
13431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13432
 
13433
  def __eq__(self, other):
13434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13435
 
13436
  def __ne__(self, other):
13437
    return not (self == other)
13438
 
13439
class addAuthorizationLog_args:
13440
  """
13441
  Attributes:
13442
   - itemId
13443
   - username
13444
   - reason
13445
  """
13446
 
13447
  thrift_spec = (
13448
    None, # 0
13449
    (1, TType.I64, 'itemId', None, None, ), # 1
13450
    (2, TType.STRING, 'username', None, None, ), # 2
13451
    (3, TType.STRING, 'reason', None, None, ), # 3
13452
  )
13453
 
13454
  def __init__(self, itemId=None, username=None, reason=None,):
13455
    self.itemId = itemId
13456
    self.username = username
13457
    self.reason = reason
13458
 
13459
  def read(self, iprot):
13460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13462
      return
13463
    iprot.readStructBegin()
13464
    while True:
13465
      (fname, ftype, fid) = iprot.readFieldBegin()
13466
      if ftype == TType.STOP:
13467
        break
13468
      if fid == 1:
13469
        if ftype == TType.I64:
13470
          self.itemId = iprot.readI64();
13471
        else:
13472
          iprot.skip(ftype)
13473
      elif fid == 2:
13474
        if ftype == TType.STRING:
13475
          self.username = iprot.readString();
13476
        else:
13477
          iprot.skip(ftype)
13478
      elif fid == 3:
13479
        if ftype == TType.STRING:
13480
          self.reason = iprot.readString();
13481
        else:
13482
          iprot.skip(ftype)
13483
      else:
13484
        iprot.skip(ftype)
13485
      iprot.readFieldEnd()
13486
    iprot.readStructEnd()
13487
 
13488
  def write(self, oprot):
13489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13491
      return
13492
    oprot.writeStructBegin('addAuthorizationLog_args')
13493
    if self.itemId is not None:
13494
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13495
      oprot.writeI64(self.itemId)
13496
      oprot.writeFieldEnd()
13497
    if self.username is not None:
13498
      oprot.writeFieldBegin('username', TType.STRING, 2)
13499
      oprot.writeString(self.username)
13500
      oprot.writeFieldEnd()
13501
    if self.reason is not None:
13502
      oprot.writeFieldBegin('reason', TType.STRING, 3)
13503
      oprot.writeString(self.reason)
13504
      oprot.writeFieldEnd()
13505
    oprot.writeFieldStop()
13506
    oprot.writeStructEnd()
13507
 
13508
  def validate(self):
13509
    return
13510
 
13511
 
13512
  def __repr__(self):
13513
    L = ['%s=%r' % (key, value)
13514
      for key, value in self.__dict__.iteritems()]
13515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13516
 
13517
  def __eq__(self, other):
13518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13519
 
13520
  def __ne__(self, other):
13521
    return not (self == other)
13522
 
13523
class addAuthorizationLog_result:
13524
  """
13525
  Attributes:
13526
   - success
13527
   - cex
13528
  """
13529
 
13530
  thrift_spec = (
13531
    (0, TType.BOOL, 'success', None, None, ), # 0
13532
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13533
  )
13534
 
13535
  def __init__(self, success=None, cex=None,):
13536
    self.success = success
13537
    self.cex = cex
13538
 
13539
  def read(self, iprot):
13540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13542
      return
13543
    iprot.readStructBegin()
13544
    while True:
13545
      (fname, ftype, fid) = iprot.readFieldBegin()
13546
      if ftype == TType.STOP:
13547
        break
13548
      if fid == 0:
13549
        if ftype == TType.BOOL:
13550
          self.success = iprot.readBool();
13551
        else:
13552
          iprot.skip(ftype)
13553
      elif fid == 1:
13554
        if ftype == TType.STRUCT:
13555
          self.cex = CatalogServiceException()
13556
          self.cex.read(iprot)
13557
        else:
13558
          iprot.skip(ftype)
13559
      else:
13560
        iprot.skip(ftype)
13561
      iprot.readFieldEnd()
13562
    iprot.readStructEnd()
13563
 
13564
  def write(self, oprot):
13565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13567
      return
13568
    oprot.writeStructBegin('addAuthorizationLog_result')
13569
    if self.success is not None:
13570
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13571
      oprot.writeBool(self.success)
13572
      oprot.writeFieldEnd()
13573
    if self.cex is not None:
13574
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13575
      self.cex.write(oprot)
13576
      oprot.writeFieldEnd()
13577
    oprot.writeFieldStop()
13578
    oprot.writeStructEnd()
13579
 
13580
  def validate(self):
13581
    return
13582
 
13583
 
13584
  def __repr__(self):
13585
    L = ['%s=%r' % (key, value)
13586
      for key, value in self.__dict__.iteritems()]
13587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13588
 
13589
  def __eq__(self, other):
13590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13591
 
13592
  def __ne__(self, other):
13593
    return not (self == other)
13594
 
13595
class getClearanceSaleCatalogIds_args:
13596
 
13597
  thrift_spec = (
13598
  )
13599
 
13600
  def read(self, iprot):
13601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13603
      return
13604
    iprot.readStructBegin()
13605
    while True:
13606
      (fname, ftype, fid) = iprot.readFieldBegin()
13607
      if ftype == TType.STOP:
13608
        break
13609
      else:
13610
        iprot.skip(ftype)
13611
      iprot.readFieldEnd()
13612
    iprot.readStructEnd()
13613
 
13614
  def write(self, oprot):
13615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13617
      return
13618
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
13619
    oprot.writeFieldStop()
13620
    oprot.writeStructEnd()
13621
 
13622
  def validate(self):
13623
    return
13624
 
13625
 
13626
  def __repr__(self):
13627
    L = ['%s=%r' % (key, value)
13628
      for key, value in self.__dict__.iteritems()]
13629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13630
 
13631
  def __eq__(self, other):
13632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13633
 
13634
  def __ne__(self, other):
13635
    return not (self == other)
13636
 
13637
class getClearanceSaleCatalogIds_result:
13638
  """
13639
  Attributes:
13640
   - success
13641
   - cex
13642
  """
13643
 
13644
  thrift_spec = (
13645
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13646
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13647
  )
13648
 
13649
  def __init__(self, success=None, cex=None,):
13650
    self.success = success
13651
    self.cex = cex
13652
 
13653
  def read(self, iprot):
13654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13656
      return
13657
    iprot.readStructBegin()
13658
    while True:
13659
      (fname, ftype, fid) = iprot.readFieldBegin()
13660
      if ftype == TType.STOP:
13661
        break
13662
      if fid == 0:
13663
        if ftype == TType.LIST:
13664
          self.success = []
6850 kshitij.so 13665
          (_etype273, _size270) = iprot.readListBegin()
13666
          for _i274 in xrange(_size270):
13667
            _elem275 = iprot.readI64();
13668
            self.success.append(_elem275)
5944 mandeep.dh 13669
          iprot.readListEnd()
13670
        else:
13671
          iprot.skip(ftype)
13672
      elif fid == 1:
13673
        if ftype == TType.STRUCT:
13674
          self.cex = CatalogServiceException()
13675
          self.cex.read(iprot)
13676
        else:
13677
          iprot.skip(ftype)
13678
      else:
13679
        iprot.skip(ftype)
13680
      iprot.readFieldEnd()
13681
    iprot.readStructEnd()
13682
 
13683
  def write(self, oprot):
13684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13686
      return
13687
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
13688
    if self.success is not None:
13689
      oprot.writeFieldBegin('success', TType.LIST, 0)
13690
      oprot.writeListBegin(TType.I64, len(self.success))
6850 kshitij.so 13691
      for iter276 in self.success:
13692
        oprot.writeI64(iter276)
5944 mandeep.dh 13693
      oprot.writeListEnd()
13694
      oprot.writeFieldEnd()
13695
    if self.cex is not None:
13696
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13697
      self.cex.write(oprot)
13698
      oprot.writeFieldEnd()
13699
    oprot.writeFieldStop()
13700
    oprot.writeStructEnd()
13701
 
13702
  def validate(self):
13703
    return
13704
 
13705
 
13706
  def __repr__(self):
13707
    L = ['%s=%r' % (key, value)
13708
      for key, value in self.__dict__.iteritems()]
13709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13710
 
13711
  def __eq__(self, other):
13712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13713
 
13714
  def __ne__(self, other):
13715
    return not (self == other)
13716
 
13717
class addupdateVoucherForItem_args:
13718
  """
13719
  Attributes:
13720
   - catalog_item_id
13721
   - voucherType
13722
   - voucherAmount
13723
  """
13724
 
13725
  thrift_spec = (
13726
    None, # 0
13727
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13728
    (2, TType.I64, 'voucherType', None, None, ), # 2
13729
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
13730
  )
13731
 
13732
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
13733
    self.catalog_item_id = catalog_item_id
13734
    self.voucherType = voucherType
13735
    self.voucherAmount = voucherAmount
13736
 
13737
  def read(self, iprot):
13738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13740
      return
13741
    iprot.readStructBegin()
13742
    while True:
13743
      (fname, ftype, fid) = iprot.readFieldBegin()
13744
      if ftype == TType.STOP:
13745
        break
13746
      if fid == 1:
13747
        if ftype == TType.I64:
13748
          self.catalog_item_id = iprot.readI64();
13749
        else:
13750
          iprot.skip(ftype)
13751
      elif fid == 2:
13752
        if ftype == TType.I64:
13753
          self.voucherType = iprot.readI64();
13754
        else:
13755
          iprot.skip(ftype)
13756
      elif fid == 3:
13757
        if ftype == TType.I64:
13758
          self.voucherAmount = iprot.readI64();
13759
        else:
13760
          iprot.skip(ftype)
13761
      else:
13762
        iprot.skip(ftype)
13763
      iprot.readFieldEnd()
13764
    iprot.readStructEnd()
13765
 
13766
  def write(self, oprot):
13767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13769
      return
13770
    oprot.writeStructBegin('addupdateVoucherForItem_args')
13771
    if self.catalog_item_id is not None:
13772
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13773
      oprot.writeI64(self.catalog_item_id)
13774
      oprot.writeFieldEnd()
13775
    if self.voucherType is not None:
13776
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13777
      oprot.writeI64(self.voucherType)
13778
      oprot.writeFieldEnd()
13779
    if self.voucherAmount is not None:
13780
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
13781
      oprot.writeI64(self.voucherAmount)
13782
      oprot.writeFieldEnd()
13783
    oprot.writeFieldStop()
13784
    oprot.writeStructEnd()
13785
 
13786
  def validate(self):
13787
    return
13788
 
13789
 
13790
  def __repr__(self):
13791
    L = ['%s=%r' % (key, value)
13792
      for key, value in self.__dict__.iteritems()]
13793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13794
 
13795
  def __eq__(self, other):
13796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13797
 
13798
  def __ne__(self, other):
13799
    return not (self == other)
13800
 
13801
class addupdateVoucherForItem_result:
13802
  """
13803
  Attributes:
13804
   - success
13805
   - cex
13806
  """
13807
 
13808
  thrift_spec = (
13809
    (0, TType.BOOL, 'success', None, None, ), # 0
13810
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13811
  )
13812
 
13813
  def __init__(self, success=None, cex=None,):
13814
    self.success = success
13815
    self.cex = cex
13816
 
13817
  def read(self, iprot):
13818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13820
      return
13821
    iprot.readStructBegin()
13822
    while True:
13823
      (fname, ftype, fid) = iprot.readFieldBegin()
13824
      if ftype == TType.STOP:
13825
        break
13826
      if fid == 0:
13827
        if ftype == TType.BOOL:
13828
          self.success = iprot.readBool();
13829
        else:
13830
          iprot.skip(ftype)
13831
      elif fid == 1:
13832
        if ftype == TType.STRUCT:
13833
          self.cex = CatalogServiceException()
13834
          self.cex.read(iprot)
13835
        else:
13836
          iprot.skip(ftype)
13837
      else:
13838
        iprot.skip(ftype)
13839
      iprot.readFieldEnd()
13840
    iprot.readStructEnd()
13841
 
13842
  def write(self, oprot):
13843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13845
      return
13846
    oprot.writeStructBegin('addupdateVoucherForItem_result')
13847
    if self.success is not None:
13848
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13849
      oprot.writeBool(self.success)
13850
      oprot.writeFieldEnd()
13851
    if self.cex is not None:
13852
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13853
      self.cex.write(oprot)
13854
      oprot.writeFieldEnd()
13855
    oprot.writeFieldStop()
13856
    oprot.writeStructEnd()
13857
 
13858
  def validate(self):
13859
    return
13860
 
13861
 
13862
  def __repr__(self):
13863
    L = ['%s=%r' % (key, value)
13864
      for key, value in self.__dict__.iteritems()]
13865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13866
 
13867
  def __eq__(self, other):
13868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13869
 
13870
  def __ne__(self, other):
13871
    return not (self == other)
13872
 
13873
class deleteVoucherForItem_args:
13874
  """
13875
  Attributes:
13876
   - catalog_item_id
13877
   - voucherType
13878
  """
13879
 
13880
  thrift_spec = (
13881
    None, # 0
13882
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
13883
    (2, TType.I64, 'voucherType', None, None, ), # 2
13884
  )
13885
 
13886
  def __init__(self, catalog_item_id=None, voucherType=None,):
13887
    self.catalog_item_id = catalog_item_id
13888
    self.voucherType = voucherType
13889
 
13890
  def read(self, iprot):
13891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13893
      return
13894
    iprot.readStructBegin()
13895
    while True:
13896
      (fname, ftype, fid) = iprot.readFieldBegin()
13897
      if ftype == TType.STOP:
13898
        break
13899
      if fid == 1:
13900
        if ftype == TType.I64:
13901
          self.catalog_item_id = iprot.readI64();
13902
        else:
13903
          iprot.skip(ftype)
13904
      elif fid == 2:
13905
        if ftype == TType.I64:
13906
          self.voucherType = iprot.readI64();
13907
        else:
13908
          iprot.skip(ftype)
13909
      else:
13910
        iprot.skip(ftype)
13911
      iprot.readFieldEnd()
13912
    iprot.readStructEnd()
13913
 
13914
  def write(self, oprot):
13915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13917
      return
13918
    oprot.writeStructBegin('deleteVoucherForItem_args')
13919
    if self.catalog_item_id is not None:
13920
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
13921
      oprot.writeI64(self.catalog_item_id)
13922
      oprot.writeFieldEnd()
13923
    if self.voucherType is not None:
13924
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
13925
      oprot.writeI64(self.voucherType)
13926
      oprot.writeFieldEnd()
13927
    oprot.writeFieldStop()
13928
    oprot.writeStructEnd()
13929
 
13930
  def validate(self):
13931
    return
13932
 
13933
 
13934
  def __repr__(self):
13935
    L = ['%s=%r' % (key, value)
13936
      for key, value in self.__dict__.iteritems()]
13937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13938
 
13939
  def __eq__(self, other):
13940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13941
 
13942
  def __ne__(self, other):
13943
    return not (self == other)
13944
 
13945
class deleteVoucherForItem_result:
13946
  """
13947
  Attributes:
13948
   - success
13949
   - cex
13950
  """
13951
 
13952
  thrift_spec = (
13953
    (0, TType.BOOL, 'success', None, None, ), # 0
13954
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13955
  )
13956
 
13957
  def __init__(self, success=None, cex=None,):
13958
    self.success = success
13959
    self.cex = cex
13960
 
13961
  def read(self, iprot):
13962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13964
      return
13965
    iprot.readStructBegin()
13966
    while True:
13967
      (fname, ftype, fid) = iprot.readFieldBegin()
13968
      if ftype == TType.STOP:
13969
        break
13970
      if fid == 0:
13971
        if ftype == TType.BOOL:
13972
          self.success = iprot.readBool();
13973
        else:
13974
          iprot.skip(ftype)
13975
      elif fid == 1:
13976
        if ftype == TType.STRUCT:
13977
          self.cex = CatalogServiceException()
13978
          self.cex.read(iprot)
13979
        else:
13980
          iprot.skip(ftype)
13981
      else:
13982
        iprot.skip(ftype)
13983
      iprot.readFieldEnd()
13984
    iprot.readStructEnd()
13985
 
13986
  def write(self, oprot):
13987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13989
      return
13990
    oprot.writeStructBegin('deleteVoucherForItem_result')
13991
    if self.success is not None:
13992
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13993
      oprot.writeBool(self.success)
13994
      oprot.writeFieldEnd()
13995
    if self.cex is not None:
13996
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13997
      self.cex.write(oprot)
13998
      oprot.writeFieldEnd()
13999
    oprot.writeFieldStop()
14000
    oprot.writeStructEnd()
14001
 
14002
  def validate(self):
14003
    return
14004
 
14005
 
14006
  def __repr__(self):
14007
    L = ['%s=%r' % (key, value)
14008
      for key, value in self.__dict__.iteritems()]
14009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14010
 
14011
  def __eq__(self, other):
14012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14013
 
14014
  def __ne__(self, other):
14015
    return not (self == other)
14016
 
14017
class getVoucherAmount_args:
14018
  """
14019
  Attributes:
14020
   - itemId
14021
   - voucherType
14022
  """
14023
 
14024
  thrift_spec = (
14025
    None, # 0
14026
    (1, TType.I64, 'itemId', None, None, ), # 1
14027
    (2, TType.I64, 'voucherType', None, None, ), # 2
14028
  )
14029
 
14030
  def __init__(self, itemId=None, voucherType=None,):
14031
    self.itemId = itemId
14032
    self.voucherType = voucherType
14033
 
14034
  def read(self, iprot):
14035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14037
      return
14038
    iprot.readStructBegin()
14039
    while True:
14040
      (fname, ftype, fid) = iprot.readFieldBegin()
14041
      if ftype == TType.STOP:
14042
        break
14043
      if fid == 1:
14044
        if ftype == TType.I64:
14045
          self.itemId = iprot.readI64();
14046
        else:
14047
          iprot.skip(ftype)
14048
      elif fid == 2:
14049
        if ftype == TType.I64:
14050
          self.voucherType = iprot.readI64();
14051
        else:
14052
          iprot.skip(ftype)
14053
      else:
14054
        iprot.skip(ftype)
14055
      iprot.readFieldEnd()
14056
    iprot.readStructEnd()
14057
 
14058
  def write(self, oprot):
14059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14061
      return
14062
    oprot.writeStructBegin('getVoucherAmount_args')
14063
    if self.itemId is not None:
14064
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14065
      oprot.writeI64(self.itemId)
14066
      oprot.writeFieldEnd()
14067
    if self.voucherType is not None:
14068
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
14069
      oprot.writeI64(self.voucherType)
14070
      oprot.writeFieldEnd()
14071
    oprot.writeFieldStop()
14072
    oprot.writeStructEnd()
14073
 
14074
  def validate(self):
14075
    return
14076
 
14077
 
14078
  def __repr__(self):
14079
    L = ['%s=%r' % (key, value)
14080
      for key, value in self.__dict__.iteritems()]
14081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14082
 
14083
  def __eq__(self, other):
14084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14085
 
14086
  def __ne__(self, other):
14087
    return not (self == other)
14088
 
14089
class getVoucherAmount_result:
14090
  """
14091
  Attributes:
14092
   - success
14093
  """
14094
 
14095
  thrift_spec = (
14096
    (0, TType.I64, 'success', None, None, ), # 0
14097
  )
14098
 
14099
  def __init__(self, success=None,):
14100
    self.success = success
14101
 
14102
  def read(self, iprot):
14103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14105
      return
14106
    iprot.readStructBegin()
14107
    while True:
14108
      (fname, ftype, fid) = iprot.readFieldBegin()
14109
      if ftype == TType.STOP:
14110
        break
14111
      if fid == 0:
14112
        if ftype == TType.I64:
14113
          self.success = iprot.readI64();
14114
        else:
14115
          iprot.skip(ftype)
14116
      else:
14117
        iprot.skip(ftype)
14118
      iprot.readFieldEnd()
14119
    iprot.readStructEnd()
14120
 
14121
  def write(self, oprot):
14122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14124
      return
14125
    oprot.writeStructBegin('getVoucherAmount_result')
14126
    if self.success is not None:
14127
      oprot.writeFieldBegin('success', TType.I64, 0)
14128
      oprot.writeI64(self.success)
14129
      oprot.writeFieldEnd()
14130
    oprot.writeFieldStop()
14131
    oprot.writeStructEnd()
14132
 
14133
  def validate(self):
14134
    return
14135
 
14136
 
14137
  def __repr__(self):
14138
    L = ['%s=%r' % (key, value)
14139
      for key, value in self.__dict__.iteritems()]
14140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14141
 
14142
  def __eq__(self, other):
14143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14144
 
14145
  def __ne__(self, other):
14146
    return not (self == other)
14147
 
14148
class getAllItemVouchers_args:
14149
  """
14150
  Attributes:
14151
   - itemId
14152
  """
14153
 
14154
  thrift_spec = (
14155
    None, # 0
14156
    (1, TType.I64, 'itemId', None, None, ), # 1
14157
  )
14158
 
14159
  def __init__(self, itemId=None,):
14160
    self.itemId = itemId
14161
 
14162
  def read(self, iprot):
14163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14165
      return
14166
    iprot.readStructBegin()
14167
    while True:
14168
      (fname, ftype, fid) = iprot.readFieldBegin()
14169
      if ftype == TType.STOP:
14170
        break
14171
      if fid == 1:
14172
        if ftype == TType.I64:
14173
          self.itemId = iprot.readI64();
14174
        else:
14175
          iprot.skip(ftype)
14176
      else:
14177
        iprot.skip(ftype)
14178
      iprot.readFieldEnd()
14179
    iprot.readStructEnd()
14180
 
14181
  def write(self, oprot):
14182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14184
      return
14185
    oprot.writeStructBegin('getAllItemVouchers_args')
14186
    if self.itemId is not None:
14187
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14188
      oprot.writeI64(self.itemId)
14189
      oprot.writeFieldEnd()
14190
    oprot.writeFieldStop()
14191
    oprot.writeStructEnd()
14192
 
14193
  def validate(self):
14194
    return
14195
 
14196
 
14197
  def __repr__(self):
14198
    L = ['%s=%r' % (key, value)
14199
      for key, value in self.__dict__.iteritems()]
14200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14201
 
14202
  def __eq__(self, other):
14203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14204
 
14205
  def __ne__(self, other):
14206
    return not (self == other)
14207
 
14208
class getAllItemVouchers_result:
14209
  """
14210
  Attributes:
14211
   - success
14212
  """
14213
 
14214
  thrift_spec = (
14215
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
14216
  )
14217
 
14218
  def __init__(self, success=None,):
14219
    self.success = success
14220
 
14221
  def read(self, iprot):
14222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14224
      return
14225
    iprot.readStructBegin()
14226
    while True:
14227
      (fname, ftype, fid) = iprot.readFieldBegin()
14228
      if ftype == TType.STOP:
14229
        break
14230
      if fid == 0:
14231
        if ftype == TType.LIST:
14232
          self.success = []
6850 kshitij.so 14233
          (_etype280, _size277) = iprot.readListBegin()
14234
          for _i281 in xrange(_size277):
14235
            _elem282 = VoucherItemMapping()
14236
            _elem282.read(iprot)
14237
            self.success.append(_elem282)
5944 mandeep.dh 14238
          iprot.readListEnd()
14239
        else:
14240
          iprot.skip(ftype)
14241
      else:
14242
        iprot.skip(ftype)
14243
      iprot.readFieldEnd()
14244
    iprot.readStructEnd()
14245
 
14246
  def write(self, oprot):
14247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14249
      return
14250
    oprot.writeStructBegin('getAllItemVouchers_result')
14251
    if self.success is not None:
14252
      oprot.writeFieldBegin('success', TType.LIST, 0)
14253
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14254
      for iter283 in self.success:
14255
        iter283.write(oprot)
5944 mandeep.dh 14256
      oprot.writeListEnd()
14257
      oprot.writeFieldEnd()
14258
    oprot.writeFieldStop()
14259
    oprot.writeStructEnd()
14260
 
14261
  def validate(self):
14262
    return
14263
 
14264
 
14265
  def __repr__(self):
14266
    L = ['%s=%r' % (key, value)
14267
      for key, value in self.__dict__.iteritems()]
14268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14269
 
14270
  def __eq__(self, other):
14271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14272
 
14273
  def __ne__(self, other):
14274
    return not (self == other)
14275
 
14276
class isValidCatalogItemId_args:
14277
  """
14278
  Attributes:
14279
   - catalog_item_id
14280
  """
14281
 
14282
  thrift_spec = (
14283
    None, # 0
14284
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
14285
  )
14286
 
14287
  def __init__(self, catalog_item_id=None,):
14288
    self.catalog_item_id = catalog_item_id
14289
 
14290
  def read(self, iprot):
14291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14293
      return
14294
    iprot.readStructBegin()
14295
    while True:
14296
      (fname, ftype, fid) = iprot.readFieldBegin()
14297
      if ftype == TType.STOP:
14298
        break
14299
      if fid == 1:
14300
        if ftype == TType.I64:
14301
          self.catalog_item_id = iprot.readI64();
14302
        else:
14303
          iprot.skip(ftype)
14304
      else:
14305
        iprot.skip(ftype)
14306
      iprot.readFieldEnd()
14307
    iprot.readStructEnd()
14308
 
14309
  def write(self, oprot):
14310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14312
      return
14313
    oprot.writeStructBegin('isValidCatalogItemId_args')
14314
    if self.catalog_item_id is not None:
14315
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
14316
      oprot.writeI64(self.catalog_item_id)
14317
      oprot.writeFieldEnd()
14318
    oprot.writeFieldStop()
14319
    oprot.writeStructEnd()
14320
 
14321
  def validate(self):
14322
    return
14323
 
14324
 
14325
  def __repr__(self):
14326
    L = ['%s=%r' % (key, value)
14327
      for key, value in self.__dict__.iteritems()]
14328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14329
 
14330
  def __eq__(self, other):
14331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14332
 
14333
  def __ne__(self, other):
14334
    return not (self == other)
14335
 
14336
class isValidCatalogItemId_result:
14337
  """
14338
  Attributes:
14339
   - success
14340
  """
14341
 
14342
  thrift_spec = (
14343
    (0, TType.BOOL, 'success', None, None, ), # 0
14344
  )
14345
 
14346
  def __init__(self, success=None,):
14347
    self.success = success
14348
 
14349
  def read(self, iprot):
14350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14352
      return
14353
    iprot.readStructBegin()
14354
    while True:
14355
      (fname, ftype, fid) = iprot.readFieldBegin()
14356
      if ftype == TType.STOP:
14357
        break
14358
      if fid == 0:
14359
        if ftype == TType.BOOL:
14360
          self.success = iprot.readBool();
14361
        else:
14362
          iprot.skip(ftype)
14363
      else:
14364
        iprot.skip(ftype)
14365
      iprot.readFieldEnd()
14366
    iprot.readStructEnd()
14367
 
14368
  def write(self, oprot):
14369
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14370
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14371
      return
14372
    oprot.writeStructBegin('isValidCatalogItemId_result')
14373
    if self.success is not None:
14374
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14375
      oprot.writeBool(self.success)
14376
      oprot.writeFieldEnd()
14377
    oprot.writeFieldStop()
14378
    oprot.writeStructEnd()
14379
 
14380
  def validate(self):
14381
    return
14382
 
14383
 
14384
  def __repr__(self):
14385
    L = ['%s=%r' % (key, value)
14386
      for key, value in self.__dict__.iteritems()]
14387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14388
 
14389
  def __eq__(self, other):
14390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14391
 
14392
  def __ne__(self, other):
14393
    return not (self == other)
6039 amit.gupta 14394
 
14395
class getVatPercentageForItem_args:
14396
  """
14397
  Attributes:
14398
   - itemId
14399
   - price
14400
  """
14401
 
14402
  thrift_spec = (
14403
    None, # 0
14404
    (1, TType.I64, 'itemId', None, None, ), # 1
14405
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14406
  )
14407
 
14408
  def __init__(self, itemId=None, price=None,):
14409
    self.itemId = itemId
14410
    self.price = price
14411
 
14412
  def read(self, iprot):
14413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14415
      return
14416
    iprot.readStructBegin()
14417
    while True:
14418
      (fname, ftype, fid) = iprot.readFieldBegin()
14419
      if ftype == TType.STOP:
14420
        break
14421
      if fid == 1:
14422
        if ftype == TType.I64:
14423
          self.itemId = iprot.readI64();
14424
        else:
14425
          iprot.skip(ftype)
14426
      elif fid == 2:
14427
        if ftype == TType.DOUBLE:
14428
          self.price = iprot.readDouble();
14429
        else:
14430
          iprot.skip(ftype)
14431
      else:
14432
        iprot.skip(ftype)
14433
      iprot.readFieldEnd()
14434
    iprot.readStructEnd()
14435
 
14436
  def write(self, oprot):
14437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14439
      return
14440
    oprot.writeStructBegin('getVatPercentageForItem_args')
14441
    if self.itemId is not None:
14442
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14443
      oprot.writeI64(self.itemId)
14444
      oprot.writeFieldEnd()
14445
    if self.price is not None:
14446
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14447
      oprot.writeDouble(self.price)
14448
      oprot.writeFieldEnd()
14449
    oprot.writeFieldStop()
14450
    oprot.writeStructEnd()
14451
 
14452
  def validate(self):
14453
    return
14454
 
14455
 
14456
  def __repr__(self):
14457
    L = ['%s=%r' % (key, value)
14458
      for key, value in self.__dict__.iteritems()]
14459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14460
 
14461
  def __eq__(self, other):
14462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14463
 
14464
  def __ne__(self, other):
14465
    return not (self == other)
14466
 
14467
class getVatPercentageForItem_result:
14468
  """
14469
  Attributes:
14470
   - success
14471
  """
14472
 
14473
  thrift_spec = (
14474
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14475
  )
14476
 
14477
  def __init__(self, success=None,):
14478
    self.success = success
14479
 
14480
  def read(self, iprot):
14481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14483
      return
14484
    iprot.readStructBegin()
14485
    while True:
14486
      (fname, ftype, fid) = iprot.readFieldBegin()
14487
      if ftype == TType.STOP:
14488
        break
14489
      if fid == 0:
14490
        if ftype == TType.DOUBLE:
14491
          self.success = iprot.readDouble();
14492
        else:
14493
          iprot.skip(ftype)
14494
      else:
14495
        iprot.skip(ftype)
14496
      iprot.readFieldEnd()
14497
    iprot.readStructEnd()
14498
 
14499
  def write(self, oprot):
14500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14502
      return
14503
    oprot.writeStructBegin('getVatPercentageForItem_result')
14504
    if self.success is not None:
14505
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14506
      oprot.writeDouble(self.success)
14507
      oprot.writeFieldEnd()
14508
    oprot.writeFieldStop()
14509
    oprot.writeStructEnd()
14510
 
14511
  def validate(self):
14512
    return
14513
 
14514
 
14515
  def __repr__(self):
14516
    L = ['%s=%r' % (key, value)
14517
      for key, value in self.__dict__.iteritems()]
14518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14519
 
14520
  def __eq__(self, other):
14521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14522
 
14523
  def __ne__(self, other):
14524
    return not (self == other)
14525
 
14526
class getVatAmountForItem_args:
14527
  """
14528
  Attributes:
14529
   - itemId
14530
   - price
14531
  """
14532
 
14533
  thrift_spec = (
14534
    None, # 0
14535
    (1, TType.I64, 'itemId', None, None, ), # 1
14536
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14537
  )
14538
 
14539
  def __init__(self, itemId=None, price=None,):
14540
    self.itemId = itemId
14541
    self.price = price
14542
 
14543
  def read(self, iprot):
14544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14546
      return
14547
    iprot.readStructBegin()
14548
    while True:
14549
      (fname, ftype, fid) = iprot.readFieldBegin()
14550
      if ftype == TType.STOP:
14551
        break
14552
      if fid == 1:
14553
        if ftype == TType.I64:
14554
          self.itemId = iprot.readI64();
14555
        else:
14556
          iprot.skip(ftype)
14557
      elif fid == 2:
14558
        if ftype == TType.DOUBLE:
14559
          self.price = iprot.readDouble();
14560
        else:
14561
          iprot.skip(ftype)
14562
      else:
14563
        iprot.skip(ftype)
14564
      iprot.readFieldEnd()
14565
    iprot.readStructEnd()
14566
 
14567
  def write(self, oprot):
14568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14570
      return
14571
    oprot.writeStructBegin('getVatAmountForItem_args')
14572
    if self.itemId is not None:
14573
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14574
      oprot.writeI64(self.itemId)
14575
      oprot.writeFieldEnd()
14576
    if self.price is not None:
14577
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14578
      oprot.writeDouble(self.price)
14579
      oprot.writeFieldEnd()
14580
    oprot.writeFieldStop()
14581
    oprot.writeStructEnd()
14582
 
14583
  def validate(self):
14584
    return
14585
 
14586
 
14587
  def __repr__(self):
14588
    L = ['%s=%r' % (key, value)
14589
      for key, value in self.__dict__.iteritems()]
14590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14591
 
14592
  def __eq__(self, other):
14593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14594
 
14595
  def __ne__(self, other):
14596
    return not (self == other)
14597
 
14598
class getVatAmountForItem_result:
14599
  """
14600
  Attributes:
14601
   - success
14602
  """
14603
 
14604
  thrift_spec = (
14605
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14606
  )
14607
 
14608
  def __init__(self, success=None,):
14609
    self.success = success
14610
 
14611
  def read(self, iprot):
14612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14614
      return
14615
    iprot.readStructBegin()
14616
    while True:
14617
      (fname, ftype, fid) = iprot.readFieldBegin()
14618
      if ftype == TType.STOP:
14619
        break
14620
      if fid == 0:
14621
        if ftype == TType.DOUBLE:
14622
          self.success = iprot.readDouble();
14623
        else:
14624
          iprot.skip(ftype)
14625
      else:
14626
        iprot.skip(ftype)
14627
      iprot.readFieldEnd()
14628
    iprot.readStructEnd()
14629
 
14630
  def write(self, oprot):
14631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14633
      return
14634
    oprot.writeStructBegin('getVatAmountForItem_result')
14635
    if self.success is not None:
14636
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14637
      oprot.writeDouble(self.success)
14638
      oprot.writeFieldEnd()
14639
    oprot.writeFieldStop()
14640
    oprot.writeStructEnd()
14641
 
14642
  def validate(self):
14643
    return
14644
 
14645
 
14646
  def __repr__(self):
14647
    L = ['%s=%r' % (key, value)
14648
      for key, value in self.__dict__.iteritems()]
14649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14650
 
14651
  def __eq__(self, other):
14652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14653
 
14654
  def __ne__(self, other):
14655
    return not (self == other)
6531 vikram.rag 14656
 
14657
class getAllIgnoredInventoryUpdateItemsList_args:
14658
  """
14659
  Attributes:
14660
   - offset
14661
   - limit
14662
  """
14663
 
14664
  thrift_spec = (
14665
    None, # 0
14666
    (1, TType.I32, 'offset', None, None, ), # 1
14667
    (2, TType.I32, 'limit', None, None, ), # 2
14668
  )
14669
 
14670
  def __init__(self, offset=None, limit=None,):
14671
    self.offset = offset
14672
    self.limit = limit
14673
 
14674
  def read(self, iprot):
14675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14677
      return
14678
    iprot.readStructBegin()
14679
    while True:
14680
      (fname, ftype, fid) = iprot.readFieldBegin()
14681
      if ftype == TType.STOP:
14682
        break
14683
      if fid == 1:
14684
        if ftype == TType.I32:
14685
          self.offset = iprot.readI32();
14686
        else:
14687
          iprot.skip(ftype)
14688
      elif fid == 2:
14689
        if ftype == TType.I32:
14690
          self.limit = iprot.readI32();
14691
        else:
14692
          iprot.skip(ftype)
14693
      else:
14694
        iprot.skip(ftype)
14695
      iprot.readFieldEnd()
14696
    iprot.readStructEnd()
14697
 
14698
  def write(self, oprot):
14699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14701
      return
14702
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
14703
    if self.offset is not None:
14704
      oprot.writeFieldBegin('offset', TType.I32, 1)
14705
      oprot.writeI32(self.offset)
14706
      oprot.writeFieldEnd()
14707
    if self.limit is not None:
14708
      oprot.writeFieldBegin('limit', TType.I32, 2)
14709
      oprot.writeI32(self.limit)
14710
      oprot.writeFieldEnd()
14711
    oprot.writeFieldStop()
14712
    oprot.writeStructEnd()
14713
 
14714
  def validate(self):
14715
    return
14716
 
14717
 
14718
  def __repr__(self):
14719
    L = ['%s=%r' % (key, value)
14720
      for key, value in self.__dict__.iteritems()]
14721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14722
 
14723
  def __eq__(self, other):
14724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14725
 
14726
  def __ne__(self, other):
14727
    return not (self == other)
14728
 
14729
class getAllIgnoredInventoryUpdateItemsList_result:
14730
  """
14731
  Attributes:
14732
   - success
14733
  """
14734
 
14735
  thrift_spec = (
14736
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14737
  )
14738
 
14739
  def __init__(self, success=None,):
14740
    self.success = success
14741
 
14742
  def read(self, iprot):
14743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14745
      return
14746
    iprot.readStructBegin()
14747
    while True:
14748
      (fname, ftype, fid) = iprot.readFieldBegin()
14749
      if ftype == TType.STOP:
14750
        break
14751
      if fid == 0:
14752
        if ftype == TType.LIST:
14753
          self.success = []
6850 kshitij.so 14754
          (_etype287, _size284) = iprot.readListBegin()
14755
          for _i288 in xrange(_size284):
14756
            _elem289 = Item()
14757
            _elem289.read(iprot)
14758
            self.success.append(_elem289)
6531 vikram.rag 14759
          iprot.readListEnd()
14760
        else:
14761
          iprot.skip(ftype)
14762
      else:
14763
        iprot.skip(ftype)
14764
      iprot.readFieldEnd()
14765
    iprot.readStructEnd()
14766
 
14767
  def write(self, oprot):
14768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14770
      return
14771
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
14772
    if self.success is not None:
14773
      oprot.writeFieldBegin('success', TType.LIST, 0)
14774
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14775
      for iter290 in self.success:
14776
        iter290.write(oprot)
6531 vikram.rag 14777
      oprot.writeListEnd()
14778
      oprot.writeFieldEnd()
14779
    oprot.writeFieldStop()
14780
    oprot.writeStructEnd()
14781
 
14782
  def validate(self):
14783
    return
14784
 
14785
 
14786
  def __repr__(self):
14787
    L = ['%s=%r' % (key, value)
14788
      for key, value in self.__dict__.iteritems()]
14789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14790
 
14791
  def __eq__(self, other):
14792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14793
 
14794
  def __ne__(self, other):
14795
    return not (self == other)
6805 anupam.sin 14796
 
6821 amar.kumar 14797
class getAllAliveItems_args:
14798
 
14799
  thrift_spec = (
14800
  )
14801
 
14802
  def read(self, iprot):
14803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14805
      return
14806
    iprot.readStructBegin()
14807
    while True:
14808
      (fname, ftype, fid) = iprot.readFieldBegin()
14809
      if ftype == TType.STOP:
14810
        break
14811
      else:
14812
        iprot.skip(ftype)
14813
      iprot.readFieldEnd()
14814
    iprot.readStructEnd()
14815
 
14816
  def write(self, oprot):
14817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14819
      return
14820
    oprot.writeStructBegin('getAllAliveItems_args')
14821
    oprot.writeFieldStop()
14822
    oprot.writeStructEnd()
14823
 
14824
  def validate(self):
14825
    return
14826
 
14827
 
14828
  def __repr__(self):
14829
    L = ['%s=%r' % (key, value)
14830
      for key, value in self.__dict__.iteritems()]
14831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14832
 
14833
  def __eq__(self, other):
14834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14835
 
14836
  def __ne__(self, other):
14837
    return not (self == other)
14838
 
14839
class getAllAliveItems_result:
14840
  """
14841
  Attributes:
14842
   - success
14843
  """
14844
 
14845
  thrift_spec = (
14846
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14847
  )
14848
 
14849
  def __init__(self, success=None,):
14850
    self.success = success
14851
 
14852
  def read(self, iprot):
14853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14855
      return
14856
    iprot.readStructBegin()
14857
    while True:
14858
      (fname, ftype, fid) = iprot.readFieldBegin()
14859
      if ftype == TType.STOP:
14860
        break
14861
      if fid == 0:
14862
        if ftype == TType.LIST:
14863
          self.success = []
6850 kshitij.so 14864
          (_etype294, _size291) = iprot.readListBegin()
14865
          for _i295 in xrange(_size291):
14866
            _elem296 = Item()
14867
            _elem296.read(iprot)
14868
            self.success.append(_elem296)
6821 amar.kumar 14869
          iprot.readListEnd()
14870
        else:
14871
          iprot.skip(ftype)
14872
      else:
14873
        iprot.skip(ftype)
14874
      iprot.readFieldEnd()
14875
    iprot.readStructEnd()
14876
 
14877
  def write(self, oprot):
14878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14880
      return
14881
    oprot.writeStructBegin('getAllAliveItems_result')
14882
    if self.success is not None:
14883
      oprot.writeFieldBegin('success', TType.LIST, 0)
14884
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 14885
      for iter297 in self.success:
14886
        iter297.write(oprot)
6821 amar.kumar 14887
      oprot.writeListEnd()
14888
      oprot.writeFieldEnd()
14889
    oprot.writeFieldStop()
14890
    oprot.writeStructEnd()
14891
 
14892
  def validate(self):
14893
    return
14894
 
14895
 
14896
  def __repr__(self):
14897
    L = ['%s=%r' % (key, value)
14898
      for key, value in self.__dict__.iteritems()]
14899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14900
 
14901
  def __eq__(self, other):
14902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14903
 
14904
  def __ne__(self, other):
14905
    return not (self == other)
14906
 
6805 anupam.sin 14907
class getInsuranceAmount_args:
14908
  """
14909
  Attributes:
14910
   - itemId
6921 anupam.sin 14911
   - price
6805 anupam.sin 14912
   - insurerId
14913
   - quantity
14914
  """
14915
 
14916
  thrift_spec = (
14917
    None, # 0
14918
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 14919
    (2, TType.DOUBLE, 'price', None, None, ), # 2
14920
    (3, TType.I64, 'insurerId', None, None, ), # 3
14921
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 14922
  )
14923
 
6921 anupam.sin 14924
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 14925
    self.itemId = itemId
6921 anupam.sin 14926
    self.price = price
6805 anupam.sin 14927
    self.insurerId = insurerId
14928
    self.quantity = quantity
14929
 
14930
  def read(self, iprot):
14931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14933
      return
14934
    iprot.readStructBegin()
14935
    while True:
14936
      (fname, ftype, fid) = iprot.readFieldBegin()
14937
      if ftype == TType.STOP:
14938
        break
14939
      if fid == 1:
14940
        if ftype == TType.I64:
14941
          self.itemId = iprot.readI64();
14942
        else:
14943
          iprot.skip(ftype)
14944
      elif fid == 2:
6921 anupam.sin 14945
        if ftype == TType.DOUBLE:
14946
          self.price = iprot.readDouble();
14947
        else:
14948
          iprot.skip(ftype)
14949
      elif fid == 3:
6805 anupam.sin 14950
        if ftype == TType.I64:
14951
          self.insurerId = iprot.readI64();
14952
        else:
14953
          iprot.skip(ftype)
6921 anupam.sin 14954
      elif fid == 4:
6805 anupam.sin 14955
        if ftype == TType.I64:
14956
          self.quantity = iprot.readI64();
14957
        else:
14958
          iprot.skip(ftype)
14959
      else:
14960
        iprot.skip(ftype)
14961
      iprot.readFieldEnd()
14962
    iprot.readStructEnd()
14963
 
14964
  def write(self, oprot):
14965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14967
      return
14968
    oprot.writeStructBegin('getInsuranceAmount_args')
14969
    if self.itemId is not None:
14970
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14971
      oprot.writeI64(self.itemId)
14972
      oprot.writeFieldEnd()
6921 anupam.sin 14973
    if self.price is not None:
14974
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
14975
      oprot.writeDouble(self.price)
14976
      oprot.writeFieldEnd()
6805 anupam.sin 14977
    if self.insurerId is not None:
6921 anupam.sin 14978
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 14979
      oprot.writeI64(self.insurerId)
14980
      oprot.writeFieldEnd()
14981
    if self.quantity is not None:
6921 anupam.sin 14982
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 14983
      oprot.writeI64(self.quantity)
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
 
15003
class getInsuranceAmount_result:
15004
  """
15005
  Attributes:
15006
   - success
15007
  """
15008
 
15009
  thrift_spec = (
15010
    (0, TType.I64, 'success', None, None, ), # 0
15011
  )
15012
 
15013
  def __init__(self, success=None,):
15014
    self.success = success
15015
 
15016
  def read(self, iprot):
15017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15019
      return
15020
    iprot.readStructBegin()
15021
    while True:
15022
      (fname, ftype, fid) = iprot.readFieldBegin()
15023
      if ftype == TType.STOP:
15024
        break
15025
      if fid == 0:
15026
        if ftype == TType.I64:
15027
          self.success = iprot.readI64();
15028
        else:
15029
          iprot.skip(ftype)
15030
      else:
15031
        iprot.skip(ftype)
15032
      iprot.readFieldEnd()
15033
    iprot.readStructEnd()
15034
 
15035
  def write(self, oprot):
15036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15038
      return
15039
    oprot.writeStructBegin('getInsuranceAmount_result')
15040
    if self.success is not None:
15041
      oprot.writeFieldBegin('success', TType.I64, 0)
15042
      oprot.writeI64(self.success)
15043
      oprot.writeFieldEnd()
15044
    oprot.writeFieldStop()
15045
    oprot.writeStructEnd()
15046
 
15047
  def validate(self):
15048
    return
15049
 
15050
 
15051
  def __repr__(self):
15052
    L = ['%s=%r' % (key, value)
15053
      for key, value in self.__dict__.iteritems()]
15054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15055
 
15056
  def __eq__(self, other):
15057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15058
 
15059
  def __ne__(self, other):
15060
    return not (self == other)
15061
 
15062
class getInsurer_args:
15063
  """
15064
  Attributes:
15065
   - insurerId
15066
  """
15067
 
15068
  thrift_spec = (
15069
    None, # 0
15070
    (1, TType.I64, 'insurerId', None, None, ), # 1
15071
  )
15072
 
15073
  def __init__(self, insurerId=None,):
15074
    self.insurerId = insurerId
15075
 
15076
  def read(self, iprot):
15077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15079
      return
15080
    iprot.readStructBegin()
15081
    while True:
15082
      (fname, ftype, fid) = iprot.readFieldBegin()
15083
      if ftype == TType.STOP:
15084
        break
15085
      if fid == 1:
15086
        if ftype == TType.I64:
15087
          self.insurerId = iprot.readI64();
15088
        else:
15089
          iprot.skip(ftype)
15090
      else:
15091
        iprot.skip(ftype)
15092
      iprot.readFieldEnd()
15093
    iprot.readStructEnd()
15094
 
15095
  def write(self, oprot):
15096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15098
      return
15099
    oprot.writeStructBegin('getInsurer_args')
15100
    if self.insurerId is not None:
15101
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15102
      oprot.writeI64(self.insurerId)
15103
      oprot.writeFieldEnd()
15104
    oprot.writeFieldStop()
15105
    oprot.writeStructEnd()
15106
 
15107
  def validate(self):
15108
    return
15109
 
15110
 
15111
  def __repr__(self):
15112
    L = ['%s=%r' % (key, value)
15113
      for key, value in self.__dict__.iteritems()]
15114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15115
 
15116
  def __eq__(self, other):
15117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15118
 
15119
  def __ne__(self, other):
15120
    return not (self == other)
15121
 
15122
class getInsurer_result:
15123
  """
15124
  Attributes:
15125
   - success
15126
  """
15127
 
15128
  thrift_spec = (
15129
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
15130
  )
15131
 
15132
  def __init__(self, success=None,):
15133
    self.success = success
15134
 
15135
  def read(self, iprot):
15136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15138
      return
15139
    iprot.readStructBegin()
15140
    while True:
15141
      (fname, ftype, fid) = iprot.readFieldBegin()
15142
      if ftype == TType.STOP:
15143
        break
15144
      if fid == 0:
15145
        if ftype == TType.STRUCT:
15146
          self.success = Insurer()
15147
          self.success.read(iprot)
15148
        else:
15149
          iprot.skip(ftype)
15150
      else:
15151
        iprot.skip(ftype)
15152
      iprot.readFieldEnd()
15153
    iprot.readStructEnd()
15154
 
15155
  def write(self, oprot):
15156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15158
      return
15159
    oprot.writeStructBegin('getInsurer_result')
15160
    if self.success is not None:
15161
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15162
      self.success.write(oprot)
15163
      oprot.writeFieldEnd()
15164
    oprot.writeFieldStop()
15165
    oprot.writeStructEnd()
15166
 
15167
  def validate(self):
15168
    return
15169
 
15170
 
15171
  def __repr__(self):
15172
    L = ['%s=%r' % (key, value)
15173
      for key, value in self.__dict__.iteritems()]
15174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15175
 
15176
  def __eq__(self, other):
15177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15178
 
15179
  def __ne__(self, other):
15180
    return not (self == other)
6838 vikram.rag 15181
 
15182
class getAllInsurers_args:
15183
 
15184
  thrift_spec = (
15185
  )
15186
 
15187
  def read(self, iprot):
15188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15190
      return
15191
    iprot.readStructBegin()
15192
    while True:
15193
      (fname, ftype, fid) = iprot.readFieldBegin()
15194
      if ftype == TType.STOP:
15195
        break
15196
      else:
15197
        iprot.skip(ftype)
15198
      iprot.readFieldEnd()
15199
    iprot.readStructEnd()
15200
 
15201
  def write(self, oprot):
15202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15204
      return
15205
    oprot.writeStructBegin('getAllInsurers_args')
15206
    oprot.writeFieldStop()
15207
    oprot.writeStructEnd()
15208
 
15209
  def validate(self):
15210
    return
15211
 
15212
 
15213
  def __repr__(self):
15214
    L = ['%s=%r' % (key, value)
15215
      for key, value in self.__dict__.iteritems()]
15216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15217
 
15218
  def __eq__(self, other):
15219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15220
 
15221
  def __ne__(self, other):
15222
    return not (self == other)
15223
 
15224
class getAllInsurers_result:
15225
  """
15226
  Attributes:
15227
   - success
15228
  """
15229
 
15230
  thrift_spec = (
15231
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
15232
  )
15233
 
15234
  def __init__(self, success=None,):
15235
    self.success = success
15236
 
15237
  def read(self, iprot):
15238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15240
      return
15241
    iprot.readStructBegin()
15242
    while True:
15243
      (fname, ftype, fid) = iprot.readFieldBegin()
15244
      if ftype == TType.STOP:
15245
        break
15246
      if fid == 0:
15247
        if ftype == TType.LIST:
15248
          self.success = []
6850 kshitij.so 15249
          (_etype301, _size298) = iprot.readListBegin()
15250
          for _i302 in xrange(_size298):
15251
            _elem303 = Insurer()
15252
            _elem303.read(iprot)
15253
            self.success.append(_elem303)
6838 vikram.rag 15254
          iprot.readListEnd()
15255
        else:
15256
          iprot.skip(ftype)
15257
      else:
15258
        iprot.skip(ftype)
15259
      iprot.readFieldEnd()
15260
    iprot.readStructEnd()
15261
 
15262
  def write(self, oprot):
15263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15265
      return
15266
    oprot.writeStructBegin('getAllInsurers_result')
15267
    if self.success is not None:
15268
      oprot.writeFieldBegin('success', TType.LIST, 0)
15269
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6850 kshitij.so 15270
      for iter304 in self.success:
15271
        iter304.write(oprot)
6838 vikram.rag 15272
      oprot.writeListEnd()
15273
      oprot.writeFieldEnd()
15274
    oprot.writeFieldStop()
15275
    oprot.writeStructEnd()
15276
 
15277
  def validate(self):
15278
    return
15279
 
15280
 
15281
  def __repr__(self):
15282
    L = ['%s=%r' % (key, value)
15283
      for key, value in self.__dict__.iteritems()]
15284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15285
 
15286
  def __eq__(self, other):
15287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15288
 
15289
  def __ne__(self, other):
15290
    return not (self == other)
6962 rajveer 15291
 
15292
class updateInsuranceDeclaredAmount_args:
15293
  """
15294
  Attributes:
15295
   - insurerId
15296
   - amount
15297
  """
15298
 
15299
  thrift_spec = (
15300
    None, # 0
15301
    (1, TType.I64, 'insurerId', None, None, ), # 1
15302
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
15303
  )
15304
 
15305
  def __init__(self, insurerId=None, amount=None,):
15306
    self.insurerId = insurerId
15307
    self.amount = amount
15308
 
15309
  def read(self, iprot):
15310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15312
      return
15313
    iprot.readStructBegin()
15314
    while True:
15315
      (fname, ftype, fid) = iprot.readFieldBegin()
15316
      if ftype == TType.STOP:
15317
        break
15318
      if fid == 1:
15319
        if ftype == TType.I64:
15320
          self.insurerId = iprot.readI64();
15321
        else:
15322
          iprot.skip(ftype)
15323
      elif fid == 2:
15324
        if ftype == TType.DOUBLE:
15325
          self.amount = iprot.readDouble();
15326
        else:
15327
          iprot.skip(ftype)
15328
      else:
15329
        iprot.skip(ftype)
15330
      iprot.readFieldEnd()
15331
    iprot.readStructEnd()
15332
 
15333
  def write(self, oprot):
15334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15336
      return
15337
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
15338
    if self.insurerId is not None:
15339
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
15340
      oprot.writeI64(self.insurerId)
15341
      oprot.writeFieldEnd()
15342
    if self.amount is not None:
15343
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
15344
      oprot.writeDouble(self.amount)
15345
      oprot.writeFieldEnd()
15346
    oprot.writeFieldStop()
15347
    oprot.writeStructEnd()
15348
 
15349
  def validate(self):
15350
    return
15351
 
15352
 
15353
  def __repr__(self):
15354
    L = ['%s=%r' % (key, value)
15355
      for key, value in self.__dict__.iteritems()]
15356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15357
 
15358
  def __eq__(self, other):
15359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15360
 
15361
  def __ne__(self, other):
15362
    return not (self == other)
15363
 
15364
class updateInsuranceDeclaredAmount_result:
15365
 
15366
  thrift_spec = (
15367
  )
15368
 
15369
  def read(self, iprot):
15370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15372
      return
15373
    iprot.readStructBegin()
15374
    while True:
15375
      (fname, ftype, fid) = iprot.readFieldBegin()
15376
      if ftype == TType.STOP:
15377
        break
15378
      else:
15379
        iprot.skip(ftype)
15380
      iprot.readFieldEnd()
15381
    iprot.readStructEnd()
15382
 
15383
  def write(self, oprot):
15384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15386
      return
15387
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
15388
    oprot.writeFieldStop()
15389
    oprot.writeStructEnd()
15390
 
15391
  def validate(self):
15392
    return
15393
 
15394
 
15395
  def __repr__(self):
15396
    L = ['%s=%r' % (key, value)
15397
      for key, value in self.__dict__.iteritems()]
15398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15399
 
15400
  def __eq__(self, other):
15401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15402
 
15403
  def __ne__(self, other):
15404
    return not (self == other)